1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2011 - TortoiseGit
4 // Copyright (C) 2003-2008 - 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.
21 #include "SettingsPropPage.h"
27 * \ingroup TortoiseProc
28 * This is the main page of the settings. It contains all the most important
31 class CSetMainPage
: public ISettingsPropPage
33 DECLARE_DYNAMIC(CSetMainPage
)
37 virtual ~CSetMainPage();
39 UINT
GetIconID() {return IDI_GENERAL
;}
41 enum { IDD
= IDD_SETTINGSMAIN
};
44 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
48 virtual BOOL
OnInitDialog();
49 virtual BOOL
PreTranslateMessage(MSG
* pMsg
);
50 virtual BOOL
OnApply();
51 afx_msg
void OnModified();
52 afx_msg
void OnMsysGitPathModify();
53 afx_msg
void OnBnClickedEditconfig();
54 afx_msg
void OnBnClickedChecknewerbutton();
55 afx_msg
void OnBnClickedSounds();
56 afx_msg
void OnBrowseDir();
57 afx_msg
void OnCheck();
58 afx_msg
void OnBnClickedButtonShowEnv();
59 afx_msg
void OnBnClickedCreatelib();
61 CString
GetVersionFromFile(const CString
& p_strDateiname
);
64 CRegString m_regMsysGitPath
;
65 CRegString m_regMsysGitExtranPath
;
66 CString m_sMsysGitPath
;
67 CString m_sMsysGitExtranPath
;
69 CComboBox m_LanguageCombo
;
70 CRegDWORD m_regLanguage
;
72 CRegDWORD m_regCheckNewer
;