SF.net SVN: mahogany: [7226] trunk/M/src

[email protected]
Newsgroups gmane.mail.mahogany.cvs
Message-ID <[email protected]>
Revision: 7226
          http://svn.sourceforge.net/mahogany/?rev=7226&view=rev
Author:   vadz
Date:     2007-04-02 18:14:58 -0700 (Mon, 02 Apr 2007)

Log Message:
-----------
use WXK_PAGEDOWN/UP instead of WXK_PRIOR/NEXT

Modified Paths:
--------------
    trunk/M/src/gui/wxFolderView.cpp
    trunk/M/src/gui/wxlwindow.cpp
    trunk/M/src/modules/LayoutViewer.cpp

Modified: trunk/M/src/gui/wxFolderView.cpp
===================================================================
--- trunk/M/src/gui/wxFolderView.cpp	2007-04-03 01:13:42 UTC (rev 7225)
+++ trunk/M/src/gui/wxFolderView.cpp	2007-04-03 01:14:58 UTC (rev 7226)
@@ -2159,10 +2159,10 @@
       case WXK_NUMPAD_UP:
       case WXK_DOWN:
       case WXK_NUMPAD_DOWN:
-      case WXK_PRIOR:
-      case WXK_NUMPAD_PRIOR:
-      case WXK_NEXT:
-      case WXK_NUMPAD_NEXT:
+      case WXK_PAGEUP:
+      case WXK_NUMPAD_PAGEUP:
+      case WXK_PAGEDOWN:
+      case WXK_NUMPAD_PAGEDOWN:
       case WXK_HOME:
       case WXK_NUMPAD_HOME:
       case WXK_END:
@@ -4417,8 +4417,8 @@
          }
          return true;
 
-      case WXK_PRIOR:
-      case WXK_NEXT:
+      case WXK_PAGEUP:
+      case WXK_PAGEDOWN:
          // Shift-PageUp/Down have a predefined meaning in the wxListCtrl, so
          // let it have it
          if ( event.ShiftDown() )
@@ -4581,7 +4581,7 @@
          break;
 
 
-      case WXK_NEXT:
+      case WXK_PAGEDOWN:
          // scroll down the preview window
          if ( m_FolderCtrl->IsPreviewed(m_FolderCtrl->GetFocusedItem()) )
          {
@@ -4598,7 +4598,7 @@
          }
          break;
 
-      case WXK_PRIOR:
+      case WXK_PAGEUP:
       case WXK_BACK:
          // scroll up within the message viewer:
          if ( m_FolderCtrl->IsPreviewed(m_FolderCtrl->GetFocusedItem()) )

Modified: trunk/M/src/gui/wxlwindow.cpp
===================================================================
--- trunk/M/src/gui/wxlwindow.cpp	2007-04-03 01:13:42 UTC (rev 7225)
+++ trunk/M/src/gui/wxlwindow.cpp	2007-04-03 01:14:58 UTC (rev 7226)
@@ -602,10 +602,10 @@
    case WXK_DOWN:
       m_llist->MoveCursorVertically(1);
       break;
-   case WXK_PRIOR:
+   case WXK_PAGEUP:
       m_llist->MoveCursorVertically(-Y_SCROLL_PAGE);
       break;
-   case WXK_NEXT:
+   case WXK_PAGEDOWN:
       m_llist->MoveCursorVertically(Y_SCROLL_PAGE);
       break;
    case WXK_HOME:
@@ -1527,8 +1527,8 @@
       case WXK_DOWN:
       case WXK_RIGHT:
       case WXK_LEFT:
-      case WXK_PRIOR:
-      case WXK_NEXT:
+      case WXK_PAGEUP:
+      case WXK_PAGEDOWN:
       case WXK_HOME:
       case WXK_END:
          return true;

Modified: trunk/M/src/modules/LayoutViewer.cpp
===================================================================
--- trunk/M/src/modules/LayoutViewer.cpp	2007-04-03 01:13:42 UTC (rev 7225)
+++ trunk/M/src/modules/LayoutViewer.cpp	2007-04-03 01:14:58 UTC (rev 7226)
@@ -702,7 +702,7 @@
 {
    ScrollPositionChangeChecker check(m_window);
 
-   EmulateKeyPress(WXK_NEXT);
+   EmulateKeyPress(WXK_PAGEDOWN);
 
    return check.HasChanged();
 }
@@ -713,7 +713,7 @@
 {
    ScrollPositionChangeChecker check(m_window);
 
-   EmulateKeyPress(WXK_PRIOR);
+   EmulateKeyPress(WXK_PAGEUP);
 
    return check.HasChanged();
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.