Eclipse SUMO - Simulation of Urban MObility
GNEAllowDisallow Class Reference

Dialog for edit rerouters. More...

#include <GNEAllowDisallow.h>

Inheritance diagram for GNEAllowDisallow:
Collaboration diagram for GNEAllowDisallow:

Public Member Functions

 GNEAllowDisallow (GNEViewNet *viewNet, GNEAttributeCarrier *AC, SumoXMLAttr attr, bool *acceptChanges)
 FOX-declaration. More...
 
 GNEAllowDisallow (GNEViewNet *viewNet, std::string *allow, bool *acceptChanges)
 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 onCmdSelectOnlyRail (FXObject *, FXSelector, void *)
 event when user press select only rail 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...
 
bool * myAcceptChanges
 accept changes More...
 
std::string * myAllow
 allow vehicles More...
 
FXButton * myCancelButton
 cancel button More...
 
SumoXMLAttr myEditedAttr
 the attribute being edited More...
 
FXButton * myResetButton
 cancel button 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,
SumoXMLAttr  attr,
bool *  acceptChanges 
)

FOX-declaration.

Constructor (for AC)

Definition at line 54 of file GNEAllowDisallow.cpp.

◆ GNEAllowDisallow() [2/3]

GNEAllowDisallow::GNEAllowDisallow ( GNEViewNet viewNet,
std::string *  allow,
bool *  acceptChanges 
)

Constructor (For.

Definition at line 66 of file GNEAllowDisallow.cpp.

References constructor().

◆ ~GNEAllowDisallow()

GNEAllowDisallow::~GNEAllowDisallow ( )

destructor

Definition at line 78 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

◆ constructor()

void GNEAllowDisallow::constructor ( )
private

◆ onCmdAccept()

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

event after press accept button

Definition at line 149 of file GNEAllowDisallow.cpp.

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

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 176 of file GNEAllowDisallow.cpp.

References myAcceptChanges.

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 186 of file GNEAllowDisallow.cpp.

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

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 101 of file GNEAllowDisallow.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSelectOnlyRail()

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

event when user press select only rail button

Definition at line 135 of file GNEAllowDisallow.cpp.

References ACCEPT, CANCEL, GUIIconSubSys::getIcon(), myVClassMap, SVC_RAIL, SVC_RAIL_ELECTRIC, SVC_RAIL_FAST, SVC_RAIL_URBAN, and SVC_TRAM.

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 121 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 111 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 83 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 89 of file GNEAllowDisallow.h.

Referenced by onCmdAccept(), and onCmdReset().

◆ myAcceptButton

FXButton* GNEAllowDisallow::myAcceptButton
protected

accept button

Definition at line 101 of file GNEAllowDisallow.h.

Referenced by constructor().

◆ myAcceptChanges

bool* GNEAllowDisallow::myAcceptChanges
protected

accept changes

Definition at line 95 of file GNEAllowDisallow.h.

Referenced by onCmdAccept(), and onCmdCancel().

◆ myAllow

std::string* GNEAllowDisallow::myAllow
protected

allow vehicles

Definition at line 98 of file GNEAllowDisallow.h.

Referenced by onCmdAccept(), and onCmdReset().

◆ myCancelButton

FXButton* GNEAllowDisallow::myCancelButton
protected

cancel button

Definition at line 104 of file GNEAllowDisallow.h.

Referenced by constructor().

◆ myEditedAttr

SumoXMLAttr GNEAllowDisallow::myEditedAttr
protected

the attribute being edited

Definition at line 92 of file GNEAllowDisallow.h.

Referenced by onCmdAccept(), and onCmdReset().

◆ myResetButton

FXButton* GNEAllowDisallow::myResetButton
protected

cancel button

Definition at line 107 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 110 of file GNEAllowDisallow.h.

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

◆ myViewNet

GNEViewNet* GNEAllowDisallow::myViewNet
protected

FOX need this.

@pointer to viewNet

Definition at line 86 of file GNEAllowDisallow.h.

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


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