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

input int vector More...

#include <GNEOptionsEditorRow.h>

Inheritance diagram for GNEOptionsEditorRow::OptionIntVector:
[legend]
Collaboration diagram for GNEOptionsEditorRow::OptionIntVector:
[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
 
 OptionIntVector (GNEOptionsEditor *optionsEditor, FXComposite *parent, const std::string &topic, const std::string &name, const std::string &description, const std::string &defaultValue)
 
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
 

Private Attributes

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

Detailed Description

input int vector

Definition at line 224 of file GNEOptionsEditorRow.h.

Constructor & Destructor Documentation

◆ OptionIntVector()

GNEOptionsEditorRow::OptionIntVector::OptionIntVector ( 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 GNEOptionsEditorRow::OptionRow::myNameLabel.

◆ getDescriptionLower()

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

get description (Lower)

Definition at line 106 of file GNEOptionsEditorRow.cpp.

References 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 StringUtils::to_lower_case().

◆ getTopic()

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

get topic

Definition at line 94 of file GNEOptionsEditorRow.cpp.

◆ getValue()

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

get value

Implements GNEOptionsEditorRow::OptionRow.

Definition at line 408 of file GNEOptionsEditorRow.cpp.

◆ onCmdResetOption()

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

called when user press reset button

Implements GNEOptionsEditorRow::OptionRow.

Definition at line 400 of file GNEOptionsEditorRow.cpp.

◆ onCmdSetOption()

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

called when user set value in textField/button/checkBox

Implements GNEOptionsEditorRow::OptionRow.

Definition at line 380 of file GNEOptionsEditorRow.cpp.

References StringTokenizer::getVector(), GUIDesignTextColorBlack, GUIDesignTextColorRed, and StringUtils::toInt().

◆ restoreOption()

void GNEOptionsEditorRow::OptionIntVector::restoreOption ( )
virtual

restore option

Implements GNEOptionsEditorRow::OptionRow.

Definition at line 373 of file GNEOptionsEditorRow.cpp.

References toString().

◆ updateOption()

void GNEOptionsEditorRow::OptionIntVector::updateOption ( )
virtual

update option

Implements GNEOptionsEditorRow::OptionRow.

Definition at line 366 of file GNEOptionsEditorRow.cpp.

References toString().

Referenced by OptionIntVector().

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.

Field Documentation

◆ myContentFrame

◆ myDefaultValue

const std::string GNEOptionsEditorRow::OptionRow::myDefaultValue
protectedinherited

default value

Definition at line 92 of file GNEOptionsEditorRow.h.

◆ myDescription

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

description

Definition at line 89 of file GNEOptionsEditorRow.h.

◆ myIntVectorTextField

FXTextField* GNEOptionsEditorRow::OptionIntVector::myIntVectorTextField = nullptr
private

text field

Definition at line 248 of file GNEOptionsEditorRow.h.

Referenced by OptionIntVector().

◆ myName

const std::string GNEOptionsEditorRow::OptionRow::myName
protectedinherited

name

Definition at line 86 of file GNEOptionsEditorRow.h.

◆ myNameLabel

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

tooltip label for name

Definition at line 105 of file GNEOptionsEditorRow.h.

Referenced by GNEOptionsEditorRow::OptionRow::adjustNameSize().

◆ myOptionsEditor

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

◆ myResetButton

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

Definition at line 108 of file GNEOptionsEditorRow.h.

◆ myTopic

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

topic

Definition at line 83 of file GNEOptionsEditorRow.h.


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