##// END OF EJS Templates
Unplot menu (3): handles 'Unplot' menu when entering a tab or a zone...
Alexandre Leroux -
r299:257ddf015a9e
parent child
Show More
@@ -36,6 +36,7 struct GenerateVariableMenuOperation::GenerateVariableMenuOperationPrivate {
36 {
36 {
37 // Opens a new menu associated to the node
37 // Opens a new menu associated to the node
38 m_PlotMenuBuilder.addMenu(container.name());
38 m_PlotMenuBuilder.addMenu(container.name());
39 m_UnplotMenuBuilder.addMenu(container.name());
39 }
40 }
40
41
41 template <typename ActionFun>
42 template <typename ActionFun>
@@ -92,6 +93,7 void GenerateVariableMenuOperation::visitLeave(VisualizationWidget *widget)
92 void GenerateVariableMenuOperation::visitEnter(VisualizationTabWidget *tabWidget)
93 void GenerateVariableMenuOperation::visitEnter(VisualizationTabWidget *tabWidget)
93 {
94 {
94 if (tabWidget) {
95 if (tabWidget) {
96 // 'Plot' and 'Unplot' menus
95 impl->visitNodeEnter(*tabWidget);
97 impl->visitNodeEnter(*tabWidget);
96 }
98 }
97 else {
99 else {
@@ -116,6 +118,7 void GenerateVariableMenuOperation::visitLeave(VisualizationTabWidget *tabWidget
116 void GenerateVariableMenuOperation::visitEnter(VisualizationZoneWidget *zoneWidget)
118 void GenerateVariableMenuOperation::visitEnter(VisualizationZoneWidget *zoneWidget)
117 {
119 {
118 if (zoneWidget) {
120 if (zoneWidget) {
121 // 'Plot' and 'Unplot' menus
119 impl->visitNodeEnter(*zoneWidget);
122 impl->visitNodeEnter(*zoneWidget);
120 }
123 }
121 else {
124 else {
General Comments 0
You need to be logged in to leave comments. Login now