Fix typos
[TortoiseGit.git] / src / TortoiseProc / Settings / SetOverlayHandlers.h
blob4fb61caa69aedc933b5e9980d680225a851ba7a7
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2010, 2012 - 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 "registry.h"
24 /**
25 * \ingroup TortoiseProc
26 * Settings page to configure how the icon overlays and the cache should
27 * behave.
29 class CSetOverlayHandlers : public ISettingsPropPage
31 DECLARE_DYNAMIC(CSetOverlayHandlers)
33 public:
34 CSetOverlayHandlers();
35 virtual ~CSetOverlayHandlers();
37 UINT GetIconID() override { return IDI_SET_OVERLAYS; }
39 // Dialog Data
40 enum { IDD = IDD_SETTINGSOVERLAYHANDLERS };
42 protected:
43 void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
44 BOOL OnInitDialog() override;
45 BOOL OnApply() override;
46 afx_msg void OnChange();
47 afx_msg void OnBnClickedRegedt();
49 DECLARE_MESSAGE_MAP()
51 int GetInstalledOverlays();
52 void UpdateInfoLabel();
54 private:
55 BOOL m_bShowIgnoredOverlay;
56 BOOL m_bShowUnversionedOverlay;
57 BOOL m_bShowAddedOverlay;
58 BOOL m_bShowLockedOverlay;
59 BOOL m_bShowReadonlyOverlay;
60 BOOL m_bShowDeletedOverlay;
61 CRegDWORD m_regShowIgnoredOverlay;
62 CRegDWORD m_regShowUnversionedOverlay;
63 CRegDWORD m_regShowAddedOverlay;
64 CRegDWORD m_regShowLockedOverlay;
65 CRegDWORD m_regShowReadonlyOverlay;
66 CRegDWORD m_regShowDeletedOverlay;