![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEFrame.h>
Public Member Functions | |
const GNEAttributeCarrier::TagProperties & | getCurrentTagProperties () 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... | |
GNEFrame * | myFrameParent |
pointer to Frame Parent More... | |
GNEAttributeCarrier::TagProperties | myInvalidTagProperty |
dummy tag properties used if user select an invalid tag More... | |
std::vector< SumoXMLTag > | myListOfTags |
list of tags that will be shown in Match Box More... | |
FXComboBox * | myTypeMatchBox |
comboBox with the list of elements type More... | |
Definition at line 46 of file GNEFrame.h.
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().
GNEFrame::ItemSelector::~ItemSelector | ( | ) |
destructor
Definition at line 145 of file GNEFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 74 of file GNEFrame.h.
const GNEAttributeCarrier::TagProperties & GNEFrame::ItemSelector::getCurrentTagProperties | ( | ) | const |
get current type tag
Definition at line 149 of file GNEFrame.cpp.
References myCurrentTagProperties.
Referenced by GNEAdditionalFrame::addAdditional(), GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEAdditionalFrame::buildAdditionalWithParent(), GNEPolygonFrame::enableModuls(), GNEAdditionalFrame::generateID(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNEPolygonFrame::processClick(), and GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector().
long GNEFrame::ItemSelector::onCmdSelectItem | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 183 of file GNEFrame.cpp.
References GNEFrame::disableModuls(), GNEFrame::enableModuls(), GNEAttributeCarrier::getTagProperties(), myCurrentTagProperties, myFrameParent, myInvalidTagProperty, myListOfTags, myTypeMatchBox, toString(), and WRITE_DEBUG.
Referenced by 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().
void GNEFrame::ItemSelector::setCurrentTypeTag | ( | SumoXMLTag | typeTag | ) |
set current type manually
Definition at line 155 of file GNEFrame.cpp.
References GNEFrame::disableModuls(), GNEFrame::enableModuls(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperties(), myCurrentTagProperties, myFrameParent, myTypeMatchBox, SUMO_TAG_NOTHING, and toString().
Referenced by GNEAdditionalFrame::GNEAdditionalFrame(), and GNEPolygonFrame::GNEPolygonFrame().
|
private |
current tag properties
Definition at line 84 of file GNEFrame.h.
Referenced by getCurrentTagProperties(), onCmdSelectItem(), and setCurrentTypeTag().
|
private |
pointer to Frame Parent
Definition at line 78 of file GNEFrame.h.
Referenced by onCmdSelectItem(), and setCurrentTypeTag().
|
private |
dummy tag properties used if user select an invalid tag
Definition at line 90 of file GNEFrame.h.
Referenced by onCmdSelectItem().
|
private |
list of tags that will be shown in Match Box
Definition at line 87 of file GNEFrame.h.
Referenced by onCmdSelectItem().
|
private |
comboBox with the list of elements type
Definition at line 81 of file GNEFrame.h.
Referenced by onCmdSelectItem(), and setCurrentTypeTag().