Drop code that has no effect
[TortoiseGit.git] / src / TortoiseProc / Settings / Settings.h
blobc2184cc2befa25177e475622440b186f984a7b83
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.
20 #pragma once
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"
39 #include "SetHooks.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"
50 #include "SettingsTUDiff.h"
52 using namespace TreePropSheet;
54 /**
55 * \ingroup TortoiseProc
56 * This is the container for all settings pages. A setting page is
57 * a class derived from CPropertyPage with an additional method called
58 * SaveData(). The SaveData() method is used by the dialog to save
59 * the settings the user has made - if that method is not called then
60 * it means that the changes are discarded! Each settings page has
61 * to make sure that no changes are saved outside that method.
63 class CSettings : public CTreePropSheet
65 DECLARE_DYNAMIC(CSettings)
67 private:
68 /**
69 * Adds all pages to this Settings-Dialog.
71 void AddPropPages();
72 /**
73 * Removes the pages and frees up memory.
75 void RemovePropPages();
77 private:
78 CSetMainPage * m_pMainPage;
79 CSetProxyPage * m_pProxyPage;
80 CSettingSMTP * m_pSMTPPage;
81 CSetOverlayPage * m_pOverlayPage;
82 CSetOverlayIcons * m_pOverlaysPage;
83 CSetOverlayHandlers * m_pOverlayHandlersPage;
84 CSettingsProgsDiff* m_pProgsDiffPage;
85 CSettingsProgsMerge * m_pProgsMergePage;
86 CSettingsProgsAlternativeEditor * m_pProgsAlternativeEditor;
87 CSetLookAndFeelPage * m_pLookAndFeelPage;
88 CSetDialogs * m_pDialogsPage;
89 CSetDialogs2 * m_pDialogsPage2;
90 CSetDialogs3 * m_pDialogsPage3;
91 CSettingsColors * m_pColorsPage;
92 CSettingsColors2 * m_pColorsPage2;
93 CSettingsColors3 * m_pColorsPage3;
94 CSetSavedDataPage * m_pSavedPage;
95 CSetHooks * m_pHooksPage;
96 CSetBugTraq * m_pBugTraqPage;
97 CSettingsTBlame * m_pTBlamePage;
98 CSettingGitConfig * m_pGitConfig;
99 CSettingGitRemote * m_pGitRemote;
100 CSettingGitCredential * m_pGitCredential;
101 CSettingsBugtraqConfig * m_pBugtraqConfig;
102 CSettingsUDiff* m_pUDiffPage;
104 CSetExtMenu * m_pExtMenu;
105 CSettingsAdvanced * m_pAdvanced;
107 HICON m_hIcon;
109 public:
110 CSettings(UINT nIDCaption,CTGitPath *CmdPath=NULL, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
111 virtual ~CSettings();
112 CString m_DefaultPage;
114 * Calls the SaveData()-methods of each of the settings pages.
116 void HandleRestart();
118 protected:
119 DECLARE_MESSAGE_MAP()
120 virtual BOOL OnInitDialog();
121 afx_msg void OnPaint();
122 afx_msg HCURSOR OnQueryDragIcon();