OSDN Git Service

PATCH: [ 942565 ] Option for closing windows with ESC
authorKimmo Varis <kimmov@gmail.com>
Mon, 3 May 2004 15:49:29 +0000 (15:49 +0000)
committerKimmo Varis <kimmov@gmail.com>
Mon, 3 May 2004 15:49:29 +0000 (15:49 +0000)
48 files changed:
Src/DirDoc.cpp
Src/DirView.cpp
Src/DirView.h
Src/Languages/Brazilian/MergeBrazilian.rc
Src/Languages/Brazilian/resource.h
Src/Languages/Bulgarian/MergeBulgarian.rc
Src/Languages/Bulgarian/resource.h
Src/Languages/Catalan/MergeCatalan.rc
Src/Languages/Catalan/resource.h
Src/Languages/ChineseSimplified/MergeChineseSimplified.rc
Src/Languages/ChineseSimplified/resource.h
Src/Languages/ChineseTraditional/MergeChineseTraditional.rc
Src/Languages/ChineseTraditional/resource.h
Src/Languages/Czech/MergeCzech.rc
Src/Languages/Czech/resource.h
Src/Languages/Danish/MergeDanish.rc
Src/Languages/Danish/resource.h
Src/Languages/Dutch/MergeDutch.rc
Src/Languages/Dutch/resource.h
Src/Languages/French/MergeFrench.rc
Src/Languages/French/resource.h
Src/Languages/German/MergeGerman.rc
Src/Languages/German/resource.h
Src/Languages/Italian/MergeItalian.rc
Src/Languages/Italian/resource.h
Src/Languages/Korean/MergeKorean.rc
Src/Languages/Korean/resource.h
Src/Languages/Norwegian/MergeNorwegian.rc
Src/Languages/Norwegian/resource.h
Src/Languages/Polish/MergePolish.rc
Src/Languages/Polish/resource.h
Src/Languages/Russian/MergeRussian.rc
Src/Languages/Russian/resource.h
Src/Languages/Slovak/MergeSlovak.rc
Src/Languages/Slovak/resource.h
Src/Languages/Spanish/MergeSpanish.rc
Src/Languages/Spanish/resource.h
Src/Languages/Swedish/MergeSwedish.rc
Src/Languages/Swedish/resource.h
Src/MainFrm.cpp
Src/Merge.rc
Src/MergeEditView.cpp
Src/MergeEditView.h
Src/OptionsDef.h
Src/PropGeneral.cpp
Src/PropGeneral.h
Src/readme.txt
Src/resource.h

index 16d52da..4d40b75 100644 (file)
@@ -606,6 +606,7 @@ void CDirDoc::RefreshOptions()
        options.bEolSensitive = mf->m_options.GetInt(OPT_CMP_EOL_SENSITIVE);
 
        m_diffWrapper.SetOptions(&options);
+       m_pDirView->RefreshOptions();
 }
 
 /**
index a573e2f..fffe438 100644 (file)
@@ -76,6 +76,7 @@ CDirView::CDirView()
 , m_pHeaderPopup(NULL)
 {
        m_pList = NULL;
+       m_bEscCloses = mf->m_options.GetInt(OPT_CLOSE_WITH_ESC);
 }
 
 CDirView::~CDirView()
@@ -1525,10 +1526,13 @@ void CDirView::OnRefresh()
 BOOL CDirView::PreTranslateMessage(MSG* pMsg)
 {
        // Check if we got 'ESC pressed' -message
-       if ((pMsg->message == WM_KEYDOWN) && (pMsg->wParam == VK_ESCAPE)) 
+       if ((pMsg->message == WM_KEYDOWN) && (pMsg->wParam == VK_ESCAPE))
        {
-               AfxGetMainWnd()->PostMessage(WM_COMMAND, ID_FILE_CLOSE);
-               return FALSE;
+               if (m_bEscCloses)
+               {
+                       AfxGetMainWnd()->PostMessage(WM_COMMAND, ID_FILE_CLOSE);
+                       return FALSE;
+               }
        }
        return CListViewEx::PreTranslateMessage(pMsg);
 }
@@ -2133,3 +2137,11 @@ void CDirView::ResetColumnWidths()
        }
 }
 
+/**
+ * @brief Refresh cached options.
+ */
+void CDirView::RefreshOptions()
+{
+       m_bEscCloses = mf->m_options.GetInt(OPT_CLOSE_WITH_ESC);
+}
+
index 7d93ead..e69db4f 100644 (file)
@@ -92,6 +92,7 @@ public:
        void GotoFirstDiff() { OnFirstdiff(); };
        int AddSpecialItems();
        void AddParentFolderItem();
