view src/win32/AccelEditor.h @ 2:3549bbe597ed

adding makefile.am
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:47 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 #if !defined(AFX_ACCELEDITOR_H__66F5C854_E28E_40D1_B763_1850374B46A2__INCLUDED_)
2 #define AFX_ACCELEDITOR_H__66F5C854_E28E_40D1_B763_1850374B46A2__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // AccelEditor.h : header file
8 //
9 #include "AcceleratorManager.h"
10 #include "KeyboardEdit.h"
11 #include "ResizeDlg.h"
13 /////////////////////////////////////////////////////////////////////////////
14 // AccelEditor dialog
16 class AccelEditor : public ResizeDlg
17 {
18 // Construction
19 public:
20 void InitCommands();
21 void AddCommandsFromTable();
22 void AddCommandsFromMenu(CMenu *pMenu, HTREEITEM hParent);
23 BOOL IsModified() const;
24 const CAcceleratorManager &GetResultMangager() const;
25 AccelEditor(CWnd *pParent, CMenu *pMenu, CAcceleratorManager *pExtMgr = NULL); // non-standard constructor
26 virtual BOOL PreTranslateMessage(MSG *pMsg);
28 // Dialog Data
29 //{{AFX_DATA(AccelEditor)
30 protected:
31 enum { IDD = IDD_ACCEL_EDITOR };
32 enum { KEY_COLUMN = 0 };
33 enum { AUTO_REPLACE = 0, AUTO_NEW };
34 CListCtrl m_currents;
35 CStatic m_alreadyAffected;
36 CTreeCtrl m_commands;
37 CKeyboardEdit m_key;
38 CEdit m_timeout;
39 CProgressCtrl m_progress;
40 CList<HTREEITEM> m_hItems;
42 int m_timeoutValue;
43 int m_timer;
44 int m_autoMode;
45 BOOL m_modified;
46 CAcceleratorManager m_mgr, m_result;
47 CAcceleratorManager *m_pExtMgr;
48 CMenu *m_pMenuSrc;
49 //}}AFX_DATA
51 // Overrides
52 // ClassWizard generated virtual function overrides
53 //{{AFX_VIRTUAL(AccelEditor)
54 protected:
55 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
56 //}}AFX_VIRTUAL
58 // Implementation
59 protected:
60 BOOL CheckAffected();
61 BOOL CheckJammed();
62 BOOL CheckListSelections();
64 // Generated message map functions
65 //{{AFX_MSG(AccelEditor)
66 virtual BOOL OnInitDialog();
67 afx_msg void OnOk();
68 afx_msg void OnCancel();
69 afx_msg void OnApply();
70 afx_msg void OnReset();
71 afx_msg void OnAssign();
72 afx_msg void OnRemove();
73 afx_msg void OnReplace();
74 afx_msg void OnNew();
75 afx_msg void OnEdit();
77 afx_msg void OnTvnSelchangedCommands(NMHDR *pNMHDR, LRESULT *pResult);
78 // afx_msg void OnListItemChanged(NMHDR *pNMHDR, LRESULT *pResult);
79 afx_msg void OnListClick(NMHDR *pNMHDR, LRESULT *pResult);
80 afx_msg void OnListDblClick(NMHDR *pNMHDR, LRESULT *pResult);
81 afx_msg void OnKeyboardEditChange();
82 afx_msg void OnKeyboardEditKillfocus();
83 afx_msg void OnTimeoutEditSetfocus();
84 afx_msg void OnTimeoutEditKillfocus();
85 afx_msg void OnTimer(UINT_PTR nIDEvent);
86 //}}AFX_MSG
87 DECLARE_MESSAGE_MAP()
88 };
90 //{{AFX_INSERT_LOCATION}}
91 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
93 #endif // !defined(AFX_ACCELEDITOR_H__66F5C854_E28E_40D1_B763_1850374B46A2__INCLUDED_)