Skyscraper 2.0
escalatorcontrol.h
Go to the documentation of this file.
1/*
2 Skyscraper 2.0 - Escalator Control
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 ESCALATORCONTROL_H
24#define ESCALATORCONTROL_H
25
26//(*Headers(EscalatorControl)
27#include <wx/button.h>
28#include <wx/dialog.h>
29#include <wx/listbox.h>
30#include <wx/sizer.h>
31#include <wx/slider.h>
32#include <wx/stattext.h>
33#include <wx/textctrl.h>
34//*)
35
36namespace Skyscraper
37{
38
39class EscalatorControl: public wxDialog
40{
41 public:
42
43 EscalatorControl(DebugPanel* parent, wxWindowID id=wxID_ANY);
44 virtual ~EscalatorControl();
45 void Loop();
46
47 //(*Declarations(EscalatorControl)
48 wxButton* bOK;
49 wxListBox* ListBox1;
50 wxSlider* Slider1;
51 wxStaticText* StaticText1;
52 wxStaticText* StaticText2;
53 wxStaticText* txtRun;
54 wxTextCtrl* txtName;
55 wxTextCtrl* txtParent;
56 //*)
57
58 protected:
59
60 //(*Identifiers(EscalatorControl)
61 static const long ID_LISTBOX1;
62 static const long ID_STATICTEXT1;
63 static const long ID_txtName;
64 static const long ID_STATICTEXT2;
65 static const long ID_txtParent;
66 static const long ID_txtRun;
67 static const long ID_SLIDER1;
68 static const long ID_bOK;
69 //*)
70
71 private:
72
73 //(*Handlers(EscalatorControl)
74 void On_chkRun_Click(wxCommandEvent& event);
75 void On_bOK_Click(wxCommandEvent& event);
76 void On_Slider1_Scroll(wxCommandEvent& event);
77 //*)
78 void BuildList(bool restore_selection = false);
79 void UpdateRunState();
80
85
86 DECLARE_EVENT_TABLE()
87};
88
89}
90
91#endif
void On_Slider1_Scroll(wxCommandEvent &event)
void On_bOK_Click(wxCommandEvent &event)
void BuildList(bool restore_selection=false)
EscalatorControl(DebugPanel *parent, wxWindowID id=wxID_ANY)
void On_chkRun_Click(wxCommandEvent &event)