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  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 (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...
 
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...
 
FXCheckButton * myCheckBlocked
 pointer to check button block More...
 
FXButton * myCopyTemplateButton
 copy template button More...
 
GNEEdgemyEdgeTemplate
 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...
 

Detailed Description

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

Definition at line 50 of file GNEInspectorFrame.h.

Constructor & Destructor Documentation

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 ( )
GNEInspectorFrame::GNEInspectorFrame ( )
inlineprotected

FOX needs this.

Definition at line 218 of file GNEInspectorFrame.h.

Member Function Documentation

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

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 94 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 88 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by inspect().

GNEViewNet * GNEFrame::getViewNet ( ) const
inherited

get view net

Definition at line 82 of file GNEFrame.cpp.

References GNEFrame::myViewNet.

Referenced by GNEInspectorFrame::AttrInput::onCmdSetAttribute().

void GNEInspectorFrame::hide ( )
virtual
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().

void GNEInspectorFrame::show ( )
virtual

Field Documentation

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

the multi-selection currently being inspected

Definition at line 249 of file GNEInspectorFrame.h.

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

GNEAdditional* GNEInspectorFrame::myAdditional
private

pointer to additional element

Definition at line 246 of file GNEInspectorFrame.h.

Referenced by inspect(), and onCmdSetBlocking().

FXCheckButton* GNEInspectorFrame::myCheckBlocked
private

pointer to check button block

Definition at line 243 of file GNEInspectorFrame.h.

Referenced by inspect(), and onCmdSetBlocking().

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

the panel to hold all member widgets

Definition at line 94 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

FXButton* GNEInspectorFrame::myCopyTemplateButton
private

copy template button

Definition at line 231 of file GNEInspectorFrame.h.

Referenced by inspect().

GNEEdge* GNEInspectorFrame::myEdgeTemplate
private

the edge template

Definition at line 237 of file GNEInspectorFrame.h.

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

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

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

FXGroupBox* GNEInspectorFrame::myGroupBoxForAttributes
private

groupBox for attributes

Definition at line 222 of file GNEInspectorFrame.h.

Referenced by inspect().

FXGroupBox* GNEInspectorFrame::myGroupBoxForEditor
private

GropuBox for editor attributes.

Definition at line 240 of file GNEInspectorFrame.h.

Referenced by inspect().

FXGroupBox* GNEInspectorFrame::myGroupBoxForTemplates
private

groupBox for templates

Definition at line 228 of file GNEInspectorFrame.h.

Referenced by inspect().

FXButton* GNEInspectorFrame::mySetTemplateButton
private

set template button

Definition at line 234 of file GNEInspectorFrame.h.

Referenced by inspect().

GNEViewNet* GNEFrame::myViewNet
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().

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

list of Attribute inputs

Definition at line 225 of file GNEInspectorFrame.h.

Referenced by inspect().


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