1 // TortoiseSVN - a Windows shell extension for easy version control
3 // Copyright (C) 2003-2008 - TortoiseSVN
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #include "SettingsPropPage.h"
27 * \ingroup TortoiseProc
28 * Settings page responsible for dialog settings.
30 class CSetDialogs
: public ISettingsPropPage
32 DECLARE_DYNAMIC(CSetDialogs
)
36 virtual ~CSetDialogs();
38 UINT
GetIconID() {return IDI_DIALOGS
;}
41 enum { IDD
= IDD_SETTINGSDIALOGS
};
44 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
48 CString
GetVersionFromFile(const CString
& p_strDateiname
);
52 BOOL m_bShortDateFormat
;
53 BOOL m_bRelativeTimes
;
54 CRegDWORD m_regShortDateFormat
;
55 CRegDWORD m_regRelativeTimes
;
56 BOOL m_bUseSystemLocaleForDates
;
57 CRegDWORD m_regUseSystemLocaleForDates
;
58 CRegDWORD m_regAutoClose
;
59 DWORD_PTR m_dwAutoClose
;
60 CRegDWORD m_regDefaultLogs
;
61 CString m_sDefaultLogs
;
62 CMFCFontComboBox m_cFontNames
;
63 CComboBox m_cFontSizes
;
64 CRegDWORD m_regFontSize
;
66 CRegString m_regFontName
;
68 CComboBox m_cAutoClose
;
69 CRegDWORD m_regUseWCURL
;
71 CRegString m_regDefaultCheckoutPath
;
72 CString m_sDefaultCheckoutPath
;
73 CRegString m_regDefaultCheckoutUrl
;
74 CString m_sDefaultCheckoutUrl
;
75 CRegDWORD m_regDiffByDoubleClick
;
76 BOOL m_bDiffByDoubleClick
;
77 CRegDWORD m_regUseRecycleBin
;
78 BOOL m_bUseRecycleBin
;
81 virtual BOOL
OnInitDialog();
82 virtual BOOL
PreTranslateMessage(MSG
* pMsg
);
83 virtual BOOL
OnApply();
84 afx_msg
void OnChange();
85 afx_msg
void OnCbnSelchangeAutoclosecombo();
86 afx_msg
void OnBnClickedBrowsecheckoutpath();