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

#include <GNEFrameModuls.h>

Inheritance diagram for GNEFrameModuls::TagSelector:
Collaboration diagram for GNEFrameModuls::TagSelector:

Public Member Functions

const GNEAttributeCarrier::TagPropertiesgetCurrentTagProperties () 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 (GNEAttributeCarrier::TagType tagType)
 set current type manually More...
 
void showTagSelector ()
 show item selector More...
 
 TagSelector (GNEFrame *frameParent, GNEAttributeCarrier::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...
 

Protected Member Functions

 TagSelector ()
 FOX needs this. More...
 

Private Attributes

GNEAttributeCarrier::TagProperties myCurrentTagProperties
 current tag properties More...
 
GNEFramemyFrameParent
 pointer to Frame Parent More...
 
GNEAttributeCarrier::TagProperties myInvalidTagProperty
 dummy tag properties used if user select an invalid tag More...
 
std::vector< SumoXMLTagmyListOfTags
 list of tags that will be shown in Match Box More...
 
std::vector< std::pair< std::string, GNEAttributeCarrier::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 45 of file GNEFrameModuls.h.

Constructor & Destructor Documentation

◆ TagSelector() [1/2]

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

◆ ~TagSelector()

GNEFrameModuls::TagSelector::~TagSelector ( )

destructor

Definition at line 179 of file GNEFrameModuls.cpp.

◆ TagSelector() [2/2]

GNEFrameModuls::TagSelector::TagSelector ( )
inlineprotected

FOX needs this.

Definition at line 85 of file GNEFrameModuls.h.

Member Function Documentation

◆ getCurrentTagProperties()

◆ hideTagSelector()

◆ onCmdSelectTag()

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

Called when the user select an elementin ComboBox.

Definition at line 287 of file GNEFrameModuls.cpp.

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

◆ onCmdSelectTagType()

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

◆ refreshTagProperties()

void GNEFrameModuls::TagSelector::refreshTagProperties ( )

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

Definition at line 243 of file GNEFrameModuls.cpp.

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

◆ setCurrentTag()

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

◆ setCurrentTagType()

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

set current type manually

Definition at line 201 of file GNEFrameModuls.cpp.

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

Referenced by GNEPersonPlanFrame::GNEPersonPlanFrame().

◆ showTagSelector()

void GNEFrameModuls::TagSelector::showTagSelector ( )

Field Documentation

◆ myCurrentTagProperties

GNEAttributeCarrier::TagProperties GNEFrameModuls::TagSelector::myCurrentTagProperties
private

current tag properties

Definition at line 98 of file GNEFrameModuls.h.

◆ myFrameParent

GNEFrame* GNEFrameModuls::TagSelector::myFrameParent
private

pointer to Frame Parent

Definition at line 89 of file GNEFrameModuls.h.

◆ myInvalidTagProperty

GNEAttributeCarrier::TagProperties GNEFrameModuls::TagSelector::myInvalidTagProperty
private

dummy tag properties used if user select an invalid tag

Definition at line 107 of file GNEFrameModuls.h.

◆ myListOfTags

std::vector<SumoXMLTag> GNEFrameModuls::TagSelector::myListOfTags
private

list of tags that will be shown in Match Box

Definition at line 104 of file GNEFrameModuls.h.

◆ myListOfTagTypes

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

list of tags types that will be shown in Match Box

Definition at line 101 of file GNEFrameModuls.h.

◆ myTagsMatchBox

FXComboBox* GNEFrameModuls::TagSelector::myTagsMatchBox
private

comboBox with the list of tags

Definition at line 95 of file GNEFrameModuls.h.

◆ myTagTypesMatchBox

FXComboBox* GNEFrameModuls::TagSelector::myTagTypesMatchBox
private

comboBox with tag type

Definition at line 92 of file GNEFrameModuls.h.


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