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...
 
GNEAttributeCarrier * getMarkedAttributeCarrier () const
 returns marked atrribute carrier More...
 
GNEViewNet * getViewNet () 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...
 
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...
 
GNEViewNet * myViewNet
 the window to inform when the tls is modfied More...
 

Private Attributes

FXCheckButton * myAutomaticallyDeleteAdditionalsCheckButton
 checkbox for enable/disble automatically delete additionals childs More...
 
GNEAttributeCarrier * myClickedAC
 current attribute carrier selected in three 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...
 
GNEAttributeCarrier * myMarkedAC
 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::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 83 of file GNEDeleteFrame.cpp.

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

GNEDeleteFrame::~GNEDeleteFrame ( )

Destructor.

Definition at line 108 of file GNEDeleteFrame.cpp.

GNEDeleteFrame::GNEDeleteFrame ( )
inlineprotected

FOX needs this.

Definition at line 95 of file GNEDeleteFrame.h.

References createPopUpMenu().

Member Function Documentation

void GNEFrame::focusUpperElement ( )
inherited
FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 135 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

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

GNEAttributeCarrier * GNEDeleteFrame::getMarkedAttributeCarrier ( ) const

returns marked atrribute carrier

Definition at line 516 of file GNEDeleteFrame.cpp.

References myMarkedAC.

Referenced by GNEViewNet::onLeftBtnPress().

void GNEDeleteFrame::markAttributeCarrier ( GNEAttributeCarrier *  ac)

mark attribute carrier (element)

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

Definition at line 488 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().

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

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

Definition at line 535 of file GNEDeleteFrame.cpp.

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

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

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

Definition at line 563 of file GNEDeleteFrame.cpp.

References myClickedAC, and removeAttributeCarrier().

long GNEDeleteFrame::onCmdInspectChildItem ( FXObject *  ,
FXSelector  ,
void *   
)
long GNEDeleteFrame::onCmdShowChildMenu ( FXObject *  ,
FXSelector  ,
void *  eventData 
)
void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 116 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

void GNEDeleteFrame::updateCurrentLabel ( GNEAttributeCarrier *  ac)

Field Documentation

FXCheckButton* GNEDeleteFrame::myAutomaticallyDeleteAdditionalsCheckButton
private

checkbox for enable/disble automatically delete additionals childs

Definition at line 123 of file GNEDeleteFrame.h.

Referenced by removeAttributeCarrier().

GNEAttributeCarrier* GNEDeleteFrame::myClickedAC
private

current attribute carrier selected in three

Definition at line 138 of file GNEDeleteFrame.h.

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

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 104 of file GNEFrame.h.

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

FXLabel* GNEDeleteFrame::myCurrentElementLabel
private

label for current element

Definition at line 105 of file GNEDeleteFrame.h.

Referenced by updateCurrentLabel().

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

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(), and GNEFrame::GNEFrame().

FXGroupBox* GNEDeleteFrame::myGroupBoxCurrentElement
private

groupbox for current element

Definition at line 102 of file GNEDeleteFrame.h.

FXGroupBox* GNEDeleteFrame::myGroupBoxInformation
private

groupbox for information

Definition at line 117 of file GNEDeleteFrame.h.

FXGroupBox* GNEDeleteFrame::myGroupBoxOptions
private

groupbox options

Definition at line 111 of file GNEDeleteFrame.h.

FXGroupBox* GNEDeleteFrame::myGroupBoxTreeList
private

groupbox for tree list childs

Definition at line 114 of file GNEDeleteFrame.h.

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

Definition at line 107 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame
protectedinherited
FXHorizontalFrame* GNEFrame::myHeaderRightFrame
protectedinherited

fame for right header elements

Definition at line 113 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

FXLabel* GNEDeleteFrame::myInformationLabel
private

Label for information 1.

Definition at line 120 of file GNEDeleteFrame.h.

GNEAttributeCarrier* GNEDeleteFrame::myMarkedAC
private

pointer to marked attributeCarrier (element)

Definition at line 135 of file GNEDeleteFrame.h.

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

FXLabel* GNEDeleteFrame::myMarkedElementLabel
private

label for marked element

Definition at line 108 of file GNEDeleteFrame.h.

Referenced by markAttributeCarrier().

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

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

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

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(), GNEPolygonFrame::addPOI(), 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: