Add credential helper settings in Settings Dialog
[TortoiseGit.git] / src / TortoiseProc / Settings / Settings.h
blob4208902adfe1040c1311708752a571e9bc9ed166
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.
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 "SettingsColors.h"
34 #include "SettingsColors2.h"
35 #include "SettingsColors3.h"
36 #include "SetSavedDataPage.h"
37 #include "SetHooks.h"
38 #include "SetBugTraq.h"
39 #include "SettingsTBlame.h"
40 #include "TreePropSheet/TreePropSheet.h"
41 #include "SettingGitConfig.h"
42 #include "SettingGitRemote.h"
43 #include "SettingGitCredential.h"
44 #include "SettingsBugtraqConfig.h"
45 #include "SetExtMenu.h"
46 #include "SettingsAdvanced.h"
48 using namespace TreePropSheet;
50 /**
51 * \ingroup TortoiseProc
52 * This is the container for all settings pages. A setting page is
53 * a class derived from CPropertyPage with an additional method called
54 * SaveData(). The SaveData() method is used by the dialog to save
55 * the settings the user has made - if that method is not called then
56 * it means that the changes are discarded! Each settings page has
57 * to make sure that no changes are saved outside that method.
59 class CSettings : public CTreePropSheet
61 DECLARE_DYNAMIC(CSettings)
63 private:
64 /**
65 * Adds all pages to this Settings-Dialog.
67 void AddPropPages();
68 /**
69 * Removes the pages and frees up memory.
71 void RemovePropPages();
73 private:
74 CSetMainPage * m_pMainPage;
75 CSetProxyPage * m_pProxyPage;
76 CSetOverlayPage * m_pOverlayPage;
77 CSetOverlayIcons * m_pOverlaysPage;
78 CSetOverlayHandlers * m_pOverlayHandlersPage;
79 CSettingsProgsDiff* m_pProgsDiffPage;
80 CSettingsProgsMerge * m_pProgsMergePage;
81 CSettingsProgsAlternativeEditor * m_pProgsAlternativeEditor;
82 CSetLookAndFeelPage * m_pLookAndFeelPage;
83 CSetDialogs * m_pDialogsPage;
84 CSettingsColors * m_pColorsPage;
85 CSettingsColors2 * m_pColorsPage2;
86 CSettingsColors3 * m_pColorsPage3;
87 CSetSavedDataPage * m_pSavedPage;
88 CSetHooks * m_pHooksPage;
89 CSetBugTraq * m_pBugTraqPage;
90 CSettingsTBlame * m_pTBlamePage;
91 CSettingGitConfig * m_pGitConfig;
92 CSettingGitRemote * m_pGitRemote;
93 CSettingGitCredential * m_pGitCredential;
94 CSettingsBugtraqConfig * m_pBugtraqConfig;
96 CSetExtMenu * m_pExtMenu;
97 CSettingsAdvanced * m_pAdvanced;
99 HICON m_hIcon;
101 public:
102 CSettings(UINT nIDCaption,CTGitPath *CmdPath=NULL, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
103 virtual ~CSettings();
104 CTGitPath m_CmdPath;
105 CString m_DefaultPage;
107 * Calls the SaveData()-methods of each of the settings pages.
109 void HandleRestart();
111 protected:
112 DECLARE_MESSAGE_MAP()
113 virtual BOOL OnInitDialog();
114 afx_msg void OnPaint();
115 afx_msg HCURSOR OnQueryDragIcon();