SUMO - Simulation of Urban MObility
GNEInspector Class Reference

#include <GNEInspector.h>

Inheritance diagram for GNEInspector:
Inheritance graph
Collaboration diagram for GNEInspector:
Collaboration graph

Data Structures

class  AttrInput
 
class  AttrPanel
 

Public Member Functions

void create ()
 Creates the widget. More...
 
GNEEdgegetEdgeTemplate ()
 
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...
 
GNEEdgemyEdgeTemplate
 the edge template More...
 
FXFont * myHeaderFont
 Font for the widget. More...
 
AttrPanelmyPanel
 
GNEUndoListmyUndoList
 

Static Private Attributes

static const int WIDTH = 140
 

Detailed Description

The Widget for modifying network-element attributes (i.e. lane speed)

Definition at line 52 of file GNEInspector.h.

Constructor & Destructor Documentation

GNEInspector::GNEInspector ( FXComposite *  parent,
GNEUndoList undoList 
)

Constructor.

Parameters
[in]parentThe parent window
[in]undoListThe undoList to record changes facilitated by this
[in]tplThe initial edge template (we assume shared responsibility via reference counting)

Definition at line 84 of file GNEInspector.cpp.

GNEInspector::~GNEInspector ( )
GNEInspector::GNEInspector ( )
inlineprotected

FOX needs this.

Definition at line 145 of file GNEInspector.h.

Member Function Documentation

void GNEInspector::create ( )

Creates the widget.

Definition at line 95 of file GNEInspector.cpp.

References myHeaderFont, and myPanel.

GNEEdge* GNEInspector::getEdgeTemplate ( )
inline
FXFont* GNEInspector::getHeaderFont ( )
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.

Referenced by getEdgeTemplate().

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().

Referenced by getEdgeTemplate().

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.

Referenced by getEdgeTemplate().

void GNEInspector::setEdgeTemplate ( GNEEdge tpl)
void GNEInspector::update ( )

update the widget

Definition at line 125 of file GNEInspector.cpp.

References inspect(), and myACs.

Referenced by GNEViewNet::updateControls().

Field Documentation

std::vector<GNEAttributeCarrier*> GNEInspector::myACs
private

the multi-selection currently being inspected

Definition at line 160 of file GNEInspector.h.

Referenced by inspect(), onCmdCopyTemplate(), onCmdSetTemplate(), and update().

GNEEdge* GNEInspector::myEdgeTemplate
private

the edge template

Definition at line 157 of file GNEInspector.h.

Referenced by getEdgeTemplate(), onCmdCopyTemplate(), onUpdCopyTemplate(), setEdgeTemplate(), and ~GNEInspector().

FXFont* GNEInspector::myHeaderFont
private

Font for the widget.

Definition at line 152 of file GNEInspector.h.

Referenced by create(), getHeaderFont(), and ~GNEInspector().

AttrPanel* GNEInspector::myPanel
private

Definition at line 154 of file GNEInspector.h.

Referenced by create(), inspect(), onCmdSetTemplate(), and ~GNEInspector().

GNEUndoList* GNEInspector::myUndoList
private

Definition at line 149 of file GNEInspector.h.

Referenced by inspect(), and onCmdCopyTemplate().

const int GNEInspector::WIDTH = 140
staticprivate

Definition at line 162 of file GNEInspector.h.

Referenced by GNEInspector::AttrInput::AttrInput().


The documentation for this class was generated from the following files: