39 #ifdef CHECK_MEMORY_LEAKS 41 #endif // CHECK_MEMORY_LEAKS 55 FXIMPLEMENT(
GUIDialog_AppSettings, FXDialogBox, GUIDialog_AppSettingsMap, ARRAYNUMBER(GUIDialog_AppSettingsMap))
62 : FXDialogBox(parent, "Application Settings"),
67 FXVerticalFrame* f1 =
new FXVerticalFrame(
this, LAYOUT_FILL_X | LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0);
68 b =
new FXCheckButton(f1,
"Quit on Simulation End",
this ,
MID_QUITONSIMEND);
69 b->setCheck(myAppQuitOnEnd);
70 b =
new FXCheckButton(f1,
"Locate elements when clicking on messages",
this ,
MID_LOCATELINKS);
71 b->setCheck(myLocateLinks);
72 new FXHorizontalSeparator(f1, SEPARATOR_GROOVE | LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X);
74 b->setCheck(myAllowTextures);
75 FXHorizontalFrame* f2 =
new FXHorizontalFrame(f1, LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X | PACK_UNIFORM_WIDTH, 0, 0, 0, 0, 10, 10, 5, 5);
76 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);
77 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.
Locate links in messages - Option.
long onCmdLocateLinks(FXObject *, FXSelector, void *)
Called on "Locate links in messages"-button change.
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
static void enableLocateLinks(const bool val)
switch locate links on and off
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)
~GUIDialog_AppSettings()
Destructor.