Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEMeanDataFrame.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// The Widget for edit meanData elements
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
24
25
26// ===========================================================================
27// class declaration
28// ===========================================================================
29
30class GNEMeanData;
31
32// ===========================================================================
33// class definitions
34// ===========================================================================
39class GNEMeanDataFrame : public GNEFrame {
40
41public:
42 // ===========================================================================
43 // class MeanDataTypeSelector
44 // ===========================================================================
45
49
50 public:
52 MeanDataTypeSelector(GNEMeanDataFrame* meanDataFrameParent);
53
56
59
62
66 long onCmdSelectItem(FXObject*, FXSelector, void*);
68
69 protected:
71 FOX_CONSTRUCTOR(MeanDataTypeSelector)
72
73 private:
76
79
82
85 };
86
87 // ===========================================================================
88 // class MeanDataEditor
89 // ===========================================================================
90
94
95 public:
97 MeanDataEditor(GNEMeanDataFrame* meanDataFrameParent);
98
101
104
107
110
114 long onCmdCreateMeanData(FXObject*, FXSelector, void*);
115
117 long onCmdDeletetMeanData(FXObject*, FXSelector, void*);
118
120 long onCmdCopyMeanData(FXObject*, FXSelector, void*);
122
123 protected:
125 FOX_CONSTRUCTOR(MeanDataEditor)
126
127 private:
130
133
136
139 };
140
141 // ===========================================================================
142 // class MeanDataSelector
143 // ===========================================================================
144
148
149 public:
151 MeanDataSelector(GNEMeanDataFrame* typeFrameParent);
152
155
158
161
164
166 void setCurrentMeanData(GNEMeanData* vMeanData);
167
169 void refreshMeanDataSelector(bool afterChangingID);
170
173
177 long onCmdSelectItem(FXObject*, FXSelector, void*);
179
180 protected:
181 FOX_CONSTRUCTOR(MeanDataSelector)
182
183 private:
186
189
192 };
193
198 GNEMeanDataFrame(GNEViewParent* viewParent, GNEViewNet* viewNet);
199
202
204 void show();
205
207 void hide();
208
210 void attributeUpdated(SumoXMLAttr attribute);
211
214
215protected:
218
221
224
227
228private:
231
234};
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void hideMeanDataEditorModule()
hide MeanDataEditor box
void refreshMeanDataEditorModule()
update MeanDataEditor modul
FXButton * myCopyMeanDataButton
"copy meanData"
FXButton * myCreateMeanDataButton
"create meanData" button
GNEMeanDataFrame * myMeanDataFrameParent
FOX needs this.
long onCmdCopyMeanData(FXObject *, FXSelector, void *)
Called when "Copy Vehicle MeanData" button is clicked.
long onCmdCreateMeanData(FXObject *, FXSelector, void *)
void showMeanDataEditorModule()
show MeanDataEditor modul
long onCmdDeletetMeanData(FXObject *, FXSelector, void *)
Called when "Delete Vehicle MeanData" button is clicked.
FXButton * myDeleteMeanDataButton
"delete meanData" button
void showMeanDataSelector()
show MeanDataSelector
void hideMeanDataSelector()
hide MeanDataSelector
GNEMeanData * myCurrentMeanData
pointer to current meanData
GNEMeanData * getCurrentMeanData() const
get current Vehicle MeanData
void refreshMeanDataSelectorIDs()
refresh meanData selector (only IDs, without refreshing attributes)
MFXComboBoxIcon * myMeanDataComboBox
comboBox with the list of meanDatas
void refreshMeanDataSelector(bool afterChangingID)
refresh meanData selector
void setCurrentMeanData(GNEMeanData *vMeanData)
set current Vehicle MeanData
GNEMeanDataFrame * myMeanDataFrameParent
pointer to Frame Parent
long onCmdSelectItem(FXObject *, FXSelector, void *)
void refreshMeanDataTypeSelector()
refresh meanData selector
MFXComboBoxIcon * myTypeComboBox
comboBox with the list of vTypes
GNETagProperties myCurrentMeanData
CurrentMeanData selected.
GNEMeanDataFrame * myMeanDataFrameParent
FOX need this.
const GNETagProperties & getCurrentMeanData() const
get current MeanData
long onCmdSelectItem(FXObject *, FXSelector, void *)
GNETagProperties myInvalidMeanData
invalidMeanData
GNEFrameAttributeModules::AttributesEditor * myMeanDataAttributesEditor
meanData attributes editor
void hide()
hide Frame
void attributeUpdated(SumoXMLAttr attribute)
function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/....
MeanDataSelector * myMeanDataSelector
meanData selector
void show()
show Frame
GNEMeanDataFrame(const GNEMeanDataFrame &)=delete
Invalidated copy constructor.
~GNEMeanDataFrame()
Destructor.
MeanDataTypeSelector * myMeanDataTypeSelector
meanData type selector
void updateFrameAfterUndoRedo()
function called after undo/redo in the current frame
MeanDataEditor * myMeanDataEditor
meanData editor
GNEMeanDataFrame & operator=(const GNEMeanDataFrame &)=delete
Invalidated assignment operator.
An Element which don't belong to GNENet but has influence in the simulation.
Definition GNEMeanData.h:33
A single child window which contains a view of the simulation area.
ComboBox with icon.
MFXGroupBoxModule (based on FXGroupBox)