Eclipse SUMO - Simulation of Urban MObility
|
Dialog for edit rerouters. More...
#include <GNEAllowVClassesDialog.h>
Public Member Functions | |
GNEAllowVClassesDialog (GNEViewNet *viewNet, GNEAttributeCarrier *AC, SumoXMLAttr attr, bool *acceptChanges) | |
FOX-declaration. | |
GNEAllowVClassesDialog (GNEViewNet *viewNet, std::string *allow, bool *acceptChanges) | |
Constructor (For. | |
~GNEAllowVClassesDialog () | |
destructor | |
FOX-callbacks | |
event when user press a enable/disable button | |
long | onCmdValueChanged (FXObject *, FXSelector, void *) |
long | onCmdSelectAll (FXObject *, FXSelector, void *) |
event when user press select all VClasses button | |
long | onCmdUnselectAll (FXObject *, FXSelector, void *) |
event when user press unselect all VClasses button | |
long | onCmdSelectOnlyRoad (FXObject *, FXSelector, void *) |
event when user press select only road button | |
long | onCmdSelectOnlyRail (FXObject *, FXSelector, void *) |
event when user press select only rail button | |
long | onCmdAccept (FXObject *, FXSelector, void *) |
event after press accept button | |
long | onCmdCancel (FXObject *, FXSelector, void *) |
event after press cancel button | |
long | onCmdReset (FXObject *, FXSelector, void *) |
event after press reset button | |
Protected Attributes | |
GNEAttributeCarrier * | myAC |
edited AC | |
FXButton * | myAcceptButton |
accept button | |
bool * | myAcceptChanges |
accept changes | |
std::string * | myAllow |
allow vehicles | |
FXButton * | myCancelButton |
cancel button | |
SumoXMLAttr | myEditedAttr |
the attribute being edited | |
FXButton * | myResetButton |
cancel button | |
std::map< SUMOVehicleClass, std::pair< FXButton *, FXLabel * > > | myVClassMap |
map with the buttons for every VClass | |
GNEViewNet * | myViewNet |
FOX need this. | |
Private Member Functions | |
void | buildVClass (FXVerticalFrame *contentsFrame, SUMOVehicleClass vclass, GUIIcon vclassIcon, const std::string &description) |
build VClass | |
void | constructor () |
constructor | |
GNEAllowVClassesDialog (const GNEAllowVClassesDialog &)=delete | |
Invalidated copy constructor. | |
GNEAllowVClassesDialog & | operator= (const GNEAllowVClassesDialog &)=delete |
Invalidated assignment operator. | |
Dialog for edit rerouters.
Definition at line 40 of file GNEAllowVClassesDialog.h.
GNEAllowVClassesDialog::GNEAllowVClassesDialog | ( | GNEViewNet * | viewNet, |
GNEAttributeCarrier * | AC, | ||
SumoXMLAttr | attr, | ||
bool * | acceptChanges | ||
) |
GNEAllowVClassesDialog::GNEAllowVClassesDialog | ( | GNEViewNet * | viewNet, |
std::string * | allow, | ||
bool * | acceptChanges | ||
) |
Constructor (For.
Definition at line 65 of file GNEAllowVClassesDialog.cpp.
References constructor().
GNEAllowVClassesDialog::~GNEAllowVClassesDialog | ( | ) |
destructor
Definition at line 77 of file GNEAllowVClassesDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
|
private |
build VClass
Definition at line 293 of file GNEAllowVClassesDialog.cpp.
References GUIDesigns::buildFXButton(), EMPTY, GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonIcon, GUIDesignLabelIcon64x32Thicked, GUIDesignLabelThick, MID_GNE_ALLOWDISALLOW_CHANGE, myVClassMap, and toString().
Referenced by constructor().
|
private |
constructor
Definition at line 217 of file GNEAllowVClassesDialog.cpp.
References ACCEPT, GUIDesigns::buildFXButton(), buildVClass(), CANCEL, GUIIconSubSys::getIcon(), GREENVEHICLE, GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonAccept, GUIDesignButtonCancel, GUIDesignButtonIcon, GUIDesignButtonReset, GUIDesignContentsFrame, GUIDesignGroupBoxFrame, GUIDesignHorizontalFrame, GUIDesignLabelThick, MID_GNE_ALLOWDISALLOW_ONLY_RAIL, MID_GNE_ALLOWDISALLOW_ONLY_ROAD, MID_GNE_ALLOWDISALLOW_SELECTALL, MID_GNE_ALLOWDISALLOW_UNSELECTALL, MID_GNE_BUTTON_ACCEPT, MID_GNE_BUTTON_CANCEL, MID_GNE_BUTTON_RESET, myAcceptButton, myCancelButton, myResetButton, OK, onCmdReset(), RESET, SUMO_ATTR_VCLASS, SVC_AIRCRAFT, SVC_ARMY, SVC_AUTHORITY, SVC_BICYCLE, SVC_BUS, SVC_CABLE_CAR, SVC_COACH, SVC_CONTAINER, SVC_CUSTOM1, SVC_CUSTOM2, SVC_DELIVERY, SVC_DRONE, SVC_E_VEHICLE, SVC_EMERGENCY, SVC_HOV, SVC_MOPED, SVC_MOTORCYCLE, SVC_PASSENGER, SVC_PEDESTRIAN, SVC_PRIVATE, SVC_RAIL, SVC_RAIL_ELECTRIC, SVC_RAIL_FAST, SVC_RAIL_URBAN, SVC_SCOOTER, SVC_SHIP, SVC_SUBWAY, SVC_TAXI, SVC_TRAILER, SVC_TRAM, SVC_TRUCK, SVC_VIP, SVC_WHEELCHAIR, TL, toString(), VCLASS_AIRCRAFT, VCLASS_ARMY, VCLASS_AUTHORITY, VCLASS_BICYCLE, VCLASS_BUS, VCLASS_CABLE_CAR, VCLASS_COACH, VCLASS_CONTAINER, VCLASS_CUSTOM1, VCLASS_CUSTOM2, VCLASS_DELIVERY, VCLASS_DRONE, VCLASS_EMERGENCY, VCLASS_EVEHICLE, VCLASS_HOV, VCLASS_MOPED, VCLASS_MOTORCYCLE, VCLASS_PASSENGER, VCLASS_PEDESTRIAN, VCLASS_PRIVATE, VCLASS_RAIL, VCLASS_RAIL_ELECTRIC, VCLASS_RAIL_FAST, VCLASS_RAIL_URBAN, VCLASS_SCOOTER, VCLASS_SHIP, VCLASS_SUBWAY, VCLASS_TAXI, VCLASS_TRAILER, VCLASS_TRAM, VCLASS_TRUCK, VCLASS_VIP, and VCLASS_WHEELCHAIR.
Referenced by GNEAllowVClassesDialog().
long GNEAllowVClassesDialog::onCmdAccept | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event after press accept button
Definition at line 148 of file GNEAllowVClassesDialog.cpp.
References ACCEPT, GUIIconSubSys::getIcon(), GNEViewNet::getUndoList(), getVehicleClassNames(), joinToString(), myAC, myAcceptChanges, myAllow, myEditedAttr, myVClassMap, myViewNet, and GNEAttributeCarrier::setAttribute().
Referenced by FXDEFMAP().
long GNEAllowVClassesDialog::onCmdCancel | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event after press cancel button
Definition at line 175 of file GNEAllowVClassesDialog.cpp.
References myAcceptChanges.
Referenced by FXDEFMAP().
long GNEAllowVClassesDialog::onCmdReset | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event after press reset button
Definition at line 185 of file GNEAllowVClassesDialog.cpp.
References ACCEPT, CANCEL, GNEAttributeCarrier::getAttribute(), GUIIconSubSys::getIcon(), StringTokenizer::getVector(), getVehicleClassNames(), myAC, myAllow, myEditedAttr, and myVClassMap.
Referenced by constructor(), and FXDEFMAP().
long GNEAllowVClassesDialog::onCmdSelectAll | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event when user press select all VClasses button
Definition at line 100 of file GNEAllowVClassesDialog.cpp.
References ACCEPT, GUIIconSubSys::getIcon(), and myVClassMap.
Referenced by FXDEFMAP().
long GNEAllowVClassesDialog::onCmdSelectOnlyRail | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event when user press select only rail button
Definition at line 134 of file GNEAllowVClassesDialog.cpp.
References ACCEPT, CANCEL, GUIIconSubSys::getIcon(), myVClassMap, and SVC_RAIL_CLASSES.
Referenced by FXDEFMAP().
long GNEAllowVClassesDialog::onCmdSelectOnlyRoad | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event when user press select only road button
Definition at line 120 of file GNEAllowVClassesDialog.cpp.
References ACCEPT, CANCEL, GUIIconSubSys::getIcon(), myVClassMap, SVC_NON_ROAD, and SVC_PEDESTRIAN.
Referenced by FXDEFMAP().
long GNEAllowVClassesDialog::onCmdUnselectAll | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event when user press unselect all VClasses button
Definition at line 110 of file GNEAllowVClassesDialog.cpp.
References CANCEL, GUIIconSubSys::getIcon(), and myVClassMap.
Referenced by FXDEFMAP().
long GNEAllowVClassesDialog::onCmdValueChanged | ( | FXObject * | obj, |
FXSelector | , | ||
void * | |||
) |
Definition at line 82 of file GNEAllowVClassesDialog.cpp.
References ACCEPT, CANCEL, GUIIconSubSys::getIcon(), and myVClassMap.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
|
protected |
edited AC
Definition at line 89 of file GNEAllowVClassesDialog.h.
Referenced by onCmdAccept(), and onCmdReset().
|
protected |
|
protected |
accept changes
Definition at line 95 of file GNEAllowVClassesDialog.h.
Referenced by onCmdAccept(), and onCmdCancel().
|
protected |
allow vehicles
Definition at line 98 of file GNEAllowVClassesDialog.h.
Referenced by onCmdAccept(), and onCmdReset().
|
protected |
|
protected |
the attribute being edited
Definition at line 92 of file GNEAllowVClassesDialog.h.
Referenced by onCmdAccept(), and onCmdReset().
|
protected |
|
protected |
map with the buttons for every VClass
Definition at line 110 of file GNEAllowVClassesDialog.h.
Referenced by buildVClass(), onCmdAccept(), onCmdReset(), onCmdSelectAll(), onCmdSelectOnlyRail(), onCmdSelectOnlyRoad(), onCmdUnselectAll(), and onCmdValueChanged().
|
protected |
FOX need this.
@pointer to viewNet
Definition at line 86 of file GNEAllowVClassesDialog.h.
Referenced by onCmdAccept().