-
Notifications
You must be signed in to change notification settings - Fork 91
/
CommandPanel.h
51 lines (42 loc) · 1.28 KB
/
CommandPanel.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
/*******************************************************************************
*
* Copyright (C) 2009, 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 __COMMANDPANEL_H__
#define __COMMANDPANEL_H__
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include <wx/panel.h>
#include <wx/textctrl.h>
#include <wx/stattext.h>
#include <wx/string.h>
#endif
// pre-definitions
class EditorFrame;
class CommandPanel : public wxPanel {
public:
CommandPanel(EditorFrame& parentFrame, wxWindow* parent);
~CommandPanel() {};
void ShowCommand(const wxString& cmd);
private:
// Event handlers
void OnCloseButton(wxCommandEvent& evt);
void OnIdle(wxIdleEvent& evt);
DECLARE_EVENT_TABLE();
// Member Ctrls
wxTextCtrl* m_commandbox;
wxStaticText* m_selStatic;
// Member variables
EditorFrame& m_parentFrame;
size_t m_rangeCount;
size_t m_selectionCount;
};
#endif //__COMMANDPANEL_H__