![]() |
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... | |
GNEAttributeCarrier::TagProperties | getCurrentTagProperties () const |
get current edited Tag Properties More... | |
void | hideAttributesCreatorModul () |
hide group box More... | |
void | showAttributesCreatorModul (const GNEAttributeCarrier::TagProperties &myTagProperties) |
show AttributesCreator modul More... | |
void | showWarningMessage (std::string extra="") const |
show warning message with information about non-valid attributes More... | |
void | updateDisjointAttributes (AttributesCreatorRow *row) |
update disjoint attributes More... | |
~AttributesCreator () | |
destructor More... | |
FOX-callbacks | |
Called when help button is pressed | |
long | onCmdHelp (FXObject *, FXSelector, void *) |
Protected Member Functions | |
AttributesCreator () | |
FOX needs this. More... | |
Private Attributes | |
std::vector< AttributesCreatorRow * > | myAttributesCreatorRows |
vector with the AttributesCreatorRow More... | |
GNEFrame * | myFrameParent |
pointer to Frame Parent More... | |
FXButton * | myHelpButton |
help button More... | |
GNEAttributeCarrier::TagProperties | myTagProperties |
current edited Tag Properties More... | |
Friends | |
class | Row |
FOX-declaration. More... | |
Definition at line 157 of file GNEFrameAttributesModuls.h.
GNEFrameAttributesModuls::AttributesCreator::AttributesCreator | ( | GNEFrame * | frameParent | ) |
constructor
Definition at line 617 of file GNEFrameAttributesModuls.cpp.
References GUIDesignButtonRectangular, GNEAttributeCarrier::MAXNUMBEROFATTRIBUTES, MID_HELP, myAttributesCreatorRows, and myHelpButton.
GNEFrameAttributesModuls::AttributesCreator::~AttributesCreator | ( | ) |
destructor
Definition at line 627 of file GNEFrameAttributesModuls.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 200 of file GNEFrameAttributesModuls.h.
bool GNEFrameAttributesModuls::AttributesCreator::areValuesValid | ( | ) | const |
check if parameters of attributes are valid
Definition at line 725 of file GNEFrameAttributesModuls.cpp.
References myAttributesCreatorRows, and myTagProperties.
Referenced by GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEPersonFrame::buildPersonOverRoute(), GNEPersonFrame::buildPersonOverStop(), GNEPersonFrame::edgePathCreated(), GNEStopFrame::getStopParameter(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNERouteFrame::ConsecutiveEdges::onCmdCreateRoute(), GNERouteFrame::NonConsecutiveEdges::onCmdCreateRoute(), GNEPersonPlanFrame::personPlanCreated(), GNEPolygonFrame::processClick(), GNEPolygonFrame::shapeDrawed(), and GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector().
std::map< SumoXMLAttr, std::string > GNEFrameAttributesModuls::AttributesCreator::getAttributesAndValues | ( | bool | includeAll | ) | const |
get attributes and their values
Definition at line 668 of file GNEFrameAttributesModuls.cpp.
References myAttributesCreatorRows, and SUMO_ATTR_NOTHING.
Referenced by GNEAdditionalFrame::addAdditional(), GNEVehicleFrame::addVehicle(), GNEPersonFrame::buildPerson(), GNEPersonFrame::edgePathCreated(), GNEVehicleFrame::edgePathCreated(), GNEStopFrame::getStopParameter(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNERouteFrame::ConsecutiveEdges::onCmdCreateRoute(), GNERouteFrame::NonConsecutiveEdges::onCmdCreateRoute(), GNEPersonPlanFrame::personPlanCreated(), GNEPolygonFrame::processClick(), GNEPolygonFrame::shapeDrawed(), and GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector().
GNEAttributeCarrier::TagProperties GNEFrameAttributesModuls::AttributesCreator::getCurrentTagProperties | ( | ) | const |
get current edited Tag Properties
Definition at line 692 of file GNEFrameAttributesModuls.cpp.
References myTagProperties.
Referenced by GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute().
void GNEFrameAttributesModuls::AttributesCreator::hideAttributesCreatorModul | ( | ) |
hide group box
Definition at line 662 of file GNEFrameAttributesModuls.cpp.
Referenced by GNEPersonFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNERouteFrame::RouteModeSelector::onCmdSelectRouteMode(), GNERouteFrame::RouteModeSelector::onCmdSelectVClass(), GNERouteFrame::RouteModeSelector::setCurrentRouteMode(), GNEStopFrame::show(), GNEPersonPlanFrame::show(), GNEPersonFrame::tagSelected(), GNEVehicleFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEPolygonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), and GNEAdditionalFrame::tagSelected().
long GNEFrameAttributesModuls::AttributesCreator::onCmdHelp | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 829 of file GNEFrameAttributesModuls.cpp.
References myFrameParent, myTagProperties, and GNEFrame::openHelpAttributesDialog().
void GNEFrameAttributesModuls::AttributesCreator::showAttributesCreatorModul | ( | const GNEAttributeCarrier::TagProperties & | myTagProperties | ) |
show AttributesCreator modul
Definition at line 631 of file GNEFrameAttributesModuls.cpp.
References myAttributesCreatorRows, myHelpButton, myTagProperties, and updateDisjointAttributes().
Referenced by GNEPersonFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEStopFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNERouteFrame::RouteModeSelector::onCmdSelectRouteMode(), GNERouteFrame::RouteModeSelector::onCmdSelectVClass(), GNERouteFrame::RouteModeSelector::setCurrentRouteMode(), GNEPersonFrame::tagSelected(), GNEStopFrame::tagSelected(), GNEPolygonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), and GNEAdditionalFrame::tagSelected().
void GNEFrameAttributesModuls::AttributesCreator::showWarningMessage | ( | std::string | extra = "" | ) | const |
show warning message with information about non-valid attributes
Definition at line 698 of file GNEFrameAttributesModuls.cpp.
References myAttributesCreatorRows, myFrameParent, myTagProperties, GNEFrame::myViewNet, GNEViewNet::setStatusBarText(), and WRITE_DEBUG.
Referenced by GNEVehicleFrame::addVehicle(), GNEAdditionalFrame::buildAdditionalCommonAttributes(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEAdditionalFrame::buildAdditionalWithParent(), GNEStopFrame::getStopParameter(), GNERouteFrame::ConsecutiveEdges::onCmdCreateRoute(), GNERouteFrame::NonConsecutiveEdges::onCmdCreateRoute(), GNEPolygonFrame::processClick(), GNEPolygonFrame::shapeDrawed(), and GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector().
void GNEFrameAttributesModuls::AttributesCreator::updateDisjointAttributes | ( | AttributesCreatorRow * | row | ) |
update disjoint attributes
Definition at line 738 of file GNEFrameAttributesModuls.cpp.
References GNEAttributeCarrier::AttributeProperties::getAttr(), GNEAttributeCarrier::TagProperties::getAttributeProperties(), GNEFrameAttributesModuls::AttributesCreatorRow::getAttributeRadioButtonCheck(), GNEFrameAttributesModuls::AttributesCreatorRow::getAttrProperties(), GNEAttributeCarrier::AttributeProperties::getPositionListed(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::TagProperties::isPersonStop(), GNEAttributeCarrier::TagProperties::isStop(), myAttributesCreatorRows, myTagProperties, GNEFrameAttributesModuls::AttributesCreatorRow::setAttributeRadioButtonCheck(), SUMO_ATTR_CONTAINER_TRIGGERED, SUMO_ATTR_END, SUMO_ATTR_EXPECTED, SUMO_ATTR_EXPECTED_CONTAINERS, SUMO_ATTR_NUMBER, SUMO_ATTR_PERIOD, SUMO_ATTR_PROB, SUMO_ATTR_TRIGGERED, SUMO_ATTR_VEHSPERHOUR, SUMO_TAG_FLOW, SUMO_TAG_PERSONFLOW, and SUMO_TAG_ROUTEFLOW.
Referenced by GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSelectRadioButton(), GNEFrameAttributesModuls::AttributesCreatorRow::onCmdSetAttribute(), and showAttributesCreatorModul().
|
friend |
FOX-declaration.
Definition at line 162 of file GNEFrameAttributesModuls.h.
|
private |
vector with the AttributesCreatorRow
Definition at line 210 of file GNEFrameAttributesModuls.h.
Referenced by areValuesValid(), AttributesCreator(), getAttributesAndValues(), showAttributesCreatorModul(), showWarningMessage(), and updateDisjointAttributes().
|
private |
pointer to Frame Parent
Definition at line 200 of file GNEFrameAttributesModuls.h.
Referenced by onCmdHelp(), and showWarningMessage().
|
private |
help button
Definition at line 213 of file GNEFrameAttributesModuls.h.
Referenced by AttributesCreator(), and showAttributesCreatorModul().
|
private |
current edited Tag Properties
Definition at line 207 of file GNEFrameAttributesModuls.h.
Referenced by areValuesValid(), getCurrentTagProperties(), onCmdHelp(), showAttributesCreatorModul(), showWarningMessage(), and updateDisjointAttributes().