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());
95 if (infoB.size() > 0) {
124 FXVerticalFrame* contentFrame) :
137 const auto edge = myElementDialogParent->getElement()->getNet()->getAttributeCarriers()->getEdges().begin()->second;
155 FXVerticalFrame* contentFrame) :
168 const auto lane = myElementDialogParent->getElement()->getNet()->getAttributeCarriers()->getEdges().begin()->second->getChildLanes().front();
186 FXVerticalFrame* contentFrame) :
199 const auto edge = myElementDialogParent->getElement()->getNet()->getAttributeCarriers()->getEdges().begin()->second;
201 return insertElement(
new GNEDestProbReroute(myElementDialogParent->getElement(), edge, 1));
217 FXVerticalFrame* contentFrame) :
234 const auto route = myElementDialogParent->getElement()->getNet()->getAttributeCarriers()->getDemandElements().at(
SUMO_TAG_ROUTE).begin()->second;
236 return insertElement(
new GNERouteProbReroute(myElementDialogParent->getElement(), route, 1));
252 FXVerticalFrame* contentFrame) :
265 const auto parkingArea = myElementDialogParent->getElement()->getNet()->getAttributeCarriers()->getAdditionals().at(
SUMO_TAG_PARKING_AREA).begin()->second;
267 return insertElement(
new GNEParkingAreaReroute(myElementDialogParent->getElement(), parkingArea, 1, 1));
#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
@ 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)
const std::string & getTagStr() const
get tag assigned to this object in string format
GNENet * getNet() const
get pointer to net
FXVerticalFrame * myContentFrame
content frame
void openDialog(FXWindow *focusableElement=nullptr)
open dialog
void disableList(const std::string &reason)
disable list
bool isListValid() const
check if the current list is valid
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
GNEViewNet * getViewNet() const
get view 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
pointer to edited element
T * getElement() const
get edited element
void resetChanges()
reset changes did in this dialog.
long acceptElementDialog()
close dialog commiting changes
const std::vector< elementType * > & getEditedElements() const
get edited elements
long updateList()
update element list
GNEViewParent * getViewParent() const
get the net object
GNEApplicationWindow * getGNEAppWindows() const
get GNE Application Windows
dialog arguments, used for certain modal dialogs that can not be edited using tab