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

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 276 of file GNEInspectorFrame.h.

Constructor & Destructor Documentation

◆ TemplateEditor() [1/2]

GNEInspectorFrame::TemplateEditor::TemplateEditor ( GNEInspectorFrame inspectorFrameParent)

FOX-declaration.

constructor

Definition at line 1076 of file GNEInspectorFrame.cpp.

References GUIDesignButton, MID_GNE_TEMPLATE_COPY, MID_GNE_TEMPLATE_SET, myCopyTemplateButton, and mySetTemplateButton.

◆ ~TemplateEditor()

GNEInspectorFrame::TemplateEditor::~TemplateEditor ( )

destructor

Definition at line 1091 of file GNEInspectorFrame.cpp.

◆ TemplateEditor() [2/2]

GNEInspectorFrame::TemplateEditor::TemplateEditor ( )
inlineprotected

FOX needs this.

Definition at line 314 of file GNEInspectorFrame.h.

Member Function Documentation

◆ getEdgeTemplate()

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

get the template edge (to copy attributes from)

Definition at line 1130 of file GNEInspectorFrame.cpp.

Referenced by GNECreateEdgeFrame::processClick().

◆ hideTemplateEditor()

void GNEInspectorFrame::TemplateEditor::hideTemplateEditor ( )

hide template editor

Definition at line 1120 of file GNEInspectorFrame.cpp.

References GNEInspectorFrame::hide().

Referenced by GNEInspectorFrame::inspectMultisection().

◆ onCmdCopyTemplate()

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

copy edge attributes from edge template

Definition at line 1149 of file GNEInspectorFrame.cpp.

References GNEEdge::copyTemplate().

◆ onCmdSetTemplate()

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

set current edge as new template

Definition at line 1161 of file GNEInspectorFrame.cpp.

◆ onUpdCopyTemplate()

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

update the copy button with the name of the template

Definition at line 1171 of file GNEInspectorFrame.cpp.

References toString().

◆ setEdgeTemplate()

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

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

Definition at line 1136 of file GNEInspectorFrame.cpp.

References GNEReferenceCounter::incRef().

◆ showTemplateEditor()

void GNEInspectorFrame::TemplateEditor::showTemplateEditor ( )

show template editor

Definition at line 1103 of file GNEInspectorFrame.cpp.

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

Referenced by GNEInspectorFrame::inspectMultisection().

Field Documentation

◆ myCopyTemplateButton

FXButton* GNEInspectorFrame::TemplateEditor::myCopyTemplateButton
private

copy template button

Definition at line 321 of file GNEInspectorFrame.h.

Referenced by TemplateEditor().

◆ myEdgeTemplate

GNEEdge* GNEInspectorFrame::TemplateEditor::myEdgeTemplate
private

the edge template

Definition at line 327 of file GNEInspectorFrame.h.

◆ myInspectorFrameParent

GNEInspectorFrame* GNEInspectorFrame::TemplateEditor::myInspectorFrameParent
private

current GNEInspectorFrame parent

Definition at line 318 of file GNEInspectorFrame.h.

◆ mySetTemplateButton

FXButton* GNEInspectorFrame::TemplateEditor::mySetTemplateButton
private

set template button

Definition at line 324 of file GNEInspectorFrame.h.

Referenced by TemplateEditor().


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