From 257ddf015a9ef412b1eb9cbe382312e680a7334f 2017-07-04 07:23:22 From: Alexandre Leroux Date: 2017-07-04 07:23:22 Subject: [PATCH] Unplot menu (3): handles 'Unplot' menu when entering a tab or a zone The behavior is the same as for the menu 'Plot' --- diff --git a/gui/src/Visualization/operations/GenerateVariableMenuOperation.cpp b/gui/src/Visualization/operations/GenerateVariableMenuOperation.cpp index 38f6f67..5b9ebdd 100644 --- a/gui/src/Visualization/operations/GenerateVariableMenuOperation.cpp +++ b/gui/src/Visualization/operations/GenerateVariableMenuOperation.cpp @@ -36,6 +36,7 @@ struct GenerateVariableMenuOperation::GenerateVariableMenuOperationPrivate { { // Opens a new menu associated to the node m_PlotMenuBuilder.addMenu(container.name()); + m_UnplotMenuBuilder.addMenu(container.name()); } template @@ -92,6 +93,7 @@ void GenerateVariableMenuOperation::visitLeave(VisualizationWidget *widget) void GenerateVariableMenuOperation::visitEnter(VisualizationTabWidget *tabWidget) { if (tabWidget) { + // 'Plot' and 'Unplot' menus impl->visitNodeEnter(*tabWidget); } else { @@ -116,6 +118,7 @@ void GenerateVariableMenuOperation::visitLeave(VisualizationTabWidget *tabWidget void GenerateVariableMenuOperation::visitEnter(VisualizationZoneWidget *zoneWidget) { if (zoneWidget) { + // 'Plot' and 'Unplot' menus impl->visitNodeEnter(*zoneWidget); } else {