38 #ifdef CHECK_MEMORY_LEAKS
40 #endif // CHECK_MEMORY_LEAKS
64 FXVerticalFrame* f1 =
new FXVerticalFrame(
this, LAYOUT_FILL_X | LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0);
65 b =
new FXCheckButton(f1,
"Quit on Simulation End",
this ,
MID_QUITONSIMEND);
66 b->setCheck(myAppQuitOnEnd);
67 new FXHorizontalSeparator(f1, SEPARATOR_GROOVE | LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X);
69 b->setCheck(myAllowTextures);
72 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);
73 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);
long onCmdQuitOnEnd(FXObject *, FXSelector, void *)
Called on "Quit on end"-button change.
bool myAllowTextures
Information whether textures may be used.
long onCmdOk(FXObject *, FXSelector, void *)
Called on OK-button pressure.
long onCmdCancel(FXObject *, FXSelector, void *)
Called on Cancel-button pressure.
Close simulation at end - Option.
FXDEFMAP(GUIDialog_AppSettings) GUIDialog_AppSettingsMap[]
long onCmdAllowTextures(FXObject *, FXSelector, void *)
Called on "Allow textures"-button change.
Cancel-button was pushed.
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
Global storage for textures; manages and draws them.
static void allowTextures(const bool val)
don't draw any textures
static FXIcon * getIcon(GUIIcon which)
~GUIDialog_AppSettings()
Destructor.