@ -203,7 +203,7 @@ KMMainWidget::KMMainWidget(TQWidget *parent, const char *name,
activatePanners ( ) ;
activatePanners ( ) ;
TQTimer : : singleShot ( 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotShowStartupFolder ( ) ) ) ;
TQTimer : : singleShot ( 0 , this , TQT_SLOT ( slotShowStartupFolder ( ) ) ) ;
connect ( kmkernel - > acctMgr ( ) , TQT_SIGNAL ( checkedMail ( bool , bool , const TQMap < TQString , int > & ) ) ,
connect ( kmkernel - > acctMgr ( ) , TQT_SIGNAL ( checkedMail ( bool , bool , const TQMap < TQString , int > & ) ) ,
this , TQT_SLOT ( slotMailChecked ( bool , bool , const TQMap < TQString , int > & ) ) ) ;
this , TQT_SLOT ( slotMailChecked ( bool , bool , const TQMap < TQString , int > & ) ) ) ;
@ -251,7 +251,7 @@ KMMainWidget::KMMainWidget(TQWidget *parent, const char *name,
mVacationScriptIndicator - > hide ( ) ;
mVacationScriptIndicator - > hide ( ) ;
connect ( mVacationScriptIndicator , TQT_SIGNAL ( itemReleased ( int ) ) , TQT_SLOT ( slotEditVacation ( ) ) ) ;
connect ( mVacationScriptIndicator , TQT_SIGNAL ( itemReleased ( int ) ) , TQT_SLOT ( slotEditVacation ( ) ) ) ;
if ( GlobalSettings : : checkOutOfOfficeOnStartup ( ) )
if ( GlobalSettings : : checkOutOfOfficeOnStartup ( ) )
TQTimer : : singleShot ( 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCheckVacation ( ) ) ) ;
TQTimer : : singleShot ( 0 , this , TQT_SLOT ( slotCheckVacation ( ) ) ) ;
}
}
@ -468,7 +468,7 @@ void KMMainWidget::readConfig(void)
bool check = config - > readBoolEntry ( " checkmail-startup " , false ) ;
bool check = config - > readBoolEntry ( " checkmail-startup " , false ) ;
if ( check )
if ( check )
// do it after building the kmmainwin, so that the progressdialog is available
// do it after building the kmmainwin, so that the progressdialog is available
TQTimer : : singleShot ( 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCheckMail ( ) ) ) ;
TQTimer : : singleShot ( 0 , this , TQT_SLOT ( slotCheckMail ( ) ) ) ;
}
}
}
}
@ -631,7 +631,7 @@ void KMMainWidget::createWidgets(void)
mHeaders , TQT_SLOT ( selectNextMessage ( ) ) ) ;
mHeaders , TQT_SLOT ( selectNextMessage ( ) ) ) ;
if ( mReaderWindowActive ) {
if ( mReaderWindowActive ) {
mMsgView = new KMReaderWin ( messageParent , TQT_TQWIDGET ( this ) , actionCollection ( ) , 0 ) ;
mMsgView = new KMReaderWin ( messageParent , this , actionCollection ( ) , 0 ) ;
if ( mMsgActions ) {
if ( mMsgActions ) {
mMsgActions - > setMessageView ( mMsgView ) ;
mMsgActions - > setMessageView ( mMsgView ) ;
}
}
@ -660,17 +660,17 @@ void KMMainWidget::createWidgets(void)
TDEAction * action ;
TDEAction * action ;
mMoveMsgToFolderAction = new TDEAction ( i18n ( " Move Message to Folder " ) , Key_M , TQT_TQOBJECT ( this ) ,
mMoveMsgToFolderAction = new TDEAction ( i18n ( " Move Message to Folder " ) , Key_M , this ,
TQT_SLOT ( slotMoveMsg ( ) ) , actionCollection ( ) ,
TQT_SLOT ( slotMoveMsg ( ) ) , actionCollection ( ) ,
" move_message_to_folder " ) ;
" move_message_to_folder " ) ;
mMoveMsgToFolderAction - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
mMoveMsgToFolderAction - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action = new TDEAction ( i18n ( " Copy Message to Folder " ) , Key_C , TQT_TQOBJECT ( this ) ,
action = new TDEAction ( i18n ( " Copy Message to Folder " ) , Key_C , this ,
TQT_SLOT ( slotCopyMsg ( ) ) , actionCollection ( ) ,
TQT_SLOT ( slotCopyMsg ( ) ) , actionCollection ( ) ,
" copy_message_to_folder " ) ;
" copy_message_to_folder " ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action = new TDEAction ( i18n ( " Jump to Folder " ) , Key_J , TQT_TQOBJECT ( this ) ,
action = new TDEAction ( i18n ( " Jump to Folder " ) , Key_J , this ,
TQT_SLOT ( slotJumpToFolder ( ) ) , actionCollection ( ) ,
TQT_SLOT ( slotJumpToFolder ( ) ) , actionCollection ( ) ,
" jump_to_folder " ) ;
" jump_to_folder " ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
@ -713,7 +713,7 @@ void KMMainWidget::createWidgets(void)
//Commands not worthy of menu items, but that deserve configurable keybindings
//Commands not worthy of menu items, but that deserve configurable keybindings
mRemoveDuplicatesAction = new TDEAction (
mRemoveDuplicatesAction = new TDEAction (
i18n ( " Remove Duplicate Messages " ) , CTRL + Key_Asterisk , TQT_TQOBJECT ( this ) ,
i18n ( " Remove Duplicate Messages " ) , CTRL + Key_Asterisk , this ,
TQT_SLOT ( removeDuplicates ( ) ) , actionCollection ( ) , " remove_duplicate_messages " ) ;
TQT_SLOT ( removeDuplicates ( ) ) , actionCollection ( ) , " remove_duplicate_messages " ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
@ -723,32 +723,32 @@ void KMMainWidget::createWidgets(void)
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action = new TDEAction (
action = new TDEAction (
i18n ( " Focus on Next Folder " ) , CTRL + Key_Right , TQT_TQOBJECT( mFolderTree) ,
i18n ( " Focus on Next Folder " ) , CTRL + Key_Right , mFolderTree,
TQT_SLOT ( incCurrentFolder ( ) ) , actionCollection ( ) , " inc_current_folder " ) ;
TQT_SLOT ( incCurrentFolder ( ) ) , actionCollection ( ) , " inc_current_folder " ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action = new TDEAction (
action = new TDEAction (
i18n ( " Focus on Previous Folder " ) , CTRL + Key_Left , TQT_TQOBJECT( mFolderTree) ,
i18n ( " Focus on Previous Folder " ) , CTRL + Key_Left , mFolderTree,
TQT_SLOT ( decCurrentFolder ( ) ) , actionCollection ( ) , " dec_current_folder " ) ;
TQT_SLOT ( decCurrentFolder ( ) ) , actionCollection ( ) , " dec_current_folder " ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action = new TDEAction (
action = new TDEAction (
i18n ( " Select Folder with Focus " ) , CTRL + Key_Space , TQT_TQOBJECT( mFolderTree) ,
i18n ( " Select Folder with Focus " ) , CTRL + Key_Space , mFolderTree,
TQT_SLOT ( selectCurrentFolder ( ) ) , actionCollection ( ) , " select_current_folder " ) ;
TQT_SLOT ( selectCurrentFolder ( ) ) , actionCollection ( ) , " select_current_folder " ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action = new TDEAction (
action = new TDEAction (
i18n ( " Focus on Next Message " ) , ALT + Key_Right , TQT_TQOBJECT( mHeaders) ,
i18n ( " Focus on Next Message " ) , ALT + Key_Right , mHeaders,
TQT_SLOT ( incCurrentMessage ( ) ) , actionCollection ( ) , " inc_current_message " ) ;
TQT_SLOT ( incCurrentMessage ( ) ) , actionCollection ( ) , " inc_current_message " ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action = new TDEAction (
action = new TDEAction (
i18n ( " Focus on Previous Message " ) , ALT + Key_Left , TQT_TQOBJECT( mHeaders) ,
i18n ( " Focus on Previous Message " ) , ALT + Key_Left , mHeaders,
TQT_SLOT ( decCurrentMessage ( ) ) , actionCollection ( ) , " dec_current_message " ) ;
TQT_SLOT ( decCurrentMessage ( ) ) , actionCollection ( ) , " dec_current_message " ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action = new TDEAction (
action = new TDEAction (
i18n ( " Select Message with Focus " ) , ALT + Key_Space , TQT_TQOBJECT( mHeaders) ,
i18n ( " Select Message with Focus " ) , ALT + Key_Space , mHeaders,
TQT_SLOT ( selectCurrentMessage ( ) ) , actionCollection ( ) , " select_current_message " ) ;
TQT_SLOT ( selectCurrentMessage ( ) ) , actionCollection ( ) , " select_current_message " ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
action - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
@ -1716,7 +1716,7 @@ void KMMainWidget::slotCheckVacation()
if ( ! kmkernel - > askToGoOnline ( ) )
if ( ! kmkernel - > askToGoOnline ( ) )
return ;
return ;
Vacation * vac = new Vacation ( TQT_TQOBJECT ( this ) , true /* check only */ ) ;
Vacation * vac = new Vacation ( this , true /* check only */ ) ;
connect ( vac , TQT_SIGNAL ( scriptActive ( bool ) ) , TQT_SLOT ( updateVactionScripStatus ( bool ) ) ) ;
connect ( vac , TQT_SIGNAL ( scriptActive ( bool ) ) , TQT_SLOT ( updateVactionScripStatus ( bool ) ) ) ;
}
}
@ -1729,7 +1729,7 @@ void KMMainWidget::slotEditVacation()
if ( mVacation )
if ( mVacation )
return ;
return ;
mVacation = new Vacation ( TQT_TQOBJECT ( this ) ) ;
mVacation = new Vacation ( this ) ;
connect ( mVacation , TQT_SIGNAL ( scriptActive ( bool ) ) , TQT_SLOT ( updateVactionScripStatus ( bool ) ) ) ;
connect ( mVacation , TQT_SIGNAL ( scriptActive ( bool ) ) , TQT_SLOT ( updateVactionScripStatus ( bool ) ) ) ;
if ( mVacation - > isUsable ( ) ) {
if ( mVacation - > isUsable ( ) ) {
connect ( mVacation , TQT_SIGNAL ( result ( bool ) ) , mVacation , TQT_SLOT ( deleteLater ( ) ) ) ;
connect ( mVacation , TQT_SIGNAL ( result ( bool ) ) , mVacation , TQT_SLOT ( deleteLater ( ) ) ) ;
@ -1847,7 +1847,7 @@ void KMMainWidget::setupForwardActions()
mForwardActionMenu - > insert ( mForwardAttachedAction , 1 ) ;
mForwardActionMenu - > insert ( mForwardAttachedAction , 1 ) ;
mForwardInlineAction - > setShortcut ( Key_F ) ;
mForwardInlineAction - > setShortcut ( Key_F ) ;
mForwardAttachedAction - > setShortcut ( SHIFT + Key_F ) ;
mForwardAttachedAction - > setShortcut ( SHIFT + Key_F ) ;
connect ( mForwardActionMenu , TQT_SIGNAL ( activated ( ) ) , TQT_TQOBJECT ( this ) ,
connect ( mForwardActionMenu , TQT_SIGNAL ( activated ( ) ) , this ,
TQT_SLOT ( slotForwardInlineMsg ( ) ) ) ;
TQT_SLOT ( slotForwardInlineMsg ( ) ) ) ;
} else {
} else {
@ -1855,7 +1855,7 @@ void KMMainWidget::setupForwardActions()
mForwardActionMenu - > insert ( mForwardInlineAction , 1 ) ;
mForwardActionMenu - > insert ( mForwardInlineAction , 1 ) ;
mForwardInlineAction - > setShortcut ( SHIFT + Key_F ) ;
mForwardInlineAction - > setShortcut ( SHIFT + Key_F ) ;
mForwardAttachedAction - > setShortcut ( Key_F ) ;
mForwardAttachedAction - > setShortcut ( Key_F ) ;
connect ( mForwardActionMenu , TQT_SIGNAL ( activated ( ) ) , TQT_TQOBJECT ( this ) ,
connect ( mForwardActionMenu , TQT_SIGNAL ( activated ( ) ) , this ,
TQT_SLOT ( slotForwardAttachedMsg ( ) ) ) ;
TQT_SLOT ( slotForwardAttachedMsg ( ) ) ) ;
}
}
}
}
@ -2059,7 +2059,7 @@ void KMMainWidget::folderSelected( KMFolder* aFolder, bool forceJumpToUnread )
// Set a timer to show a splash screen if fetching folder contents
// 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)
// takes more than the amount of seconds configured in the kmailrc (default 1000 msec)
mShowBusySplashTimer = new TQTimer ( this ) ;
mShowBusySplashTimer = new TQTimer ( this ) ;
connect ( mShowBusySplashTimer , TQT_SIGNAL ( timeout ( ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotShowBusySplash ( ) ) ) ;
connect ( mShowBusySplashTimer , TQT_SIGNAL ( timeout ( ) ) , this , TQT_SLOT ( slotShowBusySplash ( ) ) ) ;
mShowBusySplashTimer - > start ( GlobalSettings : : self ( ) - > folderLoadingTimeout ( ) , true ) ;
mShowBusySplashTimer - > start ( GlobalSettings : : self ( ) - > folderLoadingTimeout ( ) , true ) ;
return ;
return ;
} else {
} else {
@ -2509,26 +2509,26 @@ void KMMainWidget::updateCustomTemplateMenus()
new TDEActionMenu ( i18n ( " Forward With Custom Template " ) ,
new TDEActionMenu ( i18n ( " Forward With Custom Template " ) ,
" mail_custom_forward " ,
" mail_custom_forward " ,
actionCollection ( ) , " custom_forward " ) ;
actionCollection ( ) , " custom_forward " ) ;
TQSignalMapper * mCustomForwardMapper = new TQSignalMapper ( TQT_TQOBJECT ( this ) ) ;
TQSignalMapper * mCustomForwardMapper = new TQSignalMapper ( this ) ;
connect ( mCustomForwardMapper , TQT_SIGNAL ( mapped ( int ) ) ,
connect ( mCustomForwardMapper , TQT_SIGNAL ( mapped ( int ) ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCustomForwardMsg ( int ) ) ) ;
this , TQT_SLOT ( slotCustomForwardMsg ( int ) ) ) ;
mForwardActionMenu - > insert ( mCustomForwardActionMenu ) ;
mForwardActionMenu - > insert ( mCustomForwardActionMenu ) ;
mCustomReplyActionMenu =
mCustomReplyActionMenu =
new TDEActionMenu ( i18n ( " Reply With Custom Template " ) , " mail_custom_reply " ,
new TDEActionMenu ( i18n ( " Reply With Custom Template " ) , " mail_custom_reply " ,
actionCollection ( ) , " custom_reply " ) ;
actionCollection ( ) , " custom_reply " ) ;
TQSignalMapper * mCustomReplyMapper = new TQSignalMapper ( TQT_TQOBJECT ( this ) ) ;
TQSignalMapper * mCustomReplyMapper = new TQSignalMapper ( this ) ;
connect ( mCustomReplyMapper , TQT_SIGNAL ( mapped ( int ) ) ,
connect ( mCustomReplyMapper , TQT_SIGNAL ( mapped ( int ) ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCustomReplyToMsg ( int ) ) ) ;
this , TQT_SLOT ( slotCustomReplyToMsg ( int ) ) ) ;
mMsgActions - > replyMenu ( ) - > insert ( mCustomReplyActionMenu ) ;
mMsgActions - > replyMenu ( ) - > insert ( mCustomReplyActionMenu ) ;
mCustomReplyAllActionMenu =
mCustomReplyAllActionMenu =
new TDEActionMenu ( i18n ( " Reply to All With Custom Template " ) ,
new TDEActionMenu ( i18n ( " Reply to All With Custom Template " ) ,
" mail_custom_reply_all " ,
" mail_custom_reply_all " ,
actionCollection ( ) , " custom_reply_all " ) ;
actionCollection ( ) , " custom_reply_all " ) ;
TQSignalMapper * mCustomReplyAllMapper = new TQSignalMapper ( TQT_TQOBJECT ( this ) ) ;
TQSignalMapper * mCustomReplyAllMapper = new TQSignalMapper ( this ) ;
connect ( mCustomReplyAllMapper , TQT_SIGNAL ( mapped ( int ) ) ,
connect ( mCustomReplyAllMapper , TQT_SIGNAL ( mapped ( int ) ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCustomReplyAllToMsg ( int ) ) ) ;
this , TQT_SLOT ( slotCustomReplyAllToMsg ( int ) ) ) ;
mMsgActions - > replyMenu ( ) - > insert ( mCustomReplyAllActionMenu ) ;
mMsgActions - > replyMenu ( ) - > insert ( mCustomReplyAllActionMenu ) ;
mCustomTemplates . clear ( ) ;
mCustomTemplates . clear ( ) ;
@ -2645,21 +2645,21 @@ void KMMainWidget::setupActions()
//----- File Menu
//----- File Menu
mSaveAsAction = new TDEAction ( i18n ( " Save &As... " ) , " document-save " ,
mSaveAsAction = new TDEAction ( i18n ( " Save &As... " ) , " document-save " ,
TDEStdAccel : : shortcut ( TDEStdAccel : : Save ) ,
TDEStdAccel : : shortcut ( TDEStdAccel : : Save ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSaveMsg ( ) ) , actionCollection ( ) , " file_save_as " ) ;
this , TQT_SLOT ( slotSaveMsg ( ) ) , actionCollection ( ) , " file_save_as " ) ;
mOpenAction = KStdAction : : open ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotOpenMsg ( ) ) ,
mOpenAction = KStdAction : : open ( this , TQT_SLOT ( slotOpenMsg ( ) ) ,
actionCollection ( ) ) ;
actionCollection ( ) ) ;
( void ) new TDEAction ( i18n ( " &Compact All Folders " ) , 0 ,
( void ) new TDEAction ( i18n ( " &Compact All Folders " ) , 0 ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCompactAll ( ) ) ,
this , TQT_SLOT ( slotCompactAll ( ) ) ,
actionCollection ( ) , " compact_all_folders " ) ;
actionCollection ( ) , " compact_all_folders " ) ;
( void ) new TDEAction ( i18n ( " &Expire All Folders " ) , 0 ,
( void ) new TDEAction ( i18n ( " &Expire All Folders " ) , 0 ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotExpireAll ( ) ) ,
this , TQT_SLOT ( slotExpireAll ( ) ) ,
actionCollection ( ) , " expire_all_folders " ) ;
actionCollection ( ) , " expire_all_folders " ) ;
( void ) new TDEAction ( i18n ( " &Refresh Local IMAP Cache " ) , " refresh " ,
( void ) new TDEAction ( i18n ( " &Refresh Local IMAP Cache " ) , " refresh " ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotInvalidateIMAPFolders ( ) ) ,
this , TQT_SLOT ( slotInvalidateIMAPFolders ( ) ) ,
actionCollection ( ) , " file_invalidate_imap_cache " ) ;
actionCollection ( ) , " file_invalidate_imap_cache " ) ;
( void ) new TDEAction ( i18n ( " Empty All &Trash Folders " ) , 0 ,
( void ) new TDEAction ( i18n ( " Empty All &Trash Folders " ) , 0 ,
@ -2667,7 +2667,7 @@ void KMMainWidget::setupActions()
actionCollection ( ) , " empty_trash " ) ;
actionCollection ( ) , " empty_trash " ) ;
( void ) new TDEAction ( i18n ( " Check &Mail " ) , " mail_get " , CTRL + Key_L ,
( void ) new TDEAction ( i18n ( " Check &Mail " ) , " mail_get " , CTRL + Key_L ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCheckMail ( ) ) ,
this , TQT_SLOT ( slotCheckMail ( ) ) ,
actionCollection ( ) , " check_mail " ) ;
actionCollection ( ) , " check_mail " ) ;
mFavoritesCheckMailAction = new TDEAction ( i18n ( " Check Mail in Favorite Folders " ) ,
mFavoritesCheckMailAction = new TDEAction ( i18n ( " Check Mail in Favorite Folders " ) ,
@ -2687,10 +2687,10 @@ void KMMainWidget::setupActions()
connect ( mActMenu , TQT_SIGNAL ( activated ( int ) ) , this , TQT_SLOT ( slotCheckOneAccount ( int ) ) ) ;
connect ( mActMenu , TQT_SIGNAL ( activated ( int ) ) , this , TQT_SLOT ( slotCheckOneAccount ( int ) ) ) ;
connect ( mActMenu , TQT_SIGNAL ( aboutToShow ( ) ) , this , TQT_SLOT ( getAccountMenu ( ) ) ) ;
connect ( mActMenu , TQT_SIGNAL ( aboutToShow ( ) ) , this , TQT_SLOT ( getAccountMenu ( ) ) ) ;
( void ) new TDEAction ( i18n ( " &Send Queued Messages " ) , " mail-send " , 0 , TQT_TQOBJECT ( this ) ,
( void ) new TDEAction ( i18n ( " &Send Queued Messages " ) , " mail-send " , 0 , this ,
TQT_SLOT ( slotSendQueued ( ) ) , actionCollection ( ) , " send_queued " ) ;
TQT_SLOT ( slotSendQueued ( ) ) , actionCollection ( ) , " send_queued " ) ;
( void ) new TDEAction ( i18n ( " Online Status (unknown) " ) , " online_status " , 0 , TQT_TQOBJECT ( this ) ,
( void ) new TDEAction ( i18n ( " Online Status (unknown) " ) , " online_status " , 0 , this ,
TQT_SLOT ( slotOnlineStatus ( ) ) , actionCollection ( ) , " online_status " ) ;
TQT_SLOT ( slotOnlineStatus ( ) ) , actionCollection ( ) , " online_status " ) ;
TDEActionMenu * sendActionMenu = new
TDEActionMenu * sendActionMenu = new
@ -2699,165 +2699,165 @@ void KMMainWidget::setupActions()
sendActionMenu - > setDelayed ( true ) ;
sendActionMenu - > setDelayed ( true ) ;
mSendMenu = sendActionMenu - > popupMenu ( ) ;
mSendMenu = sendActionMenu - > popupMenu ( ) ;
connect ( mSendMenu , TQT_SIGNAL ( activated ( int ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSendQueuedVia ( int ) ) ) ;
connect ( mSendMenu , TQT_SIGNAL ( activated ( int ) ) , this , TQT_SLOT ( slotSendQueuedVia ( int ) ) ) ;
connect ( mSendMenu , TQT_SIGNAL ( aboutToShow ( ) ) , this , TQT_SLOT ( getTransportMenu ( ) ) ) ;
connect ( mSendMenu , TQT_SIGNAL ( aboutToShow ( ) ) , this , TQT_SLOT ( getTransportMenu ( ) ) ) ;
TDEAction * act ;
TDEAction * act ;
//----- Tools menu
//----- Tools menu
if ( parent ( ) - > inherits ( " KMMainWin " ) ) {
if ( parent ( ) - > inherits ( " KMMainWin " ) ) {
act = new TDEAction ( i18n ( " &Address Book... " ) , " contents " , 0 , TQT_TQOBJECT ( this ) ,
act = new TDEAction ( i18n ( " &Address Book... " ) , " contents " , 0 , this ,
TQT_SLOT ( slotAddrBook ( ) ) , actionCollection ( ) , " addressbook " ) ;
TQT_SLOT ( slotAddrBook ( ) ) , actionCollection ( ) , " addressbook " ) ;
if ( TDEStandardDirs : : findExe ( " kaddressbook " ) . isEmpty ( ) ) act - > setEnabled ( false ) ;
if ( TDEStandardDirs : : findExe ( " kaddressbook " ) . isEmpty ( ) ) act - > setEnabled ( false ) ;
}
}
act = new TDEAction ( i18n ( " Certificate Manager... " ) , " pgp-keys " , 0 , TQT_TQOBJECT ( this ) ,
act = new TDEAction ( i18n ( " Certificate Manager... " ) , " pgp-keys " , 0 , this ,
TQT_SLOT ( slotStartCertManager ( ) ) , actionCollection ( ) , " tools_start_certman " ) ;
TQT_SLOT ( slotStartCertManager ( ) ) , actionCollection ( ) , " tools_start_certman " ) ;
// disable action if no certman binary is around
// disable action if no certman binary is around
if ( TDEStandardDirs : : findExe ( " kleopatra " ) . isEmpty ( ) ) act - > setEnabled ( false ) ;
if ( TDEStandardDirs : : findExe ( " kleopatra " ) . isEmpty ( ) ) act - > setEnabled ( false ) ;
act = new TDEAction ( i18n ( " GnuPG Log Viewer... " ) , " pgp-keys " , 0 , TQT_TQOBJECT ( this ) ,
act = new TDEAction ( i18n ( " GnuPG Log Viewer... " ) , " pgp-keys " , 0 , this ,
TQT_SLOT ( slotStartWatchGnuPG ( ) ) , actionCollection ( ) , " tools_start_kwatchgnupg " ) ;
TQT_SLOT ( slotStartWatchGnuPG ( ) ) , actionCollection ( ) , " tools_start_kwatchgnupg " ) ;
// disable action if no kwatchgnupg binary is around
// disable action if no kwatchgnupg binary is around
if ( TDEStandardDirs : : findExe ( " kwatchgnupg " ) . isEmpty ( ) ) act - > setEnabled ( false ) ;
if ( TDEStandardDirs : : findExe ( " kwatchgnupg " ) . isEmpty ( ) ) act - > setEnabled ( false ) ;
act = new TDEAction ( i18n ( " &Import Messages... " ) , " document-open " , 0 , TQT_TQOBJECT ( this ) ,
act = new TDEAction ( i18n ( " &Import Messages... " ) , " document-open " , 0 , this ,
TQT_SLOT ( slotImport ( ) ) , actionCollection ( ) , " import " ) ;
TQT_SLOT ( slotImport ( ) ) , actionCollection ( ) , " import " ) ;
if ( TDEStandardDirs : : findExe ( " kmailcvt " ) . isEmpty ( ) ) act - > setEnabled ( false ) ;
if ( TDEStandardDirs : : findExe ( " kmailcvt " ) . isEmpty ( ) ) act - > setEnabled ( false ) ;
# if !defined(NDEBUG)
# if !defined(NDEBUG)
( void ) new TDEAction ( i18n ( " &Debug Sieve... " ) ,
( void ) new TDEAction ( i18n ( " &Debug Sieve... " ) ,
" idea " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotDebugSieve ( ) ) ,
" idea " , 0 , this , TQT_SLOT ( slotDebugSieve ( ) ) ,
actionCollection ( ) , " tools_debug_sieve " ) ;
actionCollection ( ) , " tools_debug_sieve " ) ;
# endif
# endif
if ( GlobalSettings : : allowOutOfOfficeSettings ( ) ) {
if ( GlobalSettings : : allowOutOfOfficeSettings ( ) ) {
( void ) new TDEAction ( i18n ( " Edit \" Out of Office \" Replies... " ) ,
( void ) new TDEAction ( i18n ( " Edit \" Out of Office \" Replies... " ) ,
" configure " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotEditVacation ( ) ) ,
" configure " , 0 , this , TQT_SLOT ( slotEditVacation ( ) ) ,
actionCollection ( ) , " tools_edit_vacation " ) ;
actionCollection ( ) , " tools_edit_vacation " ) ;
}
}
( void ) new TDEAction ( i18n ( " Filter &Log Viewer... " ) , 0 , TQT_TQOBJECT ( this ) ,
( void ) new TDEAction ( i18n ( " Filter &Log Viewer... " ) , 0 , this ,
TQT_SLOT ( slotFilterLogViewer ( ) ) , actionCollection ( ) , " filter_log_viewer " ) ;
TQT_SLOT ( slotFilterLogViewer ( ) ) , actionCollection ( ) , " filter_log_viewer " ) ;
( void ) new TDEAction ( i18n ( " &Anti-Spam Wizard... " ) , 0 , TQT_TQOBJECT ( this ) ,
( void ) new TDEAction ( i18n ( " &Anti-Spam Wizard... " ) , 0 , this ,
TQT_SLOT ( slotAntiSpamWizard ( ) ) , actionCollection ( ) , " antiSpamWizard " ) ;
TQT_SLOT ( slotAntiSpamWizard ( ) ) , actionCollection ( ) , " antiSpamWizard " ) ;
( void ) new TDEAction ( i18n ( " &Anti-Virus Wizard... " ) , 0 , TQT_TQOBJECT ( this ) ,
( void ) new TDEAction ( i18n ( " &Anti-Virus Wizard... " ) , 0 , this ,
TQT_SLOT ( slotAntiVirusWizard ( ) ) , actionCollection ( ) , " antiVirusWizard " ) ;
TQT_SLOT ( slotAntiVirusWizard ( ) ) , actionCollection ( ) , " antiVirusWizard " ) ;
//----- Edit Menu
//----- Edit Menu
mTrashAction = new TDEAction ( KGuiItem ( i18n ( " &Move to Trash " ) , " edittrash " ,
mTrashAction = new TDEAction ( KGuiItem ( i18n ( " &Move to Trash " ) , " edittrash " ,
i18n ( " Move message to trashcan " ) ) ,
i18n ( " Move message to trashcan " ) ) ,
Key_Delete , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTrashMsg ( ) ) ,
Key_Delete , this , TQT_SLOT ( slotTrashMsg ( ) ) ,
actionCollection ( ) , " move_to_trash " ) ;
actionCollection ( ) , " move_to_trash " ) ;
/* The delete action is nowhere in the gui, by default, so we need to make
/* The delete action is nowhere in the gui, by default, so we need to make
* sure it is plugged into the TDEAccel now , since that won ' t happen on
* sure it is plugged into the TDEAccel now , since that won ' t happen on
* XMLGui construction or manual - > plug ( ) . This is only a problem when run
* XMLGui construction or manual - > plug ( ) . This is only a problem when run
* as a part , though . */
* as a part , though . */
mDeleteAction = new TDEAction ( i18n ( " &Delete " ) , " edit-delete " , SHIFT + Key_Delete , TQT_TQOBJECT ( this ) ,
mDeleteAction = new TDEAction ( i18n ( " &Delete " ) , " edit-delete " , SHIFT + Key_Delete , this ,
TQT_SLOT ( slotDeleteMsg ( ) ) , actionCollection ( ) , " delete " ) ;
TQT_SLOT ( slotDeleteMsg ( ) ) , actionCollection ( ) , " delete " ) ;
mDeleteAction - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
mDeleteAction - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
mTrashThreadAction = new TDEAction ( KGuiItem ( i18n ( " M&ove Thread to Trash " ) , " edittrash " ,
mTrashThreadAction = new TDEAction ( KGuiItem ( i18n ( " M&ove Thread to Trash " ) , " edittrash " ,
i18n ( " Move thread to trashcan " ) ) ,
i18n ( " Move thread to trashcan " ) ) ,
CTRL + Key_Delete , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTrashThread ( ) ) ,
CTRL + Key_Delete , this , TQT_SLOT ( slotTrashThread ( ) ) ,
actionCollection ( ) , " move_thread_to_trash " ) ;
actionCollection ( ) , " move_thread_to_trash " ) ;
mDeleteThreadAction = new TDEAction ( i18n ( " Delete T&hread " ) , " edit-delete " , CTRL + SHIFT + Key_Delete , TQT_TQOBJECT ( this ) ,
mDeleteThreadAction = new TDEAction ( i18n ( " Delete T&hread " ) , " edit-delete " , CTRL + SHIFT + Key_Delete , this ,
TQT_SLOT ( slotDeleteThread ( ) ) , actionCollection ( ) , " delete_thread " ) ;
TQT_SLOT ( slotDeleteThread ( ) ) , actionCollection ( ) , " delete_thread " ) ;
( void ) new TDEAction ( i18n ( " &Find Messages... " ) , " mail_find " , Key_S , TQT_TQOBJECT ( this ) ,
( void ) new TDEAction ( i18n ( " &Find Messages... " ) , " mail_find " , Key_S , this ,
TQT_SLOT ( slotRequestFullSearchFromQuickSearch ( ) ) , actionCollection ( ) , " search_messages " ) ;
TQT_SLOT ( slotRequestFullSearchFromQuickSearch ( ) ) , actionCollection ( ) , " search_messages " ) ;
mFindInMessageAction = new TDEAction ( i18n ( " &Find in Message... " ) , " edit-find " , TDEStdAccel : : shortcut ( TDEStdAccel : : Find ) , TQT_TQOBJECT ( this ) ,
mFindInMessageAction = new TDEAction ( i18n ( " &Find in Message... " ) , " edit-find " , TDEStdAccel : : shortcut ( TDEStdAccel : : Find ) , this ,
TQT_SLOT ( slotFind ( ) ) , actionCollection ( ) , " find_in_messages " ) ;
TQT_SLOT ( slotFind ( ) ) , actionCollection ( ) , " find_in_messages " ) ;
( void ) new TDEAction ( i18n ( " Select &All Messages " ) , TDEStdAccel : : selectAll ( ) , TQT_TQOBJECT ( this ) ,
( void ) new TDEAction ( i18n ( " Select &All Messages " ) , TDEStdAccel : : selectAll ( ) , this ,
TQT_SLOT ( slotMarkAll ( ) ) , actionCollection ( ) , " mark_all_messages " ) ;
TQT_SLOT ( slotMarkAll ( ) ) , actionCollection ( ) , " mark_all_messages " ) ;
//----- Folder Menu
//----- Folder Menu
mNewFolderAction = new TDEAction ( i18n ( " &New Folder... " ) , " folder-new " , 0 , TQT_TQOBJECT( mFolderTree) ,
mNewFolderAction = new TDEAction ( i18n ( " &New Folder... " ) , " folder-new " , 0 , mFolderTree,
TQT_SLOT ( addChildFolder ( ) ) , actionCollection ( ) , " new_folder " ) ;
TQT_SLOT ( addChildFolder ( ) ) , actionCollection ( ) , " new_folder " ) ;
mModifyFolderAction = new TDEAction ( i18n ( " &Properties " ) , " configure " , 0 , TQT_TQOBJECT ( this ) ,
mModifyFolderAction = new TDEAction ( i18n ( " &Properties " ) , " configure " , 0 , this ,
TQT_SLOT ( slotModifyFolder ( ) ) , actionCollection ( ) , " modify " ) ;
TQT_SLOT ( slotModifyFolder ( ) ) , actionCollection ( ) , " modify " ) ;
mFolderMailingListPropertiesAction = new TDEAction ( i18n ( " &Mailing List Management... " ) ,
mFolderMailingListPropertiesAction = new TDEAction ( i18n ( " &Mailing List Management... " ) ,
/*"folder_mailinglist_properties",*/ 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFolderMailingListProperties ( ) ) ,
/*"folder_mailinglist_properties",*/ 0 , this , TQT_SLOT ( slotFolderMailingListProperties ( ) ) ,
actionCollection ( ) , " folder_mailinglist_properties " ) ;
actionCollection ( ) , " folder_mailinglist_properties " ) ;
mFolderShortCutCommandAction = new TDEAction ( i18n ( " &Assign Shortcut... " ) , " configure_shortcuts " ,
mFolderShortCutCommandAction = new TDEAction ( i18n ( " &Assign Shortcut... " ) , " configure_shortcuts " ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFolderShortcutCommand ( ) ) , actionCollection ( ) ,
0 , this , TQT_SLOT ( slotFolderShortcutCommand ( ) ) , actionCollection ( ) ,
" folder_shortcut_command " ) ;
" folder_shortcut_command " ) ;
mMarkAllAsReadAction = new TDEAction ( i18n ( " Mark All Messages as &Read " ) , " goto " , 0 , TQT_TQOBJECT ( this ) ,
mMarkAllAsReadAction = new TDEAction ( i18n ( " Mark All Messages as &Read " ) , " goto " , 0 , this ,
TQT_SLOT ( slotMarkAllAsRead ( ) ) , actionCollection ( ) , " mark_all_as_read " ) ;
TQT_SLOT ( slotMarkAllAsRead ( ) ) , actionCollection ( ) , " mark_all_as_read " ) ;
mExpireFolderAction = new TDEAction ( i18n ( " &Expiration Settings " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotExpireFolder ( ) ) ,
mExpireFolderAction = new TDEAction ( i18n ( " &Expiration Settings " ) , 0 , this , TQT_SLOT ( slotExpireFolder ( ) ) ,
actionCollection ( ) , " expire " ) ;
actionCollection ( ) , " expire " ) ;
mCompactFolderAction = new TDEAction ( i18n ( " &Compact Folder " ) , 0 , TQT_TQOBJECT ( this ) ,
mCompactFolderAction = new TDEAction ( i18n ( " &Compact Folder " ) , 0 , this ,
TQT_SLOT ( slotCompactFolder ( ) ) , actionCollection ( ) , " compact " ) ;
TQT_SLOT ( slotCompactFolder ( ) ) , actionCollection ( ) , " compact " ) ;
mRefreshFolderAction = new TDEAction ( i18n ( " Check Mail &in This Folder " ) , " reload " ,
mRefreshFolderAction = new TDEAction ( i18n ( " Check Mail &in This Folder " ) , " reload " ,
TDEStdAccel : : shortcut ( TDEStdAccel : : Reload ) , TQT_TQOBJECT ( this ) ,
TDEStdAccel : : shortcut ( TDEStdAccel : : Reload ) , this ,
TQT_SLOT ( slotRefreshFolder ( ) ) ,
TQT_SLOT ( slotRefreshFolder ( ) ) ,
actionCollection ( ) , " refresh_folder " ) ;
actionCollection ( ) , " refresh_folder " ) ;
mTroubleshootFolderAction = 0 ; // set in initializeIMAPActions
mTroubleshootFolderAction = 0 ; // set in initializeIMAPActions
mEmptyFolderAction = new TDEAction ( " foo " /*set in updateFolderMenu*/ , " edittrash " , 0 , TQT_TQOBJECT ( this ) ,
mEmptyFolderAction = new TDEAction ( " foo " /*set in updateFolderMenu*/ , " edittrash " , 0 , this ,
TQT_SLOT ( slotEmptyFolder ( ) ) , actionCollection ( ) , " empty " ) ;
TQT_SLOT ( slotEmptyFolder ( ) ) , actionCollection ( ) , " empty " ) ;
mRemoveFolderAction = new TDEAction ( " foo " /*set in updateFolderMenu*/ , " edit-delete " , 0 , TQT_TQOBJECT ( this ) ,
mRemoveFolderAction = new TDEAction ( " foo " /*set in updateFolderMenu*/ , " edit-delete " , 0 , this ,
TQT_SLOT ( slotRemoveFolder ( ) ) , actionCollection ( ) , " delete_folder " ) ;
TQT_SLOT ( slotRemoveFolder ( ) ) , actionCollection ( ) , " delete_folder " ) ;
mArchiveFolderAction = new TDEAction ( i18n ( " &Archive Folder... " ) , " document-save " , 0 , TQT_TQOBJECT ( this ) ,
mArchiveFolderAction = new TDEAction ( i18n ( " &Archive Folder... " ) , " document-save " , 0 , this ,
TQT_SLOT ( slotArchiveFolder ( ) ) , actionCollection ( ) ,
TQT_SLOT ( slotArchiveFolder ( ) ) , actionCollection ( ) ,
" archive_folder " ) ;
" archive_folder " ) ;
mPreferHtmlAction = new TDEToggleAction ( i18n ( " Prefer &HTML to Plain Text " ) , 0 , TQT_TQOBJECT ( this ) ,
mPreferHtmlAction = new TDEToggleAction ( i18n ( " Prefer &HTML to Plain Text " ) , 0 , this ,
TQT_SLOT ( slotOverrideHtml ( ) ) , actionCollection ( ) , " prefer_html " ) ;
TQT_SLOT ( slotOverrideHtml ( ) ) , actionCollection ( ) , " prefer_html " ) ;
mPreferHtmlLoadExtAction = new TDEToggleAction ( i18n ( " Load E&xternal References " ) , 0 , TQT_TQOBJECT ( this ) ,
mPreferHtmlLoadExtAction = new TDEToggleAction ( i18n ( " Load E&xternal References " ) , 0 , this ,
TQT_SLOT ( slotOverrideHtmlLoadExt ( ) ) , actionCollection ( ) , " prefer_html_external_refs " ) ;
TQT_SLOT ( slotOverrideHtmlLoadExt ( ) ) , actionCollection ( ) , " prefer_html_external_refs " ) ;
mThreadMessagesAction = new TDEToggleAction ( i18n ( " &Thread Messages " ) , 0 , TQT_TQOBJECT ( this ) ,
mThreadMessagesAction = new TDEToggleAction ( i18n ( " &Thread Messages " ) , 0 , this ,
TQT_SLOT ( slotOverrideThread ( ) ) , actionCollection ( ) , " thread_messages " ) ;
TQT_SLOT ( slotOverrideThread ( ) ) , actionCollection ( ) , " thread_messages " ) ;
mThreadBySubjectAction = new TDEToggleAction ( i18n ( " Thread Messages also by &Subject " ) , 0 , TQT_TQOBJECT ( this ) ,
mThreadBySubjectAction = new TDEToggleAction ( i18n ( " Thread Messages also by &Subject " ) , 0 , this ,
TQT_SLOT ( slotToggleSubjectThreading ( ) ) , actionCollection ( ) , " thread_messages_by_subject " ) ;
TQT_SLOT ( slotToggleSubjectThreading ( ) ) , actionCollection ( ) , " thread_messages_by_subject " ) ;
new TDEAction ( i18n ( " Copy Folder " ) , " edit-copy " , SHIFT + CTRL + Key_C , TQT_TQOBJECT( folderTree( ) ) ,
new TDEAction ( i18n ( " Copy Folder " ) , " edit-copy " , SHIFT + CTRL + Key_C , folderTree( ) ,
TQT_SLOT ( copyFolder ( ) ) , actionCollection ( ) , " copy_folder " ) ;
TQT_SLOT ( copyFolder ( ) ) , actionCollection ( ) , " copy_folder " ) ;
new TDEAction ( i18n ( " Cut Folder " ) , " edit-cut " , SHIFT + CTRL + Key_X , TQT_TQOBJECT( folderTree( ) ) ,
new TDEAction ( i18n ( " Cut Folder " ) , " edit-cut " , SHIFT + CTRL + Key_X , folderTree( ) ,
TQT_SLOT ( cutFolder ( ) ) , actionCollection ( ) , " cut_folder " ) ;
TQT_SLOT ( cutFolder ( ) ) , actionCollection ( ) , " cut_folder " ) ;
new TDEAction ( i18n ( " Paste Folder " ) , " edit-paste " , SHIFT + CTRL + Key_V , TQT_TQOBJECT( folderTree( ) ) ,
new TDEAction ( i18n ( " Paste Folder " ) , " edit-paste " , SHIFT + CTRL + Key_V , folderTree( ) ,
TQT_SLOT ( pasteFolder ( ) ) , actionCollection ( ) , " paste_folder " ) ;
TQT_SLOT ( pasteFolder ( ) ) , actionCollection ( ) , " paste_folder " ) ;
new TDEAction ( i18n ( " Copy Messages " ) , " edit-copy " , ALT + CTRL + Key_C , TQT_TQOBJECT( headers( ) ) ,
new TDEAction ( i18n ( " Copy Messages " ) , " edit-copy " , ALT + CTRL + Key_C , headers( ) ,
TQT_SLOT ( copyMessages ( ) ) , actionCollection ( ) , " copy_messages " ) ;
TQT_SLOT ( copyMessages ( ) ) , actionCollection ( ) , " copy_messages " ) ;
new TDEAction ( i18n ( " Cut Messages " ) , " edit-cut " , ALT + CTRL + Key_X , TQT_TQOBJECT( headers( ) ) ,
new TDEAction ( i18n ( " Cut Messages " ) , " edit-cut " , ALT + CTRL + Key_X , headers( ) ,
TQT_SLOT ( cutMessages ( ) ) , actionCollection ( ) , " cut_messages " ) ;
TQT_SLOT ( cutMessages ( ) ) , actionCollection ( ) , " cut_messages " ) ;
new TDEAction ( i18n ( " Paste Messages " ) , " edit-paste " , ALT + CTRL + Key_V , TQT_TQOBJECT( headers( ) ) ,
new TDEAction ( i18n ( " Paste Messages " ) , " edit-paste " , ALT + CTRL + Key_V , headers( ) ,
TQT_SLOT ( pasteMessages ( ) ) , actionCollection ( ) , " paste_messages " ) ;
TQT_SLOT ( pasteMessages ( ) ) , actionCollection ( ) , " paste_messages " ) ;
//----- Message Menu
//----- Message Menu
( void ) new TDEAction ( i18n ( " &New Message... " ) , " mail-message-new " , TDEStdAccel : : shortcut ( TDEStdAccel : : New ) , TQT_TQOBJECT ( this ) ,
( void ) new TDEAction ( i18n ( " &New Message... " ) , " mail-message-new " , TDEStdAccel : : shortcut ( TDEStdAccel : : New ) , this ,
TQT_SLOT ( slotCompose ( ) ) , actionCollection ( ) , " new_message " ) ;
TQT_SLOT ( slotCompose ( ) ) , actionCollection ( ) , " new_message " ) ;
mTemplateMenu =
mTemplateMenu =
new TDEActionMenu ( i18n ( " New Message From &Template " ) , " document-new " ,
new TDEActionMenu ( i18n ( " New Message From &Template " ) , " document-new " ,
actionCollection ( ) , " new_from_template " ) ;
actionCollection ( ) , " new_from_template " ) ;
mTemplateMenu - > setDelayed ( true ) ;
mTemplateMenu - > setDelayed ( true ) ;
connect ( mTemplateMenu - > popupMenu ( ) , TQT_SIGNAL ( aboutToShow ( ) ) , TQT_TQOBJECT ( this ) ,
connect ( mTemplateMenu - > popupMenu ( ) , TQT_SIGNAL ( aboutToShow ( ) ) , this ,
TQT_SLOT ( slotShowNewFromTemplate ( ) ) ) ;
TQT_SLOT ( slotShowNewFromTemplate ( ) ) ) ;
connect ( mTemplateMenu - > popupMenu ( ) , TQT_SIGNAL ( activated ( int ) ) , TQT_TQOBJECT ( this ) ,
connect ( mTemplateMenu - > popupMenu ( ) , TQT_SIGNAL ( activated ( int ) ) , this ,
TQT_SLOT ( slotNewFromTemplate ( int ) ) ) ;
TQT_SLOT ( slotNewFromTemplate ( int ) ) ) ;
TDEAction * newToML = new TDEAction ( i18n ( " New Message t&o Mailing-List... " ) , " mail_post_to " ,
TDEAction * newToML = new TDEAction ( i18n ( " New Message t&o Mailing-List... " ) , " mail_post_to " ,
CTRL + SHIFT + Key_N , TQT_TQOBJECT ( this ) ,
CTRL + SHIFT + Key_N , this ,
TQT_SLOT ( slotPostToML ( ) ) , actionCollection ( ) , " post_message " ) ;
TQT_SLOT ( slotPostToML ( ) ) , actionCollection ( ) , " post_message " ) ;
newToML - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
newToML - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
@ -2866,25 +2866,25 @@ void KMMainWidget::setupActions()
" message_forward " ) ;
" message_forward " ) ;
mForwardInlineAction = new TDEAction ( i18n ( " &Inline... " ) ,
mForwardInlineAction = new TDEAction ( i18n ( " &Inline... " ) ,
" mail-forward " , 0 , TQT_TQOBJECT ( this ) ,
" mail-forward " , 0 , this ,
TQT_SLOT ( slotForwardInlineMsg ( ) ) ,
TQT_SLOT ( slotForwardInlineMsg ( ) ) ,
actionCollection ( ) ,
actionCollection ( ) ,
" message_forward_inline " ) ;
" message_forward_inline " ) ;
mForwardAttachedAction = new TDEAction ( i18n ( " Message->Forward-> " , " As &Attachment... " ) ,
mForwardAttachedAction = new TDEAction ( i18n ( " Message->Forward-> " , " As &Attachment... " ) ,
" mail-forward " , 0 , TQT_TQOBJECT ( this ) ,
" mail-forward " , 0 , this ,
TQT_SLOT ( slotForwardAttachedMsg ( ) ) ,
TQT_SLOT ( slotForwardAttachedMsg ( ) ) ,
actionCollection ( ) ,
actionCollection ( ) ,
" message_forward_as_attachment " ) ;
" message_forward_as_attachment " ) ;
mForwardDigestAction = new TDEAction ( i18n ( " Message->Forward-> " , " As Di&gest... " ) ,
mForwardDigestAction = new TDEAction ( i18n ( " Message->Forward-> " , " As Di&gest... " ) ,
" mail-forward " , 0 , TQT_TQOBJECT ( this ) ,
" mail-forward " , 0 , this ,
TQT_SLOT ( slotForwardDigestMsg ( ) ) ,
TQT_SLOT ( slotForwardDigestMsg ( ) ) ,
actionCollection ( ) ,
actionCollection ( ) ,
" message_forward_as_digest " ) ;
" message_forward_as_digest " ) ;
mRedirectAction = new TDEAction ( i18n ( " Message->Forward-> " , " &Redirect... " ) ,
mRedirectAction = new TDEAction ( i18n ( " Message->Forward-> " , " &Redirect... " ) ,
" mail-forward " , Key_E , TQT_TQOBJECT ( this ) ,
" mail-forward " , Key_E , this ,
TQT_SLOT ( slotRedirectMsg ( ) ) ,
TQT_SLOT ( slotRedirectMsg ( ) ) ,
actionCollection ( ) ,
actionCollection ( ) ,
" message_forward_redirect " ) ;
" message_forward_redirect " ) ;
@ -2895,38 +2895,38 @@ void KMMainWidget::setupActions()
mForwardActionMenu - > insert ( mForwardDigestAction ) ;
mForwardActionMenu - > insert ( mForwardDigestAction ) ;
mForwardActionMenu - > insert ( mRedirectAction ) ;
mForwardActionMenu - > insert ( mRedirectAction ) ;
mSendAgainAction = new TDEAction ( i18n ( " Send A&gain... " ) , 0 , TQT_TQOBJECT ( this ) ,
mSendAgainAction = new TDEAction ( i18n ( " Send A&gain... " ) , 0 , this ,
TQT_SLOT ( slotResendMsg ( ) ) , actionCollection ( ) , " send_again " ) ;
TQT_SLOT ( slotResendMsg ( ) ) , actionCollection ( ) , " send_again " ) ;
//----- Create filter actions
//----- Create filter actions
mFilterMenu = new TDEActionMenu ( i18n ( " &Create Filter " ) , " filter " , actionCollection ( ) , " create_filter " ) ;
mFilterMenu = new TDEActionMenu ( i18n ( " &Create Filter " ) , " filter " , actionCollection ( ) , " create_filter " ) ;
connect ( mFilterMenu , TQT_SIGNAL ( activated ( ) ) , TQT_TQOBJECT ( this ) ,
connect ( mFilterMenu , TQT_SIGNAL ( activated ( ) ) , this ,
TQT_SLOT ( slotFilter ( ) ) ) ;
TQT_SLOT ( slotFilter ( ) ) ) ;
mSubjectFilterAction = new TDEAction ( i18n ( " Filter on &Subject... " ) , 0 , TQT_TQOBJECT ( this ) ,
mSubjectFilterAction = new TDEAction ( i18n ( " Filter on &Subject... " ) , 0 , this ,
TQT_SLOT ( slotSubjectFilter ( ) ) ,
TQT_SLOT ( slotSubjectFilter ( ) ) ,
actionCollection ( ) , " subject_filter " ) ;
actionCollection ( ) , " subject_filter " ) ;
mFilterMenu - > insert ( mSubjectFilterAction ) ;
mFilterMenu - > insert ( mSubjectFilterAction ) ;
mFromFilterAction = new TDEAction ( i18n ( " Filter on &From... " ) , 0 , TQT_TQOBJECT ( this ) ,
mFromFilterAction = new TDEAction ( i18n ( " Filter on &From... " ) , 0 , this ,
TQT_SLOT ( slotFromFilter ( ) ) ,
TQT_SLOT ( slotFromFilter ( ) ) ,
actionCollection ( ) , " from_filter " ) ;
actionCollection ( ) , " from_filter " ) ;
mFilterMenu - > insert ( mFromFilterAction ) ;
mFilterMenu - > insert ( mFromFilterAction ) ;
mToFilterAction = new TDEAction ( i18n ( " Filter on &To... " ) , 0 , TQT_TQOBJECT ( this ) ,
mToFilterAction = new TDEAction ( i18n ( " Filter on &To... " ) , 0 , this ,
TQT_SLOT ( slotToFilter ( ) ) ,
TQT_SLOT ( slotToFilter ( ) ) ,
actionCollection ( ) , " to_filter " ) ;
actionCollection ( ) , " to_filter " ) ;
mFilterMenu - > insert ( mToFilterAction ) ;
mFilterMenu - > insert ( mToFilterAction ) ;
mListFilterAction = new TDEAction ( i18n ( " Filter on Mailing-&List... " ) , 0 , TQT_TQOBJECT ( this ) ,
mListFilterAction = new TDEAction ( i18n ( " Filter on Mailing-&List... " ) , 0 , this ,
TQT_SLOT ( slotMailingListFilter ( ) ) , actionCollection ( ) ,
TQT_SLOT ( slotMailingListFilter ( ) ) , actionCollection ( ) ,
" mlist_filter " ) ;
" mlist_filter " ) ;
mFilterMenu - > insert ( mListFilterAction ) ;
mFilterMenu - > insert ( mListFilterAction ) ;
mPrintAction = KStdAction : : print ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPrintMsg ( ) ) , actionCollection ( ) ) ;
mPrintAction = KStdAction : : print ( this , TQT_SLOT ( slotPrintMsg ( ) ) , actionCollection ( ) ) ;
mUseAction = new TDEAction ( i18n ( " New Message From &Template " ) , " document-new " ,
mUseAction = new TDEAction ( i18n ( " New Message From &Template " ) , " document-new " ,
Key_N , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotUseTemplate ( ) ) ,
Key_N , this , TQT_SLOT ( slotUseTemplate ( ) ) ,
actionCollection ( ) , " use_template " ) ;
actionCollection ( ) , " use_template " ) ;
mUseAction - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
mUseAction - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
@ -2936,52 +2936,52 @@ void KMMainWidget::setupActions()
mMarkThreadAsReadAction = new TDEAction ( KGuiItem ( i18n ( " Mark Thread as &Read " ) , " kmmsgread " ,
mMarkThreadAsReadAction = new TDEAction ( KGuiItem ( i18n ( " Mark Thread as &Read " ) , " kmmsgread " ,
i18n ( " Mark all messages in the selected thread as read " ) ) ,
i18n ( " Mark all messages in the selected thread as read " ) ) ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSetThreadStatusRead ( ) ) ,
0 , this , TQT_SLOT ( slotSetThreadStatusRead ( ) ) ,
actionCollection ( ) , " thread_read " ) ;
actionCollection ( ) , " thread_read " ) ;
mThreadStatusMenu - > insert ( mMarkThreadAsReadAction ) ;
mThreadStatusMenu - > insert ( mMarkThreadAsReadAction ) ;
mMarkThreadAsNewAction = new TDEAction ( KGuiItem ( i18n ( " Mark Thread as &New " ) , " kmmsgnew " ,
mMarkThreadAsNewAction = new TDEAction ( KGuiItem ( i18n ( " Mark Thread as &New " ) , " kmmsgnew " ,
i18n ( " Mark all messages in the selected thread as new " ) ) ,
i18n ( " Mark all messages in the selected thread as new " ) ) ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSetThreadStatusNew ( ) ) ,
0 , this , TQT_SLOT ( slotSetThreadStatusNew ( ) ) ,
actionCollection ( ) , " thread_new " ) ;
actionCollection ( ) , " thread_new " ) ;
mThreadStatusMenu - > insert ( mMarkThreadAsNewAction ) ;
mThreadStatusMenu - > insert ( mMarkThreadAsNewAction ) ;
mMarkThreadAsUnreadAction = new TDEAction ( KGuiItem ( i18n ( " Mark Thread as &Unread " ) , " kmmsgunseen " ,
mMarkThreadAsUnreadAction = new TDEAction ( KGuiItem ( i18n ( " Mark Thread as &Unread " ) , " kmmsgunseen " ,
i18n ( " Mark all messages in the selected thread as unread " ) ) ,
i18n ( " Mark all messages in the selected thread as unread " ) ) ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSetThreadStatusUnread ( ) ) ,
0 , this , TQT_SLOT ( slotSetThreadStatusUnread ( ) ) ,
actionCollection ( ) , " thread_unread " ) ;
actionCollection ( ) , " thread_unread " ) ;
mThreadStatusMenu - > insert ( mMarkThreadAsUnreadAction ) ;
mThreadStatusMenu - > insert ( mMarkThreadAsUnreadAction ) ;
mThreadStatusMenu - > insert ( new TDEActionSeparator ( TQT_TQOBJECT ( this ) ) ) ;
mThreadStatusMenu - > insert ( new TDEActionSeparator ( this ) ) ;
//----- "Mark Thread" toggle actions
//----- "Mark Thread" toggle actions
mToggleThreadFlagAction = new TDEToggleAction ( i18n ( " Mark Thread as &Important " ) , " mail_flag " ,
mToggleThreadFlagAction = new TDEToggleAction ( i18n ( " Mark Thread as &Important " ) , " mail_flag " ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSetThreadStatusFlag ( ) ) ,
0 , this , TQT_SLOT ( slotSetThreadStatusFlag ( ) ) ,
actionCollection ( ) , " thread_flag " ) ;
actionCollection ( ) , " thread_flag " ) ;
mToggleThreadFlagAction - > setCheckedState ( i18n ( " Remove &Important Thread Mark " ) ) ;
mToggleThreadFlagAction - > setCheckedState ( i18n ( " Remove &Important Thread Mark " ) ) ;
mThreadStatusMenu - > insert ( mToggleThreadFlagAction ) ;
mThreadStatusMenu - > insert ( mToggleThreadFlagAction ) ;
mToggleThreadTodoAction = new TDEToggleAction ( i18n ( " Mark Thread as &Action Item " ) , " mail_todo " ,
mToggleThreadTodoAction = new TDEToggleAction ( i18n ( " Mark Thread as &Action Item " ) , " mail_todo " ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSetThreadStatusTodo ( ) ) ,
0 , this , TQT_SLOT ( slotSetThreadStatusTodo ( ) ) ,
actionCollection ( ) , " thread_todo " ) ;
actionCollection ( ) , " thread_todo " ) ;
mToggleThreadTodoAction - > setCheckedState ( i18n ( " Remove &Action Item Thread Mark " ) ) ;
mToggleThreadTodoAction - > setCheckedState ( i18n ( " Remove &Action Item Thread Mark " ) ) ;
mThreadStatusMenu - > insert ( mToggleThreadTodoAction ) ;
mThreadStatusMenu - > insert ( mToggleThreadTodoAction ) ;
//------- "Watch and ignore thread" actions
//------- "Watch and ignore thread" actions
mWatchThreadAction = new TDEToggleAction ( i18n ( " &Watch Thread " ) , " kmmsgwatched " ,
mWatchThreadAction = new TDEToggleAction ( i18n ( " &Watch Thread " ) , " kmmsgwatched " ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSetThreadStatusWatched ( ) ) ,
0 , this , TQT_SLOT ( slotSetThreadStatusWatched ( ) ) ,
actionCollection ( ) , " thread_watched " ) ;
actionCollection ( ) , " thread_watched " ) ;
mIgnoreThreadAction = new TDEToggleAction ( i18n ( " &Ignore Thread " ) , " mail_ignore " ,
mIgnoreThreadAction = new TDEToggleAction ( i18n ( " &Ignore Thread " ) , " mail_ignore " ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSetThreadStatusIgnored ( ) ) ,
0 , this , TQT_SLOT ( slotSetThreadStatusIgnored ( ) ) ,
actionCollection ( ) , " thread_ignored " ) ;
actionCollection ( ) , " thread_ignored " ) ;
mThreadStatusMenu - > insert ( new TDEActionSeparator ( TQT_TQOBJECT ( this ) ) ) ;
mThreadStatusMenu - > insert ( new TDEActionSeparator ( this ) ) ;
mThreadStatusMenu - > insert ( mWatchThreadAction ) ;
mThreadStatusMenu - > insert ( mWatchThreadAction ) ;
mThreadStatusMenu - > insert ( mIgnoreThreadAction ) ;
mThreadStatusMenu - > insert ( mIgnoreThreadAction ) ;
mSaveAttachmentsAction = new TDEAction ( i18n ( " Save A&ttachments... " ) , " attach " ,
mSaveAttachmentsAction = new TDEAction ( i18n ( " Save A&ttachments... " ) , " attach " ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSaveAttachments ( ) ) ,
0 , this , TQT_SLOT ( slotSaveAttachments ( ) ) ,
actionCollection ( ) , " file_save_attachments " ) ;
actionCollection ( ) , " file_save_attachments " ) ;
mMoveActionMenu = new TDEActionMenu ( i18n ( " &Move To " ) ,
mMoveActionMenu = new TDEActionMenu ( i18n ( " &Move To " ) ,
@ -2991,7 +2991,7 @@ void KMMainWidget::setupActions()
actionCollection ( ) , " copy_to " ) ;
actionCollection ( ) , " copy_to " ) ;
mApplyAllFiltersAction = new TDEAction ( i18n ( " Appl&y All Filters " ) , " filter " ,
mApplyAllFiltersAction = new TDEAction ( i18n ( " Appl&y All Filters " ) , " filter " ,
CTRL + Key_J , TQT_TQOBJECT ( this ) ,
CTRL + Key_J , this ,
TQT_SLOT ( slotApplyFilters ( ) ) ,
TQT_SLOT ( slotApplyFilters ( ) ) ,
actionCollection ( ) , " apply_filters " ) ;
actionCollection ( ) , " apply_filters " ) ;
@ -3006,25 +3006,25 @@ void KMMainWidget::setupActions()
actionCollection ( ) , " view_unread " ) ;
actionCollection ( ) , " view_unread " ) ;
unreadMenu - > setToolTip ( i18n ( " Choose how to display the count of unread messages " ) ) ;
unreadMenu - > setToolTip ( i18n ( " Choose how to display the count of unread messages " ) ) ;
mUnreadColumnToggle = new TDERadioAction ( i18n ( " View->Unread Count " , " View in &Separate Column " ) , 0 , TQT_TQOBJECT ( this ) ,
mUnreadColumnToggle = new TDERadioAction ( i18n ( " View->Unread Count " , " View in &Separate Column " ) , 0 , this ,
TQT_SLOT ( slotToggleUnread ( ) ) ,
TQT_SLOT ( slotToggleUnread ( ) ) ,
actionCollection ( ) , " view_unread_column " ) ;
actionCollection ( ) , " view_unread_column " ) ;
mUnreadColumnToggle - > setExclusiveGroup ( " view_unread_group " ) ;
mUnreadColumnToggle - > setExclusiveGroup ( " view_unread_group " ) ;
unreadMenu - > insert ( mUnreadColumnToggle ) ;
unreadMenu - > insert ( mUnreadColumnToggle ) ;
mUnreadTextToggle = new TDERadioAction ( i18n ( " View->Unread Count " , " View After &Folder Name " ) , 0 , TQT_TQOBJECT ( this ) ,
mUnreadTextToggle = new TDERadioAction ( i18n ( " View->Unread Count " , " View After &Folder Name " ) , 0 , this ,
TQT_SLOT ( slotToggleUnread ( ) ) ,
TQT_SLOT ( slotToggleUnread ( ) ) ,
actionCollection ( ) , " view_unread_text " ) ;
actionCollection ( ) , " view_unread_text " ) ;
mUnreadTextToggle - > setExclusiveGroup ( " view_unread_group " ) ;
mUnreadTextToggle - > setExclusiveGroup ( " view_unread_group " ) ;
unreadMenu - > insert ( mUnreadTextToggle ) ;
unreadMenu - > insert ( mUnreadTextToggle ) ;
// toggle for total column
// toggle for total column
mTotalColumnToggle = new TDEToggleAction ( i18n ( " View-> " , " &Total Column " ) , 0 , TQT_TQOBJECT ( this ) ,
mTotalColumnToggle = new TDEToggleAction ( i18n ( " View-> " , " &Total Column " ) , 0 , this ,
TQT_SLOT ( slotToggleTotalColumn ( ) ) ,
TQT_SLOT ( slotToggleTotalColumn ( ) ) ,
actionCollection ( ) , " view_columns_total " ) ;
actionCollection ( ) , " view_columns_total " ) ;
mTotalColumnToggle - > setToolTip ( i18n ( " Toggle display of column showing the "
mTotalColumnToggle - > setToolTip ( i18n ( " Toggle display of column showing the "
" total number of messages in folders. " ) ) ;
" total number of messages in folders. " ) ) ;
mSizeColumnToggle = new TDEToggleAction ( i18n ( " View-> " , " &Size Column " ) , 0 , TQT_TQOBJECT ( this ) ,
mSizeColumnToggle = new TDEToggleAction ( i18n ( " View-> " , " &Size Column " ) , 0 , this ,
TQT_SLOT ( slotToggleSizeColumn ( ) ) ,
TQT_SLOT ( slotToggleSizeColumn ( ) ) ,
actionCollection ( ) , " view_columns_size " ) ;
actionCollection ( ) , " view_columns_size " ) ;
mSizeColumnToggle - > setToolTip ( i18n ( " Toggle display of column showing the "
mSizeColumnToggle - > setToolTip ( i18n ( " Toggle display of column showing the "
@ -3032,33 +3032,33 @@ void KMMainWidget::setupActions()
( void ) new TDEAction ( KGuiItem ( i18n ( " View-> " , " &Expand Thread " ) , TQString ( ) ,
( void ) new TDEAction ( KGuiItem ( i18n ( " View-> " , " &Expand Thread " ) , TQString ( ) ,
i18n ( " Expand the current thread " ) ) ,
i18n ( " Expand the current thread " ) ) ,
Key_Period , TQT_TQOBJECT ( this ) ,
Key_Period , this ,
TQT_SLOT ( slotExpandThread ( ) ) ,
TQT_SLOT ( slotExpandThread ( ) ) ,
actionCollection ( ) , " expand_thread " ) ;
actionCollection ( ) , " expand_thread " ) ;
( void ) new TDEAction ( KGuiItem ( i18n ( " View-> " , " &Collapse Thread " ) , TQString ( ) ,
( void ) new TDEAction ( KGuiItem ( i18n ( " View-> " , " &Collapse Thread " ) , TQString ( ) ,
i18n ( " Collapse the current thread " ) ) ,
i18n ( " Collapse the current thread " ) ) ,
Key_Comma , TQT_TQOBJECT ( this ) ,
Key_Comma , this ,
TQT_SLOT ( slotCollapseThread ( ) ) ,
TQT_SLOT ( slotCollapseThread ( ) ) ,
actionCollection ( ) , " collapse_thread " ) ;
actionCollection ( ) , " collapse_thread " ) ;
( void ) new TDEAction ( KGuiItem ( i18n ( " View-> " , " Ex&pand All Threads " ) , TQString ( ) ,
( void ) new TDEAction ( KGuiItem ( i18n ( " View-> " , " Ex&pand All Threads " ) , TQString ( ) ,
i18n ( " Expand all threads in the current folder " ) ) ,
i18n ( " Expand all threads in the current folder " ) ) ,
CTRL + Key_Period , TQT_TQOBJECT ( this ) ,
CTRL + Key_Period , this ,
TQT_SLOT ( slotExpandAllThreads ( ) ) ,
TQT_SLOT ( slotExpandAllThreads ( ) ) ,
actionCollection ( ) , " expand_all_threads " ) ;
actionCollection ( ) , " expand_all_threads " ) ;
( void ) new TDEAction ( KGuiItem ( i18n ( " View-> " , " C&ollapse All Threads " ) , TQString ( ) ,
( void ) new TDEAction ( KGuiItem ( i18n ( " View-> " , " C&ollapse All Threads " ) , TQString ( ) ,
i18n ( " Collapse all threads in the current folder " ) ) ,
i18n ( " Collapse all threads in the current folder " ) ) ,
CTRL + Key_Comma , TQT_TQOBJECT ( this ) ,
CTRL + Key_Comma , this ,
TQT_SLOT ( slotCollapseAllThreads ( ) ) ,
TQT_SLOT ( slotCollapseAllThreads ( ) ) ,
actionCollection ( ) , " collapse_all_threads " ) ;
actionCollection ( ) , " collapse_all_threads " ) ;
mViewSourceAction = new TDEAction ( i18n ( " &View Source " ) , Key_V , TQT_TQOBJECT ( this ) ,
mViewSourceAction = new TDEAction ( i18n ( " &View Source " ) , Key_V , this ,
TQT_SLOT ( slotShowMsgSrc ( ) ) , actionCollection ( ) ,
TQT_SLOT ( slotShowMsgSrc ( ) ) , actionCollection ( ) ,
" view_source " ) ;
" view_source " ) ;
TDEAction * dukeOfMonmoth = new TDEAction ( i18n ( " &Display Message " ) , Key_Return , TQT_TQOBJECT ( this ) ,
TDEAction * dukeOfMonmoth = new TDEAction ( i18n ( " &Display Message " ) , Key_Return , this ,
TQT_SLOT ( slotDisplayCurrentMessage ( ) ) , actionCollection ( ) ,
TQT_SLOT ( slotDisplayCurrentMessage ( ) ) , actionCollection ( ) ,
" display_message " ) ;
" display_message " ) ;
dukeOfMonmoth - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
dukeOfMonmoth - > plugAccel ( actionCollection ( ) - > tdeaccel ( ) ) ;
@ -3066,44 +3066,44 @@ void KMMainWidget::setupActions()
//----- Go Menu
//----- Go Menu
new TDEAction ( KGuiItem ( i18n ( " &Next Message " ) , TQString ( ) ,
new TDEAction ( KGuiItem ( i18n ( " &Next Message " ) , TQString ( ) ,
i18n ( " Go to the next message " ) ) ,
i18n ( " Go to the next message " ) ) ,
" N;Right " , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotNextMessage ( ) ) ,
" N;Right " , this , TQT_SLOT ( slotNextMessage ( ) ) ,
actionCollection ( ) , " go_next_message " ) ;
actionCollection ( ) , " go_next_message " ) ;
new TDEAction ( KGuiItem ( i18n ( " Next &Unread Message " ) ,
new TDEAction ( KGuiItem ( i18n ( " Next &Unread Message " ) ,
TQApplication : : reverseLayout ( ) ? " go-previous " : " go-next " ,
TQApplication : : reverseLayout ( ) ? " go-previous " : " go-next " ,
i18n ( " Go to the next unread message " ) ) ,
i18n ( " Go to the next unread message " ) ) ,
Key_Plus , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotNextUnreadMessage ( ) ) ,
Key_Plus , this , TQT_SLOT ( slotNextUnreadMessage ( ) ) ,
actionCollection ( ) , " go_next_unread_message " ) ;
actionCollection ( ) , " go_next_unread_message " ) ;
/* ### needs better support from folders:
/* ### needs better support from folders:
new TDEAction ( KGuiItem ( i18n ( " Next &Important Message " ) , TQString ( ) ,
new TDEAction ( KGuiItem ( i18n ( " Next &Important Message " ) , TQString ( ) ,
i18n ( " Go to the next important message " ) ) ,
i18n ( " Go to the next important message " ) ) ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotNextImportantMessage ( ) ) ,
0 , this , TQT_SLOT ( slotNextImportantMessage ( ) ) ,
actionCollection ( ) , " go_next_important_message " ) ;
actionCollection ( ) , " go_next_important_message " ) ;
*/
*/
new TDEAction ( KGuiItem ( i18n ( " &Previous Message " ) , TQString ( ) ,
new TDEAction ( KGuiItem ( i18n ( " &Previous Message " ) , TQString ( ) ,
i18n ( " Go to the previous message " ) ) ,
i18n ( " Go to the previous message " ) ) ,
" P;Left " , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPrevMessage ( ) ) ,
" P;Left " , this , TQT_SLOT ( slotPrevMessage ( ) ) ,
actionCollection ( ) , " go_prev_message " ) ;
actionCollection ( ) , " go_prev_message " ) ;
new TDEAction ( KGuiItem ( i18n ( " Previous Unread &Message " ) ,
new TDEAction ( KGuiItem ( i18n ( " Previous Unread &Message " ) ,
TQApplication : : reverseLayout ( ) ? " go-next " : " go-previous " ,
TQApplication : : reverseLayout ( ) ? " go-next " : " go-previous " ,
i18n ( " Go to the previous unread message " ) ) ,
i18n ( " Go to the previous unread message " ) ) ,
Key_Minus , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPrevUnreadMessage ( ) ) ,
Key_Minus , this , TQT_SLOT ( slotPrevUnreadMessage ( ) ) ,
actionCollection ( ) , " go_prev_unread_message " ) ;
actionCollection ( ) , " go_prev_unread_message " ) ;
/* needs better support from folders:
/* needs better support from folders:
new TDEAction ( KGuiItem ( i18n ( " Previous I&mportant Message " ) , TQString ( ) ,
new TDEAction ( KGuiItem ( i18n ( " Previous I&mportant Message " ) , TQString ( ) ,
i18n ( " Go to the previous important message " ) ) ,
i18n ( " Go to the previous important message " ) ) ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPrevImportantMessage ( ) ) ,
0 , this , TQT_SLOT ( slotPrevImportantMessage ( ) ) ,
actionCollection ( ) , " go_prev_important_message " ) ;
actionCollection ( ) , " go_prev_important_message " ) ;
*/
*/
TDEAction * action =
TDEAction * action =
new TDEAction ( KGuiItem ( i18n ( " Next Unread &Folder " ) , TQString ( ) ,
new TDEAction ( KGuiItem ( i18n ( " Next Unread &Folder " ) , TQString ( ) ,
i18n ( " Go to the next folder with unread messages " ) ) ,
i18n ( " Go to the next folder with unread messages " ) ) ,
ALT + Key_Plus , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotNextUnreadFolder ( ) ) ,
ALT + Key_Plus , this , TQT_SLOT ( slotNextUnreadFolder ( ) ) ,
actionCollection ( ) , " go_next_unread_folder " ) ;
actionCollection ( ) , " go_next_unread_folder " ) ;
TDEShortcut shortcut = action - > shortcut ( ) ;
TDEShortcut shortcut = action - > shortcut ( ) ;
shortcut . append ( KKey ( CTRL + Key_Plus ) ) ;
shortcut . append ( KKey ( CTRL + Key_Plus ) ) ;
@ -3112,7 +3112,7 @@ void KMMainWidget::setupActions()
action =
action =
new TDEAction ( KGuiItem ( i18n ( " Previous Unread F&older " ) , TQString ( ) ,
new TDEAction ( KGuiItem ( i18n ( " Previous Unread F&older " ) , TQString ( ) ,
i18n ( " Go to the previous folder with unread messages " ) ) ,
i18n ( " Go to the previous folder with unread messages " ) ) ,
ALT + Key_Minus , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPrevUnreadFolder ( ) ) ,
ALT + Key_Minus , this , TQT_SLOT ( slotPrevUnreadFolder ( ) ) ,
actionCollection ( ) , " go_prev_unread_folder " ) ;
actionCollection ( ) , " go_prev_unread_folder " ) ;
shortcut = action - > shortcut ( ) ;
shortcut = action - > shortcut ( ) ;
shortcut . append ( KKey ( CTRL + Key_Minus ) ) ;
shortcut . append ( KKey ( CTRL + Key_Minus ) ) ;
@ -3123,33 +3123,33 @@ void KMMainWidget::setupActions()
i18n ( " Scroll down current message. "
i18n ( " Scroll down current message. "
" If at end of current message, "
" If at end of current message, "
" go to next unread message. " ) ) ,
" go to next unread message. " ) ) ,
Key_Space , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotReadOn ( ) ) ,
Key_Space , this , TQT_SLOT ( slotReadOn ( ) ) ,
actionCollection ( ) , " go_next_unread_text " ) ;
actionCollection ( ) , " go_next_unread_text " ) ;
//----- Settings Menu
//----- Settings Menu
mToggleShowQuickSearchAction = new TDEToggleAction ( i18n ( " Show Quick Search " ) , TQString ( ) ,
mToggleShowQuickSearchAction = new TDEToggleAction ( i18n ( " Show Quick Search " ) , TQString ( ) ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotToggleShowQuickSearch ( ) ) ,
0 , this , TQT_SLOT ( slotToggleShowQuickSearch ( ) ) ,
actionCollection ( ) , " show_quick_search " ) ;
actionCollection ( ) , " show_quick_search " ) ;
mToggleShowQuickSearchAction - > setChecked ( GlobalSettings : : self ( ) - > quickSearchActive ( ) ) ;
mToggleShowQuickSearchAction - > setChecked ( GlobalSettings : : self ( ) - > quickSearchActive ( ) ) ;
mToggleShowQuickSearchAction - > setWhatsThis (
mToggleShowQuickSearchAction - > setWhatsThis (
i18n ( GlobalSettings : : self ( ) - > quickSearchActiveItem ( ) - > whatsThis ( ) . utf8 ( ) ) ) ;
i18n ( GlobalSettings : : self ( ) - > quickSearchActiveItem ( ) - > whatsThis ( ) . utf8 ( ) ) ) ;
( void ) new TDEAction ( i18n ( " Configure &Filters... " ) , 0 , TQT_TQOBJECT ( this ) ,
( void ) new TDEAction ( i18n ( " Configure &Filters... " ) , 0 , this ,
TQT_SLOT ( slotFilter ( ) ) , actionCollection ( ) , " filter " ) ;
TQT_SLOT ( slotFilter ( ) ) , actionCollection ( ) , " filter " ) ;
( void ) new TDEAction ( i18n ( " Configure &POP Filters... " ) , 0 , TQT_TQOBJECT ( this ) ,
( void ) new TDEAction ( i18n ( " Configure &POP Filters... " ) , 0 , this ,
TQT_SLOT ( slotPopFilter ( ) ) , actionCollection ( ) , " popFilter " ) ;
TQT_SLOT ( slotPopFilter ( ) ) , actionCollection ( ) , " popFilter " ) ;
( void ) new TDEAction ( i18n ( " Manage &Sieve Scripts... " ) , 0 , TQT_TQOBJECT ( this ) ,
( void ) new TDEAction ( i18n ( " Manage &Sieve Scripts... " ) , 0 , this ,
TQT_SLOT ( slotManageSieveScripts ( ) ) , actionCollection ( ) , " sieveFilters " ) ;
TQT_SLOT ( slotManageSieveScripts ( ) ) , actionCollection ( ) , " sieveFilters " ) ;
( void ) new TDEAction ( KGuiItem ( i18n ( " KMail &Introduction " ) , 0 ,
( void ) new TDEAction ( KGuiItem ( i18n ( " KMail &Introduction " ) , 0 ,
i18n ( " Display KMail's Welcome Page " ) ) ,
i18n ( " Display KMail's Welcome Page " ) ) ,
0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotIntro ( ) ) ,
0 , this , TQT_SLOT ( slotIntro ( ) ) ,
actionCollection ( ) , " help_kmail_welcomepage " ) ;
actionCollection ( ) , " help_kmail_welcomepage " ) ;
// ----- Standard Actions
// ----- Standard Actions
// KStdAction::configureNotifications(this, TQT_SLOT(slotEditNotifications()), actionCollection());
// KStdAction::configureNotifications(this, TQT_SLOT(slotEditNotifications()), actionCollection());
( void ) new TDEAction ( i18n ( " Configure &Notifications... " ) ,
( void ) new TDEAction ( i18n ( " Configure &Notifications... " ) ,
" knotify " , 0 , TQT_TQOBJECT ( this ) ,
" knotify " , 0 , this ,
TQT_SLOT ( slotEditNotifications ( ) ) , actionCollection ( ) ,
TQT_SLOT ( slotEditNotifications ( ) ) , actionCollection ( ) ,
" kmail_configure_notifications " ) ;
" kmail_configure_notifications " ) ;
// KStdAction::preferences(this, TQT_SLOT(slotSettings()), actionCollection());
// KStdAction::preferences(this, TQT_SLOT(slotSettings()), actionCollection());
@ -3158,14 +3158,14 @@ void KMMainWidget::setupActions()
TQT_SLOT ( slotShowConfigurationDialog ( ) ) , actionCollection ( ) ,
TQT_SLOT ( slotShowConfigurationDialog ( ) ) , actionCollection ( ) ,
" kmail_configure_kmail " ) ;
" kmail_configure_kmail " ) ;
KStdAction : : undo ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotUndo ( ) ) , actionCollection ( ) , " kmail_undo " ) ;
KStdAction : : undo ( this , TQT_SLOT ( slotUndo ( ) ) , actionCollection ( ) , " kmail_undo " ) ;
KStdAction : : tipOfDay ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotShowTip ( ) ) , actionCollection ( ) ) ;
KStdAction : : tipOfDay ( this , TQT_SLOT ( slotShowTip ( ) ) , actionCollection ( ) ) ;
menutimer = new TQTimer ( this , " menutimer " ) ;
menutimer = new TQTimer ( this , " menutimer " ) ;
connect ( menutimer , TQT_SIGNAL ( timeout ( ) ) , TQT_SLOT ( updateMessageActions ( ) ) ) ;
connect ( menutimer , TQT_SIGNAL ( timeout ( ) ) , TQT_SLOT ( updateMessageActions ( ) ) ) ;
connect ( kmkernel - > undoStack ( ) ,
connect ( kmkernel - > undoStack ( ) ,
TQT_SIGNAL ( undoStackChanged ( ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotUpdateUndo ( ) ) ) ;
TQT_SIGNAL ( undoStackChanged ( ) ) , this , TQT_SLOT ( slotUpdateUndo ( ) ) ) ;
initializeIMAPActions ( false ) ; // don't set state, config not read yet
initializeIMAPActions ( false ) ; // don't set state, config not read yet
updateMessageActions ( ) ;
updateMessageActions ( ) ;
@ -3288,9 +3288,9 @@ void KMMainWidget::copySelectedToFolder(int menuId )
void KMMainWidget : : updateMessageMenu ( )
void KMMainWidget : : updateMessageMenu ( )
{
{
mMenuToFolder . clear ( ) ;
mMenuToFolder . clear ( ) ;
folderTree ( ) - > folderToPopupMenu ( KMFolderTree : : MoveMessage , TQT_TQOBJECT ( this ) ,
folderTree ( ) - > folderToPopupMenu ( KMFolderTree : : MoveMessage , this ,
& mMenuToFolder , mMoveActionMenu - > popupMenu ( ) ) ;
& mMenuToFolder , mMoveActionMenu - > popupMenu ( ) ) ;
folderTree ( ) - > folderToPopupMenu ( KMFolderTree : : CopyMessage , TQT_TQOBJECT ( this ) ,
folderTree ( ) - > folderToPopupMenu ( KMFolderTree : : CopyMessage , this ,
& mMenuToFolder , mCopyActionMenu - > popupMenu ( ) ) ;
& mMenuToFolder , mCopyActionMenu - > popupMenu ( ) ) ;
updateMessageActions ( ) ;
updateMessageActions ( ) ;
}
}
@ -3770,7 +3770,7 @@ void KMMainWidget::initializeIMAPActions( bool setState /* false the first time,
if ( ! mTroubleshootFolderAction ) {
if ( ! mTroubleshootFolderAction ) {
mTroubleshootFolderAction = new TDEAction ( i18n ( " &Troubleshoot IMAP Cache... " ) , " wizard " , 0 ,
mTroubleshootFolderAction = new TDEAction ( i18n ( " &Troubleshoot IMAP Cache... " ) , " wizard " , 0 ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTroubleshootFolder ( ) ) , actionCollection ( ) , " troubleshoot_folder " ) ;
this , TQT_SLOT ( slotTroubleshootFolder ( ) ) , actionCollection ( ) , " troubleshoot_folder " ) ;
if ( setState )
if ( setState )
updateFolderMenu ( ) ; // set initial state of the action
updateFolderMenu ( ) ; // set initial state of the action
} else {
} else {