![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Dialog to edit geometry points. More...
#include <GNEGeometryPointDialog.h>
Public Member Functions | |
| GNEGeometryPointDialog (GNEViewNet *viewNet, Position *pos) | |
| FOX-declaration abstract. More... | |
| ~GNEGeometryPointDialog () | |
| destructor More... | |
FOX-callbacks | |
event after change position in TextFields | |
| long | onCmdChangeGeometryPoint (FXObject *sender, FXSelector sel, void *ptr) |
| long | onCmdAccept (FXObject *sender, FXSelector sel, void *ptr) |
| event after press accept button More... | |
| long | onCmdCancel (FXObject *sender, FXSelector sel, void *ptr) |
| event after press cancel button More... | |
| long | onCmdReset (FXObject *, FXSelector, void *) |
| event after press cancel button More... | |
Protected Member Functions | |
| GNEGeometryPointDialog () | |
| FOX need this. More... | |
Protected Attributes | |
| const bool | myGeo |
| flag for geo More... | |
| const Position | myOriginalPos |
| original position (used for reset) More... | |
| Position * | myPos = nullptr |
| position to be edited More... | |
| FXTextField * | myTextFieldLonLat = nullptr |
| text field for lon, Lat More... | |
| FXTextField * | myTextFieldXY = nullptr |
| text field for X, Y More... | |
| GNEViewNet * | myViewNet |
| viewNet More... | |
Private Member Functions | |
| GNEGeometryPointDialog (const GNEGeometryPointDialog &)=delete | |
| Invalidated copy constructor. More... | |
| GNEGeometryPointDialog & | operator= (const GNEGeometryPointDialog &)=delete |
| Invalidated assignment operator. More... | |
Private Attributes | |
| FXButton * | myAcceptButton = nullptr |
| accept button More... | |
| FXButton * | myCancelButton = nullptr |
| cancel button More... | |
| FXButton * | myResetButton = nullptr |
| cancel button More... | |
Dialog to edit geometry points.
This is a modal dialog which blocks in its constructor so it is save to delete it directly after construction
Definition at line 44 of file GNEGeometryPointDialog.h.
| GNEGeometryPointDialog::GNEGeometryPointDialog | ( | GNEViewNet * | viewNet, |
| Position * | pos | ||
| ) |
FOX-declaration abstract.
constructor
Definition at line 47 of file GNEGeometryPointDialog.cpp.
References ACCEPT, CANCEL, GeoConvHelper::cartesian2geo(), GeoConvHelper::getFinal(), GUIIconSubSys::getIcon(), gPrecisionGeo, GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonCustomWidth, GUIDesignHorizontalFrame, GUIDesignLabelThick75, GUIDesignTextField, GUIDesignTextFieldNCol, MID_GNE_BUTTON_ACCEPT, MID_GNE_BUTTON_CANCEL, MID_GNE_BUTTON_RESET, MID_GNE_SET_ATTRIBUTE, RESET, and toString().
| GNEGeometryPointDialog::~GNEGeometryPointDialog | ( | ) |
destructor
Definition at line 88 of file GNEGeometryPointDialog.cpp.
|
protected |
FOX need this.
Definition at line 182 of file GNEGeometryPointDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
| long GNEGeometryPointDialog::onCmdAccept | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
event after press accept button
Definition at line 142 of file GNEGeometryPointDialog.cpp.
Referenced by FXDEFMAP().
| long GNEGeometryPointDialog::onCmdCancel | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
event after press cancel button
Definition at line 150 of file GNEGeometryPointDialog.cpp.
References myOriginalPos, and myPos.
Referenced by FXDEFMAP().
| long GNEGeometryPointDialog::onCmdChangeGeometryPoint | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 95 of file GNEGeometryPointDialog.cpp.
References GeoConvHelper::cartesian2geo(), GeoConvHelper::getFinal(), myGeo, myPos, myTextFieldLonLat, myTextFieldXY, toString(), and GeoConvHelper::x2cartesian_const().
Referenced by FXDEFMAP().
| long GNEGeometryPointDialog::onCmdReset | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
event after press cancel button
Definition at line 160 of file GNEGeometryPointDialog.cpp.
References GeoConvHelper::cartesian2geo(), GeoConvHelper::getFinal(), myGeo, myOriginalPos, myPos, myTextFieldLonLat, myTextFieldXY, and toString().
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
|
private |
accept button
Definition at line 95 of file GNEGeometryPointDialog.h.
|
private |
cancel button
Definition at line 98 of file GNEGeometryPointDialog.h.
|
protected |
flag for geo
Definition at line 91 of file GNEGeometryPointDialog.h.
Referenced by onCmdChangeGeometryPoint(), and onCmdReset().
|
protected |
original position (used for reset)
Definition at line 88 of file GNEGeometryPointDialog.h.
Referenced by onCmdCancel(), and onCmdReset().
|
protected |
position to be edited
Definition at line 85 of file GNEGeometryPointDialog.h.
Referenced by onCmdCancel(), onCmdChangeGeometryPoint(), and onCmdReset().
|
private |
cancel button
Definition at line 101 of file GNEGeometryPointDialog.h.
|
protected |
text field for lon, Lat
Definition at line 82 of file GNEGeometryPointDialog.h.
Referenced by onCmdChangeGeometryPoint(), and onCmdReset().
|
protected |
text field for X, Y
Definition at line 79 of file GNEGeometryPointDialog.h.
Referenced by onCmdChangeGeometryPoint(), and onCmdReset().
|
protected |
viewNet
Definition at line 76 of file GNEGeometryPointDialog.h.