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

Detailed Description

Definition at line 311 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 317 of file GNEAdditionalFrame.h.

Constructor & Destructor Documentation

◆ NeteditAttributes() [1/2]

◆ ~NeteditAttributes()

GNEAdditionalFrame::NeteditAttributes::~NeteditAttributes ( )

destructor

Definition at line 1226 of file GNEAdditionalFrame.cpp.

◆ NeteditAttributes() [2/2]

GNEAdditionalFrame::NeteditAttributes::NeteditAttributes ( )
inlineprotected

FOX needs this.

Definition at line 365 of file GNEAdditionalFrame.h.

Member Function Documentation

◆ getActualReferencePoint()

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

◆ getLength()

double GNEAdditionalFrame::NeteditAttributes::getLength ( ) const

get value of length

Definition at line 1252 of file GNEAdditionalFrame.cpp.

References myLengthTextField.

Referenced by GNEAdditionalFrame::addAdditional().

◆ hideLengthFieldAndReferecePoint()

void GNEAdditionalFrame::NeteditAttributes::hideLengthFieldAndReferecePoint ( )

hide length field

Definition at line 1238 of file GNEAdditionalFrame.cpp.

References myLengthLabel, myLengthTextField, and myReferencePointMatchBox.

Referenced by GNEAdditionalFrame::setParametersOfAdditional().

◆ isBlockEnabled()

bool GNEAdditionalFrame::NeteditAttributes::isBlockEnabled ( ) const

check if block is enabled

Definition at line 1258 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 1264 of file GNEAdditionalFrame.cpp.

References myCurrentLengthValid.

Referenced by GNEAdditionalFrame::addAdditional().

◆ onCmdHelp()

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.

◆ 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 1313 of file GNEAdditionalFrame.cpp.

References myBlockMovementCheckButton.

◆ onCmdSetLength()

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

Definition at line 1270 of file GNEAdditionalFrame.cpp.

References myCurrentLengthValid, and myLengthTextField.

◆ showLengthFieldAndReferecePoint()

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

Field Documentation

◆ helpReferencePoint

FXButton* GNEAdditionalFrame::NeteditAttributes::helpReferencePoint
private

Button for help about the reference point.

Definition at line 372 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 375 of file GNEAdditionalFrame.h.

Referenced by getActualReferencePoint(), and onCmdSelectReferencePoint().

◆ myBlockLabel

FXLabel* GNEAdditionalFrame::NeteditAttributes::myBlockLabel
private

Label for block movement.

Definition at line 384 of file GNEAdditionalFrame.h.

Referenced by NeteditAttributes().

◆ myBlockMovementCheckButton

FXCheckButton* GNEAdditionalFrame::NeteditAttributes::myBlockMovementCheckButton
private

checkBox for block movement

Definition at line 387 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 390 of file GNEAdditionalFrame.h.

Referenced by isCurrentLengthValid(), and onCmdSetLength().

◆ myLengthLabel

FXLabel* GNEAdditionalFrame::NeteditAttributes::myLengthLabel
private

Label for length.

Definition at line 378 of file GNEAdditionalFrame.h.

Referenced by hideLengthFieldAndReferecePoint(), NeteditAttributes(), and showLengthFieldAndReferecePoint().

◆ myLengthTextField

FXTextField* GNEAdditionalFrame::NeteditAttributes::myLengthTextField
private

◆ myReferencePointMatchBox

FXComboBox* GNEAdditionalFrame::NeteditAttributes::myReferencePointMatchBox
private

match box with the list of reference points

Definition at line 369 of file GNEAdditionalFrame.h.

Referenced by hideLengthFieldAndReferecePoint(), NeteditAttributes(), onCmdSelectReferencePoint(), and showLengthFieldAndReferecePoint().


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