Eclipse SUMO - Simulation of Urban MObility
GNEOptionsDialogElements::InputFilename Class Reference

input filename More...

#include <GNEOptionsDialogElements.h>

Inheritance diagram for GNEOptionsDialogElements::InputFilename:
[legend]
Collaboration diagram for GNEOptionsDialogElements::InputFilename:
[legend]

Public Member Functions

void adjustNameSize ()
 adjust input name size More...
 
const std::string getDescriptionLower () const
 get description (Lower) More...
 
const std::string getNameLower () const
 get name (Lower) More...
 
const std::string & getTopic () const
 get topic More...
 
 InputFilename (GNEOptionsDialog *GUIDialogOptions, FXComposite *parent, const std::string &topic, const std::string &name, const std::string &description, const std::string &defaultValue)
 FOX-declaration. More...
 
long onCmdOpenDialog (FXObject *, FXSelector, void *)
 called when user press open dialog button More...
 
long onCmdResetOption (FXObject *, FXSelector, void *)
 called when user press reset button More...
 
long onCmdSetOption (FXObject *, FXSelector, void *)
 called when user set value in textField/button/checkBox More...
 
long onUpdResetOption (FXObject *, FXSelector, void *)
 update reset button More...
 
void restoreOption ()
 restore option More...
 
void updateOption ()
 update option More...
 

Protected Member Functions

 InputFilename ()
 FOX needs this. More...
 

Protected Attributes

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

Private Member Functions

std::string getValue () const
 get value More...
 

Private Attributes

FXTextField * myFilenameTextField = nullptr
 text field More...
 
MFXLabelTooltipmyNameLabel = nullptr
 tooltip label for name More...
 
FXButton * myOpenFilenameButton = nullptr
 open filename button More...
 
FXButton * myResetButton = nullptr
 

Detailed Description

input filename

Definition at line 285 of file GNEOptionsDialogElements.h.

Constructor & Destructor Documentation

◆ InputFilename() [1/2]

GNEOptionsDialogElements::InputFilename::InputFilename ( GNEOptionsDialog GUIDialogOptions,
FXComposite *  parent,
const std::string &  topic,
const std::string &  name,
const std::string &  description,
const std::string &  defaultValue 
)

◆ InputFilename() [2/2]

GNEOptionsDialogElements::InputFilename::InputFilename ( )
protected

FOX needs this.

Definition at line 511 of file GNEOptionsDialogElements.cpp.

Member Function Documentation

◆ adjustNameSize()

void GNEOptionsDialogElements::InputOption::adjustNameSize ( )
inherited

adjust input name size

Definition at line 86 of file GNEOptionsDialogElements.cpp.

References MARGING, MINNAMEWIDTH, and GNEOptionsDialogElements::InputOption::myNameLabel.

◆ getDescriptionLower()

const std::string GNEOptionsDialogElements::InputOption::getDescriptionLower ( ) const
inherited

get description (Lower)

Definition at line 107 of file GNEOptionsDialogElements.cpp.

References StringUtils::to_lower_case().

◆ getNameLower()

const std::string GNEOptionsDialogElements::InputOption::getNameLower ( ) const
inherited

get name (Lower)

Definition at line 101 of file GNEOptionsDialogElements.cpp.

References StringUtils::to_lower_case().

◆ getTopic()

const std::string & GNEOptionsDialogElements::InputOption::getTopic ( ) const
inherited

get topic

Definition at line 95 of file GNEOptionsDialogElements.cpp.

◆ getValue()

std::string GNEOptionsDialogElements::InputFilename::getValue ( ) const
privatevirtual

get value

Implements GNEOptionsDialogElements::InputOption.

Definition at line 515 of file GNEOptionsDialogElements.cpp.

◆ onCmdOpenDialog()

long GNEOptionsDialogElements::InputFilename::onCmdOpenDialog ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press open dialog button

Definition at line 479 of file GNEOptionsDialogElements.cpp.

References GNEApplicationWindowHelper::openFileDialog().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdResetOption()

long GNEOptionsDialogElements::InputFilename::onCmdResetOption ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

called when user press reset button

Implements GNEOptionsDialogElements::InputOption.

Definition at line 505 of file GNEOptionsDialogElements.cpp.

◆ onCmdSetOption()

long GNEOptionsDialogElements::InputFilename::onCmdSetOption ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

called when user set value in textField/button/checkBox

Implements GNEOptionsDialogElements::InputOption.

Definition at line 491 of file GNEOptionsDialogElements.cpp.

References SUMOXMLDefinitions::isValidFilename().

◆ onUpdResetOption()

long GNEOptionsDialogElements::InputOption::onUpdResetOption ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

update reset button

Definition at line 113 of file GNEOptionsDialogElements.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ restoreOption()

void GNEOptionsDialogElements::InputFilename::restoreOption ( )
virtual

restore option

Implements GNEOptionsDialogElements::InputOption.

Definition at line 473 of file GNEOptionsDialogElements.cpp.

◆ updateOption()

void GNEOptionsDialogElements::InputFilename::updateOption ( )
virtual

update option

Implements GNEOptionsDialogElements::InputOption.

Definition at line 467 of file GNEOptionsDialogElements.cpp.

Referenced by InputFilename().

Here is the caller graph for this function:

Field Documentation

◆ myContentFrame

◆ myDefaultValue

const std::string GNEOptionsDialogElements::InputOption::myDefaultValue
protectedinherited

default value

Definition at line 97 of file GNEOptionsDialogElements.h.

◆ myDescription

const std::string GNEOptionsDialogElements::InputOption::myDescription
protectedinherited

description

Definition at line 94 of file GNEOptionsDialogElements.h.

◆ myFilenameTextField

FXTextField* GNEOptionsDialogElements::InputFilename::myFilenameTextField = nullptr
private

text field

Definition at line 321 of file GNEOptionsDialogElements.h.

Referenced by InputFilename().

◆ myGUIDialogOptions

GNEOptionsDialog* GNEOptionsDialogElements::InputOption::myGUIDialogOptions = nullptr
protectedinherited

◆ myName

const std::string GNEOptionsDialogElements::InputOption::myName
protectedinherited

name

Definition at line 91 of file GNEOptionsDialogElements.h.

◆ myNameLabel

MFXLabelTooltip* GNEOptionsDialogElements::InputOption::myNameLabel = nullptr
privateinherited

tooltip label for name

Definition at line 107 of file GNEOptionsDialogElements.h.

Referenced by GNEOptionsDialogElements::InputOption::adjustNameSize().

◆ myOpenFilenameButton

FXButton* GNEOptionsDialogElements::InputFilename::myOpenFilenameButton = nullptr
private

open filename button

Definition at line 318 of file GNEOptionsDialogElements.h.

Referenced by InputFilename().

◆ myResetButton

FXButton* GNEOptionsDialogElements::InputOption::myResetButton = nullptr
privateinherited

Definition at line 110 of file GNEOptionsDialogElements.h.

◆ myTopic

const std::string GNEOptionsDialogElements::InputOption::myTopic
protectedinherited

topic

Definition at line 88 of file GNEOptionsDialogElements.h.


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