![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEInspectorFrame.h>
Public Member Functions | |
void | clearTemplate () |
clear template (used by shortcut) More... | |
void | copyTemplate () |
copy template (used by shortcut) More... | |
GNEEdge * | getEdgeTemplate () const |
get the template edge (to copy attributes from) More... | |
void | hideTemplateEditor () |
hide template editor More... | |
void | setTemplate () |
set template (used by shortcut) More... | |
void | showTemplateEditor () |
show template editor More... | |
TemplateEditor (GNEInspectorFrame *inspectorFrameParent) | |
FOX-declaration. More... | |
~TemplateEditor () | |
destructor More... | |
FOX-callbacks | |
long | onCmdSetTemplate (FXObject *, FXSelector, void *) |
set current edge as new template More... | |
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 *tpl) |
seh the template edge (we assume shared responsibility via reference counting) More... | |
void | updateButtons () |
update buttons More... | |
Private Attributes | |
FXButton * | myClearTemplateButton |
clear template button More... | |
FXButton * | myCopyTemplateButton |
copy template button More... | |
GNEEdge * | myEdgeTemplate |
pointer to edge template More... | |
GNEInspectorFrame * | myInspectorFrameParent |
current GNEInspectorFrame parent More... | |
FXButton * | mySetTemplateButton |
set template button More... | |
Definition at line 185 of file GNEInspectorFrame.h.
GNEInspectorFrame::TemplateEditor::TemplateEditor | ( | GNEInspectorFrame * | inspectorFrameParent | ) |
FOX-declaration.
constructor
Definition at line 877 of file GNEInspectorFrame.cpp.
References GUIDesignButton, MID_HOTKEY_SHIFT_F1_TEMPLATE_SET, MID_HOTKEY_SHIFT_F2_TEMPLATE_COPY, MID_HOTKEY_SHIFT_F3_TEMPLATE_CLEAR, myClearTemplateButton, myCopyTemplateButton, and mySetTemplateButton.
GNEInspectorFrame::TemplateEditor::~TemplateEditor | ( | ) |
destructor
Definition at line 890 of file GNEInspectorFrame.cpp.
void GNEInspectorFrame::TemplateEditor::clearTemplate | ( | ) |
clear template (used by shortcut)
Definition at line 953 of file GNEInspectorFrame.cpp.
Referenced by GNEApplicationWindow::onCmdClearTemplate().
void GNEInspectorFrame::TemplateEditor::copyTemplate | ( | ) |
copy template (used by shortcut)
Definition at line 944 of file GNEInspectorFrame.cpp.
Referenced by GNEApplicationWindow::onCmdCopyTemplate().
GNEEdge * GNEInspectorFrame::TemplateEditor::getEdgeTemplate | ( | ) | const |
get the template edge (to copy attributes from)
Definition at line 929 of file GNEInspectorFrame.cpp.
Referenced by GNECreateEdgeFrame::processClick().
void GNEInspectorFrame::TemplateEditor::hideTemplateEditor | ( | ) |
hide template editor
Definition at line 922 of file GNEInspectorFrame.cpp.
References GNEInspectorFrame::hide().
Referenced by GNEInspectorFrame::inspectMultisection().
long GNEInspectorFrame::TemplateEditor::onCmdClearTemplate | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
clear current edge template
Definition at line 994 of file GNEInspectorFrame.cpp.
long GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
copy edge attributes from edge template
Definition at line 978 of file GNEInspectorFrame.cpp.
References GNEEdge::copyTemplate(), GNENetElement::getNet(), and GNENet::retrieveEdge().
Referenced by FXDEFMAP().
long GNEInspectorFrame::TemplateEditor::onCmdSetTemplate | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
set current edge as new template
Definition at line 962 of file GNEInspectorFrame.cpp.
References GNENetElement::getNet(), and GNENet::retrieveEdge().
Referenced by FXDEFMAP().
|
protected |
seh the template edge (we assume shared responsibility via reference counting)
Definition at line 1003 of file GNEInspectorFrame.cpp.
References GNEReferenceCounter::incRef().
void GNEInspectorFrame::TemplateEditor::setTemplate | ( | ) |
set template (used by shortcut)
Definition at line 935 of file GNEInspectorFrame.cpp.
Referenced by GNEApplicationWindow::onCmdSetTemplate().
void GNEInspectorFrame::TemplateEditor::showTemplateEditor | ( | ) |
show template editor
Definition at line 904 of file GNEInspectorFrame.cpp.
References GNE_SUPERMODE_NETWORK, GNEInspectorFrame::show(), and SUMO_TAG_EDGE.
Referenced by GNEInspectorFrame::inspectMultisection().
|
protected |
|
private |
clear template button
Definition at line 247 of file GNEInspectorFrame.h.
Referenced by TemplateEditor().
|
private |
copy template button
Definition at line 244 of file GNEInspectorFrame.h.
Referenced by TemplateEditor().
|
private |
pointer to edge template
Definition at line 250 of file GNEInspectorFrame.h.
|
private |
current GNEInspectorFrame parent
Definition at line 238 of file GNEInspectorFrame.h.
|
private |
set template button
Definition at line 241 of file GNEInspectorFrame.h.
Referenced by TemplateEditor().