1 /****************************************************************************/ 2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo 3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others. 4 // This program and the accompanying materials 5 // are made available under the terms of the Eclipse Public License v2.0 6 // which accompanies this distribution, and is available at 7 // http://www.eclipse.org/legal/epl-v20.html 8 // SPDX-License-Identifier: EPL-2.0 9 /****************************************************************************/ 10 /// @file GUIDialog_AppSettings.h 11 /// @author Daniel Krajzewicz 12 /// @author Michael Behrisch 13 /// @date Mon, 08.03.2004 14 /// @version $Id$ 15 /// 16 // The application-settings dialog 17 /****************************************************************************/ 18 #ifndef GUIDialog_AppSettings_h 19 #define GUIDialog_AppSettings_h 20 21 22 // =========================================================================== 23 // included modules 24 // =========================================================================== 25 #include <config.h> 26 27 #include <fx.h> 28 29 30 // =========================================================================== 31 // class definitions 32 // =========================================================================== 33 /** 34 * @class GUIDialog_AppSettings 35 * @brief The dialog to change the application (gui) settings. 36 */ 37 class GUIDialog_AppSettings : public FXDialogBox { 38 // is a FOX-object with an own mapping 39 FXDECLARE(GUIDialog_AppSettings) 40 41 public: 42 /** @brief Constructor 43 * 44 * @param[in] parent The parent window 45 */ 46 GUIDialog_AppSettings(FXMainWindow* parent); 47 48 /// @brief Destructor 49 ~GUIDialog_AppSettings(); 50 51 52 53 /// @name FOX-callbacks 54 /// @{ 55 56 /// @brief Called on OK-button pressure 57 long onCmdOk(FXObject*, FXSelector, void*); 58 59 /// @brief Called on Cancel-button pressure 60 long onCmdCancel(FXObject*, FXSelector, void*); 61 62 /// @brief Called on button change 63 long onCmdSelect(FXObject*, FXSelector sel, void*); 64 /// @} 65 66 67 private: 68 /// @brief Information whether the application shall be quit 69 bool myAppQuitOnEnd; 70 71 /// @brief Information whether the simulation shall start directly after loading 72 bool myAppAutoStart; 73 74 /// @brief Information whether the simulation restarts after ending (demo mode) 75 bool myAppDemo; 76 77 /// @brief Information whether textures may be used 78 bool myAllowTextures; 79 80 /// @brief Information whether locate links appear in messages 81 bool myLocateLinks; 82 83 84 protected: 85 /// default constructor (needed by FOX) GUIDialog_AppSettings()86 GUIDialog_AppSettings() { } 87 88 }; 89 90 91 #endif 92 93 /****************************************************************************/ 94 95