-
Notifications
You must be signed in to change notification settings - Fork 1
/
XPMDrawCanvasPanel.h
69 lines (56 loc) · 1.95 KB
/
XPMDrawCanvasPanel.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
65
66
67
68
69
/***************************************************************
* Plugin: XPMEditor for Code::Blocks
* Name: XPMDrawCanvasPanel.h
* Purpose: wxPanel containing the status bar, and the area where the image is drawn - definition
* Author: Seb ([email protected])
* Created: 2009-04-23
* Copyright: Seb ()
* License: GPL 3.0
**************************************************************/
#ifndef XPMDRAWCANVASPANEL_H
#define XPMDRAWCANVASPANEL_H
//(*Headers(XPMDrawCanvasPanel)
#include <wx/panel.h>
class wxTextCtrl;
class wxScrolledWindow;
class wxStaticText;
class wxBoxSizer;
//*)
class XPMDrawCanvasPanel: public wxPanel
{
public:
XPMDrawCanvasPanel(wxWindow* parent,
wxWindowID id=wxID_ANY,
const wxPoint& pos=wxDefaultPosition,
const wxSize& size=wxDefaultSize,
const wxString &name=_("DrawCanvasPanel")
);
virtual ~XPMDrawCanvasPanel();
void ShowTextSizer(bool bShow); ///< \brief Hide or show the text controls used by the Text Tool
void SetTextValue(wxString sText); ///< \brief change the text inside the Text Box used by the Text Tool
//(*Declarations(XPMDrawCanvasPanel)
wxStaticText* sCursorPos;
wxScrolledWindow* DrawCanvas;
wxStaticText* StaticText2;
wxBoxSizer* CanvasSizer;
wxTextCtrl* TextEdit;
wxStaticText* StaticText1;
wxBoxSizer* sTextSizer;
wxBoxSizer* BoxSizer1;
//*)
protected:
//(*Identifiers(XPMDrawCanvasPanel)
static const long ID_SCROLLEDWINDOW1;
static const long ID_STATICTEXT2;
static const long ID_TEXTCTRL1;
static const long ID_STATICTEXT4;
static const long ID_STATICTEXT1;
//*)
//(*Handlers(XPMDrawCanvasPanel)
void OnTextEditText(wxCommandEvent& event);
//*)
protected:
void BuildContent(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size);
DECLARE_EVENT_TABLE()
};
#endif