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. | |
~GNEGeometryPointDialog () | |
destructor | |
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 | |
long | onCmdCancel (FXObject *sender, FXSelector sel, void *ptr) |
event after press cancel button | |
long | onCmdReset (FXObject *, FXSelector, void *) |
event after press cancel button | |
Protected Member Functions | |
GNEGeometryPointDialog () | |
FOX need this. | |
Protected Attributes | |
const bool | myGeo |
flag for geo | |
const Position | myOriginalPos |
original position (used for reset) | |
Position * | myPos = nullptr |
position to be edited | |
FXTextField * | myTextFieldLonLat = nullptr |
text field for lon, Lat | |
FXTextField * | myTextFieldXY = nullptr |
text field for X, Y | |
GNEViewNet * | myViewNet |
viewNet | |
Private Member Functions | |
GNEGeometryPointDialog (const GNEGeometryPointDialog &)=delete | |
Invalidated copy constructor. | |
GNEGeometryPointDialog & | operator= (const GNEGeometryPointDialog &)=delete |
Invalidated assignment operator. | |
Private Attributes | |
FXButton * | myAcceptButton = nullptr |
accept button | |
FXButton * | myCancelButton = nullptr |
cancel button | |
FXButton * | myResetButton = nullptr |
cancel button | |
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, GUIDesigns::buildFXButton(), CANCEL, GeoConvHelper::cartesian2geo(), GeoConvHelper::getFinal(), GUIIconSubSys::getIcon(), gPrecisionGeo, GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonCustomWidth, GUIDesignHorizontalFrame, GUIDesignLabelThickedFixed, GUIDesignTextField, GUIDesignTextFieldNCol, MID_GNE_BUTTON_ACCEPT, MID_GNE_BUTTON_CANCEL, MID_GNE_BUTTON_RESET, MID_GNE_SET_ATTRIBUTE, RESET, TL, 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.