Skyscraper 2.0
parameterviewer.h
Go to the documentation of this file.
1/*
2 Skyscraper 2.0 Alpha - Parameter Viewer 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 PARAMETERVIEWER_H
24#define PARAMETERVIEWER_H
25
26//(*Headers(ParameterViewer)
27#include <wx/button.h>
28#include <wx/dialog.h>
29#include <wx/sizer.h>
30#include <wx/stattext.h>
31#include <wx/textctrl.h>
32//*)
33
34namespace Skyscraper {
35
36class ParameterViewer: public wxDialog
37{
38 public:
39
40 ParameterViewer(DebugPanel* root, wxWindow* parent, wxString object_type, wxString object_parent, bool createobject, wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize);
41 virtual ~ParameterViewer();
42
43 //(*Declarations(ParameterViewer)
44 wxButton* bCancel;
45 wxButton* bOK;
46 wxButton* bTextures;
47 wxStaticText* StaticText1;
48 wxStaticText* l10;
49 wxStaticText* l11;
50 wxStaticText* l12;
51 wxStaticText* l13;
52 wxStaticText* l14;
53 wxStaticText* l15;
54 wxStaticText* l16;
55 wxStaticText* l17;
56 wxStaticText* l18;
57 wxStaticText* l19;
58 wxStaticText* l1;
59 wxStaticText* l20;
60 wxStaticText* l2;
61 wxStaticText* l3;
62 wxStaticText* l4;
63 wxStaticText* l5;
64 wxStaticText* l6;
65 wxStaticText* l7;
66 wxStaticText* l8;
67 wxStaticText* l9;
68 wxStaticText* tDesc;
69 wxStaticText* tVariables;
70 wxTextCtrl* t10;
71 wxTextCtrl* t11;
72 wxTextCtrl* t12;
73 wxTextCtrl* t13;
74 wxTextCtrl* t14;
75 wxTextCtrl* t15;
76 wxTextCtrl* t16;
77 wxTextCtrl* t17;
78 wxTextCtrl* t18;
79 wxTextCtrl* t19;
80 wxTextCtrl* t1;
81 wxTextCtrl* t20;
82 wxTextCtrl* t2;
83 wxTextCtrl* t3;
84 wxTextCtrl* t4;
85 wxTextCtrl* t5;
86 wxTextCtrl* t6;
87 wxTextCtrl* t7;
88 wxTextCtrl* t8;
89 wxTextCtrl* t9;
90 wxTextCtrl* tCommand;
91 //*)
92 wxString objecttype;
93 wxString objectparent;
94 wxString command;
95 bool create; //true to create an object, false to modify
96
97
98 protected:
99
100 //(*Identifiers(ParameterViewer)
101 static const long ID_tDesc;
102 static const long ID_tVariables;
103 static const long ID_STATICTEXT1;
104 static const long ID_TEXTCTRL1;
105 static const long ID_STATICTEXT2;
106 static const long ID_TEXTCTRL2;
107 static const long ID_STATICTEXT3;
108 static const long ID_TEXTCTRL3;
109 static const long ID_STATICTEXT4;
110 static const long ID_TEXTCTRL4;
111 static const long ID_STATICTEXT5;
112 static const long ID_TEXTCTRL5;
113 static const long ID_STATICTEXT6;
114 static const long ID_TEXTCTRL6;
115 static const long ID_STATICTEXT7;
116 static const long ID_TEXTCTRL7;
117 static const long ID_STATICTEXT8;
118 static const long ID_TEXTCTRL8;
119 static const long ID_STATICTEXT9;
120 static const long ID_TEXTCTRL9;
121 static const long ID_STATICTEXT10;
122 static const long ID_TEXTCTRL10;
123 static const long ID_l11;
124 static const long ID_t11;
125 static const long ID_l12;
126 static const long ID_t12;
127 static const long ID_l13;
128 static const long ID_t13;
129 static const long ID_l14;
130 static const long ID_t14;
131 static const long ID_l15;
132 static const long ID_t15;
133 static const long ID_l16;
134 static const long ID_t16;
135 static const long ID_l17;
136 static const long ID_t17;
137 static const long ID_l18;
138 static const long ID_t18;
139 static const long ID_l19;
140 static const long ID_t19;
141 static const long ID_l20;
142 static const long ID_t20;
143 static const long ID_STATICTEXT11;
144 static const long ID_tCommand;
145 static const long ID_bCancel;
146 static const long ID_bTextures;
147 static const long ID_bOK;
148 //*)
149
150 private:
151
152 //(*Handlers(ParameterViewer)
153 void On_bCancel_Click(wxCommandEvent& event);
154 void On_bOK_Click(wxCommandEvent& event);
155 void ChangeParam(wxCommandEvent& event);
156 void On_bTextures_Click(wxCommandEvent& event);
157 //*)
158
159 bool Setup();
160
163
164 DECLARE_EVENT_TABLE()
165};
166
167}
168
169#endif
static const long ID_STATICTEXT1
static const long ID_STATICTEXT8
static const long ID_STATICTEXT10
static const long ID_STATICTEXT9
void On_bCancel_Click(wxCommandEvent &event)
static const long ID_STATICTEXT11
static const long ID_TEXTCTRL10
static const long ID_STATICTEXT2
ParameterViewer(DebugPanel *root, wxWindow *parent, wxString object_type, wxString object_parent, bool createobject, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
static const long ID_tVariables
static const long ID_STATICTEXT3
static const long ID_STATICTEXT4
void On_bTextures_Click(wxCommandEvent &event)
void On_bOK_Click(wxCommandEvent &event)
static const long ID_STATICTEXT6
static const long ID_STATICTEXT5
static const long ID_STATICTEXT7
void ChangeParam(wxCommandEvent &event)