Mercurial > vba-linux
view src/win32/AccelEditor.h @ 4:5f6f2134e8ce
apu appears to not be used
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:35:58 -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 > 10005 #pragma once6 #endif // _MSC_VER > 10007 // AccelEditor.h : header file8 //9 #include "AcceleratorManager.h"10 #include "KeyboardEdit.h"11 #include "ResizeDlg.h"13 /////////////////////////////////////////////////////////////////////////////14 // AccelEditor dialog16 class AccelEditor : public ResizeDlg17 {18 // Construction19 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 constructor26 virtual BOOL PreTranslateMessage(MSG *pMsg);28 // Dialog Data29 //{{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_DATA51 // Overrides52 // ClassWizard generated virtual function overrides53 //{{AFX_VIRTUAL(AccelEditor)54 protected:55 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support56 //}}AFX_VIRTUAL58 // Implementation59 protected:60 BOOL CheckAffected();61 BOOL CheckJammed();62 BOOL CheckListSelections();64 // Generated message map functions65 //{{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_MSG87 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_)