Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNETypeFrame.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-2023 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 Type elements (vehicle, person and container)
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
24
25// ===========================================================================
26// class declarations
27// ===========================================================================
28
29class GNEVehicle;
31
32// ===========================================================================
33// class definitions
34// ===========================================================================
38class GNETypeFrame : public GNEFrame {
39
40public:
41 // ===========================================================================
42 // class TypeSelector
43 // ===========================================================================
44
48
49 public:
51 TypeSelector(GNETypeFrame* typeFrameParent);
52
55
58
61
64
67
70
72 long onCmdSelectItem(FXObject*, FXSelector, void*);
73
75
76 protected:
77 FOX_CONSTRUCTOR(TypeSelector)
78
79 private:
82
85
88 };
89
90 // ===========================================================================
91 // class TypeEditor
92 // ===========================================================================
93
97
98 public:
100 TypeEditor(GNETypeFrame* typeFrameParent);
101
103 ~TypeEditor();
104
107
110
113
117 long onCmdCreateType(FXObject*, FXSelector, void*);
118
120 long onCmdDeleteResetType(FXObject*, FXSelector, void*);
121
123 long onCmdCopyType(FXObject*, FXSelector, void*);
125
126 protected:
127 FOX_CONSTRUCTOR(TypeEditor)
128
129
130 void resetType();
131
133 void deleteType();
134
135 private:
138
141
144
147 };
148
153 GNETypeFrame(GNEViewParent* viewParent, GNEViewNet* viewNet);
154
157
159 void show();
160
163
164protected:
166 void attributeUpdated(SumoXMLAttr attribute);
167
170
171private:
174
177
180
183
186};
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
An Element which don't belong to GNENet but has influence in the simulation.
void resetType()
reset type
long onCmdDeleteResetType(FXObject *, FXSelector, void *)
Called when "Delete/Reset Vehicle Type" button is clicked.
void deleteType()
delete type
void showTypeEditorModule()
show TypeEditor modul
FXButton * myCreateTypeButton
"create vehicle type" button
long onCmdCreateType(FXObject *, FXSelector, void *)
FXButton * myDeleteResetTypeButton
"delete/reset vehicle type" button
GNETypeFrame * myTypeFrameParent
pointer to vehicle type Frame Parent
FXButton * myCopyTypeButton
"copy vehicle type"
void hideTypeEditorModule()
hide TypeEditor box
void refreshTypeEditorModule()
update TypeEditor modul
long onCmdCopyType(FXObject *, FXSelector, void *)
Called when "Copy Vehicle Type" button is clicked.
void setCurrentType(GNEDemandElement *vType)
set current Vehicle Type
GNETypeFrame * myTypeFrameParent
pointer to Frame Parent
MFXComboBoxIcon * myTypeComboBox
comboBox with the list of vTypes
GNEDemandElement * myCurrentType
pointer to current vehicle type
void refreshTypeSelectorIDs()
refresh vehicle type selector (only IDs, without refreshing attributes)
long onCmdSelectItem(FXObject *, FXSelector, void *)
Called when the user select another element in ComboBox.
GNEDemandElement * getCurrentType() const
get current Vehicle Type
void refreshTypeSelector()
refresh vehicle type selector
GNEFrameAttributeModules::AttributesEditorExtended * myAttributesEditorExtended
modul for open extended attributes dialog
void attributesEditorExtendedDialogOpened()
open GNEAttributesCreator extended dialog (used for editing advance attributes of Vehicle Types)
void show()
show Frame
GNEFrameAttributeModules::ParametersEditor * myParametersEditor
Parameters editor inspector.
TypeSelector * getTypeSelector() const
get vehicle type selector
GNEFrameAttributeModules::AttributesEditor * myTypeAttributesEditor
editorinternal vehicle type attributes
TypeEditor * myTypeEditor
Vehicle Type editor (Create, copy, etc.)
~GNETypeFrame()
Destructor.
TypeSelector * myTypeSelector
vehicle type selector
void attributeUpdated(SumoXMLAttr attribute)
function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/....
A single child window which contains a view of the simulation area.
ComboBox with icon.
MFXGroupBoxModule (based on FXGroupBox)