Skyscraper 2.0
peoplemanager.h
Go to the documentation of this file.
1/*
2 Skyscraper 2.0 Alpha - People Manager 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 PEOPLEMANAGER_H
24#define PEOPLEMANAGER_H
25
26//(*Headers(PeopleManager)
27#include <wx/button.h>
28#include <wx/checkbox.h>
29#include <wx/dialog.h>
30#include <wx/listbox.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 PeopleManager: public wxDialog
40{
41 public:
42
43 PeopleManager(DebugPanel* parent,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize);
44 virtual ~PeopleManager();
45
46 //(*Declarations(PeopleManager)
47 wxButton* bDelete;
48 wxButton* bGo;
49 wxButton* bLobby;
50 wxButton* bNew;
51 wxButton* bOK;
52 wxButton* bSetFloor;
53 wxButton* bSetName;
54 wxButton* bStop;
55 wxCheckBox* chkRandom;
56 wxCheckBox* chkService;
57 wxListBox* PersonList;
58 wxStaticLine* StaticLine1;
59 wxStaticLine* StaticLine2;
60 wxStaticLine* StaticLine3;
61 wxStaticText* StaticText1;
62 wxStaticText* StaticText2;
63 wxStaticText* StaticText3;
64 wxStaticText* StaticText4;
65 wxStaticText* StaticText5;
66 wxTextCtrl* tDestination;
67 wxTextCtrl* tFloor;
68 wxTextCtrl* tName;
69 wxTextCtrl* tRouteActive;
70 wxTextCtrl* tStatus;
71 wxTextCtrl* txtLobby;
72 //*)
73 void Loop();
74
75 protected:
76
77 //(*Identifiers(PeopleManager)
78 static const long ID_PersonList;
79 static const long ID_STATICTEXT1;
80 static const long ID_tName;
81 static const long ID_bSetName;
82 static const long ID_STATICTEXT2;
83 static const long ID_tFloor;
84 static const long ID_bSetFloor;
85 static const long ID_STATICTEXT3;
86 static const long ID_tDestination;
87 static const long ID_bGo;
88 static const long ID_STATICTEXT5;
89 static const long ID_tRouteActive;
90 static const long ID_bStop;
91 static const long ID_STATICTEXT4;
92 static const long ID_txtLobby;
93 static const long ID_bLobby;
94 static const long ID_STATICLINE1;
95 static const long ID_STATICLINE2;
96 static const long ID_STATICLINE3;
97 static const long ID_tStatus;
98 static const long ID_chkRandom;
99 static const long ID_chkService;
100 static const long ID_bNew;
101 static const long ID_bDelete;
102 static const long ID_bOK;
103 //*)
104
105 private:
106
107 //(*Handlers(PeopleManager)
108 void On_bSetName_Click(wxCommandEvent& event);
109 void On_bSetFloor_Click(wxCommandEvent& event);
110 void On_bGo_Click(wxCommandEvent& event);
111 void On_bNew_Click(wxCommandEvent& event);
112 void On_bDelete_Click(wxCommandEvent& event);
113 void On_bOK_Click(wxCommandEvent& event);
114 void On_chkRandom_Click(wxCommandEvent& event);
115 void On_chkService_Click(wxCommandEvent& event);
116 void On_bStop_Click(wxCommandEvent& event);
117 void On_bLobby_Click(wxCommandEvent& event);
118 //*)
119 void BuildList(bool restore_selection = false);
124 int floor;
126 std::string status;
127
128 DECLARE_EVENT_TABLE()
129};
130
131}
132
133#endif
134
static const long ID_PersonList
static const long ID_STATICLINE2
static const long ID_bLobby
static const long ID_tDestination
void On_bOK_Click(wxCommandEvent &event)
static const long ID_STATICLINE3
static const long ID_bSetFloor
static const long ID_STATICTEXT1
void On_bNew_Click(wxCommandEvent &event)
void On_bGo_Click(wxCommandEvent &event)
static const long ID_STATICTEXT2
static const long ID_tName
void On_bLobby_Click(wxCommandEvent &event)
static const long ID_STATICTEXT3
static const long ID_STATICTEXT4
void On_bStop_Click(wxCommandEvent &event)
static const long ID_STATICLINE1
void On_chkService_Click(wxCommandEvent &event)
void On_chkRandom_Click(wxCommandEvent &event)
PeopleManager(DebugPanel *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
static const long ID_chkRandom
void On_bSetName_Click(wxCommandEvent &event)
static const long ID_txtLobby
static const long ID_bSetName
static const long ID_chkService
void BuildList(bool restore_selection=false)
void On_bDelete_Click(wxCommandEvent &event)
static const long ID_bStop
static const long ID_tRouteActive
static const long ID_tStatus
void On_bSetFloor_Click(wxCommandEvent &event)
static const long ID_bDelete
static const long ID_bNew
static const long ID_STATICTEXT5
static const long ID_tFloor
static const long ID_bOK
static const long ID_bGo