+       void RefreshOptions();
 
 // Implementation types
 private:
@@ -215,6 +216,7 @@ protected:
        CArray<int, int> m_invcolorder; /**< invcolorder[physical]=logical# */
        CPoint m_ptLastMousePos;
        CMenu * m_pHeaderPopup;
+       BOOL m_bEscCloses; /**< Cached value for option for ESC closing window */
        
        // Generated message map functions
        afx_msg void OnColumnClick(NMHDR* pNMHDR, LRESULT* pResult);
index b1c531d..1a8c105 100644 (file)
@@ -462,10 +462,12 @@ BEGIN
                     BS_AUTOCHECKBOX | WS_TABSTOP,7,27,206,10
     CONTROL         "&Close compare Statepane automatically",IDC_CMPPANE_AUTOCLOSE,
                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG 0, 0, 213, 111
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index 620e51e..7fe8f11 100644 (file)
@@ -462,10 +462,12 @@ BEGIN
     CONTROL         "&Close compare Statepane automatically",
                     IDC_CMPPANE_AUTOCLOSE,"Button",BS_AUTOCHECKBOX | 
                     WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 111
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index c0c5839..936889c 100644 (file)
@@ -461,10 +461,12 @@ BEGIN
                     BS_AUTOCHECKBOX | WS_TABSTOP,7,27,206,10
     CONTROL         "&Close compare Statepane automatically",IDC_CMPPANE_AUTOCLOSE,
                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 111
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index c905d50..fbe6ceb 100644 (file)
@@ -456,10 +456,12 @@ BEGIN
                     WS_TABSTOP,7,27,100,10
     CONTROL         "&Close compare Statepane automatically",IDC_CMPPANE_AUTOCLOSE,
                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 111
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index 0749d11..3839aa6 100644 (file)
@@ -457,10 +457,12 @@ BEGIN
                     WS_TABSTOP,7,27,100,10
     CONTROL         "&Close compare Statepane automatically",IDC_CMPPANE_AUTOCLOSE,
                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 111
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index 1748fa9..c4aacff 100644 (file)
@@ -461,10 +461,12 @@ BEGIN
                     BS_AUTOCHECKBOX | WS_TABSTOP,7,27,206,10
     CONTROL         "&Close compare Statepane automatically",IDC_CMPPANE_AUTOCLOSE,
                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 111
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index 9093809..b572aa3 100644 (file)
@@ -460,10 +460,12 @@ BEGIN
                     BS_AUTOCHECKBOX | WS_TABSTOP,7,27,79,10
     CONTROL         "&Close compare Statepane automatically",IDC_CMPPANE_AUTOCLOSE,
                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 162
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index 9001f12..aedcaa4 100644 (file)
@@ -462,10 +462,12 @@ BEGIN
                     BS_AUTOCHECKBOX | WS_TABSTOP,7,27,87,10
     CONTROL         "&Close compare Statepane automatically",IDC_CMPPANE_AUTOCLOSE,
                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 111
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index 79d5c95..615ca01 100644 (file)
@@ -463,10 +463,12 @@ BEGIN
                     BS_AUTOCHECKBOX | WS_TABSTOP,7,27,80,10
     CONTROL         "&Close compare Statepane automatically",IDC_CMPPANE_AUTOCLOSE,
                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 111
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index 6ae9914..8243d99 100644 (file)
@@ -470,10 +470,12 @@ BEGIN
     CONTROL         "&Close compare Statepane automatically",
                     IDC_CMPPANE_AUTOCLOSE,"Button",BS_AUTOCHECKBOX | 
                     WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Zurücksetzen",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Zurücksetzen",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 111
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index cf131fe..1c9d749 100644 (file)
@@ -460,10 +460,12 @@ BEGIN
                     BS_AUTOCHECKBOX | WS_TABSTOP,7,27,87,10
     CONTROL         "&Close compare Statepane automatically",IDC_CMPPANE_AUTOCLOSE,
                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 111
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index 9ae73a8..d50e29d 100644 (file)
@@ -424,10 +424,12 @@ BEGIN
                     BS_AUTOCHECKBOX | WS_TABSTOP,7,27,98,10
     CONTROL         "&Close compare Statepane automatically",IDC_CMPPANE_AUTOCLOSE,
                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOGEX 0, 0, 213, 111
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index bf6e308..490c9bc 100644 (file)
@@ -461,10 +461,12 @@ BEGIN
                     BS_AUTOCHECKBOX | WS_TABSTOP,7,27,79,10
     CONTROL         "&Close compare Statepane automatically",IDC_CMPPANE_AUTOCLOSE,
                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 162
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index 54c05ed..f96f854 100644 (file)
@@ -462,10 +462,12 @@ BEGIN
                     BS_AUTOCHECKBOX | WS_TABSTOP,7,27,100,10
     CONTROL         "&Close compare Statepane automatically",IDC_CMPPANE_AUTOCLOSE,
                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 111
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index ce8985e..480a360 100644 (file)
@@ -474,10 +474,12 @@ BEGIN
     CONTROL         "&Çàêðûâàòü Statepane àâòîìàòè÷åñêè",
                     IDC_CMPPANE_AUTOCLOSE,"Button",BS_AUTOCHECKBOX |
                     WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Ñáðîñ",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Ñáðîñ",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Íàæìèòå êíîïêó äëÿ ñáðîñà âñåõ ñîîáùåíèé",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 111
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index e88dc07..cf4553c 100644 (file)
@@ -461,10 +461,12 @@ BEGIN
                     BS_AUTOCHECKBOX | WS_TABSTOP,7,27,206,10
     CONTROL         "&Close compare Statepane automatically",IDC_CMPPANE_AUTOCLOSE,
                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 111
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index 7d801dc..72d704c 100644 (file)
@@ -460,10 +460,12 @@ BEGIN
                     BS_AUTOCHECKBOX | WS_TABSTOP,7,27,206,10
     CONTROL         "&Close compare Statepane automatically",IDC_CMPPANE_AUTOCLOSE,
                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 111
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index f0e9750..cc58afe 100644 (file)
@@ -460,10 +460,12 @@ BEGIN
                     BS_AUTOCHECKBOX | WS_TABSTOP,7,27,206,10
     CONTROL         "&Stäng jämför Statepane automatiskt",IDC_CMPPANE_AUTOCLOSE,
                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Återställ",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Återställ",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Tryck på knappen för att återställa alla meddelanderutor",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 162
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif
index e4cefc9..4171ee0 100644 (file)
@@ -195,6 +195,7 @@ CMainFrame::CMainFrame()
        m_options.InitOption(OPT_AUTOCLOSE_CMPPANE, FALSE);
        m_options.InitOption(OPT_MERGE_MODE, FALSE);
        m_options.InitOption(OPT_UNREC_APPLYSYNTAX, FALSE);
