Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/netedit/dialogs/options/GNENeteditOptionsDialog.h
169684 views
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2001-2025 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 GNENeteditOptionsDialog.h
15
/// @author Pablo Alvarez Lopez
16
/// @date May 2023
17
///
18
// A Dialog for setting netedit options
19
/****************************************************************************/
20
#pragma once
21
#include <config.h>
22
23
#include <netedit/dialogs/GNEDialog.h>
24
25
// ===========================================================================
26
// class declaration
27
// ===========================================================================
28
29
class OptionsCont;
30
class GNEOptionsEditor;
31
32
// ===========================================================================
33
// class definitions
34
// ===========================================================================
35
36
class GNENeteditOptionsDialog : public GNEDialog {
37
38
public:
39
/**@brief Constructor
40
*
41
* @param[in] applicationWindow netedit application window
42
* @param[in] optionsContainer edited option container
43
* @param[in] originalOptionsContainer original options container
44
*/
45
GNENeteditOptionsDialog(GNEApplicationWindow* applicationWindow, OptionsCont& optionsContainer,
46
const OptionsCont& originalOptionsContainer);
47
48
/// @brief Destructor
49
~GNENeteditOptionsDialog();
50
51
/// @brief run internal test
52
void runInternalTest(const InternalTestStep::DialogArgument* dialogArgument);
53
54
/// @brief check if option was modified
55
bool isOptionModified() const;
56
57
/// @name FOX-callbacks
58
/// @{
59
60
/// @brief called when cancel button is pressed (or dialog is closed)
61
long onCmdCancel(FXObject*, FXSelector, void*);
62
63
/// @brief called when user press reset button
64
long onCmdReset(FXObject*, FXSelector, void*);
65
66
/// @}
67
68
protected:
69
/// @brief the options editor
70
GNEOptionsEditor* myOptionsEditor = nullptr;
71
72
private:
73
/// @brief Invalidated copy constructor.
74
GNENeteditOptionsDialog(const GNENeteditOptionsDialog&) = delete;
75
76
/// @brief Invalidated assignment operator.
77
GNENeteditOptionsDialog& operator=(const GNENeteditOptionsDialog&) = delete;
78
};
79
80