Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEPythonToolDialogElements::SumoConfigArgument Class Reference

sumo config argument More...

#include <GNEPythonToolDialogElements.h>

Inheritance diagram for GNEPythonToolDialogElements::SumoConfigArgument:
[legend]
Collaboration diagram for GNEPythonToolDialogElements::SumoConfigArgument:
[legend]

Public Member Functions

const std::string getArgument () const
 get argument
MFXLabelTooltipgetParameterLabel () const
 get parameter label
long onCmdOpenFilename (FXObject *, FXSelector, void *)
 Called when user press open filename button.
long onCmdSetValue (FXObject *, FXSelector, void *)
 Called when user set filename.
long onCmdUseCurrentSumoConfigFile (FXObject *, FXSelector, void *)
 Called when user press use current button.
long onUpdUseCurrentSumoConfigFile (FXObject *sender, FXSelector, void *)
 enable or disable use current button
bool requiredAttributeSet () const
 check if required attribute is set
void reset ()
 reset to default value
 SumoConfigArgument (GNEPythonToolDialog *toolDialogParent, const GNEPythonTool *pythonTool, GNEApplicationWindow *applicationWindow, FXVerticalFrame *argumentFrame, const std::string name, Option *option)
 FOX-declaration.
FOX-callbacks
long onCmdResetValue (FXObject *, FXSelector, void *)
 Called when user press reset button.
long onUpdResetValue (FXObject *, FXSelector, void *)
 Called when user press reset button.

Protected Member Functions

const std::string getValue () const
 get value
 SumoConfigArgument ()
 FOX need this.

Protected Attributes

const std::string myDefaultValue
 default value
FXHorizontalFrame * myElementsFrame = nullptr
 auxiliar elements frame
FXTextField * myFilenameTextField = nullptr
 filename textField
OptionmyOption = nullptr
 option
GNEPythonToolDialogmyToolDialogParent = nullptr
 tool dialog parent

Private Member Functions

SumoConfigArgumentoperator= (const SumoConfigArgument &)=delete
 Invalidated assignment operator.
 SumoConfigArgument (const SumoConfigArgument &)=delete
 Invalidated copy constructor.

Private Attributes

MFXButtonTooltipmyCurrentButton = nullptr
 current button
MFXButtonTooltipmyOpenFilenameButton = nullptr
 filename button
MFXLabelTooltipmyParameterLabel = nullptr
 parameter label
FXButton * myResetButton = nullptr
 reset button

Detailed Description

sumo config argument

Definition at line 361 of file GNEPythonToolDialogElements.h.

Constructor & Destructor Documentation

◆ SumoConfigArgument() [1/3]

GNEPythonToolDialogElements::SumoConfigArgument::SumoConfigArgument ( GNEPythonToolDialog * toolDialogParent,
const GNEPythonTool * pythonTool,
GNEApplicationWindow * applicationWindow,
FXVerticalFrame * argumentFrame,
const std::string name,
Option * option )

FOX-declaration.

constructor

Definition at line 550 of file GNEPythonToolDialogElements.cpp.

References GNEPythonToolDialogElements::FileNameArgument::FileNameArgument(), and TL.

Referenced by operator=(), and SumoConfigArgument().

Here is the caller graph for this function:

◆ SumoConfigArgument() [2/3]

GNEPythonToolDialogElements::SumoConfigArgument::SumoConfigArgument ( )
protected

FOX need this.

Definition at line 595 of file GNEPythonToolDialogElements.cpp.

◆ SumoConfigArgument() [3/3]

GNEPythonToolDialogElements::SumoConfigArgument::SumoConfigArgument ( const SumoConfigArgument & )
privatedelete

Invalidated copy constructor.

References SumoConfigArgument().

Member Function Documentation

◆ getArgument()

const std::string GNEPythonToolDialogElements::Argument::getArgument ( ) const
inherited

get argument

Definition at line 149 of file GNEPythonToolDialogElements.cpp.

References getValue(), myDefaultValue, and myParameterLabel.

◆ getParameterLabel()

MFXLabelTooltip * GNEPythonToolDialogElements::Argument::getParameterLabel ( ) const
inherited

get parameter label

Definition at line 143 of file GNEPythonToolDialogElements.cpp.

References myParameterLabel.

◆ getValue()

const std::string GNEPythonToolDialogElements::FileNameArgument::getValue ( ) const
protectedvirtualinherited

get value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 262 of file GNEPythonToolDialogElements.cpp.

References myFilenameTextField.

◆ onCmdOpenFilename()

