Mercurial > vba-clojure
diff src/win32/AccelEditor.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/win32/AccelEditor.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,93 @@ 1.4 +#if !defined(AFX_ACCELEDITOR_H__66F5C854_E28E_40D1_B763_1850374B46A2__INCLUDED_) 1.5 +#define AFX_ACCELEDITOR_H__66F5C854_E28E_40D1_B763_1850374B46A2__INCLUDED_ 1.6 + 1.7 +#if _MSC_VER > 1000 1.8 +#pragma once 1.9 +#endif // _MSC_VER > 1000 1.10 +// AccelEditor.h : header file 1.11 +// 1.12 +#include "AcceleratorManager.h" 1.13 +#include "KeyboardEdit.h" 1.14 +#include "ResizeDlg.h" 1.15 + 1.16 +///////////////////////////////////////////////////////////////////////////// 1.17 +// AccelEditor dialog 1.18 + 1.19 +class AccelEditor : public ResizeDlg 1.20 +{ 1.21 + // Construction 1.22 +public: 1.23 + void InitCommands(); 1.24 + void AddCommandsFromTable(); 1.25 + void AddCommandsFromMenu(CMenu *pMenu, HTREEITEM hParent); 1.26 + BOOL IsModified() const; 1.27 + const CAcceleratorManager &GetResultMangager() const; 1.28 + AccelEditor(CWnd *pParent, CMenu *pMenu, CAcceleratorManager *pExtMgr = NULL); // non-standard constructor 1.29 + virtual BOOL PreTranslateMessage(MSG *pMsg); 1.30 + 1.31 + // Dialog Data 1.32 + //{{AFX_DATA(AccelEditor) 1.33 +protected: 1.34 + enum { IDD = IDD_ACCEL_EDITOR }; 1.35 + enum { KEY_COLUMN = 0 }; 1.36 + enum { AUTO_REPLACE = 0, AUTO_NEW }; 1.37 + CListCtrl m_currents; 1.38 + CStatic m_alreadyAffected; 1.39 + CTreeCtrl m_commands; 1.40 + CKeyboardEdit m_key; 1.41 + CEdit m_timeout; 1.42 + CProgressCtrl m_progress; 1.43 + CList<HTREEITEM> m_hItems; 1.44 + 1.45 + int m_timeoutValue; 1.46 + int m_timer; 1.47 + int m_autoMode; 1.48 + BOOL m_modified; 1.49 + CAcceleratorManager m_mgr, m_result; 1.50 + CAcceleratorManager *m_pExtMgr; 1.51 + CMenu *m_pMenuSrc; 1.52 + //}}AFX_DATA 1.53 + 1.54 + // Overrides 1.55 + // ClassWizard generated virtual function overrides 1.56 + //{{AFX_VIRTUAL(AccelEditor) 1.57 +protected: 1.58 + virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support 1.59 + //}}AFX_VIRTUAL 1.60 + 1.61 + // Implementation 1.62 +protected: 1.63 + BOOL CheckAffected(); 1.64 + BOOL CheckJammed(); 1.65 + BOOL CheckListSelections(); 1.66 + 1.67 + // Generated message map functions 1.68 + //{{AFX_MSG(AccelEditor) 1.69 + virtual BOOL OnInitDialog(); 1.70 + afx_msg void OnOk(); 1.71 + afx_msg void OnCancel(); 1.72 + afx_msg void OnApply(); 1.73 + afx_msg void OnReset(); 1.74 + afx_msg void OnAssign(); 1.75 + afx_msg void OnRemove(); 1.76 + afx_msg void OnReplace(); 1.77 + afx_msg void OnNew(); 1.78 + afx_msg void OnEdit(); 1.79 + 1.80 + afx_msg void OnTvnSelchangedCommands(NMHDR *pNMHDR, LRESULT *pResult); 1.81 +// afx_msg void OnListItemChanged(NMHDR *pNMHDR, LRESULT *pResult); 1.82 + afx_msg void OnListClick(NMHDR *pNMHDR, LRESULT *pResult); 1.83 + afx_msg void OnListDblClick(NMHDR *pNMHDR, LRESULT *pResult); 1.84 + afx_msg void OnKeyboardEditChange(); 1.85 + afx_msg void OnKeyboardEditKillfocus(); 1.86 + afx_msg void OnTimeoutEditSetfocus(); 1.87 + afx_msg void OnTimeoutEditKillfocus(); 1.88 + afx_msg void OnTimer(UINT_PTR nIDEvent); 1.89 + //}}AFX_MSG 1.90 + DECLARE_MESSAGE_MAP() 1.91 +}; 1.92 + 1.93 +//{{AFX_INSERT_LOCATION}} 1.94 +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 1.95 + 1.96 +#endif // !defined(AFX_ACCELEDITOR_H__66F5C854_E28E_40D1_B763_1850374B46A2__INCLUDED_)