Eclipse SUMO - Simulation of Urban MObility
GNEFrameModuls::TagSelector Class Reference

#include <GNEFrameModuls.h>

Inheritance diagram for GNEFrameModuls::TagSelector:
[legend]
Collaboration diagram for GNEFrameModuls::TagSelector:
[legend]

Public Member Functions

const GNETagProperties & getCurrentTagProperties () const
 get current type tag More...
 
void hideTagSelector ()
 hide item selector More...
 
void refreshTagProperties ()
 due myCurrentTagProperties is a Reference, we need to refresh it when frameParent is show More...
 
void setCurrentTag (SumoXMLTag newTag)
 set current type manually More...
 
void setCurrentTagType (GNETagProperties::TagType tagType)
 set current type manually More...
 
void showTagSelector ()
 show item selector More...
 
 TagSelector (GNEFrame *frameParent, GNETagProperties::TagType type, bool onlyDrawables=true)
 FOX-declaration. More...
 
 ~TagSelector ()
 destructor More...
 
FOX-callbacks

Called when the user select an group in ComboBox

long onCmdSelectTagType (FXObject *, FXSelector, void *)
 
long onCmdSelectTag (FXObject *, FXSelector, void *)
 Called when the user select an elementin ComboBox. More...
 

Private Attributes

GNETagProperties myCurrentTagProperties
 current tag properties More...
 
GNEFrame * myFrameParent
 pointer to Frame Parent More...
 
GNETagProperties myInvalidTagProperty
 dummy tag properties used if user select an invalid tag More...
 
std::vector< std::pair< SumoXMLTag, const std::string > > myListOfTags
 list of tags that will be shown in Match Box More...
 
std::vector< std::pair< std::string, GNETagProperties::TagType > > myListOfTagTypes
 list of tags types that will be shown in Match Box More...
 
FXComboBox * myTagsMatchBox
 comboBox with the list of tags More...
 
FXComboBox * myTagTypesMatchBox
 comboBox with tag type More...
 

Detailed Description

Definition at line 43 of file GNEFrameModuls.h.

Constructor & Destructor Documentation

◆ TagSelector()

GNEFrameModuls::TagSelector::TagSelector ( GNEFrame *  frameParent,
GNETagProperties::TagType  type,
bool  onlyDrawables = true 
)

◆ ~TagSelector()

GNEFrameModuls::TagSelector::~TagSelector ( )

destructor

Definition at line 182 of file GNEFrameModuls.cpp.

Member Function Documentation

◆ getCurrentTagProperties()

◆ hideTagSelector()

void GNEFrameModuls::TagSelector::hideTagSelector ( )

hide item selector

Definition at line 192 of file GNEFrameModuls.cpp.

Referenced by GNEPersonFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), and GNEPersonFrame::tagSelected().

Here is the caller graph for this function:

◆ onCmdSelectTag()

long GNEFrameModuls::TagSelector::onCmdSelectTag ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user select an elementin ComboBox.

Definition at line 290 of file GNEFrameModuls.cpp.

References GNEAttributeCarrier::getTagProperties(), and WRITE_DEBUG.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSelectTagType()

long GNEFrameModuls::TagSelector::onCmdSelectTagType ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 252 of file GNEFrameModuls.cpp.

References GNEAttributeCarrier::getAllowedTagsByCategory(), and WRITE_DEBUG.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ refreshTagProperties()

void GNEFrameModuls::TagSelector::refreshTagProperties ( )

due myCurrentTagProperties is a Reference, we need to refresh it when frameParent is show

Definition at line 246 of file GNEFrameModuls.cpp.

Referenced by GNEPersonFrame::show(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), GNEVehicleFrame::show(), GNEAdditionalFrame::show(), and GNEPolygonFrame::show().

Here is the caller graph for this function:

◆ setCurrentTag()

void GNEFrameModuls::TagSelector::setCurrentTag ( SumoXMLTag  newTag)

set current type manually

Definition at line 229 of file GNEFrameModuls.cpp.

References GNEAttributeCarrier::getTagProperties(), and toString().

Referenced by GNEAdditionalFrame::GNEAdditionalFrame(), GNEPersonFrame::GNEPersonFrame(), GNEPolygonFrame::GNEPolygonFrame(), and GNEVehicleFrame::GNEVehicleFrame().

Here is the caller graph for this function:

◆ setCurrentTagType()

void GNEFrameModuls::TagSelector::setCurrentTagType ( GNETagProperties::TagType  tagType)

set current type manually

Definition at line 204 of file GNEFrameModuls.cpp.

References GNEAttributeCarrier::getAllowedTagsByCategory(), and toString().

Referenced by GNEPersonPlanFrame::GNEPersonPlanFrame().

Here is the caller graph for this function:

◆ showTagSelector()

void GNEFrameModuls::TagSelector::showTagSelector ( )

show item selector

Definition at line 186 of file GNEFrameModuls.cpp.

Referenced by GNEPersonFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEStopFrame::show(), and GNEPersonFrame::tagSelected().

Here is the caller graph for this function:

Field Documentation

◆ myCurrentTagProperties

GNETagProperties GNEFrameModuls::TagSelector::myCurrentTagProperties
private

current tag properties

Definition at line 95 of file GNEFrameModuls.h.

◆ myFrameParent

GNEFrame* GNEFrameModuls::TagSelector::myFrameParent
private

pointer to Frame Parent

Definition at line 86 of file GNEFrameModuls.h.

◆ myInvalidTagProperty

GNETagProperties GNEFrameModuls::TagSelector::myInvalidTagProperty
private

dummy tag properties used if user select an invalid tag

Definition at line 104 of file GNEFrameModuls.h.

◆ myListOfTags

std::vector<std::pair<SumoXMLTag, const std::string> > GNEFrameModuls::TagSelector::myListOfTags
private

list of tags that will be shown in Match Box

Definition at line 101 of file GNEFrameModuls.h.

◆ myListOfTagTypes

std::vector<std::pair<std::string, GNETagProperties::TagType> > GNEFrameModuls::TagSelector::myListOfTagTypes
private

list of tags types that will be shown in Match Box

Definition at line 98 of file GNEFrameModuls.h.

◆ myTagsMatchBox

FXComboBox* GNEFrameModuls::TagSelector::myTagsMatchBox
private

comboBox with the list of tags

Definition at line 92 of file GNEFrameModuls.h.

◆ myTagTypesMatchBox

FXComboBox* GNEFrameModuls::TagSelector::myTagTypesMatchBox
private

comboBox with tag type

Definition at line 89 of file GNEFrameModuls.h.


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