SUMO - Simulation of Urban MObility
GNEAdditionalFrame::NeteditAttributes Class Reference

#include <GNEAdditionalFrame.h>

Inheritance diagram for GNEAdditionalFrame::NeteditAttributes:
Inheritance graph
Collaboration diagram for GNEAdditionalFrame::NeteditAttributes:
Collaboration graph

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...
 

Detailed Description

Definition at line 312 of file GNEAdditionalFrame.h.

Member Enumeration Documentation

◆ additionalReferencePoint

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.

Constructor & Destructor Documentation

◆ NeteditAttributes() [1/2]

◆ ~NeteditAttributes()

GNEAdditionalFrame::NeteditAttributes::~NeteditAttributes ( )

destructor

Definition at line 1261 of file GNEAdditionalFrame.cpp.

◆ NeteditAttributes() [2/2]

GNEAdditionalFrame::NeteditAttributes::NeteditAttributes ( )
inlineprotected

FOX needs this.

Definition at line 378 of file GNEAdditionalFrame.h.

Member Function Documentation

◆ getActualReferencePoint()

GNEAdditionalFrame::NeteditAttributes::additionalReferencePoint GNEAdditionalFrame::NeteditAttributes::getActualReferencePoint ( )

◆ getLength()

double GNEAdditionalFrame::NeteditAttributes::getLength ( )

get value of length

Definition at line 1301 of file GNEAdditionalFrame.cpp.

References myLengthTextField.

Referenced by GNEAdditionalFrame::addAdditional().

◆ hideLengthField()

void GNEAdditionalFrame::NeteditAttributes::hideLengthField ( )

hide length field

Definition at line 1272 of file GNEAdditionalFrame.cpp.

References myLengthLabel, and myLengthTextField.

Referenced by GNEAdditionalFrame::setParametersOfAdditional().

◆ hideReferencePoint()

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().

◆ isBlockEnabled()

bool GNEAdditionalFrame::NeteditAttributes::isBlockEnabled ( )

check if block is enabled

Definition at line 1307 of file GNEAdditionalFrame.cpp.

References myBlockMovementCheckButton.

Referenced by GNEAdditionalFrame::addAdditional().

◆ isCurrentLengthValid()

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().

◆ isForcePositionEnabled()

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().

◆ onCmdHelp()

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.

◆ onCmdSelectReferencePoint()

long GNEAdditionalFrame::NeteditAttributes::onCmdSelectReferencePoint ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdSetBlocking()

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.

◆ onCmdSetForcePosition()

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.

◆ onCmdSetLength()

long GNEAdditionalFrame::NeteditAttributes::onCmdSetLength ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 1324 of file GNEAdditionalFrame.cpp.

References myCurrentLengthValid, and myLengthTextField.

◆ showLengthField()

void GNEAdditionalFrame::NeteditAttributes::showLengthField ( )

show length field

Definition at line 1265 of file GNEAdditionalFrame.cpp.

References myLengthLabel, and myLengthTextField.

Referenced by GNEAdditionalFrame::setParametersOfAdditional().

◆ showReferencePoint()

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().

Field Documentation

◆ helpReferencePoint

FXButton* GNEAdditionalFrame::NeteditAttributes::helpReferencePoint
private

Button for help about the reference point.

Definition at line 385 of file GNEAdditionalFrame.h.

Referenced by NeteditAttributes().

◆ myActualAdditionalReferencePoint

additionalReferencePoint GNEAdditionalFrame::NeteditAttributes::myActualAdditionalReferencePoint
private

actual additional reference point selected in the match Box

Definition at line 388 of file GNEAdditionalFrame.h.

Referenced by getActualReferencePoint(), and onCmdSelectReferencePoint().

◆ myBlockLabel

FXLabel* GNEAdditionalFrame::NeteditAttributes::myBlockLabel
private

Label for block movement.

Definition at line 403 of file GNEAdditionalFrame.h.

Referenced by NeteditAttributes().

◆ myBlockMovementCheckButton

FXCheckButton* GNEAdditionalFrame::NeteditAttributes::myBlockMovementCheckButton
private

checkBox for block movement

Definition at line 406 of file GNEAdditionalFrame.h.

Referenced by isBlockEnabled(), NeteditAttributes(), and onCmdSetBlocking().

◆ myCurrentLengthValid

bool GNEAdditionalFrame::NeteditAttributes::myCurrentLengthValid
private

Flag to check if current length is valid.

Definition at line 409 of file GNEAdditionalFrame.h.

Referenced by isCurrentLengthValid(), and onCmdSetLength().

◆ myForcePositionCheckButton

FXCheckButton* GNEAdditionalFrame::NeteditAttributes::myForcePositionCheckButton
private

◆ myForcePositionLabel

FXLabel* GNEAdditionalFrame::NeteditAttributes::myForcePositionLabel
private

Label for force position.

Definition at line 397 of file GNEAdditionalFrame.h.

Referenced by hideReferencePoint(), NeteditAttributes(), and showReferencePoint().

◆ myLengthLabel

FXLabel* GNEAdditionalFrame::NeteditAttributes::myLengthLabel
private

Label for length.

Definition at line 391 of file GNEAdditionalFrame.h.

Referenced by hideLengthField(), NeteditAttributes(), and showLengthField().

◆ myLengthTextField

FXTextField* GNEAdditionalFrame::NeteditAttributes::myLengthTextField
private

◆ myReferencePointMatchBox

FXComboBox* GNEAdditionalFrame::NeteditAttributes::myReferencePointMatchBox
private

match box with the list of reference points

Definition at line 382 of file GNEAdditionalFrame.h.

Referenced by hideReferencePoint(), NeteditAttributes(), onCmdSelectReferencePoint(), and showReferencePoint().


The documentation for this class was generated from the following files: