SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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::GNEInspectorFrame ( FXComposite *  parent,
GNEViewNet viewNet 
)
GNEInspectorFrame::~GNEInspectorFrame ( )
GNEInspectorFrame::GNEInspectorFrame ( )
inlineprotected

FOX needs this.

Definition at line 279 of file GNEInspectorFrame.h.

Member Function Documentation

const std::vector< GNEAttributeCarrier * > & GNEInspectorFrame::getACs ( ) const

get current list of ACs

Definition at line 413 of file GNEInspectorFrame.cpp.

References myACs.

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

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 105 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

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

GNEViewNet * GNEFrame::getViewNet ( ) const
inherited

get view net

Definition at line 93 of file GNEFrame.cpp.

References GNEFrame::myViewNet.

Referenced by onCmdSetBlocking().

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

Inspect a single element.

Definition at line 179 of file GNEInspectorFrame.cpp.

Referenced by onCmdCopyTemplate(), onCmdGoBack(), and GNEViewNet::onLeftBtnPress().

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.

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.

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

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

set current edge as new template

Definition at line 365 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 375 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 340 of file GNEInspectorFrame.cpp.

References GNEReferenceCounter::decRef(), GNEReferenceCounter::incRef(), myEdgeTemplate, and GNEReferenceCounter::unreferenced().

Referenced by onCmdSetTemplate().

Field Documentation

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

GNEAdditional* GNEInspectorFrame::myAdditional
private

pointer to additional element

Definition at line 310 of file GNEInspectorFrame.h.

Referenced by inspect(), and onCmdSetBlocking().

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

vector of attrConnections

Definition at line 319 of file GNEInspectorFrame.h.

Referenced by inspect().

FXButton* GNEInspectorFrame::myBackButton
private

back Button

Definition at line 289 of file GNEInspectorFrame.h.

Referenced by inspect().

FXCheckButton* GNEInspectorFrame::myCheckBlocked
private

pointer to check button block

Definition at line 307 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 295 of file GNEInspectorFrame.h.

Referenced by inspect().

GNEEdge* GNEInspectorFrame::myEdgeTemplate
private

the edge template

Definition at line 301 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::myGroupBoxForAttrConnections
private

groupBox for AttrConnection

Definition at line 316 of file GNEInspectorFrame.h.

Referenced by inspect().

FXGroupBox* GNEInspectorFrame::myGroupBoxForAttributes
private

groupBox for attributes

Definition at line 283 of file GNEInspectorFrame.h.

Referenced by inspect().

FXGroupBox* GNEInspectorFrame::myGroupBoxForEditor
private

GropuBox for editor attributes.

Definition at line 304 of file GNEInspectorFrame.h.

Referenced by inspect().

FXGroupBox* GNEInspectorFrame::myGroupBoxForTemplates
private

groupBox for templates

Definition at line 292 of file GNEInspectorFrame.h.

Referenced by inspect().

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

Definition at line 97 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame
protectedinherited

fame for left header elements

Definition at line 100 of file GNEFrame.h.

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

FXHorizontalFrame* GNEFrame::myHeaderRightFrame
protectedinherited

fame for right header elements

Definition at line 103 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

GNEAttributeCarrier* GNEInspectorFrame::myPreviousElement
private

pointer to previous element (If exist)

Definition at line 313 of file GNEInspectorFrame.h.

Referenced by inspect(), and onCmdGoBack().

FXButton* GNEInspectorFrame::mySetTemplateButton
private

set template button

Definition at line 298 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(), 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(), GNEAdditionalFrame::removeAdditional(), GNEConnectorFrame::show(), GNETLSEditorFrame::show(), GNESelectorFrame::show(), show(), GNEAdditionalFrame::show(), GNEAdditionalFrame::additionalSet::showList(), GNEAdditionalFrame::edgesSelector::showList(), GNEAdditionalFrame::lanesSelector::showList(), GNEAdditionalFrame::edgesSelector::updateUseSelectedEdges(), and GNEAdditionalFrame::lanesSelector::updateUseSelectedLanes().

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: