Skyscraper 2.0
moveobject.h
Go to the documentation of this file.
1/*
2 Skyscraper 2.0 Alpha - Move Object Form
3 Copyright (C)2004-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 MOVEOBJECT_H
24#define MOVEOBJECT_H
25
26//(*Headers(MoveObject)
27#include <wx/button.h>
28#include <wx/checkbox.h>
29#include <wx/dialog.h>
30#include <wx/radiobut.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 MoveObject: public wxDialog
40{
41 public:
42
43 MoveObject(DebugPanel* root, wxWindow* parent,wxWindowID id = -1, EngineContext *engine = 0, int object_number = 0);
44 virtual ~MoveObject();
45
46 //(*Identifiers(MoveObject)
47 static const long ID_STATICTEXT1;
48 static const long ID_lblPosition;
49 static const long ID_STATICTEXT3;
50 static const long ID_STATICTEXT4;
51 static const long ID_STATICTEXT2;
52 static const long ID_lblRotation;
53 static const long ID_STATICLINE2;
54 static const long ID_rPosition;
55 static const long ID_rRotation;
56 static const long ID_STATICTEXT28;
57 static const long ID_txtMoveSpeed;
58 static const long ID_bZPlus;
59 static const long ID_bYPlus;
60 static const long ID_bXNeg;
61 static const long ID_chkHold;
62 static const long ID_bXPlus;
63 static const long ID_bZNeg;
64 static const long ID_bYNeg;
65 static const long ID_STATICTEXT16;
66 static const long ID_STATICTEXT21;
67 static const long ID_txtPositionX;
68 static const long ID_bPositionX;
69 static const long ID_STATICTEXT22;
70 static const long ID_txtPositionY;
71 static const long ID_bPositionY;
72 static const long ID_STATICTEXT23;
73 static const long ID_txtPositionZ;
74 static const long ID_bPositionZ;
75 static const long ID_STATICLINE1;
76 static const long ID_STATICTEXT27;
77 static const long ID_STATICTEXT24;
78 static const long ID_txtRotationX;
79 static const long ID_bRotationX;
80 static const long ID_STATICTEXT25;
81 static const long ID_txtRotationY;
82 static const long ID_bRotationY;
83 static const long ID_STATICTEXT26;
84 static const long ID_txtRotationZ;
85 static const long ID_bRotationZ;
86 static const long ID_STATICLINE3;
87 //*)
88 void Loop();
89
90 protected:
91
92 //(*Handlers(MoveObject)
93 void OnInit(wxInitDialogEvent& event);
94 void On_rPosition_Select(wxCommandEvent& event);
95 void On_rRotation_Select(wxCommandEvent& event);
96 void On_bZPlus_Click(wxCommandEvent& event);
97 void On_bYPlus_Click(wxCommandEvent& event);
98 void On_bXNeg_Click(wxCommandEvent& event);
99 void On_bXPlus_Click(wxCommandEvent& event);
100 void On_bZNeg_Click(wxCommandEvent& event);
101 void On_bYNeg_Click(wxCommandEvent& event);
102 void On_bStartPosition_Click(wxCommandEvent& event);
103 void On_bStartRotation_Click(wxCommandEvent& event);
104 void On_bStartDirection_Click(wxCommandEvent& event);
105 void On_bGravity_Click(wxCommandEvent& event);
106 void On_bGravityEnabled_Click(wxCommandEvent& event);
107 void On_bCollisions_Click(wxCommandEvent& event);
108 void On_bFreelook_Click(wxCommandEvent& event);
109 void On_bFreelookSpeed_Click(wxCommandEvent& event);
110 void On_bPositionX_Click(wxCommandEvent& event);
111 void On_bPositionY_Click(wxCommandEvent& event);
112 void On_bPositionZ_Click(wxCommandEvent& event);
113 void On_bRotationX_Click(wxCommandEvent& event);
114 void On_bRotationY_Click(wxCommandEvent& event);
115 void On_bRotationZ_Click(wxCommandEvent& event);
116 void On_chkHold_Click(wxCommandEvent& event);
117 void On_bSetFOV_Click(wxCommandEvent& event);
118 void On_bResetFOV_Click(wxCommandEvent& event);
119 void On_bSetSkyMult_Click(wxCommandEvent& event);
120 void On_bGotoFloor_Click(wxCommandEvent& event);
121 void On_bReportCollisions_Click(wxCommandEvent& event);
122 //*)
123 void OnInit();
124
125 //(*Declarations(MoveObject)
126 wxButton* bPositionX;
127 wxButton* bPositionY;
128 wxButton* bPositionZ;
129 wxButton* bRotationX;
130 wxButton* bRotationY;
131 wxButton* bRotationZ;
132 wxButton* bXNeg;
133 wxButton* bXPlus;
134 wxButton* bYNeg;
135 wxButton* bYPlus;
136 wxButton* bZNeg;
137 wxButton* bZPlus;
138 wxCheckBox* chkHold;
139 wxRadioButton* rPosition;
140 wxRadioButton* rRotation;
141 wxStaticLine* StaticLine1;
142 wxStaticLine* StaticLine2;
143 wxStaticLine* StaticLine3;
144 wxStaticText* StaticText16;
145 wxStaticText* StaticText1;
146 wxStaticText* StaticText20;
147 wxStaticText* StaticText22;
148 wxStaticText* StaticText23;
149 wxStaticText* StaticText24;
150 wxStaticText* StaticText25;
151 wxStaticText* StaticText26;
152 wxStaticText* StaticText27;
153 wxStaticText* StaticText28;
154 wxStaticText* StaticText2;
155 wxStaticText* StaticText3;
156 wxStaticText* lblPosition;
157 wxStaticText* lblRelPosition;
158 wxStaticText* lblRotation;
159 wxTextCtrl* txtMoveSpeed;
160 wxTextCtrl* txtPositionX;
161 wxTextCtrl* txtPositionY;
162 wxTextCtrl* txtPositionZ;
163 wxTextCtrl* txtRotationX;
164 wxTextCtrl* txtRotationY;
165 wxTextCtrl* txtRotationZ;
166 //*)
169 int object_num; //object number
170
171 private:
172
176
177 DECLARE_EVENT_TABLE()
178};
179
180}
181
182#endif
static const long ID_STATICTEXT24
Definition moveobject.h:77
void On_bRotationX_Click(wxCommandEvent &event)
static const long ID_chkHold
Definition moveobject.h:61
static const long ID_txtRotationZ
Definition moveobject.h:84
static const long ID_txtMoveSpeed
Definition moveobject.h:57
static const long ID_txtRotationX
Definition moveobject.h:78
static const long ID_bRotationZ
Definition moveobject.h:85
static const long ID_bPositionX
Definition moveobject.h:68
void On_rPosition_Select(wxCommandEvent &event)
void On_bResetFOV_Click(wxCommandEvent &event)
wxStaticText * StaticText3
Definition moveobject.h:155
void On_bSetSkyMult_Click(wxCommandEvent &event)
void On_bRotationZ_Click(wxCommandEvent &event)
void On_bXPlus_Click(wxCommandEvent &event)
static const long ID_txtPositionZ
Definition moveobject.h:73
wxStaticText * lblRelPosition
Definition moveobject.h:157
void On_bSetFOV_Click(wxCommandEvent &event)
void On_bStartDirection_Click(wxCommandEvent &event)
static const long ID_rRotation
Definition moveobject.h:55
static const long ID_STATICTEXT27
Definition moveobject.h:76
static const long ID_STATICTEXT3
Definition moveobject.h:49
void On_bStartPosition_Click(wxCommandEvent &event)
wxStaticText * StaticText16
Definition moveobject.h:144
static const long ID_txtRotationY
Definition moveobject.h:81
wxTextCtrl * txtPositionX
Definition moveobject.h:160
static const long ID_STATICTEXT28
Definition moveobject.h:56
wxStaticLine * StaticLine2
Definition moveobject.h:142
wxStaticText * StaticText23
Definition moveobject.h:148
void On_bPositionX_Click(wxCommandEvent &event)
void On_bGravityEnabled_Click(wxCommandEvent &event)
void On_bYNeg_Click(wxCommandEvent &event)
wxRadioButton * rRotation
Definition moveobject.h:140
static const long ID_bXPlus
Definition moveobject.h:62
void On_bPositionZ_Click(wxCommandEvent &event)
EngineContext * engine
Definition moveobject.h:174
wxStaticText * StaticText20
Definition moveobject.h:146
wxTextCtrl * txtPositionZ
Definition moveobject.h:162
void OnInit(wxInitDialogEvent &event)
static const long ID_bPositionY
Definition moveobject.h:71
void On_bXNeg_Click(wxCommandEvent &event)
wxStaticLine * StaticLine1
Definition moveobject.h:141
void On_bStartRotation_Click(wxCommandEvent &event)
static const long ID_bRotationX
Definition moveobject.h:79
void On_bRotationY_Click(wxCommandEvent &event)
wxStaticText * StaticText22
Definition moveobject.h:147
wxStaticText * StaticText28
Definition moveobject.h:153
static const long ID_lblPosition
Definition moveobject.h:48
static const long ID_bYNeg
Definition moveobject.h:64
wxTextCtrl * txtRotationX
Definition moveobject.h:163
wxStaticText * StaticText26
Definition moveobject.h:151
static const long ID_STATICTEXT4
Definition moveobject.h:50
wxStaticText * StaticText2
Definition moveobject.h:154
void On_bCollisions_Click(wxCommandEvent &event)
void On_chkHold_Click(wxCommandEvent &event)
static const long ID_STATICTEXT2
Definition moveobject.h:51
SBS::Object * object
Definition moveobject.h:168
void On_bYPlus_Click(wxCommandEvent &event)
static const long ID_bZPlus
Definition moveobject.h:58
static const long ID_STATICLINE2
Definition moveobject.h:53
wxTextCtrl * txtPositionY
Definition moveobject.h:161
static const long ID_lblRotation
Definition moveobject.h:52
static const long ID_STATICTEXT25
Definition moveobject.h:80
void On_bZNeg_Click(wxCommandEvent &event)
static const long ID_bRotationY
Definition moveobject.h:82
void On_bFreelookSpeed_Click(wxCommandEvent &event)
wxStaticText * StaticText25
Definition moveobject.h:150
wxRadioButton * rPosition
Definition moveobject.h:139
void On_bGotoFloor_Click(wxCommandEvent &event)
static const long ID_bXNeg
Definition moveobject.h:60
static const long ID_bYPlus
Definition moveobject.h:59
wxStaticText * StaticText24
Definition moveobject.h:149
static const long ID_txtPositionX
Definition moveobject.h:67
static const long ID_STATICTEXT1
Definition moveobject.h:47
static const long ID_STATICTEXT22
Definition moveobject.h:69
MoveObject(DebugPanel *root, wxWindow *parent, wxWindowID id=-1, EngineContext *engine=0, int object_number=0)
void On_bPositionY_Click(wxCommandEvent &event)
wxTextCtrl * txtRotationY
Definition moveobject.h:164
static const long ID_bZNeg
Definition moveobject.h:63
static const long ID_STATICTEXT23
Definition moveobject.h:72
static const long ID_rPosition
Definition moveobject.h:54
wxStaticLine * StaticLine3
Definition moveobject.h:143
static const long ID_bPositionZ
Definition moveobject.h:74
void On_bFreelook_Click(wxCommandEvent &event)
static const long ID_STATICTEXT21
Definition moveobject.h:66
wxStaticText * lblPosition
Definition moveobject.h:156
static const long ID_STATICLINE1
Definition moveobject.h:75
void On_bZPlus_Click(wxCommandEvent &event)
static const long ID_STATICLINE3
Definition moveobject.h:86
wxStaticText * lblRotation
Definition moveobject.h:158
wxStaticText * StaticText27
Definition moveobject.h:152
void On_bReportCollisions_Click(wxCommandEvent &event)
static const long ID_txtPositionY
Definition moveobject.h:70
wxTextCtrl * txtMoveSpeed
Definition moveobject.h:159
wxTextCtrl * txtRotationZ
Definition moveobject.h:165
static const long ID_STATICTEXT16
Definition moveobject.h:65
void On_rRotation_Select(wxCommandEvent &event)
wxStaticText * StaticText1
Definition moveobject.h:145
static const long ID_STATICTEXT26
Definition moveobject.h:83
void On_bGravity_Click(wxCommandEvent &event)
Ogre::Vector3 Vector3
Definition globals.h:58