Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEElementList Class Referenceabstract

#include <GNEElementList.h>

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

virtual long addNewElement ()=0
 add element
 
void disableList (const std::string &reason)
 disable list
 
void enableList ()
 enable list
 
 GNEElementList (FXVerticalFrame *contentFrame, const GNETagProperties *tagProperty, GNEElementList::Options options)
 constructor
 
bool isListValid () const
 check if the current list is valid
 
virtual long openElementDialog (const size_t rowIndex)=0
 open element dialog
 
virtual long removeElement (const size_t rowIndex)=0
 remove element
 
virtual long sortRows ()=0
 open dialog
 
virtual long updateList ()=0
 update element list
 
 ~GNEElementList ()
 destructor
 
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

GNEElementTablemyElementTable = nullptr
 element table
 
const GNETagPropertiesmyTagProperty = nullptr
 FOX needs this.
 

Private Member Functions

 GNEElementList (const GNEElementList &)=delete
 Invalidated copy constructor.
 
GNEElementListoperator= (const GNEElementList &)=delete
 Invalidated assignment operator.
 

Private Attributes

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

Detailed Description

Definition at line 35 of file GNEElementList.h.

Member Enumeration Documentation

◆ Options

enum class GNEElementList::Options : int
strong

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

◆ GNEElementList() [1/2]

GNEElementList::GNEElementList ( FXVerticalFrame *  contentFrame,
const GNETagProperties tagProperty,
GNEElementList::Options  options 
)

◆ ~GNEElementList()

GNEElementList::~GNEElementList ( )

destructor

Definition at line 70 of file GNEElementList.cpp.

◆ GNEElementList() [2/2]

GNEElementList::GNEElementList ( const GNEElementList )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ addNewElement()

◆ disableList()

◆ enableList()

void GNEElementList::enableList ( )

◆ isListValid()

bool GNEElementList::isListValid ( ) const

check if the current list is valid

Definition at line 94 of file GNEElementList.cpp.

References GNEElementTable::isValid(), and myElementTable.

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

Here is the caller graph for this function:

◆ onCmdAddRow()

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

called when user press add button

Definition at line 100 of file GNEElementList.cpp.

References addNewElement().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSort()

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

called when user press sort button

Definition at line 106 of file GNEElementList.cpp.

References sortRows().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openElementDialog()

◆ operator=()

GNEElementList & GNEElementList::operator= ( const GNEElementList )
privatedelete

Invalidated assignment operator.

◆ removeElement()

◆ removeElementRecursively() [1/2]

void GNEElementList::removeElementRecursively ( GNEAdditional additionalElement) const
protected

delete additional element recursively

Definition at line 112 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/2]

void GNEElementList::removeElementRecursively ( GNEDemandElement demandElement) const
protected

◆ sortRows()

virtual long GNEElementList::sortRows ( )
pure virtual

open dialog

Implemented in GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >, GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >, and GNETemplateElementList< GNEAdditional, GNEDemandElement, GNEChange_DemandElement >.

Referenced by onCmdSort().

Here is the caller graph for this function:

◆ updateList()

Field Documentation

◆ myAddButton

FXButton* GNEElementList::myAddButton = nullptr
private

add button

Definition at line 108 of file GNEElementList.h.

Referenced by disableList(), and enableList().

◆ myElementTable

◆ myLabel

FXLabel* GNEElementList::myLabel = nullptr
private

label

Definition at line 114 of file GNEElementList.h.

Referenced by disableList(), and enableList().

◆ mySortButton

FXButton* GNEElementList::mySortButton = nullptr
private

sort button

Definition at line 111 of file GNEElementList.h.

Referenced by disableList(), and enableList().

◆ myTagProperty

const GNETagProperties* GNEElementList::myTagProperty = nullptr
protected

FOX needs this.

pointer to tag property

Definition at line 95 of file GNEElementList.h.

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


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