Commit 825eec31 authored by chart3388's avatar chart3388
Browse files

Added menuExtrators to be enabled / disabled with post-proc mode

parent 0bfd8ec3
...@@ -262,11 +262,16 @@ void mbMainWindow::postParaViewSetup() ...@@ -262,11 +262,16 @@ void mbMainWindow::postParaViewSetup()
// Populate filters menu. // Populate filters menu.
pqParaViewMenuBuilders::buildFiltersMenu(*this->Internals->menuFilters, this); pqParaViewMenuBuilders::buildFiltersMenu(*this->Internals->menuFilters, this);
// Hide sources and filters menus by default. // Populate extractors menu.
pqParaViewMenuBuilders::buildExtractorsMenu(*this->Internals->menuExtractors, this);
// Hide sources, filters, and extract generators menus by default.
this->Internals->menuSources->menuAction()->setVisible(false); this->Internals->menuSources->menuAction()->setVisible(false);
this->Internals->menuFilters->menuAction()->setVisible(false); this->Internals->menuFilters->menuAction()->setVisible(false);
this->Internals->menuExtractors->menuAction()->setVisible(false);
this->Internals->menuSources->setEnabled(false); this->Internals->menuSources->setEnabled(false);
this->Internals->menuFilters->setEnabled(false); this->Internals->menuFilters->setEnabled(false);
this->Internals->menuExtractors->setEnabled(false);
// Populate Tools menu. // Populate Tools menu.
pqParaViewMenuBuilders::buildToolsMenu(*this->Internals->menuTools); pqParaViewMenuBuilders::buildToolsMenu(*this->Internals->menuTools);
...@@ -466,8 +471,10 @@ void mbMainWindow::togglePostProcessingMode(bool enablePostProcessing) ...@@ -466,8 +471,10 @@ void mbMainWindow::togglePostProcessingMode(bool enablePostProcessing)
{ {
this->Internals->menuSources->menuAction()->setVisible(true); this->Internals->menuSources->menuAction()->setVisible(true);
this->Internals->menuFilters->menuAction()->setVisible(true); this->Internals->menuFilters->menuAction()->setVisible(true);
this->Internals->menuExtractors->menuAction()->setVisible(true);
this->Internals->menuSources->setEnabled(true); this->Internals->menuSources->setEnabled(true);
this->Internals->menuFilters->setEnabled(true); this->Internals->menuFilters->setEnabled(true);
this->Internals->menuExtractors->setEnabled(true);
pipelineBrowserAction->setEnabled(true); pipelineBrowserAction->setEnabled(true);
pipelineBrowserAction->setVisible(true); pipelineBrowserAction->setVisible(true);
...@@ -496,8 +503,10 @@ void mbMainWindow::togglePostProcessingMode(bool enablePostProcessing) ...@@ -496,8 +503,10 @@ void mbMainWindow::togglePostProcessingMode(bool enablePostProcessing)
{ {
this->Internals->menuSources->menuAction()->setVisible(false); this->Internals->menuSources->menuAction()->setVisible(false);
this->Internals->menuFilters->menuAction()->setVisible(false); this->Internals->menuFilters->menuAction()->setVisible(false);
this->Internals->menuExtractors->menuAction()->setVisible(false);
this->Internals->menuSources->setEnabled(false); this->Internals->menuSources->setEnabled(false);
this->Internals->menuFilters->setEnabled(false); this->Internals->menuFilters->setEnabled(false);
this->Internals->menuExtractors->setEnabled(false);
pipelineBrowserAction->setEnabled(false); pipelineBrowserAction->setEnabled(false);
pipelineBrowserAction->setVisible(false); pipelineBrowserAction->setVisible(false);
......
...@@ -51,6 +51,11 @@ ...@@ -51,6 +51,11 @@
<string>Fi&amp;lters</string> <string>Fi&amp;lters</string>
</property> </property>
</widget> </widget>
<widget class="QMenu" name="menuExtractors">
<property name="title">
<string>E&amp;xtract Generators</string>
</property>
</widget>
<widget class="QMenu" name="menu_Edit"> <widget class="QMenu" name="menu_Edit">
<property name="title"> <property name="title">
<string>&amp;Edit</string> <string>&amp;Edit</string>
...@@ -81,6 +86,7 @@ ...@@ -81,6 +86,7 @@
<addaction name="menu_View"/> <addaction name="menu_View"/>
<addaction name="menuSources"/> <addaction name="menuSources"/>
<addaction name="menuFilters"/> <addaction name="menuFilters"/>
<addaction name="menuExtractors"/>
<addaction name="menuTools"/> <addaction name="menuTools"/>
<addaction name="menu_Macros"/> <addaction name="menu_Macros"/>
<addaction name="menu_Help"/> <addaction name="menu_Help"/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment