|
SUMO - Simulation of Urban MObility
|
#include <GNEInspector.h>


Data Structures | |
| class | AttrInput |
| class | AttrPanel |
Public Member Functions | |
| void | create () |
| Creates the widget. More... | |
| GNEEdge * | getEdgeTemplate () |
| FXFont * | getHeaderFont () |
| GNEInspector (FXComposite *parent, GNEUndoList *undoList) | |
| Constructor. 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 | 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) |
| void | update () |
| update the widget More... | |
| ~GNEInspector () | |
| Destructor. More... | |
Protected Member Functions | |
| GNEInspector () | |
| FOX needs this. More... | |
Private Attributes | |
| std::vector< GNEAttributeCarrier * > | myACs |
| the multi-selection currently being inspected More... | |
| GNEEdge * | myEdgeTemplate |
| the edge template More... | |
| FXFont * | myHeaderFont |
| Font for the widget. More... | |
| AttrPanel * | myPanel |
| GNEUndoList * | myUndoList |
Static Private Attributes | |
| static const int | WIDTH = 140 |
The Widget for modifying network-element attributes (i.e. lane speed)
Definition at line 52 of file GNEInspector.h.
| GNEInspector::GNEInspector | ( | FXComposite * | parent, |
| GNEUndoList * | undoList | ||
| ) |
Constructor.
| [in] | parent | The parent window |
| [in] | undoList | The undoList to record changes facilitated by this |
| [in] | tpl | The initial edge template (we assume shared responsibility via reference counting) |
Definition at line 84 of file GNEInspector.cpp.
| GNEInspector::~GNEInspector | ( | ) |
Destructor.
Definition at line 102 of file GNEInspector.cpp.
References GNEReferenceCounter::decRef(), myEdgeTemplate, myHeaderFont, myPanel, and GNEReferenceCounter::unreferenced().
|
inlineprotected |
FOX needs this.
Definition at line 145 of file GNEInspector.h.
| void GNEInspector::create | ( | ) |
Creates the widget.
Definition at line 95 of file GNEInspector.cpp.
References myHeaderFont, and myPanel.
|
inline |
Definition at line 128 of file GNEInspector.h.
References myEdgeTemplate.
Referenced by GNEViewNet::onLeftBtnPress().
|
inline |
Definition at line 123 of file GNEInspector.h.
References myHeaderFont.
Referenced by GNEInspector::AttrPanel::AttrPanel().
| void GNEInspector::inspect | ( | const std::vector< GNEAttributeCarrier * > & | ACs | ) |
Inspect the given multi-selection.
Definition at line 115 of file GNEInspector.cpp.
References myACs, myPanel, and myUndoList.
Referenced by GNEViewNet::onLeftBtnPress(), update(), and GNEViewNet::updateModeSpecificControls().
| long GNEInspector::onCmdCopyTemplate | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
copy edge attributes from edge template
Definition at line 143 of file GNEInspector.cpp.
References GNEEdge::copyTemplate(), myACs, myEdgeTemplate, and myUndoList.
| long GNEInspector::onCmdSetTemplate | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
set current edge as new template
Definition at line 154 of file GNEInspector.cpp.
References myACs, myPanel, and setEdgeTemplate().
| long GNEInspector::onUpdCopyTemplate | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
update the copy button with the name of the template
Definition at line 165 of file GNEInspector.cpp.
References GUIGlObject::getMicrosimID(), and myEdgeTemplate.
| void GNEInspector::setEdgeTemplate | ( | GNEEdge * | tpl | ) |
Definition at line 130 of file GNEInspector.cpp.
References GNEReferenceCounter::decRef(), GNEReferenceCounter::incRef(), myEdgeTemplate, and GNEReferenceCounter::unreferenced().
Referenced by onCmdSetTemplate().
| void GNEInspector::update | ( | ) |
update the widget
Definition at line 125 of file GNEInspector.cpp.
References inspect(), and myACs.
Referenced by GNEViewNet::updateControls().
|
private |
the multi-selection currently being inspected
Definition at line 160 of file GNEInspector.h.
Referenced by inspect(), onCmdCopyTemplate(), GNEInspector::AttrInput::onCmdSetAttribute(), onCmdSetTemplate(), and update().
|
private |
the edge template
Definition at line 157 of file GNEInspector.h.
Referenced by getEdgeTemplate(), onCmdCopyTemplate(), onUpdCopyTemplate(), setEdgeTemplate(), and ~GNEInspector().
|
private |
Font for the widget.
Definition at line 152 of file GNEInspector.h.
Referenced by create(), getHeaderFont(), and ~GNEInspector().
|
private |
Definition at line 154 of file GNEInspector.h.
Referenced by create(), inspect(), onCmdSetTemplate(), and ~GNEInspector().
|
private |
Definition at line 149 of file GNEInspector.h.
Referenced by inspect(), onCmdCopyTemplate(), and GNEInspector::AttrInput::onCmdSetAttribute().
|
staticprivate |
Definition at line 162 of file GNEInspector.h.
Referenced by GNEInspector::AttrInput::AttrInput().