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

edge vector argument More...

#include <GNEPythonToolDialogElements.h>

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

Public Member Functions

 EdgeVectorArgument (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 onCmdSetValue (FXObject *, FXSelector, void *)
 Called when user changes argument value.
long onCmdUseCurrent (FXObject *, FXSelector, void *)
 Called when user press use seleted edges button.
long onUpdUseCurrent (FXObject *sender, FXSelector, void *)
 enable or disable use selected edges button
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

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

Protected Attributes

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

Private Member Functions

 EdgeVectorArgument (const EdgeVectorArgument &)=delete
 Invalidated copy constructor.
EdgeVectorArgumentoperator= (const EdgeVectorArgument &)=delete
 Invalidated assignment operator.

Private Attributes

MFXButtonTooltipmyCurrentEdgesButton = nullptr
 current edges button
MFXLabelTooltipmyParameterLabel = nullptr
 parameter label
FXButton * myResetButton = nullptr
 reset button

Detailed Description

edge vector argument

Definition at line 139 of file GNEPythonToolDialogElements.h.

Constructor & Destructor Documentation

◆ EdgeVectorArgument() [1/3]

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

FOX-declaration.

constructor

Definition at line 270 of file GNEPythonToolDialogElements.cpp.

References GNEPythonToolDialogElements::Argument::Argument(), EDGE, GUIIconSubSys::getIcon(), GUIMainWindow::getStaticTooltipMenu(), Option::getValueString(), GUIDesignButtonIcon, GUIDesignTextField, GUIDesignTextFieldNCol, MID_GNE_SET_ATTRIBUTE, MID_GNE_USE_CURRENT, myCurrentEdgesButton, myEdgeVectorTextField, GNEPythonToolDialogElements::Argument::myElementsFrame, and TL.

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

Here is the caller graph for this function:

◆ EdgeVectorArgument() [2/3]

GNEPythonToolDialogElements::EdgeVectorArgument::EdgeVectorArgument ( )
protected

FOX need this.

Definition at line 334 of file GNEPythonToolDialogElements.cpp.

◆ EdgeVectorArgument() [3/3]

GNEPythonToolDialogElements::EdgeVectorArgument::EdgeVectorArgument ( const EdgeVectorArgument & )
privatedelete

Invalidated copy constructor.

References EdgeVectorArgument().

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::EdgeVectorArgument::getValue ( ) const
protectedvirtual

get value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 338 of file GNEPythonToolDialogElements.cpp.

References myEdgeVectorTextField.

◆ 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::EdgeVectorArgument::onCmdSetValue ( FXObject * ,
FXSelector ,
void *  )
virtual

Called when user changes argument value.

Implements GNEPythonToolDialogElements::Argument.

Definition at line 292 of file GNEPythonToolDialogElements.cpp.

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

◆ onCmdUseCurrent()

long GNEPythonToolDialogElements::EdgeVectorArgument::onCmdUseCurrent ( FXObject * ,
FXSelector ,
void *  )

Called when user press use seleted edges button.

Definition at line 304 of file GNEPythonToolDialogElements.cpp.

References myEdgeVectorTextField, and GNEPythonToolDialogElements::Argument::myToolDialogParent.

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:

◆ onUpdUseCurrent()

long GNEPythonToolDialogElements::EdgeVectorArgument::onUpdUseCurrent ( FXObject * sender,
FXSelector ,
void *  )

enable or disable use selected edges button

Definition at line 321 of file GNEPythonToolDialogElements.cpp.

References GNEPythonToolDialogElements::Argument::myToolDialogParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

References EdgeVectorArgument().

◆ 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::EdgeVectorArgument::reset ( )
virtual

reset to default value

Implements GNEPythonToolDialogElements::Argument.

Definition at line 284 of file GNEPythonToolDialogElements.cpp.

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

Referenced by onCmdSetValue().

Here is the caller graph for this function:

Field Documentation

◆ myCurrentEdgesButton

MFXButtonTooltip* GNEPythonToolDialogElements::EdgeVectorArgument::myCurrentEdgesButton = nullptr
private

current edges button

Definition at line 173 of file GNEPythonToolDialogElements.h.

Referenced by EdgeVectorArgument().

◆ myDefaultValue

◆ myEdgeVectorTextField

FXTextField* GNEPythonToolDialogElements::EdgeVectorArgument::myEdgeVectorTextField = nullptr
protected

edge vectgor textField

Definition at line 169 of file GNEPythonToolDialogElements.h.

Referenced by EdgeVectorArgument(), getValue(), onCmdSetValue(), onCmdUseCurrent(), and reset().

◆ myElementsFrame

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