![]() |
Eclipse 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 276 of file GNEInspectorFrame.h.
| 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.
| GNEInspectorFrame::TemplateEditor::~TemplateEditor | ( | ) |
destructor
Definition at line 1091 of file GNEInspectorFrame.cpp.
References GNEReferenceCounter::decRef(), myEdgeTemplate, and GNEReferenceCounter::unreferenced().
|
inlineprotected |
FOX needs this.
Definition at line 314 of file GNEInspectorFrame.h.
| GNEEdge * GNEInspectorFrame::TemplateEditor::getEdgeTemplate | ( | ) | const |
get the template edge (to copy attributes from)
Definition at line 1130 of file GNEInspectorFrame.cpp.
References myEdgeTemplate.
Referenced by GNECreateEdgeFrame::processClick().
| void GNEInspectorFrame::TemplateEditor::hideTemplateEditor | ( | ) |
hide template editor
Definition at line 1120 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 1149 of file GNEInspectorFrame.cpp.
References GNEEdge::copyTemplate(), GNEFrameAttributesModuls::AttributesEditor::getEditedACs(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), GNEInspectorFrame::inspectMultisection(), GNEInspectorFrame::myAttributesEditor, myEdgeTemplate, and myInspectorFrameParent.
| long GNEInspectorFrame::TemplateEditor::onCmdSetTemplate | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
set current edge as new template
Definition at line 1161 of file GNEInspectorFrame.cpp.
References GNEFrameAttributesModuls::AttributesEditor::getEditedACs(), GNEInspectorFrame::myAttributesEditor, myInspectorFrameParent, and setEdgeTemplate().
| 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 GNEFrameAttributesModuls::AttributesEditor::getEditedACs(), GUIGlObject::getMicrosimID(), GNEInspectorFrame::myAttributesEditor, myEdgeTemplate, myInspectorFrameParent, and toString().
| 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::decRef(), GNEReferenceCounter::incRef(), myEdgeTemplate, and GNEReferenceCounter::unreferenced().
Referenced by onCmdSetTemplate().
| void GNEInspectorFrame::TemplateEditor::showTemplateEditor | ( | ) |
show template editor
Definition at line 1103 of file GNEInspectorFrame.cpp.
References GNEViewNetHelper::EditModes::currentSupermode, GNEFrameAttributesModuls::AttributesEditor::getEditedACs(), GNEViewNet::getEditModes(), GNEFrame::getViewNet(), GNE_SUPERMODE_NETWORK, GNEInspectorFrame::myAttributesEditor, myCopyTemplateButton, myInspectorFrameParent, mySetTemplateButton, GNEInspectorFrame::show(), and SUMO_TAG_EDGE.
Referenced by GNEInspectorFrame::inspectMultisection().
|
private |
copy template button
Definition at line 321 of file GNEInspectorFrame.h.
Referenced by hideTemplateEditor(), showTemplateEditor(), and TemplateEditor().
|
private |
the edge template
Definition at line 327 of file GNEInspectorFrame.h.
Referenced by getEdgeTemplate(), onCmdCopyTemplate(), onUpdCopyTemplate(), setEdgeTemplate(), and ~TemplateEditor().
|
private |
current GNEInspectorFrame parent
Definition at line 318 of file GNEInspectorFrame.h.
Referenced by onCmdCopyTemplate(), onCmdSetTemplate(), onUpdCopyTemplate(), and showTemplateEditor().
|
private |
set template button
Definition at line 324 of file GNEInspectorFrame.h.
Referenced by hideTemplateEditor(), showTemplateEditor(), and TemplateEditor().