1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2011-2012 - 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"
28 * \ingroup TortoiseProc
29 * Settings page responsible for dialog settings.
31 class CSetDialogs
: public ISettingsPropPage
33 DECLARE_DYNAMIC(CSetDialogs
)
37 virtual ~CSetDialogs();
39 UINT
GetIconID() {return IDI_DIALOGS
;}
42 enum { IDD
= IDD_SETTINGSDIALOGS
};
45 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
49 virtual BOOL
OnInitDialog();
50 virtual BOOL
PreTranslateMessage(MSG
* pMsg
);
51 virtual BOOL
OnApply();
52 afx_msg
void OnChange();
53 afx_msg
void OnCbnSelchangeAutoclosecombo();
54 afx_msg
void OnBnClickedBrowsecheckoutpath();
56 CString
GetVersionFromFile(const CString
& p_strDateiname
);
60 BOOL m_bShortDateFormat
;
61 BOOL m_bRelativeTimes
;
62 CRegDWORD m_regShortDateFormat
;
63 CRegDWORD m_regRelativeTimes
;
64 BOOL m_bUseSystemLocaleForDates
;
65 CRegDWORD m_regUseSystemLocaleForDates
;
66 CRegDWORD m_regAutoClose
;
67 DWORD_PTR m_dwAutoClose
;
68 CMFCFontComboBox m_cFontNames
;
69 CComboBox m_cFontSizes
;
70 CRegDWORD m_regFontSize
;
72 CRegString m_regFontName
;
74 CComboBox m_cAutoClose
;
75 CRegDWORD m_regDiffByDoubleClick
;
76 BOOL m_bDiffByDoubleClick
;
77 CRegDWORD m_regUseRecycleBin
;
78 BOOL m_bUseRecycleBin
;
79 CRegDWORD m_regAutocompletion
;
80 BOOL m_bAutocompletion
;
81 CRegDWORD m_regAutocompletionTimeout
;
82 DWORD m_dwAutocompletionTimeout
;
83 CRegDWORD m_regMaxHistory
;
85 CRegDWORD m_regAutoSelect
;
87 CRegDWORD m_regTopoOrder
;