Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/gui/dialogs/GUIDialog_AppSettings.h
193728 views
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2001-2026 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials are made available under the
5
// terms of the Eclipse Public License 2.0 which is available at
6
// https://www.eclipse.org/legal/epl-2.0/
7
// This Source Code may also be made available under the following Secondary
8
// Licenses when the conditions for such availability set forth in the Eclipse
9
// Public License 2.0 are satisfied: GNU General Public License, version 2
10
// or later which is available at
11
// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13
/****************************************************************************/
14
/// @file GUIDialog_AppSettings.h
15
/// @author Daniel Krajzewicz
16
/// @author Michael Behrisch
17
/// @date Mon, 08.03.2004
18
///
19
// The application-settings dialog
20
/****************************************************************************/
21
#pragma once
22
#include <config.h>
23
24
#include <utils/foxtools/fxheader.h>
25
26
27
// ===========================================================================
28
// class definitions
29
// ===========================================================================
30
/**
31
* @class GUIDialog_AppSettings
32
* @brief The dialog to change the application (gui) settings.
33
*/
34
class GUIDialog_AppSettings : public FXDialogBox {
35
// is a FOX-object with an own mapping
36
FXDECLARE(GUIDialog_AppSettings)
37
38
public:
39
/** @brief Constructor
40
*
41
* @param[in] parent The parent window
42
*/
43
GUIDialog_AppSettings(GUIMainWindow* parent);
44
45
/// @brief Destructor
46
~GUIDialog_AppSettings();
47
48
/// @name FOX-callbacks
49
/// @{
50
51
/// @brief Called on OK-button pressure
52
long onCmdOk(FXObject*, FXSelector, void*);
53
54
/// @brief Called on Cancel-button pressure
55
long onCmdCancel(FXObject*, FXSelector, void*);
56
57
/// @brief Called on button change
58
long onCmdSelect(FXObject*, FXSelector sel, void*);
59
60
/// @}
61
62
protected:
63
/// @brief FOX needs this
64
FOX_CONSTRUCTOR(GUIDialog_AppSettings)
65
66
private:
67
/// @brief The main GUI window
68
GUIMainWindow* myParent;
69
70
/// @brief Information whether the application shall be quit
71
bool myAppQuitOnEnd;
72
73
/// @brief Information whether the simulation shall start directly after loading
74
bool myAppAutoStart;
75
76
/// @brief Information whether the simulation restarts after ending (demo mode)
77
bool myAppDemo;
78
79
/// @brief Information whether textures may be used
80
bool myAllowTextures;
81
82
/// @brief Information whether locate links appear in messages
83
bool myLocateLinks;
84
85
/// @brief Offset when adding breakpoints
86
FXRealSpinner* myBreakPointOffset;
87
88
/// @brief The list that holds the URLs
89
FXTable* myTable;
90
91
/// @brief Invalidated copy constructor.
92
GUIDialog_AppSettings(const GUIDialog_AppSettings&) = delete;
93
94
/// @brief Invalidated assignment operator.
95
GUIDialog_AppSettings& operator=(const GUIDialog_AppSettings&) = delete;
96
};
97
98