-
Notifications
You must be signed in to change notification settings - Fork 91
/
MacroPane.h
64 lines (54 loc) · 1.63 KB
/
MacroPane.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*******************************************************************************
*
* Copyright (C) 2010, Alexander Stigsen, e-texteditor.com
*
* This software is licensed under the Open Company License as described
* in the file license.txt, which you should have received as part of this
* distribution. The terms are also available at http://opencompany.org/license.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
******************************************************************************/
#ifndef __MACROPANE_H__
#define __MACROPANE_H__
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <wx/grid.h>
class eMacro;
class EditorFrame;
class MacroPane : public wxPanel {
public:
MacroPane(EditorFrame& frame, wxWindow* parent, eMacro& macro);
void OnMacroChanged();
private:
void UpdateButtons();
void UpdateArgsGrid();
// Event handlers
void OnButtonRec(wxCommandEvent& evt);
void OnButtonDel(wxCommandEvent& evt);
void OnButtonUp(wxCommandEvent& evt);
void OnButtonDown(wxCommandEvent& evt);
void OnButtonSave(wxCommandEvent& evt);
void OnCmdList(wxCommandEvent& evt);
void OnGridChanged(wxGridEvent& evt);
void OnIdle(wxIdleEvent& evt);
DECLARE_EVENT_TABLE()
// Ctrls
wxBitmap m_bitmapStartRec;
wxBitmap m_bitmapStopRec;
wxBitmapButton* m_buttonRec;
wxBitmapButton* m_buttonDel;
wxBitmapButton* m_buttonUp;
wxBitmapButton* m_buttonDown;
wxBitmapButton* m_buttonSave;
wxListBox* m_cmdList;
wxGrid* m_argsGrid;
// Member variabels
EditorFrame& m_parentFrame;
bool m_recState;
eMacro& m_macro;
};
#endif //__MACROPANE_H__