OSDN Git Service

Year update
[skyscrapersim/skyscraper.git] / src / frontend / moveobject.h
1 /* $Id$ */
2
3 /*
4         Skyscraper 1.9 Alpha - Move Object Form
5         Copyright (C)2004-2015 Ryan Thoryk
6         http://www.skyscrapersim.com
7         http://sourceforge.net/projects/skyscraper
8         Contact - ryan@tliquest.net
9
10         This program is free software; you can redistribute it and/or
11         modify it under the terms of the GNU General Public License
12         as published by the Free Software Foundation; either version 2
13         of the License, or (at your option) any later version.
14
15         This program is distributed in the hope that it will be useful,
16         but WITHOUT ANY WARRANTY; without even the implied warranty of
17         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18         GNU General Public License for more details.
19
20         You should have received a copy of the GNU General Public License
21         along with this program; if not, write to the Free Software
22         Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23 */
24
25 #ifndef MOVEOBJECT_H
26 #define MOVEOBJECT_H
27
28 //(*Headers(MoveObject)
29 #include <wx/checkbox.h>
30 #include <wx/dialog.h>
31 #include <wx/sizer.h>
32 #include <wx/button.h>
33 #include <wx/radiobut.h>
34 #include <wx/statline.h>
35 #include <wx/stattext.h>
36 #include <wx/textctrl.h>
37 //*)
38
39 class MoveObject: public wxDialog
40 {
41         public:
42
43                 MoveObject(wxWindow* parent,wxWindowID id = -1, int object_number = 0);
44                 virtual ~MoveObject();
45
46                 //(*Identifiers(MoveObject)
47                 static const long ID_STATICTEXT1;
48                 static const long ID_STATICTEXT2;
49                 static const long ID_lblPosition;
50                 static const long ID_lblRotation;
51                 static const long ID_STATICLINE2;
52                 static const long ID_rPosition;
53                 static const long ID_rRotation;
54                 static const long ID_STATICTEXT28;
55                 static const long ID_txtMoveSpeed;
56                 static const long ID_bZPlus;
57                 static const long ID_bYPlus;
58                 static const long ID_bXNeg;
59                 static const long ID_chkHold;
60                 static const long ID_bXPlus;
61                 static const long ID_bZNeg;
62                 static const long ID_bYNeg;
63                 static const long ID_STATICTEXT16;
64                 static const long ID_STATICTEXT21;
65                 static const long ID_txtPositionX;
66                 static const long ID_bPositionX;
67                 static const long ID_STATICTEXT22;
68                 static const long ID_txtPositionY;
69                 static const long ID_bPositionY;
70                 static const long ID_STATICTEXT23;
71                 static const long ID_txtPositionZ;
72                 static const long ID_bPositionZ;
73                 static const long ID_STATICLINE1;
74                 static const long ID_STATICTEXT27;
75                 static const long ID_STATICTEXT24;
76                 static const long ID_txtRotationX;
77                 static const long ID_bRotationX;
78                 static const long ID_STATICTEXT25;
79                 static const long ID_txtRotationY;
80                 static const long ID_bRotationY;
81                 static const long ID_STATICTEXT26;
82                 static const long ID_txtRotationZ;
83                 static const long ID_bRotationZ;
84                 static const long ID_STATICLINE3;
85                 //*)
86                 void Loop();
87
88         protected:
89
90                 //(*Handlers(MoveObject)
91                 void OnInit(wxInitDialogEvent& event);
92                 void On_rPosition_Select(wxCommandEvent& event);
93                 void On_rRotation_Select(wxCommandEvent& event);
94                 void On_bZPlus_Click(wxCommandEvent& event);
95                 void On_bYPlus_Click(wxCommandEvent& event);
96                 void On_bXNeg_Click(wxCommandEvent& event);
97                 void On_bXPlus_Click(wxCommandEvent& event);
98                 void On_bZNeg_Click(wxCommandEvent& event);
99                 void On_bYNeg_Click(wxCommandEvent& event);
100                 void On_bStartPosition_Click(wxCommandEvent& event);
101                 void On_bStartRotation_Click(wxCommandEvent& event);
102                 void On_bStartDirection_Click(wxCommandEvent& event);
103                 void On_bGravity_Click(wxCommandEvent& event);
104                 void On_bGravityEnabled_Click(wxCommandEvent& event);
105                 void On_bCollisions_Click(wxCommandEvent& event);
106                 void On_bFreelook_Click(wxCommandEvent& event);
107                 void On_bFreelookSpeed_Click(wxCommandEvent& event);
108                 void On_bPositionX_Click(wxCommandEvent& event);
109                 void On_bPositionY_Click(wxCommandEvent& event);
110                 void On_bPositionZ_Click(wxCommandEvent& event);
111                 void On_bRotationX_Click(wxCommandEvent& event);
112                 void On_bRotationY_Click(wxCommandEvent& event);
113                 void On_bRotationZ_Click(wxCommandEvent& event);
114                 void On_chkHold_Click(wxCommandEvent& event);
115                 void On_bSetFOV_Click(wxCommandEvent& event);
116                 void On_bResetFOV_Click(wxCommandEvent& event);
117                 void On_bSetSkyMult_Click(wxCommandEvent& event);
118                 void On_bGotoFloor_Click(wxCommandEvent& event);
119                 void On_bReportCollisions_Click(wxCommandEvent& event);
120                 //*)
121                 void OnInit();
122
123                 //(*Declarations(MoveObject)
124                 wxStaticText* StaticText24;
125                 wxButton* bPositionY;
126                 wxStaticText* StaticText22;
127                 wxButton* bRotationY;
128                 wxStaticLine* StaticLine2;
129                 wxCheckBox* chkHold;
130                 wxTextCtrl* txtRotationY;
131                 wxStaticText* StaticText28;
132                 wxButton* bPositionX;
133                 wxRadioButton* rPosition;
134                 wxStaticText* lblRotation;
135                 wxButton* bZNeg;
136                 wxButton* bXPlus;
137                 wxStaticText* lblPosition;
138                 wxButton* bYNeg;
139                 wxStaticText* StaticText20;
140                 wxStaticText* StaticText1;
141                 wxStaticText* StaticText16;
142                 wxButton* bRotationZ;
143                 wxTextCtrl* txtRotationX;
144                 wxStaticText* StaticText23;
145                 wxButton* bXNeg;
146                 wxTextCtrl* txtPositionX;
147                 wxStaticLine* StaticLine1;
148                 wxStaticLine* StaticLine3;
149                 wxButton* bRotationX;
150                 wxButton* bYPlus;
151                 wxTextCtrl* txtRotationZ;
152                 wxTextCtrl* txtPositionZ;
153                 wxButton* bZPlus;
154                 wxStaticText* StaticText2;
155                 wxStaticText* StaticText27;
156                 wxTextCtrl* txtMoveSpeed;
157                 wxStaticText* StaticText26;
158                 wxTextCtrl* txtPositionY;
159                 wxStaticText* StaticText25;
160                 wxButton* bPositionZ;
161                 wxRadioButton* rRotation;
162                 //*)
163                 Ogre::Vector3 hold_vector;
164                 Object *object;
165                 int object_num; //object number
166
167         private:
168
169                 DECLARE_EVENT_TABLE()
170 };
171
172 #endif