1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2011 - TortoiseGit
4 // Copyright (C) 2003-2010 - 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"
46 using namespace TreePropSheet
;
49 * \ingroup TortoiseProc
50 * This is the container for all settings pages. A setting page is
51 * a class derived from CPropertyPage with an additional method called
52 * SaveData(). The SaveData() method is used by the dialog to save
53 * the settings the user has made - if that method is not called then
54 * it means that the changes are discarded! Each settings page has
55 * to make sure that no changes are saved outside that method.
57 class CSettings
: public CTreePropSheet
59 DECLARE_DYNAMIC(CSettings
)
63 * Adds all pages to this Settings-Dialog.
67 * Removes the pages and frees up memory.
69 void RemovePropPages();
72 CSetMainPage
* m_pMainPage
;
73 CSetProxyPage
* m_pProxyPage
;
74 CSetOverlayPage
* m_pOverlayPage
;
75 CSetOverlayIcons
* m_pOverlaysPage
;
76 CSetOverlayHandlers
* m_pOverlayHandlersPage
;
77 CSettingsProgsDiff
* m_pProgsDiffPage
;
78 CSettingsProgsMerge
* m_pProgsMergePage
;
79 CSettingsProgsAlternativeEditor
* m_pProgsAlternativeEditor
;
80 CSetLookAndFeelPage
* m_pLookAndFeelPage
;
81 CSetDialogs
* m_pDialogsPage
;
82 CSettingsColors
* m_pColorsPage
;
83 CSettingsColors2
* m_pColorsPage2
;
84 CSettingsColors3
* m_pColorsPage3
;
85 CSetSavedDataPage
* m_pSavedPage
;
86 CSetHooks
* m_pHooksPage
;
87 CSetBugTraq
* m_pBugTraqPage
;
88 CSettingsTBlame
* m_pTBlamePage
;
89 CSettingGitConfig
* m_pGitConfig
;
90 CSettingGitRemote
* m_pGitRemote
;
91 CSettingsBugtraqConfig
* m_pBugtraqConfig
;
93 CSetExtMenu
* m_pExtMenu
;
98 CSettings(UINT nIDCaption
,CTGitPath
*CmdPath
=NULL
, CWnd
* pParentWnd
= NULL
, UINT iSelectPage
= 0);
101 CString m_DefaultPage
;
103 * Calls the SaveData()-methods of each of the settings pages.
105 void HandleRestart();
108 DECLARE_MESSAGE_MAP()
109 virtual BOOL
OnInitDialog();
110 afx_msg
void OnPaint();
111 afx_msg HCURSOR
OnQueryDragIcon();