summaryrefslogtreecommitdiffstats
path: root/kmail/kmmainwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmmainwidget.cpp')
-rw-r--r--kmail/kmmainwidget.cpp510
1 files changed, 255 insertions, 255 deletions
diff --git a/kmail/kmmainwidget.cpp b/kmail/kmmainwidget.cpp
index c6299ec7b..bdae84d22 100644
--- a/kmail/kmmainwidget.cpp
+++ b/kmail/kmmainwidget.cpp
@@ -203,41 +203,41 @@ KMMainWidget::KMMainWidget(TQWidget *parent, const char *name,
activatePanners();
- TQTimer::singleShot( 0, this, TQT_SLOT( slotShowStartupFolder() ));
+ TQTimer::singleShot( 0, this, TQ_SLOT( slotShowStartupFolder() ));
- connect( kmkernel->acctMgr(), TQT_SIGNAL( checkedMail( bool, bool, const TQMap<TQString, int> & ) ),
- this, TQT_SLOT( slotMailChecked( bool, bool, const TQMap<TQString, int> & ) ) );
+ connect( kmkernel->acctMgr(), TQ_SIGNAL( checkedMail( bool, bool, const TQMap<TQString, int> & ) ),
+ this, TQ_SLOT( slotMailChecked( bool, bool, const TQMap<TQString, int> & ) ) );
- connect( kmkernel->acctMgr(), TQT_SIGNAL( accountAdded( KMAccount* ) ),
- this, TQT_SLOT( initializeIMAPActions() ) );
- connect( kmkernel->acctMgr(), TQT_SIGNAL( accountRemoved( KMAccount* ) ),
- this, TQT_SLOT( initializeIMAPActions() ) );
+ connect( kmkernel->acctMgr(), TQ_SIGNAL( accountAdded( KMAccount* ) ),
+ this, TQ_SLOT( initializeIMAPActions() ) );
+ connect( kmkernel->acctMgr(), TQ_SIGNAL( accountRemoved( KMAccount* ) ),
+ this, TQ_SLOT( initializeIMAPActions() ) );
- connect(kmkernel, TQT_SIGNAL( configChanged() ),
- this, TQT_SLOT( slotConfigChanged() ));
+ connect(kmkernel, TQ_SIGNAL( configChanged() ),
+ this, TQ_SLOT( slotConfigChanged() ));
// display the full path to the folder in the caption
- connect(mFolderTree, TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this, TQT_SLOT(slotChangeCaption(TQListViewItem*)));
- connect(mFolderTree, TQT_SIGNAL(selectionChanged()),
- TQT_SLOT(updateFolderMenu()) );
- connect( mFolderTree, TQT_SIGNAL(syncStateChanged()),
- TQT_SLOT(updateFolderMenu()) );
+ connect(mFolderTree, TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this, TQ_SLOT(slotChangeCaption(TQListViewItem*)));
+ connect(mFolderTree, TQ_SIGNAL(selectionChanged()),
+ TQ_SLOT(updateFolderMenu()) );
+ connect( mFolderTree, TQ_SIGNAL(syncStateChanged()),
+ TQ_SLOT(updateFolderMenu()) );
- connect(kmkernel->folderMgr(), TQT_SIGNAL(folderRemoved(KMFolder*)),
- this, TQT_SLOT(slotFolderRemoved(KMFolder*)));
+ connect(kmkernel->folderMgr(), TQ_SIGNAL(folderRemoved(KMFolder*)),
+ this, TQ_SLOT(slotFolderRemoved(KMFolder*)));
- connect(kmkernel->imapFolderMgr(), TQT_SIGNAL(folderRemoved(KMFolder*)),
- this, TQT_SLOT(slotFolderRemoved(KMFolder*)));
+ connect(kmkernel->imapFolderMgr(), TQ_SIGNAL(folderRemoved(KMFolder*)),
+ this, TQ_SLOT(slotFolderRemoved(KMFolder*)));
- connect(kmkernel->dimapFolderMgr(), TQT_SIGNAL(folderRemoved(KMFolder*)),
- this, TQT_SLOT(slotFolderRemoved(KMFolder*)));
+ connect(kmkernel->dimapFolderMgr(), TQ_SIGNAL(folderRemoved(KMFolder*)),
+ this, TQ_SLOT(slotFolderRemoved(KMFolder*)));
- connect(kmkernel->searchFolderMgr(), TQT_SIGNAL(folderRemoved(KMFolder*)),
- this, TQT_SLOT(slotFolderRemoved(KMFolder*)));
+ connect(kmkernel->searchFolderMgr(), TQ_SIGNAL(folderRemoved(KMFolder*)),
+ this, TQ_SLOT(slotFolderRemoved(KMFolder*)));
- connect( kmkernel, TQT_SIGNAL( onlineStatusChanged( GlobalSettings::EnumNetworkState::type ) ),
- this, TQT_SLOT( slotUpdateOnlineStatus( GlobalSettings::EnumNetworkState::type ) ) );
+ connect( kmkernel, TQ_SIGNAL( onlineStatusChanged( GlobalSettings::EnumNetworkState::type ) ),
+ this, TQ_SLOT( slotUpdateOnlineStatus( GlobalSettings::EnumNetworkState::type ) ) );
toggleSystemTray();
@@ -249,9 +249,9 @@ KMMainWidget::KMMainWidget(TQWidget *parent, const char *name,
KStatusBar *sb = mainWin ? mainWin->statusBar() : 0;
mVacationScriptIndicator = new KStatusBarLabel( TQString(), 0, sb );
mVacationScriptIndicator->hide();
- connect( mVacationScriptIndicator, TQT_SIGNAL(itemReleased(int)), TQT_SLOT(slotEditVacation()) );
+ connect( mVacationScriptIndicator, TQ_SIGNAL(itemReleased(int)), TQ_SLOT(slotEditVacation()) );
if ( GlobalSettings::checkOutOfOfficeOnStartup() )
- TQTimer::singleShot( 0, this, TQT_SLOT(slotCheckVacation()) );
+ TQTimer::singleShot( 0, this, TQ_SLOT(slotCheckVacation()) );
}
@@ -468,7 +468,7 @@ void KMMainWidget::readConfig(void)
bool check = config->readBoolEntry("checkmail-startup", false);
if (check)
// do it after building the kmmainwin, so that the progressdialog is available
- TQTimer::singleShot( 0, this, TQT_SLOT( slotCheckMail() ) );
+ TQTimer::singleShot( 0, this, TQ_SLOT( slotCheckMail() ) );
}
}
@@ -609,26 +609,26 @@ void KMMainWidget::createWidgets(void)
actionCollection(), "headers quick search line" );
#endif
label->setBuddy( mQuickSearchLine );
- connect( mQuickSearchLine, TQT_SIGNAL( requestFullSearch() ),
- this, TQT_SLOT( slotRequestFullSearchFromQuickSearch() ) );
+ connect( mQuickSearchLine, TQ_SIGNAL( requestFullSearch() ),
+ this, TQ_SLOT( slotRequestFullSearchFromQuickSearch() ) );
mSearchToolBar->setStretchableWidget( mQuickSearchLine );
- connect( mHeaders, TQT_SIGNAL( messageListUpdated() ),
- mQuickSearchLine, TQT_SLOT( updateSearch() ) );
+ connect( mHeaders, TQ_SIGNAL( messageListUpdated() ),
+ mQuickSearchLine, TQ_SLOT( updateSearch() ) );
if ( !GlobalSettings::self()->quickSearchActive() ) mSearchToolBar->hide();
if (mReaderWindowActive) {
- connect(mHeaders, TQT_SIGNAL(selected(KMMessage*)),
- this, TQT_SLOT(slotMsgSelected(KMMessage*)));
+ connect(mHeaders, TQ_SIGNAL(selected(KMMessage*)),
+ this, TQ_SLOT(slotMsgSelected(KMMessage*)));
}
- connect(mHeaders, TQT_SIGNAL(activated(KMMessage*)),
- this, TQT_SLOT(slotMsgActivated(KMMessage*)));
- connect( mHeaders, TQT_SIGNAL( selectionChanged() ),
- TQT_SLOT( startUpdateMessageActionsTimer() ) );
+ connect(mHeaders, TQ_SIGNAL(activated(KMMessage*)),
+ this, TQ_SLOT(slotMsgActivated(KMMessage*)));
+ connect( mHeaders, TQ_SIGNAL( selectionChanged() ),
+ TQ_SLOT( startUpdateMessageActionsTimer() ) );
TQAccel *accel = actionCollection()->tdeaccel();
accel->connectItem(accel->insertItem(SHIFT+Key_Left),
- mHeaders, TQT_SLOT(selectPrevMessage()));
+ mHeaders, TQ_SLOT(selectPrevMessage()));
accel->connectItem(accel->insertItem(SHIFT+Key_Right),
- mHeaders, TQT_SLOT(selectNextMessage()));
+ mHeaders, TQ_SLOT(selectNextMessage()));
if (mReaderWindowActive) {
mMsgView = new KMReaderWin(messageParent, this, actionCollection(), 0 );
@@ -636,24 +636,24 @@ void KMMainWidget::createWidgets(void)
mMsgActions->setMessageView( mMsgView );
}
- connect(mMsgView, TQT_SIGNAL(replaceMsgByUnencryptedVersion()),
- this, TQT_SLOT(slotReplaceMsgByUnencryptedVersion()));
- connect(mMsgView, TQT_SIGNAL(popupMenu(KMMessage&,const KURL&,const TQPoint&)),
- this, TQT_SLOT(slotMsgPopup(KMMessage&,const KURL&,const TQPoint&)));
- connect(mMsgView, TQT_SIGNAL(urlClicked(const KURL&,int)),
- mMsgView, TQT_SLOT(slotUrlClicked()));
- connect(mHeaders, TQT_SIGNAL(maybeDeleting()),
- mMsgView, TQT_SLOT(clearCache()));
- connect(mMsgView, TQT_SIGNAL(noDrag()),
- mHeaders, TQT_SLOT(slotNoDrag()));
+ connect(mMsgView, TQ_SIGNAL(replaceMsgByUnencryptedVersion()),
+ this, TQ_SLOT(slotReplaceMsgByUnencryptedVersion()));
+ connect(mMsgView, TQ_SIGNAL(popupMenu(KMMessage&,const KURL&,const TQPoint&)),
+ this, TQ_SLOT(slotMsgPopup(KMMessage&,const KURL&,const TQPoint&)));
+ connect(mMsgView, TQ_SIGNAL(urlClicked(const KURL&,int)),
+ mMsgView, TQ_SLOT(slotUrlClicked()));
+ connect(mHeaders, TQ_SIGNAL(maybeDeleting()),
+ mMsgView, TQ_SLOT(clearCache()));
+ connect(mMsgView, TQ_SIGNAL(noDrag()),
+ mHeaders, TQ_SLOT(slotNoDrag()));
accel->connectItem(accel->insertItem(Key_Up),
- mMsgView, TQT_SLOT(slotScrollUp()));
+ mMsgView, TQ_SLOT(slotScrollUp()));
accel->connectItem(accel->insertItem(Key_Down),
- mMsgView, TQT_SLOT(slotScrollDown()));
+ mMsgView, TQ_SLOT(slotScrollDown()));
accel->connectItem(accel->insertItem(Key_Prior),
- mMsgView, TQT_SLOT(slotScrollPrior()));
+ mMsgView, TQ_SLOT(slotScrollPrior()));
accel->connectItem(accel->insertItem(Key_Next),
- mMsgView, TQT_SLOT(slotScrollNext()));
+ mMsgView, TQ_SLOT(slotScrollNext()));
} else {
mMsgView = NULL;
}
@@ -661,17 +661,17 @@ void KMMainWidget::createWidgets(void)
TDEAction *action;
mMoveMsgToFolderAction = new TDEAction( i18n("Move Message to Folder"), Key_M, this,
- TQT_SLOT(slotMoveMsg()), actionCollection(),
+ TQ_SLOT(slotMoveMsg()), actionCollection(),
"move_message_to_folder" );
mMoveMsgToFolderAction->plugAccel( actionCollection()->tdeaccel() );
action = new TDEAction( i18n("Copy Message to Folder"), Key_C, this,
- TQT_SLOT(slotCopyMsg()), actionCollection(),
+ TQ_SLOT(slotCopyMsg()), actionCollection(),
"copy_message_to_folder" );
action->plugAccel( actionCollection()->tdeaccel() );
action = new TDEAction( i18n("Jump to Folder"), Key_J, this,
- TQT_SLOT(slotJumpToFolder()), actionCollection(),
+ TQ_SLOT(slotJumpToFolder()), actionCollection(),
"jump_to_folder" );
action->plugAccel( actionCollection()->tdeaccel() );
@@ -680,7 +680,7 @@ void KMMainWidget::createWidgets(void)
mFolderViewSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
mFavoriteFolderView = new KMail::FavoriteFolderView( this, mFolderViewSplitter );
if ( mFavoritesCheckMailAction )
- connect( mFavoritesCheckMailAction, TQT_SIGNAL(activated()), mFavoriteFolderView, TQT_SLOT(checkMail()) );
+ connect( mFavoritesCheckMailAction, TQ_SIGNAL(activated()), mFavoriteFolderView, TQ_SLOT(checkMail()) );
TQWidget *folderTreeParent = mFolderViewParent;
if ( GlobalSettings::enableFavoriteFolderView() ) {
folderTreeParent = mFolderViewSplitter;
@@ -690,72 +690,72 @@ void KMMainWidget::createWidgets(void)
if ( !GlobalSettings::enableFavoriteFolderView() ) {
mFolderView = mFolderTree;
}
- connect( mFolderTree, TQT_SIGNAL(folderSelected(KMFolder*)),
- mFavoriteFolderView, TQT_SLOT(folderTreeSelectionChanged(KMFolder*)) );
-
- connect(mFolderTree, TQT_SIGNAL(folderSelected(KMFolder*)),
- this, TQT_SLOT(folderSelected(KMFolder*)));
- connect( mFolderTree, TQT_SIGNAL( folderSelected( KMFolder* ) ),
- mQuickSearchLine, TQT_SLOT( reset() ) );
- connect(mFolderTree, TQT_SIGNAL(folderSelectedUnread(KMFolder*)),
- this, TQT_SLOT(folderSelectedUnread(KMFolder*)));
- connect(mFolderTree, TQT_SIGNAL(folderDrop(KMFolder*)),
- this, TQT_SLOT(slotMoveMsgToFolder(KMFolder*)));
- connect(mFolderTree, TQT_SIGNAL(folderDropCopy(KMFolder*)),
- this, TQT_SLOT(slotCopyMsgToFolder(KMFolder*)));
- connect(mFolderTree, TQT_SIGNAL(columnsChanged()),
- this, TQT_SLOT(slotFolderTreeColumnsChanged()));
+ connect( mFolderTree, TQ_SIGNAL(folderSelected(KMFolder*)),
+ mFavoriteFolderView, TQ_SLOT(folderTreeSelectionChanged(KMFolder*)) );
+
+ connect(mFolderTree, TQ_SIGNAL(folderSelected(KMFolder*)),
+ this, TQ_SLOT(folderSelected(KMFolder*)));
+ connect( mFolderTree, TQ_SIGNAL( folderSelected( KMFolder* ) ),
+ mQuickSearchLine, TQ_SLOT( reset() ) );
+ connect(mFolderTree, TQ_SIGNAL(folderSelectedUnread(KMFolder*)),
+ this, TQ_SLOT(folderSelectedUnread(KMFolder*)));
+ connect(mFolderTree, TQ_SIGNAL(folderDrop(KMFolder*)),
+ this, TQ_SLOT(slotMoveMsgToFolder(KMFolder*)));
+ connect(mFolderTree, TQ_SIGNAL(folderDropCopy(KMFolder*)),
+ this, TQ_SLOT(slotCopyMsgToFolder(KMFolder*)));
+ connect(mFolderTree, TQ_SIGNAL(columnsChanged()),
+ this, TQ_SLOT(slotFolderTreeColumnsChanged()));
if ( mFavoriteFolderView ) {
- connect( mFavoriteFolderView, TQT_SIGNAL(folderDrop(KMFolder*)), TQT_SLOT(slotMoveMsgToFolder(KMFolder*)) );
- connect( mFavoriteFolderView, TQT_SIGNAL(folderDropCopy(KMFolder*)), TQT_SLOT(slotCopyMsgToFolder(KMFolder*)) );
+ connect( mFavoriteFolderView, TQ_SIGNAL(folderDrop(KMFolder*)), TQ_SLOT(slotMoveMsgToFolder(KMFolder*)) );
+ connect( mFavoriteFolderView, TQ_SIGNAL(folderDropCopy(KMFolder*)), TQ_SLOT(slotCopyMsgToFolder(KMFolder*)) );
}
//Commands not worthy of menu items, but that deserve configurable keybindings
mRemoveDuplicatesAction = new TDEAction(
i18n("Remove Duplicate Messages"), CTRL+Key_Asterisk, this,
- TQT_SLOT(removeDuplicates()), actionCollection(), "remove_duplicate_messages");
+ TQ_SLOT(removeDuplicates()), actionCollection(), "remove_duplicate_messages");
action->plugAccel( actionCollection()->tdeaccel() );
action = new TDEAction(
i18n("Abort Current Operation"), Key_Escape, ProgressManager::instance(),
- TQT_SLOT(slotAbortAll()), actionCollection(), "cancel" );
+ TQ_SLOT(slotAbortAll()), actionCollection(), "cancel" );
action->plugAccel( actionCollection()->tdeaccel() );
action = new TDEAction(
i18n("Focus on Next Folder"), CTRL+Key_Right, mFolderTree,
- TQT_SLOT(incCurrentFolder()), actionCollection(), "inc_current_folder");
+ TQ_SLOT(incCurrentFolder()), actionCollection(), "inc_current_folder");
action->plugAccel( actionCollection()->tdeaccel() );
action = new TDEAction(
i18n("Focus on Previous Folder"), CTRL+Key_Left, mFolderTree,
- TQT_SLOT(decCurrentFolder()), actionCollection(), "dec_current_folder");
+ TQ_SLOT(decCurrentFolder()), actionCollection(), "dec_current_folder");
action->plugAccel( actionCollection()->tdeaccel() );
action = new TDEAction(
i18n("Select Folder with Focus"), CTRL+Key_Space, mFolderTree,
- TQT_SLOT(selectCurrentFolder()), actionCollection(), "select_current_folder");
+ TQ_SLOT(selectCurrentFolder()), actionCollection(), "select_current_folder");
action->plugAccel( actionCollection()->tdeaccel() );
action = new TDEAction(
i18n("Focus on Next Message"), ALT+Key_Right, mHeaders,
- TQT_SLOT(incCurrentMessage()), actionCollection(), "inc_current_message");
+ TQ_SLOT(incCurrentMessage()), actionCollection(), "inc_current_message");
action->plugAccel( actionCollection()->tdeaccel() );
action = new TDEAction(
i18n("Focus on Previous Message"), ALT+Key_Left, mHeaders,
- TQT_SLOT(decCurrentMessage()), actionCollection(), "dec_current_message");
+ TQ_SLOT(decCurrentMessage()), actionCollection(), "dec_current_message");
action->plugAccel( actionCollection()->tdeaccel() );
action = new TDEAction(
i18n("Select Message with Focus"), ALT+Key_Space, mHeaders,
- TQT_SLOT( selectCurrentMessage() ), actionCollection(), "select_current_message");
+ TQ_SLOT( selectCurrentMessage() ), actionCollection(), "select_current_message");
action->plugAccel( actionCollection()->tdeaccel() );
- connect( kmkernel->outboxFolder(), TQT_SIGNAL( msgRemoved(int, TQString) ),
- TQT_SLOT( startUpdateMessageActionsTimer() ) );
- connect( kmkernel->outboxFolder(), TQT_SIGNAL( msgAdded(int) ),
- TQT_SLOT( startUpdateMessageActionsTimer() ) );
+ connect( kmkernel->outboxFolder(), TQ_SIGNAL( msgRemoved(int, TQString) ),
+ TQ_SLOT( startUpdateMessageActionsTimer() ) );
+ connect( kmkernel->outboxFolder(), TQ_SIGNAL( msgAdded(int) ),
+ TQ_SLOT( startUpdateMessageActionsTimer() ) );
}
@@ -764,8 +764,8 @@ void KMMainWidget::activatePanners(void)
{
if (mMsgView) {
TQObject::disconnect( mMsgView->copyAction(),
- TQT_SIGNAL( activated() ),
- mMsgView, TQT_SLOT( slotCopySelectedText() ));
+ TQ_SIGNAL( activated() ),
+ mMsgView, TQ_SLOT( slotCopySelectedText() ));
}
setupFolderView();
@@ -800,8 +800,8 @@ void KMMainWidget::activatePanners(void)
if (mMsgView) {
TQObject::connect( mMsgView->copyAction(),
- TQT_SIGNAL( activated() ),
- mMsgView, TQT_SLOT( slotCopySelectedText() ));
+ TQ_SIGNAL( activated() ),
+ mMsgView, TQ_SLOT( slotCopySelectedText() ));
}
}
@@ -825,8 +825,8 @@ void KMMainWidget::slotSearch()
if(!mSearchWin)
{
mSearchWin = new SearchWindow(this, "Search", mFolder, false);
- connect(mSearchWin, TQT_SIGNAL(destroyed()),
- this, TQT_SLOT(slotSearchClosed()));
+ connect(mSearchWin, TQ_SIGNAL(destroyed()),
+ this, TQ_SLOT(slotSearchClosed()));
}
else
{
@@ -1717,7 +1717,7 @@ void KMMainWidget::slotCheckVacation()
return;
Vacation *vac = new Vacation( this, true /* check only */ );
- connect( vac, TQT_SIGNAL(scriptActive(bool)), TQT_SLOT(updateVactionScripStatus(bool)) );
+ connect( vac, TQ_SIGNAL(scriptActive(bool)), TQ_SLOT(updateVactionScripStatus(bool)) );
}
void KMMainWidget::slotEditVacation()
@@ -1730,9 +1730,9 @@ void KMMainWidget::slotEditVacation()
return;
mVacation = new Vacation( this );
- connect( mVacation, TQT_SIGNAL(scriptActive(bool)), TQT_SLOT(updateVactionScripStatus(bool)) );
+ connect( mVacation, TQ_SIGNAL(scriptActive(bool)), TQ_SLOT(updateVactionScripStatus(bool)) );
if ( mVacation->isUsable() ) {
- connect( mVacation, TQT_SIGNAL(result(bool)), mVacation, TQT_SLOT(deleteLater()) );
+ connect( mVacation, TQ_SIGNAL(result(bool)), mVacation, TQ_SLOT(deleteLater()) );
} else {
TQString msg = i18n("KMail's Out of Office Reply functionality relies on "
"server-side filtering. You have not yet configured an "
@@ -1838,7 +1838,7 @@ void KMMainWidget::slotPrintMsg()
//-----------------------------------------------------------------------------
void KMMainWidget::setupForwardActions()
{
- disconnect( mForwardActionMenu, TQT_SIGNAL( activated() ), 0, 0 );
+ disconnect( mForwardActionMenu, TQ_SIGNAL( activated() ), 0, 0 );
mForwardActionMenu->remove( mForwardInlineAction );
mForwardActionMenu->remove( mForwardAttachedAction );
@@ -1847,16 +1847,16 @@ void KMMainWidget::setupForwardActions()
mForwardActionMenu->insert( mForwardAttachedAction, 1 );
mForwardInlineAction->setShortcut( Key_F );
mForwardAttachedAction->setShortcut( SHIFT+Key_F );
- connect( mForwardActionMenu, TQT_SIGNAL(activated()), this,
- TQT_SLOT(slotForwardInlineMsg()) );
+ connect( mForwardActionMenu, TQ_SIGNAL(activated()), this,
+ TQ_SLOT(slotForwardInlineMsg()) );
} else {
mForwardActionMenu->insert( mForwardAttachedAction, 0 );
mForwardActionMenu->insert( mForwardInlineAction, 1 );
mForwardInlineAction->setShortcut( SHIFT+Key_F );
mForwardAttachedAction->setShortcut( Key_F );
- connect( mForwardActionMenu, TQT_SIGNAL(activated()), this,
- TQT_SLOT(slotForwardAttachedMsg()) );
+ connect( mForwardActionMenu, TQ_SIGNAL(activated()), this,
+ TQ_SLOT(slotForwardAttachedMsg()) );
}
}
@@ -2025,14 +2025,14 @@ void KMMainWidget::folderSelected( KMFolder* aFolder, bool forceJumpToUnread )
if ( newFolder )
writeFolderConfig();
if ( mFolder ) {
- disconnect( mFolder, TQT_SIGNAL( changed() ),
- this, TQT_SLOT( updateMarkAsReadAction() ) );
- disconnect( mFolder, TQT_SIGNAL( msgHeaderChanged( KMFolder*, int ) ),
- this, TQT_SLOT( updateMarkAsReadAction() ) );
- disconnect( mFolder, TQT_SIGNAL( msgAdded( int ) ),
- this, TQT_SLOT( updateMarkAsReadAction() ) );
- disconnect( mFolder, TQT_SIGNAL( msgRemoved( KMFolder * ) ),
- this, TQT_SLOT( updateMarkAsReadAction() ) );
+ disconnect( mFolder, TQ_SIGNAL( changed() ),
+ this, TQ_SLOT( updateMarkAsReadAction() ) );
+ disconnect( mFolder, TQ_SIGNAL( msgHeaderChanged( KMFolder*, int ) ),
+ this, TQ_SLOT( updateMarkAsReadAction() ) );
+ disconnect( mFolder, TQ_SIGNAL( msgAdded( int ) ),
+ this, TQ_SLOT( updateMarkAsReadAction() ) );
+ disconnect( mFolder, TQ_SIGNAL( msgRemoved( KMFolder * ) ),
+ this, TQ_SLOT( updateMarkAsReadAction() ) );
}
mFolder = aFolder;
@@ -2049,8 +2049,8 @@ void KMMainWidget::folderSelected( KMFolder* aFolder, bool forceJumpToUnread )
imap->open("mainwidget"); // will be closed in the folderSelected slot
// first get new headers before we select the folder
imap->setSelected( true );
- connect( imap, TQT_SIGNAL( folderComplete( KMFolderImap*, bool ) ),
- this, TQT_SLOT( folderSelected() ) );
+ connect( imap, TQ_SIGNAL( folderComplete( KMFolderImap*, bool ) ),
+ this, TQ_SLOT( folderSelected() ) );
imap->getAndCheckFolder();
mHeaders->setFolder( 0 );
updateFolderMenu();
@@ -2059,26 +2059,26 @@ void KMMainWidget::folderSelected( KMFolder* aFolder, bool forceJumpToUnread )
// Set a timer to show a splash screen if fetching folder contents
// takes more than the amount of seconds configured in the kmailrc (default 1000 msec)
mShowBusySplashTimer = new TQTimer( this );
- connect( mShowBusySplashTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotShowBusySplash() ) );
+ connect( mShowBusySplashTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotShowBusySplash() ) );
mShowBusySplashTimer->start( GlobalSettings::self()->folderLoadingTimeout(), true );
return;
} else {
// the folder is complete now - so go ahead
- disconnect( imap, TQT_SIGNAL( folderComplete( KMFolderImap*, bool ) ),
- this, TQT_SLOT( folderSelected() ) );
+ disconnect( imap, TQ_SIGNAL( folderComplete( KMFolderImap*, bool ) ),
+ this, TQ_SLOT( folderSelected() ) );
forceJumpToUnread = mForceJumpToUnread;
}
}
if ( mFolder ) { // == 0 -> pointing to toplevel ("Welcome to KMail") folder
- connect( mFolder, TQT_SIGNAL( changed() ),
- this, TQT_SLOT( updateMarkAsReadAction() ) );
- connect( mFolder, TQT_SIGNAL( msgHeaderChanged( KMFolder*, int ) ),
- this, TQT_SLOT( updateMarkAsReadAction() ) );
- connect( mFolder, TQT_SIGNAL( msgAdded( int ) ),
- this, TQT_SLOT( updateMarkAsReadAction() ) );
- connect( mFolder, TQT_SIGNAL( msgRemoved(KMFolder *) ),
- this, TQT_SLOT( updateMarkAsReadAction() ) );
+ connect( mFolder, TQ_SIGNAL( changed() ),
+ this, TQ_SLOT( updateMarkAsReadAction() ) );
+ connect( mFolder, TQ_SIGNAL( msgHeaderChanged( KMFolder*, int ) ),
+ this, TQ_SLOT( updateMarkAsReadAction() ) );
+ connect( mFolder, TQ_SIGNAL( msgAdded( int ) ),
+ this, TQ_SLOT( updateMarkAsReadAction() ) );
+ connect( mFolder, TQ_SIGNAL( msgRemoved(KMFolder *) ),
+ this, TQ_SLOT( updateMarkAsReadAction() ) );
}
readFolderConfig();
if (mMsgView)
@@ -2132,8 +2132,8 @@ void KMMainWidget::slotMsgSelected(KMMessage *msg)
}
mJob = msg->parent()->createJob( msg, FolderJob::tGetMessage, 0,
"STRUCTURE", mMsgView->attachmentStrategy() );
- connect(mJob, TQT_SIGNAL(messageRetrieved(KMMessage*)),
- mMsgView, TQT_SLOT(slotMessageArrived(KMMessage*)));
+ connect(mJob, TQ_SIGNAL(messageRetrieved(KMMessage*)),
+ mMsgView, TQ_SLOT(slotMessageArrived(KMMessage*)));
mJob->start();
} else {
mMsgView->setMsg(msg);
@@ -2318,8 +2318,8 @@ void KMMainWidget::slotMsgActivated(KMMessage *msg)
if ( !msg ) return;
if ( msg->parent() && !msg->isComplete() ) {
FolderJob *job = msg->parent()->createJob( msg );
- connect( job, TQT_SIGNAL( messageRetrieved( KMMessage* ) ),
- TQT_SLOT( slotMsgActivated( KMMessage* ) ) );
+ connect( job, TQ_SIGNAL( messageRetrieved( KMMessage* ) ),
+ TQ_SLOT( slotMsgActivated( KMMessage* ) ) );
job->start();
return;
}
@@ -2510,16 +2510,16 @@ void KMMainWidget::updateCustomTemplateMenus()
"mail_custom_forward",
actionCollection(), "custom_forward" );
TQSignalMapper *mCustomForwardMapper = new TQSignalMapper( this );
- connect( mCustomForwardMapper, TQT_SIGNAL( mapped( int ) ),
- this, TQT_SLOT( slotCustomForwardMsg( int ) ) );
+ connect( mCustomForwardMapper, TQ_SIGNAL( mapped( int ) ),
+ this, TQ_SLOT( slotCustomForwardMsg( int ) ) );
mForwardActionMenu->insert( mCustomForwardActionMenu );
mCustomReplyActionMenu =
new TDEActionMenu( i18n("Reply With Custom Template"), "mail_custom_reply",
actionCollection(), "custom_reply" );
TQSignalMapper *mCustomReplyMapper = new TQSignalMapper( this );
- connect( mCustomReplyMapper, TQT_SIGNAL( mapped( int ) ),
- this, TQT_SLOT( slotCustomReplyToMsg( int ) ) );
+ connect( mCustomReplyMapper, TQ_SIGNAL( mapped( int ) ),
+ this, TQ_SLOT( slotCustomReplyToMsg( int ) ) );
mMsgActions->replyMenu()->insert( mCustomReplyActionMenu );
mCustomReplyAllActionMenu =
@@ -2527,8 +2527,8 @@ void KMMainWidget::updateCustomTemplateMenus()
"mail_custom_reply_all",
actionCollection(), "custom_reply_all" );
TQSignalMapper *mCustomReplyAllMapper = new TQSignalMapper( this );
- connect( mCustomReplyAllMapper, TQT_SIGNAL( mapped( int ) ),
- this, TQT_SLOT( slotCustomReplyAllToMsg( int ) ) );
+ connect( mCustomReplyAllMapper, TQ_SIGNAL( mapped( int ) ),
+ this, TQ_SLOT( slotCustomReplyAllToMsg( int ) ) );
mMsgActions->replyMenu()->insert( mCustomReplyAllActionMenu );
mCustomTemplates.clear();
@@ -2549,7 +2549,7 @@ void KMMainWidget::updateCustomTemplateMenus()
action = new TDEAction( (*it).replace( "&", "&&" ),
TDEShortcut( t.shortcut() ),
mCustomReplyMapper,
- TQT_SLOT( map() ),
+ TQ_SLOT( map() ),
actionCollection(),
(*it).utf8() );
mCustomReplyMapper->setMapping( action, idx );
@@ -2561,7 +2561,7 @@ void KMMainWidget::updateCustomTemplateMenus()
action = new TDEAction( (*it).replace( "&", "&&" ),
TDEShortcut( t.shortcut() ),
mCustomReplyAllMapper,
- TQT_SLOT( map() ),
+ TQ_SLOT( map() ),
actionCollection(),
(*it).utf8() );
mCustomReplyAllMapper->setMapping( action, idx );
@@ -2573,7 +2573,7 @@ void KMMainWidget::updateCustomTemplateMenus()
action = new TDEAction( (*it).replace( "&", "&&" ),
TDEShortcut( t.shortcut() ),
mCustomForwardMapper,
- TQT_SLOT( map() ),
+ TQ_SLOT( map() ),
actionCollection(),
(*it).utf8() );
mCustomForwardMapper->setMapping( action, idx );
@@ -2585,7 +2585,7 @@ void KMMainWidget::updateCustomTemplateMenus()
action = new TDEAction( (*it).replace( "&", "&&" ),
TDEShortcut::null(),
mCustomReplyMapper,
- TQT_SLOT( map() ),
+ TQ_SLOT( map() ),
actionCollection(),
(*it).utf8() );
mCustomReplyMapper->setMapping( action, idx );
@@ -2595,7 +2595,7 @@ void KMMainWidget::updateCustomTemplateMenus()
action = new TDEAction( (*it).replace( "&", "&&" ),
TDEShortcut::null(),
mCustomReplyAllMapper,
- TQT_SLOT( map() ),
+ TQ_SLOT( map() ),
actionCollection(),
(*it).utf8() );
mCustomReplyAllMapper->setMapping( action, idx );
@@ -2605,7 +2605,7 @@ void KMMainWidget::updateCustomTemplateMenus()
action = new TDEAction( (*it).replace( "&", "&&" ),
TDEShortcut::null(),
mCustomForwardMapper,
- TQT_SLOT( map() ),
+ TQ_SLOT( map() ),
actionCollection(),
(*it).utf8() );
mCustomForwardMapper->setMapping( action, idx );
@@ -2645,53 +2645,53 @@ void KMMainWidget::setupActions()
//----- File Menu
mSaveAsAction = new TDEAction( i18n("Save &As..."), "document-save",
TDEStdAccel::shortcut(TDEStdAccel::Save),
- this, TQT_SLOT(slotSaveMsg()), actionCollection(), "file_save_as" );
+ this, TQ_SLOT(slotSaveMsg()), actionCollection(), "file_save_as" );
- mOpenAction = KStdAction::open( this, TQT_SLOT( slotOpenMsg() ),
+ mOpenAction = KStdAction::open( this, TQ_SLOT( slotOpenMsg() ),
actionCollection() );
(void) new TDEAction( i18n("&Compact All Folders"), 0,
- this, TQT_SLOT(slotCompactAll()),
+ this, TQ_SLOT(slotCompactAll()),
actionCollection(), "compact_all_folders" );
(void) new TDEAction( i18n("&Expire All Folders"), 0,
- this, TQT_SLOT(slotExpireAll()),
+ this, TQ_SLOT(slotExpireAll()),
actionCollection(), "expire_all_folders" );
(void) new TDEAction( i18n("&Refresh Local IMAP Cache"), "refresh",
- this, TQT_SLOT(slotInvalidateIMAPFolders()),
+ this, TQ_SLOT(slotInvalidateIMAPFolders()),
actionCollection(), "file_invalidate_imap_cache" );
(void) new TDEAction( i18n("Empty All &Trash Folders"), 0,
- KMKernel::self(), TQT_SLOT(slotEmptyTrash()),
+ KMKernel::self(), TQ_SLOT(slotEmptyTrash()),
actionCollection(), "empty_trash" );
(void) new TDEAction( i18n("Check &Mail"), "mail_get", CTRL+Key_L,
- this, TQT_SLOT(slotCheckMail()),
+ this, TQ_SLOT(slotCheckMail()),
actionCollection(), "check_mail" );
mFavoritesCheckMailAction = new TDEAction( i18n("Check Mail in Favorite Folders"),
"mail_get", CTRL+SHIFT+Key_L, 0, 0,
actionCollection(), "favorite_check_mail" );
if ( mFavoriteFolderView )
- connect( mFavoritesCheckMailAction, TQT_SIGNAL(activated()), mFavoriteFolderView, TQT_SLOT(checkMail()) );
+ connect( mFavoritesCheckMailAction, TQ_SIGNAL(activated()), mFavoriteFolderView, TQ_SLOT(checkMail()) );
TDEActionMenu *actActionMenu = new
TDEActionMenu( i18n("Check Mail &In"), "mail_get", actionCollection(),
"check_mail_in" );
actActionMenu->setDelayed(true); //needed for checking "all accounts"
- connect(actActionMenu,TQT_SIGNAL(activated()),this,TQT_SLOT(slotCheckMail()));
+ connect(actActionMenu,TQ_SIGNAL(activated()),this,TQ_SLOT(slotCheckMail()));
mActMenu = actActionMenu->popupMenu();
- connect(mActMenu,TQT_SIGNAL(activated(int)),this,TQT_SLOT(slotCheckOneAccount(int)));
- connect(mActMenu,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(getAccountMenu()));
+ connect(mActMenu,TQ_SIGNAL(activated(int)),this,TQ_SLOT(slotCheckOneAccount(int)));
+ connect(mActMenu,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(getAccountMenu()));
(void) new TDEAction( i18n("&Send Queued Messages"), "mail-send", 0, this,
- TQT_SLOT(slotSendQueued()), actionCollection(), "send_queued");
+ TQ_SLOT(slotSendQueued()), actionCollection(), "send_queued");
(void) new TDEAction( i18n("Online Status (unknown)"), "online_status", 0, this,
- TQT_SLOT(slotOnlineStatus()), actionCollection(), "online_status");
+ TQ_SLOT(slotOnlineStatus()), actionCollection(), "online_status");
TDEActionMenu *sendActionMenu = new
TDEActionMenu( i18n("Send Queued Messages Via"), "mail_send_via", actionCollection(),
@@ -2699,56 +2699,56 @@ void KMMainWidget::setupActions()
sendActionMenu->setDelayed(true);
mSendMenu = sendActionMenu->popupMenu();
- connect(mSendMenu,TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSendQueuedVia(int)));
- connect(mSendMenu,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(getTransportMenu()));
+ connect(mSendMenu,TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotSendQueuedVia(int)));
+ connect(mSendMenu,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(getTransportMenu()));
TDEAction *act;
//----- Tools menu
if (parent()->inherits("KMMainWin")) {
act = new TDEAction( i18n("&Address Book..."), "contents", 0, this,
- TQT_SLOT(slotAddrBook()), actionCollection(), "addressbook" );
+ TQ_SLOT(slotAddrBook()), actionCollection(), "addressbook" );
if (TDEStandardDirs::findExe("kaddressbook").isEmpty()) act->setEnabled(false);
}
act = new TDEAction( i18n("Certificate Manager..."), "pgp-keys", 0, this,
- TQT_SLOT(slotStartCertManager()), actionCollection(), "tools_start_certman");
+ TQ_SLOT(slotStartCertManager()), actionCollection(), "tools_start_certman");
// disable action if no certman binary is around
if (TDEStandardDirs::findExe("kleopatra").isEmpty()) act->setEnabled(false);
act = new TDEAction( i18n("GnuPG Log Viewer..."), "pgp-keys", 0, this,
- TQT_SLOT(slotStartWatchGnuPG()), actionCollection(), "tools_start_kwatchgnupg");
+ TQ_SLOT(slotStartWatchGnuPG()), actionCollection(), "tools_start_kwatchgnupg");
// disable action if no kwatchgnupg binary is around
if (TDEStandardDirs::findExe("kwatchgnupg").isEmpty()) act->setEnabled(false);
act = new TDEAction( i18n("&Import Messages..."), "document-open", 0, this,
- TQT_SLOT(slotImport()), actionCollection(), "import" );
+ TQ_SLOT(slotImport()), actionCollection(), "import" );
if (TDEStandardDirs::findExe("kmailcvt").isEmpty()) act->setEnabled(false);
#if !defined(NDEBUG)
(void) new TDEAction( i18n("&Debug Sieve..."),
- "idea", 0, this, TQT_SLOT(slotDebugSieve()),
+ "idea", 0, this, TQ_SLOT(slotDebugSieve()),
actionCollection(), "tools_debug_sieve" );
#endif
if ( GlobalSettings::allowOutOfOfficeSettings() ) {
(void) new TDEAction( i18n("Edit \"Out of Office\" Replies..."),
- "configure", 0, this, TQT_SLOT(slotEditVacation()),
+ "configure", 0, this, TQ_SLOT(slotEditVacation()),
actionCollection(), "tools_edit_vacation" );
}
(void) new TDEAction( i18n("Filter &Log Viewer..."), 0, this,
- TQT_SLOT(slotFilterLogViewer()), actionCollection(), "filter_log_viewer" );
+ TQ_SLOT(slotFilterLogViewer()), actionCollection(), "filter_log_viewer" );
(void) new TDEAction( i18n("&Anti-Spam Wizard..."), 0, this,
- TQT_SLOT(slotAntiSpamWizard()), actionCollection(), "antiSpamWizard" );
+ TQ_SLOT(slotAntiSpamWizard()), actionCollection(), "antiSpamWizard" );
(void) new TDEAction( i18n("&Anti-Virus Wizard..."), 0, this,
- TQT_SLOT(slotAntiVirusWizard()), actionCollection(), "antiVirusWizard" );
+ TQ_SLOT(slotAntiVirusWizard()), actionCollection(), "antiVirusWizard" );
//----- Edit Menu
mTrashAction = new TDEAction( KGuiItem( i18n("&Move to Trash"), "edittrash",
i18n("Move message to trashcan") ),
- Key_Delete, this, TQT_SLOT(slotTrashMsg()),
+ Key_Delete, this, TQ_SLOT(slotTrashMsg()),
actionCollection(), "move_to_trash" );
/* The delete action is nowhere in the gui, by default, so we need to make
@@ -2756,109 +2756,109 @@ void KMMainWidget::setupActions()
* XMLGui construction or manual ->plug(). This is only a problem when run
* as a part, though. */
mDeleteAction = new TDEAction( i18n("&Delete"), "edit-delete", SHIFT+Key_Delete, this,
- TQT_SLOT(slotDeleteMsg()), actionCollection(), "delete" );
+ TQ_SLOT(slotDeleteMsg()), actionCollection(), "delete" );
mDeleteAction->plugAccel( actionCollection()->tdeaccel() );
mTrashThreadAction = new TDEAction( KGuiItem( i18n("M&ove Thread to Trash"), "edittrash",
i18n("Move thread to trashcan") ),
- CTRL+Key_Delete, this, TQT_SLOT(slotTrashThread()),
+ CTRL+Key_Delete, this, TQ_SLOT(slotTrashThread()),
actionCollection(), "move_thread_to_trash" );
mDeleteThreadAction = new TDEAction( i18n("Delete T&hread"), "edit-delete", CTRL+SHIFT+Key_Delete, this,
- TQT_SLOT(slotDeleteThread()), actionCollection(), "delete_thread" );
+ TQ_SLOT(slotDeleteThread()), actionCollection(), "delete_thread" );
(void) new TDEAction( i18n("&Find Messages..."), "mail_find", Key_S, this,
- TQT_SLOT(slotRequestFullSearchFromQuickSearch()), actionCollection(), "search_messages" );
+ TQ_SLOT(slotRequestFullSearchFromQuickSearch()), actionCollection(), "search_messages" );
mFindInMessageAction = new TDEAction( i18n("&Find in Message..."), "edit-find", TDEStdAccel::shortcut(TDEStdAccel::Find), this,
- TQT_SLOT(slotFind()), actionCollection(), "find_in_messages" );
+ TQ_SLOT(slotFind()), actionCollection(), "find_in_messages" );
(void) new TDEAction( i18n("Select &All Messages"), TDEStdAccel::selectAll(), this,
- TQT_SLOT(slotMarkAll()), actionCollection(), "mark_all_messages" );
+ TQ_SLOT(slotMarkAll()), actionCollection(), "mark_all_messages" );
//----- Folder Menu
mNewFolderAction = new TDEAction( i18n("&New Folder..."), "folder-new", 0, mFolderTree,
- TQT_SLOT(addChildFolder()), actionCollection(), "new_folder" );
+ TQ_SLOT(addChildFolder()), actionCollection(), "new_folder" );
mModifyFolderAction = new TDEAction( i18n("&Properties"), "configure", 0, this,
- TQT_SLOT(slotModifyFolder()), actionCollection(), "modify" );
+ TQ_SLOT(slotModifyFolder()), actionCollection(), "modify" );
mFolderMailingListPropertiesAction = new TDEAction( i18n("&Mailing List Management..."),
- /*"folder_mailinglist_properties",*/ 0, this, TQT_SLOT( slotFolderMailingListProperties() ),
+ /*"folder_mailinglist_properties",*/ 0, this, TQ_SLOT( slotFolderMailingListProperties() ),
actionCollection(), "folder_mailinglist_properties" );
mFolderShortCutCommandAction = new TDEAction( i18n("&Assign Shortcut..."), "configure_shortcuts",
- 0, this, TQT_SLOT( slotFolderShortcutCommand() ), actionCollection(),
+ 0, this, TQ_SLOT( slotFolderShortcutCommand() ), actionCollection(),
"folder_shortcut_command" );
mMarkAllAsReadAction = new TDEAction( i18n("Mark All Messages as &Read"), "goto", 0, this,
- TQT_SLOT(slotMarkAllAsRead()), actionCollection(), "mark_all_as_read" );
+ TQ_SLOT(slotMarkAllAsRead()), actionCollection(), "mark_all_as_read" );
- mExpireFolderAction = new TDEAction(i18n("&Expiration Settings"), 0, this, TQT_SLOT(slotExpireFolder()),
+ mExpireFolderAction = new TDEAction(i18n("&Expiration Settings"), 0, this, TQ_SLOT(slotExpireFolder()),
actionCollection(), "expire");
mCompactFolderAction = new TDEAction( i18n("&Compact Folder"), 0, this,
- TQT_SLOT(slotCompactFolder()), actionCollection(), "compact" );
+ TQ_SLOT(slotCompactFolder()), actionCollection(), "compact" );
mRefreshFolderAction = new TDEAction( i18n("Check Mail &in This Folder"), "reload",
TDEStdAccel::shortcut( TDEStdAccel::Reload ), this,
- TQT_SLOT(slotRefreshFolder()),
+ TQ_SLOT(slotRefreshFolder()),
actionCollection(), "refresh_folder" );
mTroubleshootFolderAction = 0; // set in initializeIMAPActions
mEmptyFolderAction = new TDEAction( "foo" /*set in updateFolderMenu*/, "edittrash", 0, this,
- TQT_SLOT(slotEmptyFolder()), actionCollection(), "empty" );
+ TQ_SLOT(slotEmptyFolder()), actionCollection(), "empty" );
mRemoveFolderAction = new TDEAction( "foo" /*set in updateFolderMenu*/, "edit-delete", 0, this,
- TQT_SLOT(slotRemoveFolder()), actionCollection(), "delete_folder" );
+ TQ_SLOT(slotRemoveFolder()), actionCollection(), "delete_folder" );
mArchiveFolderAction = new TDEAction( i18n( "&Archive Folder..." ), "document-save", 0, this,
- TQT_SLOT( slotArchiveFolder() ), actionCollection(),
+ TQ_SLOT( slotArchiveFolder() ), actionCollection(),
"archive_folder" );
mPreferHtmlAction = new TDEToggleAction( i18n("Prefer &HTML to Plain Text"), 0, this,
- TQT_SLOT(slotOverrideHtml()), actionCollection(), "prefer_html" );
+ TQ_SLOT(slotOverrideHtml()), actionCollection(), "prefer_html" );
mPreferHtmlLoadExtAction = new TDEToggleAction( i18n("Load E&xternal References"), 0, this,
- TQT_SLOT(slotOverrideHtmlLoadExt()), actionCollection(), "prefer_html_external_refs" );
+ TQ_SLOT(slotOverrideHtmlLoadExt()), actionCollection(), "prefer_html_external_refs" );
mThreadMessagesAction = new TDEToggleAction( i18n("&Thread Messages"), 0, this,
- TQT_SLOT(slotOverrideThread()), actionCollection(), "thread_messages" );
+ TQ_SLOT(slotOverrideThread()), actionCollection(), "thread_messages" );
mThreadBySubjectAction = new TDEToggleAction( i18n("Thread Messages also by &Subject"), 0, this,
- TQT_SLOT(slotToggleSubjectThreading()), actionCollection(), "thread_messages_by_subject" );
+ TQ_SLOT(slotToggleSubjectThreading()), actionCollection(), "thread_messages_by_subject" );
new TDEAction( i18n("Copy Folder"), "edit-copy", SHIFT+CTRL+Key_C, folderTree(),
- TQT_SLOT(copyFolder()), actionCollection(), "copy_folder" );
+ TQ_SLOT(copyFolder()), actionCollection(), "copy_folder" );
new TDEAction( i18n("Cut Folder"), "edit-cut", SHIFT+CTRL+Key_X, folderTree(),
- TQT_SLOT(cutFolder()), actionCollection(), "cut_folder" );
+ TQ_SLOT(cutFolder()), actionCollection(), "cut_folder" );
new TDEAction( i18n("Paste Folder"), "edit-paste", SHIFT+CTRL+Key_V, folderTree(),
- TQT_SLOT(pasteFolder()), actionCollection(), "paste_folder" );
+ TQ_SLOT(pasteFolder()), actionCollection(), "paste_folder" );
new TDEAction( i18n("Copy Messages"), "edit-copy", ALT+CTRL+Key_C, headers(),
- TQT_SLOT(copyMessages()), actionCollection(), "copy_messages" );
+ TQ_SLOT(copyMessages()), actionCollection(), "copy_messages" );
new TDEAction( i18n("Cut Messages"), "edit-cut", ALT+CTRL+Key_X, headers(),
- TQT_SLOT(cutMessages()), actionCollection(), "cut_messages" );
+ TQ_SLOT(cutMessages()), actionCollection(), "cut_messages" );
new TDEAction( i18n("Paste Messages"), "edit-paste", ALT+CTRL+Key_V, headers(),
- TQT_SLOT(pasteMessages()), actionCollection(), "paste_messages" );
+ TQ_SLOT(pasteMessages()), actionCollection(), "paste_messages" );
//----- Message Menu
(void) new TDEAction( i18n("&New Message..."), "mail-message-new", TDEStdAccel::shortcut(TDEStdAccel::New), this,
- TQT_SLOT(slotCompose()), actionCollection(), "new_message" );
+ TQ_SLOT(slotCompose()), actionCollection(), "new_message" );
mTemplateMenu =
new TDEActionMenu( i18n("New Message From &Template"), "document-new",
actionCollection(), "new_from_template" );
mTemplateMenu->setDelayed( true );
- connect( mTemplateMenu->popupMenu(), TQT_SIGNAL( aboutToShow() ), this,
- TQT_SLOT( slotShowNewFromTemplate() ) );
- connect( mTemplateMenu->popupMenu(), TQT_SIGNAL( activated(int) ), this,
- TQT_SLOT( slotNewFromTemplate(int) ) );
+ connect( mTemplateMenu->popupMenu(), TQ_SIGNAL( aboutToShow() ), this,
+ TQ_SLOT( slotShowNewFromTemplate() ) );
+ connect( mTemplateMenu->popupMenu(), TQ_SIGNAL( activated(int) ), this,
+ TQ_SLOT( slotNewFromTemplate(int) ) );
TDEAction* newToML = new TDEAction( i18n("New Message t&o Mailing-List..."), "mail_post_to",
CTRL+SHIFT+Key_N, this,
- TQT_SLOT(slotPostToML()), actionCollection(), "post_message" );
+ TQ_SLOT(slotPostToML()), actionCollection(), "post_message" );
newToML->plugAccel( actionCollection()->tdeaccel() );
mForwardActionMenu = new TDEActionMenu( i18n("Message->","&Forward"),
@@ -2867,25 +2867,25 @@ void KMMainWidget::setupActions()
mForwardInlineAction = new TDEAction( i18n("&Inline..."),
"mail-forward", 0, this,
- TQT_SLOT(slotForwardInlineMsg()),
+ TQ_SLOT(slotForwardInlineMsg()),
actionCollection(),
"message_forward_inline" );
mForwardAttachedAction = new TDEAction( i18n("Message->Forward->","As &Attachment..."),
"mail-forward", 0, this,
- TQT_SLOT(slotForwardAttachedMsg()),
+ TQ_SLOT(slotForwardAttachedMsg()),
actionCollection(),
"message_forward_as_attachment" );
mForwardDigestAction = new TDEAction( i18n("Message->Forward->","As Di&gest..."),
"mail-forward", 0, this,
- TQT_SLOT(slotForwardDigestMsg()),
+ TQ_SLOT(slotForwardDigestMsg()),
actionCollection(),
"message_forward_as_digest" );
mRedirectAction = new TDEAction( i18n("Message->Forward->","&Redirect..."),
"mail-forward", Key_E, this,
- TQT_SLOT(slotRedirectMsg()),
+ TQ_SLOT(slotRedirectMsg()),
actionCollection(),
"message_forward_redirect" );
@@ -2896,37 +2896,37 @@ void KMMainWidget::setupActions()
mForwardActionMenu->insert( mRedirectAction );
mSendAgainAction = new TDEAction( i18n("Send A&gain..."), 0, this,
- TQT_SLOT(slotResendMsg()), actionCollection(), "send_again" );
+ TQ_SLOT(slotResendMsg()), actionCollection(), "send_again" );
//----- Create filter actions
mFilterMenu = new TDEActionMenu( i18n("&Create Filter"), "filter", actionCollection(), "create_filter" );
- connect( mFilterMenu, TQT_SIGNAL(activated()), this,
- TQT_SLOT(slotFilter()) );
+ connect( mFilterMenu, TQ_SIGNAL(activated()), this,
+ TQ_SLOT(slotFilter()) );
mSubjectFilterAction = new TDEAction( i18n("Filter on &Subject..."), 0, this,
- TQT_SLOT(slotSubjectFilter()),
+ TQ_SLOT(slotSubjectFilter()),
actionCollection(), "subject_filter");
mFilterMenu->insert( mSubjectFilterAction );
mFromFilterAction = new TDEAction( i18n("Filter on &From..."), 0, this,
- TQT_SLOT(slotFromFilter()),
+ TQ_SLOT(slotFromFilter()),
actionCollection(), "from_filter");
mFilterMenu->insert( mFromFilterAction );
mToFilterAction = new TDEAction( i18n("Filter on &To..."), 0, this,
- TQT_SLOT(slotToFilter()),
+ TQ_SLOT(slotToFilter()),
actionCollection(), "to_filter");
mFilterMenu->insert( mToFilterAction );
mListFilterAction = new TDEAction( i18n("Filter on Mailing-&List..."), 0, this,
- TQT_SLOT(slotMailingListFilter()), actionCollection(),
+ TQ_SLOT(slotMailingListFilter()), actionCollection(),
"mlist_filter");
mFilterMenu->insert( mListFilterAction );
- mPrintAction = KStdAction::print (this, TQT_SLOT(slotPrintMsg()), actionCollection());
+ mPrintAction = KStdAction::print (this, TQ_SLOT(slotPrintMsg()), actionCollection());
mUseAction = new TDEAction( i18n("New Message From &Template"), "document-new",
- Key_N, this, TQT_SLOT( slotUseTemplate() ),
+ Key_N, this, TQ_SLOT( slotUseTemplate() ),
actionCollection(), "use_template" );
mUseAction->plugAccel( actionCollection()->tdeaccel() );
@@ -2936,19 +2936,19 @@ void KMMainWidget::setupActions()
mMarkThreadAsReadAction = new TDEAction(KGuiItem(i18n("Mark Thread as &Read"), "kmmsgread",
i18n("Mark all messages in the selected thread as read")),
- 0, this, TQT_SLOT(slotSetThreadStatusRead()),
+ 0, this, TQ_SLOT(slotSetThreadStatusRead()),
actionCollection(), "thread_read");
mThreadStatusMenu->insert( mMarkThreadAsReadAction );
mMarkThreadAsNewAction = new TDEAction(KGuiItem(i18n("Mark Thread as &New"), "kmmsgnew",
i18n("Mark all messages in the selected thread as new")),
- 0, this, TQT_SLOT(slotSetThreadStatusNew()),
+ 0, this, TQ_SLOT(slotSetThreadStatusNew()),
actionCollection(), "thread_new");
mThreadStatusMenu->insert( mMarkThreadAsNewAction );
mMarkThreadAsUnreadAction = new TDEAction(KGuiItem(i18n("Mark Thread as &Unread"), "kmmsgunseen",
i18n("Mark all messages in the selected thread as unread")),
- 0, this, TQT_SLOT(slotSetThreadStatusUnread()),
+ 0, this, TQ_SLOT(slotSetThreadStatusUnread()),
actionCollection(), "thread_unread");
mThreadStatusMenu->insert( mMarkThreadAsUnreadAction );
@@ -2956,24 +2956,24 @@ void KMMainWidget::setupActions()
//----- "Mark Thread" toggle actions
mToggleThreadFlagAction = new TDEToggleAction(i18n("Mark Thread as &Important"), "mail_flag",
- 0, this, TQT_SLOT(slotSetThreadStatusFlag()),
+ 0, this, TQ_SLOT(slotSetThreadStatusFlag()),
actionCollection(), "thread_flag");
mToggleThreadFlagAction->setCheckedState( i18n("Remove &Important Thread Mark") );
mThreadStatusMenu->insert( mToggleThreadFlagAction );
mToggleThreadTodoAction = new TDEToggleAction(i18n("Mark Thread as &Action Item"), "mail_todo",
- 0, this, TQT_SLOT(slotSetThreadStatusTodo()),
+ 0, this, TQ_SLOT(slotSetThreadStatusTodo()),
actionCollection(), "thread_todo");
mToggleThreadTodoAction->setCheckedState( i18n("Remove &Action Item Thread Mark") );
mThreadStatusMenu->insert( mToggleThreadTodoAction );
//------- "Watch and ignore thread" actions
mWatchThreadAction = new TDEToggleAction(i18n("&Watch Thread"), "kmmsgwatched",
- 0, this, TQT_SLOT(slotSetThreadStatusWatched()),
+ 0, this, TQ_SLOT(slotSetThreadStatusWatched()),
actionCollection(), "thread_watched");
mIgnoreThreadAction = new TDEToggleAction(i18n("&Ignore Thread"), "mail_ignore",
- 0, this, TQT_SLOT(slotSetThreadStatusIgnored()),
+ 0, this, TQ_SLOT(slotSetThreadStatusIgnored()),
actionCollection(), "thread_ignored");
mThreadStatusMenu->insert( new TDEActionSeparator( this ) );
@@ -2981,7 +2981,7 @@ void KMMainWidget::setupActions()
mThreadStatusMenu->insert( mIgnoreThreadAction );
mSaveAttachmentsAction = new TDEAction( i18n("Save A&ttachments..."), "attach",
- 0, this, TQT_SLOT(slotSaveAttachments()),
+ 0, this, TQ_SLOT(slotSaveAttachments()),
actionCollection(), "file_save_attachments" );
mMoveActionMenu = new TDEActionMenu( i18n("&Move To" ),
@@ -2992,7 +2992,7 @@ void KMMainWidget::setupActions()
mApplyAllFiltersAction = new TDEAction( i18n("Appl&y All Filters"), "filter",
CTRL+Key_J, this,
- TQT_SLOT(slotApplyFilters()),
+ TQ_SLOT(slotApplyFilters()),
actionCollection(), "apply_filters" );
mApplyFilterActionsMenu = new TDEActionMenu( i18n("A&pply Filter" ),
@@ -3007,25 +3007,25 @@ void KMMainWidget::setupActions()
unreadMenu->setToolTip( i18n("Choose how to display the count of unread messages") );
mUnreadColumnToggle = new TDERadioAction( i18n("View->Unread Count", "View in &Separate Column"), 0, this,
- TQT_SLOT(slotToggleUnread()),
+ TQ_SLOT(slotToggleUnread()),
actionCollection(), "view_unread_column" );
mUnreadColumnToggle->setExclusiveGroup( "view_unread_group" );
unreadMenu->insert( mUnreadColumnToggle );
mUnreadTextToggle = new TDERadioAction( i18n("View->Unread Count", "View After &Folder Name"), 0, this,
- TQT_SLOT(slotToggleUnread()),
+ TQ_SLOT(slotToggleUnread()),
actionCollection(), "view_unread_text" );
mUnreadTextToggle->setExclusiveGroup( "view_unread_group" );
unreadMenu->insert( mUnreadTextToggle );
// toggle for total column
mTotalColumnToggle = new TDEToggleAction( i18n("View->", "&Total Column"), 0, this,
- TQT_SLOT(slotToggleTotalColumn()),
+ TQ_SLOT(slotToggleTotalColumn()),
actionCollection(), "view_columns_total" );
mTotalColumnToggle->setToolTip( i18n("Toggle display of column showing the "
"total number of messages in folders.") );
mSizeColumnToggle = new TDEToggleAction( i18n("View->", "&Size Column"), 0, this,
- TQT_SLOT(slotToggleSizeColumn()),
+ TQ_SLOT(slotToggleSizeColumn()),
actionCollection(), "view_columns_size" );
mSizeColumnToggle->setToolTip( i18n("Toggle display of column showing the "
"total size of messages in folders.") );
@@ -3033,77 +3033,77 @@ void KMMainWidget::setupActions()
(void)new TDEAction( KGuiItem( i18n("View->","&Expand Thread"), TQString(),
i18n("Expand the current thread") ),
Key_Period, this,
- TQT_SLOT(slotExpandThread()),
+ TQ_SLOT(slotExpandThread()),
actionCollection(), "expand_thread" );
(void)new TDEAction( KGuiItem( i18n("View->","&Collapse Thread"), TQString(),
i18n("Collapse the current thread") ),
Key_Comma, this,
- TQT_SLOT(slotCollapseThread()),
+ TQ_SLOT(slotCollapseThread()),
actionCollection(), "collapse_thread" );
(void)new TDEAction( KGuiItem( i18n("View->","Ex&pand All Threads"), TQString(),
i18n("Expand all threads in the current folder") ),
CTRL+Key_Period, this,
- TQT_SLOT(slotExpandAllThreads()),
+ TQ_SLOT(slotExpandAllThreads()),
actionCollection(), "expand_all_threads" );
(void)new TDEAction( KGuiItem( i18n("View->","C&ollapse All Threads"), TQString(),
i18n("Collapse all threads in the current folder") ),
CTRL+Key_Comma, this,
- TQT_SLOT(slotCollapseAllThreads()),
+ TQ_SLOT(slotCollapseAllThreads()),
actionCollection(), "collapse_all_threads" );
mViewSourceAction = new TDEAction( i18n("&View Source"), Key_V, this,
- TQT_SLOT(slotShowMsgSrc()), actionCollection(),
+ TQ_SLOT(slotShowMsgSrc()), actionCollection(),
"view_source" );
TDEAction* dukeOfMonmoth = new TDEAction( i18n("&Display Message"), Key_Return, this,
- TQT_SLOT( slotDisplayCurrentMessage() ), actionCollection(),
+ TQ_SLOT( slotDisplayCurrentMessage() ), actionCollection(),
"display_message" );
dukeOfMonmoth->plugAccel( actionCollection()->tdeaccel() );
//----- Go Menu
new TDEAction( KGuiItem( i18n("&Next Message"), TQString(),
i18n("Go to the next message") ),
- "N;Right", this, TQT_SLOT(slotNextMessage()),
+ "N;Right", this, TQ_SLOT(slotNextMessage()),
actionCollection(), "go_next_message" );
new TDEAction( KGuiItem( i18n("Next &Unread Message"),
TQApplication::reverseLayout() ? "go-previous" : "go-next",
i18n("Go to the next unread message") ),
- Key_Plus, this, TQT_SLOT(slotNextUnreadMessage()),
+ Key_Plus, this, TQ_SLOT(slotNextUnreadMessage()),
actionCollection(), "go_next_unread_message" );
/* ### needs better support from folders:
new TDEAction( KGuiItem( i18n("Next &Important Message"), TQString(),
i18n("Go to the next important message") ),
- 0, this, TQT_SLOT(slotNextImportantMessage()),
+ 0, this, TQ_SLOT(slotNextImportantMessage()),
actionCollection(), "go_next_important_message" );
*/
new TDEAction( KGuiItem( i18n("&Previous Message"), TQString(),
i18n("Go to the previous message") ),
- "P;Left", this, TQT_SLOT(slotPrevMessage()),
+ "P;Left", this, TQ_SLOT(slotPrevMessage()),
actionCollection(), "go_prev_message" );
new TDEAction( KGuiItem( i18n("Previous Unread &Message"),
TQApplication::reverseLayout() ? "go-next" : "go-previous",
i18n("Go to the previous unread message") ),
- Key_Minus, this, TQT_SLOT(slotPrevUnreadMessage()),
+ Key_Minus, this, TQ_SLOT(slotPrevUnreadMessage()),
actionCollection(), "go_prev_unread_message" );
/* needs better support from folders:
new TDEAction( KGuiItem( i18n("Previous I&mportant Message"), TQString(),
i18n("Go to the previous important message") ),
- 0, this, TQT_SLOT(slotPrevImportantMessage()),
+ 0, this, TQ_SLOT(slotPrevImportantMessage()),
actionCollection(), "go_prev_important_message" );
*/
TDEAction *action =
new TDEAction( KGuiItem( i18n("Next Unread &Folder"), TQString(),
i18n("Go to the next folder with unread messages") ),
- ALT+Key_Plus, this, TQT_SLOT(slotNextUnreadFolder()),
+ ALT+Key_Plus, this, TQ_SLOT(slotNextUnreadFolder()),
actionCollection(), "go_next_unread_folder" );
TDEShortcut shortcut = action->shortcut();
shortcut.append( KKey( CTRL+Key_Plus ) );
@@ -3112,7 +3112,7 @@ void KMMainWidget::setupActions()
action =
new TDEAction( KGuiItem( i18n("Previous Unread F&older"), TQString(),
i18n("Go to the previous folder with unread messages") ),
- ALT+Key_Minus, this, TQT_SLOT(slotPrevUnreadFolder()),
+ ALT+Key_Minus, this, TQ_SLOT(slotPrevUnreadFolder()),
actionCollection(), "go_prev_unread_folder" );
shortcut = action->shortcut();
shortcut.append( KKey( CTRL+Key_Minus ) );
@@ -3123,49 +3123,49 @@ void KMMainWidget::setupActions()
i18n("Scroll down current message. "
"If at end of current message, "
"go to next unread message.") ),
- Key_Space, this, TQT_SLOT(slotReadOn()),
+ Key_Space, this, TQ_SLOT(slotReadOn()),
actionCollection(), "go_next_unread_text" );
//----- Settings Menu
mToggleShowQuickSearchAction = new TDEToggleAction(i18n("Show Quick Search"), TQString(),
- 0, this, TQT_SLOT(slotToggleShowQuickSearch()),
+ 0, this, TQ_SLOT(slotToggleShowQuickSearch()),
actionCollection(), "show_quick_search");
mToggleShowQuickSearchAction->setChecked( GlobalSettings::self()->quickSearchActive() );
mToggleShowQuickSearchAction->setWhatsThis(
i18n( GlobalSettings::self()->quickSearchActiveItem()->whatsThis().utf8() ) );
(void) new TDEAction( i18n("Configure &Filters..."), 0, this,
- TQT_SLOT(slotFilter()), actionCollection(), "filter" );
+ TQ_SLOT(slotFilter()), actionCollection(), "filter" );
(void) new TDEAction( i18n("Configure &POP Filters..."), 0, this,
- TQT_SLOT(slotPopFilter()), actionCollection(), "popFilter" );
+ TQ_SLOT(slotPopFilter()), actionCollection(), "popFilter" );
(void) new TDEAction( i18n("Manage &Sieve Scripts..."), 0, this,
- TQT_SLOT(slotManageSieveScripts()), actionCollection(), "sieveFilters" );
+ TQ_SLOT(slotManageSieveScripts()), actionCollection(), "sieveFilters" );
(void) new TDEAction( KGuiItem( i18n("KMail &Introduction"), 0,
i18n("Display KMail's Welcome Page") ),
- 0, this, TQT_SLOT(slotIntro()),
+ 0, this, TQ_SLOT(slotIntro()),
actionCollection(), "help_kmail_welcomepage" );
// ----- Standard Actions
-// KStdAction::configureNotifications(this, TQT_SLOT(slotEditNotifications()), actionCollection());
+// KStdAction::configureNotifications(this, TQ_SLOT(slotEditNotifications()), actionCollection());
(void) new TDEAction( i18n("Configure &Notifications..."),
"knotify", 0, this,
- TQT_SLOT(slotEditNotifications()), actionCollection(),
+ TQ_SLOT(slotEditNotifications()), actionCollection(),
"kmail_configure_notifications" );
-// KStdAction::preferences(this, TQT_SLOT(slotSettings()), actionCollection());
+// KStdAction::preferences(this, TQ_SLOT(slotSettings()), actionCollection());
(void) new TDEAction( i18n("&Configure KMail..."),
"configure", 0, kmkernel,
- TQT_SLOT(slotShowConfigurationDialog()), actionCollection(),
+ TQ_SLOT(slotShowConfigurationDialog()), actionCollection(),
"kmail_configure_kmail" );
- KStdAction::undo(this, TQT_SLOT(slotUndo()), actionCollection(), "kmail_undo");
+ KStdAction::undo(this, TQ_SLOT(slotUndo()), actionCollection(), "kmail_undo");
- KStdAction::tipOfDay( this, TQT_SLOT( slotShowTip() ), actionCollection() );
+ KStdAction::tipOfDay( this, TQ_SLOT( slotShowTip() ), actionCollection() );
menutimer = new TQTimer( this, "menutimer" );
- connect( menutimer, TQT_SIGNAL( timeout() ), TQT_SLOT( updateMessageActions() ) );
+ connect( menutimer, TQ_SIGNAL( timeout() ), TQ_SLOT( updateMessageActions() ) );
connect( kmkernel->undoStack(),
- TQT_SIGNAL( undoStackChanged() ), this, TQT_SLOT( slotUpdateUndo() ));
+ TQ_SIGNAL( undoStackChanged() ), this, TQ_SLOT( slotUpdateUndo() ));
initializeIMAPActions( false ); // don't set state, config not read yet
updateMessageActions();
@@ -3547,8 +3547,8 @@ void KMMainWidget::slotShowStartupFolder()
mFolderTree->cleanupConfigFile();
}
- connect( kmkernel->filterMgr(), TQT_SIGNAL( filterListUpdated() ),
- this, TQT_SLOT( initializeFilterActions() ));
+ connect( kmkernel->filterMgr(), TQ_SIGNAL( filterListUpdated() ),
+ this, TQ_SLOT( initializeFilterActions() ));
// plug shortcut filter actions now
initializeFilterActions();
@@ -3724,7 +3724,7 @@ void KMMainWidget::initializeFilterActions()
if ( icon.isEmpty() )
icon = "gear";
filterAction = new TDEAction(as, icon, (*it)->shortcut(), filterCommand,
- TQT_SLOT(start()), actionCollection(),
+ TQ_SLOT(start()), actionCollection(),
normalizedName.local8Bit());
if(!addedSeparator) {
mApplyFilterActionsMenu->popupMenu()->insertSeparator();
@@ -3770,7 +3770,7 @@ void KMMainWidget::initializeIMAPActions( bool setState /* false the first time,
if ( !mTroubleshootFolderAction ) {
mTroubleshootFolderAction = new TDEAction( i18n("&Troubleshoot IMAP Cache..."), "wizard", 0,
- this, TQT_SLOT(slotTroubleshootFolder()), actionCollection(), "troubleshoot_folder" );
+ this, TQ_SLOT(slotTroubleshootFolder()), actionCollection(), "troubleshoot_folder" );
if ( setState )
updateFolderMenu(); // set initial state of the action
} else {
@@ -3806,7 +3806,7 @@ void KMMainWidget::slotShortcutChanged( KMFolder *folder )
TQString actionname = TQString( "FolderShortcut %1").arg( folder->idString() );
TQString normalizedName = actionname.replace(" ", "_");
TDEAction* action =
- new TDEAction(actionlabel, folder->shortcut(), c, TQT_SLOT(start()),
+ new TDEAction(actionlabel, folder->shortcut(), c, TQ_SLOT(start()),
actionCollection(), normalizedName.local8Bit());
action->setIcon( folder->unreadIconPath() );
c->setAction( action ); // will be deleted along with the command