Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNERerouterIntervalDialog::ClosingReroutesList Class Reference

closing reroutes list More...

#include <GNERerouterIntervalDialog.h>

Inheritance diagram for GNERerouterIntervalDialog::ClosingReroutesList:
[legend]
Collaboration diagram for GNERerouterIntervalDialog::ClosingReroutesList:
[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...
 

Public Member Functions

long addNewElement ()
 add new element
 
bool checkSort () const
 check if the elements are sorted
 
 ClosingReroutesList (GNERerouterIntervalDialog *rerouterIntervalDialog, FXVerticalFrame *contentFrame)
 constructor
 
void disableList (const std::string &reason)
 disable 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
 
long openElementDialog (const size_t rowIndex)
 open element dialog
 
long removeElement (const GNEAdditional *element)
 remove element
 
long removeElement (const size_t rowIndex)
 remove element (using index)
 
long sortRows ()
 open dialog
 
long updateList ()
 update element list
 
FOX callbacks
long onCmdAddRow (FXObject *sender, FXSelector, void *)
 called when user press add 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
 

Protected Attributes

std::vector< GNEAdditional * > myEditedElements
 edited elements
 
GNETemplateElementDialog< GNEAdditional > * myElementDialogParent
 element dialog parent
 
GNEElementTablemyElementTable = nullptr
 element table
 
const GNETagPropertiesmyTagProperty = nullptr
 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

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

Private Attributes

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

Detailed Description

closing reroutes list

Definition at line 58 of file GNERerouterIntervalDialog.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

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.

Constructor & Destructor Documentation

◆ ClosingReroutesList() [1/2]

GNERerouterIntervalDialog::ClosingReroutesList::ClosingReroutesList ( GNERerouterIntervalDialog rerouterIntervalDialog,
FXVerticalFrame *  contentFrame 
)

◆ ClosingReroutesList() [2/2]

GNERerouterIntervalDialog::ClosingReroutesList::ClosingReroutesList ( const ClosingReroutesList )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ addNewElement()

long GNERerouterIntervalDialog::ClosingReroutesList::addNewElement ( )
virtual

◆ 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()

◆ enableList()

◆ getEditedElements()

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

get edited elements

Definition at line 46 of file GNETemplateElementList.h.

◆ 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()

long GNETemplateElementList< GNEAdditional , GNEAdditional , GNEChange_Additional >::insertElement ( GNEAdditional element)
inlineinherited

insert element

Definition at line 51 of file GNETemplateElementList.h.

◆ isListValid()

bool GNEElementList::isListValid ( ) const
inherited

check if the current list is valid

Definition at line 98 of file GNEElementList.cpp.

References GNEElementTable::isValid(), and GNEElementList::myElementTable.

Referenced by GNECalibratorDialog::onCmdAccept(), and GNERerouterIntervalDialog::onCmdAccept().

Here is the caller graph for this function:

◆ onCmdAddRow()

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

called when user press add button

Definition at line 104 of file GNEElementList.cpp.

References GNEElementList::addNewElement().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSort()

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

called when user press sort button

Definition at line 110 of file GNEElementList.cpp.

References GNEElementList::sortRows().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openElementDialog()

long GNERerouterIntervalDialog::ClosingReroutesList::openElementDialog ( const size_t  rowIndex)
virtual

◆ operator=()

ClosingReroutesList & GNERerouterIntervalDialog::ClosingReroutesList::operator= ( const ClosingReroutesList )
privatedelete

Invalidated assignment operator.

◆ removeElement() [1/2]

long GNETemplateElementList< GNEAdditional , GNEAdditional , GNEChange_Additional >::removeElement ( const GNEAdditional element)
inlineinherited

remove element

Definition at line 111 of file GNETemplateElementList.h.

◆ removeElement() [2/2]

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.

◆ removeElementRecursively() [1/2]

void GNEElementList::removeElementRecursively ( GNEAdditional additionalElement) const
protectedinherited

◆ removeElementRecursively() [2/2]

void GNEElementList::removeElementRecursively ( GNEDemandElement demandElement) const
protectedinherited

◆ 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

FXButton* GNEElementList::myAddButton = nullptr
privateinherited

add button

Definition at line 108 of file GNEElementList.h.

Referenced by GNEElementList::disableList(), and GNEElementList::enableList().

◆ myEditedElements

std::vector<GNEAdditional *> GNETemplateElementList< GNEAdditional , GNEAdditional , GNEChange_Additional >::myEditedElements
protectedinherited

edited elements

Definition at line 133 of file GNETemplateElementList.h.

◆ myElementDialogParent

element dialog parent

Definition at line 130 of file GNETemplateElementList.h.

◆ myElementTable

◆ myLabel

FXLabel* GNEElementList::myLabel = nullptr
privateinherited

label

Definition at line 114 of file GNEElementList.h.

Referenced by GNEElementList::disableList(), and GNEElementList::enableList().

◆ mySortButton

FXButton* GNEElementList::mySortButton = nullptr
privateinherited

sort button

Definition at line 111 of file GNEElementList.h.

Referenced by GNEElementList::disableList(), and GNEElementList::enableList().

◆ myTagProperty

const GNETagProperties* GNEElementList::myTagProperty = nullptr
protectedinherited

FOX needs this.

pointer to tag property

Definition at line 95 of file GNEElementList.h.

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


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