annotate src/win32/AccelEditor.h @ 8:08a8e09ca414

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