45 FXIMPLEMENT(
GUIDialog_AppSettings, FXDialogBox, GUIDialog_AppSettingsMap, ARRAYNUMBER(GUIDialog_AppSettingsMap))
52 : FXDialogBox(parent, "Application Settings"),
58 FXCheckButton* b =
nullptr;
59 FXVerticalFrame* f1 =
new FXVerticalFrame(
this, LAYOUT_FILL_X | LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0);
61 b->setCheck(myAppQuitOnEnd);
62 b =
new FXCheckButton(f1,
"Autostart Simulation on Load and Reload",
this,
MID_AUTOSTART);
63 b->setCheck(myAppAutoStart);
64 b =
new FXCheckButton(f1,
"Reload Simulation after finish (Demo mode)",
this,
MID_DEMO);
65 b->setCheck(myAppDemo);
66 b =
new FXCheckButton(f1,
"Locate elements when clicking on messages",
this,
MID_LOCATELINKS);
67 b->setCheck(myLocateLinks);
68 new FXHorizontalSeparator(f1, SEPARATOR_GROOVE | LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X);
70 b->setCheck(myAllowTextures);
71 FXHorizontalFrame* f2 =
new FXHorizontalFrame(f1, LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X | PACK_UNIFORM_WIDTH, 0, 0, 0, 0, 10, 10, 5, 5);
72 FXButton* initial =
new FXButton(f2,
"&OK",
nullptr,
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",
nullptr,
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);
104 switch (FXSELID(sel)) {