![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameModuls.h>
Public Member Functions | |
| const GNETagProperties & | 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 (GNETagProperties::TagType tagType) |
| set current type manually More... | |
| void | showTagSelector () |
| show item selector More... | |
| TagSelector (GNEFrame *frameParent, GNETagProperties::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 | |
| GNETagProperties | myCurrentTagProperties |
| current tag properties More... | |
| GNEFrame * | myFrameParent |
| pointer to Frame Parent More... | |
| GNETagProperties | myInvalidTagProperty |
| dummy tag properties used if user select an invalid tag More... | |
| std::vector< std::pair< SumoXMLTag, const std::string > > | myListOfTags |
| list of tags that will be shown in Match Box More... | |
| std::vector< std::pair< std::string, GNETagProperties::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 43 of file GNEFrameModuls.h.
| GNEFrameModuls::TagSelector::TagSelector | ( | GNEFrame * | frameParent, |
| GNETagProperties::TagType | type, | ||
| bool | onlyDrawables = true |
||
| ) |
FOX-declaration.
constructor
Definition at line 102 of file GNEFrameModuls.cpp.
References GNEAttributeCarrier::getAllowedTagsByCategory(), GUIDesignComboBox, GUIDesignComboBoxNCol, MID_GNE_TAG_SELECTED, and MID_GNE_TAGTYPE_SELECTED.
| GNEFrameModuls::TagSelector::~TagSelector | ( | ) |
destructor
Definition at line 182 of file GNEFrameModuls.cpp.
| const GNETagProperties & GNEFrameModuls::TagSelector::getCurrentTagProperties | ( | ) | const |
get current type tag
Definition at line 198 of file GNEFrameModuls.cpp.
Referenced by GNEAdditionalFrame::addAdditional(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEPersonFrame::buildPerson(), GNEAdditionalFrame::buildSlaveAdditional(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNEVehicleFrame::createPath(), GNEPersonFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEAdditionalFrame::generateID(), GNEPolygonFrame::processClick(), GNEPersonFrame::show(), GNEPersonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEVehicleFrame::tagSelected(), GNEAdditionalFrame::tagSelected(), and GNEPolygonFrame::tagSelected().
| void GNEFrameModuls::TagSelector::hideTagSelector | ( | ) |
hide item selector
Definition at line 192 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 290 of file GNEFrameModuls.cpp.
References GNEAttributeCarrier::getTagProperties(), and WRITE_DEBUG.
Referenced by FXDEFMAP().
| long GNEFrameModuls::TagSelector::onCmdSelectTagType | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 252 of file GNEFrameModuls.cpp.
References GNEAttributeCarrier::getAllowedTagsByCategory(), 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 246 of file GNEFrameModuls.cpp.
Referenced by GNEPersonFrame::show(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), GNEVehicleFrame::show(), GNEAdditionalFrame::show(), and GNEPolygonFrame::show().
| void GNEFrameModuls::TagSelector::setCurrentTag | ( | SumoXMLTag | newTag | ) |
set current type manually
Definition at line 229 of file GNEFrameModuls.cpp.
References GNEAttributeCarrier::getTagProperties(), and toString().
Referenced by GNEAdditionalFrame::GNEAdditionalFrame(), GNEPersonFrame::GNEPersonFrame(), GNEPolygonFrame::GNEPolygonFrame(), and GNEVehicleFrame::GNEVehicleFrame().
| void GNEFrameModuls::TagSelector::setCurrentTagType | ( | GNETagProperties::TagType | tagType | ) |
set current type manually
Definition at line 204 of file GNEFrameModuls.cpp.
References GNEAttributeCarrier::getAllowedTagsByCategory(), and toString().
Referenced by GNEPersonPlanFrame::GNEPersonPlanFrame().
| void GNEFrameModuls::TagSelector::showTagSelector | ( | ) |
show item selector
Definition at line 186 of file GNEFrameModuls.cpp.
Referenced by GNEPersonFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEStopFrame::show(), and GNEPersonFrame::tagSelected().
|
private |
current tag properties
Definition at line 95 of file GNEFrameModuls.h.
|
private |
pointer to Frame Parent
Definition at line 86 of file GNEFrameModuls.h.
|
private |
dummy tag properties used if user select an invalid tag
Definition at line 104 of file GNEFrameModuls.h.
|
private |
list of tags that will be shown in Match Box
Definition at line 101 of file GNEFrameModuls.h.
|
private |
list of tags types that will be shown in Match Box
Definition at line 98 of file GNEFrameModuls.h.
|
private |
comboBox with the list of tags
Definition at line 92 of file GNEFrameModuls.h.
|
private |
comboBox with tag type
Definition at line 89 of file GNEFrameModuls.h.