OSDN Git Service

Add Ext menu config at setting dialog to set menu item to external
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Settings / 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 CSetExtMenu : public ISettingsPropPage\r
46 {\r
47         DECLARE_DYNAMIC(CSetExtMenu)\r
48 \r
49 public:\r
50         CSetExtMenu();\r
51         virtual ~CSetExtMenu();\r
52 \r
53         UINT GetIconID() {return IDI_MISC;}\r
54 \r
55 // Dialog Data\r
56         enum { IDD = IDD_SETTINGSEXTMENU };\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         CRegStdWORD                     m_regExtmenu;\r
75         CRegStdWORD                     m_regExtmenuhigh;\r
76         \r
77         unsigned __int64        m_extmenu;\r
78 \r
79         CImageList                      m_imgList;\r
80         CListCtrl                       m_cMenuList;\r
81         BOOL                            m_bModified;\r
82         bool                            m_bBlock;\r
83         \r
84 };\r