Port 606990,607024 from work/kdepim-3.5.5+ feature branch:

Some changes to make menubar and popup menus more consistent (but still some way to go): 
Menubar - Message has same "Mark Thread" submenu as popup 
All popups with "Print", "Save" and "Save Attachments" in consistent order 
Message window popup (when selected text) has same "Reply" menu as preview popup 
Menubar - Folder - Mailing List Management has "..." 
Folder list popup has "Empty" and "Delete" in consistent order 
Add keyboard shortcut Ctrl+S for "Save As" action in reader window 

GUI:
CCBUG:92905
BUG:106478


svn path=/branches/KDE/3.5/kdepim/; revision=609393
wilder-work
Jonathan Marten 20 years ago
parent 3fae3c8adc
commit 753eab55c1
  1. 8
      kmail_part.rc
  2. 3
      kmfoldertree.cpp
  3. 7
      kmheaders.cpp
  4. 6
      kmmainwidget.cpp
  5. 8
      kmmainwin.rc
  6. 8
      kmreadermainwin.cpp
  7. 4
      kmreadermainwin.h

@ -2,7 +2,7 @@
the same menu entries at the same place in KMail and Kontact -->
<!DOCTYPE kpartgui>
<kpartgui version="7" name="kmail_part" >
<kpartgui version="8" name="kmail_part" >
<MenuBar>
<Menu noMerge="1" name="file" >
<text>&amp;File</text>
@ -126,11 +126,7 @@
<Action name="move_to" />
<Separator/>
<Action name="set_status" />
<Menu name="menubar_message_mark_thread_as">
<text>Mark Thread as</text>
<Action name="thread_watched" />
<Action name="thread_ignored" />
</Menu>
<Action name="thread_status" />
<Separator/>
<Action name="create_filter"/>
<Menu name="apply_filter_actions" >

@ -1020,11 +1020,10 @@ void KMFolderTree::slotContextMenuRequested( QListViewItem *lvi,
mMainWidget->action("compact")->plug(folderMenu);
folderMenu->insertSeparator();
mMainWidget->action("empty")->plug(folderMenu);
if ( !fti->folder()->isSystemFolder() ) {
mMainWidget->action("delete_folder")->plug(folderMenu);
folderMenu->insertSeparator();
}
mMainWidget->action("empty")->plug(folderMenu);
folderMenu->insertSeparator();
}
}

@ -2325,11 +2325,6 @@ void KMHeaders::slotRMB()
mOwner->threadStatusMenu()->plug( menu ); // Mark Thread menu
}
if (!out_folder && !mFolder->isSent() && mOwner->watchThreadAction()->isEnabled() ) {
mOwner->watchThreadAction()->plug(menu);
mOwner->ignoreThreadAction()->plug(menu);
}
if ( !out_folder ) {
menu->insertSeparator();
mOwner->filterMenu()->plug( menu ); // Create Filter menu
@ -2337,9 +2332,9 @@ void KMHeaders::slotRMB()
}
menu->insertSeparator();
mOwner->printAction()->plug(menu);
mOwner->saveAsAction()->plug(menu);
mOwner->saveAttachmentsAction()->plug(menu);
mOwner->printAction()->plug(menu);
menu->insertSeparator();
if ( mFolder->isTrash() ) {
mOwner->deleteAction()->plug(menu);

@ -2428,7 +2428,7 @@ void KMMainWidget::setupActions()
mModifyFolderAction = new KAction( i18n("&Properties"), "configure", 0, this,
SLOT(slotModifyFolder()), actionCollection(), "modify" );
mFolderMailingListPropertiesAction = new KAction( i18n("&Mailing List Management"),
mFolderMailingListPropertiesAction = new KAction( i18n("&Mailing List Management..."),
/*"folder_mailinglist_properties",*/ 0, this, SLOT( slotFolderMailingListProperties() ),
actionCollection(), "folder_mailinglist_properties" );
@ -2655,6 +2655,10 @@ void KMMainWidget::setupActions()
0, this, SLOT(slotSetThreadStatusIgnored()),
actionCollection(), "thread_ignored");
mThreadStatusMenu->insert( new KActionSeparator( this ) );
mThreadStatusMenu->insert( mWatchThreadAction );
mThreadStatusMenu->insert( mIgnoreThreadAction );
mSaveAttachmentsAction = new KAction( i18n("Save A&ttachments..."), "attach",
0, this, SLOT(slotSaveAttachments()),
actionCollection(), "file_save_attachments" );

@ -2,7 +2,7 @@
the same menu entries at the same place in KMail and Kontact -->
<!DOCTYPE kpartgui>
<kpartgui version="89" name="kmmainwin" >
<kpartgui version="90" name="kmmainwin" >
<MenuBar>
<Menu noMerge="1" name="file" >
<text>&amp;File</text>
@ -129,11 +129,7 @@
<Action name="move_to" />
<Separator/>
<Action name="set_status" />
<Menu name="menubar_message_mark_thread_as">
<text>Mark Thread as</text>
<Action name="thread_watched" />
<Action name="thread_ignored" />
</Menu>
<Action name="thread_status" />
<Separator/>
<Action name="create_filter"/>
<Menu name="apply_filter_actions" >

@ -285,6 +285,9 @@ void KMReaderMainWin::setupAccel()
// this, SLOT( slotSaveMsg() ),
// actionCollection(), "file_save_as" );
mSaveAsAction = KStdAction::saveAs( mReaderWin, SLOT( slotSaveMsg() ),
actionCollection() );
mSaveAsAction->setShortcut( KStdAccel::shortcut( KStdAccel::Save ) );
mPrintAction = KStdAction::print( this, SLOT( slotPrintMsg() ),
actionCollection() );
@ -423,6 +426,9 @@ void KMReaderMainWin::slotMsgPopup(KMMessage &aMsg, const KURL &aUrl, const QPoi
if(mReaderWin && !mReaderWin->copyText().isEmpty()) {
if ( urlMenuAdded )
menu->insertSeparator();
mReplyActionMenu->plug( menu );
menu->insertSeparator();
mReaderWin->copyAction()->plug( menu );
mReaderWin->selectAllAction()->plug( menu );
} else if ( !urlMenuAdded )
@ -454,7 +460,7 @@ void KMReaderMainWin::slotMsgPopup(KMMessage &aMsg, const KURL &aUrl, const QPoi
mReaderWin->toggleFixFontAction()->plug( menu );
menu->insertSeparator();
mPrintAction->plug( menu );
menu->insertItem( SmallIcon("filesaveas"), i18n( "Save &As..." ), mReaderWin, SLOT( slotSaveMsg() ) );
mSaveAsAction->plug( menu );
menu->insertItem( i18n("Save Attachments..."), mReaderWin, SLOT(slotSaveAttachments()) );
}
menu->exec(aPoint, 0);

@ -65,8 +65,8 @@ private:
KURL mUrl;
QMap<int,KMFolder*> mMenuToFolder;
// a few actions duplicated from kmmainwidget
KAction *mTrashAction, *mPrintAction, *mReplyAction, *mReplyAllAction, *mReplyAuthorAction,
*mReplyListAction, *mForwardInlineAction,
KAction *mTrashAction, *mPrintAction, *mSaveAsAction, *mReplyAction,
*mReplyAllAction, *mReplyAuthorAction, *mReplyListAction, *mForwardInlineAction,
*mForwardAttachedAction, *mForwardDigestAction, *mRedirectAction,
*mViewSourceAction;
KActionMenu *mReplyActionMenu;

Loading…
Cancel
Save