Eclipse SUMO - Simulation of Urban MObility
GNEAllowDisallow Class Reference

Dialog for edit rerouters. More...

#include <GNEAllowDisallow.h>

Inheritance diagram for GNEAllowDisallow:
[legend]
Collaboration diagram for GNEAllowDisallow:
[legend]

Public Member Functions

 GNEAllowDisallow (GNEViewNet *viewNet, GNEAttributeCarrier *AC)
 FOX-declaration. More...
 
 GNEAllowDisallow (GNEViewNet *viewNet, std::string *allow, std::string *disallow)
 Constructor (For. More...
 
 ~GNEAllowDisallow ()
 destructor More...
 
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 More...
 
long onCmdUnselectAll (FXObject *, FXSelector, void *)
 event when user press unselect all VClasses button More...
 
long onCmdSelectOnlyRoad (FXObject *, FXSelector, void *)
 event when user press select only road button More...
 
long onCmdAccept (FXObject *, FXSelector, void *)
 event after press accept button More...
 
long onCmdCancel (FXObject *, FXSelector, void *)
 event after press cancel button More...
 
long onCmdReset (FXObject *, FXSelector, void *)
 event after press reset button More...
 

Protected Attributes

GNEAttributeCarriermyAC
 edited AC More...
 
FXButton * myAcceptButton
 accept button More...
 
std::string * myAllow
 
FXButton * myCancelButton
 cancel button More...
 
std::string * myDisAllow
 
FXButton * myResetButton
 cancel button More...
 
FXButton * mySelectAllVClassButton
 select all VClass More...
 
FXButton * mySelectOnlyRoadVClassButton
 select only road vehicles More...
 
FXButton * myUnselectAllVClassButton
 unselect all VCLass More...
 
std::map< SUMOVehicleClass, std::pair< FXButton *, FXLabel * > > myVClassMap
 map with the buttons for every VClass More...
 
GNEViewNetmyViewNet
 FOX need this. More...
 

Private Member Functions

void buildVClass (FXVerticalFrame *contentsFrame, SUMOVehicleClass vclass, GUIIcon vclassIcon, const std::string &description)
 build VClass More...
 
void constructor ()
 constructor More...
 
 GNEAllowDisallow (const GNEAllowDisallow &)=delete
 Invalidated copy constructor. More...
 
GNEAllowDisallowoperator= (const GNEAllowDisallow &)=delete
 Invalidated assignment operator. More...
 

Detailed Description

Dialog for edit rerouters.

Definition at line 40 of file GNEAllowDisallow.h.

Constructor & Destructor Documentation

◆ GNEAllowDisallow() [1/3]

GNEAllowDisallow::GNEAllowDisallow ( GNEViewNet viewNet,
GNEAttributeCarrier AC 
)

FOX-declaration.

Constructor (for AC)

Definition at line 53 of file GNEAllowDisallow.cpp.

◆ GNEAllowDisallow() [2/3]

GNEAllowDisallow::GNEAllowDisallow ( GNEViewNet viewNet,
std::string *  allow,
std::string *  disallow 
)

Constructor (For.

Definition at line 64 of file GNEAllowDisallow.cpp.

References constructor().

◆ ~GNEAllowDisallow()

GNEAllowDisallow::~GNEAllowDisallow ( )

destructor

Definition at line 75 of file GNEAllowDisallow.cpp.

◆ GNEAllowDisallow() [3/3]

GNEAllowDisallow::GNEAllowDisallow ( const GNEAllowDisallow )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ buildVClass()

void GNEAllowDisallow::buildVClass ( FXVerticalFrame *  contentsFrame,
SUMOVehicleClass  vclass,
GUIIcon  vclassIcon,
const std::string &  description 
)
private

build VClass

Definition at line 261 of file GNEAllowDisallow.cpp.

References EMPTY, GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonIcon, GUIDesignLabelIcon64x32Thicked, GUIDesignLabelLeftThick, MID_GNE_ALLOWDISALLOW_CHANGE, myVClassMap, and toString().

Referenced by constructor().

Here is the caller graph for this function:

◆ constructor()

void GNEAllowDisallow::constructor ( )
private

constructor

Definition at line 198 of file GNEAllowDisallow.cpp.

References ACCEPT, buildVClass(), CANCEL, GUIIconSubSys::getIcon(), GREENVEHICLE, GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonAccept, GUIDesignButtonCancel, GUIDesignButtonIcon, GUIDesignButtonReset, GUIDesignContentsFrame, GUIDesignGroupBoxFrame, GUIDesignHorizontalFrame, GUIDesignLabelLeftThick, MID_GNE_ALLOWDISALLOW_SELECTALL, MID_GNE_ALLOWDISALLOW_SELECTONLYROAD, MID_GNE_ALLOWDISALLOW_UNSELECTALL, MID_GNE_BUTTON_ACCEPT, MID_GNE_BUTTON_CANCEL, MID_GNE_BUTTON_RESET, myAcceptButton, myCancelButton, myResetButton, mySelectAllVClassButton, mySelectOnlyRoadVClassButton, myUnselectAllVClassButton, OK, onCmdReset(), RESET, SUMO_ATTR_VCLASS, SVC_ARMY, SVC_AUTHORITY, SVC_BICYCLE, SVC_BUS, SVC_COACH, SVC_CUSTOM1, SVC_CUSTOM2, SVC_DELIVERY, 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_SHIP, SVC_TAXI, SVC_TRAILER, SVC_TRAM, SVC_TRUCK, SVC_VIP, toString(), VCLASS_ARMY, VCLASS_AUTHORITY, VCLASS_BICYCLE, VCLASS_BUS, VCLASS_COACH, VCLASS_CUSTOM1, VCLASS_CUSTOM2, VCLASS_DELIVERY, VCLASS_EMERGENCY, VCLASS_EVEHICLE, VCLASS_HOV, VCLASS_MOPED, VCLASS_MOTORCYCLE, VCLASS_PASSENGER, VCLASS_PEDESTRIAN, VCLASS_PRIVATE, VCLASS_RAIL, VCLASS_RAIL_ELECTRIC, VCLASS_RAIL_URBAN, VCLASS_SHIP, VCLASS_TAXI, VCLASS_TRAILER, VCLASS_TRAM, VCLASS_TRUCK, and VCLASS_VIP.

Referenced by GNEAllowDisallow().

Here is the caller graph for this function:

◆ onCmdAccept()

long GNEAllowDisallow::onCmdAccept ( FXObject *  ,
FXSelector  ,
void *   
)

event after press accept button

Definition at line 132 of file GNEAllowDisallow.cpp.

References ACCEPT, GUIIconSubSys::getIcon(), GNEViewNet::getUndoList(), getVehicleClassNames(), joinToString(), myAC, myAllow, myDisAllow, myVClassMap, myViewNet, GNEAttributeCarrier::setAttribute(), and SUMO_ATTR_ALLOW.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCancel()

long GNEAllowDisallow::onCmdCancel ( FXObject *  ,
FXSelector  ,
void *   
)

event after press cancel button

Definition at line 158 of file GNEAllowDisallow.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdReset()

long GNEAllowDisallow::onCmdReset ( FXObject *  ,
FXSelector  ,
void *   
)

event after press reset button

Definition at line 166 of file GNEAllowDisallow.cpp.

References ACCEPT, CANCEL, GNEAttributeCarrier::getAttribute(), GUIIconSubSys::getIcon(), StringTokenizer::getVector(), getVehicleClassNames(), myAC, myAllow, myVClassMap, and SUMO_ATTR_ALLOW.

Referenced by constructor(), and FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSelectAll()

long GNEAllowDisallow::onCmdSelectAll ( FXObject *  ,
FXSelector  ,
void *   
)

event when user press select all VClasses button

Definition at line 98 of file GNEAllowDisallow.cpp.

References ACCEPT, GUIIconSubSys::getIcon(), and myVClassMap.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSelectOnlyRoad()

long GNEAllowDisallow::onCmdSelectOnlyRoad ( FXObject *  ,
FXSelector  ,
void *   
)

event when user press select only road button

Definition at line 118 of file GNEAllowDisallow.cpp.

References ACCEPT, CANCEL, GUIIconSubSys::getIcon(), myVClassMap, SVC_NON_ROAD, and SVC_PEDESTRIAN.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdUnselectAll()

long GNEAllowDisallow::onCmdUnselectAll ( FXObject *  ,
FXSelector  ,
void *   
)

event when user press unselect all VClasses button

Definition at line 108 of file GNEAllowDisallow.cpp.

References CANCEL, GUIIconSubSys::getIcon(), and myVClassMap.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdValueChanged()

long GNEAllowDisallow::onCmdValueChanged ( FXObject *  obj,
FXSelector  ,
void *   
)

Definition at line 80 of file GNEAllowDisallow.cpp.

References ACCEPT, CANCEL, GUIIconSubSys::getIcon(), and myVClassMap.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

GNEAllowDisallow& GNEAllowDisallow::operator= ( const GNEAllowDisallow )
privatedelete

Invalidated assignment operator.

Field Documentation

◆ myAC

GNEAttributeCarrier* GNEAllowDisallow::myAC
protected

edited AC

Definition at line 86 of file GNEAllowDisallow.h.

Referenced by onCmdAccept(), and onCmdReset().

◆ myAcceptButton

FXButton* GNEAllowDisallow::myAcceptButton
protected

accept button

Definition at line 102 of file GNEAllowDisallow.h.

Referenced by constructor().

◆ myAllow

std::string* GNEAllowDisallow::myAllow
protected

Definition at line 88 of file GNEAllowDisallow.h.

Referenced by onCmdAccept(), and onCmdReset().

◆ myCancelButton

FXButton* GNEAllowDisallow::myCancelButton
protected

cancel button

Definition at line 105 of file GNEAllowDisallow.h.

Referenced by constructor().

◆ myDisAllow

std::string* GNEAllowDisallow::myDisAllow
protected

Definition at line 90 of file GNEAllowDisallow.h.

Referenced by onCmdAccept().

◆ myResetButton

FXButton* GNEAllowDisallow::myResetButton
protected

cancel button

Definition at line 108 of file GNEAllowDisallow.h.

Referenced by constructor().

◆ mySelectAllVClassButton

FXButton* GNEAllowDisallow::mySelectAllVClassButton
protected

select all VClass

Definition at line 93 of file GNEAllowDisallow.h.

Referenced by constructor().

◆ mySelectOnlyRoadVClassButton

FXButton* GNEAllowDisallow::mySelectOnlyRoadVClassButton
protected

select only road vehicles

Definition at line 99 of file GNEAllowDisallow.h.

Referenced by constructor().

◆ myUnselectAllVClassButton

FXButton* GNEAllowDisallow::myUnselectAllVClassButton
protected

unselect all VCLass

Definition at line 96 of file GNEAllowDisallow.h.

Referenced by constructor().

◆ myVClassMap

std::map<SUMOVehicleClass, std::pair<FXButton*, FXLabel*> > GNEAllowDisallow::myVClassMap
protected

map with the buttons for every VClass

Definition at line 111 of file GNEAllowDisallow.h.

Referenced by buildVClass(), onCmdAccept(), onCmdReset(), onCmdSelectAll(), onCmdSelectOnlyRoad(), onCmdUnselectAll(), and onCmdValueChanged().

◆ myViewNet

GNEViewNet* GNEAllowDisallow::myViewNet
protected

FOX need this.

@pointer to viewNet

Definition at line 83 of file GNEAllowDisallow.h.

Referenced by onCmdAccept(), and GNEFrameAttributesModuls::AttributesEditorRow::onCmdOpenAttributeDialog().


The documentation for this class was generated from the following files: