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

#include <GNEInspectorFrame.h>

Inheritance diagram for GNEInspectorFrame::TemplateEditor:
[legend]
Collaboration diagram for GNEInspectorFrame::TemplateEditor:
[legend]

Data Structures

struct  EdgeTemplate
 FOX-declaration. More...
 

Public Member Functions

void clearTemplate ()
 clear template (used by shortcut) More...
 
void copyTemplate ()
 copy template (used by shortcut) More...
 
const TemplateEditor::EdgeTemplategetEdgeTemplate () const
 get the template edge (to copy attributes from) More...
 
bool hasTemplate () const
 there is a template More...
 
void hideTemplateEditor ()
 hide template editor More...
 
void setTemplate ()
 set template (used by shortcut) More...
 
void showTemplateEditor ()
 show template editor More...
 
 TemplateEditor (GNEInspectorFrame *inspectorFrameParent)
 constructor More...
 
 ~TemplateEditor ()
 destructor More...
 
FOX-callbacks

set current edge as new template

long onCmdSetTemplate (FXObject *, FXSelector, void *)
 
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 *edgeTemplate)
 FOX need this. More...
 
void updateButtons ()
 update buttons More...
 

Private Attributes

FXButton * myClearTemplateButton
 clear template button More...
 
FXButton * myCopyTemplateButton
 copy template button More...
 
TemplateEditor::EdgeTemplate myEdgeTemplate
 map with edge template More...
 
bool myHasEdgeTemplate
 flag for edge template More...
 
GNEInspectorFramemyInspectorFrameParent
 current GNEInspectorFrame parent More...
 
FXButton * mySetTemplateButton
 set template button More...
 

Detailed Description

Definition at line 190 of file GNEInspectorFrame.h.

Constructor & Destructor Documentation

◆ TemplateEditor()

GNEInspectorFrame::TemplateEditor::TemplateEditor ( GNEInspectorFrame inspectorFrameParent)

◆ ~TemplateEditor()

GNEInspectorFrame::TemplateEditor::~TemplateEditor ( )

destructor

Definition at line 1065 of file GNEInspectorFrame.cpp.

Member Function Documentation

◆ clearTemplate()

void GNEInspectorFrame::TemplateEditor::clearTemplate ( )

clear template (used by shortcut)

Definition at line 1125 of file GNEInspectorFrame.cpp.

Referenced by GNEApplicationWindow::onCmdClearTemplate().

Here is the caller graph for this function:

◆ copyTemplate()

void GNEInspectorFrame::TemplateEditor::copyTemplate ( )

copy template (used by shortcut)

Definition at line 1116 of file GNEInspectorFrame.cpp.

Referenced by GNEApplicationWindow::onCmdCopyTemplate().

Here is the caller graph for this function:

◆ getEdgeTemplate()

const GNEInspectorFrame::TemplateEditor::EdgeTemplate & GNEInspectorFrame::TemplateEditor::getEdgeTemplate ( ) const

get the template edge (to copy attributes from)

Definition at line 1101 of file GNEInspectorFrame.cpp.

Referenced by GNECreateEdgeFrame::EdgeTypeSelector::fillComboBox(), GNECreateEdgeFrame::processClick(), and GNECreateEdgeFrame::EdgeTypeParameters::setTemplateValues().

Here is the caller graph for this function:

◆ hasTemplate()

bool GNEInspectorFrame::TemplateEditor::hasTemplate ( ) const

there is a template

Definition at line 1095 of file GNEInspectorFrame.cpp.

Referenced by GNECreateEdgeFrame::EdgeTypeSelector::fillComboBox(), GNECreateEdgeFrame::EdgeTypeSelector::onCmdSelectEdgeType(), GNECreateEdgeFrame::EdgeTypeSelector::refreshEdgeTypeSelector(), and GNECreateEdgeFrame::EdgeTypeParameters::setTemplateValues().

Here is the caller graph for this function:

◆ hideTemplateEditor()

void GNEInspectorFrame::TemplateEditor::hideTemplateEditor ( )

hide template editor

Definition at line 1088 of file GNEInspectorFrame.cpp.

References GNEInspectorFrame::hide().

Referenced by GNEInspectorFrame::inspectMultisection().

Here is the caller graph for this function:

◆ onCmdClearTemplate()

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

clear current edge template

Definition at line 1172 of file GNEInspectorFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCopyTemplate()

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

copy edge attributes from edge template

Definition at line 1150 of file GNEInspectorFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetTemplate()

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

Definition at line 1134 of file GNEInspectorFrame.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ setEdgeTemplate()

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

FOX need this.

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

Definition at line 1182 of file GNEInspectorFrame.cpp.

◆ setTemplate()

void GNEInspectorFrame::TemplateEditor::setTemplate ( )

set template (used by shortcut)

Definition at line 1107 of file GNEInspectorFrame.cpp.

Referenced by GNEApplicationWindow::onCmdSetTemplate().

Here is the caller graph for this function:

◆ showTemplateEditor()

void GNEInspectorFrame::TemplateEditor::showTemplateEditor ( )

show template editor

Definition at line 1070 of file GNEInspectorFrame.cpp.

References GNEInspectorFrame::show(), and SUMO_TAG_EDGE.

Referenced by GNEInspectorFrame::inspectMultisection().

Here is the caller graph for this function:

◆ updateButtons()

void GNEInspectorFrame::TemplateEditor::updateButtons ( )
protected

update buttons

Definition at line 1191 of file GNEInspectorFrame.cpp.

References SUMO_ATTR_ID, and toString().

Field Documentation

◆ myClearTemplateButton

FXButton* GNEInspectorFrame::TemplateEditor::myClearTemplateButton
private

clear template button

Definition at line 270 of file GNEInspectorFrame.h.

Referenced by TemplateEditor().

◆ myCopyTemplateButton

FXButton* GNEInspectorFrame::TemplateEditor::myCopyTemplateButton
private

copy template button

Definition at line 267 of file GNEInspectorFrame.h.

Referenced by TemplateEditor().

◆ myEdgeTemplate

TemplateEditor::EdgeTemplate GNEInspectorFrame::TemplateEditor::myEdgeTemplate
private

map with edge template

Definition at line 276 of file GNEInspectorFrame.h.

◆ myHasEdgeTemplate

bool GNEInspectorFrame::TemplateEditor::myHasEdgeTemplate
private

flag for edge template

Definition at line 273 of file GNEInspectorFrame.h.

◆ myInspectorFrameParent

GNEInspectorFrame* GNEInspectorFrame::TemplateEditor::myInspectorFrameParent
private

current GNEInspectorFrame parent

Definition at line 261 of file GNEInspectorFrame.h.

◆ mySetTemplateButton

FXButton* GNEInspectorFrame::TemplateEditor::mySetTemplateButton
private

set template button

Definition at line 264 of file GNEInspectorFrame.h.

Referenced by TemplateEditor().


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