Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEVariableSpeedSignDialog.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2024 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/****************************************************************************/
18// A class for edit phases of Variable Speed Signals
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
23#include <map>
25
26#include "GNEAdditionalDialog.h"
27
28// ===========================================================================
29// class declarations
30// ===========================================================================
31
33
34// ===========================================================================
35// class definitions
36// ===========================================================================
37
45
46public:
48 GNEVariableSpeedSignDialog(GNEVariableSpeedSign* editedVariableSpeedSign);
49
52
56 long onCmdAddStep(FXObject*, FXSelector, void*);
57
59 long onCmdEditStep(FXObject*, FXSelector, void*);
60
62 long onCmdClickedStep(FXObject*, FXSelector, void*);
63
65 long onCmdSortSteps(FXObject*, FXSelector, void*);
66
68 long onCmdAccept(FXObject*, FXSelector, void*);
69
71 long onCmdCancel(FXObject*, FXSelector, void*);
72
74 long onCmdReset(FXObject*, FXSelector, void*);
76
77protected:
78 FOX_CONSTRUCTOR(GNEVariableSpeedSignDialog)
79
80
81 FXTable* myStepsTable;
82
84 FXButton* myAddStepButton;
85
88
89 // @brief Flag to check if current steps are valid
91
92private:
94 void updateTableSteps();
95
98
101};
Dialog to edit sequences, parameters, etc.. of Additionals.
FXTable * myStepsTable
Table with the data.
long onCmdClickedStep(FXObject *, FXSelector, void *)
event called after clicked a row
FXButton * mySortStepButton
Button for sort row.
long onCmdCancel(FXObject *, FXSelector, void *)
event called after press cancel button
long onCmdAccept(FXObject *, FXSelector, void *)
event called after press accept button
long onCmdEditStep(FXObject *, FXSelector, void *)
event called after edit row
FXButton * myAddStepButton
Button for insert row.
long onCmdSortSteps(FXObject *, FXSelector, void *)
event called after clicked over sort step button
long onCmdAddStep(FXObject *, FXSelector, void *)
long onCmdReset(FXObject *, FXSelector, void *)
event called after press cancel button