![]() |
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 () const |
get actual reference point More... | |
double | getLength () const |
get value of length More... | |
void | hideLengthFieldAndReferecePoint () |
hide length field More... | |
bool | isBlockEnabled () const |
check if block is enabled More... | |
bool | isCurrentLengthValid () const |
check if current length is valid More... | |
NeteditAttributes (FXComposite *parent) | |
constructor More... | |
void | showLengthFieldAndReferecePoint () |
show length field and reference point 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 | 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... | |
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 311 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 317 of file GNEAdditionalFrame.h.
GNEAdditionalFrame::NeteditAttributes::NeteditAttributes | ( | FXComposite * | parent | ) |
constructor
Definition at line 1200 of file GNEAdditionalFrame.cpp.
References GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonRectangular, GUIDesignCheckButtonAttribute, GUIDesignComboBox, GUIDesignComboBoxNCol, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldNCol, helpReferencePoint, MID_GNE_ADDITIONALFRAME_BLOCKMOVEMENT, MID_GNE_ADDITIONALFRAME_CHANGEPARAMETER_TEXT, MID_GNE_ADDITIONALFRAME_REFERENCEPOINT, MID_HELP, myBlockLabel, myBlockMovementCheckButton, myLengthLabel, myLengthTextField, myReferencePointMatchBox, SUMO_ATTR_LENGTH, and toString().
GNEAdditionalFrame::NeteditAttributes::~NeteditAttributes | ( | ) |
destructor
Definition at line 1226 of file GNEAdditionalFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 365 of file GNEAdditionalFrame.h.
GNEAdditionalFrame::NeteditAttributes::additionalReferencePoint GNEAdditionalFrame::NeteditAttributes::getActualReferencePoint | ( | ) | const |
get actual reference point
Definition at line 1246 of file GNEAdditionalFrame.cpp.
References myActualAdditionalReferencePoint.
Referenced by GNEAdditionalFrame::addAdditional(), GNEAdditionalFrame::setEndPosition(), and GNEAdditionalFrame::setStartPosition().
double GNEAdditionalFrame::NeteditAttributes::getLength | ( | ) | const |
get value of length
Definition at line 1252 of file GNEAdditionalFrame.cpp.
References myLengthTextField.
Referenced by GNEAdditionalFrame::addAdditional().
void GNEAdditionalFrame::NeteditAttributes::hideLengthFieldAndReferecePoint | ( | ) |
hide length field
Definition at line 1238 of file GNEAdditionalFrame.cpp.
References myLengthLabel, myLengthTextField, and myReferencePointMatchBox.
Referenced by GNEAdditionalFrame::setParametersOfAdditional().
bool GNEAdditionalFrame::NeteditAttributes::isBlockEnabled | ( | ) | const |
check if block is enabled
Definition at line 1258 of file GNEAdditionalFrame.cpp.
References myBlockMovementCheckButton.
Referenced by GNEAdditionalFrame::addAdditional().
bool GNEAdditionalFrame::NeteditAttributes::isCurrentLengthValid | ( | ) | const |
check if current length is valid
Definition at line 1264 of file GNEAdditionalFrame.cpp.
References myCurrentLengthValid.
Referenced by GNEAdditionalFrame::addAdditional().
long GNEAdditionalFrame::NeteditAttributes::onCmdHelp | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when user press the help button.
Definition at line 1324 of file GNEAdditionalFrame.cpp.
References GUIIconSubSys::getIcon(), GUIDesignButtonOK, GUIDesignDialogBox, GUIDesignLabelFrameInformation, and ICON_ACCEPT.
long GNEAdditionalFrame::NeteditAttributes::onCmdSelectReferencePoint | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when user enters another reference point.
Definition at line 1288 of file GNEAdditionalFrame.cpp.
References GNE_ADDITIONALREFERENCEPOINT_CENTER, GNE_ADDITIONALREFERENCEPOINT_INVALID, GNE_ADDITIONALREFERENCEPOINT_LEFT, GNE_ADDITIONALREFERENCEPOINT_RIGHT, myActualAdditionalReferencePoint, myLengthTextField, and myReferencePointMatchBox.
long GNEAdditionalFrame::NeteditAttributes::onCmdSetBlocking | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when user changes the checkbox "set blocking".
Definition at line 1313 of file GNEAdditionalFrame.cpp.
References myBlockMovementCheckButton.
long GNEAdditionalFrame::NeteditAttributes::onCmdSetLength | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 1270 of file GNEAdditionalFrame.cpp.
References myCurrentLengthValid, and myLengthTextField.
void GNEAdditionalFrame::NeteditAttributes::showLengthFieldAndReferecePoint | ( | ) |
show length field and reference point
Definition at line 1230 of file GNEAdditionalFrame.cpp.
References myLengthLabel, myLengthTextField, and myReferencePointMatchBox.
Referenced by GNEAdditionalFrame::setParametersOfAdditional().
|
private |
Button for help about the reference point.
Definition at line 372 of file GNEAdditionalFrame.h.
Referenced by NeteditAttributes().
|
private |
actual additional reference point selected in the match Box
Definition at line 375 of file GNEAdditionalFrame.h.
Referenced by getActualReferencePoint(), and onCmdSelectReferencePoint().
|
private |
Label for block movement.
Definition at line 384 of file GNEAdditionalFrame.h.
Referenced by NeteditAttributes().
|
private |
checkBox for block movement
Definition at line 387 of file GNEAdditionalFrame.h.
Referenced by isBlockEnabled(), NeteditAttributes(), and onCmdSetBlocking().
|
private |
Flag to check if current length is valid.
Definition at line 390 of file GNEAdditionalFrame.h.
Referenced by isCurrentLengthValid(), and onCmdSetLength().
|
private |
Label for length.
Definition at line 378 of file GNEAdditionalFrame.h.
Referenced by hideLengthFieldAndReferecePoint(), NeteditAttributes(), and showLengthFieldAndReferecePoint().
|
private |
textField for length
Definition at line 381 of file GNEAdditionalFrame.h.
Referenced by getLength(), hideLengthFieldAndReferecePoint(), NeteditAttributes(), onCmdSelectReferencePoint(), onCmdSetLength(), and showLengthFieldAndReferecePoint().
|
private |
match box with the list of reference points
Definition at line 369 of file GNEAdditionalFrame.h.
Referenced by hideLengthFieldAndReferecePoint(), NeteditAttributes(), onCmdSelectReferencePoint(), and showLengthFieldAndReferecePoint().