summaryrefslogtreecommitdiffstats
path: root/Project/ControlEditorBase.h
blob: 6580e73acd8a155087cb38b6b5ce119afdb48fbb (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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
//////////////////////////////////////////////////////////////////////
// This file was auto-generated by codelite's wxCrafter Plugin
// wxCrafter project file: ControlEditor.wxcp
// Do not modify this file by hand!
//////////////////////////////////////////////////////////////////////

#ifndef _PSP_PROJECT_CONTROLEDITOR_BASE_CLASSES_H
#define _PSP_PROJECT_CONTROLEDITOR_BASE_CLASSES_H

#include <wx/settings.h>
#include <wx/xrc/xmlres.h>
#include <wx/xrc/xh_bmp.h>
#include <wx/frame.h>
#include <wx/iconbndl.h>
#include <wx/artprov.h>
#include <wx/sizer.h>
#include <wx/toolbar.h>
#include <wx/aui/framemanager.h>
#include <wx/aui/dockart.h>
#include <wx/panel.h>
#include <wx/glcanvas.h>
#include <wx/button.h>
#include <wx/dialog.h>
#include <wx/notebook.h>
#include <wx/imaglist.h>
#include <wx/stattext.h>
#include <wx/choice.h>
#include <wx/arrstr.h>
#include <wx/textctrl.h>
#if wxVERSION_NUMBER >= 2900
#include <wx/persist.h>
#include <wx/persist/toplevel.h>
#include <wx/persist/bookctrl.h>
#include <wx/persist/treebook.h>
#endif

#ifdef WXC_FROM_DIP
#undef WXC_FROM_DIP
#endif
#if wxVERSION_NUMBER >= 3100
#define WXC_FROM_DIP(x) wxWindow::FromDIP(x, NULL)
#else
#define WXC_FROM_DIP(x) x
#endif


class ControlEditorBase : public wxFrame
{
public:
    enum {
        ID_RIBBON_EXPORT = 10001,
        ID_RIBBON_IMPORT = 10002,
    };
protected:
    wxToolBar* m_toolbarMain;
    wxAuiManager* m_auimgr;
    wxPanel* m_panelControlElements;
    wxPanel* m_panelWorkspace;
    wxGLCanvas* m_glCanvas;
    wxPanel* m_panelButtons;
    wxButton* m_buttonTest;
    wxButton* m_buttonOK;

protected:
    virtual void OnKeyDown(wxKeyEvent& event) { event.Skip(); }
    virtual void OnClose(wxCloseEvent& event) { event.Skip(); }
    virtual void OnImportClick(wxCommandEvent& event) { event.Skip(); }
    virtual void OnExportClick(wxCommandEvent& event) { event.Skip(); }
    virtual void OnPaint(wxPaintEvent& event) { event.Skip(); }
    virtual void OnLeftClickDown(wxMouseEvent& event) { event.Skip(); }
    virtual void OnLeftClickUp(wxMouseEvent& event) { event.Skip(); }
    virtual void OnDoubleClick(wxMouseEvent& event) { event.Skip(); }
    virtual void OnMiddleDown(wxMouseEvent& event) { event.Skip(); }
    virtual void OnMiddleUp(wxMouseEvent& event) { event.Skip(); }
    virtual void OnMouseMotion(wxMouseEvent& event) { event.Skip(); }
    virtual void OnScroll(wxMouseEvent& event) { event.Skip(); }
    virtual void OnIdle(wxIdleEvent& event) { event.Skip(); }
    virtual void OnTestClick(wxCommandEvent& event) { event.Skip(); }
    virtual void OnButtonOKClick(wxCommandEvent& event) { event.Skip(); }

public:
    wxToolBar* GetToolbarMain() { return m_toolbarMain; }
    wxPanel* GetPanelControlElements() { return m_panelControlElements; }
    wxGLCanvas* GetGlCanvas() { return m_glCanvas; }
    wxPanel* GetPanelWorkspace() { return m_panelWorkspace; }
    wxButton* GetButtonTest() { return m_buttonTest; }
    wxButton* GetButtonOK() { return m_buttonOK; }
    wxPanel* GetPanelButtons() { return m_panelButtons; }
    wxAuiManager* GetAuimgr() { return m_auimgr; }
    ControlEditorBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Control editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(800,600), long style = wxDEFAULT_FRAME_STYLE);
    virtual ~ControlEditorBase();
};


class ControlSystemTestBase : public wxDialog
{
protected:
    wxNotebook* m_notebook;
    wxPanel* m_panelGeneral;
    wxStaticText* m_staticTextInput;
    wxChoice* m_choiceInput;
    wxStaticText* m_staticTextStartTime;
    wxTextCtrl* m_textCtrlStartTime;
    wxStaticText* m_staticTextSec_1;
    wxStaticText* m_staticTextSlope;
    wxTextCtrl* m_textCtrlSlope;
    wxStaticText* m_staticTextStep;
    wxTextCtrl* m_textCtrlTimeStep;
    wxStaticText* m_staticTextSimTime;
    wxTextCtrl* m_textCtrlSimTime;
    wxStaticText* m_staticTextSec_2;
    wxButton* m_buttonRun;
    wxButton* m_buttonCancel;

protected:
    virtual void OnRunButtonClick(wxCommandEvent& event) { event.Skip(); }
    virtual void OnCancelButtonClick(wxCommandEvent& event) { event.Skip(); }

public:
    wxStaticText* GetStaticTextInput() { return m_staticTextInput; }
    wxChoice* GetChoiceInput() { return m_choiceInput; }
    wxStaticText* GetStaticTextStartTime() { return m_staticTextStartTime; }
    wxTextCtrl* GetTextCtrlStartTime() { return m_textCtrlStartTime; }
    wxStaticText* GetStaticTextSec_1() { return m_staticTextSec_1; }
    wxStaticText* GetStaticTextSlope() { return m_staticTextSlope; }
    wxTextCtrl* GetTextCtrlSlope() { return m_textCtrlSlope; }
    wxStaticText* GetStaticTextStep() { return m_staticTextStep; }
    wxTextCtrl* GetTextCtrlTimeStep() { return m_textCtrlTimeStep; }
    wxStaticText* GetStaticTextSimTime() { return m_staticTextSimTime; }
    wxTextCtrl* GetTextCtrlSimTime() { return m_textCtrlSimTime; }
    wxStaticText* GetStaticTextSec_2() { return m_staticTextSec_2; }
    wxPanel* GetPanelGeneral() { return m_panelGeneral; }
    wxNotebook* GetNotebook() { return m_notebook; }
    wxButton* GetButtonRun() { return m_buttonRun; }
    wxButton* GetButtonCancel() { return m_buttonCancel; }
    ControlSystemTestBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Control system test"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE);
    virtual ~ControlSystemTestBase();
};

#endif