![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEInspectorFrame.h>


Public Member Functions | |
| GNEEdge * | getEdgeTemplate () 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... | |
| GNEEdge * | myEdgeTemplate |
| the edge template More... | |
| GNEInspectorFrame * | myInspectorFrameParent |
| current GNEInspectorFrame parent More... | |
| FXButton * | mySetTemplateButton |
| set template button More... | |
Definition at line 397 of file GNEInspectorFrame.h.
| GNEInspectorFrame::TemplateEditor::TemplateEditor | ( | GNEInspectorFrame * | inspectorFrameParent | ) |
FOX-declaration.
constructor
Definition at line 1615 of file GNEInspectorFrame.cpp.
References GUIDesignButton, MID_GNE_INSPECTORFRAME_COPYTEMPLATE, MID_GNE_INSPECTORFRAME_SETTEMPLATE, myCopyTemplateButton, and mySetTemplateButton.
| GNEInspectorFrame::TemplateEditor::~TemplateEditor | ( | ) |
destructor
Definition at line 1630 of file GNEInspectorFrame.cpp.
References GNEReferenceCounter::decRef(), myEdgeTemplate, and GNEReferenceCounter::unreferenced().
|
inlineprotected |
FOX needs this.
Definition at line 435 of file GNEInspectorFrame.h.
| 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().
| 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().
| long GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
copy edge attributes from edge template
Definition at line 1687 of file GNEInspectorFrame.cpp.
References GNEEdge::copyTemplate(), GNEInspectorFrame::getInspectedACs(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), GNEInspectorFrame::inspectMultisection(), myEdgeTemplate, and myInspectorFrameParent.
| 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().
| 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().
| 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().
| void GNEInspectorFrame::TemplateEditor::showTemplateEditor | ( | ) |
show template editor
Definition at line 1642 of file GNEInspectorFrame.cpp.
References GNEInspectorFrame::getInspectedACs(), myCopyTemplateButton, myInspectorFrameParent, mySetTemplateButton, GNEInspectorFrame::show(), and SUMO_TAG_EDGE.
Referenced by GNEInspectorFrame::inspectMultisection().
|
private |
copy template button
Definition at line 442 of file GNEInspectorFrame.h.
Referenced by hideTemplateEditor(), showTemplateEditor(), and TemplateEditor().
|
private |
the edge template
Definition at line 448 of file GNEInspectorFrame.h.
Referenced by getEdgeTemplate(), onCmdCopyTemplate(), onUpdCopyTemplate(), setEdgeTemplate(), and ~TemplateEditor().
|
private |
current GNEInspectorFrame parent
Definition at line 439 of file GNEInspectorFrame.h.
Referenced by onCmdCopyTemplate(), onCmdSetTemplate(), onUpdCopyTemplate(), and showTemplateEditor().
|
private |
set template button
Definition at line 445 of file GNEInspectorFrame.h.
Referenced by hideTemplateEditor(), showTemplateEditor(), and TemplateEditor().