![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameAttributesModuls.h>
Public Member Functions | |
bool | areValuesValid () const |
check if parameters of attributes are valid More... | |
AttributesCreator (GNEFrame *frameParent) | |
constructor More... | |
std::map< SumoXMLAttr, std::string > | getAttributesAndValues (bool includeAll) const |
get attributes and their values More... | |
GNETagProperties | getCurrentTagProperties () const |
get current edited Tag Properties More... | |
GNEFrame * | getFrameParent () const |
return frame parent More... | |
void | hideAttributesCreatorModul () |
hide group box More... | |
void | refreshRows () |
refresh rows (called after creating an element) More... | |
void | showAttributesCreatorModul (const GNETagProperties &tagProperties, const std::vector< SumoXMLAttr > &hiddenAttributes) |
show AttributesCreator modul More... | |
void | showWarningMessage (std::string extra="") const |
show warning message with information about non-valid attributes More... | |
~AttributesCreator () | |
destructor More... | |
FOX-callbacks | |
Called when help button is pressed | |
long | onCmdHelp (FXObject *, FXSelector, void *) |
Protected Member Functions | |
FOX_CONSTRUCTOR (AttributesCreator) | |
Private Attributes | |
AttributesCreatorFlow * | myAttributesCreatorFlow = nullptr |
pointer to myAttributesCreatorFlow More... | |
std::vector< AttributesCreatorRow * > | myAttributesCreatorRows |
vector with the AttributesCreatorRow More... | |
GNEFrame * | myFrameParent = nullptr |
pointer to Frame Parent More... | |
FXButton * | myHelpButton = nullptr |
help button More... | |
GNETagProperties | myTagProperties |
current edited Tag Properties More... | |
Friends | |
class | Row |
FOX-declaration. More... | |
Definition at line 148 of file GNEFrameAttributesModuls.h.
GNEFrameAttributesModuls::AttributesCreator::AttributesCreator | ( | GNEFrame * | frameParent | ) |
constructor
Definition at line 592 of file GNEFrameAttributesModuls.cpp.
References GUIDesignButtonRectangular, GNEAttributeCarrier::MAXNUMBEROFATTRIBUTES, MID_HELP, myAttributesCreatorFlow, myAttributesCreatorRows, and myHelpButton.
GNEFrameAttributesModuls::AttributesCreator::~AttributesCreator | ( | ) |
destructor
Definition at line 604 of file GNEFrameAttributesModuls.cpp.
bool GNEFrameAttributesModuls::AttributesCreator::areValuesValid | ( | ) | const |
check if parameters of attributes are valid
Definition at line 744 of file GNEFrameAttributesModuls.cpp.
Referenced by GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), GNEStopFrame::getStopParameter(), GNEPolygonFrame::processClick(), and GNEPolygonFrame::shapeDrawed().
|
protected |
std::map< SumoXMLAttr, std::string > GNEFrameAttributesModuls::AttributesCreator::getAttributesAndValues | ( | bool | includeAll | ) | const |
get attributes and their values
Definition at line 684 of file GNEFrameAttributesModuls.cpp.
References SUMO_ATTR_NOTHING.
Referenced by GNEAdditionalFrame::addAdditional(), GNEVehicleFrame::addVehicle(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonPlan(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNEStopFrame::getStopParameter(), GNEPolygonFrame::processClick(), and GNEPolygonFrame::shapeDrawed().
GNETagProperties GNEFrameAttributesModuls::AttributesCreator::getCurrentTagProperties | ( | ) | const |
get current edited Tag Properties
Definition at line 711 of file GNEFrameAttributesModuls.cpp.
GNEFrame * GNEFrameAttributesModuls::AttributesCreator::getFrameParent | ( | ) | const |
return frame parent
Definition at line 678 of file GNEFrameAttributesModuls.cpp.
void GNEFrameAttributesModuls::AttributesCreator::hideAttributesCreatorModul | ( | ) |
hide group box
Definition at line 669 of file GNEFrameAttributesModuls.cpp.
Referenced by GNEPersonFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), GNEPersonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEVehicleFrame::tagSelected(), GNEAdditionalFrame::tagSelected(), and GNEPolygonFrame::tagSelected().
long GNEFrameAttributesModuls::AttributesCreator::onCmdHelp | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 765 of file GNEFrameAttributesModuls.cpp.
Referenced by FXDEFMAP().
void GNEFrameAttributesModuls::AttributesCreator::refreshRows | ( | ) |
refresh rows (called after creating an element)
Definition at line 757 of file GNEFrameAttributesModuls.cpp.
References SUMO_ATTR_ID, and SUMO_TAG_VAPORIZER.
Referenced by GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEPersonFrame::buildPerson(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNEStopFrame::getStopParameter(), GNEPolygonFrame::processClick(), and GNEPolygonFrame::shapeDrawed().
void GNEFrameAttributesModuls::AttributesCreator::showAttributesCreatorModul | ( | const GNETagProperties & | tagProperties, |
const std::vector< SumoXMLAttr > & | hiddenAttributes | ||
) |
show AttributesCreator modul
tagProperties | GNETagProperties which contain all attributes |
hiddenAttributes | list of attributes contained in tagProperties but not shown |
Definition at line 608 of file GNEFrameAttributesModuls.cpp.
References DEMAND_VEHICLE, GNETagProperties::hasAttribute(), SUMO_ATTR_ID, SUMO_ATTR_PERSONSPERHOUR, SUMO_ATTR_TYPE, and SUMO_TAG_VAPORIZER.
Referenced by GNEPersonFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEPersonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEAdditionalFrame::tagSelected(), and GNEPolygonFrame::tagSelected().
void GNEFrameAttributesModuls::AttributesCreator::showWarningMessage | ( | std::string | extra = "" | ) | const |
show warning message with information about non-valid attributes
Definition at line 717 of file GNEFrameAttributesModuls.cpp.
References WRITE_DEBUG.
Referenced by GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEAdditionalFrame::buildSlaveAdditional(), GNERouteFrame::createPath(), GNEStopFrame::getStopParameter(), GNEPolygonFrame::processClick(), and GNEPolygonFrame::shapeDrawed().
|
friend |
FOX-declaration.
Definition at line 153 of file GNEFrameAttributesModuls.h.
|
private |
pointer to myAttributesCreatorFlow
Definition at line 203 of file GNEFrameAttributesModuls.h.
Referenced by AttributesCreator().
|
private |
vector with the AttributesCreatorRow
Definition at line 209 of file GNEFrameAttributesModuls.h.
Referenced by AttributesCreator().
|
private |
pointer to Frame Parent
Definition at line 200 of file GNEFrameAttributesModuls.h.
|
private |
help button
Definition at line 212 of file GNEFrameAttributesModuls.h.
Referenced by AttributesCreator().
|
private |
current edited Tag Properties
Definition at line 206 of file GNEFrameAttributesModuls.h.