74 const auto rerouterParent =
myElement->getParentAdditionals().at(0);
76 const std::string warningTitle =
TLF(
"Error updating % of % '%'",
myElement->getTagStr(), rerouterParent->getTagStr(), rerouterParent->getID());
77 const std::string infoA =
TLF(
"% of % '%' cannot be updated because",
myElement->getTagStr(), rerouterParent->getTagStr(), rerouterParent->getID());
83 infoB =
TLF(
"at least one % must be defined.",
myElement->getTagStr());
96 if (infoB.size() > 0) {
99 warningTitle, infoA, infoB);
126 FXVerticalFrame* contentFrame) :
131 disableList(TL(
"No edges in net"));
139 const auto edge =
myElementDialogParent->getElement()->getNet()->getAttributeCarriers()->getEdges().begin()->second;
157 FXVerticalFrame* contentFrame) :
162 disableList(TL(
"No lanes in net"));
170 const auto lane =
myElementDialogParent->getElement()->getNet()->getAttributeCarriers()->getEdges().begin()->second->getChildLanes().front();
188 FXVerticalFrame* contentFrame) :
193 disableList(TL(
"No edges in net"));
217 FXVerticalFrame* contentFrame) :
222 disableList(TL(
"Rerouter has more than one edge"));
226 disableList(TL(
"No routes in net"));
252 FXVerticalFrame* contentFrame) :
257 disableList(TL(
"No parkingAreas in net"));
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
#define GUIDesignAuxiliarVerticalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
const SVCPermissions SVCAll
all VClasses are allowed
@ SVC_AUTHORITY
authorities vehicles
@ SUMO_TAG_CLOSING_REROUTE
reroute of type closing
@ SUMO_TAG_PARKING_AREA_REROUTE
entry for an alternative parking zone
@ SUMO_TAG_PARKING_AREA
A parking area.
@ SUMO_TAG_ROUTE_PROB_REROUTE
probability of route of a reroute
@ SUMO_TAG_ROUTE
description of a route
@ SUMO_TAG_DEST_PROB_REROUTE
probability of destination of a reroute
@ SUMO_TAG_CLOSING_LANE_REROUTE
lane of a reroute of type closing
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
GNENet * getNet() const
get pointer to net
FXVerticalFrame * myContentFrame
void openDialog(FXWindow *focusableElement=nullptr)
GNEDialog(GNEApplicationWindow *applicationWindow, const std::string &name, GUIIcon titleIcon, DialogType type, Buttons buttons, OpenType openType, ResizeMode resizeMode)
basic constructor
GNEElementList(GNEDialog *parentDialog, FXVerticalFrame *contentFrame, SumoXMLTag tag, GNEElementList::Options options)
constructor
const GNEHierarchicalContainerParents< GNEAdditional * > & getParentAdditionals() const
get parent additionals
const std::unordered_map< SumoXMLTag, std::unordered_map< const GUIGlObject *, GNEDemandElement * >, std::hash< int > > & getDemandElements() const
get demand elements
const std::map< std::string, GNEEdge * > & getEdges() const
map with the ID and pointer to edges of net
const std::unordered_map< const GUIGlObject *, GNELane * > & getLanes() const
get lanes
const std::unordered_map< SumoXMLTag, std::unordered_map< const GUIGlObject *, GNEAdditional * >, std::hash< int > > & getAdditionals() const
get additionals
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
closing lane reroutes list
long addNewElement()
add new element
ClosingLaneReroutesList(GNERerouterIntervalDialog *rerouterIntervalDialog, FXVerticalFrame *contentFrame)
constructor
long openElementDialog(const size_t rowIndex)
open element dialog
long addNewElement()
add new element
ClosingReroutesList(GNERerouterIntervalDialog *rerouterIntervalDialog, FXVerticalFrame *contentFrame)
constructor
long openElementDialog(const size_t rowIndex)
open element dialog
long addNewElement()
add new element
DestProbReroutesList(GNERerouterIntervalDialog *rerouterIntervalDialog, FXVerticalFrame *contentFrame)
constructor
long openElementDialog(const size_t rowIndex)
open element dialog
parking area reroutes list
long openElementDialog(const size_t rowIndex)
open element dialog
long addNewElement()
add new element
ParkingAreaReroutesList(GNERerouterIntervalDialog *rerouterIntervalDialog, FXVerticalFrame *contentFrame)
constructor
long openElementDialog(const size_t rowIndex)
open element dialog
long addNewElement()
add new element
RouteProbReroutesList(GNERerouterIntervalDialog *rerouterIntervalDialog, FXVerticalFrame *contentFrame)
constructor
GNERerouterIntervalDialog(GNEAdditional *rerouterInterval, GNEDialog *rerouterDialogParent)
constructor
~GNERerouterIntervalDialog()
destructor
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
DestProbReroutesList * myDestProbReroutes
list with destination probability reroutes
ClosingLaneReroutesList * myClosingLaneReroutes
list with closing lane reroutes
ClosingReroutesList * myClosingReroutes
list with closing reroutes
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
RouteProbReroutesList * myRouteProbReroutes
list with route probability reroute
ParkingAreaReroutesList * myParkingAreaReroutes
list with parkingAreaReroutes
long onCmdAccept(FXObject *, FXSelector, void *)
event after press accept button
GNEAdditional * myElement
T * getElement() const
get edited element
GNETemplateElementDialog(GNEAdditional *element, DialogType type)
long acceptElementDialog()
std::vector< GNEAdditional * > myEditedElements
long insertElement(GNEAdditional *element)
GNETemplateElementDialog< GNEAdditional > * myElementDialogParent
GNETemplateElementList(GNETemplateElementDialog< GNEAdditional > *elementDialogParent, FXVerticalFrame *contentFrame, SumoXMLTag tag, GNEElementList::Options options)
dialog arguments, used for certain modal dialogs that can not be edited using tab