![]() |
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... | |
Protected Member Functions | |
TagSelector () | |
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... | |
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 45 of file GNEFrameModuls.h.
GNEFrameModuls::TagSelector::TagSelector | ( | GNEFrame * | frameParent, |
GNEAttributeCarrier::TagType | type, | ||
bool | onlyDrawables = true |
||
) |
FOX-declaration.
constructor
Definition at line 98 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 179 of file GNEFrameModuls.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 85 of file GNEFrameModuls.h.
const GNEAttributeCarrier::TagProperties & GNEFrameModuls::TagSelector::getCurrentTagProperties | ( | ) | const |
get current type tag
Definition at line 195 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(), GNEVehicleFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEPersonFrame::edgePathCreated(), GNEVehicleFrame::edgePathCreated(), GNEAdditionalFrame::generateID(), GNEPersonPlanFrame::personPlanCreated(), GNEPolygonFrame::processClick(), GNEPersonFrame::show(), GNEPersonFrame::tagSelected(), GNEVehicleFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEPolygonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), and GNEAdditionalFrame::tagSelected().
void GNEFrameModuls::TagSelector::hideTagSelector | ( | ) |
hide item selector
Definition at line 189 of file GNEFrameModuls.cpp.
Referenced by GNEPersonFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEStopFrame::show(), GNEPersonPlanFrame::show(), and GNEPersonFrame::tagSelected().
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.
long GNEFrameModuls::TagSelector::onCmdSelectTagType | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 249 of file GNEFrameModuls.cpp.
References GNEAttributeCarrier::allowedTagsByCategory(), toString(), and WRITE_DEBUG.
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().
void GNEFrameModuls::TagSelector::setCurrentTag | ( | SumoXMLTag | newTag | ) |
set current type manually
Definition at line 226 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 201 of file GNEFrameModuls.cpp.
References GNEAttributeCarrier::allowedTagsByCategory(), and toString().
Referenced by GNEPersonPlanFrame::GNEPersonPlanFrame().
void GNEFrameModuls::TagSelector::showTagSelector | ( | ) |
show item selector
Definition at line 183 of file GNEFrameModuls.cpp.
Referenced by GNEPersonFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEStopFrame::show(), and GNEPersonFrame::tagSelected().
|
private |
current tag properties
Definition at line 98 of file GNEFrameModuls.h.
|
private |
pointer to Frame Parent
Definition at line 89 of file GNEFrameModuls.h.
|
private |
dummy tag properties used if user select an invalid tag
Definition at line 107 of file GNEFrameModuls.h.
|
private |
list of tags that will be shown in Match Box
Definition at line 104 of file GNEFrameModuls.h.
|
private |
list of tags types that will be shown in Match Box
Definition at line 101 of file GNEFrameModuls.h.
|
private |
comboBox with the list of tags
Definition at line 95 of file GNEFrameModuls.h.
|
private |
comboBox with tag type
Definition at line 92 of file GNEFrameModuls.h.