Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEAllowVClassesDialog Class Reference

#include <GNEAllowVClassesDialog.h>

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

Public Member Functions

std::string getModifiedVClasses () const
 get vClasses modified by this dialog
 
 GNEAllowVClassesDialog (GNEViewNet *viewNet)
 FOX-declaration.
 
int openDialog (SumoXMLAttr attr, const std::string originalVClasses, GNEInternalTest *internalTests)
 open dialog
 
FXuint openModalDialog (InternalTest *internalTests, FXuint placement=PLACEMENT_CURSOR)
 Run modal invocation of the dialog.
 
void runInternalTest (const InternalTestStep::DialogTest *modalArguments)
 run internal test
 
 ~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 *sender, FXSelector sel, void *arg)
 event after press accept button
 
long onCmdCancel (FXObject *sender, FXSelector sel, void *arg)
 event after press cancel button
 
long onCmdReset (FXObject *, FXSelector, void *)
 event after press reset button
 
FOX-callbacks
long onCmdInternalTest (FXObject *, FXSelector, void *ptr)
 event used in internal tests
 

Protected Attributes

FXButton * myCancelButton
 cancel button
 
std::string myEditedVClasses
 edited vClasses
 
FXButton * myKeepOldButton
 accept button
 
std::string myOriginalVClasses
 original vClasses
 
FXButton * myResetButton
 cancel button
 
bool myTesting = false
 flag to indicate if this dialog is being tested using internal test
 
std::map< SUMOVehicleClass, std::pair< FXButton *, FXLabel * > > myVClassMap
 map with the buttons for every VClass
 
GNEViewNetmyViewNet
 FOX need this.
 

Private Member Functions

void buildVClass (FXVerticalFrame *contentsFrame, SUMOVehicleClass vclass, GUIIcon vclassIcon, const std::string &description)
 build VClass
 
FXuint execute (FXuint placement=PLACEMENT_CURSOR)
 make execute private
 
 GNEAllowVClassesDialog (const GNEAllowVClassesDialog &)=delete
 Invalidated copy constructor.
 
GNEAllowVClassesDialogoperator= (const GNEAllowVClassesDialog &)=delete
 Invalidated assignment operator.
 

Detailed Description

Definition at line 38 of file GNEAllowVClassesDialog.h.

Constructor & Destructor Documentation

◆ GNEAllowVClassesDialog() [1/2]

GNEAllowVClassesDialog::GNEAllowVClassesDialog ( GNEViewNet viewNet)

FOX-declaration.

Constructor

Definition at line 53 of file GNEAllowVClassesDialog.cpp.

References ACCEPT, GUIDesigns::buildFXButton(), 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, OK, 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.

◆ ~GNEAllowVClassesDialog()

GNEAllowVClassesDialog::~GNEAllowVClassesDialog ( )

destructor

Definition at line 128 of file GNEAllowVClassesDialog.cpp.

◆ GNEAllowVClassesDialog() [2/2]

