OSDN Git Service

99c2ad78346910f5c46d68b3c634995ee4848ba9
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Commands / SetExtMenu.h
1 // TortoiseSVN - a Windows shell extension for easy version control\r
2 \r
3 // Copyright (C) 2008 - TortoiseSVN\r
4 \r
5 // This program is free software; you can redistribute it and/or\r
6 // modify it under the terms of the GNU General Public License\r
7 // as published by the Free Software Foundation; either version 2\r
8 // of the License, or (at your option) any later version.\r
9 \r
10 // This program is distributed in the hope that it will be useful,\r
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of\r
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
13 // GNU General Public License for more details.\r
14 \r
15 // You should have received a copy of the GNU General Public License\r
16 // along with this program; if not, write to the Free Software Foundation,\r
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
18 //\r
19 #pragma once\r
20 #include "resource.h"\r
21 #include "StandAloneDlg.h"\r
22 \r
23 // TortoiseSVN - a Windows shell extension for easy version control\r
24 \r
25 // Copyright (C) 2008 - TortoiseSVN\r
26 \r
27 // This program is free software; you can redistribute it and/or\r
28 // modify it under the terms of the GNU General Public License\r
29 // as published by the Free Software Foundation; either version 2\r
30 // of the License, or (at your option) any later version.\r
31 \r
32 // This program is distributed in the hope that it will be useful,\r
33 // but WITHOUT ANY WARRANTY; without even the implied warranty of\r
34 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
35 // GNU General Public License for more details.\r
36 \r
37 // You should have received a copy of the GNU General Public License\r
38 // along with this program; if not, write to the Free Software Foundation,\r
39 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
40 //\r
41 #pragma once\r
42 #include "resource.h"\r
43 #include "StandAloneDlg.h"\r
44 \r
45 class CSetMenuEx : public ISettingsPropPage\r
46 {\r
47         DECLARE_DYNAMIC(CSetLookAndFeelPage)\r
48 \r
49 public:\r
50         CSetLookAndFeelPage();\r
51         virtual ~CSetLookAndFeelPage();\r
52 \r
53         UINT GetIconID() {return IDI_MISC;}\r
54 \r
55 // Dialog Data\r
56         enum { IDD = IDD_SETTINMENUEX };\r
57 \r
58 protected:\r
59         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
60         virtual BOOL PreTranslateMessage(MSG* pMsg);\r
61         virtual BOOL OnApply();\r
62         afx_msg void OnBnClickedOnlyexplorer();\r
63         afx_msg void OnLvnItemchangedMenulist(NMHDR *pNMHDR, LRESULT *pResult);\r
64         afx_msg void OnChange();\r
65         afx_msg void OnEnChangeNocontextpaths();\r
66 \r
67         DECLARE_MESSAGE_MAP()\r
68 public:\r
69         virtual BOOL OnInitDialog();\r
70 \r
71 private:\r
72 \r
73         CToolTips                       m_tooltips;\r
74         CRegDWORD                       m_regTopmenu;\r
75         CRegDWORD                       m_regTopmenuhigh;\r
76 \r
77         CImageList                      m_imgList;\r
78         CListCtrl                       m_cMenuList;\r
79         BOOL                            m_bModified;\r
80         unsigned __int64        m_topmenu;\r
81         bool                            m_bBlock;\r
82         \r
83         CString                         m_sNoContextPaths;\r
84         CRegString                      m_regNoContextPaths;\r
85 };\r