OSDN Git Service

Add FuncDefs class to handle functions defined in dot.xkeymacs.
[xkeymacs/xkeymacs.git] / xkeymacs / properties.h
1 #if !defined(AFX_PROPERTIES_H__13ABBD97_6862_4CDA_86ED_4863B4845A1B__INCLUDED_)\r
2 #define AFX_PROPERTIES_H__13ABBD97_6862_4CDA_86ED_4863B4845A1B__INCLUDED_\r
3 \r
4 #if _MSC_VER > 1000\r
5 #pragma once\r
6 #endif // _MSC_VER > 1000\r
7 \r
8 #include "propertiesbasic.h"\r
9 #include "propertiesadvanced.h"\r
10 #include "propertieslist.h"\r
11 \r
12 enum TAB_NAME { BASIC_TAB = 1, ADVANCED_TAB = 2, LIST_TAB = 4, ACTIVE_TAB = 8 };\r
13 \r
14 // Properties.h : header file\r
15 //\r
16 \r
17 /////////////////////////////////////////////////////////////////////////////\r
18 // CProperties dialog\r
19 \r
20 class CProperties : public CDialog\r
21 {\r
22 // Construction\r
23 public:\r
24         CProperties(CWnd* pParent = NULL);   // standard constructor\r
25 \r
26 // Dialog Data\r
27         //{{AFX_DATA(CProperties)\r
28         enum { IDD = IDD_PROPERTIES };\r
29         CEdit   m_cWindowText;\r
30         CEdit   m_cKillRingMax;\r
31         CButton m_cUseDialogSetting;\r
32         CButton m_cSelectAll;\r
33         CButton m_cClearAll;\r
34         CButton m_cLoadDefault;\r
35         CComboBox       m_cAppList;\r
36         int             m_nSettingStyle;\r
37         int             m_nKillRingMax;\r
38         //}}AFX_DATA\r
39 \r
40 \r
41 // Overrides\r
42         // ClassWizard generated virtual function overrides\r
43         //{{AFX_VIRTUAL(CProperties)\r
44         protected:\r
45         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
46         //}}AFX_VIRTUAL\r
47 \r
48 // Implementation\r
49 public:\r
50         BOOL IsEnableControl();\r
51         CString GetCurrentApplication();\r
52         int GetApplicationID();\r
53         void EnableControl(TAB_NAME tab = BASIC_TAB);\r
54         void AddItem(const CString& appTitle, const CString& appName);\r
55 protected:\r
56         // Generated message map functions\r
57         //{{AFX_MSG(CProperties)\r
58         virtual BOOL OnInitDialog();\r
59         afx_msg void OnDropdownApplication();\r
60         afx_msg void OnSelchangeApplication();\r
61         virtual void OnOK();\r
62         virtual void OnCancel();\r
63         afx_msg void OnApply();\r
64         afx_msg void OnLoadDefault();\r
65         afx_msg void OnSelectAll();\r
66         afx_msg void OnClearAll();\r
67         afx_msg void OnSettingDefault();\r
68         afx_msg void OnSettingDisable();\r
69         afx_msg void OnSettingSpecific();\r
70         //}}AFX_MSG\r
71         DECLARE_MESSAGE_MAP()\r
72 private:\r
73         int m_nAppID;\r
74         CPropertiesList m_list;\r
75         CPropertiesAdvanced m_advanced;\r
76         CPropertiesBasic m_basic;\r
77         CPropertySheet m_sheet;\r
78         CString m_appTitle;\r
79         CString m_appName;\r
80         void EnableLoadDefaultButton(BOOL bEnable);\r
81         void EnableUseDefaultButton(BOOL bEnable);\r
82         void EnableUseDialogSettingButton(BOOL bEnable);\r
83         void GetDialogData();\r
84         void InitAppList();\r
85         void SetDialogData();\r
86         void GetAppTitleAndName(const int nSel, CString& appTitle, CString& appName);\r
87 };\r
88 \r
89 //{{AFX_INSERT_LOCATION}}\r
90 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
91 \r
92 #endif // !defined(AFX_PROPERTIES_H__13ABBD97_6862_4CDA_86ED_4863B4845A1B__INCLUDED_)\r