SUMO - Simulation of Urban MObility
GNEDeleteFrame Class Reference

#include <GNEDeleteFrame.h>

Inheritance diagram for GNEDeleteFrame:
Inheritance graph
Collaboration diagram for GNEDeleteFrame:
Collaboration graph

Public Member Functions

void focusUpperElement ()
 focus upper element of frame More...
 
GNEFrame::DrawingModegetDrawingMode () const
 get drawing mode editor More...
 
FXFont * getFrameHeaderFont () const
 get font of the header's frame More...
 
FXLabel * getFrameHeaderLabel () const
 get the label for the frame's header More...
 
GNEFrame::GEOAttributesgetGEOAttributes () const
 get GEO Parameters editor More...
 
GNEAttributeCarriergetMarkedAttributeCarrier () const
 returns marked atrribute carrier More...
 
GNEFrame::NeteditAttributesgetNeteditAttributes () const
 get netedit attributes editor More...
 
GNEViewNetgetViewNet () const
 get view net More...
 
 GNEDeleteFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
 FOX-declaration. More...
 
virtual void hide ()
 hide Frame More...
 
void markAttributeCarrier (GNEAttributeCarrier *ac)
 mark attribute carrier (element) More...
 
void removeAttributeCarrier (GNEAttributeCarrier *ac)
 remove attribute carrier (element) More...
 
void setFrameWidth (int newWidth)
 set width of GNEFrame More...
 
virtual void show ()
 show Frame More...
 
void showChildsOfMarkedAttributeCarrier ()
 show childs of marked attribute carrier More...
 
void updateCurrentLabel (GNEAttributeCarrier *ac)
 update current label More...
 
 ~GNEDeleteFrame ()
 Destructor. More...
 
FOX-callbacks

called when user press right click over an item of list of childs

long onCmdShowChildMenu (FXObject *, FXSelector, void *eventData)
 
long onCmdCenterChildItem (FXObject *, FXSelector, void *)
 called when user select option "center item" of child Menu More...
 
long onCmdInspectChildItem (FXObject *, FXSelector, void *)
 called when user select option "inspect item" of child menu More...
 
long onCmdDeleteChildItem (FXObject *, FXSelector, void *)
 called when user select option "delte item" of child menu More...
 

Protected Member Functions

void createPopUpMenu (int X, int Y, GNEAttributeCarrier *ac)
 
 GNEDeleteFrame ()
 FOX needs this. More...
 

Protected Attributes

FXVerticalFrame * myContentFrame
 Vertical frame that holds all widgets of frame. More...
 
GNEFrame::DrawingModemyDrawingMode
 drawing mode More...
 
GNEFrame::GEOAttributesmyGEOAttributes
 GEO Parameters. More...
 
FXHorizontalFrame * myHeaderFrame
 fame for header elements More...
 
FXHorizontalFrame * myHeaderLeftFrame
 fame for left header elements More...
 
FXHorizontalFrame * myHeaderRightFrame
 fame for right header elements More...
 
GNEFrame::NeteditAttributesmyNeteditAttributes
 Netedit parameter. More...
 
GNEViewNetmyViewNet
 View Net for changes. More...
 

Private Attributes

FXCheckButton * myAutomaticallyDeleteAdditionalsCheckButton
 checkbox for enable/disable automatically delete additionals childs More...
 
GNEAttributeCarriermyClickedAC
 current attribute carrier selected in three More...
 
FXLabel * myCurrentElementLabel
 label for current element More...
 
FXCheckButton * myDeleteOnlyGeometryPoints
 checkbox for enable/disable delete only geometry points More...
 
FXGroupBox * myGroupBoxCurrentElement
 groupbox for current element More...
 
FXGroupBox * myGroupBoxInformation
 groupbox for information More...
 
FXGroupBox * myGroupBoxOptions
 groupbox options More...
 
FXGroupBox * myGroupBoxTreeList
 groupbox for tree list childs More...
 
FXLabel * myInformationLabel
 Label for information 1. More...
 
GNEAttributeCarriermyMarkedAC
 pointer to marked attributeCarrier (element) More...
 
FXLabel * myMarkedElementLabel
 label for marked element More...
 
std::set< FXTreeItem * > myTreeItemsWithoutAC
 set used to save tree items without AC assigned (for example, Incoming/Outcoming connections) More...
 
std::map< FXTreeItem *, GNEAttributeCarrier * > myTreeItemToACMap
 map used to save the Tree items with their AC More...
 
FXTreeList * myTreelist
 tree list to show the childs of the element to erase More...
 

Detailed Description

The Widget for deleting elements

Definition at line 45 of file GNEDeleteFrame.h.

Constructor & Destructor Documentation

◆ GNEDeleteFrame() [1/2]

GNEDeleteFrame::GNEDeleteFrame ( FXHorizontalFrame *  horizontalFrameParent,
GNEViewNet viewNet 
)

