![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameModuls.h>
Public Member Functions | |
const GNEAttributeCarrier::TagProperties & | 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 (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... | |
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... | |
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... | |
Definition at line 44 of file GNEFrameModuls.h.
GNEFrameModuls::TagSelector::TagSelector | ( | GNEFrame * | frameParent, |
GNEAttributeCarrier::TagType | type, | ||
bool | onlyDrawables = true |
||
) |
FOX-declaration.
constructor
Definition at line 106 of file GNEFrameModuls.cpp.
References GNEAttributeCarrier::allowedTagsByCategory(), GUIDesignComboBox, GUIDesignComboBoxNCol, MID_GNE_TAG_SELECTED, MID_GNE_TAGTYPE_SELECTED, and toString().
GNEFrameModuls::TagSelector::~TagSelector | ( | ) |
destructor
Definition at line 187 of file GNEFrameModuls.cpp.
const GNEAttributeCarrier::TagProperties & GNEFrameModuls::TagSelector::getCurrentTagProperties | ( | ) | const |
get current type tag
Definition at line 203 of file GNEFrameModuls.cpp.
Referenced by GNEAdditionalFrame::addAdditional(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEAdditionalFrame::buildAdditionalWithParent(), GNEPersonFrame::buildPerson(), GNEPersonFrame::buildPersonOverRoute(), GNEPersonFrame::buildPersonOverStop(), GNEPersonFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEPersonFrame::edgePathCreated(), GNEVehicleFrame::edgePathCreated(), GNEAdditionalFrame::generateID(), GNEPersonPlanFrame::personPlanCreated(), GNEPolygonFrame::processClick(), GNEPersonFrame::show(), GNEAdditionalFrame::tagSelected(), GNEPersonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), GNEPolygonFrame::tagSelected(), GNEStopFrame::tagSelected(), and GNEVehicleFrame::tagSelected().
void GNEFrameModuls::TagSelector::hideTagSelector | ( | ) |
hide item selector
Definition at line 197 of file GNEFrameModuls.cpp.
Referenced by GNEPersonFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), and GNEPersonFrame::tagSelected().
long GNEFrameModuls::TagSelector::onCmdSelectTag | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user select an elementin ComboBox.
Definition at line 295 of file GNEFrameModuls.cpp.
References GNEAttributeCarrier::getTagProperties(), toString(), and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNEFrameModuls::TagSelector::onCmdSelectTagType | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 257 of file GNEFrameModuls.cpp.
References GNEAttributeCarrier::allowedTagsByCategory(), toString(), and WRITE_DEBUG.
Referenced by FXDEFMAP().
void GNEFrameModuls::TagSelector::refreshTagProperties | ( | ) |
due myCurrentTagProperties is a Reference, we need to refresh it when frameParent is show
Definition at line 251 of file GNEFrameModuls.cpp.
Referenced by GNEAdditionalFrame::show(), GNEPersonFrame::show(), GNEPersonPlanFrame::show(), GNEPolygonFrame::show(), GNEStopFrame::show(), and GNEVehicleFrame::show().
void GNEFrameModuls::TagSelector::setCurrentTag | ( | SumoXMLTag | newTag | ) |
set current type manually
Definition at line 234 of file GNEFrameModuls.cpp.
References GNEAttributeCarrier::getTagProperties(), and toString().
Referenced by GNEAdditionalFrame::GNEAdditionalFrame(), GNEPersonFrame::GNEPersonFrame(), GNEPolygonFrame::GNEPolygonFrame(), and GNEVehicleFrame::GNEVehicleFrame().
void GNEFrameModuls::TagSelector::setCurrentTagType | ( | GNEAttributeCarrier::TagType | tagType | ) |
set current type manually
Definition at line 209 of file GNEFrameModuls.cpp.
References GNEAttributeCarrier::allowedTagsByCategory(), and toString().
Referenced by GNEPersonPlanFrame::GNEPersonPlanFrame().
void GNEFrameModuls::TagSelector::showTagSelector | ( | ) |
show item selector
Definition at line 191 of file GNEFrameModuls.cpp.
Referenced by GNEPersonFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEStopFrame::show(), and GNEPersonFrame::tagSelected().
|
private |
current tag properties
Definition at line 96 of file GNEFrameModuls.h.
|
private |
pointer to Frame Parent
Definition at line 87 of file GNEFrameModuls.h.
|
private |
dummy tag properties used if user select an invalid tag
Definition at line 105 of file GNEFrameModuls.h.
|
private |
list of tags that will be shown in Match Box
Definition at line 102 of file GNEFrameModuls.h.
|
private |
list of tags types that will be shown in Match Box
Definition at line 99 of file GNEFrameModuls.h.
|
private |
comboBox with the list of tags
Definition at line 93 of file GNEFrameModuls.h.
|
private |
comboBox with tag type
Definition at line 90 of file GNEFrameModuls.h.