39 #ifdef CHECK_MEMORY_LEAKS
41 #endif // CHECK_MEMORY_LEAKS
57 FXIMPLEMENT(
GUIDialog_AppSettings, FXDialogBox, GUIDialog_AppSettingsMap, ARRAYNUMBER(GUIDialog_AppSettingsMap))
64 : FXDialogBox(parent, "Application Settings"),
71 FXVerticalFrame* f1 =
new FXVerticalFrame(
this, LAYOUT_FILL_X | LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0);
73 b->setCheck(myAppQuitOnEnd);
74 b =
new FXCheckButton(f1,
"Autostart Simulation on Load and Reload",
this,
MID_AUTOSTART);
75 b->setCheck(myAppAutoStart);
76 b =
new FXCheckButton(f1,
"Reload Simulation after finish (Demo mode)",
this,
MID_DEMO);
77 b->setCheck(myAppDemo);
78 b =
new FXCheckButton(f1,
"Locate elements when clicking on messages",
this,
MID_LOCATELINKS);
79 b->setCheck(myLocateLinks);
80 new FXHorizontalSeparator(f1, SEPARATOR_GROOVE | LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X);
82 b->setCheck(myAllowTextures);
83 FXHorizontalFrame* f2 =
new FXHorizontalFrame(f1, LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X | PACK_UNIFORM_WIDTH, 0, 0, 0, 0, 10, 10, 5, 5);
84 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);
85 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);
116 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
Locate links in messages - Option.
long onCmdCancel(FXObject *, FXSelector, void *)
Called on Cancel-button pressure.
Close simulation at end - Option.
static bool gDemoAutoReload
the simulation shall reload when it has ended (demo)
FXDEFMAP(GUIDialog_AppSettings) GUIDialog_AppSettingsMap[]
Cancel-button was pushed.
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
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
~GUIDialog_AppSettings()
Destructor.
Start simulation when loaded - Option.