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...
 
FXFont * getFrameHeaderFont () const
 get font of the header's frame More...
 
FXLabel * getFrameHeaderLabel () const
 get the label for the frame's header More...
 
GNEAttributeCarriergetMarkedAttributeCarrier () const
 returns marked atrribute carrier 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 width)
 set width of GNEFrame More...
 
virtual void show ()
 show Frame More...
 
void showAttributeCarrierChilds (GNEAttributeCarrier *ac)
 show child of attributeCarrier in frame if previously there isn't a marked element 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 *data)
 
long onCmdCenterItem (FXObject *, FXSelector, void *)
 called when user select option "center item" of child Menu More...
 
long onCmdInspectItem (FXObject *, FXSelector, void *)
 called when user select option "inspect item" of child menu More...
 
long onCmdDeleteItem (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...
 
FXFont * myFrameHeaderFont
 Font for the Header. More...
 
FXLabel * myFrameHeaderLabel
 the label for the frame's header 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
 the window to inform when the tls is modfied More...
 

Private Attributes

FXCheckButton * myAutomaticallyDeleteAdditionalsCheckButton
 checkbox for enable/disble automatically delete additionals childs More...
 
GNEAttributeCarriermyClickedAC
 current attribute carrier selected in three More...
 
GNEAttributeCarriermyCurrentAC
 pointer to current AC More...
 
FXLabel * myCurrentElementLabel
 label for current element 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 46 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 81 of file GNEDeleteFrame.cpp.

References GUIDesignCheckButtonAttribute, GUIDesignGroupBoxFrame, GUIDesignLabelLeft, GUIDesignTreeListFrame, MID_GNE_AUTOMATICALLYDELETEADDITIONALS, and MID_GNE_CHILDS.

◆ ~GNEDeleteFrame()

GNEDeleteFrame::~GNEDeleteFrame ( )

Destructor.

Definition at line 107 of file GNEDeleteFrame.cpp.

◆ GNEDeleteFrame() [2/2]

GNEDeleteFrame::GNEDeleteFrame ( )
inlineprotected

FOX needs this.

Definition at line 95 of file GNEDeleteFrame.h.

References createPopUpMenu().

Member Function Documentation

◆ createPopUpMenu()

◆ focusUpperElement()

void GNEFrame::focusUpperElement ( )
inherited

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 135 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 129 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEInspectorFrame::inspectMultisection().

◆ getMarkedAttributeCarrier()

GNEAttributeCarrier * GNEDeleteFrame::getMarkedAttributeCarrier ( ) const

returns marked atrribute carrier

Definition at line 486 of file GNEDeleteFrame.cpp.

References myMarkedAC.

Referenced by GNEViewNet::onLeftBtnPress(), and GNEViewNet::onMouseMove().

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

◆ onCmdCenterItem()

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

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

Definition at line 505 of file GNEDeleteFrame.cpp.

References GUISUMOAbstractView::centerTo(), myClickedAC, and GNEFrame::myViewNet.

◆ onCmdDeleteItem()

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

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

Definition at line 538 of file GNEDeleteFrame.cpp.

References myClickedAC, myCurrentAC, removeAttributeCarrier(), and showAttributeCarrierChilds().

◆ onCmdInspectItem()

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

◆ onCmdShowChildMenu()

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

◆ removeAttributeCarrier()

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  width)
inherited

set width of GNEFrame

Definition at line 116 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

◆ show()

◆ showAttributeCarrierChilds()

◆ updateCurrentLabel()

void GNEDeleteFrame::updateCurrentLabel ( GNEAttributeCarrier ac)

Field Documentation

◆ myAutomaticallyDeleteAdditionalsCheckButton

FXCheckButton* GNEDeleteFrame::myAutomaticallyDeleteAdditionalsCheckButton
private

checkbox for enable/disble automatically delete additionals childs

Definition at line 123 of file GNEDeleteFrame.h.

Referenced by removeAttributeCarrier().

◆ myClickedAC

GNEAttributeCarrier* GNEDeleteFrame::myClickedAC
private

current attribute carrier selected in three

Definition at line 141 of file GNEDeleteFrame.h.

