![]() |
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(), GNEElementTable::GNEElementTable(), GUIDesignAuxiliarHorizontalFrame, GUIDesignAuxiliarHorizontalFrameUniform, GUIDesignButtonIcon, GUIDesignLabelIconThick, GUIDesignTextField, MID_GNE_ELEMENTTABLE_DIALOG_ELEMENT, MID_GNE_ELEMENTTABLE_DIALOG_VCLASS, MID_GNE_ELEMENTTABLE_EDIT, MID_GNE_ELEMENTTABLE_REMOVE, MODEINSPECT, myAC, myAttributeTextFields, myElementTable, myIndexLabel, myOpenDialogButton, myOpenVClassButton, GNEElementTable::myOptions, myRemoveButton, myRowIndex, GNEElementTable::myRowsFrame, REMOVE, and VEHICLE.
Referenced by operator=(), and Row().
| GNEElementTable::Row::~Row | ( | ) |
destructor
Definition at line 179 of file GNEElementTable.cpp.
|
privatedelete |
Invalidated duplicate constructor.
References Row().
| void GNEElementTable::Row::disableRow | ( | ) |
disable row
Definition at line 200 of file GNEElementTable.cpp.
References myAttributeTextFields, myIndexLabel, myOpenDialogButton, and myRemoveButton.
| void GNEElementTable::Row::enableRow | ( | ) |
enable row
Definition at line 183 of file GNEElementTable.cpp.
References myAttributeTextFields, myIndexLabel, myOpenDialogButton, and myRemoveButton.
| 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.
References myAttributeTextFields.
Referenced by operator=().
| bool GNEElementTable::Row::isValid | ( | ) | const |
check if current value is valid
Definition at line 245 of file GNEElementTable.cpp.
References GUIDesignBackgroundColorRed, GUIDesignTextColorRed, and myAttributeTextFields.
Referenced by operator=().
| 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, GUIDesignTextColorRed, invalid_return< std::string >::value, myAC, and myAttributeTextFields.
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.
References myElementTable, and myRowIndex.
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, myAC, myAttributeTextFields, myElementTable, 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.
References myElementTable, and myRowIndex.
Referenced by FXDEFMAP().
Invalidated assignment operator.
References GNEElementTable::disableTable(), GNEElementTable::enableTable(), GNEElementTable::getColumnHeader(), getValue(), GNEElementTable::GNEElementTable(), isValid(), GNEElementTable::resizeTable(), Row(), and updateRow().
| void GNEElementTable::Row::updateRow | ( | GNEAttributeCarrier * | AC | ) |
update row
Definition at line 217 of file GNEElementTable.cpp.
References GUIDesignTextColorBlack, invalid_return< std::string >::value, myAC, and myAttributeTextFields.
Referenced by operator=().
|
protected |
attribute carrier
Definition at line 133 of file GNEElementTable.h.
Referenced by onCmdEditRow(), onCmdOpenVClassDialog(), Row(), and updateRow().
|
protected |
list with textfields and their associated attribute
Definition at line 139 of file GNEElementTable.h.
Referenced by disableRow(), enableRow(), getValue(), isValid(), onCmdEditRow(), onCmdOpenVClassDialog(), Row(), and updateRow().
|
protected |
FOX needs this.
poiner to table parent
Definition at line 127 of file GNEElementTable.h.
Referenced by onCmdOpenElementDialog(), onCmdOpenVClassDialog(), onCmdRemoveRow(), and Row().
|
protected |
index label
Definition at line 136 of file GNEElementTable.h.
Referenced by disableRow(), enableRow(), and Row().
|
protected |
open dialog button
Definition at line 148 of file GNEElementTable.h.
Referenced by disableRow(), enableRow(), and Row().
|
protected |
|
protected |
remove button
Definition at line 142 of file GNEElementTable.h.
Referenced by disableRow(), enableRow(), and Row().
|
protected |
index of the row
Definition at line 130 of file GNEElementTable.h.
Referenced by onCmdOpenElementDialog(), onCmdRemoveRow(), and Row().