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

filename argument More...

#include <GNEPythonToolDialogElements.h>

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

Public Member Functions

 FileNameArgument (GNEPythonToolDialog *toolDialogParent, const GNEPythonTool *pythonTool, GNEApplicationWindow *applicationWindow, FXVerticalFrame *argumentFrame, const std::string name, Option *option)
 FOX-declaration.
 
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.
 
bool requiredAttributeSet () const
 check if required attribute is set
 
void reset ()
 reset to default value
 
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

 FileNameArgument ()
 FOX need this.
 
 FileNameArgument (GNEPythonToolDialog *toolDialogParent, const GNEPythonTool *pythonTool, GNEApplicationWindow *applicationWindow, FXVerticalFrame *argumentFrame, const std::string name, Option *option, const std::string &useCurrent)
 constructor for current buttons
 
const std::string getValue () const
 get value
 

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

 FileNameArgument (const FileNameArgument &)=delete
 Invalidated copy constructor.
 
FileNameArgumentoperator= (const FileNameArgument &)=delete
 Invalidated assignment operator.
 

Private Attributes

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

Detailed Description

filename argument

Definition at line 184 of file GNEPythonToolDialogElements.h.

Constructor & Destructor Documentation

◆ FileNameArgument() [1/4]

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

FOX-declaration.

constructor

Definition at line 192 of file GNEPythonToolDialogElements.cpp.

◆ FileNameArgument() [2/4]

GNEPythonToolDialogElements::FileNameArgument::FileNameArgument ( )
protected

FOX need this.

Definition at line 238 of file GNEPythonToolDialogElements.cpp.

◆ FileNameArgument() [3/4]

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

◆ FileNameArgument() [4/4]

GNEPythonToolDialogElements::FileNameArgument::FileNameArgument ( const FileNameArgument )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ getArgument()

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

get argument

Definition at line 149 of file GNEPythonToolDialogElements.cpp.

◆ getParameterLabel()

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

get parameter label

Definition at line 143 of file GNEPythonToolDialogElements.cpp.

◆ getValue()

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

get value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 262 of file GNEPythonToolDialogElements.cpp.

◆ onCmdOpenFilename()

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

Called when user press open filename button.

Definition at line 207 of file GNEPythonToolDialogElements.cpp.

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

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.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetValue()

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

Called when user set filename.

Implements GNEPythonToolDialogElements::Argument.

Definition at line 227 of file GNEPythonToolDialogElements.cpp.

◆ onUpdResetValue()

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

Called when user press reset button.

Definition at line 177 of file GNEPythonToolDialogElements.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ requiredAttributeSet()

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

check if required attribute is set

Definition at line 159 of file GNEPythonToolDialogElements.cpp.

◆ reset()

void GNEPythonToolDialogElements::FileNameArgument::reset ( )
virtual

reset to default value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 199 of file GNEPythonToolDialogElements.cpp.

Field Documentation

◆ myCurrentButton

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

current button

Definition at line 220 of file GNEPythonToolDialogElements.h.

Referenced by FileNameArgument().

◆ myDefaultValue

const std::string GNEPythonToolDialogElements::Argument::myDefaultValue
protectedinherited

default value

Definition at line 118 of file GNEPythonToolDialogElements.h.

◆ myElementsFrame

◆ myFilenameTextField

FXTextField* GNEPythonToolDialogElements::FileNameArgument::myFilenameTextField = nullptr
protected

filename textField

Definition at line 216 of file GNEPythonToolDialogElements.h.

Referenced by FileNameArgument().

◆ myOpenFilenameButton

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

filename button

Definition at line 223 of file GNEPythonToolDialogElements.h.

Referenced by FileNameArgument().

◆ myOption

Option* GNEPythonToolDialogElements::Argument::myOption = nullptr
protectedinherited

option

Definition at line 115 of file GNEPythonToolDialogElements.h.

◆ myParameterLabel

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

parameter label

Definition at line 125 of file GNEPythonToolDialogElements.h.

Referenced by GNEPythonToolDialogElements::Argument::Argument().

◆ myResetButton

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

reset button

Definition at line 128 of file GNEPythonToolDialogElements.h.

Referenced by GNEPythonToolDialogElements::Argument::Argument().

◆ myToolDialogParent

GNEPythonToolDialog* GNEPythonToolDialogElements::Argument::myToolDialogParent = nullptr
protectedinherited

tool dialog parent

Definition at line 112 of file GNEPythonToolDialogElements.h.


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