73 const auto rerouterParent =
myElement->getParentAdditionals().at(0);
75 const std::string warningTitle =
TLF(
"Error updating % of % '%'",
myElement->getTagStr(), rerouterParent->getTagStr(), rerouterParent->getID());
76 const std::string infoA =
TLF(
"% of % '%' cannot be updated because",
myElement->getTagStr(), rerouterParent->getTagStr(), rerouterParent->getID());
82 infoB =
TLF(
"at least one % must be defined.",
myElement->getTagStr());
95 if (infoB.size() > 0) {
124 FXVerticalFrame* contentFrame) :
129 disableList(TL(
"No edges in net"));
137 const auto edge =
myElementDialogParent->getElement()->getNet()->getAttributeCarriers()->getEdges().begin()->second;
155 FXVerticalFrame* contentFrame) :
160 disableList(TL(
"No lanes in net"));
168 const auto lane =
myElementDialogParent->getElement()->getNet()->getAttributeCarriers()->getEdges().begin()->second->getChildLanes().front();
186 FXVerticalFrame* contentFrame) :
191 disableList(TL(
"No edges in net"));
199 const auto edge =
myElementDialogParent->getElement()->getNet()->getAttributeCarriers()->getEdges().begin()->second;
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)
GNEElementList(FXVerticalFrame *contentFrame, const GNETagProperties *tagProperty, 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()
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
GNERerouterIntervalDialog(GNEAdditional *rerouterInterval)
constructor
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