summaryrefslogtreecommitdiffstats
path: root/Project/ControlEditor.h
blob: fd35452a5c90883982408492bb4492e3dc9de2ab (plain)
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
#ifndef CONTROLEDITOR_H
#define CONTROLEDITOR_H

#include "ControlEditorBase.h"
#include <wx/wrapsizer.h>
#include <wx/bmpbuttn.h>
#include <wx/dcclient.h>
#include <wx/graphics.h>

class ControlElementButton : public wxWindow
{
public:
    ControlElementButton(wxWindow* parent, wxString label, wxImage image);
    ~ControlElementButton();

protected:
    void OnPaint(wxPaintEvent& event);
    
    wxString m_label;
    wxImage m_image;
};

class ControlEditor : public ControlEditorBase
{
public:
    ControlEditor(wxWindow* parent);
    virtual ~ControlEditor();

protected:
    void BuildControlElementPanel();
    virtual void LeftClickDown(wxMouseEvent& event);

    wxButton* m_tfButton;
};
#endif // CONTROLEDITOR_H