Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEElementTable::Row Class Reference

table row More...

#include <GNEElementTable.h>

Inheritance diagram for GNEElementTable::Row:
[legend]
Collaboration diagram for GNEElementTable::Row:
[legend]

Public Member Functions

void disableRow ()
 disable row
 
void enableRow ()
 enable row
 
std::string getValue (const size_t column) const
 get value of the given column index
 
bool isValid () const
 check if current value is valid
 
 Row (GNEElementTable *elementTable, const size_t rowIndex, GNEAttributeCarrier *AC)
 fox declaration
 
void updateRow (GNEAttributeCarrier *AC)
 update row
 
 ~Row ()
 destructor
 
FOX callbacks
long onCmdEditRow (FXObject *sender, FXSelector, void *)
 called when user edits a row
 
long onCmdRemoveRow (FXObject *sender, FXSelector, void *)
 called when user press remove button
 
long onCmdOpenElementDialog (FXObject *sender, FXSelector, void *)
 called when user press open element dialog button
 
long onCmdOpenVClassDialog (FXObject *sender, FXSelector, void *)
 called when user press open vClass dialog button
 

Protected Attributes

GNEAttributeCarriermyAC = nullptr
 attribute carrier
 
std::vector< std::pair< SumoXMLAttr, MFXTextFieldIcon * > > myAttributeTextFields
 list with textfields and their associated attribute
 
GNEElementTablemyElementTable = nullptr
 FOX needs this.
 
FXLabel * myIndexLabel = nullptr
 index label
 
FXButton * myOpenDialogButton = nullptr
 open dialog button
 
FXButton * myOpenVClassButton = nullptr
 open vClass button
 
FXButton * myRemoveButton = nullptr
 remove button
 
const size_t myRowIndex = 0
 index of the row
 

Private Member Functions

Rowoperator= (const Row &)=delete
 Invalidated assignment operator.
 
 Row (const Row &)=delete
 Invalidated duplicate constructor.
 

Detailed Description

table row

Definition at line 78 of file GNEElementTable.h.

Constructor & Destructor Documentation

◆ Row() [1/2]

◆ ~Row()

GNEElementTable::Row::~Row ( )

destructor

Definition at line 179 of file GNEElementTable.cpp.

◆ Row() [2/2]

GNEElementTable::Row::Row ( const Row )
privatedelete

Invalidated duplicate constructor.

Member Function Documentation

◆ disableRow()

void GNEElementTable::Row::disableRow ( )

disable row

Definition at line 200 of file GNEElementTable.cpp.

◆ enableRow()

void GNEElementTable::Row::enableRow ( )

enable row

Definition at line 183 of file GNEElementTable.cpp.

◆ getValue()

std::string GNEElementTable::Row::getValue ( const size_t  column) const

get value of the given column index

Definition at line 233 of file GNEElementTable.cpp.

◆ isValid()

bool GNEElementTable::Row::isValid ( ) const

check if current value is valid

Definition at line 245 of file GNEElementTable.cpp.

References GUIDesignBackgroundColorRed, and GUIDesignTextColorRed.

◆ onCmdEditRow()

long GNEElementTable::Row::onCmdEditRow ( FXObject *  sender,
FXSelector  ,
void *   
)

called when user edits a row

Definition at line 259 of file GNEElementTable.cpp.

References GUIDesignBackgroundColorRed, GUIDesignBackgroundColorWhite, GUIDesignTextColorBlack, and GUIDesignTextColorRed.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdOpenElementDialog()

long GNEElementTable::Row::onCmdOpenElementDialog ( FXObject *  sender,
FXSelector  ,
void *   
)

called when user press open element dialog button

Definition at line 297 of file GNEElementTable.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdOpenVClassDialog()

long GNEElementTable::Row::onCmdOpenVClassDialog ( FXObject *  sender,
FXSelector  ,
void *   
)

called when user press open vClass dialog button

Definition at line 303 of file GNEElementTable.cpp.

References GNEDialog::ACCEPT, and SUMO_ATTR_ALLOW.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdRemoveRow()

long GNEElementTable::Row::onCmdRemoveRow ( FXObject *  sender,
FXSelector  ,
void *   
)

called when user press remove button

Definition at line 291 of file GNEElementTable.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

Row & GNEElementTable::Row::operator= ( const Row )
privatedelete

Invalidated assignment operator.

◆ updateRow()

void GNEElementTable::Row::updateRow ( GNEAttributeCarrier AC)

update row

Definition at line 217 of file GNEElementTable.cpp.

References GUIDesignTextColorBlack.

Field Documentation

◆ myAC

GNEAttributeCarrier* GNEElementTable::Row::myAC = nullptr
protected

attribute carrier

Definition at line 133 of file GNEElementTable.h.

◆ myAttributeTextFields

std::vector<std::pair<SumoXMLAttr, MFXTextFieldIcon*> > GNEElementTable::Row::myAttributeTextFields
protected

list with textfields and their associated attribute

Definition at line 139 of file GNEElementTable.h.

Referenced by Row().

◆ myElementTable

GNEElementTable* GNEElementTable::Row::myElementTable = nullptr
protected

FOX needs this.

poiner to table parent

Definition at line 127 of file GNEElementTable.h.

◆ myIndexLabel

FXLabel* GNEElementTable::Row::myIndexLabel = nullptr
protected

index label

Definition at line 136 of file GNEElementTable.h.

Referenced by Row().

◆ myOpenDialogButton

FXButton* GNEElementTable::Row::myOpenDialogButton = nullptr
protected

open dialog button

Definition at line 148 of file GNEElementTable.h.

Referenced by Row().

◆ myOpenVClassButton

FXButton* GNEElementTable::Row::myOpenVClassButton = nullptr
protected

open vClass button

Definition at line 145 of file GNEElementTable.h.

Referenced by Row().

◆ myRemoveButton

FXButton* GNEElementTable::Row::myRemoveButton = nullptr
protected

remove button

Definition at line 142 of file GNEElementTable.h.

Referenced by Row().

◆ myRowIndex

const size_t GNEElementTable::Row::myRowIndex = 0
protected

index of the row

Definition at line 130 of file GNEElementTable.h.


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