1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2013 - 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 "SetDialogs2.h"
34 #include "SetDialogs3.h"
35 #include "SettingsColors.h"
36 #include "SettingsColors2.h"
37 #include "SettingsColors3.h"
38 #include "SetSavedDataPage.h"
40 #include "SetBugTraq.h"
41 #include "SettingsTBlame.h"
42 #include "TreePropSheet/TreePropSheet.h"
43 #include "SettingGitConfig.h"
44 #include "SettingGitRemote.h"
45 #include "SettingGitCredential.h"
46 #include "SettingsBugtraqConfig.h"
47 #include "SetExtMenu.h"
48 #include "SettingsAdvanced.h"
49 #include "SettingSMTP.h"
51 using namespace TreePropSheet
;
54 * \ingroup TortoiseProc
55 * This is the container for all settings pages. A setting page is
56 * a class derived from CPropertyPage with an additional method called
57 * SaveData(). The SaveData() method is used by the dialog to save
58 * the settings the user has made - if that method is not called then
59 * it means that the changes are discarded! Each settings page has
60 * to make sure that no changes are saved outside that method.
62 class CSettings
: public CTreePropSheet
64 DECLARE_DYNAMIC(CSettings
)
68 * Adds all pages to this Settings-Dialog.
72 * Removes the pages and frees up memory.
74 void RemovePropPages();
77 CSetMainPage
* m_pMainPage
;
78 CSetProxyPage
* m_pProxyPage
;
79 CSettingSMTP
* m_pSMTPPage
;
80 CSetOverlayPage
* m_pOverlayPage
;
81 CSetOverlayIcons
* m_pOverlaysPage
;
82 CSetOverlayHandlers
* m_pOverlayHandlersPage
;
83 CSettingsProgsDiff
* m_pProgsDiffPage
;
84 CSettingsProgsMerge
* m_pProgsMergePage
;
85 CSettingsProgsAlternativeEditor
* m_pProgsAlternativeEditor
;
86 CSetLookAndFeelPage
* m_pLookAndFeelPage
;
87 CSetDialogs
* m_pDialogsPage
;
88 CSetDialogs2
* m_pDialogsPage2
;
89 CSetDialogs3
* m_pDialogsPage3
;
90 CSettingsColors
* m_pColorsPage
;
91 CSettingsColors2
* m_pColorsPage2
;
92 CSettingsColors3
* m_pColorsPage3
;
93 CSetSavedDataPage
* m_pSavedPage
;
94 CSetHooks
* m_pHooksPage
;
95 CSetBugTraq
* m_pBugTraqPage
;
96 CSettingsTBlame
* m_pTBlamePage
;
97 CSettingGitConfig
* m_pGitConfig
;
98 CSettingGitRemote
* m_pGitRemote
;
99 CSettingGitCredential
* m_pGitCredential
;
100 CSettingsBugtraqConfig
* m_pBugtraqConfig
;
102 CSetExtMenu
* m_pExtMenu
;
103 CSettingsAdvanced
* m_pAdvanced
;
108 CSettings(UINT nIDCaption
,CTGitPath
*CmdPath
=NULL
, CWnd
* pParentWnd
= NULL
, UINT iSelectPage
= 0);
109 virtual ~CSettings();
111 CString m_DefaultPage
;
113 * Calls the SaveData()-methods of each of the settings pages.
115 void HandleRestart();
118 DECLARE_MESSAGE_MAP()
119 virtual BOOL
OnInitDialog();
120 afx_msg
void OnPaint();
121 afx_msg HCURSOR
OnQueryDragIcon();