Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEOptionsEditorRow::OptionRow Class Referenceabstract

input option More...

#include <GNEOptionsEditorRow.h>

Inheritance diagram for GNEOptionsEditorRow::OptionRow:
[legend]
Collaboration diagram for GNEOptionsEditorRow::OptionRow:
[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
virtual long onCmdResetOption (FXObject *, FXSelector, void *)=0
 called when user press reset button
virtual long onCmdSetOption (FXObject *, FXSelector, void *)=0
 called when user set value in textField/button/checkBox
 OptionRow (GNEOptionsEditor *optionsEditor, FXComposite *parent, const std::string &topic, const std::string &name, const std::string &description, const std::string &defaultValue)
 FOX-declaration.
virtual void restoreOption ()=0
 restore option (used for setting original options)
virtual void updateOption ()=0
 update option (used after load options)

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

virtual std::string getValue () const =0
 get value

Private Attributes

MFXLabelTooltipmyNameLabel = nullptr
 tooltip label for name
FXButton * myResetButton = nullptr

Detailed Description

input option

Definition at line 42 of file GNEOptionsEditorRow.h.

Constructor & Destructor Documentation

◆ OptionRow()

GNEOptionsEditorRow::OptionRow::OptionRow ( 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 ( )

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

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

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

get topic

Definition at line 94 of file GNEOptionsEditorRow.cpp.

References myTopic.

◆ getValue()

virtual std::string GNEOptionsEditorRow::OptionRow::getValue ( ) const
privatepure virtual

get value

Implemented in GNEOptionsEditorRow::OptionBool, GNEOptionsEditorRow::OptionFilename, GNEOptionsEditorRow::OptionFloat, GNEOptionsEditorRow::OptionInt, GNEOptionsEditorRow::OptionIntVector, GNEOptionsEditorRow::OptionString, GNEOptionsEditorRow::OptionStringVector, and GNEOptionsEditorRow::OptionTime.

References getValue().

Referenced by getValue(), and updateResetButton().

Here is the caller graph for this function:

◆ onCmdResetOption()

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

called when user press reset button

Implemented in GNEOptionsEditorRow::OptionBool, GNEOptionsEditorRow::OptionFilename, GNEOptionsEditorRow::OptionFloat, GNEOptionsEditorRow::OptionInt, GNEOptionsEditorRow::OptionIntVector, GNEOptionsEditorRow::OptionString, GNEOptionsEditorRow::OptionStringVector, and GNEOptionsEditorRow::OptionTime.

References OptionRow().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetOption()

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

called when user set value in textField/button/checkBox

Implemented in GNEOptionsEditorRow::OptionBool, GNEOptionsEditorRow::OptionFilename, GNEOptionsEditorRow::OptionFloat, GNEOptionsEditorRow::OptionInt, GNEOptionsEditorRow::OptionIntVector, GNEOptionsEditorRow::OptionString, GNEOptionsEditorRow::OptionStringVector, and GNEOptionsEditorRow::OptionTime.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ restoreOption()

◆ updateOption()

◆ updateResetButton()

void GNEOptionsEditorRow::OptionRow::updateResetButton ( )
protected

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
protected

description

Definition at line 89 of file GNEOptionsEditorRow.h.

Referenced by getDescriptionLower(), and OptionRow().

◆ myName

◆ myNameLabel

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

tooltip label for name

Definition at line 105 of file GNEOptionsEditorRow.h.

Referenced by adjustNameSize(), and OptionRow().

◆ myOptionsEditor

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

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
private

Definition at line 108 of file GNEOptionsEditorRow.h.

Referenced by OptionRow(), and updateResetButton().

◆ myTopic

const std::string GNEOptionsEditorRow::OptionRow::myTopic
protected

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: