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 84 of file GNEOptionsEditorRow.cpp.

References MARGIN, MINNAMEWIDTH, and myNameLabel.

◆ getDescriptionLower()

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

get description (Lower)

Definition at line 105 of file GNEOptionsEditorRow.cpp.

References StringUtils::to_lower_case().

◆ getNameLower()

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

get name (Lower)

Definition at line 99 of file GNEOptionsEditorRow.cpp.

References StringUtils::to_lower_case().

◆ getTopic()

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

get topic

Definition at line 93 of file GNEOptionsEditorRow.cpp.

◆ getValue()

◆ onCmdResetOption()

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

called when user press reset button

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

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::OptionString, GNEOptionsEditorRow::OptionStringVector, GNEOptionsEditorRow::OptionBool, GNEOptionsEditorRow::OptionInt, GNEOptionsEditorRow::OptionIntVector, GNEOptionsEditorRow::OptionFloat, GNEOptionsEditorRow::OptionTime, and GNEOptionsEditorRow::OptionFilename.

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 111 of file GNEOptionsEditorRow.cpp.

Field Documentation

◆ myContentFrame

◆ myDefaultValue

const std::string GNEOptionsEditorRow::OptionRow::myDefaultValue
protected

default value

Definition at line 92 of file GNEOptionsEditorRow.h.

◆ myDescription

const std::string GNEOptionsEditorRow::OptionRow::myDescription
protected

description

Definition at line 89 of file GNEOptionsEditorRow.h.

◆ myName

const std::string GNEOptionsEditorRow::OptionRow::myName
protected

name

Definition at line 86 of file GNEOptionsEditorRow.h.

◆ myNameLabel

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

tooltip label for name

Definition at line 105 of file GNEOptionsEditorRow.h.

Referenced by adjustNameSize().

◆ myOptionsEditor

◆ myResetButton

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

Definition at line 108 of file GNEOptionsEditorRow.h.

◆ myTopic

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

topic

Definition at line 83 of file GNEOptionsEditorRow.h.


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