1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2012 - TortoiseGit
4 // Copyright (C) 2003-2011 - TortoiseSVN
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #include "SettingsPropPage.h"
23 #include "SetMainPage.h"
24 #include "SetProxyPage.h"
25 #include "SetOverlayPage.h"
26 #include "SetOverlayIcons.h"
27 #include "SetOverlayHandlers.h"
28 #include "SettingsProgsDiff.h"
29 #include "SettingsProgsAlternativeEditor.h"
30 #include "SettingsProgsMerge.h"
31 #include "SetLookAndFeelPage.h"
32 #include "SetDialogs.h"
33 #include "SettingsColors.h"
34 #include "SettingsColors2.h"
35 #include "SettingsColors3.h"
36 #include "SetSavedDataPage.h"
38 #include "SetBugTraq.h"
39 #include "SettingsTBlame.h"
40 #include "TreePropSheet/TreePropSheet.h"
41 #include "SettingGitConfig.h"
42 #include "SettingGitRemote.h"
43 #include "SettingsBugtraqConfig.h"
44 #include "SetExtMenu.h"
45 #include "SettingsAdvanced.h"
47 using namespace TreePropSheet
;
50 * \ingroup TortoiseProc
51 * This is the container for all settings pages. A setting page is
52 * a class derived from CPropertyPage with an additional method called
53 * SaveData(). The SaveData() method is used by the dialog to save
54 * the settings the user has made - if that method is not called then
55 * it means that the changes are discarded! Each settings page has
56 * to make sure that no changes are saved outside that method.
58 class CSettings
: public CTreePropSheet
60 DECLARE_DYNAMIC(CSettings
)
64 * Adds all pages to this Settings-Dialog.
68 * Removes the pages and frees up memory.
70 void RemovePropPages();
73 CSetMainPage
* m_pMainPage
;
74 CSetProxyPage
* m_pProxyPage
;
75 CSetOverlayPage
* m_pOverlayPage
;
76 CSetOverlayIcons
* m_pOverlaysPage
;
77 CSetOverlayHandlers
* m_pOverlayHandlersPage
;
78 CSettingsProgsDiff
* m_pProgsDiffPage
;
79 CSettingsProgsMerge
* m_pProgsMergePage
;
80 CSettingsProgsAlternativeEditor
* m_pProgsAlternativeEditor
;
81 CSetLookAndFeelPage
* m_pLookAndFeelPage
;
82 CSetDialogs
* m_pDialogsPage
;
83 CSettingsColors
* m_pColorsPage
;
84 CSettingsColors2
* m_pColorsPage2
;
85 CSettingsColors3
* m_pColorsPage3
;
86 CSetSavedDataPage
* m_pSavedPage
;
87 CSetHooks
* m_pHooksPage
;
88 CSetBugTraq
* m_pBugTraqPage
;
89 CSettingsTBlame
* m_pTBlamePage
;
90 CSettingGitConfig
* m_pGitConfig
;
91 CSettingGitRemote
* m_pGitRemote
;
92 CSettingsBugtraqConfig
* m_pBugtraqConfig
;
94 CSetExtMenu
* m_pExtMenu
;
95 CSettingsAdvanced
* m_pAdvanced
;
100 CSettings(UINT nIDCaption
,CTGitPath
*CmdPath
=NULL
, CWnd
* pParentWnd
= NULL
, UINT iSelectPage
= 0);
101 virtual ~CSettings();
103 CString m_DefaultPage
;
105 * Calls the SaveData()-methods of each of the settings pages.
107 void HandleRestart();
110 DECLARE_MESSAGE_MAP()
111 virtual BOOL
OnInitDialog();
112 afx_msg
void OnPaint();
113 afx_msg HCURSOR
OnQueryDragIcon();