+       m_options.InitOption(OPT_CLOSE_WITH_ESC, TRUE);
 
        m_options.InitOption(OPT_CMP_IGNORE_WHITESPACE, 0);
        m_options.InitOption(OPT_CMP_IGNORE_BLANKLINES, FALSE);
@@ -1112,6 +1113,9 @@ void CMainFrame::SetEOLMixed(BOOL bAllow)
        ApplyViewWhitespace();
 }
 
+/**
+ * @brief Opens Options-dialog and saves changed options
+ */
 void CMainFrame::OnOptions() 
 {
        CString sExtEditor;
@@ -1136,6 +1140,7 @@ void CMainFrame::OnOptions()
        gen.m_bScroll = m_options.GetInt(OPT_SCROLL_TO_FIRST);
        gen.m_bDisableSplash = m_options.GetInt(OPT_DISABLE_SPLASH);
        gen.m_bAutoCloseCmpPane = m_options.GetInt(OPT_AUTOCLOSE_CMPPANE);
+       gen.m_bCloseWindowWithEsc = m_options.GetInt(OPT_CLOSE_WITH_ESC);
        regpage.m_strEditorPath = m_options.GetString(OPT_EXT_EDITOR_CMD);
        regpage.GetContextRegValues();
        regpage.m_bUseRecycleBin = m_options.GetInt(OPT_USE_RECYCLE_BIN);
@@ -1161,6 +1166,7 @@ void CMainFrame::OnOptions()
                m_options.SaveOption(OPT_SCROLL_TO_FIRST, gen.m_bScroll);
                m_options.SaveOption(OPT_DISABLE_SPLASH, gen.m_bDisableSplash);
                m_options.SaveOption(OPT_AUTOCLOSE_CMPPANE, gen.m_bAutoCloseCmpPane);
+               m_options.SaveOption(OPT_CLOSE_WITH_ESC, gen.m_bCloseWindowWithEsc);
                m_options.SaveOption(OPT_USE_RECYCLE_BIN, regpage.m_bUseRecycleBin);
                regpage.SaveMergePath();
                sExtEditor = regpage.m_strEditorPath;
index 1976f22..184a4e1 100644 (file)
@@ -462,10 +462,12 @@ BEGIN
     CONTROL         "&Close compare Statepane automatically",
                     IDC_CMPPANE_AUTOCLOSE,"Button",BS_AUTOCHECKBOX | 
                     WS_TABSTOP,7,37,206,10
-    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,57,49,13,NOT 
+    CONTROL         "Cl&ose windows with ESC",IDC_ESC_CLOSES_WINDOW,"Button",
+                    BS_AUTOCHECKBOX | WS_TABSTOP,7,47,90,10
+    PUSHBUTTON      "Reset",IDC_RESET_ALL_MESSAGE_BOXES,167,67,49,13,NOT 
                     WS_TABSTOP
     LTEXT           "Press button to reset all message boxes",IDC_STATIC,7,
-                    59,157,8
+                    69,157,8
 END
 
 IDD_LANGUAGE_SELECT DIALOG  0, 0, 213, 111
index 9b0a092..902f78c 100644 (file)
@@ -65,6 +65,7 @@ CMergeEditView::CMergeEditView()
        SetParser(&m_xParser);
        m_bAutomaticRescan = FALSE;
        fTimerWaitingForIdle = 0;
+       m_bCloseWithEsc = mf->m_options.GetInt(OPT_CLOSE_WITH_ESC);
 
        m_bSyntaxHighlight = mf->m_options.GetInt(OPT_SYNTAX_HIGHLIGHT);
        m_cachedColors.clrDiff = mf->m_options.GetInt(OPT_CLR_DIFF);
@@ -1461,6 +1462,9 @@ BOOL CMergeEditView::PreTranslateMessage(MSG* pMsg)
                // Check if we got 'ESC pressed' -message
                if (pMsg->wParam == VK_ESCAPE)
                {
+                       if (!m_bCloseWithEsc)
+                               return CCrystalEditViewEx::PreTranslateMessage(pMsg);
+
                        // Ask about saving unsaved document, allow to cancel closing
                        CMergeDoc *pd = GetDocument();
                        if (pd->SaveHelper(TRUE))
@@ -2055,6 +2059,8 @@ void CMergeEditView::OnUpdateWMGoto(CCmdUI* pCmdUI)
  */
 void CMergeEditView::RefreshOptions()
 { 
+       m_bCloseWithEsc = mf->m_options.GetInt(OPT_CLOSE_WITH_ESC);
+
        m_bSyntaxHighlight = mf->m_options.GetInt(OPT_SYNTAX_HIGHLIGHT);
        m_cachedColors.clrDiff = mf->m_options.GetInt(OPT_CLR_DIFF);
        m_cachedColors.clrSelDiff = mf->m_options.GetInt(OPT_CLR_SELECTED_DIFF);
index 71b1e57..619b2ed 100644 (file)
@@ -128,6 +128,7 @@ private:
        BOOL fTimerWaitingForIdle;
        COLORSETTINGS m_cachedColors; /**< Cached color settings */
        BOOL m_bSyntaxHighlight; /**< Cached setting for syntax highlight */
+       BOOL m_bCloseWithEsc; /**< Cached setting for closing windows with ESC */
 
        /// active prediffer ID : helper to check the radio button
        int m_CurrentPredifferID;
index cffd874..eb16bc3 100644 (file)
@@ -34,6 +34,7 @@ const TCHAR OPT_EXT_EDITOR_CMD[] = _T("Settings/ExternalEditor");
 const TCHAR OPT_USE_RECYCLE_BIN[] = _T("Settings/UseRecycleBin");
 const TCHAR OPT_AUTOCLOSE_CMPPANE[] = _T("Settings/AutoCloseCmpPane");
 const TCHAR OPT_MERGE_MODE[] = _T("Settings/MergingMode");
+const TCHAR OPT_CLOSE_WITH_ESC[] = _T("Settings/CloseWithEsc");
 
 // Color options
 // The difference color
index 1103509..d6264c0 100644 (file)
 //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 //
 /////////////////////////////////////////////////////////////////////////////
-// PropGeneral.cpp : implementation file
-//
+/** 
+ * @file  PropGeneral.h
+ *
+ * @brief Implementation file for CPropGeneral propertyheet
+ *
+ */
+// RCS ID line follows -- this is updated by CVS
+// $Id$
 
 #include "stdafx.h"
 #include "merge.h"
@@ -36,6 +42,9 @@ static char THIS_FILE[] = __FILE__;
 
 IMPLEMENT_DYNCREATE(CPropGeneral, CPropertyPage)
 
+/** 
+ * @brief Constructor initialising members.
+ */
 CPropGeneral::CPropGeneral() : CPropertyPage(CPropGeneral::IDD)
 {
        //{{AFX_DATA_INIT(CPropGeneral)
@@ -43,6 +52,7 @@ CPropGeneral::CPropGeneral() : CPropertyPage(CPropGeneral::IDD)
        m_bScroll = FALSE;
        m_bDisableSplash = FALSE;
        m_bAutoCloseCmpPane = FALSE;
+       m_bCloseWindowWithEsc = TRUE;
        //}}AFX_DATA_INIT
 }
 
@@ -66,6 +76,7 @@ void CPropGeneral::DoDataExchange(CDataExchange* pDX)
        DDX_Check(pDX, IDC_SCROLL_CHECK, m_bScroll);
        DDX_Check(pDX, IDC_DISABLE_SPLASH, m_bDisableSplash);
        DDX_Check(pDX, IDC_CMPPANE_AUTOCLOSE, m_bAutoCloseCmpPane);
+       DDX_Check(pDX, IDC_ESC_CLOSES_WINDOW, m_bCloseWindowWithEsc);
        //}}AFX_DATA_MAP
 }
 
@@ -79,8 +90,10 @@ END_MESSAGE_MAP()
 /////////////////////////////////////////////////////////////////////////////
 // CPropGeneral message handlers
 
-
-void CPropGeneral::OnResetAllMessageBoxes() 
+/** 
+ * @brief Called when user wants to see all messageboxes again.
+ */
+void CPropGeneral::OnResetAllMessageBoxes()
 {
        CMessageBoxDialog::ResetMessageBoxes();
        AfxMessageBox(ID_MESSAGE_BOX_ARE_RESET, MB_ICONINFORMATION);
index b306c81..ec7652c 100644 (file)
@@ -3,6 +3,8 @@
  *
  * @brief Declaration of CPropGeneral class
  */
+// RCS ID line follows -- this is updated by CVS
+// $Id$
 
 #if !defined(AFX_PROPGENERAL_H__30AD07B0_E420_11D1_BBC5_00A024706EDC__INCLUDED_)
 #define AFX_PROPGENERAL_H__30AD07B0_E420_11D1_BBC5_00A024706EDC__INCLUDED_
@@ -11,6 +13,9 @@
 /////////////////////////////////////////////////////////////////////////////
 // CPropGeneral dialog
 
+/**
+ * @brief Class for General options -propertypage.
+ */
 class CPropGeneral : public CPropertyPage
 {
        DECLARE_DYNCREATE(CPropGeneral)
@@ -27,6 +32,7 @@ public:
        BOOL    m_bScroll;
        BOOL    m_bDisableSplash;
        BOOL    m_bAutoCloseCmpPane;
+       BOOL    m_bCloseWindowWithEsc;
        //}}AFX_DATA
 
 
index f988a0a..9c3d4eb 100644 (file)
@@ -1,3 +1,9 @@
+2004-05-03 Kimmo
+ PATCH: [ 942565 ] Option for closing windows with ESC
+  Src: DirDoc.cpp DirView.cpp DirView.h MainFrm.cpp Merge.rc MergeEditView.cpp
+   MergeEditView.h OptionsDef.h PropGeneral.cpp PropGeneral.h resource.h
+  Languages: *.rc resource.h
+
 2004-05-03 Laoran
  PATCH: [ 946091 ] Fix for GetLineActualLength
   Src/editlib: ccrystaltextview.cpp
index 9cf8a43..9331fd9 100644 (file)
 #define IDC_OPEN_STATUS                 1128
 #define IDC_FILTERFILE_EDITBTN          1129
 #define IDC_FILTERFILE_LIST             1130
+#define IDC_ESC_CLOSES_WINDOW           1131
 #define IDS_NUM_REPLACED                8501
 #define IDS_EDIT_TEXT_NOT_FOUND         8502
 #define IDS_LINE_STATUS_INFO_EOL        8503
 #define _APS_3D_CONTROLS                     1
 #define _APS_NEXT_RESOURCE_VALUE        126
 #define _APS_NEXT_COMMAND_VALUE         32880
-#define _APS_NEXT_CONTROL_VALUE         1131
+#define _APS_NEXT_CONTROL_VALUE         1132
 #define _APS_NEXT_SYMED_VALUE           108
 #endif
 #endif