![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEDeleteFrame.h>
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 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... | |
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... | |
GNEAttributeCarrier * | myCurrentAC |
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... | |
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... | |
The Widget for deleting elements
Definition at line 46 of file GNEDeleteFrame.h.
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 | ( | ) |
Destructor.
Definition at line 107 of file GNEDeleteFrame.cpp.
|
inlineprotected |
|
protected |
Definition at line 546 of file GNEDeleteFrame.cpp.
References GNEViewParent::getApp(), GUIMainWindow::getBoldFont(), GUIIconSubSys::getIcon(), GNEAttributeCarrier::getIcon(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTag(), GNEViewNet::getViewParent(), ICON_MODEDELETE, ICON_MODEINSPECT, ICON_RECENTERVIEW, MID_GNE_DELETEFRAME_CENTER, MID_GNE_DELETEFRAME_DELETE, MID_GNE_DELETEFRAME_INSPECT, myClickedAC, myTreelist, GNEFrame::myViewNet, and toString().
Referenced by GNEDeleteFrame(), and onCmdShowChildMenu().
|
inherited |
focus upper element of frame
Definition at line 92 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEViewNet::hotkeyFocusFrame(), GNEViewNet::onLeftBtnPress(), GNEViewNet::setEditMode(), and GNEViewNet::updateModeSpecificControls().
|
inherited |
get font of the header's frame
Definition at line 135 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
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 486 of file GNEDeleteFrame.cpp.
References myMarkedAC.
Referenced by GNEViewNet::onLeftBtnPress(), and GNEViewNet::onMouseMove().
|
inherited |
get view net
Definition at line 123 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNECrossingFrame::edgesSelector::enableEdgeSelector(), GNEInspectorFrame::AttributeInput::onCmdSetAttribute(), GNECrossingFrame::crossingParameters::onCmdSetAttribute(), GNEInspectorFrame::onCmdSetBlocking(), removeAttributeCarrier(), and GNECrossingFrame::edgesSelector::restoreEdgeColors().
|
virtualinherited |
hide Frame
Reimplemented in GNECrossingFrame, and GNESelectorFrame.
Definition at line 107 of file GNEFrame.cpp.
References GNEViewNet::getViewParent(), GNEViewParent::hideFramesArea(), and GNEFrame::myViewNet.
Referenced by GNESelectorFrame::hide(), GNECrossingFrame::hide(), GNEAdditionalFrame::AdditionalAttributes::hideAdditionalParameters(), GNEAdditionalFrame::SelectorParentLanes::hideList(), GNEAdditionalFrame::SelectorParentAdditional::hideListOfAdditionals(), GNEAdditionalFrame::AdditionalAttributeSingle::hideParameter(), GNEInspectorFrame::onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), onCmdInspectItem(), and removeAttributeCarrier().
void GNEDeleteFrame::markAttributeCarrier | ( | GNEAttributeCarrier * | ac | ) |
mark attribute carrier (element)
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().
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.
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().
long GNEDeleteFrame::onCmdInspectItem | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user select option "inspect item" of child menu
Definition at line 521 of file GNEDeleteFrame.cpp.
References GNEViewParent::getInspectorFrame(), GNEViewNet::getViewParent(), GNEFrame::hide(), GNEInspectorFrame::inspectFromDeleteFrame(), myClickedAC, myCurrentAC, myMarkedAC, GNEFrame::myViewNet, and GNEInspectorFrame::show().
long GNEDeleteFrame::onCmdShowChildMenu | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Definition at line 492 of file GNEDeleteFrame.cpp.
References createPopUpMenu(), myTreeItemsWithoutAC, myTreeItemToACMap, and myTreelist.
void GNEDeleteFrame::removeAttributeCarrier | ( | GNEAttributeCarrier * | ac | ) |
remove attribute carrier (element)
Definition at line 342 of file GNEDeleteFrame.cpp.
References GNENet::deleteConnection(), GNENet::deleteCrossing(), GNENet::deleteGeometryOrEdge(), GNENet::deleteJunction(), GNENet::deleteLane(), GNELane::getAdditionalChilds(), GNEEdge::getAdditionalChilds(), GNEViewParent::getAdditionalFrame(), GNEEdge::getGNERerouters(), GNEAttributeCarrier::getID(), GNEViewParent::getInspectorFrame(), GNEEdge::getLanes(), GNEViewNet::getNet(), GUISUMOAbstractView::getPositionInformation(), GNENet::getShapeContainer(), GNEAttributeCarrier::getTag(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), GLO_ADDITIONAL, GLO_CONNECTION, GLO_CROSSING, GLO_EDGE, GLO_JUNCTION, GLO_LANE, GLO_POI, GLO_POLYGON, GNEFrame::hide(), GNEViewNet::isTestingModeEnabled(), myAutomaticallyDeleteAdditionalsCheckButton, GNEFrame::myViewNet, GNEAdditionalFrame::removeAdditional(), ShapeContainer::removePOI(), GNEFrame::show(), SUMO_TAG_REROUTER, toString(), and WRITE_WARNING.
Referenced by onCmdDeleteItem(), GNEInspectorFrame::onCmdDeleteItem(), and GNEViewNet::onLeftBtnPress().
|
inherited |
set width of GNEFrame
Definition at line 116 of file GNEFrame.cpp.
References GNEFrame::myScrollWindowsContents.
|
virtualinherited |
show Frame
Reimplemented in GNEAdditionalFrame, GNEInspectorFrame, and GNESelectorFrame.
Definition at line 98 of file GNEFrame.cpp.
References GNEViewNet::getViewParent(), GNEFrame::myViewNet, and GNEViewParent::showFramesArea().
Referenced by GNEInspectorFrame::onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), removeAttributeCarrier(), GNESelectorFrame::show(), GNEInspectorFrame::show(), GNEAdditionalFrame::show(), and GNEViewNet::updateModeSpecificControls().
void GNEDeleteFrame::showAttributeCarrierChilds | ( | GNEAttributeCarrier * | ac | ) |
show child of attributeCarrier in frame if previously there isn't a marked element
Definition at line 111 of file GNEDeleteFrame.cpp.
References GNELane::getAdditionalChilds(), GNEEdge::getAdditionalChilds(), GNEJunction::getGNECrossings(), GNEJunction::getGNEEdges(), GNELane::getGNEIncomingConnections(), GNELane::getGNEOutcomingConnections(), GNEEdge::getGNERerouters(), GNEAttributeCarrier::getIcon(), GNEEdge::getLanes(), GNEEdge::getNumberOfGNERerouters(), GNEAttributeCarrier::getTag(), GLO_ADDITIONAL, GLO_CONNECTION, GLO_CROSSING, GLO_EDGE, GLO_JUNCTION, GLO_LANE, GLO_POI, GLO_POLYGON, myCurrentAC, myTreeItemsWithoutAC, myTreeItemToACMap, myTreelist, SUMO_TAG_REROUTER, and toString().
Referenced by onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), GNEViewNet::onLeftBtnPress(), and GNEViewNet::onMouseMove().
void GNEDeleteFrame::updateCurrentLabel | ( | GNEAttributeCarrier * | ac | ) |
update current label
Definition at line 473 of file GNEDeleteFrame.cpp.
References GUIIconSubSys::getIcon(), GNEAttributeCarrier::getIcon(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTag(), ICON_EMPTY, myCurrentElementLabel, and toString().
Referenced by GNEViewNet::onMouseMove().
|
private |
checkbox for enable/disble automatically delete additionals childs
Definition at line 123 of file GNEDeleteFrame.h.
Referenced by removeAttributeCarrier().
|
private |
current attribute carrier selected in three
Definition at line 141 of file GNEDeleteFrame.h.
Referenced by createPopUpMenu(), onCmdCenterItem(), onCmdDeleteItem(), and onCmdInspectItem().
|
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().
|
private |
pointer to current AC
Definition at line 135 of file GNEDeleteFrame.h.
Referenced by onCmdDeleteItem(), onCmdInspectItem(), and showAttributeCarrierChilds().
|
private |
label for current element
Definition at line 105 of file GNEDeleteFrame.h.
Referenced by updateCurrentLabel().
|
protectedinherited |
Font for the Header.
Definition at line 98 of file GNEFrame.h.
Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().
|
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().
|
private |
groupbox for current element
Definition at line 102 of file GNEDeleteFrame.h.
|
private |
groupbox for information
Definition at line 117 of file GNEDeleteFrame.h.
|
private |
groupbox options
Definition at line 111 of file GNEDeleteFrame.h.
|
private |
groupbox for tree list childs
Definition at line 114 of file GNEDeleteFrame.h.
|
protectedinherited |
fame for header elements
Definition at line 107 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 110 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 113 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
private |
Label for information 1.
Definition at line 120 of file GNEDeleteFrame.h.
|
private |
pointer to marked attributeCarrier (element)
Definition at line 138 of file GNEDeleteFrame.h.
Referenced by getMarkedAttributeCarrier(), markAttributeCarrier(), and onCmdInspectItem().
|
private |
label for marked element
Definition at line 108 of file GNEDeleteFrame.h.
Referenced by markAttributeCarrier().
|
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().
|
private |
map used to save the Tree items with their AC
Definition at line 129 of file GNEDeleteFrame.h.
Referenced by onCmdShowChildMenu(), and showAttributeCarrierChilds().
|
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().
|
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().