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

input filename More...

#include <GNEOptionsEditorRow.h>

Inheritance diagram for GNEOptionsEditorRow::OptionFilename:
[legend]
Collaboration diagram for GNEOptionsEditorRow::OptionFilename:
[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 onCmdOpenDialog (FXObject *, FXSelector, void *)
 called when user press open dialog button
 
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
 
 OptionFilename (GNEOptionsEditor *optionsEditor, FXComposite *parent, const std::string &topic, const std::string &name, const std::string &description, const std::string &defaultValue)
 FOX-declaration.
 
void restoreOption ()
 restore option
 
void updateOption ()
 update option
 

Protected Member Functions

 OptionFilename ()
 FOX needs this.
 
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 * myFilenameTextField = nullptr
 text field
 
MFXLabelTooltipmyNameLabel = nullptr
 tooltip label for name
 
FXButton * myOpenFilenameButton = nullptr
 open filename button
 
FXButton * myResetButton = nullptr
 

Detailed Description

input filename

Definition at line 314 of file GNEOptionsEditorRow.h.

Constructor & Destructor Documentation

◆ OptionFilename() [1/2]

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

◆ OptionFilename() [2/2]

GNEOptionsEditorRow::OptionFilename::OptionFilename ( )
protected

FOX needs this.

Definition at line 611 of file GNEOptionsEditorRow.cpp.

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::OptionFilename::getValue ( ) const
privatevirtual

get value

Implements GNEOptionsEditorRow::OptionRow.

Definition at line 615 of file GNEOptionsEditorRow.cpp.

◆ onCmdOpenDialog()

long GNEOptionsEditorRow::OptionFilename::onCmdOpenDialog ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press open dialog button

Definition at line 571 of file GNEOptionsEditorRow.cpp.

References GNEDialog::ACCEPT, GNEFileDialog::LOAD_SINGLE, GNEFileDialog::NETEDIT, GNEFileDialog::SAVE, TL, and SUMOXMLDefinitions::XMLFileExtensions.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdResetOption()

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

called when user press reset button

Implements GNEOptionsEditorRow::OptionRow.

Definition at line 604 of file GNEOptionsEditorRow.cpp.

◆ onCmdSetOption()

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

called when user set value in textField/button/checkBox

Implements GNEOptionsEditorRow::OptionRow.

Definition at line 589 of file GNEOptionsEditorRow.cpp.

References GUIDesignTextColorBlack, GUIDesignTextColorRed, and SUMOXMLDefinitions::isValidFilename().

◆ restoreOption()

void GNEOptionsEditorRow::OptionFilename::restoreOption ( )
virtual

restore option

Implements GNEOptionsEditorRow::OptionRow.

Definition at line 564 of file GNEOptionsEditorRow.cpp.

◆ updateOption()

void GNEOptionsEditorRow::OptionFilename::updateOption ( )
virtual

update option

Implements GNEOptionsEditorRow::OptionRow.

Definition at line 557 of file GNEOptionsEditorRow.cpp.

Referenced by OptionFilename().

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.

◆ myFilenameTextField

FXTextField* GNEOptionsEditorRow::OptionFilename::myFilenameTextField = nullptr
private

text field

Definition at line 350 of file GNEOptionsEditorRow.h.

Referenced by OptionFilename().

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

◆ myOpenFilenameButton

FXButton* GNEOptionsEditorRow::OptionFilename::myOpenFilenameButton = nullptr
private

open filename button

Definition at line 347 of file GNEOptionsEditorRow.h.

Referenced by OptionFilename().

◆ myOptionsEditor

◆ 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: