Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEOptionsEditorRow::OptionFloat Class Reference

input float More...

#include <GNEOptionsEditorRow.h>

Inheritance diagram for GNEOptionsEditorRow::OptionFloat:
[legend]
Collaboration diagram for GNEOptionsEditorRow::OptionFloat:
[legend]

Public Member Functions

void adjustNameSize ()
 adjust input name size
const std::string getDescriptionLower () const
 get description (Lower)
const std::string getNameLower () const
 get name (Lower)
const std::string & getTopic () const
 get topic
long onCmdResetOption (FXObject *, FXSelector, void *)
 called when user press reset button
long onCmdSetOption (FXObject *, FXSelector, void *)
 called when user set value in textField/button/checkBox
 OptionFloat (GNEOptionsEditor *optionsEditor, FXComposite *parent, const std::string &topic, const std::string &name, const std::string &description, const std::string &defaultValue)
 constructor
void restoreOption ()
 restore option
void updateOption ()
 update option

Protected Member Functions

void updateResetButton ()
 update reset button

Protected Attributes

FXHorizontalFrame * myContentFrame = nullptr
 content frame
const std::string myDefaultValue
 default value
const std::string myDescription
 description
const std::string myName
 name
GNEOptionsEditormyOptionsEditor = nullptr
 FOX needs this.
const std::string myTopic
 topic

Private Member Functions

std::string getValue () const
 get value
std::string parseFloat (const std::string &value) const
 parse float xx to xx.00

Private Attributes

FXTextField * myFloatTextField = nullptr
 text field
MFXLabelTooltipmyNameLabel = nullptr
 tooltip label for name
FXButton * myResetButton = nullptr

Detailed Description

input float

Definition at line 252 of file GNEOptionsEditorRow.h.

Constructor & Destructor Documentation

◆ OptionFloat()

GNEOptionsEditorRow::OptionFloat::OptionFloat ( GNEOptionsEditor * optionsEditor,
FXComposite * parent,
const std::string & topic,
const std::string & name,
const std::string & description,
const std::string & defaultValue )

Member Function Documentation

◆ adjustNameSize()

void GNEOptionsEditorRow::OptionRow::adjustNameSize ( )
inherited

adjust input name size

Definition at line 85 of file GNEOptionsEditorRow.cpp.

References MARGIN, MINNAMEWIDTH, and myNameLabel.

◆ getDescriptionLower()

const std::string GNEOptionsEditorRow::OptionRow::getDescriptionLower ( ) const
inherited

get description (Lower)

Definition at line 106 of file GNEOptionsEditorRow.cpp.

References myDescription, and StringUtils::to_lower_case().

◆ getNameLower()

const std::string GNEOptionsEditorRow::OptionRow::getNameLower ( ) const
inherited

get name (Lower)

Definition at line 100 of file GNEOptionsEditorRow.cpp.

References myName, and StringUtils::to_lower_case().

◆ getTopic()

const std::string & GNEOptionsEditorRow::OptionRow::getTopic ( ) const
inherited

get topic

Definition at line 94 of file GNEOptionsEditorRow.cpp.

References myTopic.

◆ getValue()

std::string GNEOptionsEditorRow::OptionFloat::getValue ( ) const
privatevirtual

get value

Implements GNEOptionsEditorRow::OptionRow.

Definition at line 463 of file GNEOptionsEditorRow.cpp.

References myFloatTextField.

◆ onCmdResetOption()

long GNEOptionsEditorRow::OptionFloat::onCmdResetOption ( FXObject * ,
FXSelector ,
void *  )
virtual

◆ onCmdSetOption()

long GNEOptionsEditorRow::OptionFloat::onCmdSetOption ( FXObject * ,
FXSelector ,
void *  )
virtual

called when user set value in textField/button/checkBox

Implements GNEOptionsEditorRow::OptionRow.

Definition at line 440 of file GNEOptionsEditorRow.cpp.

References GNEOptionsEditorRow::OptionRow::myDefaultValue, myFloatTextField, GNEOptionsEditorRow::OptionRow::myName, GNEOptionsEditorRow::OptionRow::myOptionsEditor, and GNEOptionsEditorRow::OptionRow::updateResetButton().

Referenced by restoreOption().

Here is the caller graph for this function:

◆ parseFloat()

std::string GNEOptionsEditorRow::OptionFloat::parseFloat ( const std::string & value) const
private

parse float xx to xx.00

Definition at line 469 of file GNEOptionsEditorRow.cpp.

References invalid_return< std::string >::value, StringUtils::toDouble(), and toString().

Referenced by OptionFloat().

Here is the caller graph for this function:

◆ restoreOption()

void GNEOptionsEditorRow::OptionFloat::restoreOption ( )
virtual

◆ updateOption()

void GNEOptionsEditorRow::OptionFloat::updateOption ( )
virtual

update option

Implements GNEOptionsEditorRow::OptionRow.

Definition at line 426 of file GNEOptionsEditorRow.cpp.

References myFloatTextField, GNEOptionsEditorRow::OptionRow::myName, GNEOptionsEditorRow::OptionRow::myOptionsEditor, toString(), and GNEOptionsEditorRow::OptionRow::updateResetButton().

Referenced by OptionFloat().

Here is the caller graph for this function:

◆ updateResetButton()

void GNEOptionsEditorRow::OptionRow::updateResetButton ( )
protectedinherited

update reset button

Definition at line 112 of file GNEOptionsEditorRow.cpp.

