Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEVariableSpeedSignDialog::VariableSpeedSignStepsList Class Reference

variableSpeedSign step list More...

#include <GNEVariableSpeedSignDialog.h>

Inheritance diagram for GNEVariableSpeedSignDialog::VariableSpeedSignStepsList:
[legend]
Collaboration diagram for GNEVariableSpeedSignDialog::VariableSpeedSignStepsList:
[legend]

Public Types

enum class  Options : int {
  NONE = 1 << 0 , SORTELEMENTS = 1 << 1 , DIALOG_ELEMENT = 1 << 2 , DIALOG_VCLASS = 1 << 3 ,
  FIXED_HEIGHT = 1 << 4
}
 FOX-declaration. More...
enum  Options
 FOX-declaration. More...

Public Member Functions

long addNewElement ()
 add new element
bool checkSort () const
 check if the elements are sorted
void disableList (const std::string &reason)
 disable list
void disableList (const std::string &reason)
 disable list
void enableList ()
 enable list
void enableList ()
 enable list
const std::vector< GNEAdditional * > & getEditedElements () const
 get edited elements
long insertElement (GNEAdditional *element)
 insert element
bool isListValid () const
 check if the current list is valid
bool isListValid () const
 check if the current list is valid
bool isSorted () const
 @briec check if steps are sorted
long openElementDialog (const size_t rowIndex)
 open element dialog
long removeElement (const size_t rowIndex)
 remove element (using index)
long sortRows ()
 open dialog
long updateList ()
 update element list
 VariableSpeedSignStepsList (GNEVariableSpeedSignDialog *variableSpeedSignDialog)
 constructor
FOX callbacks
long onCmdAddRow (FXObject *sender, FXSelector, void *)
 called when user press add button
long onCmdAddRow (FXObject *sender, FXSelector, void *)
 called when user press add button
long onCmdSort (FXObject *sender, FXSelector, void *)
 called when user press sort button
long onCmdSort (FXObject *sender, FXSelector, void *)
 called when user press sort button

Protected Member Functions

void removeElementRecursively (GNEAdditional *additionalElement) const
 delete additional element recursively
void removeElementRecursively (GNEDemandElement *demandElement) const
 delete demand element recursively
void removeElementRecursively (GNEAdditional *additionalElement) const
 delete additional element recursively
void removeElementRecursively (GNEDemandElement *demandElement) const
 delete demand element recursively

Protected Attributes

std::vector< GNEAdditional * > myEditedElements
 edited elements
GNETemplateElementDialog< GNEAdditional > * myElementDialogParent
 element dialog parent
GNEElementTablemyElementTable = nullptr
 element table
GNEElementTablemyElementTable
 element table
const GNETagPropertiesmyTagProperty = nullptr
 FOX needs this.
const GNETagPropertiesmyTagProperty
 FOX needs this.

Private Types

typedef std::tuple< double, double, double, double, double, double, GNEAdditional * > SortTuple
 typedef used for sorting elements by attributes

Private Member Functions

std::vector< SortTuplegetSortTuples (const bool sort) const
 get element sorted
VariableSpeedSignStepsListoperator= (const VariableSpeedSignStepsList &)=delete
 Invalidated assignment operator.
 VariableSpeedSignStepsList (const VariableSpeedSignStepsList &)=delete
 Invalidated copy constructor.

Private Attributes

FXButton * myAddButton = nullptr
 add button
FXButton * myAddButton
 add button
FXLabel * myLabel = nullptr
 label
FXLabel * myLabel
 label
FXButton * mySortButton = nullptr
 sort button
FXButton * mySortButton
 sort button

Detailed Description

variableSpeedSign step list

Definition at line 58 of file GNEVariableSpeedSignDialog.h.

Member Typedef Documentation

◆ SortTuple

typedef std::tuple<double, double, double, double, double, double, GNEAdditional*> GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::SortTuple
privateinherited

typedef used for sorting elements by attributes

Definition at line 137 of file GNETemplateElementList.h.

Member Enumeration Documentation

◆ Options [1/2]

enum class GNEElementList::Options : int
stronginherited

FOX-declaration.

enum class for element list options

