@@ -18,6 +18,18 struct GenerateVariableMenuOperation::GenerateVariableMenuOperationPrivate { | |||
|
18 | 18 | { |
|
19 | 19 | } |
|
20 | 20 | |
|
21 | void visitRootEnter() | |
|
22 | { | |
|
23 | // Creates the root menu | |
|
24 | m_MenuBuilder.addMenu(QObject::tr("Plot")); | |
|
25 | } | |
|
26 | ||
|
27 | void visitRootLeave() | |
|
28 | { | |
|
29 | // Closes the root menu | |
|
30 | m_MenuBuilder.closeMenu(); | |
|
31 | } | |
|
32 | ||
|
21 | 33 | void visitNodeEnter(const IVisualizationWidget &container) |
|
22 | 34 | { |
|
23 | 35 | // Opens a new menu associated to the node |
@@ -60,12 +72,16 void GenerateVariableMenuOperation::visitEnter(VisualizationWidget *widget) | |||
|
60 | 72 | { |
|
61 | 73 | // VisualizationWidget is not intended to accommodate a variable |
|
62 | 74 | Q_UNUSED(widget) |
|
75 | ||
|
76 | impl->visitRootEnter(); | |
|
63 | 77 | } |
|
64 | 78 | |
|
65 | 79 | void GenerateVariableMenuOperation::visitLeave(VisualizationWidget *widget) |
|
66 | 80 | { |
|
67 | 81 | // VisualizationWidget is not intended to accommodate a variable |
|
68 | 82 | Q_UNUSED(widget) |
|
83 | ||
|
84 | impl->visitRootLeave(); | |
|
69 | 85 | } |
|
70 | 86 | |
|
71 | 87 | void GenerateVariableMenuOperation::visitEnter(VisualizationTabWidget *tabWidget) |
General Comments 0
You need to be logged in to leave comments.
Login now