FOX-declaration.

Constructor parent FXHorizontalFrame in which this GNEFrame is placed viewNet viewNet that uses this GNEFrame

Definition at line 80 of file GNEDeleteFrame.cpp.

References GUIDesignCheckButtonAttribute, GUIDesignGroupBoxFrame, GUIDesignLabelFrameInformation, GUIDesignTreeListFrame, MID_GNE_DELETEFRAME_AUTODELETEADDITIONALS, MID_GNE_DELETEFRAME_CHILDS, and MID_GNE_DELETEFRAME_ONLYGEOMETRYPOINTS.

◆ ~GNEDeleteFrame()

GNEDeleteFrame::~GNEDeleteFrame ( )

Destructor.

Definition at line 109 of file GNEDeleteFrame.cpp.

◆ GNEDeleteFrame() [2/2]

GNEDeleteFrame::GNEDeleteFrame ( )
inlineprotected

FOX needs this.

Definition at line 94 of file GNEDeleteFrame.h.

References createPopUpMenu().

Member Function Documentation

◆ createPopUpMenu()

◆ focusUpperElement()

void GNEFrame::focusUpperElement ( )
inherited

◆ getDrawingMode()

GNEFrame::DrawingMode * GNEFrame::getDrawingMode ( ) const
inherited

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 583 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 577 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEInspectorFrame::inspectMultisection().

◆ getGEOAttributes()

GNEFrame::GEOAttributes * GNEFrame::getGEOAttributes ( ) const
inherited

get GEO Parameters editor

Definition at line 599 of file GNEFrame.cpp.

References GNEFrame::myGEOAttributes.

◆ getMarkedAttributeCarrier()

GNEAttributeCarrier * GNEDeleteFrame::getMarkedAttributeCarrier ( ) const

returns marked atrribute carrier

Definition at line 542 of file GNEDeleteFrame.cpp.

References myMarkedAC.

Referenced by GNEViewNet::onLeftBtnPress().

◆ getNeteditAttributes()

GNEFrame::NeteditAttributes * GNEFrame::getNeteditAttributes ( ) const
inherited

get netedit attributes editor

Definition at line 589 of file GNEFrame.cpp.

References GNEFrame::myNeteditAttributes.

Referenced by GNEFrame::DrawingMode::stopDrawing().

◆ getViewNet()

◆ hide()

◆ markAttributeCarrier()

void GNEDeleteFrame::markAttributeCarrier ( GNEAttributeCarrier ac)

mark attribute carrier (element)

Note
if ac == NULL current marked attribute carrier will be dismarked

Definition at line 514 of file GNEDeleteFrame.cpp.