GNEAllowVClassesDialog::GNEAllowVClassesDialog ( const GNEAllowVClassesDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ buildVClass()

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

◆ execute()

FXuint MFXDialogBox::execute ( FXuint  placement = PLACEMENT_CURSOR)
privateinherited

make execute private

Definition at line 128 of file MFXDialogBox.cpp.

◆ getModifiedVClasses()

std::string GNEAllowVClassesDialog::getModifiedVClasses ( ) const

get vClasses modified by this dialog

Definition at line 151 of file GNEAllowVClassesDialog.cpp.

References myEditedVClasses.

◆ onCmdAccept()

long GNEAllowVClassesDialog::onCmdAccept ( FXObject *  sender,
FXSelector  sel,
void *  arg 
)

event after press accept button

Definition at line 223 of file GNEAllowVClassesDialog.cpp.

References ACCEPT, GUIIconSubSys::getIcon(), getVehicleClassNames(), joinToString(), myEditedVClasses, myOriginalVClasses, myVClassMap, MFXDialogBox::onCmdAccept(), and MFXDialogBox::onCmdCancel().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCancel()

long GNEAllowVClassesDialog::onCmdCancel ( FXObject *  sender,
FXSelector  sel,
void *  arg 
)

event after press cancel button

Definition at line 250 of file GNEAllowVClassesDialog.cpp.

References myEditedVClasses, myOriginalVClasses, and MFXDialogBox::onCmdCancel().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdInternalTest()

long MFXDialogBox::onCmdInternalTest ( FXObject *  ,
FXSelector  ,
void *  ptr 
)
inherited

event used in internal tests

Definition at line 115 of file MFXDialogBox.cpp.

References MFXDialogBox::runInternalTest().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdReset()

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

event after press reset button

Definition at line 259 of file GNEAllowVClassesDialog.cpp.

References ACCEPT, CANCEL, GUIIconSubSys::getIcon(), StringTokenizer::getVector(), getVehicleClassNames(), myEditedVClasses, myOriginalVClasses, and myVClassMap.

Referenced by FXDEFMAP(), and openDialog().

Here is the caller graph for this function:

◆ onCmdSelectAll()

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

event when user press select all VClasses button

Definition at line 175 of file GNEAllowVClassesDialog.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSelectOnlyRail()

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

event when user press select only rail button

Definition at line 209 of file GNEAllowVClassesDialog.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSelectOnlyRoad()

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

event when user press select only road button

Definition at line 195 of file GNEAllowVClassesDialog.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 GNEAllowVClassesDialog::onCmdUnselectAll ( FXObject *  ,
FXSelector  ,
void *   
)

event when user press unselect all VClasses button

Definition at line 185 of file GNEAllowVClassesDialog.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdValueChanged()

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

Definition at line 157 of file GNEAllowVClassesDialog.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openDialog()

int GNEAllowVClassesDialog::openDialog ( SumoXMLAttr  attr,
const std::string  originalVClasses,
GNEInternalTest internalTests 
)

◆ openModalDialog()

FXuint MFXDialogBox::openModalDialog ( InternalTest internalTests,
FXuint  placement = PLACEMENT_CURSOR 
)
inherited

Run modal invocation of the dialog.

Definition at line 64 of file MFXDialogBox.cpp.

References InternalTest::getCurrentStep(), InternalTestStep::getModalDialogTestSteps(), and MFXDialogBox::myTesting.

Referenced by GNETLSEditorFrame::TLSAttributes::onCmdParametersDialog(), openDialog(), GNEFixElementsDialog::openFixDialog(), GNEOptionsDialog::Options(), and GNEOptionsDialog::Run().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ runInternalTest()

void GNEAllowVClassesDialog::runInternalTest ( const InternalTestStep::DialogTest modalArguments)
virtual

run internal test

Reimplemented from MFXDialogBox.

Definition at line 145 of file GNEAllowVClassesDialog.cpp.

Field Documentation

◆ myCancelButton

FXButton* GNEAllowVClassesDialog::myCancelButton
protected

cancel button

Definition at line 103 of file GNEAllowVClassesDialog.h.

◆ myEditedVClasses

std::string GNEAllowVClassesDialog::myEditedVClasses
protected

edited vClasses

Definition at line 97 of file GNEAllowVClassesDialog.h.

Referenced by getModifiedVClasses(), onCmdAccept(), onCmdCancel(), onCmdReset(), and openDialog().

◆ myKeepOldButton

FXButton* GNEAllowVClassesDialog::myKeepOldButton
protected

accept button

Definition at line 100 of file GNEAllowVClassesDialog.h.

◆ myOriginalVClasses

std::string GNEAllowVClassesDialog::myOriginalVClasses
protected

original vClasses

Definition at line 94 of file GNEAllowVClassesDialog.h.

Referenced by onCmdAccept(), onCmdCancel(), onCmdReset(), and openDialog().

◆ myResetButton

FXButton* GNEAllowVClassesDialog::myResetButton
protected

cancel button

Definition at line 106 of file GNEAllowVClassesDialog.h.

◆ myTesting

bool MFXDialogBox::myTesting = false
protectedinherited

flag to indicate if this dialog is being tested using internal test

Definition at line 66 of file MFXDialogBox.h.

Referenced by MFXDialogBox::onCmdAccept(), MFXDialogBox::onCmdCancel(), and MFXDialogBox::openModalDialog().

◆ myVClassMap

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

◆ myViewNet

GNEViewNet* GNEAllowVClassesDialog::myViewNet
protected

FOX need this.

@pointer to viewNet

Definition at line 91 of file GNEAllowVClassesDialog.h.


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