![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEVehicleTypeDialog.h>
Data Structures | |
| class | CarFollowingModelParameters |
| class for CarFollowingModel More... | |
| class | VTypeAttributes |
| class for VClasses More... | |
Public Types | |
basic dialog type | |
| enum | Buttons |
| enum | OpenType |
| Open dialog type. More... | |
Public Member Functions | |
| GNEDemandElement * | getElement () const |
| get edited element | |
| GNEVehicleTypeDialog (GNEDemandElement *vehicleType) | |
| constructor | |
| void | runInternalTest (const InternalTestStep::DialogArgument *dialogArgument) |
| run internal test | |
| ~GNEVehicleTypeDialog () | |
| destructor | |
FOX-callbacks | |
| long | onCmdAccept (FXObject *, FXSelector, void *) |
| event after press accept button | |
| long | onCmdReset (FXObject *, FXSelector, void *) |
| event after press reset button | |
FOX-callbacks | |
event after press accept button | |
| long | onCmdCancel (FXObject *, FXSelector, void *) |
| called when cancel or no button is pressed | |
| long | onCmdAbort (FXObject *, FXSelector, void *) |
| called when abort is called either closing dialog or pressing abort button | |
FOX-callbacks | |
| virtual long | onCmdRun (FXObject *, FXSelector, void *) |
| called when run button is pressed (must be reimplemented in children depending of Buttons) | |
| virtual long | onCmdBack (FXObject *, FXSelector, void *) |
| called when back button is pressed (must be reimplemented in children depending of Buttons) | |
| virtual long | onCmdAdvanced (FXObject *, FXSelector, void *) |
| called when advanced button is pressed (must be reimplemented in children depending of Buttons) | |
| virtual long | onCmdCopy (FXObject *, FXSelector, void *) |
| called when copy button is pressed (must be reimplemented in children depending of Buttons) | |
| virtual long | onCmdReport (FXObject *, FXSelector, void *) |
| called when report button is pressed (must be reimplemented in children depending of Buttons) | |
| long | onKeyPress (FXObject *obj, FXSelector sel, void *ptr) |
| called when user presses a key on the dialog | |
| long | onKeyRelease (FXObject *obj, FXSelector sel, void *ptr) |
| called when user releases a key on the dialog | |
Protected Member Functions | |
| long | acceptElementDialog () |
| close dialog commiting changes | |
| long | closeDialogAborting () |
| close dialog aborting the changes | |
| long | closeDialogAccepting () |
| close dialog accepting the changes | |
| long | closeDialogCanceling () |
| close dialog declining the changes | |
| void | openDialog (FXWindow *focusableElement=nullptr) |
| open dialog | |
| void | resetChanges () |
| reset changes did in this dialog. | |
| void | updateIcon (GUIIcon newIcon) |
| update icon | |
| void | updateTitle (const std::string &newTitle) |
| update title | |
Protected Attributes | |
| FXButton * | myAbortButton |
| abort button | |
| FXButton * | myAcceptButton |
| accept button | |
| FXButton * | myAdvancedButton |
| advanced button | |
| GNEApplicationWindow * | myApplicationWindow |
| FOX needs this. | |
| FXButton * | myBackButton |
| back button | |
| FXButton * | myCancelButton |
| cancel button | |
| FXVerticalFrame * | myContentFrame |
| content frame | |
| FXButton * | myCopyButton |
| copy button | |
| GNEDemandElement * | myElement |
| pointer to edited element | |
| FXButton * | myReportButton |
| report button | |
| FXButton * | myResetButton |
| reset button | |
| FXWindow * | myRestoringFocusWindow |
| FXWindows that restoring focus window. | |
| Result | myResult |
| result to indicate if this dialog was closed accepting or rejecting changes | |
| FXButton * | myRunButton |
| run button | |
| DialogType | myType |
| dialog type | |
Private Member Functions | |
| void | buildDialog (GUIIcon titleIcon, Buttons buttons) |
| build dialog | |
| GNEVehicleTypeDialog (const GNEVehicleTypeDialog &)=delete | |
| Invalidated copy constructor. | |
| GNEVehicleTypeDialog & | operator= (const GNEVehicleTypeDialog &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| CarFollowingModelParameters * | myCarFollowingModelParameters |
| Car Following model parameters. | |
| std::string | myChangesDescription |
| description of changes did in this element dialog | |
| FXButton * | myFocusButton |
| focus button, used for focusing the default button when dialog is opened | |
| SumoXMLAttr | myInvalidAttr |
| current sumo attribute invalid | |
| OpenType | myOpenType |
| open type | |
| bool | myTesting |
| flag to indicate if this dialog is being tested using internal test | |
| bool | myVehicleTypeValid |
| flag to check if current vehicleType is valid | |
| VTypeAttributes * | myVTypeAttributes |
| Vehicle Type Common Attributes. | |
Resize mode | |
| Result | getResult () const |
| get result to indicate if this dialog was closed accepting or rejecting changes | |
| GNEApplicationWindow * | getApplicationWindow () const |
| get pointer to the application window | |
| FXVerticalFrame * | getContentFrame () const |
| get content frame | |
| void | setRestoringFocusWindow (FXWindow *window) |
| wet FXWindows uses for restoring focus | |
| enum | ResizeMode |
| enum | Result |
| list of possible results when closing the dialog More... | |
Definition at line 39 of file GNEVehicleTypeDialog.h.
|
stronginherited |
Definition at line 43 of file GNEDialog.h.
|
stronginherited |
Open dialog type.
Definition at line 58 of file GNEDialog.h.
|
stronginherited |
Definition at line 64 of file GNEDialog.h.
|
stronginherited |
list of possible results when closing the dialog
Definition at line 70 of file GNEDialog.h.
| GNEVehicleTypeDialog::GNEVehicleTypeDialog | ( | GNEDemandElement * | vehicleType | ) |
constructor
Definition at line 1769 of file GNEVehicleTypeDialog.cpp.
References GNETemplateElementDialog< GNEDemandElement >::GNETemplateElementDialog(), GUIDesignAuxiliarHorizontalFrame, myCarFollowingModelParameters, GNETemplateElementDialog< GNEDemandElement >::myContentFrame, myInvalidAttr, myVehicleTypeValid, myVTypeAttributes, GNETemplateElementDialog< GNEDemandElement >::openDialog(), and SUMO_ATTR_NOTHING.
Referenced by GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelParameters(), GNEVehicleTypeDialog(), operator=(), GNEVehicleTypeDialog::VTypeAttributes::VClassRow::VClassRow(), and GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributes().
| GNEVehicleTypeDialog::~GNEVehicleTypeDialog | ( | ) |
destructor
Definition at line 1788 of file GNEVehicleTypeDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
References GNEVehicleTypeDialog().
|
inlineprotectedinherited |
close dialog commiting changes
Definition at line 88 of file GNETemplateElementDialog.h.
Referenced by GNEVehicleTypeDialog::onCmdAccept().
|
privateinherited |
build dialog
Definition at line 216 of file GNEDialog.cpp.
|
protectedinherited |
close dialog aborting the changes
Definition at line 197 of file GNEDialog.cpp.
|
protectedinherited |
close dialog accepting the changes
Definition at line 191 of file GNEDialog.cpp.
|
protectedinherited |
close dialog declining the changes
Definition at line 194 of file GNEDialog.cpp.
|
inherited |
get pointer to the application window
Definition at line 92 of file GNEDialog.cpp.
|
inherited |
get content frame
Definition at line 95 of file GNEDialog.cpp.
|
inlineinherited |
get edited element
Definition at line 50 of file GNETemplateElementDialog.h.
|
inherited |
get result to indicate if this dialog was closed accepting or rejecting changes
Definition at line 89 of file GNEDialog.cpp.
|
inlinevirtualinherited |
called when abort is called either closing dialog or pressing abort button
Reimplemented from GNEDialog.
Definition at line 72 of file GNETemplateElementDialog.h.
|
virtual |
event after press accept button
Implements GNETemplateElementDialog< GNEDemandElement >.
Definition at line 1798 of file GNEVehicleTypeDialog.cpp.
References GNETemplateElementDialog< GNEDemandElement >::acceptElementDialog(), GNETemplateElementDialog< GNEDemandElement >::myElement, myInvalidAttr, myVehicleTypeValid, TLF, and toString().
|
virtualinherited |
called when advanced button is pressed (must be reimplemented in children depending of Buttons)
Definition at line 125 of file GNEDialog.cpp.
|
virtualinherited |
called when back button is pressed (must be reimplemented in children depending of Buttons)
Definition at line 122 of file GNEDialog.cpp.
|
inlinevirtualinherited |
called when cancel or no button is pressed
Reimplemented from GNEDialog.
Definition at line 66 of file GNETemplateElementDialog.h.
|
virtualinherited |
called when copy button is pressed (must be reimplemented in children depending of Buttons)
Definition at line 128 of file GNEDialog.cpp.
|
virtualinherited |
called when report button is pressed (must be reimplemented in children depending of Buttons)
Definition at line 131 of file GNEDialog.cpp.
|
virtual |
event after press reset button
Implements GNETemplateElementDialog< GNEDemandElement >.
Definition at line 1814 of file GNEVehicleTypeDialog.cpp.
References myCarFollowingModelParameters, myVTypeAttributes, and GNETemplateElementDialog< GNEDemandElement >::resetChanges().
|
virtualinherited |
called when run button is pressed (must be reimplemented in children depending of Buttons)
Definition at line 119 of file GNEDialog.cpp.
|
inherited |
called when user presses a key on the dialog
Definition at line 134 of file GNEDialog.cpp.
|
inherited |
called when user releases a key on the dialog
Definition at line 137 of file GNEDialog.cpp.
|
protectedinherited |
open dialog
Definition at line 188 of file GNEDialog.cpp.
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
privatedelete |
Invalidated assignment operator.
References GNEVehicleTypeDialog().
|
inlineprotectedinherited |
reset changes did in this dialog.
Definition at line 94 of file GNETemplateElementDialog.h.
Referenced by GNEVehicleTypeDialog::onCmdReset().
|
virtual |
run internal test
Implements GNETemplateElementDialog< GNEDemandElement >.
Definition at line 1792 of file GNEVehicleTypeDialog.cpp.
|
inherited |
wet FXWindows uses for restoring focus
Definition at line 101 of file GNEDialog.cpp.
|
protectedinherited |
update icon
Definition at line 203 of file GNEDialog.cpp.
|
protectedinherited |
update title
Definition at line 200 of file GNEDialog.cpp.
|
protectedinherited |
abort button
Definition at line 161 of file GNEDialog.h.
|
protectedinherited |
accept button
Definition at line 155 of file GNEDialog.h.
|
protectedinherited |
advanced button
Definition at line 173 of file GNEDialog.h.
|
protectedinherited |
|
protectedinherited |
back button
Definition at line 170 of file GNEDialog.h.
|
protectedinherited |
cancel button
Definition at line 158 of file GNEDialog.h.
|
private |
Car Following model parameters.
Definition at line 654 of file GNEVehicleTypeDialog.h.
Referenced by GNEVehicleTypeDialog(), and onCmdReset().
|
privateinherited |
description of changes did in this element dialog
Definition at line 102 of file GNETemplateElementDialog.h.
|
protectedinherited |
content frame
Definition at line 152 of file GNEDialog.h.
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
protectedinherited |
copy button
Definition at line 176 of file GNEDialog.h.
|
protectedinherited |
pointer to edited element
Definition at line 85 of file GNETemplateElementDialog.h.
Referenced by GNEVehicleTypeDialog::onCmdAccept().
|
privateinherited |
focus button, used for focusing the default button when dialog is opened
Definition at line 207 of file GNEDialog.h.
|
private |
current sumo attribute invalid
Definition at line 648 of file GNEVehicleTypeDialog.h.
Referenced by GNEVehicleTypeDialog(), and onCmdAccept().
|
privateinherited |
open type
Definition at line 210 of file GNEDialog.h.
|
protectedinherited |
report button
Definition at line 179 of file GNEDialog.h.
|
protectedinherited |
reset button
Definition at line 164 of file GNEDialog.h.
|
protectedinherited |
FXWindows that restoring focus window.
Definition at line 149 of file GNEDialog.h.
|
protectedinherited |
result to indicate if this dialog was closed accepting or rejecting changes
Definition at line 185 of file GNEDialog.h.
|
protectedinherited |
run button
Definition at line 167 of file GNEDialog.h.
|
privateinherited |
flag to indicate if this dialog is being tested using internal test
Definition at line 213 of file GNEDialog.h.
|
protectedinherited |
dialog type
Definition at line 182 of file GNEDialog.h.
|
private |
flag to check if current vehicleType is valid
Definition at line 645 of file GNEVehicleTypeDialog.h.
Referenced by GNEVehicleTypeDialog(), and onCmdAccept().
|
private |
Vehicle Type Common Attributes.
Definition at line 651 of file GNEVehicleTypeDialog.h.
Referenced by GNEVehicleTypeDialog(), and onCmdReset().