![]() |
Eclipse SUMO - Simulation of Urban MObility
|
parking area reroutes list More...
#include <GNERerouterIntervalDialog.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... | |
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 | enableList () |
| enable list | |
| 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 | |
| long | openElementDialog (const size_t rowIndex) |
| open element dialog | |
| ParkingAreaReroutesList (GNERerouterIntervalDialog *rerouterIntervalDialog, FXVerticalFrame *contentFrame) | |
| constructor | |
| long | removeElement (const GNEAdditional *element) |
| remove element | |
| long | removeElement (const size_t rowIndex) |
| remove element (using index) | |
| long | sortRows () |
| open dialog | |
| long | updateList () |
| update element list | |
FOX callbacks | |
| long | onCmdAddRow (FXObject *sender, FXSelector, void *) |
| called when user press add 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 | |
Protected Attributes | |
| std::vector< GNEAdditional * > | myEditedElements |
| edited elements | |
| GNETemplateElementDialog< GNEAdditional > * | myElementDialogParent |
| element dialog parent | |
| GNEElementTable * | myElementTable = nullptr |
| element table | |
| const GNETagProperties * | myTagProperty = nullptr |
| FOX needs this. | |
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 | |
| ParkingAreaReroutesList & | operator= (const ParkingAreaReroutesList &)=delete |
| Invalidated assignment operator. | |
| ParkingAreaReroutesList (const ParkingAreaReroutesList &)=delete | |
| Invalidated copy constructor. | |
Private Attributes | |
| FXButton * | myAddButton = nullptr |
| add button | |
| FXLabel * | myLabel = nullptr |
| label | |
| FXButton * | mySortButton = nullptr |
| sort button | |
parking area reroutes list
Definition at line 142 of file GNERerouterIntervalDialog.h.
|
privateinherited |
typedef used for sorting elements by attributes
Definition at line 137 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.
| GNERerouterIntervalDialog::ParkingAreaReroutesList::ParkingAreaReroutesList | ( | GNERerouterIntervalDialog * | rerouterIntervalDialog, |
| FXVerticalFrame * | contentFrame | ||
| ) |
constructor
Definition at line 251 of file GNERerouterIntervalDialog.cpp.
References GNEElementList::disableList(), GNENetHelper::AttributeCarriers::getAdditionals(), GNENet::getAttributeCarriers(), GNETemplateElementDialog< T >::getElement(), GNEAttributeCarrier::getNet(), SUMO_TAG_PARKING_AREA, and TL.
|
privatedelete |
Invalidated copy constructor.
|
virtual |
add new element
Implements GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >.
Definition at line 263 of file GNERerouterIntervalDialog.cpp.
References SUMO_TAG_PARKING_AREA.
|
inlineinherited |
check if the elements are sorted
Definition at line 77 of file GNETemplateElementList.h.
|
inherited |
disable list
Definition at line 86 of file GNEElementList.cpp.
References GNEElementList::myAddButton, GNEElementList::myElementTable, GNEElementList::myLabel, and GNEElementList::mySortButton.
Referenced by GNECalibratorDialog::CalibratorFlowsList::CalibratorFlowsList(), GNERerouterIntervalDialog::ClosingLaneReroutesList::ClosingLaneReroutesList(), GNERerouterIntervalDialog::ClosingReroutesList::ClosingReroutesList(), GNERerouterIntervalDialog::DestProbReroutesList::DestProbReroutesList(), ParkingAreaReroutesList(), and GNERerouterIntervalDialog::RouteProbReroutesList::RouteProbReroutesList().
|
inherited |
enable list
Definition at line 74 of file GNEElementList.cpp.
References GNETagProperties::getTagStr(), GNEElementList::myAddButton, GNEElementList::myElementTable, GNEElementList::myLabel, GNEElementList::mySortButton, GNEElementList::myTagProperty, and TLF.
|
inlineinherited |
get edited elements
Definition at line 46 of file GNETemplateElementList.h.
|
inlineprivateinherited |
get element sorted
Definition at line 140 of file GNETemplateElementList.h.
|
inlineinherited |
insert element
Definition at line 51 of file GNETemplateElementList.h.
|
inherited |
check if the current list is valid
Definition at line 98 of file GNEElementList.cpp.
References GNEElementTable::isValid(), and GNEElementList::myElementTable.
Referenced by GNECalibratorDialog::onCmdAccept(), and GNERerouterIntervalDialog::onCmdAccept().
|
inherited |
called when user press add button
Definition at line 104 of file GNEElementList.cpp.
References GNEElementList::addNewElement().
Referenced by FXDEFMAP().
|
inherited |
called when user press sort button
Definition at line 110 of file GNEElementList.cpp.
References GNEElementList::sortRows().
Referenced by FXDEFMAP().
|
virtual |
open element dialog
Implements GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >.
Definition at line 272 of file GNERerouterIntervalDialog.cpp.
|
privatedelete |
Invalidated assignment operator.
|
inlineinherited |
remove element
Definition at line 111 of file GNETemplateElementList.h.
|
inlinevirtualinherited |
remove element (using index)
Implements GNEElementList.
Definition at line 103 of file GNETemplateElementList.h.
|
protectedinherited |
delete additional element recursively
Definition at line 116 of file GNEElementList.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and GNEElementList::removeElementRecursively().
Referenced by GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::removeElement(), GNEElementList::removeElementRecursively(), and GNEElementList::removeElementRecursively().
|
protectedinherited |
delete demand element recursively
Definition at line 132 of file GNEElementList.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and GNEElementList::removeElementRecursively().
|
inlinevirtualinherited |
|
inlinevirtualinherited |
update element list
Implements GNEElementList.
Definition at line 59 of file GNETemplateElementList.h.
|
privateinherited |
add button
Definition at line 108 of file GNEElementList.h.
Referenced by GNEElementList::disableList(), and GNEElementList::enableList().
|
protectedinherited |
edited elements
Definition at line 133 of file GNETemplateElementList.h.
|
protectedinherited |
element dialog parent
Definition at line 130 of file GNETemplateElementList.h.
|
protectedinherited |
element table
Definition at line 98 of file GNEElementList.h.
Referenced by GNEElementList::disableList(), GNEElementList::enableList(), GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::getSortTuples(), GNEElementList::isListValid(), and GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::updateList().
|
privateinherited |
label
Definition at line 114 of file GNEElementList.h.
Referenced by GNEElementList::disableList(), and GNEElementList::enableList().
|
privateinherited |
sort button
Definition at line 111 of file GNEElementList.h.
Referenced by GNEElementList::disableList(), and GNEElementList::enableList().
|
protectedinherited |
FOX needs this.
pointer to tag property
Definition at line 95 of file GNEElementList.h.
Referenced by GNEElementList::enableList(), and GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::updateList().