Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNECalibratorDialog.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// Dialog for edit calibrators
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
23#include "GNEAdditionalDialog.h"
24
25
26// ===========================================================================
27// class declarations
28// ===========================================================================
29
30class GNECalibrator;
31class GNERoute;
33class GNEVType;
34
35// ===========================================================================
36// class definitions
37// ===========================================================================
38
45 FXDECLARE(GNECalibratorDialog)
46
47public:
49 GNECalibratorDialog(GNECalibrator* editedCalibrator);
50
53
57 long onCmdAccept(FXObject*, FXSelector, void*);
58
60 long onCmdCancel(FXObject*, FXSelector, void*);
61
63 long onCmdReset(FXObject*, FXSelector, void*);
64
66 long onCmdAddRoute(FXObject*, FXSelector, void*);
67
69 long onCmdClickedRoute(FXObject*, FXSelector, void*);
70
72 long onCmdAddFlow(FXObject*, FXSelector, void*);
73
75 long onCmdClickedFlow(FXObject*, FXSelector, void*);
76
78 long onCmdAddVehicleType(FXObject*, FXSelector, void*);
79
81 long onCmdClickedVehicleType(FXObject*, FXSelector, void*);
83
84protected:
85 FOX_CONSTRUCTOR(GNECalibratorDialog)
86
87private:
89 FXButton* myAddRoute;
90
92 FXTable* myRouteList;
93
95 FXLabel* myLabelFlow;
96
98 FXButton* myAddFlow;
99
101 FXTable* myFlowList;
102
105
108
110 void updateRouteTable();
111
113 void updateFlowTable();
114
117
120
121private:
124
127};
Dialog to edit sequences, parameters, etc.. of Additionals.
Dialog for edit calibrators.
GNECalibratorDialog(const GNECalibratorDialog &)=delete
Invalidated copy constructor.
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
FXTable * myFlowList
list with flows
long onCmdClickedFlow(FXObject *, FXSelector, void *)
remove or edit flow
FXButton * myAddRoute
button for add new route
FXLabel * myLabelFlow
label for flows
long onCmdClickedVehicleType(FXObject *, FXSelector, void *)
remove or edit vehicle type
FXTable * myVehicleTypeList
list with vehicle types
long onCmdAccept(FXObject *, FXSelector, void *)
FXButton * myAddVehicleType
button for add new vehicle type
long onCmdAddVehicleType(FXObject *, FXSelector, void *)
add new vehicle type
long onCmdClickedRoute(FXObject *, FXSelector, void *)
remove or edit route
void updateRouteTable()
update data table with routes
void updateFlowAndLabelButton()
update flow and label button
FXTable * myRouteList
list with routes
long onCmdAddFlow(FXObject *, FXSelector, void *)
add new flow
long onCmdAddRoute(FXObject *, FXSelector, void *)
add new route
GNECalibratorDialog & operator=(const GNECalibratorDialog &)=delete
Invalidated assignment operator.
FXButton * myAddFlow
button for add new flow
void updateFlowTable()
update data table with flows
void updateVehicleTypeTable()
update data table with vehicle types