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


Public Types | |
| enum | additionalReferencePoint { GNE_ADDITIONALREFERENCEPOINT_LEFT, GNE_ADDITIONALREFERENCEPOINT_RIGHT, GNE_ADDITIONALREFERENCEPOINT_CENTER } |
| FOX-declaration. More... | |
Public Member Functions | |
| editorParameters (FXComposite *parent) | |
| constructor More... | |
| additionalReferencePoint | getActualReferencePoint () |
| get actual reference point More... | |
| SUMOReal | getLenght () |
| get value of lenght More... | |
| void | hideLengthField () |
| hide length field More... | |
| void | hideReferencePoint () |
| hide refence point comboBox More... | |
| bool | isBlockEnabled () |
| check if block is enabled More... | |
| bool | isCurrentLenghtValid () const |
| check if current lenght is valid More... | |
| bool | isForcePositionEnabled () |
| check if force position is enabled More... | |
| void | showLengthField () |
| show length field More... | |
| void | showReferencePoint () |
| show refence point comboBox More... | |
| ~editorParameters () | |
| destructor More... | |
FOX-callbacks | |
Called when the user enters a new lenght | |
| long | onCmdSetLength (FXObject *, FXSelector, void *) |
| long | onCmdSelectReferencePoint (FXObject *, FXSelector, void *) |
| Called when the user enters another reference point. More... | |
| long | onCmdHelp (FXObject *, FXSelector, void *) |
| Called when help button is pressed. More... | |
Protected Member Functions | |
| editorParameters () | |
| 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... | |
| FXMenuCheck * | myCheckBlock |
| checkBox for blocking movement More... | |
| FXMenuCheck * | myCheckForcePosition |
| checkBox for the option "force position" More... | |
| bool | myCurrentLengthValid |
| Flag to check if current lenght is valid. More... | |
| FXLabel * | myLengthLabel |
| Label for lenght. More... | |
| FXTextField * | myLengthTextField |
| textField for lenght More... | |
| FXComboBox * | myReferencePointMatchBox |
| match box with the list of reference points More... | |
Definition at line 290 of file GNEAdditionalFrame.h.
FOX-declaration.
list of the reference points
| Enumerator | |
|---|---|
| GNE_ADDITIONALREFERENCEPOINT_LEFT | |
| GNE_ADDITIONALREFERENCEPOINT_RIGHT | |
| GNE_ADDITIONALREFERENCEPOINT_CENTER | |
Definition at line 296 of file GNEAdditionalFrame.h.
| GNEAdditionalFrame::editorParameters::editorParameters | ( | FXComposite * | parent | ) |
constructor
Definition at line 1117 of file GNEAdditionalFrame.cpp.
References GUIDesignButtonHelp, GUIDesignComboBox, GUIDesignComboBoxNCol, GUIDesignHorizontalFrame, GUIDesignLabelAttribute, GUIDesignMenuCheck, 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, myCheckBlock, myCheckForcePosition, myLengthLabel, myLengthTextField, and myReferencePointMatchBox.
| GNEAdditionalFrame::editorParameters::~editorParameters | ( | ) |
destructor
Definition at line 1155 of file GNEAdditionalFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 349 of file GNEAdditionalFrame.h.
| GNEAdditionalFrame::editorParameters::additionalReferencePoint GNEAdditionalFrame::editorParameters::getActualReferencePoint | ( | ) |
get actual reference point
Definition at line 1187 of file GNEAdditionalFrame.cpp.
References myActualAdditionalReferencePoint, and SUMOReal.
Referenced by GNEAdditionalFrame::setEndPosition(), and GNEAdditionalFrame::setStartPosition().
| SUMOReal GNEAdditionalFrame::editorParameters::getLenght | ( | ) |
get value of lenght
Definition at line 1193 of file GNEAdditionalFrame.cpp.
References myLengthTextField.
Referenced by GNEAdditionalFrame::addAdditional().
| void GNEAdditionalFrame::editorParameters::hideLengthField | ( | ) |
hide length field
Definition at line 1166 of file GNEAdditionalFrame.cpp.
References myLengthLabel, and myLengthTextField.
Referenced by GNEAdditionalFrame::setParametersOfAdditional().
| void GNEAdditionalFrame::editorParameters::hideReferencePoint | ( | ) |
hide refence point comboBox
Definition at line 1180 of file GNEAdditionalFrame.cpp.
References myCheckForcePosition, and myReferencePointMatchBox.
Referenced by GNEAdditionalFrame::setParametersOfAdditional().
| bool GNEAdditionalFrame::editorParameters::isBlockEnabled | ( | ) |
check if block is enabled
Definition at line 1199 of file GNEAdditionalFrame.cpp.
References myCheckBlock.
Referenced by GNEAdditionalFrame::addAdditional().
| bool GNEAdditionalFrame::editorParameters::isCurrentLenghtValid | ( | ) | const |
check if current lenght is valid
Definition at line 1210 of file GNEAdditionalFrame.cpp.
References myCurrentLengthValid.
Referenced by GNEAdditionalFrame::addAdditional().
| bool GNEAdditionalFrame::editorParameters::isForcePositionEnabled | ( | ) |
check if force position is enabled
Definition at line 1205 of file GNEAdditionalFrame.cpp.
References myCheckForcePosition.
Referenced by GNEAdditionalFrame::setEndPosition(), and GNEAdditionalFrame::setStartPosition().
| long GNEAdditionalFrame::editorParameters::onCmdHelp | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when help button is pressed.
Definition at line 1242 of file GNEAdditionalFrame.cpp.
References GUIIconSubSys::getIcon(), GUIDesignButtonDialog, GUIDesignDialogBox, GUIDesignLabelLeft, and ICON_ACCEPT.
| long GNEAdditionalFrame::editorParameters::onCmdSelectReferencePoint | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when the user enters another reference point.
Definition at line 1234 of file GNEAdditionalFrame.cpp.
References myActualAdditionalReferencePoint, and myReferencePointMatchBox.
| long GNEAdditionalFrame::editorParameters::onCmdSetLength | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1216 of file GNEAdditionalFrame.cpp.
References TplCheck::_str2SUMOReal(), TplConvert::_str2SUMOReal(), myCurrentLengthValid, and myLengthTextField.
| void GNEAdditionalFrame::editorParameters::showLengthField | ( | ) |
show length field
Definition at line 1159 of file GNEAdditionalFrame.cpp.
References myLengthLabel, and myLengthTextField.
Referenced by GNEAdditionalFrame::setParametersOfAdditional().
| void GNEAdditionalFrame::editorParameters::showReferencePoint | ( | ) |
show refence point comboBox
Definition at line 1173 of file GNEAdditionalFrame.cpp.
References myCheckForcePosition, and myReferencePointMatchBox.
Referenced by GNEAdditionalFrame::setParametersOfAdditional().
|
private |
Button for help about the reference point.
Definition at line 356 of file GNEAdditionalFrame.h.
Referenced by editorParameters().
|
private |
actual additional reference point selected in the match Box
Definition at line 359 of file GNEAdditionalFrame.h.
Referenced by getActualReferencePoint(), and onCmdSelectReferencePoint().
|
private |
checkBox for blocking movement
Definition at line 371 of file GNEAdditionalFrame.h.
Referenced by editorParameters(), and isBlockEnabled().
|
private |
checkBox for the option "force position"
Definition at line 368 of file GNEAdditionalFrame.h.
Referenced by editorParameters(), hideReferencePoint(), isForcePositionEnabled(), and showReferencePoint().
|
private |
Flag to check if current lenght is valid.
Definition at line 374 of file GNEAdditionalFrame.h.
Referenced by isCurrentLenghtValid(), and onCmdSetLength().
|
private |
Label for lenght.
Definition at line 362 of file GNEAdditionalFrame.h.
Referenced by editorParameters(), hideLengthField(), and showLengthField().
|
private |
textField for lenght
Definition at line 365 of file GNEAdditionalFrame.h.
Referenced by editorParameters(), getLenght(), hideLengthField(), onCmdSetLength(), and showLengthField().
|
private |
match box with the list of reference points
Definition at line 353 of file GNEAdditionalFrame.h.
Referenced by editorParameters(), hideReferencePoint(), onCmdSelectReferencePoint(), and showReferencePoint().