![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEFrame.h>


Public Member Functions | |
| GEOAttributes (GNEFrame *frameParent) | |
| FOX-declaration. More... | |
| std::map< SumoXMLAttr, std::string > | getGEOAttributes () const |
| get GEO Attributes More... | |
| void | hideGEOAttributes () |
| hide GEOAttributes More... | |
| void | refreshGEOAttributes () |
| refresh TextFields with the new GEO Attributes More... | |
| void | showGEOAttributes (const std::vector< GNEAttributeCarrier *> &ACs) |
| show GEOAttribute for the current AttributeCarriers More... | |
| ~GEOAttributes () | |
| destructor More... | |
FOX-callbacks | |
| long | onCmdSetGEOAttribute (FXObject *, FXSelector, void *) |
| Called when user change the current GEO Attribute. More... | |
| long | onCmdUseGEOParameters (FXObject *, FXSelector, void *) |
| Called when user enters a new length. More... | |
| long | onCmdHelp (FXObject *, FXSelector, void *) |
| Called when user press the help button. More... | |
Protected Member Functions | |
| GEOAttributes () | |
| FOX needs this. More... | |
Private Attributes | |
| std::vector< GNEAttributeCarrier * > | myACs |
| current edited ACs More... | |
| GNEFrame * | myFrameParent |
| current GNEFrame parent More... | |
| SumoXMLAttr | myGEOAttribute |
| type of GEO Attribute More... | |
| FXHorizontalFrame * | myGEOAttributeFrame |
| horizontal frame for GEOAttribute More... | |
| FXLabel * | myGEOAttributeLabel |
| Label for GEOAttribute. More... | |
| FXTextField * | myGEOAttributeTextField |
| textField for GEOAttribute More... | |
| FXButton * | myHelpButton |
| button for help More... | |
| FXCheckButton * | myUseGEOCheckButton |
| checkBox for use GEO More... | |
| FXHorizontalFrame * | myUseGEOFrame |
| horizontal frame for use GEO More... | |
| FXLabel * | myUseGEOLabel |
| Label for use GEO. More... | |
Definition at line 137 of file GNEFrame.h.
| GNEFrame::GEOAttributes::GEOAttributes | ( | GNEFrame * | frameParent | ) |
FOX-declaration.
constructor
Definition at line 181 of file GNEFrame.cpp.
References GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonRectangular, GUIDesignCheckButtonAttribute, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldNCol, MID_GNEFRAME_GEOATTRIBUTE, MID_GNEFRAME_USEGEO, MID_HELP, myGEOAttributeFrame, myGEOAttributeLabel, myGEOAttributeTextField, myHelpButton, myUseGEOCheckButton, myUseGEOFrame, and myUseGEOLabel.
| GNEFrame::GEOAttributes::~GEOAttributes | ( | ) |
destructor
Definition at line 200 of file GNEFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 175 of file GNEFrame.h.
| std::map< SumoXMLAttr, std::string > GNEFrame::GEOAttributes::getGEOAttributes | ( | ) | const |
get GEO Attributes
Definition at line 277 of file GNEFrame.cpp.
References myGEOAttribute, myGEOAttributeTextField, myUseGEOCheckButton, and SUMO_ATTR_GEO.
| void GNEFrame::GEOAttributes::hideGEOAttributes | ( | ) |
hide GEOAttributes
Definition at line 237 of file GNEFrame.cpp.
References myACs, myGEOAttribute, and SUMO_ATTR_NOTHING.
Referenced by GNEInspectorFrame::inspectMultisection(), and showGEOAttributes().
| long GNEFrame::GEOAttributes::onCmdHelp | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when user press the help button.
Definition at line 320 of file GNEFrame.cpp.
References GUIIconSubSys::getIcon(), GUIDesignButtonOK, GUIDesignDialogBox, GUIDesignLabelFrameInformation, and ICON_ACCEPT.
| long GNEFrame::GEOAttributes::onCmdSetGEOAttribute | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when user change the current GEO Attribute.
Definition at line 287 of file GNEFrame.cpp.
References GNEViewParent::getInspectorFrame(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myACs, myFrameParent, myGEOAttribute, myGEOAttributeTextField, GNEInspectorFrame::refreshValues(), and WRITE_WARNING.
| long GNEFrame::GEOAttributes::onCmdUseGEOParameters | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when user enters a new length.
Definition at line 304 of file GNEFrame.cpp.
References GNEViewNet::getUndoList(), GNEFrame::getViewNet(), myACs, myFrameParent, myUseGEOCheckButton, and SUMO_ATTR_GEO.
| void GNEFrame::GEOAttributes::refreshGEOAttributes | ( | ) |
refresh TextFields with the new GEO Attributes
Definition at line 246 of file GNEFrame.cpp.
References myACs, myGEOAttribute, myGEOAttributeFrame, myGEOAttributeTextField, myUseGEOCheckButton, and SUMO_ATTR_GEO.
Referenced by GNEInspectorFrame::AttributeInput::onCmdSetAttribute(), and showGEOAttributes().
| void GNEFrame::GEOAttributes::showGEOAttributes | ( | const std::vector< GNEAttributeCarrier *> & | ACs | ) |
show GEOAttribute for the current AttributeCarriers
Definition at line 204 of file GNEFrame.cpp.
References hideGEOAttributes(), myACs, myGEOAttribute, myGEOAttributeLabel, refreshGEOAttributes(), SUMO_ATTR_GEOPOSITION, SUMO_ATTR_GEOSHAPE, SUMO_TAG_POI, SUMO_TAG_POLY, and toString().
Referenced by GNEInspectorFrame::inspectMultisection().
|
private |
current edited ACs
Definition at line 185 of file GNEFrame.h.
Referenced by hideGEOAttributes(), onCmdSetGEOAttribute(), onCmdUseGEOParameters(), refreshGEOAttributes(), and showGEOAttributes().
|
private |
current GNEFrame parent
Definition at line 179 of file GNEFrame.h.
Referenced by onCmdSetGEOAttribute(), and onCmdUseGEOParameters().
|
private |
type of GEO Attribute
Definition at line 182 of file GNEFrame.h.
Referenced by getGEOAttributes(), hideGEOAttributes(), onCmdSetGEOAttribute(), refreshGEOAttributes(), and showGEOAttributes().
|
private |
horizontal frame for GEOAttribute
Definition at line 188 of file GNEFrame.h.
Referenced by GEOAttributes(), and refreshGEOAttributes().
|
private |
Label for GEOAttribute.
Definition at line 191 of file GNEFrame.h.
Referenced by GEOAttributes(), and showGEOAttributes().
|
private |
textField for GEOAttribute
Definition at line 194 of file GNEFrame.h.
Referenced by GEOAttributes(), getGEOAttributes(), onCmdSetGEOAttribute(), and refreshGEOAttributes().
|
private |
|
private |
checkBox for use GEO
Definition at line 203 of file GNEFrame.h.
Referenced by GEOAttributes(), getGEOAttributes(), onCmdUseGEOParameters(), and refreshGEOAttributes().
|
private |
horizontal frame for use GEO
Definition at line 197 of file GNEFrame.h.
Referenced by GEOAttributes().
|
private |