Dropped unused variables
[TortoiseGit.git] / src / TortoiseProc / Settings / SettingsAdvanced.h
blobb00bf60c37e1659f7e2200d6359a6662da3547de
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2009-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
20 #include "SettingsPropPage.h"
23 class CSettingsAdvanced : public ISettingsPropPage
25 DECLARE_DYNAMIC(CSettingsAdvanced)
27 public:
28 CSettingsAdvanced();
29 virtual ~CSettingsAdvanced();
31 UINT GetIconID() { return IDI_GENERAL; }
33 // Dialog Data
34 enum { IDD = IDD_SETTINGS_CONFIG };
36 typedef enum SettingType
38 SettingTypeBoolean,
39 SettingTypeNumber,
40 SettingTypeString,
41 SettingTypeNone,
44 typedef union defaultValue
46 bool b;
47 LPCTSTR s;
48 DWORD l;
51 typedef struct AdvancedSetting
53 CString sName;
54 SettingType type;
55 defaultValue def;
58 protected:
59 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
60 virtual BOOL OnApply();
61 virtual BOOL PreTranslateMessage(MSG* pMsg);
62 virtual BOOL OnInitDialog();
63 afx_msg void OnLvnBeginlabeledit(NMHDR *pNMHDR, LRESULT *pResult);
64 afx_msg void OnLvnEndlabeledit(NMHDR *pNMHDR, LRESULT *pResult);
65 afx_msg void OnNMDblclkConfig(NMHDR *pNMHDR, LRESULT *pResult);
67 DECLARE_MESSAGE_MAP()
69 private:
70 CListCtrl m_ListCtrl;
71 AdvancedSetting settings[50];