Skyscraper 2.0
actionviewer.h
Go to the documentation of this file.
1/*
2 Skyscraper 2.0 Alpha - Action Viewer
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 ACTIONVIEWER_H
24#define ACTIONVIEWER_H
25
26//(*Headers(ActionViewer)
27#include <wx/button.h>
28#include <wx/dialog.h>
29#include <wx/listbox.h>
30#include <wx/sizer.h>
31#include <wx/stattext.h>
32#include <wx/textctrl.h>
33//*)
34
35namespace Skyscraper {
36
37class ActionViewer: public wxDialog
38{
39 public:
40
41 ActionViewer(DebugPanel* parent,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize);
42 virtual ~ActionViewer();
43
44 //(*Declarations(ActionViewer)
45 wxButton* bDelete;
46 wxButton* bOK;
47 wxButton* bRun;
48 wxListBox* ActionList;
49 wxStaticText* StaticText1;
50 wxStaticText* StaticText2;
51 wxStaticText* StaticText3;
52 wxStaticText* StaticText4;
53 wxStaticText* StaticText5;
54 wxTextCtrl* tCommand;
55 wxTextCtrl* tName;
56 wxTextCtrl* tParameters;
57 wxTextCtrl* tParentName;
58 wxTextCtrl* tType;
59 //*)
60 void Loop();
61
62 protected:
63
64 //(*Identifiers(ActionViewer)
65 static const long ID_ActionList;
66 static const long ID_bDelete;
67 static const long ID_bRun;
68 static const long ID_bOK;
69 static const long ID_STATICTEXT1;
70 static const long ID_tName;
71 static const long ID_STATICTEXT2;
72 static const long ID_tParentName;
73 static const long ID_STATICTEXT3;
74 static const long ID_tType;
75 static const long ID_STATICTEXT4;
76 static const long ID_tCommand;
77 static const long ID_STATICTEXT5;
78 static const long ID_tParameters;
79 //*)
80
81 private:
82
83 //(*Handlers(ActionViewer)
84 void On_bRun_Click(wxCommandEvent& event);
85 void On_bOK_Click(wxCommandEvent& event);
86 void On_ActionList_Select(wxCommandEvent& event);
87 void On_bDelete_Click(wxCommandEvent& event);
88 //*)
92
93 DECLARE_EVENT_TABLE()
94};
95
96}
97
98#endif
void On_bRun_Click(wxCommandEvent &event)
static const long ID_ActionList
static const long ID_STATICTEXT3
static const long ID_STATICTEXT4
void On_bDelete_Click(wxCommandEvent &event)
static const long ID_tParentName
static const long ID_STATICTEXT1
wxStaticText * StaticText1
void On_bOK_Click(wxCommandEvent &event)
wxStaticText * StaticText5
static const long ID_tParameters
static const long ID_tType
static const long ID_bOK
static const long ID_STATICTEXT5
static const long ID_bDelete
ActionViewer(DebugPanel *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
static const long ID_tCommand
static const long ID_tName
void On_ActionList_Select(wxCommandEvent &event)
wxStaticText * StaticText2
wxStaticText * StaticText4
static const long ID_STATICTEXT2
static const long ID_bRun
wxStaticText * StaticText3