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

#include <GNEInspectorFrame.h>

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

Public Member Functions

GNEEdgegetEdgeTemplate () const
 get the template edge (to copy attributes from) More...
 
void hideTemplateEditor ()
 hide template editor More...
 
void setEdgeTemplate (GNEEdge *tpl)
 seh the template edge (we assume shared responsibility via reference counting) More...
 
void showTemplateEditor ()
 show template editor More...
 
 TemplateEditor (GNEInspectorFrame *inspectorFrameParent)
 FOX-declaration. More...
 
 ~TemplateEditor ()
 destructor More...
 
FOX-callbacks
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...
 

Protected Member Functions

 TemplateEditor ()
 FOX needs this. More...
 

Private Attributes

FXButton * myCopyTemplateButton
 copy template button More...
 
GNEEdgemyEdgeTemplate
 the edge template More...
 
GNEInspectorFramemyInspectorFrameParent
 current GNEInspectorFrame parent More...
 
FXButton * mySetTemplateButton
 set template button More...
 

Detailed Description

Definition at line 397 of file GNEInspectorFrame.h.

Constructor & Destructor Documentation

◆ TemplateEditor() [1/2]

GNEInspectorFrame::TemplateEditor::TemplateEditor ( GNEInspectorFrame inspectorFrameParent)

◆ ~TemplateEditor()

GNEInspectorFrame::TemplateEditor::~TemplateEditor ( )

◆ TemplateEditor() [2/2]

GNEInspectorFrame::TemplateEditor::TemplateEditor ( )
inlineprotected

FOX needs this.

Definition at line 435 of file GNEInspectorFrame.h.

Member Function Documentation

◆ getEdgeTemplate()

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

get the template edge (to copy attributes from)

Definition at line 1668 of file GNEInspectorFrame.cpp.

References myEdgeTemplate.

Referenced by GNEViewNet::onLeftBtnPress().

◆ hideTemplateEditor()

void GNEInspectorFrame::TemplateEditor::hideTemplateEditor ( )

hide template editor

Definition at line 1658 of file GNEInspectorFrame.cpp.

References GNEInspectorFrame::hide(), myCopyTemplateButton, and mySetTemplateButton.

Referenced by GNEInspectorFrame::inspectMultisection().

◆ onCmdCopyTemplate()

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

◆ onCmdSetTemplate()

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

set current edge as new template

Definition at line 1699 of file GNEInspectorFrame.cpp.

References GNEInspectorFrame::getInspectedACs(), myInspectorFrameParent, and setEdgeTemplate().

◆ onUpdCopyTemplate()

long GNEInspectorFrame::TemplateEditor::onUpdCopyTemplate ( FXObject *  sender,
FXSelector  ,
void *   
)

update the copy button with the name of the template

Definition at line 1709 of file GNEInspectorFrame.cpp.

References GNEInspectorFrame::getInspectedACs(), GUIGlObject::getMicrosimID(), myEdgeTemplate, myInspectorFrameParent, and toString().

◆ setEdgeTemplate()

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

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

Definition at line 1674 of file GNEInspectorFrame.cpp.

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

Referenced by onCmdSetTemplate().

◆ showTemplateEditor()

void GNEInspectorFrame::TemplateEditor::showTemplateEditor ( )

Field Documentation

◆ myCopyTemplateButton

FXButton* GNEInspectorFrame::TemplateEditor::myCopyTemplateButton
private

copy template button

Definition at line 442 of file GNEInspectorFrame.h.

Referenced by hideTemplateEditor(), showTemplateEditor(), and TemplateEditor().

◆ myEdgeTemplate

GNEEdge* GNEInspectorFrame::TemplateEditor::myEdgeTemplate
private

the edge template

Definition at line 448 of file GNEInspectorFrame.h.

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

◆ myInspectorFrameParent

GNEInspectorFrame* GNEInspectorFrame::TemplateEditor::myInspectorFrameParent
private

◆ mySetTemplateButton

FXButton* GNEInspectorFrame::TemplateEditor::mySetTemplateButton
private

set template button

Definition at line 445 of file GNEInspectorFrame.h.

Referenced by hideTemplateEditor(), showTemplateEditor(), and TemplateEditor().


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