Enumerator
NONE 
SORTELEMENTS 
DIALOG_ELEMENT 
DIALOG_VCLASS 
FIXED_HEIGHT 

Definition at line 41 of file GNEElementList.h.

◆ Options [2/2]

enum GNEElementList::Options : int
stronginherited

FOX-declaration.

enum class for element list options

Definition at line 41 of file GNEElementList.h.

Constructor & Destructor Documentation

◆ VariableSpeedSignStepsList() [1/2]

GNEVariableSpeedSignDialog::VariableSpeedSignStepsList::VariableSpeedSignStepsList ( GNEVariableSpeedSignDialog * variableSpeedSignDialog)

constructor

Definition at line 81 of file GNEVariableSpeedSignDialog.cpp.

References GNETemplateElementDialog< GNEAdditional >::getContentFrame(), GNEElementList::GNEElementList(), GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::GNETemplateElementList(), GNEVariableSpeedSignDialog::GNEVariableSpeedSignDialog(), and SUMO_TAG_STEP.

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

Here is the caller graph for this function:

◆ VariableSpeedSignStepsList() [2/2]

GNEVariableSpeedSignDialog::VariableSpeedSignStepsList::VariableSpeedSignStepsList ( const VariableSpeedSignStepsList & )
privatedelete

Invalidated copy constructor.

References VariableSpeedSignStepsList().

Member Function Documentation

◆ addNewElement()

◆ checkSort()

bool GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::checkSort ( ) const
inlineinherited

check if the elements are sorted

Definition at line 77 of file GNETemplateElementList.h.

◆ disableList() [1/2]

void GNEElementList::disableList ( const std::string & reason)
inherited

disable list

Definition at line 86 of file GNEElementList.cpp.

References myAddButton, myElementTable, myLabel, and mySortButton.

◆ disableList() [2/2]

void GNEElementList::disableList ( const std::string & reason)
inherited

disable list

Definition at line 59 of file GNEElementList.cpp.

References GUIDesignLabelThick, myLabel, myTagProperty, and GNEElementList::SORTELEMENTS.

◆ enableList() [1/2]

void GNEElementList::enableList ( )
inherited

enable list

Definition at line 74 of file GNEElementList.cpp.

References myAddButton, myElementTable, myLabel, mySortButton, myTagProperty, and TLF.

◆ enableList() [2/2]

void GNEElementList::enableList ( )
inherited

enable list

Definition at line 56 of file GNEElementList.cpp.

References ADD, GUIIconSubSys::getIcon(), GUIDesignButtonIcon, MID_GNE_ELEMENTLIST_ADD, and myAddButton.

◆ getEditedElements()

const std::vector< GNEAdditional * > & GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::getEditedElements ( ) const
inlineinherited

◆ getSortTuples()

std::vector< SortTuple > GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::getSortTuples ( const bool sort) const
inlineprivateinherited

get element sorted

Definition at line 140 of file GNETemplateElementList.h.

◆ insertElement()

◆ isListValid() [1/2]

bool GNEElementList::isListValid ( ) const
inherited

check if the current list is valid

Definition at line 98 of file GNEElementList.cpp.

References myElementTable.

◆ isListValid() [2/2]

bool GNEElementList::isListValid ( ) const
inherited

check if the current list is valid

Definition at line 62 of file GNEElementList.cpp.

References GUIIconSubSys::getIcon(), GUIDesignButtonIcon, MID_GNE_ELEMENTLIST_SORT, mySortButton, and RELOAD.

◆ isSorted()

bool GNEVariableSpeedSignDialog::VariableSpeedSignStepsList::isSorted ( ) const

◆ onCmdAddRow() [1/2]

long GNEElementList::onCmdAddRow ( FXObject * sender,
FXSelector ,
void *  )
inherited

called when user press add button

Definition at line 104 of file GNEElementList.cpp.

References addNewElement().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdAddRow() [2/2]

long GNEElementList::onCmdAddRow ( FXObject * sender,
FXSelector ,
void *  )
inherited

called when user press add button

Definition at line 83 of file GNEElementList.cpp.

◆ onCmdSort() [1/2]

long GNEElementList::onCmdSort ( FXObject * sender,
FXSelector ,
void *  )
inherited

called when user press sort button

