![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEInspectorFrame.h>
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::EdgeTemplate & | getEdgeTemplate () 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... | |
GNEInspectorFrame * | myInspectorFrameParent |
current GNEInspectorFrame parent More... | |
FXButton * | mySetTemplateButton |
set template button More... | |
Definition at line 190 of file GNEInspectorFrame.h.
GNEInspectorFrame::TemplateEditor::TemplateEditor | ( | GNEInspectorFrame * | inspectorFrameParent | ) |
constructor
Definition at line 1052 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 1065 of file GNEInspectorFrame.cpp.
void GNEInspectorFrame::TemplateEditor::clearTemplate | ( | ) |
clear template (used by shortcut)
Definition at line 1125 of file GNEInspectorFrame.cpp.
Referenced by GNEApplicationWindow::onCmdClearTemplate().
void GNEInspectorFrame::TemplateEditor::copyTemplate | ( | ) |
copy template (used by shortcut)
Definition at line 1116 of file GNEInspectorFrame.cpp.
Referenced by GNEApplicationWindow::onCmdCopyTemplate().
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().
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().
void GNEInspectorFrame::TemplateEditor::hideTemplateEditor | ( | ) |
hide template editor
Definition at line 1088 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 1172 of file GNEInspectorFrame.cpp.
Referenced by FXDEFMAP().
long GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
copy edge attributes from edge template
Definition at line 1150 of file GNEInspectorFrame.cpp.
Referenced by FXDEFMAP().
long GNEInspectorFrame::TemplateEditor::onCmdSetTemplate | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 1134 of file GNEInspectorFrame.cpp.
References GNEAttributeCarrier::getNet(), and GNENet::retrieveEdge().
Referenced by FXDEFMAP().
|
protected |
FOX need this.
seh the template edge (we assume shared responsibility via reference counting)
Definition at line 1182 of file GNEInspectorFrame.cpp.
void GNEInspectorFrame::TemplateEditor::setTemplate | ( | ) |
set template (used by shortcut)
Definition at line 1107 of file GNEInspectorFrame.cpp.
Referenced by GNEApplicationWindow::onCmdSetTemplate().
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().
|
protected |
update buttons
Definition at line 1191 of file GNEInspectorFrame.cpp.
References SUMO_ATTR_ID, and toString().
|
private |
clear template button
Definition at line 270 of file GNEInspectorFrame.h.
Referenced by TemplateEditor().
|
private |
copy template button
Definition at line 267 of file GNEInspectorFrame.h.
Referenced by TemplateEditor().
|
private |
map with edge template
Definition at line 276 of file GNEInspectorFrame.h.
|
private |
flag for edge template
Definition at line 273 of file GNEInspectorFrame.h.
|
private |
current GNEInspectorFrame parent
Definition at line 261 of file GNEInspectorFrame.h.
|
private |
set template button
Definition at line 264 of file GNEInspectorFrame.h.
Referenced by TemplateEditor().