Added CString wrapper for get_windows_home_directory()
[TortoiseGit.git] / src / TortoiseProc / Settings / SetOverlayPage.h
blobf9f587569b028b1661d50b5182188cf54729a9b3
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2003-2008,2010 - 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
21 #include "SettingsPropPage.h"
22 #include "Tooltip.h"
23 #include "Registry.h"
25 /**
26 * \ingroup TortoiseProc
27 * Settings page to configure how the icon overlays and the cache should
28 * behave.
30 class CSetOverlayPage : public ISettingsPropPage
32 DECLARE_DYNAMIC(CSetOverlayPage)
34 public:
35 CSetOverlayPage();
36 virtual ~CSetOverlayPage();
38 UINT GetIconID() {return IDI_SET_OVERLAYS;}
40 // Dialog Data
41 enum { IDD = IDD_SETTINGSOVERLAY };
43 protected:
44 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
45 virtual BOOL OnInitDialog();
46 virtual BOOL PreTranslateMessage(MSG* pMsg);
47 afx_msg void OnChange();
48 virtual BOOL OnApply();
50 DECLARE_MESSAGE_MAP()
52 private:
53 BOOL m_bOnlyExplorer;
54 BOOL m_bRemovable;
55 BOOL m_bFloppy;
56 BOOL m_bNetwork;
57 BOOL m_bFixed;
58 BOOL m_bCDROM;
59 BOOL m_bRAM;
60 BOOL m_bUnknown;
61 BOOL m_bUnversionedAsModified;
62 BOOL m_bShowExcludedAsNormal;
63 CRegDWORD m_regOnlyExplorer;
64 CRegDWORD m_regDriveMaskRemovable;
65 CRegDWORD m_regDriveMaskFloppy;
66 CRegDWORD m_regDriveMaskRemote;
67 CRegDWORD m_regDriveMaskFixed;
68 CRegDWORD m_regDriveMaskCDROM;
69 CRegDWORD m_regDriveMaskRAM;
70 CRegDWORD m_regDriveMaskUnknown;
71 CRegDWORD m_regUnversionedAsModified;
72 CRegDWORD m_regShowExcludedAsNormal;
73 CToolTips m_tooltips;
74 CRegString m_regExcludePaths;
75 CString m_sExcludePaths;
76 CRegString m_regIncludePaths;
77 CString m_sIncludePaths;
78 CRegDWORD m_regCacheType;
79 DWORD m_dwCacheType;