![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEAdditionalFrame.h>
Public Types | |
enum | additionalReferencePoint { GNE_ADDITIONALREFERENCEPOINT_LEFT, GNE_ADDITIONALREFERENCEPOINT_RIGHT, GNE_ADDITIONALREFERENCEPOINT_CENTER, GNE_ADDITIONALREFERENCEPOINT_INVALID } |
FOX-declaration. More... | |
Public Member Functions | |
additionalReferencePoint | getActualReferencePoint () |
get actual reference point More... | |
double | getLength () |
get value of length More... | |
void | hideLengthField () |
hide length field More... | |
void | hideReferencePoint () |
hide refence point comboBox More... | |
bool | isBlockEnabled () |
check if block is enabled More... | |
bool | isCurrentLengthValid () const |
check if current length is valid More... | |
bool | isForcePositionEnabled () |
check if force position is enabled More... | |
NeteditAttributes (FXComposite *parent) | |
constructor More... | |
void | showLengthField () |
show length field More... | |
void | showReferencePoint () |
show refence point comboBox More... | |
~NeteditAttributes () | |
destructor More... | |
FOX-callbacks | |
Called when user enters a new length | |
long | onCmdSetLength (FXObject *, FXSelector, void *) |
long | onCmdSelectReferencePoint (FXObject *, FXSelector, void *) |
Called when user enters another reference point. More... | |
long | onCmdSetBlocking (FXObject *, FXSelector, void *) |
Called when user changes the checkbox "set blocking". More... | |
long | onCmdSetForcePosition (FXObject *, FXSelector, void *) |
Called when user changes the checkbox "force position". More... | |
long | onCmdHelp (FXObject *, FXSelector, void *) |
Called when user press the help button. More... | |
Protected Member Functions | |
NeteditAttributes () | |
FOX needs this. More... | |
Private Attributes | |
FXButton * | helpReferencePoint |
Button for help about the reference point. More... | |
additionalReferencePoint | myActualAdditionalReferencePoint |
actual additional reference point selected in the match Box More... | |
FXLabel * | myBlockLabel |
Label for block movement. More... | |
FXCheckButton * | myBlockMovementCheckButton |
checkBox for block movement More... | |
bool | myCurrentLengthValid |
Flag to check if current length is valid. More... | |
FXCheckButton * | myForcePositionCheckButton |
checkBox for the option "force position" More... | |
FXLabel * | myForcePositionLabel |
Label for force position. More... | |
FXLabel * | myLengthLabel |
Label for length. More... | |
FXTextField * | myLengthTextField |
textField for length More... | |
FXComboBox * | myReferencePointMatchBox |
match box with the list of reference points More... | |
Definition at line 312 of file GNEAdditionalFrame.h.
FOX-declaration.
list of the reference points
Enumerator | |
---|---|
GNE_ADDITIONALREFERENCEPOINT_LEFT | |
GNE_ADDITIONALREFERENCEPOINT_RIGHT | |
GNE_ADDITIONALREFERENCEPOINT_CENTER | |
GNE_ADDITIONALREFERENCEPOINT_INVALID |
Definition at line 318 of file GNEAdditionalFrame.h.
GNEAdditionalFrame::NeteditAttributes::NeteditAttributes | ( | FXComposite * | parent | ) |
constructor
Definition at line 1230 of file GNEAdditionalFrame.cpp.
References GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonRectangular, GUIDesignCheckButtonAttribute, GUIDesignComboBox, GUIDesignComboBoxNCol, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldNCol, helpReferencePoint, MID_GNE_MODE_ADDITIONAL_CHANGEPARAMETER_TEXT, MID_GNE_MODE_ADDITIONAL_FORCEPOSITION, MID_GNE_MODE_ADDITIONAL_REFERENCEPOINT, MID_GNE_SET_BLOCKING, MID_HELP, myBlockLabel, myBlockMovementCheckButton, myForcePositionCheckButton, myForcePositionLabel, myLengthLabel, myLengthTextField, myReferencePointMatchBox, SUMO_ATTR_LENGTH, and toString().
GNEAdditionalFrame::NeteditAttributes::~NeteditAttributes | ( | ) |
destructor
Definition at line 1261 of file GNEAdditionalFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 378 of file GNEAdditionalFrame.h.
GNEAdditionalFrame::NeteditAttributes::additionalReferencePoint GNEAdditionalFrame::NeteditAttributes::getActualReferencePoint | ( | ) |
get actual reference point
Definition at line 1295 of file GNEAdditionalFrame.cpp.
References myActualAdditionalReferencePoint.
Referenced by GNEAdditionalFrame::addAdditional(), GNEAdditionalFrame::setEndPosition(), and GNEAdditionalFrame::setStartPosition().
double GNEAdditionalFrame::NeteditAttributes::getLength | ( | ) |
get value of length
Definition at line 1301 of file GNEAdditionalFrame.cpp.
References myLengthTextField.
Referenced by GNEAdditionalFrame::addAdditional().
void GNEAdditionalFrame::NeteditAttributes::hideLengthField | ( | ) |
hide length field
Definition at line 1272 of file GNEAdditionalFrame.cpp.
References myLengthLabel, and myLengthTextField.
Referenced by GNEAdditionalFrame::setParametersOfAdditional().
void GNEAdditionalFrame::NeteditAttributes::hideReferencePoint | ( | ) |
hide refence point comboBox
Definition at line 1287 of file GNEAdditionalFrame.cpp.
References myForcePositionCheckButton, myForcePositionLabel, and myReferencePointMatchBox.
Referenced by GNEAdditionalFrame::setParametersOfAdditional().
bool GNEAdditionalFrame::NeteditAttributes::isBlockEnabled | ( | ) |
check if block is enabled
Definition at line 1307 of file GNEAdditionalFrame.cpp.
References myBlockMovementCheckButton.
Referenced by GNEAdditionalFrame::addAdditional().
bool GNEAdditionalFrame::NeteditAttributes::isCurrentLengthValid | ( | ) | const |
check if current length is valid
Definition at line 1318 of file GNEAdditionalFrame.cpp.
References myCurrentLengthValid.
Referenced by GNEAdditionalFrame::addAdditional().
bool GNEAdditionalFrame::NeteditAttributes::isForcePositionEnabled | ( | ) |
check if force position is enabled
Definition at line 1313 of file GNEAdditionalFrame.cpp.
References myForcePositionCheckButton.
Referenced by GNEAdditionalFrame::setEndPosition(), and GNEAdditionalFrame::setStartPosition().
long GNEAdditionalFrame::NeteditAttributes::onCmdHelp | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when user press the help button.
Definition at line 1394 of file GNEAdditionalFrame.cpp.
References GUIIconSubSys::getIcon(), GUIDesignButtonOK, GUIDesignDialogBox, GUIDesignLabelLeft, and ICON_ACCEPT.
long GNEAdditionalFrame::NeteditAttributes::onCmdSelectReferencePoint | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when user enters another reference point.
Definition at line 1342 of file GNEAdditionalFrame.cpp.
References GNE_ADDITIONALREFERENCEPOINT_CENTER, GNE_ADDITIONALREFERENCEPOINT_INVALID, GNE_ADDITIONALREFERENCEPOINT_LEFT, GNE_ADDITIONALREFERENCEPOINT_RIGHT, myActualAdditionalReferencePoint, myForcePositionCheckButton, myLengthTextField, and myReferencePointMatchBox.
long GNEAdditionalFrame::NeteditAttributes::onCmdSetBlocking | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when user changes the checkbox "set blocking".
Definition at line 1372 of file GNEAdditionalFrame.cpp.
References myBlockMovementCheckButton.
long GNEAdditionalFrame::NeteditAttributes::onCmdSetForcePosition | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when user changes the checkbox "force position".
Definition at line 1383 of file GNEAdditionalFrame.cpp.
References myForcePositionCheckButton.
long GNEAdditionalFrame::NeteditAttributes::onCmdSetLength | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 1324 of file GNEAdditionalFrame.cpp.
References myCurrentLengthValid, and myLengthTextField.
void GNEAdditionalFrame::NeteditAttributes::showLengthField | ( | ) |
show length field
Definition at line 1265 of file GNEAdditionalFrame.cpp.
References myLengthLabel, and myLengthTextField.
Referenced by GNEAdditionalFrame::setParametersOfAdditional().
void GNEAdditionalFrame::NeteditAttributes::showReferencePoint | ( | ) |
show refence point comboBox
Definition at line 1279 of file GNEAdditionalFrame.cpp.
References myForcePositionCheckButton, myForcePositionLabel, and myReferencePointMatchBox.
Referenced by GNEAdditionalFrame::setParametersOfAdditional().
|
private |
Button for help about the reference point.
Definition at line 385 of file GNEAdditionalFrame.h.
Referenced by NeteditAttributes().
|
private |
actual additional reference point selected in the match Box
Definition at line 388 of file GNEAdditionalFrame.h.
Referenced by getActualReferencePoint(), and onCmdSelectReferencePoint().
|
private |
Label for block movement.
Definition at line 403 of file GNEAdditionalFrame.h.
Referenced by NeteditAttributes().
|
private |
checkBox for block movement
Definition at line 406 of file GNEAdditionalFrame.h.
Referenced by isBlockEnabled(), NeteditAttributes(), and onCmdSetBlocking().
|
private |
Flag to check if current length is valid.
Definition at line 409 of file GNEAdditionalFrame.h.
Referenced by isCurrentLengthValid(), and onCmdSetLength().
|
private |
checkBox for the option "force position"
Definition at line 400 of file GNEAdditionalFrame.h.
Referenced by hideReferencePoint(), isForcePositionEnabled(), NeteditAttributes(), onCmdSelectReferencePoint(), onCmdSetForcePosition(), and showReferencePoint().
|
private |
Label for force position.
Definition at line 397 of file GNEAdditionalFrame.h.
Referenced by hideReferencePoint(), NeteditAttributes(), and showReferencePoint().
|
private |
Label for length.
Definition at line 391 of file GNEAdditionalFrame.h.
Referenced by hideLengthField(), NeteditAttributes(), and showLengthField().
|
private |
textField for length
Definition at line 394 of file GNEAdditionalFrame.h.
Referenced by getLength(), hideLengthField(), NeteditAttributes(), onCmdSelectReferencePoint(), onCmdSetLength(), and showLengthField().
|
private |
match box with the list of reference points
Definition at line 382 of file GNEAdditionalFrame.h.
Referenced by hideReferencePoint(), NeteditAttributes(), onCmdSelectReferencePoint(), and showReferencePoint().