Eclipse SUMO - Simulation of Urban MObility
GNEInspectorFrame Class Reference

#include <GNEInspectorFrame.h>

Inheritance diagram for GNEInspectorFrame:
Collaboration diagram for GNEInspectorFrame:

Data Structures

class  GEOAttributesEditor
 
class  NeteditAttributesEditor
 
class  OverlappedInspection
 FOX-declaration. More...
 
class  TemplateEditor
 

Public Member Functions

void clearInspectedAC ()
 Clear all current inspected ACs. More...
 
void focusUpperElement ()
 focus upper element of frame More...
 
GNEFrameAttributesModuls::AttributesEditorgetAttributesEditor () const
 get AttributesEditor More...
 
FXFont * getFrameHeaderFont () const
 get font of the header's frame More...
 
FXLabel * getFrameHeaderLabel () const
 get the label for the frame's header More...
 
OverlappedInspectiongetOverlappedInspection () const
 get OverlappedInspection modul More...
 
TemplateEditorgetTemplateEditor () const
 get template editor More...
 
GNEViewNetgetViewNet () 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 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 inspectSingleElement (GNEAttributeCarrier *AC)
 Inspect a single element. More...
 
bool processDemandSupermodeClick (const Position &clickedPosition, GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
 process click over Viewnet in Supermode Demand More...
 
bool processNetworkSupermodeClick (const Position &clickedPosition, GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
 process click over Viewnet in Supermode Network More...
 
void setFrameWidth (int newWidth)
 set width of GNEFrame More...
 
void show ()
 show inspector frame More...
 
void updateFrameAfterUndoRedo ()
 function called after undo/redo in the current frame (can be reimplemented in frame children) More...
 
 ~GNEInspectorFrame ()
 Destructor. More...
 
FOX-callbacks
long onCmdGoBack (FXObject *, FXSelector, void *)
 called when user toogle the go back button More...
 

Protected Member Functions

void attributeUpdated ()
 function called after set a valid attribute in AttributeEditor More...
 
const RGBColorgetEdgeCandidateColor () const
 get edge candidate color More...
 
const RGBColorgetEdgeCandidateSelectedColor () const
 get selected color More...
 
const std::map< int, std::string > & getPredefinedTagsMML () const
 get predefinedTagsMML More...
 
 GNEInspectorFrame ()
 FOX needs this. More...
 
void inspectClickedElement (const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, const Position &clickedPosition)
 Inspect a singe element (the front of AC AttributeCarriers of ObjectUnderCursor. More...
 
void openHelpAttributesDialog (const GNEAttributeCarrier::TagProperties &tagProperties) const
 Open help attributes dialog. More...
 
functions called by moduls that can be reimplemented in frame children
virtual void tagSelected ()
 Tag selected in TagSelector. More...
 
virtual void demandElementSelected ()
 selected demand element in DemandElementSelector More...
 
virtual void edgePathCreated ()
 finish edge path creation More...
 
virtual bool shapeDrawed ()
 build a shaped element using the drawed shape (can be reimplemented in frame children) More...
 
virtual void attributesEditorExtendedDialogOpened ()
 open AttributesCreator extended dialog (can be reimplemented in frame children) 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...
 
GNEViewNetmyViewNet
 View Net. More...
 

Private Attributes

GNEFrameModuls::AttributeCarrierHierarchymyAttributeCarrierHierarchy
 Attribute Carrier Hierarchy. More...
 
GNEFrameAttributesModuls::AttributesEditormyAttributesEditor
 Attribute editor. More...
 
FXButton * myBackButton
 back Button More...
 
RGBColor myEdgeCandidateColor
 edge candidate color (used by some modulds to mark edges) More...
 
RGBColor myEdgeCandidateSelectedColor
 selected edge candidate color (used by some modulds to selected mark edges) More...
 
FXLabel * myFrameHeaderLabel
 the label for the frame's header More...
 
GNEFrameAttributesModuls::GenericParametersEditormyGenericParametersEditor
 Generic parameters editor. More...
 
GEOAttributesEditormyGEOAttributesEditor
 GEO Attributes editor. More...
 
NeteditAttributesEditormyNeteditAttributesEditor
 Netedit Attributes editor. More...
 
OverlappedInspectionmyOverlappedInspection
 Overlapped Inspection. More...
 
std::map< int, std::string > myPredefinedTagsMML
 Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached) More...
 
GNEAttributeCarriermyPreviousElementDelete
 pointer to previous element called by Delete Frame More...
 
bool myPreviousElementDeleteWasMarked
 flag to ckec if myPreviousElementDelete was marked in Delete Frame More...
 
GNEAttributeCarriermyPreviousElementInspect
 pointer to previous element called by Inspector Frame More...
 
FXScrollWindow * myScrollWindowsContents
 scroll windows that holds the content frame More...
 
TemplateEditormyTemplateEditor
 Template editor. More...
 

Static Private Attributes

static FXFont * myFrameHeaderFont = nullptr
 static Font for the Header (it's common for all headers, then create only one time) More...
 

Detailed Description

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

Definition at line 34 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 83 of file GNEInspectorFrame.cpp.

References GUIIconSubSys::getIcon(), GUIDesignButtonIconRectangular, ICON_BIGARROWLEFT, and MID_GNE_INSPECTORFRAME_GOBACK.

◆ ~GNEInspectorFrame()

GNEInspectorFrame::~GNEInspectorFrame ( )

Destructor.

Definition at line 116 of file GNEInspectorFrame.cpp.

◆ GNEInspectorFrame() [2/2]

GNEInspectorFrame::GNEInspectorFrame ( )
inlineprotected

FOX needs this.

Definition at line 395 of file GNEInspectorFrame.h.

Member Function Documentation

◆ attributesEditorExtendedDialogOpened()

void GNEFrame::attributesEditorExtendedDialogOpened ( )
protectedvirtualinherited

open AttributesCreator extended dialog (can be reimplemented in frame children)

Reimplemented in GNEVehicleTypeFrame.

Definition at line 191 of file GNEFrame.cpp.

◆ attributeUpdated()

◆ clearInspectedAC()

void GNEInspectorFrame::clearInspectedAC ( )

◆ demandElementSelected()

void GNEFrame::demandElementSelected ( )
protectedvirtualinherited

selected demand element in DemandElementSelector

Reimplemented in GNEPersonPlanFrame, GNEStopFrame, GNEVehicleFrame, and GNEPersonFrame.

Definition at line 166 of file GNEFrame.cpp.

◆ edgePathCreated()

void GNEFrame::edgePathCreated ( )
protectedvirtualinherited

finish edge path creation

Reimplemented in GNEVehicleFrame, and GNEPersonFrame.

Definition at line 172 of file GNEFrame.cpp.

◆ focusUpperElement()

◆ getAttributesEditor()

◆ getEdgeCandidateColor()

const RGBColor & GNEFrame::getEdgeCandidateColor ( ) const
protectedinherited

get edge candidate color

Definition at line 264 of file GNEFrame.cpp.

References GNEFrame::myEdgeCandidateColor.

Referenced by GNECrossingFrame::GNECrossingFrame().

◆ getEdgeCandidateSelectedColor()

const RGBColor & GNEFrame::getEdgeCandidateSelectedColor ( ) const
protectedinherited

get selected color

Definition at line 270 of file GNEFrame.cpp.

References GNEFrame::myEdgeCandidateSelectedColor.

Referenced by GNECrossingFrame::GNECrossingFrame().

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 145 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 139 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and inspectMultisection().

◆ getOverlappedInspection()

GNEInspectorFrame::OverlappedInspection * GNEInspectorFrame::getOverlappedInspection ( ) const

get OverlappedInspection modul

Definition at line 351 of file GNEInspectorFrame.cpp.

References myOverlappedInspection.

Referenced by GNEViewNet::openObjectDialog().

◆ getPredefinedTagsMML()

◆ getTemplateEditor()

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

get template editor

Definition at line 345 of file GNEInspectorFrame.cpp.

References myTemplateEditor.

Referenced by GNECreateEdgeFrame::processClick().

◆ getViewNet()

GNEViewNet * GNEFrame::getViewNet ( ) const
inherited

get view net

Definition at line 133 of file GNEFrame.cpp.

References GNEFrame::myViewNet.

Referenced by GNEDeleteFrame::removeAttributeCarrier().

◆ hide()

◆ inspectChild()

void GNEInspectorFrame::inspectChild ( GNEAttributeCarrier AC,
GNEAttributeCarrier previousElement 
)

inspect child of already inspected element

Definition at line 299 of file GNEInspectorFrame.cpp.

References inspectSingleElement(), myBackButton, GNEFrame::myHeaderLeftFrame, myPreviousElementDelete, and myPreviousElementInspect.

◆ inspectClickedElement()

◆ inspectFromDeleteFrame()

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

◆ inspectMultisection()

◆ inspectSingleElement()

◆ onCmdGoBack()

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

◆ openHelpAttributesDialog()

◆ processDemandSupermodeClick()

◆ processNetworkSupermodeClick()

bool GNEInspectorFrame::processNetworkSupermodeClick ( const Position clickedPosition,
GNEViewNetHelper::ObjectsUnderCursor objectsUnderCursor 
)

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 126 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

◆ shapeDrawed()

bool GNEFrame::shapeDrawed ( )
protectedvirtualinherited

build a shaped element using the drawed shape (can be reimplemented in frame children)

Reimplemented in GNETAZFrame, and GNEPolygonFrame.

Definition at line 178 of file GNEFrame.cpp.

◆ show()

◆ tagSelected()

void GNEFrame::tagSelected ( )
protectedvirtualinherited

Tag selected in TagSelector.

Reimplemented in GNEAdditionalFrame, GNEPersonPlanFrame, GNEPolygonFrame, GNEStopFrame, GNEVehicleFrame, and GNEPersonFrame.

Definition at line 160 of file GNEFrame.cpp.

◆ updateFrameAfterUndoRedo()

void GNEInspectorFrame::updateFrameAfterUndoRedo ( )
virtual

Field Documentation

◆ myAttributeCarrierHierarchy

GNEFrameModuls::AttributeCarrierHierarchy* GNEInspectorFrame::myAttributeCarrierHierarchy
private

Attribute Carrier Hierarchy.

Definition at line 423 of file GNEInspectorFrame.h.

Referenced by inspectMultisection(), and updateFrameAfterUndoRedo().

◆ myAttributesEditor

GNEFrameAttributesModuls::AttributesEditor* GNEInspectorFrame::myAttributesEditor
private

◆ myBackButton

FXButton* GNEInspectorFrame::myBackButton
private

back Button

Definition at line 426 of file GNEInspectorFrame.h.

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

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 123 of file GNEFrame.h.

Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), and inspectMultisection().

◆ myEdgeCandidateColor

RGBColor GNEFrame::myEdgeCandidateColor
privateinherited

edge candidate color (used by some modulds to mark edges)

Definition at line 145 of file GNEFrame.h.

Referenced by GNEFrame::getEdgeCandidateColor().

◆ myEdgeCandidateSelectedColor

RGBColor GNEFrame::myEdgeCandidateSelectedColor
privateinherited

selected edge candidate color (used by some modulds to selected mark edges)

Definition at line 148 of file GNEFrame.h.

Referenced by GNEFrame::getEdgeCandidateSelectedColor().

◆ myFrameHeaderFont

FXFont * GNEFrame::myFrameHeaderFont = nullptr
staticprivateinherited

static Font for the Header (it's common for all headers, then create only one time)

Definition at line 139 of file GNEFrame.h.

Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().

◆ myFrameHeaderLabel

FXLabel* GNEFrame::myFrameHeaderLabel
privateinherited

the label for the frame's header

Definition at line 142 of file GNEFrame.h.

Referenced by GNEFrame::focusUpperElement(), GNEFrame::getFrameHeaderLabel(), and GNEFrame::GNEFrame().

◆ myGenericParametersEditor

GNEFrameAttributesModuls::GenericParametersEditor* GNEInspectorFrame::myGenericParametersEditor
private

Generic parameters editor.

Definition at line 417 of file GNEInspectorFrame.h.

Referenced by inspectMultisection(), and updateFrameAfterUndoRedo().

◆ myGEOAttributesEditor

GEOAttributesEditor* GNEInspectorFrame::myGEOAttributesEditor
private

GEO Attributes editor.

Definition at line 414 of file GNEInspectorFrame.h.

Referenced by attributeUpdated(), and inspectMultisection().

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

Definition at line 126 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame
protectedinherited

fame for left header elements

Definition at line 129 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 132 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myNeteditAttributesEditor

NeteditAttributesEditor* GNEInspectorFrame::myNeteditAttributesEditor
private

Netedit Attributes editor.

Definition at line 411 of file GNEInspectorFrame.h.

Referenced by attributeUpdated(), and inspectMultisection().

◆ myOverlappedInspection

OverlappedInspection* GNEInspectorFrame::myOverlappedInspection
private

◆ myPredefinedTagsMML

std::map<int, std::string> GNEFrame::myPredefinedTagsMML
privateinherited

Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached)

Definition at line 151 of file GNEFrame.h.

Referenced by GNEFrame::getPredefinedTagsMML(), and GNEFrame::GNEFrame().

◆ myPreviousElementDelete

GNEAttributeCarrier* GNEInspectorFrame::myPreviousElementDelete
private

pointer to previous element called by Delete Frame

Definition at line 432 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 435 of file GNEInspectorFrame.h.

Referenced by inspectFromDeleteFrame().

◆ myPreviousElementInspect

GNEAttributeCarrier* GNEInspectorFrame::myPreviousElementInspect
private

pointer to previous element called by Inspector Frame

Definition at line 429 of file GNEInspectorFrame.h.

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

◆ myScrollWindowsContents

FXScrollWindow* GNEFrame::myScrollWindowsContents
privateinherited

scroll windows that holds the content frame

Definition at line 136 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame(), GNEFrame::openHelpAttributesDialog(), and GNEFrame::setFrameWidth().

◆ myTemplateEditor

TemplateEditor* GNEInspectorFrame::myTemplateEditor
private

Template editor.

Definition at line 420 of file GNEInspectorFrame.h.

Referenced by getTemplateEditor(), and inspectMultisection().

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet
protectedinherited

View Net.

Definition at line 120 of file GNEFrame.h.

Referenced by GNEDeleteFrame::ACsToDelete(), GNESelectorFrame::ACsToSelected(), GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), GNETLSEditorFrame::buildIinternalLanes(), GNEPersonFrame::buildPerson(), GNEPersonFrame::buildPersonOverRoute(), GNEPersonFrame::buildPersonOverStop(), GNEProhibitionFrame::buildProhibition(), GNETLSEditorFrame::cleanup(), GNESelectorFrame::clearCurrentSelection(), clearInspectedAC(), GNETAZFrame::dropTAZMembers(), GNEPersonFrame::edgePathCreated(), GNEVehicleFrame::edgePathCreated(), GNETLSEditorFrame::editJunction(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNETLSEditorFrame::handleChange(), GNERouteFrame::handleEdgeClick(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEFrame::hide(), hide(), GNERouteFrame::hotkeyBackSpace(), GNERouteFrame::hotkeyEnter(), GNERouteFrame::hotkeyEsc(), GNEConnectorFrame::initTargets(), inspectSingleElement(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), onCmdGoBack(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNETLSEditorFrame::parseTLSPrograms(), GNEPersonPlanFrame::personPlanCreated(), GNECreateEdgeFrame::processClick(), GNEPolygonFrame::processClick(), processDemandSupermodeClick(), processNetworkSupermodeClick(), GNEProhibitionFrame::ProhibitionLegend::ProhibitionLegend(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEFrame::show(), GNEStopFrame::show(), GNEDeleteFrame::show(), and GNEPersonPlanFrame::show().


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