References GUIIconSubSys::getIcon(), GNEAttributeCarrier::getIcon(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTag(), ICON_EMPTY, myMarkedAC, myMarkedElementLabel, and toString().

Referenced by GNEInspectorFrame::onCmdGoBack(), and GNEViewNet::onLeftBtnPress().

◆ onCmdCenterChildItem()

long GNEDeleteFrame::onCmdCenterChildItem ( FXObject *  ,
FXSelector  ,
void *   
)

called when user select option "center item" of child Menu

Definition at line 561 of file GNEDeleteFrame.cpp.

References GUISUMOAbstractView::centerTo(), GUIGlObject::getGlID(), GNEAttributeCarrier::getGUIGLObject(), myClickedAC, and GNEFrame::myViewNet.

◆ onCmdDeleteChildItem()

long GNEDeleteFrame::onCmdDeleteChildItem ( FXObject *  ,
FXSelector  ,
void *   
)

called when user select option "delte item" of child menu

Definition at line 581 of file GNEDeleteFrame.cpp.

References myClickedAC, and removeAttributeCarrier().

◆ onCmdInspectChildItem()

long GNEDeleteFrame::onCmdInspectChildItem ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdShowChildMenu()

long GNEDeleteFrame::onCmdShowChildMenu ( FXObject *  ,
FXSelector  ,
void *  eventData 
)

◆ removeAttributeCarrier()

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 564 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

◆ show()

◆ showChildsOfMarkedAttributeCarrier()

◆ updateCurrentLabel()

void GNEDeleteFrame::updateCurrentLabel ( GNEAttributeCarrier ac)

Field Documentation

◆ myAutomaticallyDeleteAdditionalsCheckButton

FXCheckButton* GNEDeleteFrame::myAutomaticallyDeleteAdditionalsCheckButton
private

checkbox for enable/disable automatically delete additionals childs

Definition at line 122 of file GNEDeleteFrame.h.

Referenced by removeAttributeCarrier().

◆ myClickedAC

GNEAttributeCarrier* GNEDeleteFrame::myClickedAC
private

current attribute carrier selected in three

Definition at line 140 of file GNEDeleteFrame.h.

Referenced by createPopUpMenu(), onCmdCenterChildItem(), onCmdDeleteChildItem(), and onCmdInspectChildItem().

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

◆ myCurrentElementLabel

FXLabel* GNEDeleteFrame::myCurrentElementLabel
private

label for current element

Definition at line 104 of file GNEDeleteFrame.h.

Referenced by updateCurrentLabel().

◆ myDeleteOnlyGeometryPoints

FXCheckButton* GNEDeleteFrame::myDeleteOnlyGeometryPoints
private

checkbox for enable/disable delete only geometry points

Definition at line 125 of file GNEDeleteFrame.h.

Referenced by removeAttributeCarrier().

◆ myDrawingMode

GNEFrame::DrawingMode* GNEFrame::myDrawingMode
protectedinherited

◆ myGEOAttributes

GNEFrame::GEOAttributes* GNEFrame::myGEOAttributes
protectedinherited

◆ myGroupBoxCurrentElement

FXGroupBox* GNEDeleteFrame::myGroupBoxCurrentElement
private

groupbox for current element

Definition at line 101 of file GNEDeleteFrame.h.

◆ myGroupBoxInformation

FXGroupBox* GNEDeleteFrame::myGroupBoxInformation
private

groupbox for information

Definition at line 116 of file GNEDeleteFrame.h.

◆ myGroupBoxOptions

FXGroupBox* GNEDeleteFrame::myGroupBoxOptions
private

groupbox options

Definition at line 110 of file GNEDeleteFrame.h.

◆ myGroupBoxTreeList

FXGroupBox* GNEDeleteFrame::myGroupBoxTreeList
private

groupbox for tree list childs

Definition at line 113 of file GNEDeleteFrame.h.

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

Definition at line 343 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame
protectedinherited

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame
protectedinherited

fame for right header elements

Definition at line 349 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myInformationLabel

FXLabel* GNEDeleteFrame::myInformationLabel
private

Label for information 1.

Definition at line 119 of file GNEDeleteFrame.h.

◆ myMarkedAC

GNEAttributeCarrier* GNEDeleteFrame::myMarkedAC
private

pointer to marked attributeCarrier (element)

Definition at line 137 of file GNEDeleteFrame.h.

Referenced by getMarkedAttributeCarrier(), markAttributeCarrier(), onCmdInspectChildItem(), and showChildsOfMarkedAttributeCarrier().

◆ myMarkedElementLabel

FXLabel* GNEDeleteFrame::myMarkedElementLabel
private

label for marked element

Definition at line 107 of file GNEDeleteFrame.h.

Referenced by markAttributeCarrier().

◆ myNeteditAttributes

GNEFrame::NeteditAttributes* GNEFrame::myNeteditAttributes
protectedinherited

◆ myTreeItemsWithoutAC

std::set<FXTreeItem*> GNEDeleteFrame::myTreeItemsWithoutAC
private

set used to save tree items without AC assigned (for example, Incoming/Outcoming connections)

Definition at line 134 of file GNEDeleteFrame.h.

Referenced by onCmdShowChildMenu(), and showChildsOfMarkedAttributeCarrier().

◆ myTreeItemToACMap

std::map<FXTreeItem*, GNEAttributeCarrier*> GNEDeleteFrame::myTreeItemToACMap
private

map used to save the Tree items with their AC

Definition at line 131 of file GNEDeleteFrame.h.

Referenced by onCmdShowChildMenu(), and showChildsOfMarkedAttributeCarrier().

◆ myTreelist

FXTreeList* GNEDeleteFrame::myTreelist
private

tree list to show the childs of the element to erase

Definition at line 128 of file GNEDeleteFrame.h.

Referenced by createPopUpMenu(), onCmdShowChildMenu(), and showChildsOfMarkedAttributeCarrier().

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet
protectedinherited

View Net for changes.

Definition at line 337 of file GNEFrame.h.

Referenced by GNEAdditionalFrame::addAdditional(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNETLSEditorFrame::buildIinternalLanes(), GNEPolygonFrame::buildPoly(), createPopUpMenu(), GNEInspectorFrame::createPopUpMenu(), GNETLSEditorFrame::editJunction(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEFrame::hide(), GNEConnectorFrame::initTargets(), GNEConnectorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), onCmdCenterChildItem(), GNEInspectorFrame::onCmdCenterItem(), GNESelectorFrame::onCmdClear(), GNEConnectorFrame::onCmdClearSelectedConnections(), GNEInspectorFrame::onCmdCopyTemplate(), GNECrossingFrame::onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), onCmdInspectChildItem(), GNESelectorFrame::onCmdInvert(), GNESelectorFrame::onCmdLoad(), GNEConnectorFrame::onCmdOK(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNESelectorFrame::onCmdScaleSelection(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GNEPolygonFrame::processClick(), GNEAdditionalFrame::removeAdditional(), removeAttributeCarrier(), and GNEFrame::show().


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