SUMO - Simulation of Urban MObility
GNEInspectorFrame Class Reference

#include <GNEInspectorFrame.h>

Inheritance diagram for GNEInspectorFrame:
Inheritance graph
Collaboration diagram for GNEInspectorFrame:
Collaboration graph

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...
 

Detailed Description

The Widget for modifying network-element attributes (i.e. lane speed)

Definition at line 44 of file GNEInspectorFrame.h.

Constructor & Destructor Documentation

◆ GNEInspectorFrame() [1/2]

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::~GNEInspectorFrame ( )

Destructor.

Definition at line 135 of file GNEInspectorFrame.cpp.

◆ GNEInspectorFrame() [2/2]

GNEInspectorFrame::GNEInspectorFrame ( )
inlineprotected

FOX needs this.

Definition at line 437 of file GNEInspectorFrame.h.

Member Function Documentation

◆ clearInspectedAC()

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().

◆ focusUpperElement()

void GNEFrame::focusUpperElement ( )
inherited

◆ getACHierarchy()

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 778 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
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().

◆ getInspectedACs()

◆ getTemplateEditor()

GNEInspectorFrame::TemplateEditor * GNEInspectorFrame::getTemplateEditor ( ) const

get template editor

Definition at line 306 of file GNEInspectorFrame.cpp.

References myTemplateEditor.

Referenced by GNEViewNet::onLeftBtnPress().

◆ getViewNet()

GNEViewNet * GNEFrame::getViewNet ( ) const
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().

◆ hide()

◆ inspectChild()

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().

◆ inspectElement()

◆ inspectFromDeleteFrame()

void GNEInspectorFrame::inspectFromDeleteFrame ( GNEAttributeCarrier *  AC,
GNEAttributeCarrier *  previousElement,
bool  previousElementWasMarked 
)

◆ inspectMultisection()

◆ onCmdGoBack()

long GNEInspectorFrame::onCmdGoBack ( FXObject *  ,
FXSelector  ,
void *   
)

◆ openHelpAttributesDialog()

◆ removeInspectedAC()

void GNEInspectorFrame::removeInspectedAC ( GNEAttributeCarrier *  ac)

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 759 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

◆ show()

Field Documentation

◆ myACHierarchy

GNEFrame::ACHierarchy* GNEInspectorFrame::myACHierarchy
private

Attribute Carrier Hierarchy.

Definition at line 456 of file GNEInspectorFrame.h.

Referenced by getACHierarchy(), and inspectMultisection().

◆ myAttributesEditor

◆ myBackButton

FXButton* GNEInspectorFrame::myBackButton
private

back Button

Definition at line 459 of file GNEInspectorFrame.h.

Referenced by inspectChild(), inspectFromDeleteFrame(), and inspectMultisection().

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

◆ myGenericParametersEditor

GenericParametersEditor* GNEInspectorFrame::myGenericParametersEditor
private

Generic parameters editor.

Definition at line 450 of file GNEInspectorFrame.h.

Referenced by inspectMultisection().

◆ myGEOAttributesEditor

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

Definition at line 238 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame
protectedinherited

fame for left header elements

Definition at line 241 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame(), inspectChild(), inspectFromDeleteFrame(), and inspectMultisection().

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame
protectedinherited

fame for right header elements

Definition at line 244 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myInspectedACs

std::vector<GNEAttributeCarrier*> GNEInspectorFrame::myInspectedACs
private

the multi-selection currently being inspected

Definition at line 471 of file GNEInspectorFrame.h.

Referenced by clearInspectedAC(), getInspectedACs(), hide(), inspectMultisection(), and removeInspectedAC().

◆ myNeteditAttributesEditor

NeteditAttributesEditor* GNEInspectorFrame::myNeteditAttributesEditor
private

◆ myPreviousElementDelete

GNEAttributeCarrier* GNEInspectorFrame::myPreviousElementDelete
private

pointer to previous element called by Delete Frame

Definition at line 465 of file GNEInspectorFrame.h.

Referenced by inspectChild(), inspectFromDeleteFrame(), and onCmdGoBack().

◆ myPreviousElementDeleteWasMarked

bool GNEInspectorFrame::myPreviousElementDeleteWasMarked
private

flag to ckec if myPreviousElementDelete was marked in Delete Frame

Definition at line 468 of file GNEInspectorFrame.h.

Referenced by inspectFromDeleteFrame().

◆ myPreviousElementInspect

GNEAttributeCarrier* GNEInspectorFrame::myPreviousElementInspect
private

pointer to previous element called by Inspector Frame

Definition at line 462 of file GNEInspectorFrame.h.

Referenced by inspectChild(), inspectFromDeleteFrame(), and onCmdGoBack().

◆ myTemplateEditor

TemplateEditor* GNEInspectorFrame::myTemplateEditor
private

Template editor.

Definition at line 453 of file GNEInspectorFrame.h.

Referenced by getTemplateEditor(), and inspectMultisection().

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet
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().


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