![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEInspectorFrame.h>


Data Structures | |
| class | AttrConnection |
| class | AttrEditor |
| class | AttrInput |
| FOX-declaration. More... | |
Public Member Functions | |
| 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 (FXComposite *parent, GNEViewNet *viewNet) | |
| Constructor. More... | |
| void | hide () |
| hide Frame More... | |
| void | inspect (GNEAttributeCarrier *AC, GNEAttributeCarrier *previousElement=NULL) |
| Inspect a single element. More... | |
| void | inspect (const std::vector< GNEAttributeCarrier *> &ACs, GNEAttributeCarrier *previousElement=NULL) |
| Inspect the given multi-selection. More... | |
| long | onCmdCopyTemplate (FXObject *, FXSelector, void *) |
| copy edge attributes from edge template More... | |
| long | onCmdGoBack (FXObject *, FXSelector, void *) |
| called when user toogle the go back button More... | |
| long | onCmdSetBlocking (FXObject *, FXSelector, void *) |
| called when user toogle the blocking button More... | |
| 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... | |
| void | setEdgeTemplate (GNEEdge *tpl) |
| seh the template edge (we assume shared responsibility via reference counting) More... | |
| void | show () |
| show Frame More... | |
| ~GNEInspectorFrame () | |
| Destructor. More... | |
Protected Member Functions | |
| GNEInspectorFrame () | |
| FOX needs this. More... | |
Protected Attributes | |
| FXVerticalFrame * | myContentFrame |
| the panel to hold all member widgets 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... | |
| std::vector< AttrConnection * > | myAttrConnections |
| vector of attrConnections More... | |
| FXButton * | myBackButton |
| back Button More... | |
| FXCheckButton * | myCheckBlocked |
| pointer to check button block More... | |
| FXButton * | myCopyTemplateButton |
| copy template button More... | |
| GNEEdge * | myEdgeTemplate |
| the edge template More... | |
| FXGroupBox * | myGroupBoxForAttrConnections |
| groupBox for AttrConnection More... | |
| FXGroupBox * | myGroupBoxForAttributes |
| groupBox for attributes More... | |
| FXGroupBox * | myGroupBoxForEditor |
| GropuBox for editor attributes. More... | |
| FXGroupBox * | myGroupBoxForTemplates |
| groupBox for templates More... | |
| GNEAttributeCarrier * | myPreviousElement |
| pointer to previous element (If exist) More... | |
| FXButton * | mySetTemplateButton |
| set template button More... | |
| std::vector< GNEInspectorFrame::AttrInput * > | vectorOfAttrInput |
| list of Attribute inputs More... | |
The Widget for modifying network-element attributes (i.e. lane speed)
Definition at line 51 of file GNEInspectorFrame.h.
| GNEInspectorFrame::GNEInspectorFrame | ( | FXComposite * | parent, |
| GNEViewNet * | viewNet | ||
| ) |
Constructor.
parent FXFrame in which this GNEFrame is placed viewNet viewNet that uses this GNEFrame
Definition at line 101 of file GNEInspectorFrame.cpp.
References GNEAttributeCarrier::getHigherNumberOfAttributes(), GUIIconSubSys::getIcon(), ICON_NETEDITARROW, MAXNUMBEROFATTRCONNECTIONS, MID_GNE_COPY_TEMPLATE, MID_GNE_INSPECT_GOBACK, MID_GNE_SET_BLOCKING, and MID_GNE_SET_TEMPLATE.
| GNEInspectorFrame::~GNEInspectorFrame | ( | ) |
Destructor.
Definition at line 150 of file GNEInspectorFrame.cpp.
References GNEReferenceCounter::decRef(), myEdgeTemplate, and GNEReferenceCounter::unreferenced().
|
inlineprotected |
FOX needs this.
Definition at line 279 of file GNEInspectorFrame.h.
| 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::AttrInput::onCmdSetAttribute().
| GNEEdge * GNEInspectorFrame::getEdgeTemplate | ( | ) | const |
get the template edge (to copy attributes from)
Definition at line 334 of file GNEInspectorFrame.cpp.
References myEdgeTemplate.
Referenced by GNEViewNet::onLeftBtnPress().
|
inherited |
get font of the header's frame
Definition at line 105 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 99 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by inspect().
|
inherited |
get view net
Definition at line 93 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNEInspectorFrame::AttrConnection::onCmdInspectConnection(), GNEInspectorFrame::AttrInput::onCmdSetAttribute(), onCmdSetBlocking(), and GNEInspectorFrame::AttrConnection::onCmdSetShowConnection().
|
virtual |
hide Frame
Implements GNEFrame.
Definition at line 170 of file GNEInspectorFrame.cpp.
References GNEViewNet::getViewParent(), GNEViewParent::hideFramesArea(), and GNEFrame::myViewNet.
Referenced by GNEViewNet::updateModeSpecificControls().
| void GNEInspectorFrame::inspect | ( | GNEAttributeCarrier * | AC, |
| GNEAttributeCarrier * | previousElement = NULL |
||
| ) |
Inspect a single element.
Definition at line 179 of file GNEInspectorFrame.cpp.
Referenced by onCmdCopyTemplate(), onCmdGoBack(), GNEInspectorFrame::AttrConnection::onCmdInspectConnection(), and GNEViewNet::onLeftBtnPress().
| void GNEInspectorFrame::inspect | ( | const std::vector< GNEAttributeCarrier *> & | ACs, |
| GNEAttributeCarrier * | previousElement = NULL |
||
| ) |
Inspect the given multi-selection.
Definition at line 188 of file GNEInspectorFrame.cpp.
References GNEFrame::getFrameHeaderLabel(), GNEAdditional::isAdditionalBlocked(), GNEAdditional::isAdditionalMovable(), GNEAttributeCarrier::isUnique(), MAXNUMBEROFATTRCONNECTIONS, myACs, myAdditional, myAttrConnections, myBackButton, myCheckBlocked, myCopyTemplateButton, myGroupBoxForAttrConnections, myGroupBoxForAttributes, myGroupBoxForEditor, myGroupBoxForTemplates, GNEFrame::myHeaderLeftFrame, myPreviousElement, mySetTemplateButton, toString(), vectorOfAttrInput, and WRITE_WARNING.
| long GNEInspectorFrame::onCmdCopyTemplate | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
copy edge attributes from edge template
Definition at line 353 of file GNEInspectorFrame.cpp.
References GNEEdge::copyTemplate(), GNEViewNet::getUndoList(), inspect(), myACs, myEdgeTemplate, and GNEFrame::myViewNet.
| long GNEInspectorFrame::onCmdGoBack | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user toogle the go back button
Definition at line 403 of file GNEInspectorFrame.cpp.
References inspect(), and myPreviousElement.
| long GNEInspectorFrame::onCmdSetBlocking | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user toogle the blocking button
Definition at line 390 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 365 of file GNEInspectorFrame.cpp.
References myACs, and setEdgeTemplate().
| long GNEInspectorFrame::onUpdCopyTemplate | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
update the copy button with the name of the template
Definition at line 375 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 340 of file GNEInspectorFrame.cpp.
References GNEReferenceCounter::decRef(), GNEReferenceCounter::incRef(), myEdgeTemplate, and GNEReferenceCounter::unreferenced().
Referenced by onCmdSetTemplate().
|
virtual |
show Frame
Implements GNEFrame.
Definition at line 161 of file GNEInspectorFrame.cpp.
References GNEViewNet::getViewParent(), GNEFrame::myViewNet, and GNEViewParent::showFramesArea().
Referenced by GNEViewNet::updateModeSpecificControls().
|
private |
the multi-selection currently being inspected
Definition at line 322 of file GNEInspectorFrame.h.
Referenced by getACs(), inspect(), onCmdCopyTemplate(), and onCmdSetTemplate().
|
private |
pointer to additional element
Definition at line 310 of file GNEInspectorFrame.h.
Referenced by inspect(), and onCmdSetBlocking().
|
private |
vector of attrConnections
Definition at line 319 of file GNEInspectorFrame.h.
Referenced by inspect().
|
private |
|
private |
pointer to check button block
Definition at line 307 of file GNEInspectorFrame.h.
Referenced by inspect(), and onCmdSetBlocking().
|
protectedinherited |
the panel to hold all member widgets
Definition at line 94 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
private |
|
private |
the edge template
Definition at line 301 of file GNEInspectorFrame.h.
Referenced by getEdgeTemplate(), onCmdCopyTemplate(), onUpdCopyTemplate(), setEdgeTemplate(), and ~GNEInspectorFrame().
|
protectedinherited |
Font for the Header.
Definition at line 88 of file GNEFrame.h.
Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().
|
protectedinherited |
the label for the frame's header
Definition at line 91 of file GNEFrame.h.
Referenced by GNEFrame::getFrameHeaderLabel(), GNEFrame::GNEFrame(), and GNESelectorFrame::selectionUpdated().
|
private |
groupBox for AttrConnection
Definition at line 316 of file GNEInspectorFrame.h.
Referenced by inspect().
|
private |
groupBox for attributes
Definition at line 283 of file GNEInspectorFrame.h.
Referenced by inspect().
|
private |
GropuBox for editor attributes.
Definition at line 304 of file GNEInspectorFrame.h.
Referenced by inspect().
|
private |
|
protectedinherited |
fame for header elements
Definition at line 97 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 100 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), and inspect().
|
protectedinherited |
fame for right header elements
Definition at line 103 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
private |
pointer to previous element (If exist)
Definition at line 313 of file GNEInspectorFrame.h.
Referenced by inspect(), and onCmdGoBack().
|
private |
|
protectedinherited |
the window to inform when the tls is modfied
Definition at line 85 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), GNETLSEditorFrame::buildIinternalLanes(), GNETLSEditorFrame::editJunction(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEConnectorFrame::hide(), GNETLSEditorFrame::hide(), GNESelectorFrame::hide(), hide(), GNEAdditionalFrame::hide(), GNEConnectorFrame::initTargets(), GNEConnectorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNESelectorFrame::onCmdClear(), GNEConnectorFrame::onCmdClearSelectedConnections(), onCmdCopyTemplate(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNESelectorFrame::onCmdInvert(), GNESelectorFrame::onCmdLoad(), GNEConnectorFrame::onCmdOK(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNESelectorFrame::onCmdScaleSelection(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GNEAdditionalFrame::removeAdditional(), GNEConnectorFrame::show(), GNETLSEditorFrame::show(), GNESelectorFrame::show(), show(), and GNEAdditionalFrame::show().
|
private |
list of Attribute inputs
Definition at line 286 of file GNEInspectorFrame.h.
Referenced by inspect().