![]() |
Eclipse SUMO - Simulation of Urban MObility
|
variableSpeedSign step list More...
#include <GNEVariableSpeedSignDialog.h>
Public Types | |
| enum class | Options : int { NONE = 1 << 0 , SORTELEMENTS = 1 << 1 , DIALOG_ELEMENT = 1 << 2 , DIALOG_VCLASS = 1 << 3 , FIXED_HEIGHT = 1 << 4 } |
| FOX-declaration. More... | |
| enum | Options |
| FOX-declaration. More... | |
Public Member Functions | |
| long | addNewElement () |
| add new element | |
| bool | checkSort () const |
| check if the elements are sorted | |
| void | disableList (const std::string &reason) |
| disable list | |
| void | disableList (const std::string &reason) |
| disable list | |
| void | enableList () |
| enable list | |
| void | enableList () |
| enable list | |
| GNEDialog * | getDialogParent () |
| pointer to dialog parent | |
| GNEDialog * | getDialogParent () |
| pointer to dialog parent | |
| const std::vector< GNEAdditional * > & | getEditedElements () const |
| get edited elements | |
| long | insertElement (GNEAdditional *element) |
| insert element | |
| bool | isListValid () const |
| check if the current list is valid | |
| bool | isListValid () const |
| check if the current list is valid | |
| bool | isSorted () const |
| @briec check if steps are sorted | |
| long | openElementDialog (const size_t rowIndex) |
| open element dialog | |
| long | removeElement (const size_t rowIndex) |
| remove element (using index) | |
| long | sortRows () |
| open dialog | |
| long | updateList () |
| update element list | |
| VariableSpeedSignStepsList (GNEVariableSpeedSignDialog *variableSpeedSignDialog) | |
| constructor | |
FOX callbacks | |
| long | onCmdAddRow (FXObject *sender, FXSelector, void *) |
| called when user press add button | |
| long | onCmdAddRow (FXObject *sender, FXSelector, void *) |
| called when user press add button | |
| long | onCmdSort (FXObject *sender, FXSelector, void *) |
| called when user press sort button | |
| long | onCmdSort (FXObject *sender, FXSelector, void *) |
| called when user press sort button | |
Protected Member Functions | |
| void | removeElementRecursively (GNEAdditional *additionalElement) const |
| delete additional element recursively | |
| void | removeElementRecursively (GNEDemandElement *demandElement) const |
| delete demand element recursively | |
| void | removeElementRecursively (GNEAdditional *additionalElement) const |
| delete additional element recursively | |
| void | removeElementRecursively (GNEDemandElement *demandElement) const |
| delete demand element recursively | |
Protected Attributes | |
| GNEDialog * | myDialogParent = nullptr |
| FOX needs this. | |
| GNEDialog * | myDialogParent |
| FOX needs this. | |
| std::vector< GNEAdditional * > | myEditedElements |
| edited elements | |
| GNETemplateElementDialog< GNEAdditional > * | myElementDialogParent |
| element dialog parent | |
| GNEElementTable * | myElementTable = nullptr |
| element table | |
| GNEElementTable * | myElementTable |
| element table | |
| const GNETagProperties * | myTagProperty = nullptr |
| pointer to tag property | |
| const GNETagProperties * | myTagProperty |
| pointer to tag property | |
Private Types | |
| typedef std::tuple< double, double, double, double, double, double, GNEAdditional * > | SortTuple |
| typedef used for sorting elements by attributes | |
Private Member Functions | |
| std::vector< SortTuple > | getSortTuples (const bool sort) const |
| get element sorted | |
| VariableSpeedSignStepsList & | operator= (const VariableSpeedSignStepsList &)=delete |
| Invalidated assignment operator. | |
| VariableSpeedSignStepsList (const VariableSpeedSignStepsList &)=delete | |
| Invalidated copy constructor. | |
Private Attributes | |
| FXButton * | myAddButton = nullptr |
| add button | |
| FXButton * | myAddButton |
| add button | |
| FXLabel * | myLabel = nullptr |
| label | |
| FXLabel * | myLabel |
| label | |
| FXButton * | mySortButton = nullptr |
| sort button | |
| FXButton * | mySortButton |
| sort button | |
variableSpeedSign step list
Definition at line 58 of file GNEVariableSpeedSignDialog.h.
|
privateinherited |
typedef used for sorting elements by attributes
Definition at line 139 of file GNETemplateElementList.h.
|
stronginherited |
FOX-declaration.
enum class for element list options
| Enumerator | |
|---|---|
| NONE | |
| SORTELEMENTS | |
| DIALOG_ELEMENT | |
| DIALOG_VCLASS | |
| FIXED_HEIGHT | |
Definition at line 41 of file GNEElementList.h.
|
stronginherited |
FOX-declaration.
enum class for element list options
Definition at line 41 of file GNEElementList.h.
| GNEVariableSpeedSignDialog::VariableSpeedSignStepsList::VariableSpeedSignStepsList | ( | GNEVariableSpeedSignDialog * | variableSpeedSignDialog | ) |
constructor
Definition at line 81 of file GNEVariableSpeedSignDialog.cpp.
References GNETemplateElementDialog< GNEAdditional >::getContentFrame(), GNEElementList::GNEElementList(), GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::GNETemplateElementList(), GNEVariableSpeedSignDialog::GNEVariableSpeedSignDialog(), and SUMO_TAG_STEP.
Referenced by operator=(), and VariableSpeedSignStepsList().
|
privatedelete |
Invalidated copy constructor.
References VariableSpeedSignStepsList().
|
virtual |
add new element
Implements GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >.
Definition at line 88 of file GNEVariableSpeedSignDialog.cpp.
References GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::getEditedElements(), OptionsCont::getOptions(), GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::insertElement(), GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::myElementDialogParent, string2time(), and SUMO_ATTR_TIME.
|
inlineinherited |
check if the elements are sorted
Definition at line 77 of file GNETemplateElementList.h.
|
inherited |
|
inherited |
disable list
Definition at line 59 of file GNEElementList.cpp.
References GUIDesignLabelThick, myLabel, and myTagProperty.
|
inherited |
enable list
Definition at line 75 of file GNEElementList.cpp.
References myAddButton, myElementTable, myLabel, mySortButton, myTagProperty, and TLF.
|
inherited |
enable list
Definition at line 56 of file GNEElementList.cpp.
References ADD, GUIIconSubSys::getIcon(), GUIDesignButtonIcon, MID_GNE_ELEMENTLIST_ADD, and myAddButton.
|
inherited |
pointer to dialog parent
Definition at line 105 of file GNEElementList.cpp.
References myDialogParent.
|
inherited |
pointer to dialog parent
Definition at line 65 of file GNEElementList.cpp.
|
inlineinherited |
get edited elements
Definition at line 46 of file GNETemplateElementList.h.
Referenced by GNERerouterDialog::RerouterIntervalsList::addNewElement(), GNEVariableSpeedSignDialog::VariableSpeedSignStepsList::addNewElement(), GNERerouterDialog::RerouterIntervalsList::isOverlapping(), GNEVariableSpeedSignDialog::VariableSpeedSignStepsList::isSorted(), and GNERerouterDialog::RerouterIntervalsList::openElementDialog().
|
inlineprivateinherited |
get element sorted
Definition at line 142 of file GNETemplateElementList.h.
|
inlineinherited |
insert element
Definition at line 51 of file GNETemplateElementList.h.
Referenced by GNECalibratorDialog::CalibratorFlowsList::addNewElement(), GNERerouterDialog::RerouterIntervalsList::addNewElement(), GNERerouterIntervalDialog::ClosingLaneReroutesList::addNewElement(), GNERerouterIntervalDialog::ClosingReroutesList::addNewElement(), GNERerouterIntervalDialog::DestProbReroutesList::addNewElement(), GNERerouterIntervalDialog::ParkingAreaReroutesList::addNewElement(), GNERerouterIntervalDialog::RouteProbReroutesList::addNewElement(), and GNEVariableSpeedSignDialog::VariableSpeedSignStepsList::addNewElement().
|
inherited |
check if the current list is valid
Definition at line 99 of file GNEElementList.cpp.
References myElementTable.
|
inherited |
check if the current list is valid
Definition at line 62 of file GNEElementList.cpp.
References GUIDesigns::buildFXButton(), GUIIconSubSys::getIcon(), GUIDesignButtonIcon, MID_GNE_ELEMENTLIST_SORT, mySortButton, RELOAD, and GNEElementList::SORTELEMENTS.
| bool GNEVariableSpeedSignDialog::VariableSpeedSignStepsList::isSorted | ( | ) | const |
@briec check if steps are sorted
Definition at line 116 of file GNEVariableSpeedSignDialog.cpp.
References GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::getEditedElements(), and SUMO_ATTR_TIME.
|
inherited |
called when user press add button
Definition at line 111 of file GNEElementList.cpp.
References addNewElement().
Referenced by FXDEFMAP().
|
inherited |
called when user press add button
Definition at line 86 of file GNEElementList.cpp.
|
inherited |
called when user press sort button
Definition at line 117 of file GNEElementList.cpp.
References sortRows().
Referenced by FXDEFMAP().
|
inherited |
called when user press sort button
Definition at line 89 of file GNEElementList.cpp.
References myAddButton, myLabel, and mySortButton.
|
virtual |
open element dialog
Implements GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >.
Definition at line 109 of file GNEVariableSpeedSignDialog.cpp.
|
privatedelete |
Invalidated assignment operator.
References VariableSpeedSignStepsList().
|
inlinevirtualinherited |
remove element (using index)
Implements GNEElementList.
Definition at line 105 of file GNETemplateElementList.h.
Referenced by GNECalibratorDialog::CalibratorFlowsList::addNewElement().
|
protectedinherited |
delete additional element recursively
Definition at line 123 of file GNEElementList.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), GNEAttributeCarrier::getNet(), GNENet::getUndoList(), and removeElementRecursively().
Referenced by GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::removeElement(), removeElementRecursively(), and removeElementRecursively().
|
protectedinherited |
delete demand element recursively
Definition at line 139 of file GNEElementList.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), GNEAttributeCarrier::getNet(), GNENet::getUndoList(), and removeElementRecursively().
|
protectedinherited |
delete additional element recursively
Definition at line 107 of file GNEElementList.cpp.
|
protectedinherited |
delete demand element recursively
Definition at line 110 of file GNEElementList.cpp.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
update element list
Implements GNEElementList.
Definition at line 59 of file GNETemplateElementList.h.
Referenced by GNECalibratorDialog::CalibratorFlowsList::addNewElement().
|
privateinherited |
|
privateinherited |
add button
Definition at line 114 of file GNEElementList.h.
Referenced by enableList(), and onCmdSort().
|
protectedinherited |
FOX needs this.
pointer to dialog parent
Definition at line 98 of file GNEElementList.h.
Referenced by getDialogParent(), and GNEElementList().
|
protectedinherited |
|
protectedinherited |
edited elements
Definition at line 135 of file GNETemplateElementList.h.
Referenced by GNECalibratorDialog::CalibratorFlowsList::openElementDialog(), GNERerouterIntervalDialog::ClosingLaneReroutesList::openElementDialog(), GNERerouterIntervalDialog::ClosingReroutesList::openElementDialog(), GNERerouterIntervalDialog::DestProbReroutesList::openElementDialog(), GNERerouterIntervalDialog::ParkingAreaReroutesList::openElementDialog(), and GNERerouterIntervalDialog::RouteProbReroutesList::openElementDialog().
|
protectedinherited |
element dialog parent
Definition at line 132 of file GNETemplateElementList.h.
Referenced by GNECalibratorDialog::CalibratorFlowsList::addNewElement(), GNERerouterDialog::RerouterIntervalsList::addNewElement(), GNERerouterIntervalDialog::ClosingLaneReroutesList::addNewElement(), GNERerouterIntervalDialog::ClosingReroutesList::addNewElement(), GNERerouterIntervalDialog::DestProbReroutesList::addNewElement(), GNERerouterIntervalDialog::ParkingAreaReroutesList::addNewElement(), GNERerouterIntervalDialog::RouteProbReroutesList::addNewElement(), GNEVariableSpeedSignDialog::VariableSpeedSignStepsList::addNewElement(), GNECalibratorDialog::CalibratorFlowsList::openElementDialog(), GNERerouterDialog::RerouterIntervalsList::openElementDialog(), GNERerouterIntervalDialog::ClosingLaneReroutesList::openElementDialog(), GNERerouterIntervalDialog::ClosingReroutesList::openElementDialog(), GNERerouterIntervalDialog::DestProbReroutesList::openElementDialog(), GNERerouterIntervalDialog::ParkingAreaReroutesList::openElementDialog(), and GNERerouterIntervalDialog::RouteProbReroutesList::openElementDialog().
|
protectedinherited |
element table
Definition at line 104 of file GNEElementList.h.
Referenced by enableList(), GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::getSortTuples(), isListValid(), and GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::updateList().
|
protectedinherited |
element table
Definition at line 104 of file GNEElementList.h.
|
privateinherited |
label
Definition at line 120 of file GNEElementList.h.
Referenced by disableList(), and enableList().
|
privateinherited |
label
Definition at line 120 of file GNEElementList.h.
Referenced by disableList(), and onCmdSort().
|
privateinherited |
|
privateinherited |
sort button
Definition at line 117 of file GNEElementList.h.
Referenced by isListValid(), and onCmdSort().
|
protectedinherited |
pointer to tag property
Definition at line 101 of file GNEElementList.h.
Referenced by enableList(), GNEElementList(), and GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::updateList().
|
protectedinherited |
pointer to tag property
Definition at line 101 of file GNEElementList.h.
Referenced by disableList().