long GNEPythonToolDialogElements::SumoConfigArgument::onCmdOpenFilename ( FXObject * ,
FXSelector ,
void *  )

Called when user press open filename button.

Definition at line 557 of file GNEPythonToolDialogElements.cpp.

References GNEDialog::ACCEPT, GNEFileDialog::LOAD_MULTIPLE, GNEPythonToolDialogElements::FileNameArgument::myFilenameTextField, GNEPythonToolDialogElements::Argument::myOption, GNEPythonToolDialogElements::Argument::myToolDialogParent, GNEFileDialog::NETEDIT, GNEFileDialog::SAVE, SUMOXMLDefinitions::SumoConfigFileExtensions, and TL.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdResetValue()

long GNEPythonToolDialogElements::Argument::onCmdResetValue ( FXObject * ,
FXSelector ,
void *  )
inherited

Called when user press reset button.

Definition at line 169 of file GNEPythonToolDialogElements.cpp.

References reset().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetValue()

long GNEPythonToolDialogElements::FileNameArgument::onCmdSetValue ( FXObject * ,
FXSelector ,
void *  )
virtualinherited

Called when user set filename.

Implements GNEPythonToolDialogElements::Argument.

Definition at line 227 of file GNEPythonToolDialogElements.cpp.

References myFilenameTextField, GNEPythonToolDialogElements::Argument::myOption, and reset().

◆ onCmdUseCurrentSumoConfigFile()

long GNEPythonToolDialogElements::SumoConfigArgument::onCmdUseCurrentSumoConfigFile ( FXObject * ,
FXSelector ,
void *  )

Called when user press use current button.

Definition at line 577 of file GNEPythonToolDialogElements.cpp.

References OptionsCont::getOptions(), and GNEPythonToolDialogElements::FileNameArgument::myFilenameTextField.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdResetValue()

long GNEPythonToolDialogElements::Argument::onUpdResetValue ( FXObject * ,
FXSelector ,
void *  )
inherited

Called when user press reset button.

Definition at line 177 of file GNEPythonToolDialogElements.cpp.

References getValue(), myDefaultValue, and myResetButton.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdUseCurrentSumoConfigFile()

long GNEPythonToolDialogElements::SumoConfigArgument::onUpdUseCurrentSumoConfigFile ( FXObject * sender,
FXSelector ,
void *  )

enable or disable use current button

Definition at line 584 of file GNEPythonToolDialogElements.cpp.

References OptionsCont::getOptions(), and GNEPythonToolDialogElements::Argument::myToolDialogParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

SumoConfigArgument & GNEPythonToolDialogElements::SumoConfigArgument::operator= ( const SumoConfigArgument & )
privatedelete

Invalidated assignment operator.

References SumoConfigArgument().

◆ requiredAttributeSet()

bool GNEPythonToolDialogElements::Argument::requiredAttributeSet ( ) const
inherited

check if required attribute is set

Definition at line 159 of file GNEPythonToolDialogElements.cpp.

References getValue(), myDefaultValue, and myOption.

◆ reset()

void GNEPythonToolDialogElements::FileNameArgument::reset ( )
virtualinherited

reset to default value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 199 of file GNEPythonToolDialogElements.cpp.

References GNEPythonToolDialogElements::Argument::myDefaultValue, myFilenameTextField, and GNEPythonToolDialogElements::Argument::myOption.

Referenced by onCmdSetValue().

Here is the caller graph for this function:

Field Documentation

◆ myCurrentButton

MFXButtonTooltip* GNEPythonToolDialogElements::FileNameArgument::myCurrentButton = nullptr
privateinherited

current button

Definition at line 220 of file GNEPythonToolDialogElements.h.

◆ myDefaultValue

◆ myElementsFrame

◆ myFilenameTextField

◆ myOpenFilenameButton

MFXButtonTooltip* GNEPythonToolDialogElements::FileNameArgument::myOpenFilenameButton = nullptr
privateinherited

filename button

Definition at line 223 of file GNEPythonToolDialogElements.h.

Referenced by FileNameArgument().

◆ myOption

◆ myParameterLabel

MFXLabelTooltip* GNEPythonToolDialogElements::Argument::myParameterLabel = nullptr
privateinherited

parameter label

Definition at line 125 of file GNEPythonToolDialogElements.h.

Referenced by Argument(), getArgument(), and getParameterLabel().

◆ myResetButton

FXButton* GNEPythonToolDialogElements::Argument::myResetButton = nullptr
privateinherited

reset button

Definition at line 128 of file GNEPythonToolDialogElements.h.

Referenced by Argument(), and onUpdResetValue().

◆ myToolDialogParent


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