summaryrefslogtreecommitdiffstats
path: root/kmail/kmreadermainwin.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kmail/kmreadermainwin.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kmreadermainwin.cpp')
-rw-r--r--kmail/kmreadermainwin.cpp100
1 files changed, 50 insertions, 50 deletions
diff --git a/kmail/kmreadermainwin.cpp b/kmail/kmreadermainwin.cpp
index 655e09181..8e77ad9d7 100644
--- a/kmail/kmreadermainwin.cpp
+++ b/kmail/kmreadermainwin.cpp
@@ -26,7 +26,7 @@
#include <config.h>
#endif
-#include <qaccel.h>
+#include <tqaccel.h>
#include <kapplication.h>
#include <kedittoolbar.h>
#include <klocale.h>
@@ -79,8 +79,8 @@ KMReaderMainWin::KMReaderMainWin( char *name )
//-----------------------------------------------------------------------------
KMReaderMainWin::KMReaderMainWin(KMMessagePart* aMsgPart,
- bool aHTML, const QString& aFileName, const QString& pname,
- const QString & encoding, char *name )
+ bool aHTML, const TQString& aFileName, const TQString& pname,
+ const TQString & encoding, char *name )
: KMail::SecondaryWindow( name ? name : "readerwindow#" ),
mMsg( 0 )
{
@@ -103,13 +103,13 @@ void KMReaderMainWin::initKMReaderMainWin() {
toolBar( "mainToolBar" )->hide();
}
- connect( kmkernel, SIGNAL( configChanged() ),
- this, SLOT( slotConfigChanged() ) );
+ connect( kmkernel, TQT_SIGNAL( configChanged() ),
+ this, TQT_SLOT( slotConfigChanged() ) );
}
void KMReaderMainWin::setupForwardingActionsList()
{
- QPtrList<KAction> mForwardActionList;
+ TQPtrList<KAction> mForwardActionList;
if ( GlobalSettings::self()->forwardingInlineByDefault() ) {
unplugActionList( "forward_action_list" );
mForwardActionList.append( mForwardInlineAction );
@@ -140,7 +140,7 @@ void KMReaderMainWin::setUseFixedFont( bool useFixedFont )
}
//-----------------------------------------------------------------------------
-void KMReaderMainWin::showMsg( const QString & encoding, KMMessage *msg )
+void KMReaderMainWin::showMsg( const TQString & encoding, KMMessage *msg )
{
mReaderWin->setOverrideEncoding( encoding );
mReaderWin->setMsg( msg, true );
@@ -151,11 +151,11 @@ void KMReaderMainWin::showMsg( const QString & encoding, KMMessage *msg )
menuBar()->show();
toolBar( "mainToolBar" )->show();
- connect ( msg->parent(), SIGNAL( destroyed( QObject* ) ), this, SLOT( slotFolderRemoved( QObject* ) ) );
+ connect ( msg->parent(), TQT_SIGNAL( destroyed( TQObject* ) ), this, TQT_SLOT( slotFolderRemoved( TQObject* ) ) );
}
-void KMReaderMainWin::slotFolderRemoved( QObject* folderPtr )
+void KMReaderMainWin::slotFolderRemoved( TQObject* folderPtr )
{
assert(mMsg);
assert(folderPtr == mMsg->parent());
@@ -289,38 +289,38 @@ void KMReaderMainWin::setupAccel()
mMsgActions = new KMail::MessageActions( actionCollection(), this );
mMsgActions->setMessageView( mReaderWin );
//----- File Menu
- //mOpenAction = KStdAction::open( this, SLOT( slotOpenMsg() ),
+ //mOpenAction = KStdAction::open( this, TQT_SLOT( slotOpenMsg() ),
// actionCollection() );
//mSaveAsAction = new KAction( i18n("Save &As..."), "filesave",
// KStdAccel::shortcut( KStdAccel::Save ),
- // this, SLOT( slotSaveMsg() ),
+ // this, TQT_SLOT( slotSaveMsg() ),
// actionCollection(), "file_save_as" );
- mSaveAsAction = KStdAction::saveAs( mReaderWin, SLOT( slotSaveMsg() ),
+ mSaveAsAction = KStdAction::saveAs( mReaderWin, TQT_SLOT( slotSaveMsg() ),
actionCollection() );
mSaveAsAction->setShortcut( KStdAccel::shortcut( KStdAccel::Save ) );
- mPrintAction = KStdAction::print( this, SLOT( slotPrintMsg() ),
+ mPrintAction = KStdAction::print( this, TQT_SLOT( slotPrintMsg() ),
actionCollection() );
- KAction *closeAction = KStdAction::close( this, SLOT( close() ), actionCollection() );
+ KAction *closeAction = KStdAction::close( this, TQT_SLOT( close() ), actionCollection() );
KShortcut closeShortcut = closeAction->shortcut();
closeShortcut.append( KKey(Key_Escape));
closeAction->setShortcut(closeShortcut);
//----- Edit Menu
- KStdAction::copy( this, SLOT( slotCopy() ), actionCollection() );
- KStdAction::selectAll( this, SLOT( slotMarkAll() ), actionCollection() );
- KStdAction::find( this, SLOT(slotFind()), actionCollection() );
- KStdAction::findNext( this, SLOT( slotFindNext() ), actionCollection() );
+ KStdAction::copy( this, TQT_SLOT( slotCopy() ), actionCollection() );
+ KStdAction::selectAll( this, TQT_SLOT( slotMarkAll() ), actionCollection() );
+ KStdAction::find( this, TQT_SLOT(slotFind()), actionCollection() );
+ KStdAction::findNext( this, TQT_SLOT( slotFindNext() ), actionCollection() );
mTrashAction = new KAction( KGuiItem( i18n( "&Move to Trash" ), "edittrash",
i18n( "Move message to trashcan" ) ),
- Key_Delete, this, SLOT( slotTrashMsg() ),
+ Key_Delete, this, TQT_SLOT( slotTrashMsg() ),
actionCollection(), "move_to_trash" );
//----- View Menu
mViewSourceAction = new KAction( i18n("&View Source"), Key_V, this,
- SLOT(slotShowMsgSrc()), actionCollection(),
+ TQT_SLOT(slotShowMsgSrc()), actionCollection(),
"view_source" );
@@ -329,25 +329,25 @@ void KMReaderMainWin::setupAccel()
"message_forward" );
mForwardInlineAction = new KAction( i18n("&Inline..."),
"mail_forward", SHIFT+Key_F, this,
- SLOT(slotForwardInlineMsg()),
+ TQT_SLOT(slotForwardInlineMsg()),
actionCollection(),
"message_forward_inline" );
mForwardAttachedAction = new KAction( i18n("Message->Forward->","As &Attachment..."),
"mail_forward", Key_F, this,
- SLOT(slotForwardAttachedMsg()),
+ TQT_SLOT(slotForwardAttachedMsg()),
actionCollection(),
"message_forward_as_attachment" );
mForwardDigestAction = new KAction( i18n("Message->Forward->","As Di&gest..."),
"mail_forward", 0, this,
- SLOT(slotForwardDigestMsg()),
+ TQT_SLOT(slotForwardDigestMsg()),
actionCollection(),
"message_forward_as_digest" );
mRedirectAction = new KAction( i18n("Message->Forward->","&Redirect..."),
"mail_forward", Key_E, this,
- SLOT(slotRedirectMsg()),
+ TQT_SLOT(slotRedirectMsg()),
actionCollection(),
"message_forward_redirect" );
@@ -356,15 +356,15 @@ void KMReaderMainWin::setupAccel()
mForwardActionMenu->insert( mForwardAttachedAction );
mForwardInlineAction->setShortcut( Key_F );
mForwardAttachedAction->setShortcut( SHIFT+Key_F );
- connect( mForwardActionMenu, SIGNAL(activated()), this,
- SLOT(slotForwardInlineMsg()) );
+ connect( mForwardActionMenu, TQT_SIGNAL(activated()), this,
+ TQT_SLOT(slotForwardInlineMsg()) );
} else {
mForwardActionMenu->insert( mForwardAttachedAction );
mForwardActionMenu->insert( mForwardInlineAction );
mForwardInlineAction->setShortcut( SHIFT+Key_F );
mForwardAttachedAction->setShortcut( Key_F );
- connect( mForwardActionMenu, SIGNAL(activated()), this,
- SLOT(slotForwardAttachedMsg()) );
+ connect( mForwardActionMenu, TQT_SIGNAL(activated()), this,
+ TQT_SLOT(slotForwardAttachedMsg()) );
}
mForwardActionMenu->insert( mForwardDigestAction );
@@ -373,36 +373,36 @@ void KMReaderMainWin::setupAccel()
fontAction = new KFontAction( "Select Font", 0, actionCollection(),
"text_font" );
fontAction->setFont( mReaderWin->cssHelper()->bodyFont().family() );
- connect( fontAction, SIGNAL( activated( const QString& ) ),
- SLOT( slotFontAction( const QString& ) ) );
+ connect( fontAction, TQT_SIGNAL( activated( const TQString& ) ),
+ TQT_SLOT( slotFontAction( const TQString& ) ) );
fontSizeAction = new KFontSizeAction( "Select Size", 0, actionCollection(),
"text_size" );
fontSizeAction->setFontSize( mReaderWin->cssHelper()->bodyFont().pointSize() );
- connect( fontSizeAction, SIGNAL( fontSizeChanged( int ) ),
- SLOT( slotSizeAction( int ) ) );
+ connect( fontSizeAction, TQT_SIGNAL( fontSizeChanged( int ) ),
+ TQT_SLOT( slotSizeAction( int ) ) );
- QAccel *accel = new QAccel(mReaderWin, "showMsg()");
+ TQAccel *accel = new TQAccel(mReaderWin, "showMsg()");
accel->connectItem(accel->insertItem(Key_Up),
- mReaderWin, SLOT(slotScrollUp()));
+ mReaderWin, TQT_SLOT(slotScrollUp()));
accel->connectItem(accel->insertItem(Key_Down),
- mReaderWin, SLOT(slotScrollDown()));
+ mReaderWin, TQT_SLOT(slotScrollDown()));
accel->connectItem(accel->insertItem(Key_Prior),
- mReaderWin, SLOT(slotScrollPrior()));
+ mReaderWin, TQT_SLOT(slotScrollPrior()));
accel->connectItem(accel->insertItem(Key_Next),
- mReaderWin, SLOT(slotScrollNext()));
+ mReaderWin, TQT_SLOT(slotScrollNext()));
accel->connectItem(accel->insertItem(KStdAccel::shortcut(KStdAccel::Copy)),
- mReaderWin, SLOT(slotCopySelectedText()));
- connect( mReaderWin, SIGNAL(popupMenu(KMMessage&,const KURL&,const QPoint&)),
- this, SLOT(slotMsgPopup(KMMessage&,const KURL&,const QPoint&)));
- connect(mReaderWin, SIGNAL(urlClicked(const KURL&,int)),
- mReaderWin, SLOT(slotUrlClicked()));
+ mReaderWin, TQT_SLOT(slotCopySelectedText()));
+ connect( mReaderWin, TQT_SIGNAL(popupMenu(KMMessage&,const KURL&,const TQPoint&)),
+ this, TQT_SLOT(slotMsgPopup(KMMessage&,const KURL&,const TQPoint&)));
+ connect(mReaderWin, TQT_SIGNAL(urlClicked(const KURL&,int)),
+ mReaderWin, TQT_SLOT(slotUrlClicked()));
setStandardToolBarMenuEnabled(true);
- KStdAction::configureToolbars(this, SLOT(slotEditToolbars()), actionCollection());
+ KStdAction::configureToolbars(this, TQT_SLOT(slotEditToolbars()), actionCollection());
}
-void KMReaderMainWin::slotMsgPopup(KMMessage &aMsg, const KURL &aUrl, const QPoint& aPoint)
+void KMReaderMainWin::slotMsgPopup(KMMessage &aMsg, const KURL &aUrl, const TQPoint& aPoint)
{
KPopupMenu * menu = new KPopupMenu;
mUrl = aUrl;
@@ -462,7 +462,7 @@ void KMReaderMainWin::slotMsgPopup(KMMessage &aMsg, const KURL &aUrl, const QPoi
menu->insertSeparator();
}
- QPopupMenu* copyMenu = new QPopupMenu(menu);
+ TQPopupMenu* copyMenu = new TQPopupMenu(menu);
KMMainWidget* mainwin = kmkernel->getKMMainWidget();
if ( mainwin )
mainwin->folderTree()->folderToPopupMenu( KMFolderTree::CopyMessage, this,
@@ -474,7 +474,7 @@ void KMReaderMainWin::slotMsgPopup(KMMessage &aMsg, const KURL &aUrl, const QPoi
menu->insertSeparator();
mPrintAction->plug( menu );
mSaveAsAction->plug( menu );
- menu->insertItem( i18n("Save Attachments..."), mReaderWin, SLOT(slotSaveAttachments()) );
+ menu->insertItem( i18n("Save Attachments..."), mReaderWin, TQT_SLOT(slotSaveAttachments()) );
mMsgActions->createTodoAction()->plug( menu );
}
menu->exec(aPoint, 0);
@@ -490,9 +490,9 @@ void KMReaderMainWin::copySelectedToFolder( int menuId )
command->start();
}
-void KMReaderMainWin::slotFontAction( const QString& font)
+void KMReaderMainWin::slotFontAction( const TQString& font)
{
- QFont f( mReaderWin->cssHelper()->bodyFont() );
+ TQFont f( mReaderWin->cssHelper()->bodyFont() );
f.setFamily( font );
mReaderWin->cssHelper()->setBodyFont( f );
mReaderWin->cssHelper()->setPrintFont( f );
@@ -502,7 +502,7 @@ void KMReaderMainWin::slotFontAction( const QString& font)
void KMReaderMainWin::slotSizeAction( int size )
{
- QFont f( mReaderWin->cssHelper()->bodyFont() );
+ TQFont f( mReaderWin->cssHelper()->bodyFont() );
f.setPointSize( size );
mReaderWin->cssHelper()->setBodyFont( f );
mReaderWin->cssHelper()->setPrintFont( f );
@@ -522,7 +522,7 @@ void KMReaderMainWin::slotEditToolbars()
{
saveMainWindowSettings( KMKernel::config(), "ReaderWindow" );
KEditToolbar dlg( guiFactory(), this );
- connect( &dlg, SIGNAL(newToolbarConfig()), SLOT(slotUpdateToolbars()) );
+ connect( &dlg, TQT_SIGNAL(newToolbarConfig()), TQT_SLOT(slotUpdateToolbars()) );
dlg.exec();
}