Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
InternalTestStep::DialogArgument Class Reference

dialog arguments, used for certain modal dialogs that can not be edited using tab More...

#include <InternalTestStep.h>

basic actions

enum class  Action {
  ACCEPT , CANCEL , RESET , ABORT ,
  CUSTOM , NONE
}
DialogType myType = DialogType::DEFAULT
 dialog type
Action myAction = Action::NONE
 basic action
std::string myCustomAction
 action to be carried out in the dialog
int myIndex = 0
 index
 DialogArgument (DialogType type, Action action)
 constructor for basic actions
 DialogArgument (DialogType type, const std::string &customAction)
 constructor for basic actions
 DialogArgument (DialogType type, const std::string &customAction, const int index)
 constructor for basic actions and index
 DialogArgument (DialogType type, const std::string &prefixToRemove, const std::string &customAction)
 constructor for custom actions and prefix to remove in the action
DialogType getType () const
 get type
Action getAction () const
 get basic action
const std::string & getCustomAction () const
 get custom action
int getIndex () const
 get index
 DialogArgument ()=delete
 invalidated default constructor
 DialogArgument (const DialogArgument &)=delete
 invalidated copy constructor

Detailed Description

dialog arguments, used for certain modal dialogs that can not be edited using tab

Definition at line 48 of file InternalTestStep.h.

Member Enumeration Documentation

◆ Action

Enumerator
ACCEPT 
CANCEL 
RESET 
ABORT 
CUSTOM 
NONE 

Definition at line 52 of file InternalTestStep.h.

Constructor & Destructor Documentation

◆ DialogArgument() [1/6]

InternalTestStep::DialogArgument::DialogArgument ( DialogType type,
Action action )

constructor for basic actions

Definition at line 47 of file InternalTestStep.cpp.

References myAction, and myType.

Referenced by DialogArgument(), DialogArgument(), DialogArgument(), and DialogArgument().

Here is the caller graph for this function:

◆ DialogArgument() [2/6]

InternalTestStep::DialogArgument::DialogArgument ( DialogType type,
const std::string & customAction )

constructor for basic actions

Definition at line 53 of file InternalTestStep.cpp.

References DialogArgument(), InternalTestStep::InternalTestStep(), myAction, myCustomAction, and myType.

◆ DialogArgument() [3/6]

InternalTestStep::DialogArgument::DialogArgument ( DialogType type,
const std::string & customAction,
const int index )

constructor for basic actions and index

Definition at line 60 of file InternalTestStep.cpp.

References DialogArgument(), InternalTestStep::InternalTestStep(), myAction, myCustomAction, myIndex, and myType.

◆ DialogArgument() [4/6]

InternalTestStep::DialogArgument::DialogArgument ( DialogType type,
const std::string & prefixToRemove,
const std::string & customAction )

constructor for custom actions and prefix to remove in the action

Definition at line 68 of file InternalTestStep.cpp.

References DialogArgument(), InternalTestStep::InternalTestStep(), myAction, myCustomAction, and myType.

◆ DialogArgument() [5/6]

InternalTestStep::DialogArgument::DialogArgument ( )
privatedelete

invalidated default constructor

◆ DialogArgument() [6/6]

InternalTestStep::DialogArgument::DialogArgument ( const DialogArgument & )
privatedelete

invalidated copy constructor

References DialogArgument().

Member Function Documentation

◆ getAction()

InternalTestStep::DialogArgument::Action InternalTestStep::DialogArgument::getAction ( ) const

get basic action

Definition at line 89 of file InternalTestStep.cpp.

References myAction.

◆ getCustomAction()

const std::string & InternalTestStep::DialogArgument::getCustomAction ( ) const

get custom action

Definition at line 95 of file InternalTestStep.cpp.

References myCustomAction.

Referenced by GNEColorDialog::runInternalTest(), GNEFileDialog::runInternalTest(), GNEFixElementsDialog< T >::runInternalTest(), GNEOverwriteElement::runInternalTest(), and GNEVClassesDialog::runInternalTest().

Here is the caller graph for this function:

◆ getIndex()

int InternalTestStep::DialogArgument::getIndex ( ) const

get index

Definition at line 101 of file InternalTestStep.cpp.

References myIndex.

Referenced by GNEFileDialog::runInternalTest().

Here is the caller graph for this function:

◆ getType()

DialogType InternalTestStep::DialogArgument::getType ( ) const

get type

Definition at line 83 of file InternalTestStep.cpp.

References myType.

Field Documentation

◆ myAction

Action InternalTestStep::DialogArgument::myAction = Action::NONE
protected

basic action

Definition at line 90 of file InternalTestStep.h.

Referenced by DialogArgument(), DialogArgument(), DialogArgument(), DialogArgument(), and getAction().

◆ myCustomAction

std::string InternalTestStep::DialogArgument::myCustomAction
protected

action to be carried out in the dialog

Definition at line 93 of file InternalTestStep.h.

Referenced by DialogArgument(), DialogArgument(), DialogArgument(), and getCustomAction().

◆ myIndex

int InternalTestStep::DialogArgument::myIndex = 0
protected

index

Definition at line 96 of file InternalTestStep.h.

Referenced by DialogArgument(), and getIndex().

◆ myType

DialogType InternalTestStep::DialogArgument::myType = DialogType::DEFAULT
protected

dialog type

Definition at line 87 of file InternalTestStep.h.

Referenced by DialogArgument(), DialogArgument(), DialogArgument(), DialogArgument(), and getType().


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