Fix compilation warnings
[TortoiseGit.git] / src / TortoiseProc / Settings / SettingsColors2.h
blob1a8c659c9150d1b007cf1309197eef1934aff45e
1 // TortoiseGit - 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.
19 #pragma once
20 #include "SettingsPropPage.h"
21 #include "Colors.h"
23 /**
24 * \ingroup TortoiseProc
25 * Settings property page to set custom colors used in TortoiseSVN
27 class CSettingsColors2 : public ISettingsPropPage
29 DECLARE_DYNAMIC(CSettingsColors2)
31 public:
32 CSettingsColors2();
33 virtual ~CSettingsColors2();
35 UINT GetIconID() {return IDI_LOOKANDFEEL;}
37 enum { IDD = IDD_SETTINGSCOLORS_2 };
39 protected:
40 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
41 virtual BOOL OnInitDialog();
42 afx_msg void OnBnClickedColor();
43 afx_msg void OnBnClickedRestore();
44 virtual BOOL OnApply();
46 DECLARE_MESSAGE_MAP()
48 private:
49 CMFCColorButton m_cCurrentBranch;
50 CMFCColorButton m_cRemoteBranch;
51 CMFCColorButton m_cLocalBranch;
52 CMFCColorButton m_cTags;
54 CColors m_Colors;