OSDN Git Service

TortoiseGitBlame Add next & prev toolbar button.
authorFrank Li <lznuaa@gmail.com>
Sat, 31 Jan 2009 04:58:20 +0000 (12:58 +0800)
committerFrank Li <lznuaa@gmail.com>
Sat, 31 Jan 2009 04:58:20 +0000 (12:58 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/Resources/TortoiseGitBlame.rc
src/Resources/blameres/Toolbar.bmp
src/Resources/blameres/Toolbar256.bmp
src/TortoiseGitBlame/MainFrm.cpp
src/TortoiseGitBlame/Resource.h

index 28c5548..4233647 100644 (file)
@@ -100,6 +100,9 @@ BEGIN
     BUTTON      ID_FILE_NEW\r
     BUTTON      ID_FILE_OPEN\r
     BUTTON      ID_FILE_SAVE\r
+       SEPARATOR\r
+       BUTTON          ID_VIEW_PREV \r
+       BUTTON          ID_VIEW_NEXT\r
     SEPARATOR\r
     BUTTON      ID_EDIT_CUT\r
     BUTTON      ID_EDIT_COPY\r
@@ -115,6 +118,9 @@ BEGIN
     BUTTON      ID_FILE_NEW\r
     BUTTON      ID_FILE_OPEN\r
     BUTTON      ID_FILE_SAVE\r
+       SEPARATOR\r
+       BUTTON          ID_VIEW_PREV\r
+       BUTTON          ID_VIEW_NEXT\r
     SEPARATOR\r
     BUTTON      ID_EDIT_CUT\r
     BUTTON      ID_EDIT_COPY\r
@@ -388,6 +394,8 @@ BEGIN
     ID_HELP_USING           "Display instructions about how to use help\nHelp"\r
     ID_CONTEXT_HELP         "Display help for clicked on buttons, menus and windows\nHelp"\r
     ID_HELP                 "Display help for current task or command\nHelp"\r
+       ID_VIEW_NEXT                    "Show next change of selected commit\nShow next"\r
+       ID_VIEW_PREV                    "Show previous change of selected commit\nShow previous"\r
 END\r
 \r
 STRINGTABLE \r
index 0556e00..eaf0aca 100644 (file)
Binary files a/src/Resources/blameres/Toolbar.bmp and b/src/Resources/blameres/Toolbar.bmp differ
index 14bd422..14cb81b 100644 (file)
Binary files a/src/Resources/blameres/Toolbar256.bmp and b/src/Resources/blameres/Toolbar256.bmp differ
index 0133460..9c09d9c 100644 (file)
@@ -148,6 +148,8 @@ int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
        lstBasicCommands.AddTail(ID_FILE_NEW);\r
        lstBasicCommands.AddTail(ID_FILE_OPEN);\r
        lstBasicCommands.AddTail(ID_FILE_SAVE);\r
+       lstBasicCommands.AddTail(ID_VIEW_NEXT);\r
+       lstBasicCommands.AddTail(ID_VIEW_PREV);\r
        lstBasicCommands.AddTail(ID_FILE_PRINT);\r
        lstBasicCommands.AddTail(ID_APP_EXIT);\r
        lstBasicCommands.AddTail(ID_EDIT_CUT);\r
index 929d5d0..7426100 100644 (file)
@@ -39,8 +39,7 @@
 #define ID_EDIT_GOTO                    220\r
 #define IDD_GOTODLG                     221\r
 #define IDC_LINENUMBER                  222\r
-#define ID_VIEW_NEXT                                   223\r
-#define ID_VIEW_PREV                                   224\r
+\r
 \r
 #define IDS_STATUS_PANE1                20122\r
 #define IDS_STATUS_PANE2                20123\r
@@ -53,6 +52,8 @@
 #define IDS_FIND_TAB                    20302\r
 #define IDS_EDIT_MENU                   20306\r
 #define IDS_GIT_LOG_TAB                 20307\r
+#define ID_VIEW_NEXT                                   20308\r
+#define ID_VIEW_PREV                                   20309\r
 \r
 // Next default values for new objects\r
 // \r