Referenced by createPopUpMenu(), onCmdCenterItem(), onCmdDeleteItem(), and onCmdInspectItem().

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 104 of file GNEFrame.h.

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

◆ myCurrentAC

GNEAttributeCarrier* GNEDeleteFrame::myCurrentAC
private

pointer to current AC

Definition at line 135 of file GNEDeleteFrame.h.

Referenced by onCmdDeleteItem(), onCmdInspectItem(), and showAttributeCarrierChilds().

◆ myCurrentElementLabel

FXLabel* GNEDeleteFrame::myCurrentElementLabel
private

label for current element

Definition at line 105 of file GNEDeleteFrame.h.

Referenced by updateCurrentLabel().

◆ myFrameHeaderFont

FXFont* GNEFrame::myFrameHeaderFont
protectedinherited

Font for the Header.

Definition at line 98 of file GNEFrame.h.

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

◆ myFrameHeaderLabel

FXLabel* GNEFrame::myFrameHeaderLabel
protectedinherited

the label for the frame's header

Definition at line 101 of file GNEFrame.h.

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

◆ myGroupBoxCurrentElement

FXGroupBox* GNEDeleteFrame::myGroupBoxCurrentElement
private

groupbox for current element

Definition at line 102 of file GNEDeleteFrame.h.

◆ myGroupBoxInformation

FXGroupBox* GNEDeleteFrame::myGroupBoxInformation
private

groupbox for information

Definition at line 117 of file GNEDeleteFrame.h.

◆ myGroupBoxOptions

FXGroupBox* GNEDeleteFrame::myGroupBoxOptions
private

groupbox options

Definition at line 111 of file GNEDeleteFrame.h.

◆ myGroupBoxTreeList

FXGroupBox* GNEDeleteFrame::myGroupBoxTreeList
private

groupbox for tree list childs

Definition at line 114 of file GNEDeleteFrame.h.

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

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

Referenced by GNEFrame::GNEFrame().

◆ myInformationLabel

FXLabel* GNEDeleteFrame::myInformationLabel
private

Label for information 1.

Definition at line 120 of file GNEDeleteFrame.h.

◆ myMarkedAC

GNEAttributeCarrier* GNEDeleteFrame::myMarkedAC
private

pointer to marked attributeCarrier (element)

Definition at line 138 of file GNEDeleteFrame.h.

Referenced by getMarkedAttributeCarrier(), markAttributeCarrier(), and onCmdInspectItem().

◆ myMarkedElementLabel

FXLabel* GNEDeleteFrame::myMarkedElementLabel
private

label for marked element

Definition at line 108 of file GNEDeleteFrame.h.

Referenced by markAttributeCarrier().

◆ myTreeItemsWithoutAC

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

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

Definition at line 132 of file GNEDeleteFrame.h.

Referenced by onCmdShowChildMenu(), and showAttributeCarrierChilds().

◆ myTreeItemToACMap

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

map used to save the Tree items with their AC

Definition at line 129 of file GNEDeleteFrame.h.

Referenced by onCmdShowChildMenu(), and showAttributeCarrierChilds().

◆ myTreelist

FXTreeList* GNEDeleteFrame::myTreelist
private

tree list to show the childs of the element to erase

Definition at line 126 of file GNEDeleteFrame.h.

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

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet
protectedinherited

the window to inform when the tls is modfied

Definition at line 95 of file GNEFrame.h.

Referenced by GNEAdditionalFrame::addAdditional(), GNETLSEditorFrame::buildIinternalLanes(), 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(), onCmdCenterItem(), GNEInspectorFrame::onCmdCenterItem(), GNESelectorFrame::onCmdClear(), GNEConnectorFrame::onCmdClearSelectedConnections(), GNEInspectorFrame::onCmdCopyTemplate(), GNECrossingFrame::onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), onCmdInspectItem(), GNESelectorFrame::onCmdInvert(), GNESelectorFrame::onCmdLoad(), GNEConnectorFrame::onCmdOK(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNESelectorFrame::onCmdSave(), GNESelectorFrame::onCmdScaleSelection(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GNEAdditionalFrame::removeAdditional(), removeAttributeCarrier(), and GNEFrame::show().


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