Proko Issue 1533 : Hah! Got it working! ( Danke, Volker the discussion helped ).

Ok, fixed, now it works from context menu + edit menu from both standalone + embedded readerwin.
Also use the right accelerators.

svn path=/branches/kdepim/proko2/kdepim/; revision=626856
wilder-work
Pradeepto Bhattacharya 19 years ago
parent 73809645a2
commit c2fa345e0a
  1. 8
      kmmainwidget.cpp
  2. 1
      kmmainwidget.h
  3. 10
      kmreadermainwin.cpp
  4. 2
      kmreadermainwin.h

@ -2071,6 +2071,11 @@ void KMMainWidget::slotMsgPopup(KMMessage&, const KURL &aUrl, const QPoint& aPoi
mThreadStatusMenu->plug( menu );
}
menu->insertSeparator();
mSelectAllTextAction->plug( menu );
mCopyMsgTextAction->plug( menu );
menu->insertSeparator();
mCopyActionMenu->plug( menu );
mMoveActionMenu->plug( menu );
@ -2239,9 +2244,10 @@ void KMMainWidget::setupActions()
(void) new KAction( i18n("Select &All Messages"), KStdAccel::selectAll(), this,
SLOT(slotMarkAll()), actionCollection(), "mark_all_messages" );
(void) new KAction( i18n("Select Message &Text"),
mSelectAllTextAction = new KAction( i18n("Select Message &Text"),
CTRL+SHIFT+Key_A, mMsgView,
SLOT(selectAll()), actionCollection(), "mark_all_text" );
mCopyMsgTextAction = KStdAction::copy( messageView(), SLOT(slotCopySelectedText()), actionCollection(), "kmail_copy");
//----- Folder Menu
(void) new KAction( i18n("&New Folder..."), "folder_new", 0, mFolderTree,

@ -440,6 +440,7 @@ private:
KToggleAction* mTotalColumnToggle;
KToggleAction *mToggleShowQuickSearchAction;
KAction *mSelectAllTextAction, *mCopyMsgTextAction;
private:
KMFolderTree *mFolderTree;
KMReaderWin *mMsgView;

@ -264,8 +264,10 @@ void KMReaderMainWin::setupAccel()
KStdAction::keyBindings(this, SLOT(slotEditKeys()), actionCollection());
KStdAction::configureToolbars(this, SLOT(slotEditToolbars()), actionCollection());
mSelectAllAction = KStdAction::selectAll( mReaderWin, SLOT(selectAll()), actionCollection(), "mark_all_text");
mCopyAction = KStdAction::copy( mReaderWin, SLOT(slotCopySelectedText()), actionCollection(), "kmail_copy");
mSelectAllTextAction = new KAction( i18n("Select Message &Text"),
CTRL+SHIFT+Key_A, mReaderWin,
SLOT(selectAll()), actionCollection(), "mark_all_text" );
mCopyMsgTextAction = KStdAction::copy( mReaderWin, SLOT(slotCopySelectedText()), actionCollection(), "kmail_copy");
createGUI( "kmreadermainwin.rc" );
//menuBar()->hide();
@ -324,8 +326,8 @@ void KMReaderMainWin::slotMsgPopup(KMMessage &aMsg, const KURL &aUrl, const QPoi
mReaderWin->viewSourceAction()->plug( menu );
menu->insertSeparator();
mSelectAllAction->plug( menu );
mCopyAction->plug( menu );
mSelectAllTextAction->plug( menu );
mCopyMsgTextAction->plug( menu );
menu->insertSeparator();
mPrintAction->plug( menu );

@ -63,7 +63,7 @@ private:
KAction *mPrintAction, *mReplyAction, *mReplyAllAction, *mReplyAuthorAction,
*mReplyListAction, *mForwardAction,
*mForwardAttachedAction, *mRedirectAction, *mBounceAction;
KAction *mCopyAction, *mSelectAllAction;
KAction *mCopyMsgTextAction, *mSelectAllTextAction;
KActionMenu *mReplyActionMenu;
KActionMenu *mForwardActionMenu;

Loading…
Cancel
Save