![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEInspectorFrame.h>
Data Structures | |
class | AttributeInput |
FOX-declaration. More... | |
Public Member Functions | |
void | focusUpperElement () |
focus upper element of frame More... | |
const std::vector< GNEAttributeCarrier * > & | getACs () const |
get current list of ACs More... | |
GNEEdge * | getEdgeTemplate () const |
get the template edge (to copy attributes from) More... | |
FXFont * | getFrameHeaderFont () const |
get font of the header's frame More... | |
FXLabel * | getFrameHeaderLabel () const |
get the label for the frame's header More... | |
GNEViewNet * | getViewNet () const |
get view net More... | |
GNEInspectorFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet) | |
Constructor. More... | |
virtual void | hide () |
hide Frame More... | |
void | inspectChild (GNEAttributeCarrier *AC, GNEAttributeCarrier *previousElement) |
inspect child of already inspected element More... | |
void | inspectElement (GNEAttributeCarrier *AC) |
Inspect a single 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 | setEdgeTemplate (GNEEdge *tpl) |
seh the template edge (we assume shared responsibility via reference counting) More... | |
void | setFrameWidth (int width) |
set width of GNEFrame More... | |
void | show () |
show inspector frame More... | |
~GNEInspectorFrame () | |
Destructor. More... | |
FOX-callbacks | |
copy edge attributes from edge template | |
long | onCmdCopyTemplate (FXObject *, FXSelector, void *) |
long | onCmdSetTemplate (FXObject *, FXSelector, void *) |
set current edge as new template More... | |
long | onUpdCopyTemplate (FXObject *, FXSelector, void *) |
update the copy button with the name of the template More... | |
long | onCmdSetBlocking (FXObject *, FXSelector, void *) |
called when user toogle the blocking button More... | |
long | onCmdGoBack (FXObject *, FXSelector, void *) |
called when user toogle the go back button More... | |
long | onCmdShowChildMenu (FXObject *, FXSelector, void *data) |
called when user press right click over an item of list of childs More... | |
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) |
GNEInspectorFrame () | |
FOX needs this. More... | |
void | showAttributeCarrierChilds () |
show child of current attributeCarrier 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 | |
std::vector< GNEAttributeCarrier * > | myACs |
the multi-selection currently being inspected More... | |
GNEAdditional * | myAdditional |
pointer to additional element More... | |
FXButton * | myBackButton |
back Button More... | |
FXCheckButton * | myCheckBlocked |
pointer to menu check block More... | |
FXLabel * | myCheckBlockedLabel |
Label for Check blocked. More... | |
FXButton * | myCopyTemplateButton |
copy template button More... | |
GNEEdge * | myEdgeTemplate |
the edge template More... | |
FXGroupBox * | myGroupBoxForAttributes |
groupBox for attributes More... | |
FXGroupBox * | myGroupBoxForEditor |
GropuBox for editor attributes. More... | |
FXGroupBox * | myGroupBoxForTemplates |
groupBox for templates More... | |
FXGroupBox * | myGroupBoxForTreeList |
groupBox for AttrConnection More... | |
GNEAttributeCarrier * | myPreviousElementDelete |
pointer to previous element called by Delete Frame More... | |
bool | myPreviousElementDeleteWasMarked |
flag to ckec if myPreviousElementDelete was marked in Delete Frame More... | |
GNEAttributeCarrier * | myPreviousElementInspect |
pointer to previous element called by Inspector Frame More... | |
GNEAttributeCarrier * | myRightClickedAC |
pointer to current right clicked Attribute Carrier More... | |
FXButton * | mySetTemplateButton |
set template button 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... | |
std::vector< GNEInspectorFrame::AttributeInput * > | myVectorOfAttributeInputs |
list of Attribute inputs More... | |
The Widget for modifying network-element attributes (i.e. lane speed)
Definition at line 49 of file GNEInspectorFrame.h.
GNEInspectorFrame::GNEInspectorFrame | ( | FXHorizontalFrame * | horizontalFrameParent, |
GNEViewNet * | viewNet | ||
) |
Constructor.
parent FXHorizontalFrame in which this GNEFrame is placed viewNet viewNet that uses this GNEFrame
Definition at line 97 of file GNEInspectorFrame.cpp.
References GNEAttributeCarrier::getHigherNumberOfAttributes(), GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButton, GUIDesignButtonIconRectangular, GUIDesignCheckButtonAttribute, GUIDesignGroupBoxFrame, GUIDesignLabelAttribute, GUIDesignTreeListFrame, ICON_NETEDITARROW, MID_GNE_CHILDS, MID_GNE_COPY_TEMPLATE, MID_GNE_INSPECT_GOBACK, MID_GNE_SET_BLOCKING, and MID_GNE_SET_TEMPLATE.
GNEInspectorFrame::~GNEInspectorFrame | ( | ) |
Destructor.
Definition at line 147 of file GNEInspectorFrame.cpp.
References GNEReferenceCounter::decRef(), myEdgeTemplate, and GNEReferenceCounter::unreferenced().
|
inlineprotected |
FOX needs this.
Definition at line 193 of file GNEInspectorFrame.h.
References createPopUpMenu(), and showAttributeCarrierChilds().
|
protected |
Definition at line 468 of file GNEInspectorFrame.cpp.
References GNEViewParent::getApp(), GUIMainWindow::getBoldFont(), GUIIconSubSys::getIcon(), GNEAttributeCarrier::getIcon(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTag(), GNEViewNet::getViewParent(), ICON_MODEDELETE, ICON_MODEINSPECT, ICON_RECENTERVIEW, MID_GNE_INSPECTFRAME_CENTER, MID_GNE_INSPECTFRAME_DELETE, MID_GNE_INSPECTFRAME_INSPECT, myRightClickedAC, myTreelist, GNEFrame::myViewNet, and toString().
Referenced by GNEInspectorFrame(), 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().
const std::vector< GNEAttributeCarrier * > & GNEInspectorFrame::getACs | ( | ) | const |
get current list of ACs
Definition at line 413 of file GNEInspectorFrame.cpp.
References myACs.
Referenced by GNEInspectorFrame::AttributeInput::onCmdSetAttribute().
GNEEdge * GNEInspectorFrame::getEdgeTemplate | ( | ) | const |
get the template edge (to copy attributes from)
Definition at line 322 of file GNEInspectorFrame.cpp.
References myEdgeTemplate.
Referenced by GNEViewNet::onLeftBtnPress().
|
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 inspectMultisection().
|
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(), onCmdSetBlocking(), GNEDeleteFrame::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(), onCmdDeleteItem(), onCmdGoBack(), GNEDeleteFrame::onCmdInspectItem(), and GNEDeleteFrame::removeAttributeCarrier().
void GNEInspectorFrame::inspectChild | ( | GNEAttributeCarrier * | AC, |
GNEAttributeCarrier * | previousElement | ||
) |
inspect child of already inspected element
Definition at line 294 of file GNEInspectorFrame.cpp.
References inspectElement(), myBackButton, GNEFrame::myHeaderLeftFrame, myPreviousElementDelete, and myPreviousElementInspect.
Referenced by onCmdInspectItem().
void GNEInspectorFrame::inspectElement | ( | GNEAttributeCarrier * | AC | ) |
Inspect a single element.
Definition at line 165 of file GNEInspectorFrame.cpp.
References inspectMultisection().
Referenced by inspectChild(), inspectFromDeleteFrame(), onCmdGoBack(), GNEViewNet::onLeftBtnPress(), and show().
void GNEInspectorFrame::inspectFromDeleteFrame | ( | GNEAttributeCarrier * | AC, |
GNEAttributeCarrier * | previousElement, | ||
bool | previousElementWasMarked | ||
) |
inspect called from DeleteFrame
Definition at line 307 of file GNEInspectorFrame.cpp.
References inspectElement(), myBackButton, GNEFrame::myHeaderLeftFrame, myPreviousElementDelete, myPreviousElementDeleteWasMarked, and myPreviousElementInspect.
Referenced by GNEDeleteFrame::onCmdInspectItem().
void GNEInspectorFrame::inspectMultisection | ( | const std::vector< GNEAttributeCarrier *> & | ACs | ) |
Inspect the given multi-selection.
Definition at line 176 of file GNEInspectorFrame.cpp.
References GNEFrame::getFrameHeaderLabel(), GNEAdditional::isAdditionalBlocked(), GNEAdditional::isAdditionalMovable(), GNEAttributeCarrier::isUnique(), myACs, myAdditional, myBackButton, myCheckBlocked, GNEFrame::myContentFrame, myCopyTemplateButton, myGroupBoxForAttributes, myGroupBoxForEditor, myGroupBoxForTemplates, myGroupBoxForTreeList, GNEFrame::myHeaderLeftFrame, mySetTemplateButton, myVectorOfAttributeInputs, showAttributeCarrierChilds(), SUMO_ATTR_TLID, SUMO_ATTR_TLTYPE, SUMO_TAG_JUNCTION, and toString().
Referenced by inspectElement(), onCmdCopyTemplate(), and GNEViewNet::onLeftBtnPress().
long GNEInspectorFrame::onCmdCenterItem | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user select option "center item" of child Menu
Definition at line 432 of file GNEInspectorFrame.cpp.
References GUISUMOAbstractView::centerTo(), myRightClickedAC, and GNEFrame::myViewNet.
long GNEInspectorFrame::onCmdCopyTemplate | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 341 of file GNEInspectorFrame.cpp.
References GNEEdge::copyTemplate(), GNEViewNet::getUndoList(), inspectMultisection(), myACs, myEdgeTemplate, and GNEFrame::myViewNet.
long GNEInspectorFrame::onCmdDeleteItem | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user select option "delte item" of child menu
Definition at line 456 of file GNEInspectorFrame.cpp.
References GNEViewParent::getDeleteFrame(), GNEViewNet::getViewParent(), GNEFrame::hide(), myRightClickedAC, GNEFrame::myViewNet, GNEDeleteFrame::removeAttributeCarrier(), GNEFrame::show(), and showAttributeCarrierChilds().
long GNEInspectorFrame::onCmdGoBack | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user toogle the go back button
Definition at line 393 of file GNEInspectorFrame.cpp.
References GNEViewParent::getDeleteFrame(), GNEViewNet::getViewParent(), GNEFrame::hide(), inspectElement(), GNEDeleteFrame::markAttributeCarrier(), myPreviousElementDelete, myPreviousElementDeleteWasMarked, myPreviousElementInspect, GNEFrame::myViewNet, GNEFrame::show(), and GNEDeleteFrame::showAttributeCarrierChilds().
long GNEInspectorFrame::onCmdInspectItem | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user select option "inspect item" of child menu
Definition at line 448 of file GNEInspectorFrame.cpp.
References inspectChild(), myACs, and myRightClickedAC.
long GNEInspectorFrame::onCmdSetBlocking | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user toogle the blocking button
Definition at line 378 of file GNEInspectorFrame.cpp.
References GNEFrame::getViewNet(), GNE_ATTR_BLOCK_MOVEMENT, myAdditional, myCheckBlocked, and GNEAdditional::setAttribute().
long GNEInspectorFrame::onCmdSetTemplate | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
set current edge as new template
Definition at line 353 of file GNEInspectorFrame.cpp.
References myACs, and setEdgeTemplate().
long GNEInspectorFrame::onCmdShowChildMenu | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
called when user press right click over an item of list of childs
Definition at line 419 of file GNEInspectorFrame.cpp.
References createPopUpMenu(), myTreeItemsWithoutAC, myTreeItemToACMap, and myTreelist.
long GNEInspectorFrame::onUpdCopyTemplate | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
update the copy button with the name of the template
Definition at line 363 of file GNEInspectorFrame.cpp.
References GUIGlObject::getMicrosimID(), and myEdgeTemplate.
void GNEInspectorFrame::setEdgeTemplate | ( | GNEEdge * | tpl | ) |
seh the template edge (we assume shared responsibility via reference counting)
Definition at line 328 of file GNEInspectorFrame.cpp.
References GNEReferenceCounter::decRef(), GNEReferenceCounter::incRef(), myEdgeTemplate, and GNEReferenceCounter::unreferenced().
Referenced by onCmdSetTemplate().
|
inherited |
set width of GNEFrame
Definition at line 116 of file GNEFrame.cpp.
References GNEFrame::myScrollWindowsContents.
|
virtual |
show inspector frame
Reimplemented from GNEFrame.
Definition at line 158 of file GNEInspectorFrame.cpp.
References inspectElement(), and GNEFrame::show().
Referenced by GNEDeleteFrame::onCmdInspectItem(), and GNEViewNet::updateModeSpecificControls().
|
protected |
show child of current attributeCarrier
Definition at line 489 of file GNEInspectorFrame.cpp.
References GNELane::getAdditionalChilds(), GNEEdge::getAdditionalChilds(), GNEJunction::getGNECrossings(), GNEJunction::getGNEEdges(), GNELane::getGNEIncomingConnections(), GNELane::getGNEOutcomingConnections(), GNEAttributeCarrier::getIcon(), GNEEdge::getLanes(), GNEAttributeCarrier::getTag(), GLO_ADDITIONAL, GLO_CONNECTION, GLO_CROSSING, GLO_EDGE, GLO_JUNCTION, GLO_LANE, GLO_POI, GLO_POLYGON, myACs, myGroupBoxForTreeList, myTreeItemsWithoutAC, myTreeItemToACMap, myTreelist, and toString().
Referenced by GNEInspectorFrame(), inspectMultisection(), and onCmdDeleteItem().
|
private |
the multi-selection currently being inspected
Definition at line 245 of file GNEInspectorFrame.h.
Referenced by getACs(), inspectMultisection(), onCmdCopyTemplate(), onCmdInspectItem(), onCmdSetTemplate(), and showAttributeCarrierChilds().
|
private |
pointer to additional element
Definition at line 233 of file GNEInspectorFrame.h.
Referenced by inspectMultisection(), and onCmdSetBlocking().
|
private |
back Button
Definition at line 209 of file GNEInspectorFrame.h.
Referenced by inspectChild(), inspectFromDeleteFrame(), and inspectMultisection().
|
private |
pointer to menu check block
Definition at line 230 of file GNEInspectorFrame.h.
Referenced by inspectMultisection(), and onCmdSetBlocking().
|
private |
Label for Check blocked.
Definition at line 227 of file GNEInspectorFrame.h.
|
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 inspectMultisection().
|
private |
copy template button
Definition at line 215 of file GNEInspectorFrame.h.
Referenced by inspectMultisection().
|
private |
the edge template
Definition at line 221 of file GNEInspectorFrame.h.
Referenced by getEdgeTemplate(), onCmdCopyTemplate(), onUpdCopyTemplate(), setEdgeTemplate(), and ~GNEInspectorFrame().
|
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 attributes
Definition at line 203 of file GNEInspectorFrame.h.
Referenced by inspectMultisection().
|
private |
GropuBox for editor attributes.
Definition at line 224 of file GNEInspectorFrame.h.
Referenced by inspectMultisection().
|
private |
groupBox for templates
Definition at line 212 of file GNEInspectorFrame.h.
Referenced by inspectMultisection().
|
private |
groupBox for AttrConnection
Definition at line 248 of file GNEInspectorFrame.h.
Referenced by inspectMultisection(), and showAttributeCarrierChilds().
|
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(), inspectChild(), inspectFromDeleteFrame(), and inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 113 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
private |
pointer to previous element called by Delete Frame
Definition at line 239 of file GNEInspectorFrame.h.
Referenced by inspectChild(), inspectFromDeleteFrame(), and onCmdGoBack().
|
private |
flag to ckec if myPreviousElementDelete was marked in Delete Frame
Definition at line 242 of file GNEInspectorFrame.h.
Referenced by inspectFromDeleteFrame(), and onCmdGoBack().
|
private |
pointer to previous element called by Inspector Frame
Definition at line 236 of file GNEInspectorFrame.h.
Referenced by inspectChild(), inspectFromDeleteFrame(), and onCmdGoBack().
|
private |
pointer to current right clicked Attribute Carrier
Definition at line 260 of file GNEInspectorFrame.h.
Referenced by createPopUpMenu(), onCmdCenterItem(), onCmdDeleteItem(), and onCmdInspectItem().
|
private |
set template button
Definition at line 218 of file GNEInspectorFrame.h.
Referenced by inspectMultisection().
|
private |
set used to save tree items without AC assigned (for example, Incoming/Outcoming connections)
Definition at line 257 of file GNEInspectorFrame.h.
Referenced by onCmdShowChildMenu(), and showAttributeCarrierChilds().
|
private |
map used to save the Tree items with their AC
Definition at line 254 of file GNEInspectorFrame.h.
Referenced by onCmdShowChildMenu(), and showAttributeCarrierChilds().
|
private |
tree list to show the childs of the element to erase
Definition at line 251 of file GNEInspectorFrame.h.
Referenced by createPopUpMenu(), onCmdShowChildMenu(), and showAttributeCarrierChilds().
|
private |
list of Attribute inputs
Definition at line 206 of file GNEInspectorFrame.h.
Referenced by inspectMultisection().
|
protectedinherited |
the window to inform when the tls is modfied
Definition at line 95 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), GNETLSEditorFrame::buildIinternalLanes(), GNEDeleteFrame::createPopUpMenu(), 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(), GNEDeleteFrame::onCmdCenterItem(), onCmdCenterItem(), GNESelectorFrame::onCmdClear(), GNEConnectorFrame::onCmdClearSelectedConnections(), onCmdCopyTemplate(), GNECrossingFrame::onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), onCmdDeleteItem(), onCmdGoBack(), GNEDeleteFrame::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(), GNEDeleteFrame::removeAttributeCarrier(), and GNEFrame::show().