53 FXIMPLEMENT(
GUIDialog_AppSettings, FXDialogBox, GUIDialog_AppSettingsMap, ARRAYNUMBER(GUIDialog_AppSettingsMap))
60 : FXDialogBox(parent, "Application Settings"),
67 FXVerticalFrame* f1 =
new FXVerticalFrame(
this, LAYOUT_FILL_X | LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0);
69 b->setCheck(myAppQuitOnEnd);
70 b =
new FXCheckButton(f1,
"Autostart Simulation on Load and Reload",
this,
MID_AUTOSTART);
71 b->setCheck(myAppAutoStart);
72 b =
new FXCheckButton(f1,
"Reload Simulation after finish (Demo mode)",
this,
MID_DEMO);
73 b->setCheck(myAppDemo);
74 b =
new FXCheckButton(f1,
"Locate elements when clicking on messages",
this,
MID_LOCATELINKS);
75 b->setCheck(myLocateLinks);
76 new FXHorizontalSeparator(f1, SEPARATOR_GROOVE | LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X);
78 b->setCheck(myAllowTextures);
79 FXHorizontalFrame* f2 =
new FXHorizontalFrame(f1, LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X | PACK_UNIFORM_WIDTH, 0, 0, 0, 0, 10, 10, 5, 5);
80 FXButton* initial =
new FXButton(f2,
"&OK", NULL,
this,
MID_SETTINGS_OK, BUTTON_INITIAL | BUTTON_DEFAULT | FRAME_RAISED | FRAME_THICK | LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_CENTER_X, 0, 0, 0, 0, 30, 30, 4, 4);
81 new FXButton(f2,
"&Cancel", NULL,
this,
MID_SETTINGS_CANCEL, BUTTON_DEFAULT | FRAME_RAISED | FRAME_THICK | LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_CENTER_X, 0, 0, 0, 0, 30, 30, 4, 4);
112 switch (FXSELID(sel)) {
bool myAllowTextures
Information whether textures may be used.
bool myAppDemo
Information whether the simulation restarts after ending (demo mode)
long onCmdOk(FXObject *, FXSelector, void *)
Called on OK-button pressure.
static bool gRunAfterLoad
the simulation shall start direct after loading
Close simulation at end - Option.
long onCmdCancel(FXObject *, FXSelector, void *)
Called on Cancel-button pressure.
static bool gDemoAutoReload
the simulation shall reload when it has ended (demo)
FXDEFMAP(GUIDialog_AppSettings) GUIDialog_AppSettingsMap[]
Start simulation when loaded - Option.
bool myAppAutoStart
Information whether the simulation shall start directly after loading.
The dialog to change the application (gui) settings.
bool myAppQuitOnEnd
Information whether the application shall be quit.
static bool gQuitOnEnd
the window shall be closed when the simulation has ended
Cancel-button was pushed.
static void enableLocateLinks(const bool val)
switch locate links on and off
long onCmdSelect(FXObject *, FXSelector sel, void *)
Called on button change.
Global storage for textures; manages and draws them.
static void allowTextures(const bool val)
switch texture drawing on and off
bool myLocateLinks
Information whether locate links appear in messages.
A logging window for the gui.
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
Locate links in messages - Option.
~GUIDialog_AppSettings()
Destructor.