Skyscraper
2.0
src
gui
gui.h
Go to the documentation of this file.
1
/*
2
Skyscraper 2.1 - GUI Manager
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 GUI_H
24
25
#include <string>
26
#include "
vm.h
"
27
28
//wxWidgets definitions
29
class
wxCmdLineParser;
30
class
wxProgressDialog;
31
32
namespace
Skyscraper
{
33
34
class
EngineContext;
35
class
Console;
36
class
LoadDialog;
37
class
ScriptProcessor;
38
class
VM;
39
class
HAL;
40
class
DebugPanel;
41
42
class
VMIMPEXP
GUI
43
{
44
public
:
45
GUI
(
VM
*parent);
46
~GUI
();
47
void
UnregisterDebugPanel
() { dpanel = 0; }
48
void
Unload();
49
void
ShowProgress();
50
std::string SelectBuilding(
const
std::string &data_path);
51
std::string SelectBuildingNative(
const
std::string &data_path);
52
void
Resize
();
53
void
CreateDebugPanel();
54
void
EnableConsole(
bool
value);
55
void
RaiseWindow();
56
void
EnableTimer(
bool
value);
57
void
ShowConsole(
bool
send_button =
true
);
58
void
ShowProgressDialog();
59
void
CreateProgressDialog(
const
std::string &message);
60
void
CloseProgressDialog();
61
bool
UpdateProgress(
int
percent);
62
bool
ProgressCancelled();
63
void
ShowError(
const
std::string &message);
64
void
ShowMessage(
const
std::string &message);
65
void
RefreshConsole();
66
void
ShowDebugPanel();
67
void
ShowControlReference();
68
void
ShowLoadDialog();
69
void
WriteToConsole(
const
std::string &message,
const
std::string &color =
"white"
);
70
bool
ReportMissingFiles(std::vector<std::string> &missing_files);
71
bool
IsConsoleVisible();
72
73
private
:
74
75
wxProgressDialog *
progdialog
;
76
77
//control panel
78
DebugPanel
*
dpanel
;
79
80
//console window
81
Console
*
console
;
82
83
//load dialog window
84
LoadDialog
*
loaddialog
;
85
86
//progress dialog initial data
87
bool
show_progress
;
88
std::string
prog_text
;
89
90
VM
*
vm
;
91
};
92
93
}
94
95
#endif
96
Skyscraper::Console
Definition
console.h:38
Skyscraper::DebugPanel
Definition
debugpanel.h:66
Skyscraper::GUI
Definition
gui.h:43
Skyscraper::GUI::prog_text
std::string prog_text
Definition
gui.h:88
Skyscraper::GUI::progdialog
wxProgressDialog * progdialog
Definition
gui.h:75
Skyscraper::GUI::vm
VM * vm
Definition
gui.h:90
Skyscraper::GUI::console
Console * console
Definition
gui.h:81
Skyscraper::GUI::show_progress
bool show_progress
Definition
gui.h:87
Skyscraper::GUI::loaddialog
LoadDialog * loaddialog
Definition
gui.h:84
Skyscraper::GUI::dpanel
DebugPanel * dpanel
Definition
gui.h:78
Skyscraper::GUI::Resize
void Resize()
Skyscraper::GUI::UnregisterDebugPanel
void UnregisterDebugPanel()
Definition
gui.h:47
Skyscraper::LoadDialog
Definition
loaddialog.h:39
Skyscraper::VM
Definition
vm.h:71
Skyscraper
Definition
native.cpp:50
vm.h
VMIMPEXP
#define VMIMPEXP
Definition
vm.h:49
Generated by
1.11.0