Added CString wrapper for get_windows_home_directory()
[TortoiseGit.git] / src / TortoiseProc / Settings / SettingsTBlame.h
blob315b79e8ee84f5287e488ec860992c0fd0d0e5e7
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2007-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.
19 #pragma once
20 #include "SettingsPropPage.h"
21 #include "registry.h"
24 /**
25 * \ingroup TortoiseProc
26 * Settings page to configure TortoiseBlame
28 class CSettingsTBlame : public ISettingsPropPage
30 // DECLARE_DYNAMIC(CSettingsTBlame)
32 public:
33 CSettingsTBlame();
34 virtual ~CSettingsTBlame();
36 UINT GetIconID() {return IDI_TORTOISEBLAME;}
38 // Dialog Data
39 enum { IDD = IDD_SETTINGSTBLAME };
41 protected:
42 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
43 virtual BOOL OnInitDialog();
44 virtual BOOL OnApply();
45 afx_msg void OnBnClickedColor();
46 afx_msg void OnChange();
47 afx_msg void OnBnClickedRestore();
49 DECLARE_MESSAGE_MAP()
51 private:
52 CMFCColorButton m_cNewLinesColor;
53 CMFCColorButton m_cOldLinesColor;
54 CRegDWORD m_regNewLinesColor;
55 CRegDWORD m_regOldLinesColor;
57 CMFCFontComboBox m_cFontNames;
58 CComboBox m_cFontSizes;
59 CRegDWORD m_regFontSize;
60 DWORD m_dwFontSize;
61 CRegString m_regFontName;
62 CString m_sFontName;
63 DWORD m_dwTabSize;
64 CRegDWORD m_regTabSize;
65 BOOL m_bFollowRenames;
66 CRegDWORD m_regFollowRenames;