Eclipse SUMO - Simulation of Urban MObility
GNEInspectorFrame::TemplateEditor Class Reference

#include <GNEInspectorFrame.h>

Inheritance diagram for GNEInspectorFrame::TemplateEditor:
Collaboration diagram for GNEInspectorFrame::TemplateEditor:

Public Member Functions

void clearTemplate ()
 clear template (used by shortcut) More...
 
void copyTemplate ()
 copy template (used by shortcut) More...
 
GNEEdgegetEdgeTemplate () const
 get the template edge (to copy attributes from) More...
 
void hideTemplateEditor ()
 hide template editor More...
 
void setTemplate ()
 set template (used by shortcut) More...
 
void showTemplateEditor ()
 show template editor More...
 
 TemplateEditor (GNEInspectorFrame *inspectorFrameParent)
 FOX-declaration. More...
 
 ~TemplateEditor ()
 destructor More...
 
FOX-callbacks
long onCmdSetTemplate (FXObject *, FXSelector, void *)
 set current edge as new template More...
 
long onCmdCopyTemplate (FXObject *, FXSelector, void *)
 copy edge attributes from edge template More...
 
long onCmdClearTemplate (FXObject *, FXSelector, void *)
 clear current edge template More...
 

Protected Member Functions

void setEdgeTemplate (GNEEdge *tpl)
 seh the template edge (we assume shared responsibility via reference counting) More...
 
void updateButtons ()
 update buttons More...
 

Private Attributes

FXButton * myClearTemplateButton
 clear template button More...
 
FXButton * myCopyTemplateButton
 copy template button More...
 
GNEEdgemyEdgeTemplate
 pointer to edge template More...
 
GNEInspectorFramemyInspectorFrameParent
 current GNEInspectorFrame parent More...
 
FXButton * mySetTemplateButton
 set template button More...
 

Detailed Description

Definition at line 185 of file GNEInspectorFrame.h.

Constructor & Destructor Documentation

◆ TemplateEditor()

GNEInspectorFrame::TemplateEditor::TemplateEditor ( GNEInspectorFrame inspectorFrameParent)

◆ ~TemplateEditor()

GNEInspectorFrame::TemplateEditor::~TemplateEditor ( )

destructor

Definition at line 890 of file GNEInspectorFrame.cpp.

Member Function Documentation

◆ clearTemplate()

void GNEInspectorFrame::TemplateEditor::clearTemplate ( )

clear template (used by shortcut)

Definition at line 953 of file GNEInspectorFrame.cpp.

Referenced by GNEApplicationWindow::onCmdClearTemplate().

◆ copyTemplate()

void GNEInspectorFrame::TemplateEditor::copyTemplate ( )

copy template (used by shortcut)

Definition at line 944 of file GNEInspectorFrame.cpp.

Referenced by GNEApplicationWindow::onCmdCopyTemplate().

◆ getEdgeTemplate()

GNEEdge * GNEInspectorFrame::TemplateEditor::getEdgeTemplate ( ) const

get the template edge (to copy attributes from)

Definition at line 929 of file GNEInspectorFrame.cpp.

Referenced by GNECreateEdgeFrame::processClick().

◆ hideTemplateEditor()

void GNEInspectorFrame::TemplateEditor::hideTemplateEditor ( )

hide template editor

Definition at line 922 of file GNEInspectorFrame.cpp.

References GNEInspectorFrame::hide().

Referenced by GNEInspectorFrame::inspectMultisection().

◆ onCmdClearTemplate()

long GNEInspectorFrame::TemplateEditor::onCmdClearTemplate ( FXObject *  ,
FXSelector  ,
void *   
)

clear current edge template

Definition at line 994 of file GNEInspectorFrame.cpp.

◆ onCmdCopyTemplate()

long GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate ( FXObject *  ,
FXSelector  ,
void *   
)

copy edge attributes from edge template

Definition at line 978 of file GNEInspectorFrame.cpp.

References GNEEdge::copyTemplate(), GNENetElement::getNet(), and GNENet::retrieveEdge().

Referenced by FXDEFMAP().

◆ onCmdSetTemplate()

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

set current edge as new template

Definition at line 962 of file GNEInspectorFrame.cpp.

References GNENetElement::getNet(), and GNENet::retrieveEdge().

Referenced by FXDEFMAP().

◆ setEdgeTemplate()

void GNEInspectorFrame::TemplateEditor::setEdgeTemplate ( GNEEdge tpl)
protected

seh the template edge (we assume shared responsibility via reference counting)

Definition at line 1003 of file GNEInspectorFrame.cpp.

References GNEReferenceCounter::incRef().

◆ setTemplate()

void GNEInspectorFrame::TemplateEditor::setTemplate ( )

set template (used by shortcut)

Definition at line 935 of file GNEInspectorFrame.cpp.

Referenced by GNEApplicationWindow::onCmdSetTemplate().

◆ showTemplateEditor()

void GNEInspectorFrame::TemplateEditor::showTemplateEditor ( )

show template editor

Definition at line 904 of file GNEInspectorFrame.cpp.

References GNE_SUPERMODE_NETWORK, GNEInspectorFrame::show(), and SUMO_TAG_EDGE.

Referenced by GNEInspectorFrame::inspectMultisection().

◆ updateButtons()

void GNEInspectorFrame::TemplateEditor::updateButtons ( )
protected

update buttons

Definition at line 1027 of file GNEInspectorFrame.cpp.

References toString().

Field Documentation

◆ myClearTemplateButton

FXButton* GNEInspectorFrame::TemplateEditor::myClearTemplateButton
private

clear template button

Definition at line 247 of file GNEInspectorFrame.h.

Referenced by TemplateEditor().

◆ myCopyTemplateButton

FXButton* GNEInspectorFrame::TemplateEditor::myCopyTemplateButton
private

copy template button

Definition at line 244 of file GNEInspectorFrame.h.

Referenced by TemplateEditor().

◆ myEdgeTemplate

GNEEdge* GNEInspectorFrame::TemplateEditor::myEdgeTemplate
private

pointer to edge template

Definition at line 250 of file GNEInspectorFrame.h.

◆ myInspectorFrameParent

GNEInspectorFrame* GNEInspectorFrame::TemplateEditor::myInspectorFrameParent
private

current GNEInspectorFrame parent

Definition at line 238 of file GNEInspectorFrame.h.

◆ mySetTemplateButton

FXButton* GNEInspectorFrame::TemplateEditor::mySetTemplateButton
private

set template button

Definition at line 241 of file GNEInspectorFrame.h.

Referenced by TemplateEditor().


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