![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameAttributesModuls.h>
Public Member Functions | |
AttributesEditor (GNEFrame *inspectorFrameParent) | |
FOX-declaration. More... | |
const std::vector< GNEAttributeCarrier * > & | getEditedACs () const |
get current edited ACs More... | |
GNEFrame * | getFrameParent () const |
pointer to GNEFrame parent More... | |
void | hideAttributesEditorModul () |
hide attribute editor More... | |
void | refreshAttributeEditor (bool forceRefreshShape, bool forceRefreshPosition) |
refresh attribute editor (only the valid values will be refresh) More... | |
void | removeEditedAC (GNEAttributeCarrier *AC) |
remove edited ACs More... | |
void | showAttributeEditorModul (const std::vector< GNEAttributeCarrier *> &ACs, bool includeExtended) |
show attributes of multiple ACs More... | |
FOX-callbacks | |
Called when user press the help button | |
long | onCmdAttributesEditorHelp (FXObject *, FXSelector, void *) |
Protected Member Functions | |
AttributesEditor () | |
FOX needs this. More... | |
Private Attributes | |
std::vector< AttributesEditorRow * > | myAttributesEditorRows |
list of Attribute editor rows More... | |
std::vector< GNEAttributeCarrier * > | myEditedACs |
the multi-selection currently being inspected More... | |
GNEFrame * | myFrameParent |
pointer to GNEFrame parent More... | |
FXButton * | myHelpButton |
button for help More... | |
bool | myIncludeExtended |
flag used to mark if current edited ACs are bein edited including extended attribute More... | |
Definition at line 305 of file GNEFrameAttributesModuls.h.
GNEFrameAttributesModuls::AttributesEditor::AttributesEditor | ( | GNEFrame * | inspectorFrameParent | ) |
FOX-declaration.
constructor
Definition at line 1417 of file GNEFrameAttributesModuls.cpp.
References GUIDesignButtonRectangular, GNEAttributeCarrier::MAXNUMBEROFATTRIBUTES, MID_HELP, myAttributesEditorRows, and myHelpButton.
|
inlineprotected |
FOX needs this.
Definition at line 339 of file GNEFrameAttributesModuls.h.
const std::vector< GNEAttributeCarrier * > & GNEFrameAttributesModuls::AttributesEditor::getEditedACs | ( | ) | const |
get current edited ACs
Definition at line 1546 of file GNEFrameAttributesModuls.cpp.
References myEditedACs.
Referenced by GNEInspectorFrame::clearInspectedAC(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdDeleteItem(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdOpenAttributeDialog(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSelectRadioButton(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), GNEInspectorFrame::TemplateEditor::onCmdSetTemplate(), GNEInspectorFrame::TemplateEditor::onUpdCopyTemplate(), GNEViewNet::openObjectDialog(), GNEInspectorFrame::GEOAttributesEditor::refreshGEOAttributesEditor(), GNEInspectorFrame::NeteditAttributesEditor::refreshNeteditAttributesEditor(), GNEInspectorFrame::GEOAttributesEditor::showGEOAttributesEditor(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), and GNEInspectorFrame::TemplateEditor::showTemplateEditor().
GNEFrame * GNEFrameAttributesModuls::AttributesEditor::getFrameParent | ( | ) | const |
pointer to GNEFrame parent
Definition at line 1540 of file GNEFrameAttributesModuls.cpp.
References myFrameParent.
Referenced by GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdOpenAttributeDialog(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSelectRadioButton(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute(), and GNEFrameAttributesModuls::AttributesEditorRow::refreshAttributesEditorRow().
void GNEFrameAttributesModuls::AttributesEditor::hideAttributesEditorModul | ( | ) |
hide attribute editor
Definition at line 1492 of file GNEFrameAttributesModuls.cpp.
References myEditedACs.
Referenced by GNEInspectorFrame::inspectMultisection(), GNEPersonTypeFrame::PersonTypeSelector::onCmdSelectItem(), and GNEVehicleTypeFrame::VehicleTypeSelector::onCmdSelectItem().
long GNEFrameAttributesModuls::AttributesEditor::onCmdAttributesEditorHelp | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 1571 of file GNEFrameAttributesModuls.cpp.
References myEditedACs, myFrameParent, and GNEFrame::openHelpAttributesDialog().
void GNEFrameAttributesModuls::AttributesEditor::refreshAttributeEditor | ( | bool | forceRefreshShape, |
bool | forceRefreshPosition | ||
) |
refresh attribute editor (only the valid values will be refresh)
Definition at line 1501 of file GNEFrameAttributesModuls.cpp.
References myAttributesEditorRows, myEditedACs, SUMO_ATTR_POSITION, and SUMO_ATTR_SHAPE.
Referenced by GNEInspectorFrame::attributeUpdated(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSelectRadioButton(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), and GNEInspectorFrame::updateFrameAfterUndoRedo().
void GNEFrameAttributesModuls::AttributesEditor::removeEditedAC | ( | GNEAttributeCarrier * | AC | ) |
remove edited ACs
Definition at line 1552 of file GNEFrameAttributesModuls.cpp.
References myEditedACs, myIncludeExtended, showAttributeEditorModul(), toString(), and WRITE_DEBUG.
Referenced by GNENet::deleteAdditional(), GNENet::deleteDemandElement(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GNENet::removePolygonForEditShapes(), and GNENet::removeShape().
void GNEFrameAttributesModuls::AttributesEditor::showAttributeEditorModul | ( | const std::vector< GNEAttributeCarrier *> & | ACs, |
bool | includeExtended | ||
) |
show attributes of multiple ACs
Definition at line 1429 of file GNEFrameAttributesModuls.cpp.
References NBConnection::InvalidTlIndex, myAttributesEditorRows, myEditedACs, myHelpButton, myIncludeExtended, SUMO_ATTR_TLLINKINDEX, SUMO_TAG_CONNECTION, and toString().
Referenced by GNEVehicleTypeFrame::attributesEditorExtendedDialogOpened(), GNEInspectorFrame::inspectMultisection(), GNEPersonTypeFrame::PersonTypeSelector::onCmdSelectItem(), GNEVehicleTypeFrame::VehicleTypeSelector::onCmdSelectItem(), GNEPersonTypeFrame::PersonTypeSelector::refreshPersonTypeSelector(), GNEVehicleTypeFrame::VehicleTypeSelector::refreshVehicleTypeSelector(), removeEditedAC(), GNEPersonTypeFrame::show(), and GNEVehicleTypeFrame::show().
|
private |
list of Attribute editor rows
Definition at line 346 of file GNEFrameAttributesModuls.h.
Referenced by AttributesEditor(), refreshAttributeEditor(), and showAttributeEditorModul().
|
private |
the multi-selection currently being inspected
Definition at line 352 of file GNEFrameAttributesModuls.h.
Referenced by getEditedACs(), hideAttributesEditorModul(), onCmdAttributesEditorHelp(), refreshAttributeEditor(), removeEditedAC(), and showAttributeEditorModul().
|
private |
pointer to GNEFrame parent
Definition at line 343 of file GNEFrameAttributesModuls.h.
Referenced by getFrameParent(), and onCmdAttributesEditorHelp().
|
private |
button for help
Definition at line 349 of file GNEFrameAttributesModuls.h.
Referenced by AttributesEditor(), and showAttributeEditorModul().
|
private |
flag used to mark if current edited ACs are bein edited including extended attribute
Definition at line 355 of file GNEFrameAttributesModuls.h.
Referenced by removeEditedAC(), and showAttributeEditorModul().