Definition at line 110 of file GNEElementList.cpp.

References sortRows().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSort() [2/2]

long GNEElementList::onCmdSort ( FXObject * sender,
FXSelector ,
void *  )
inherited

called when user press sort button

Definition at line 86 of file GNEElementList.cpp.

◆ openElementDialog()

long GNEVariableSpeedSignDialog::VariableSpeedSignStepsList::openElementDialog ( const size_t rowIndex)
virtual

◆ operator=()

VariableSpeedSignStepsList & GNEVariableSpeedSignDialog::VariableSpeedSignStepsList::operator= ( const VariableSpeedSignStepsList & )
privatedelete

Invalidated assignment operator.

References VariableSpeedSignStepsList().

◆ removeElement()

long GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::removeElement ( const size_t rowIndex)
inlinevirtualinherited

remove element (using index)

Implements GNEElementList.

Definition at line 103 of file GNETemplateElementList.h.

Referenced by GNECalibratorDialog::CalibratorFlowsList::addNewElement().

Here is the caller graph for this function:

◆ removeElementRecursively() [1/4]

void GNEElementList::removeElementRecursively ( GNEAdditional * additionalElement) const
protectedinherited

delete additional element recursively

Definition at line 116 of file GNEElementList.cpp.

References GNEUndoList::add(), GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and removeElementRecursively().

Referenced by GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::removeElement(), removeElementRecursively(), and removeElementRecursively().

Here is the caller graph for this function:

◆ removeElementRecursively() [2/4]

void GNEElementList::removeElementRecursively ( GNEDemandElement * demandElement) const
protectedinherited

◆ removeElementRecursively() [3/4]

void GNEElementList::removeElementRecursively ( GNEAdditional * additionalElement) const
protectedinherited

delete additional element recursively

Definition at line 101 of file GNEElementList.cpp.

◆ removeElementRecursively() [4/4]

void GNEElementList::removeElementRecursively ( GNEDemandElement * demandElement) const
protectedinherited

delete demand element recursively

Definition at line 104 of file GNEElementList.cpp.

◆ sortRows()

long GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::sortRows ( )
inlinevirtualinherited

open dialog

Implements GNEElementList.

Definition at line 90 of file GNETemplateElementList.h.

◆ updateList()

long GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::updateList ( )
inlinevirtualinherited

update element list

Implements GNEElementList.

Definition at line 59 of file GNETemplateElementList.h.

Field Documentation

◆ myAddButton [1/2]

FXButton* GNEElementList::myAddButton = nullptr
privateinherited

add button

Definition at line 108 of file GNEElementList.h.

Referenced by disableList(), and enableList().

◆ myAddButton [2/2]

FXButton* GNEElementList::myAddButton
privateinherited

add button

Definition at line 108 of file GNEElementList.h.

Referenced by enableList().

◆ myEditedElements

◆ myElementDialogParent

◆ myElementTable [1/2]

◆ myElementTable [2/2]

element table

Definition at line 98 of file GNEElementList.h.

◆ myLabel [1/2]

FXLabel* GNEElementList::myLabel = nullptr
privateinherited

label

Definition at line 114 of file GNEElementList.h.

Referenced by disableList(), and enableList().

◆ myLabel [2/2]

FXLabel* GNEElementList::myLabel
privateinherited

label

Definition at line 114 of file GNEElementList.h.

Referenced by disableList().

◆ mySortButton [1/2]

FXButton* GNEElementList::mySortButton = nullptr
privateinherited

sort button

Definition at line 111 of file GNEElementList.h.

Referenced by disableList(), and enableList().

◆ mySortButton [2/2]

FXButton* GNEElementList::mySortButton
privateinherited

sort button

Definition at line 111 of file GNEElementList.h.

Referenced by isListValid().

◆ myTagProperty [1/2]

const GNETagProperties* GNEElementList::myTagProperty = nullptr
protectedinherited

FOX needs this.

pointer to tag property

Definition at line 95 of file GNEElementList.h.

Referenced by enableList(), GNEElementList(), and GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::updateList().

◆ myTagProperty [2/2]

FOX needs this.

pointer to tag property

Definition at line 95 of file GNEElementList.h.

Referenced by disableList().


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