Skyscraper 2.0
enginemanager.h
Go to the documentation of this file.
1/*
2 Skyscraper 2.0 Alpha - Engine Manager Dialog
3 Copyright (C)2003-2024 Ryan Thoryk
4 https://www.skyscrapersim.net
5 https://sourceforge.net/projects/skyscraper/
6 Contact - ryan@skyscrapersim.net
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21*/
22
23#ifndef ENGINEMANAGER_H
24#define ENGINEMANAGER_H
25
26//(*Headers(EngineManager)
27#include <wx/button.h>
28#include <wx/checkbox.h>
29#include <wx/dialog.h>
30#include <wx/listbox.h>
31#include <wx/sizer.h>
32#include <wx/statline.h>
33#include <wx/stattext.h>
34#include <wx/textctrl.h>
35//*)
36
37namespace Skyscraper {
38
39class EngineManager: public wxDialog
40{
41 public:
42
43 EngineManager(DebugPanel* parent,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize);
44 virtual ~EngineManager();
45
46 //(*Declarations(EngineManager)
47 wxButton* bLoad;
48 wxButton* bMove;
49 wxButton* bOk;
50 wxButton* bReload;
51 wxButton* bSetActive;
52 wxButton* bShutdown;
53 wxCheckBox* chkCLoads;
54 wxCheckBox* chkRender;
55 wxListBox* EngineList;
56 wxStaticLine* StaticLine2;
57 wxStaticText* StaticText1;
58 wxStaticText* StaticText2;
59 wxStaticText* StaticText3;
60 wxStaticText* StaticText4;
61 wxStaticText* StaticText5;
62 wxStaticText* StaticText6;
63 wxTextCtrl* tActive;
64 wxTextCtrl* tBoundsMax;
65 wxTextCtrl* tBoundsMin;
66 wxTextCtrl* tPosition;
67 wxTextCtrl* tState;
68 wxTextCtrl* tUptime;
69 //*)
70 void Loop();
71
72 protected:
73
74 //(*Identifiers(EngineManager)
75 static const wxWindowID ID_EngineList;
76 static const wxWindowID ID_STATICTEXT4;
77 static const wxWindowID ID_tPosition;
78 static const wxWindowID ID_STATICTEXT3;
79 static const wxWindowID ID_tBoundsMin;
80 static const wxWindowID ID_STATICTEXT5;
81 static const wxWindowID ID_tBoundsMax;
82 static const wxWindowID ID_STATICTEXT1;
83 static const wxWindowID ID_tActive;
84 static const wxWindowID ID_STATICTEXT2;
85 static const wxWindowID ID_tState;
86 static const wxWindowID ID_STATICTEXT6;
87 static const wxWindowID ID_tUptime;
88 static const wxWindowID ID_STATICLINE2;
89 static const wxWindowID ID_CLoads;
90 static const wxWindowID ID_chkRender;
91 static const wxWindowID ID_bSetActive;
92 static const wxWindowID ID_bReload;
93 static const wxWindowID ID_bMove;
94 static const wxWindowID ID_bLoad;
95 static const wxWindowID ID_bShutdown;
96 static const wxWindowID ID_bOk;
97 //*)
98 void OnInit();
99
100 private:
101
102 //(*Handlers(EngineManager)
103 void On_bSetActive_Click(wxCommandEvent& event);
104 void On_bLoad_Click(wxCommandEvent& event);
105 void On_bReload_Click(wxCommandEvent& event);
106 void On_bShutdown_Click(wxCommandEvent& event);
107 void On_chkCLoads_Click(wxCommandEvent& event);
108 void On_chkRender_Click(wxCommandEvent& event);
109 void On_bOk_Click(wxCommandEvent& event);
110 void On_bMove_Click(wxCommandEvent& event);
111 //*)
112
118
119 DECLARE_EVENT_TABLE()
120};
121
122}
123
124#endif
125
static const wxWindowID ID_tBoundsMax
static const wxWindowID ID_STATICTEXT6
static const wxWindowID ID_STATICTEXT1
static const wxWindowID ID_tActive
static const wxWindowID ID_chkRender
void On_bOk_Click(wxCommandEvent &event)
static const wxWindowID ID_bReload
void On_chkRender_Click(wxCommandEvent &event)
void On_bMove_Click(wxCommandEvent &event)
void On_bLoad_Click(wxCommandEvent &event)
static const wxWindowID ID_bSetActive
static const wxWindowID ID_bLoad
static const wxWindowID ID_bMove
void On_bSetActive_Click(wxCommandEvent &event)
static const wxWindowID ID_EngineList
static const wxWindowID ID_tBoundsMin
static const wxWindowID ID_STATICTEXT4
static const wxWindowID ID_tUptime
static const wxWindowID ID_tPosition
static const wxWindowID ID_STATICTEXT2
static const wxWindowID ID_CLoads
static const wxWindowID ID_STATICTEXT5
void On_bReload_Click(wxCommandEvent &event)
static const wxWindowID ID_bOk
static const wxWindowID ID_STATICTEXT3
static const wxWindowID ID_tState
void On_chkCLoads_Click(wxCommandEvent &event)
void On_bShutdown_Click(wxCommandEvent &event)
EngineManager(DebugPanel *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
static const wxWindowID ID_bShutdown
static const wxWindowID ID_STATICLINE2