Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23748/src/gui

Modified Files:
        wxFolderView.cpp wxOptionsDlg.cpp 
Log Message:
Make it an option (default on) that mark (un)read and many other commands
automatically go to the next message.

Going to next message is a problem when messages are automatically viewed...
Suppose you have a set of unread messages in a folder. You open this folder.
This goes to the first unread message. You'd like to let it unread, so you hit
Ctrl-Shift-U. But then you have to repeat for the next message, and so on
until the end of the set of new messages...

Index: wxFolderView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxFolderView.cpp,v
retrieving revision 1.661
retrieving revision 1.662
diff -b -u -2 -r1.661 -r1.662
--- wxFolderView.cpp    8 Apr 2004 17:28:49 -0000       1.661
+++ wxFolderView.cpp    20 Jun 2004 02:56:27 -0000      1.662
@@ -159,4 +159,5 @@
 extern const MOption MP_PREVIEW_ON_SELECT;
 extern const MOption MP_USE_TRASH_FOLDER;
+extern const MOption MP_FVIEW_AUTONEXT_ON_COMMAND;
 
 // ----------------------------------------------------------------------------
@@ -4258,4 +4259,9 @@
 wxFolderView::UpdateFocusAfterCommand(int cmd)
 {
+   Profile *profile = m_Profile ? m_Profile : mApplication->GetProfile();
+   if (!READ_CONFIG(profile, MP_FVIEW_AUTONEXT_ON_COMMAND))
+   {
+      return;
+   }
    switch ( cmd )
    {

Index: wxOptionsDlg.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxOptionsDlg.cpp,v
retrieving revision 1.407
retrieving revision 1.408
diff -b -u -2 -r1.407 -r1.408
--- wxOptionsDlg.cpp    18 Jun 2004 02:31:28 -0000      1.407
+++ wxOptionsDlg.cpp    20 Jun 2004 02:56:27 -0000      1.408
@@ -397,4 +397,5 @@
    ConfigField_FolderViewPreviewOnSelect,
    ConfigField_FolderViewSelectInitially,
+   ConfigField_FolderViewAutoNextOnCommand,
 
    ConfigField_FolderViewAutoNextHelp,
@@ -1464,4 +1465,5 @@
    { gettext_noop("Preview message when &selected"), Field_Bool,  -1 },
    { gettext_noop("&Select the initial message"),    Field_Bool,  
ConfigField_FolderViewPreviewOnSelect },
+   { gettext_noop("Go to next message on command"),  Field_Bool,  -1},
 
    { gettext_noop("\nWhat happens when you scroll down beyond "
@@ -2017,4 +2019,5 @@
    CONFIG_ENTRY(MP_PREVIEW_ON_SELECT),
    CONFIG_ENTRY(MP_AUTOSHOW_SELECT),
+   CONFIG_ENTRY(MP_FVIEW_AUTONEXT_ON_COMMAND),
 
    CONFIG_NONE(),



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to