References getValue(), myDefaultValue, and myResetButton.

Referenced by GNEOptionsEditorRow::OptionFilename::onCmdOpenDialog(), GNEOptionsEditorRow::OptionBool::onCmdResetOption(), GNEOptionsEditorRow::OptionFilename::onCmdResetOption(), GNEOptionsEditorRow::OptionFloat::onCmdResetOption(), GNEOptionsEditorRow::OptionInt::onCmdResetOption(), GNEOptionsEditorRow::OptionIntVector::onCmdResetOption(), GNEOptionsEditorRow::OptionString::onCmdResetOption(), GNEOptionsEditorRow::OptionStringVector::onCmdResetOption(), GNEOptionsEditorRow::OptionTime::onCmdResetOption(), GNEOptionsEditorRow::OptionBool::onCmdSetOption(), GNEOptionsEditorRow::OptionFilename::onCmdSetOption(), GNEOptionsEditorRow::OptionFloat::onCmdSetOption(), GNEOptionsEditorRow::OptionInt::onCmdSetOption(), GNEOptionsEditorRow::OptionIntVector::onCmdSetOption(), GNEOptionsEditorRow::OptionString::onCmdSetOption(), GNEOptionsEditorRow::OptionStringVector::onCmdSetOption(), GNEOptionsEditorRow::OptionTime::onCmdSetOption(), GNEOptionsEditorRow::OptionBool::updateOption(), GNEOptionsEditorRow::OptionFilename::updateOption(), GNEOptionsEditorRow::OptionFloat::updateOption(), GNEOptionsEditorRow::OptionInt::updateOption(), GNEOptionsEditorRow::OptionIntVector::updateOption(), GNEOptionsEditorRow::OptionString::updateOption(), GNEOptionsEditorRow::OptionStringVector::updateOption(), and GNEOptionsEditorRow::OptionTime::updateOption().

Here is the caller graph for this function:

Field Documentation

◆ myContentFrame

◆ myDefaultValue

◆ myDescription

const std::string GNEOptionsEditorRow::OptionRow::myDescription
protectedinherited

description

Definition at line 89 of file GNEOptionsEditorRow.h.

Referenced by getDescriptionLower(), and OptionRow().

◆ myFloatTextField

FXTextField* GNEOptionsEditorRow::OptionFloat::myFloatTextField = nullptr
private

◆ myName

◆ myNameLabel

MFXLabelTooltip* GNEOptionsEditorRow::OptionRow::myNameLabel = nullptr
privateinherited

tooltip label for name

Definition at line 105 of file GNEOptionsEditorRow.h.

Referenced by adjustNameSize(), and OptionRow().

◆ myOptionsEditor

GNEOptionsEditor* GNEOptionsEditorRow::OptionRow::myOptionsEditor = nullptr
protectedinherited

FOX needs this.

GNEOptionsEditor parent

Definition at line 80 of file GNEOptionsEditorRow.h.

Referenced by GNEOptionsEditorRow::OptionFilename::onCmdOpenDialog(), GNEOptionsEditorRow::OptionBool::onCmdSetOption(), GNEOptionsEditorRow::OptionFilename::onCmdSetOption(), GNEOptionsEditorRow::OptionFloat::onCmdSetOption(), GNEOptionsEditorRow::OptionInt::onCmdSetOption(), GNEOptionsEditorRow::OptionIntVector::onCmdSetOption(), GNEOptionsEditorRow::OptionString::onCmdSetOption(), GNEOptionsEditorRow::OptionStringVector::onCmdSetOption(), GNEOptionsEditorRow::OptionTime::onCmdSetOption(), GNEOptionsEditorRow::OptionFloat::OptionFloat(), GNEOptionsEditorRow::OptionIntVector::OptionIntVector(), OptionRow(), GNEOptionsEditorRow::OptionString::OptionString(), GNEOptionsEditorRow::OptionTime::OptionTime(), GNEOptionsEditorRow::OptionBool::restoreOption(), GNEOptionsEditorRow::OptionFilename::restoreOption(), GNEOptionsEditorRow::OptionFloat::restoreOption(), GNEOptionsEditorRow::OptionInt::restoreOption(), GNEOptionsEditorRow::OptionIntVector::restoreOption(), GNEOptionsEditorRow::OptionString::restoreOption(), GNEOptionsEditorRow::OptionStringVector::restoreOption(), GNEOptionsEditorRow::OptionTime::restoreOption(), GNEOptionsEditorRow::OptionBool::updateOption(), GNEOptionsEditorRow::OptionFilename::updateOption(), GNEOptionsEditorRow::OptionFloat::updateOption(), GNEOptionsEditorRow::OptionInt::updateOption(), GNEOptionsEditorRow::OptionIntVector::updateOption(), GNEOptionsEditorRow::OptionString::updateOption(), GNEOptionsEditorRow::OptionStringVector::updateOption(), and GNEOptionsEditorRow::OptionTime::updateOption().

◆ myResetButton

FXButton* GNEOptionsEditorRow::OptionRow::myResetButton = nullptr
privateinherited

Definition at line 108 of file GNEOptionsEditorRow.h.

Referenced by OptionRow(), and updateResetButton().

◆ myTopic

const std::string GNEOptionsEditorRow::OptionRow::myTopic
protectedinherited

topic

Definition at line 83 of file GNEOptionsEditorRow.h.

Referenced by getTopic(), and OptionRow().


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