SUMO - Simulation of Urban MObility
GNEInspectorFrame Class Reference

#include <GNEInspectorFrame.h>

Inheritance diagram for GNEInspectorFrame:
Inheritance graph
Collaboration diagram for GNEInspectorFrame:
Collaboration graph

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...
 
GNEEdgegetEdgeTemplate () 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...
 
GNEViewNetgetViewNet () 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...
 
GNEViewNetmyViewNet
 the window to inform when the tls is modfied More...
 

Private Attributes

std::vector< GNEAttributeCarrier * > myACs
 the multi-selection currently being inspected More...
 
GNEAdditionalmyAdditional
 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...
 
GNEEdgemyEdgeTemplate
 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...
 
GNEAttributeCarriermyPreviousElement
 pointer to previous element (If exist) More...
 
FXButton * mySetTemplateButton
 set template button More...
 
std::vector< GNEInspectorFrame::AttrInput * > vectorOfAttrInput
 list of Attribute inputs More...
 

Detailed Description

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

Definition at line 51 of file GNEInspectorFrame.h.

Constructor & Destructor Documentation

§ GNEInspectorFrame() [1/2]

GNEInspectorFrame::GNEInspectorFrame ( FXComposite *  parent,
GNEViewNet viewNet 
)

§ ~GNEInspectorFrame()

GNEInspectorFrame::~GNEInspectorFrame ( )

§ GNEInspectorFrame() [2/2]

GNEInspectorFrame::GNEInspectorFrame ( )
inlineprotected

FOX needs this.

Definition at line 279 of file GNEInspectorFrame.h.

Member Function Documentation

§ getACs()

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

§ getEdgeTemplate()

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

§ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 105 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

§ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 99 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by inspect().

§ getViewNet()

§ hide()

void GNEInspectorFrame::hide ( )
virtual

§ inspect() [1/2]

void GNEInspectorFrame::inspect ( GNEAttributeCarrier AC,
GNEAttributeCarrier previousElement = NULL 
)

§ inspect() [2/2]

§ onCmdCopyTemplate()

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.

§ onCmdGoBack()

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.

§ onCmdSetBlocking()

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

§ onCmdSetTemplate()

long GNEInspectorFrame::onCmdSetTemplate ( FXObject *  ,
FXSelector  ,
void *   
)

set current edge as new template

Definition at line 365 of file GNEInspectorFrame.cpp.

References myACs, and setEdgeTemplate().

§ onUpdCopyTemplate()

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.

§ setEdgeTemplate()

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

§ show()

void GNEInspectorFrame::show ( )
virtual

Field Documentation

§ myACs

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

the multi-selection currently being inspected

Definition at line 322 of file GNEInspectorFrame.h.

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

§ myAdditional

GNEAdditional* GNEInspectorFrame::myAdditional
private

pointer to additional element

Definition at line 310 of file GNEInspectorFrame.h.

Referenced by inspect(), and onCmdSetBlocking().

§ myAttrConnections

std::vector<AttrConnection*> GNEInspectorFrame::myAttrConnections
private

vector of attrConnections

Definition at line 319 of file GNEInspectorFrame.h.

Referenced by inspect().

§ myBackButton

FXButton* GNEInspectorFrame::myBackButton
private

back Button

Definition at line 289 of file GNEInspectorFrame.h.

Referenced by inspect().

§ myCheckBlocked

FXCheckButton* GNEInspectorFrame::myCheckBlocked
private

pointer to check button block

Definition at line 307 of file GNEInspectorFrame.h.

Referenced by inspect(), and onCmdSetBlocking().

§ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

the panel to hold all member widgets

Definition at line 94 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

§ myCopyTemplateButton

FXButton* GNEInspectorFrame::myCopyTemplateButton
private

copy template button

Definition at line 295 of file GNEInspectorFrame.h.

Referenced by inspect().

§ myEdgeTemplate

GNEEdge* GNEInspectorFrame::myEdgeTemplate
private

the edge template

Definition at line 301 of file GNEInspectorFrame.h.

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

§ myFrameHeaderFont

FXFont* GNEFrame::myFrameHeaderFont
protectedinherited

Font for the Header.

Definition at line 88 of file GNEFrame.h.

Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().

§ myFrameHeaderLabel

FXLabel* GNEFrame::myFrameHeaderLabel
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().

§ myGroupBoxForAttrConnections

FXGroupBox* GNEInspectorFrame::myGroupBoxForAttrConnections
private

groupBox for AttrConnection

Definition at line 316 of file GNEInspectorFrame.h.

Referenced by inspect().

§ myGroupBoxForAttributes

FXGroupBox* GNEInspectorFrame::myGroupBoxForAttributes
private

groupBox for attributes

Definition at line 283 of file GNEInspectorFrame.h.

Referenced by inspect().

§ myGroupBoxForEditor

FXGroupBox* GNEInspectorFrame::myGroupBoxForEditor
private

GropuBox for editor attributes.

Definition at line 304 of file GNEInspectorFrame.h.

Referenced by inspect().

§ myGroupBoxForTemplates

FXGroupBox* GNEInspectorFrame::myGroupBoxForTemplates
private

groupBox for templates

Definition at line 292 of file GNEInspectorFrame.h.

Referenced by inspect().

§ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

Definition at line 97 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

§ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame
protectedinherited

fame for left header elements

Definition at line 100 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame(), and inspect().

§ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame
protectedinherited

fame for right header elements

Definition at line 103 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

§ myPreviousElement

GNEAttributeCarrier* GNEInspectorFrame::myPreviousElement
private

pointer to previous element (If exist)

Definition at line 313 of file GNEInspectorFrame.h.

Referenced by inspect(), and onCmdGoBack().

§ mySetTemplateButton

FXButton* GNEInspectorFrame::mySetTemplateButton
private

set template button

Definition at line 298 of file GNEInspectorFrame.h.

Referenced by inspect().

§ myViewNet

GNEViewNet* GNEFrame::myViewNet
protectedinherited

§ vectorOfAttrInput

std::vector<GNEInspectorFrame::AttrInput*> GNEInspectorFrame::vectorOfAttrInput
private

list of Attribute inputs

Definition at line 286 of file GNEInspectorFrame.h.

Referenced by inspect().


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