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


Data Structures | |
| 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 (const std::vector< GNEAttributeCarrier * > &ACs) |
| Inspect the given multi-selection. More... | |
| long | onCmdCopyTemplate (FXObject *, FXSelector, void *) |
| copy edge attributes from edge template 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... | |
| 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... | |
| FXCheckButton * | myCheckBlocked |
| pointer to check button block 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... | |
| 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 50 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 84 of file GNEInspectorFrame.cpp.
References GNEAttributeCarrier::getHigherNumberOfAttributes(), MID_GNE_COPY_TEMPLATE, MID_GNE_SET_BLOCKING, and MID_GNE_SET_TEMPLATE.
| GNEInspectorFrame::~GNEInspectorFrame | ( | ) |
Destructor.
Definition at line 118 of file GNEInspectorFrame.cpp.
References GNEReferenceCounter::decRef(), myEdgeTemplate, and GNEReferenceCounter::unreferenced().
|
inlineprotected |
FOX needs this.
Definition at line 218 of file GNEInspectorFrame.h.
| const std::vector< GNEAttributeCarrier * > & GNEInspectorFrame::getACs | ( | ) | const |
get current list of ACs
Definition at line 319 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 253 of file GNEInspectorFrame.cpp.
References myEdgeTemplate.
Referenced by GNEViewNet::onLeftBtnPress().
|
inherited |
get font of the header's frame
Definition at line 94 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 88 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by inspect().
|
inherited |
get view net
Definition at line 82 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNEInspectorFrame::AttrInput::onCmdSetAttribute().
|
virtual |
hide Frame
Implements GNEFrame.
Definition at line 138 of file GNEInspectorFrame.cpp.
References GNEViewNet::getViewParent(), GNEViewParent::hideFramesArea(), and GNEFrame::myViewNet.
Referenced by GNEViewNet::updateModeSpecificControls().
| void GNEInspectorFrame::inspect | ( | const std::vector< GNEAttributeCarrier * > & | ACs | ) |
Inspect the given multi-selection.
Definition at line 147 of file GNEInspectorFrame.cpp.
References GNEFrame::getFrameHeaderLabel(), GNEAdditional::isAdditionalBlocked(), GNEAdditional::isAdditionalMovable(), GNEAttributeCarrier::isUnique(), myACs, myAdditional, myCheckBlocked, myCopyTemplateButton, myGroupBoxForAttributes, myGroupBoxForEditor, myGroupBoxForTemplates, mySetTemplateButton, toString(), and vectorOfAttrInput.
Referenced by onCmdCopyTemplate(), and GNEViewNet::onLeftBtnPress().
| long GNEInspectorFrame::onCmdCopyTemplate | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
copy edge attributes from edge template
Definition at line 272 of file GNEInspectorFrame.cpp.
References GNEEdge::copyTemplate(), GNEViewNet::getUndoList(), inspect(), myACs, myEdgeTemplate, and GNEFrame::myViewNet.
| long GNEInspectorFrame::onCmdSetBlocking | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user toogle the blocking button
Definition at line 309 of file GNEInspectorFrame.cpp.
References myAdditional, myCheckBlocked, GNEFrame::myViewNet, and GNEAdditional::setBlocked().
| long GNEInspectorFrame::onCmdSetTemplate | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
set current edge as new template
Definition at line 284 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 294 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 259 of file GNEInspectorFrame.cpp.
References GNEReferenceCounter::decRef(), GNEReferenceCounter::incRef(), myEdgeTemplate, and GNEReferenceCounter::unreferenced().
Referenced by onCmdSetTemplate().
|
virtual |
show Frame
Implements GNEFrame.
Definition at line 129 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 249 of file GNEInspectorFrame.h.
Referenced by getACs(), inspect(), onCmdCopyTemplate(), and onCmdSetTemplate().
|
private |
pointer to additional element
Definition at line 246 of file GNEInspectorFrame.h.
Referenced by inspect(), and onCmdSetBlocking().
|
private |
pointer to check button block
Definition at line 243 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 237 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 attributes
Definition at line 222 of file GNEInspectorFrame.h.
Referenced by inspect().
|
private |
GropuBox for editor attributes.
Definition at line 240 of file GNEInspectorFrame.h.
Referenced by inspect().
|
private |
|
private |
|
protectedinherited |
the window to inform when the tls is modfied
Definition at line 85 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), GNEConnectorFrame::buildIinternalLanes(), 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(), onCmdSetBlocking(), GNEAdditionalFrame::removeAdditional(), GNEConnectorFrame::show(), GNETLSEditorFrame::show(), GNESelectorFrame::show(), show(), and GNEAdditionalFrame::show().
|
private |
list of Attribute inputs
Definition at line 225 of file GNEInspectorFrame.h.
Referenced by inspect().