Move prune (all remotes) setting to git config page
[TortoiseGit.git] / src / TortoiseProc / Settings / SetMainPage.h
blobd8cfc5f8c04383fac9c81c2c7dbd29f572715fd3
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2011, 2013, 2016, 2019 - TortoiseGit
4 // Copyright (C) 2003-2008, 2013 - 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
21 #include "SettingsPropPage.h"
22 #include "registry.h"
23 #include "ConfigureGitExe.h"
25 /**
26 * \ingroup TortoiseProc
27 * This is the main page of the settings. It contains all the most important
28 * settings.
30 class CSetMainPage : public ISettingsPropPage, public CConfigureGitExe
32 DECLARE_DYNAMIC(CSetMainPage)
34 public:
35 CSetMainPage();
36 virtual ~CSetMainPage();
38 UINT GetIconID() override { return IDI_GENERAL; }
40 enum { IDD = IDD_SETTINGSMAIN };
42 protected:
43 virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
45 DECLARE_MESSAGE_MAP()
47 virtual BOOL OnInitDialog() override;
48 virtual BOOL OnApply() override;
49 afx_msg void OnModified();
50 afx_msg void OnClickVersioncheck();
51 afx_msg void OnMsysGitPathModify();
52 afx_msg void OnBnClickedChecknewerbutton();
53 afx_msg void OnBrowseDir();
54 afx_msg void OnCheck();
55 afx_msg void OnBnClickedButtonShowEnv();
56 afx_msg void OnBnClickedCreatelib();
57 afx_msg void OnBnClickedRunfirststartwizard();
59 private:
60 CString m_sMsysGitPath;
61 CString m_sMsysGitExtranPath;
62 DWORD m_dwMsysGitVersion;
63 CComboBox m_LanguageCombo;
64 CRegDWORD m_regLanguage;
65 DWORD m_dwLanguage;
66 CRegDWORD m_regCheckNewer;
67 BOOL m_bCheckNewer;