52 FXIMPLEMENT(
GUIDialog_AppSettings, FXDialogBox, GUIDialog_AppSettingsMap, ARRAYNUMBER(GUIDialog_AppSettingsMap))
59 : FXDialogBox(parent, "Application Settings"),
66 FXVerticalFrame* f1 =
new FXVerticalFrame(
this, LAYOUT_FILL_X | LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0);
68 b->setCheck(myAppQuitOnEnd);
69 b =
new FXCheckButton(f1,
"Autostart Simulation on Load and Reload",
this,
MID_AUTOSTART);
70 b->setCheck(myAppAutoStart);
71 b =
new FXCheckButton(f1,
"Reload Simulation after finish (Demo mode)",
this,
MID_DEMO);
72 b->setCheck(myAppDemo);
73 b =
new FXCheckButton(f1,
"Locate elements when clicking on messages",
this,
MID_LOCATELINKS);
74 b->setCheck(myLocateLinks);
75 new FXHorizontalSeparator(f1, SEPARATOR_GROOVE | LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X);
77 b->setCheck(myAllowTextures);
78 FXHorizontalFrame* f2 =
new FXHorizontalFrame(f1, LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X | PACK_UNIFORM_WIDTH, 0, 0, 0, 0, 10, 10, 5, 5);
79 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);
80 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);
111 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
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[]
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.
Start simulation when loaded - Option.
Close simulation at end - Option.
Cancel-button was pushed.
static bool gQuitOnEnd
the window shall be closed when the simulation has ended
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
Locate links in messages - Option.
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
~GUIDialog_AppSettings()
Destructor.