SUMO - Simulation of Urban MObility
GNEFrame::ItemSelector Class Reference

#include <GNEFrame.h>

Inheritance diagram for GNEFrame::ItemSelector:
Inheritance graph
Collaboration diagram for GNEFrame::ItemSelector:
Collaboration graph

Public Member Functions

const GNEAttributeCarrier::TagPropertiesgetCurrentTagProperties () const
 get current type tag More...
 
 ItemSelector (GNEFrame *frameParent, GNEAttributeCarrier::TAGProperty type, bool onlyDrawables=true)
 FOX-declaration. More...
 
void refreshTagProperties ()
 due myCurrentTagProperties is a Reference, we need to refresh it when frameParent is show More...
 
void setCurrentTypeTag (SumoXMLTag typeTag)
 set current type manually More...
 
 ~ItemSelector ()
 destructor More...
 
FOX-callbacks

Called when the user select another element in ComboBox

long onCmdSelectItem (FXObject *, FXSelector, void *)
 

Protected Member Functions

 ItemSelector ()
 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...
 
FXComboBox * myTypeMatchBox
 comboBox with the list of elements type More...
 

Detailed Description

Definition at line 46 of file GNEFrame.h.

Constructor & Destructor Documentation

◆ ItemSelector() [1/2]

GNEFrame::ItemSelector::ItemSelector ( GNEFrame frameParent,
GNEAttributeCarrier::TAGProperty  type,
bool  onlyDrawables = true 
)

FOX-declaration.

constructor

Definition at line 109 of file GNEFrame.cpp.

References GNEAttributeCarrier::allowedTagsByCategory(), GUIDesignComboBox, GUIDesignComboBoxNCol, MID_GNE_SET_TYPE, and toString().

◆ ~ItemSelector()

GNEFrame::ItemSelector::~ItemSelector ( )

destructor

Definition at line 145 of file GNEFrame.cpp.

◆ ItemSelector() [2/2]

GNEFrame::ItemSelector::ItemSelector ( )
inlineprotected

FOX needs this.

Definition at line 74 of file GNEFrame.h.

Member Function Documentation

◆ getCurrentTagProperties()

◆ onCmdSelectItem()

long GNEFrame::ItemSelector::onCmdSelectItem ( FXObject *  ,
FXSelector  ,
void *   
)

◆ refreshTagProperties()

void GNEFrame::ItemSelector::refreshTagProperties ( )

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

Definition at line 176 of file GNEFrame.cpp.

References onCmdSelectItem().

Referenced by GNEPolygonFrame::show(), and GNEAdditionalFrame::show().

◆ setCurrentTypeTag()

Field Documentation

◆ myCurrentTagProperties

GNEAttributeCarrier::TagProperties GNEFrame::ItemSelector::myCurrentTagProperties
private

current tag properties

Definition at line 84 of file GNEFrame.h.

Referenced by getCurrentTagProperties(), onCmdSelectItem(), and setCurrentTypeTag().

◆ myFrameParent

GNEFrame* GNEFrame::ItemSelector::myFrameParent
private

pointer to Frame Parent

Definition at line 78 of file GNEFrame.h.

Referenced by onCmdSelectItem(), and setCurrentTypeTag().

◆ myInvalidTagProperty

GNEAttributeCarrier::TagProperties GNEFrame::ItemSelector::myInvalidTagProperty
private

dummy tag properties used if user select an invalid tag

Definition at line 90 of file GNEFrame.h.

Referenced by onCmdSelectItem().

◆ myListOfTags

std::vector<SumoXMLTag> GNEFrame::ItemSelector::myListOfTags
private

list of tags that will be shown in Match Box

Definition at line 87 of file GNEFrame.h.

Referenced by onCmdSelectItem().

◆ myTypeMatchBox

FXComboBox* GNEFrame::ItemSelector::myTypeMatchBox
private

comboBox with the list of elements type

Definition at line 81 of file GNEFrame.h.

Referenced by onCmdSelectItem(), and setCurrentTypeTag().


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