![]() |
Eclipse SUMO - Simulation of Urban MObility
|
table row More...
#include <GNEElementTable.h>
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 | |
GNEAttributeCarrier * | myAC = nullptr |
attribute carrier | |
std::vector< std::pair< SumoXMLAttr, MFXTextFieldIcon * > > | myAttributeTextFields |
list with textfields and their associated attribute | |
GNEElementTable * | myElementTable = 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 | |
Row & | operator= (const Row &)=delete |
Invalidated assignment operator. | |
Row (const Row &)=delete | |
Invalidated duplicate constructor. | |
table row
Definition at line 78 of file GNEElementTable.h.
GNEElementTable::Row::Row | ( | GNEElementTable * | elementTable, |
const size_t | rowIndex, | ||
GNEAttributeCarrier * | AC | ||
) |
fox declaration
constructor
Definition at line 132 of file GNEElementTable.cpp.
References GNEElementList::DIALOG_ELEMENT, GNEElementList::DIALOG_VCLASS, EMPTY, GNEAttributeCarrier::getAttribute(), GNETagProperties::getAttributeProperties(), GNEViewParent::getGNEAppWindows(), GUIIconSubSys::getIcon(), GNEAttributeCarrier::getNet(), GUIMainWindow::getStaticTooltipMenu(), GNEAttributeCarrier::getTagProperty(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GUIDesignAuxiliarHorizontalFrameUniform, GUIDesignButtonIcon, GUIDesignLabelIconThick, GUIDesignTextField, MID_GNE_ELEMENTTABLE_DIALOG_ELEMENT, MID_GNE_ELEMENTTABLE_DIALOG_VCLASS, MID_GNE_ELEMENTTABLE_EDIT, MID_GNE_ELEMENTTABLE_REMOVE, MODEINSPECT, myAttributeTextFields, myIndexLabel, myOpenDialogButton, myOpenVClassButton, GNEElementTable::myOptions, myRemoveButton, GNEElementTable::myRowsFrame, REMOVE, and VEHICLE.
GNEElementTable::Row::~Row | ( | ) |
destructor
Definition at line 179 of file GNEElementTable.cpp.
|
privatedelete |
Invalidated duplicate constructor.
void GNEElementTable::Row::disableRow | ( | ) |
disable row
Definition at line 200 of file GNEElementTable.cpp.
void GNEElementTable::Row::enableRow | ( | ) |
enable row
Definition at line 183 of file GNEElementTable.cpp.
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.
bool GNEElementTable::Row::isValid | ( | ) | const |
check if current value is valid
Definition at line 245 of file GNEElementTable.cpp.
References GUIDesignBackgroundColorRed, and GUIDesignTextColorRed.
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().
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().
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().
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().
Invalidated assignment operator.
void GNEElementTable::Row::updateRow | ( | GNEAttributeCarrier * | AC | ) |
|
protected |
attribute carrier
Definition at line 133 of file GNEElementTable.h.
|
protected |
list with textfields and their associated attribute
Definition at line 139 of file GNEElementTable.h.
Referenced by Row().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
index of the row
Definition at line 130 of file GNEElementTable.h.