![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEInspectorFrame.h>


Data Structures | |
| class | AttributesEditor |
| FOX-declaration. More... | |
| class | GEOAttributesEditor |
| class | NeteditAttributesEditor |
| class | TemplateEditor |
Public Member Functions | |
| void | clearInspectedAC () |
| Clear all current inspected ACs. More... | |
| void | focusUpperElement () |
| focus upper element of frame More... | |
| GNEFrame::ACHierarchy * | getACHierarchy () const |
| get ACHierarchy More... | |
| FXFont * | getFrameHeaderFont () const |
| get font of the header's frame More... | |
| FXLabel * | getFrameHeaderLabel () const |
| get the label for the frame's header More... | |
| const std::vector< GNEAttributeCarrier * > & | getInspectedACs () const |
| get current list of inspected ACs More... | |
| TemplateEditor * | getTemplateEditor () const |
| get template editor More... | |
| GNEViewNet * | getViewNet () const |
| get view net More... | |
| GNEInspectorFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet) | |
| Constructor. More... | |
| void | hide () |
| hide inspector frame More... | |
| void | inspectChild (GNEAttributeCarrier *AC, GNEAttributeCarrier *previousElement) |
| inspect child of already inspected element More... | |
| void | inspectElement (GNEAttributeCarrier *AC) |
| Inspect a single element. More... | |
| void | inspectFromDeleteFrame (GNEAttributeCarrier *AC, GNEAttributeCarrier *previousElement, bool previousElementWasMarked) |
| inspect called from DeleteFrame More... | |
| void | inspectMultisection (const std::vector< GNEAttributeCarrier *> &ACs) |
| Inspect the given multi-selection. More... | |
| void | removeInspectedAC (GNEAttributeCarrier *ac) |
| remove AC from current inspected ACs More... | |
| void | setFrameWidth (int newWidth) |
| set width of GNEFrame More... | |
| void | show () |
| show inspector frame More... | |
| ~GNEInspectorFrame () | |
| Destructor. More... | |
FOX-callbacks | |
| long | onCmdGoBack (FXObject *, FXSelector, void *) |
| called when user toogle the go back button More... | |
Protected Member Functions | |
| GNEInspectorFrame () | |
| FOX needs this. More... | |
| void | openHelpAttributesDialog (SumoXMLTag tag) const |
| Open help attributes dialog. More... | |
Protected Attributes | |
| FXVerticalFrame * | myContentFrame |
| Vertical frame that holds all widgets of frame. More... | |
| FXHorizontalFrame * | myHeaderFrame |
| fame for header elements More... | |
| FXHorizontalFrame * | myHeaderLeftFrame |
| fame for left header elements More... | |
| FXHorizontalFrame * | myHeaderRightFrame |
| fame for right header elements More... | |
| GNEViewNet * | myViewNet |
| View Net for changes. More... | |
Private Attributes | |
| GNEFrame::ACHierarchy * | myACHierarchy |
| Attribute Carrier Hierarchy. More... | |
| AttributesEditor * | myAttributesEditor |
| Attribute editor. More... | |
| FXButton * | myBackButton |
| back Button More... | |
| GenericParametersEditor * | myGenericParametersEditor |
| Generic parameters editor. More... | |
| GEOAttributesEditor * | myGEOAttributesEditor |
| GEO Attributes editor. More... | |
| std::vector< GNEAttributeCarrier * > | myInspectedACs |
| the multi-selection currently being inspected More... | |
| NeteditAttributesEditor * | myNeteditAttributesEditor |
| Netedit Attributes editor. More... | |
| GNEAttributeCarrier * | myPreviousElementDelete |
| pointer to previous element called by Delete Frame More... | |
| bool | myPreviousElementDeleteWasMarked |
| flag to ckec if myPreviousElementDelete was marked in Delete Frame More... | |
| GNEAttributeCarrier * | myPreviousElementInspect |
| pointer to previous element called by Inspector Frame More... | |
| TemplateEditor * | myTemplateEditor |
| Template editor. More... | |
The Widget for modifying network-element attributes (i.e. lane speed)
Definition at line 44 of file GNEInspectorFrame.h.
| GNEInspectorFrame::GNEInspectorFrame | ( | FXHorizontalFrame * | horizontalFrameParent, |
| GNEViewNet * | viewNet | ||
| ) |
Constructor.
parent FXHorizontalFrame in which this GNEFrame is placed viewNet viewNet that uses this GNEFrame
Definition at line 105 of file GNEInspectorFrame.cpp.
References GUIIconSubSys::getIcon(), GUIDesignButtonIconRectangular, ICON_NETEDITARROW, and MID_GNE_INSPECTORFRAME_GOBACK.
| GNEInspectorFrame::~GNEInspectorFrame | ( | ) |
Destructor.
Definition at line 135 of file GNEInspectorFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 437 of file GNEInspectorFrame.h.
| void GNEInspectorFrame::clearInspectedAC | ( | ) |
Clear all current inspected ACs.
Definition at line 287 of file GNEInspectorFrame.cpp.
References inspectMultisection(), myInspectedACs, GNEFrame::myViewNet, and GNEViewNet::setACUnderCursor().
Referenced by GNENet::computeAndUpdate().
|
inherited |
focus upper element of frame
Definition at line 735 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEViewNet::hotkeyFocusFrame(), GNEViewNet::onLeftBtnPress(), GNEViewNet::setEditMode(), and GNEViewNet::updateModeSpecificControls().
| GNEFrame::ACHierarchy * GNEInspectorFrame::getACHierarchy | ( | ) | const |
get ACHierarchy
Definition at line 300 of file GNEInspectorFrame.cpp.
References myACHierarchy.
Referenced by GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_Additional::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Junction::undo(), GNEChange_Shape::undo(), GNEChange_Additional::undo(), GNEChange_Connection::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), and GNEChange_Crossing::undo().
|
inherited |
get font of the header's frame
Definition at line 778 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 772 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and inspectMultisection().
| const std::vector< GNEAttributeCarrier * > & GNEInspectorFrame::getInspectedACs | ( | ) | const |
get current list of inspected ACs
Definition at line 328 of file GNEInspectorFrame.cpp.
References myInspectedACs.
Referenced by GNEInspectorFrame::AttributesEditor::onCmdAttributeHelp(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNEFrame::ACHierarchy::onCmdDeleteItem(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdOpenAttributeDialog(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), GNEInspectorFrame::TemplateEditor::onCmdSetTemplate(), GNEInspectorFrame::TemplateEditor::onUpdCopyTemplate(), GNEInspectorFrame::AttributesEditor::refreshAttributeEditor(), GNEInspectorFrame::GEOAttributesEditor::refreshGEOAttributesEditor(), GNEInspectorFrame::NeteditAttributesEditor::refreshNeteditAttributesEditor(), GNEInspectorFrame::AttributesEditor::showAttributeEditor(), GNEInspectorFrame::GEOAttributesEditor::showGEOAttributesEditor(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), and GNEInspectorFrame::TemplateEditor::showTemplateEditor().
| GNEInspectorFrame::TemplateEditor * GNEInspectorFrame::getTemplateEditor | ( | ) | const |
get template editor
Definition at line 306 of file GNEInspectorFrame.cpp.
References myTemplateEditor.
Referenced by GNEViewNet::onLeftBtnPress().
|
inherited |
get view net
Definition at line 766 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNEPolygonFrame::DrawingMode::abortDrawing(), GNETLSEditorFrame::TLSFile::checkTLSValids(), GNEFrame::ACHierarchy::createPopUpMenu(), GNECrossingFrame::edgesSelector::enableEdgeSelector(), GNETLSEditorFrame::TLSFile::myStartElement(), GNEFrame::ACHierarchy::onCmdCenterItem(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNEFrame::ACHierarchy::onCmdDeleteItem(), GNEFrame::GenericParametersEditor::onCmdEditGenericParameter(), GNEFrame::ACHierarchy::onCmdInspectItem(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdOpenAttributeDialog(), GNESelectorFrame::VisualScaling::onCmdScaleSelection(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute(), GNECrossingFrame::crossingParameters::onCmdSetAttribute(), GNEFrame::GenericParametersEditor::onCmdSetGenericParameter(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), GNEAdditionalFrame::SelectorParentAdditional::refreshListOfAdditionalParents(), GNEDeleteFrame::removeAttributeCarrier(), GNECrossingFrame::edgesSelector::restoreEdgeColors(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEAdditionalFrame::SelectorParentEdges::showList(), GNEAdditionalFrame::SelectorParentLanes::showList(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), GNEAdditionalFrame::AdditionalAttributes::showWarningMessage(), GNEPolygonFrame::ShapeAttributes::showWarningMessage(), GNEPolygonFrame::DrawingMode::stopDrawing(), GNESelectorFrame::LockGLObjectTypes::updateLockGLObjectTypes(), GNEAdditionalFrame::SelectorParentEdges::updateUseSelectedEdges(), and GNEAdditionalFrame::SelectorParentLanes::updateUseSelectedLanes().
|
virtual |
hide inspector frame
Reimplemented from GNEFrame.
Definition at line 146 of file GNEInspectorFrame.cpp.
References GNEFrame::hide(), myInspectedACs, GNEFrame::myViewNet, and GNEViewNet::setACUnderCursor().
Referenced by GNEInspectorFrame::AttributesEditor::AttributeInput::hideAttribute(), GNEInspectorFrame::AttributesEditor::hideAttributesEditor(), GNEInspectorFrame::GEOAttributesEditor::hideGEOAttributesEditor(), GNEInspectorFrame::NeteditAttributesEditor::hideNeteditAttributesEditor(), GNEInspectorFrame::TemplateEditor::hideTemplateEditor(), and onCmdGoBack().
| void GNEInspectorFrame::inspectChild | ( | GNEAttributeCarrier * | AC, |
| GNEAttributeCarrier * | previousElement | ||
| ) |
inspect child of already inspected element
Definition at line 240 of file GNEInspectorFrame.cpp.
References inspectElement(), myBackButton, GNEFrame::myHeaderLeftFrame, myPreviousElementDelete, and myPreviousElementInspect.
Referenced by GNEFrame::ACHierarchy::onCmdInspectItem().
| void GNEInspectorFrame::inspectElement | ( | GNEAttributeCarrier * | AC | ) |
Inspect a single element.
Definition at line 154 of file GNEInspectorFrame.cpp.
References GNEViewNet::getNet(), GNENet::getSelectedAttributeCarriers(), GNEAttributeCarrier::getTag(), inspectMultisection(), GNEAttributeCarrier::isAttributeCarrierSelected(), GNEFrame::myViewNet, and GNEViewNet::setACUnderCursor().
Referenced by inspectChild(), inspectFromDeleteFrame(), GNEFrame::ACHierarchy::onCmdDeleteItem(), onCmdGoBack(), GNEViewNet::onLeftBtnPress(), and show().
| void GNEInspectorFrame::inspectFromDeleteFrame | ( | GNEAttributeCarrier * | AC, |
| GNEAttributeCarrier * | previousElement, | ||
| bool | previousElementWasMarked | ||
| ) |
inspect called from DeleteFrame
Definition at line 254 of file GNEInspectorFrame.cpp.
References inspectElement(), myBackButton, GNEFrame::myHeaderLeftFrame, myPreviousElementDelete, myPreviousElementDeleteWasMarked, and myPreviousElementInspect.
| void GNEInspectorFrame::inspectMultisection | ( | const std::vector< GNEAttributeCarrier *> & | ACs | ) |
Inspect the given multi-selection.
Definition at line 175 of file GNEInspectorFrame.cpp.
References GNEFrame::getFrameHeaderLabel(), GNEFrame::ACHierarchy::hideACHierarchy(), GNEInspectorFrame::AttributesEditor::hideAttributesEditor(), GNEFrame::GenericParametersEditor::hideGenericParametersEditor(), GNEInspectorFrame::GEOAttributesEditor::hideGEOAttributesEditor(), GNEInspectorFrame::NeteditAttributesEditor::hideNeteditAttributesEditor(), GNEInspectorFrame::TemplateEditor::hideTemplateEditor(), myACHierarchy, myAttributesEditor, myBackButton, GNEFrame::myContentFrame, myGenericParametersEditor, myGEOAttributesEditor, GNEFrame::myHeaderLeftFrame, myInspectedACs, myNeteditAttributesEditor, myTemplateEditor, GNEFrame::ACHierarchy::showACHierarchy(), GNEInspectorFrame::AttributesEditor::showAttributeEditor(), GNEFrame::GenericParametersEditor::showGenericParametersEditor(), GNEInspectorFrame::GEOAttributesEditor::showGEOAttributesEditor(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), GNEInspectorFrame::TemplateEditor::showTemplateEditor(), and toString().
Referenced by clearInspectedAC(), inspectElement(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), and removeInspectedAC().
| long GNEInspectorFrame::onCmdGoBack | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user toogle the go back button
Definition at line 312 of file GNEInspectorFrame.cpp.
References GNEViewParent::getDeleteFrame(), GNEViewNet::getViewParent(), hide(), inspectElement(), myPreviousElementDelete, myPreviousElementInspect, GNEFrame::myViewNet, and GNEDeleteFrame::show().
|
protectedinherited |
Open help attributes dialog.
Definition at line 784 of file GNEFrame.cpp.
References GUIIconSubSys::getIcon(), GNEAttributeCarrier::getTagProperties(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonOK, GUIDesignDialogBoxResizable, GUIDesignHorizontalSeparator, GUIDesignTableNotEditable, ICON_ACCEPT, ICON_MODEINSPECT, MAX2(), MID_TABLE, GNEFrame::myScrollWindowsContents, toString(), and WRITE_DEBUG.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::AttributesEditor::onCmdAttributeHelp(), GNECrossingFrame::crossingParameters::onCmdHelp(), GNEAdditionalFrame::AdditionalAttributes::onCmdHelp(), and GNEPolygonFrame::ShapeAttributes::onCmdHelp().
| void GNEInspectorFrame::removeInspectedAC | ( | GNEAttributeCarrier * | ac | ) |
remove AC from current inspected ACs
Definition at line 268 of file GNEInspectorFrame.cpp.
References inspectMultisection(), myInspectedACs, toString(), and WRITE_DEBUG.
Referenced by GNENet::deleteAdditional(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GNENet::removePolygonForEditShapes(), and GNENet::removeShape().
|
inherited |
set width of GNEFrame
Definition at line 759 of file GNEFrame.cpp.
References GNEFrame::myScrollWindowsContents.
|
virtual |
show inspector frame
Reimplemented from GNEFrame.
Definition at line 139 of file GNEInspectorFrame.cpp.
References inspectElement(), and GNEFrame::show().
Referenced by GNEInspectorFrame::AttributesEditor::AttributeInput::showAttribute(), GNEInspectorFrame::AttributesEditor::showAttributeEditor(), GNEInspectorFrame::GEOAttributesEditor::showGEOAttributesEditor(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), GNEInspectorFrame::TemplateEditor::showTemplateEditor(), and GNEViewNet::updateModeSpecificControls().
|
private |
Attribute Carrier Hierarchy.
Definition at line 456 of file GNEInspectorFrame.h.
Referenced by getACHierarchy(), and inspectMultisection().
|
private |
Attribute editor.
Definition at line 441 of file GNEInspectorFrame.h.
Referenced by inspectMultisection(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), and GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute().
|
private |
back Button
Definition at line 459 of file GNEInspectorFrame.h.
Referenced by inspectChild(), inspectFromDeleteFrame(), and inspectMultisection().
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 235 of file GNEFrame.h.
Referenced by GNEConnectorFrame::GNEConnectorFrame(), GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), GNEProhibitionFrame::GNEProhibitionFrame(), and inspectMultisection().
|
private |
Generic parameters editor.
Definition at line 450 of file GNEInspectorFrame.h.
Referenced by inspectMultisection().
|
private |
GEO Attributes editor.
Definition at line 447 of file GNEInspectorFrame.h.
Referenced by inspectMultisection(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute(), and GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute().
|
protectedinherited |
fame for header elements
Definition at line 238 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 241 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), inspectChild(), inspectFromDeleteFrame(), and inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 244 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
private |
the multi-selection currently being inspected
Definition at line 471 of file GNEInspectorFrame.h.
Referenced by clearInspectedAC(), getInspectedACs(), hide(), inspectMultisection(), and removeInspectedAC().
|
private |
Netedit Attributes editor.
Definition at line 444 of file GNEInspectorFrame.h.
Referenced by inspectMultisection(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute(), and GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute().
|
private |
pointer to previous element called by Delete Frame
Definition at line 465 of file GNEInspectorFrame.h.
Referenced by inspectChild(), inspectFromDeleteFrame(), and onCmdGoBack().
|
private |
flag to ckec if myPreviousElementDelete was marked in Delete Frame
Definition at line 468 of file GNEInspectorFrame.h.
Referenced by inspectFromDeleteFrame().
|
private |
pointer to previous element called by Inspector Frame
Definition at line 462 of file GNEInspectorFrame.h.
Referenced by inspectChild(), inspectFromDeleteFrame(), and onCmdGoBack().
|
private |
Template editor.
Definition at line 453 of file GNEInspectorFrame.h.
Referenced by getTemplateEditor(), and inspectMultisection().
|
protectedinherited |
View Net for changes.
Definition at line 232 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNETLSEditorFrame::buildIinternalLanes(), GNEPolygonFrame::buildPoly(), GNESelectorFrame::clearCurrentSelection(), clearInspectedAC(), GNETLSEditorFrame::editJunction(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEFrame::hide(), hide(), GNEConnectorFrame::initTargets(), inspectElement(), GNEConnectorFrame::onCmdCancel(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNEConnectorFrame::onCmdClearSelectedConnections(), GNECrossingFrame::onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), onCmdGoBack(), GNEConnectorFrame::onCmdOK(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNESelectorFrame::SelectionOperation::onCmdSave(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GNETLSEditorFrame::parseTLSPrograms(), GNEPolygonFrame::processClick(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEDeleteFrame::show(), and GNEFrame::show().