Skip to content
Snippets Groups Projects
Commit 5b473484 authored by Maxime Graulich's avatar Maxime Graulich
Browse files

ONELAB2: uncheck the hidden PViews

parent 548ba7b8
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include "viewButton.h" #include "viewButton.h"
#include "solverButton.h" #include "solverButton.h"
#include "PView.h" #include "PView.h"
#include "PViewOptions.h"
#include "Gmsh.h" #include "Gmsh.h"
#include "onelabUtils.h" #include "onelabUtils.h"
...@@ -410,6 +411,8 @@ void onelabGroup::addLastPostProcessing() ...@@ -410,6 +411,8 @@ void onelabGroup::addLastPostProcessing()
_tree->sortorder(FL_TREE_SORT_NONE); _tree->sortorder(FL_TREE_SORT_NONE);
_addViewMenu(PView::list.size()-1); _addViewMenu(PView::list.size()-1);
_tree->sortorder(FL_TREE_SORT_ASCENDING); _tree->sortorder(FL_TREE_SORT_ASCENDING);
for(unsigned int i = 0; i < PView::list.size(); i++)
getViewButton(i)->value(PView::list[i]->getOptions()->visible);
} }
void onelabGroup::rebuildSolverList() void onelabGroup::rebuildSolverList()
...@@ -1012,6 +1015,7 @@ void onelabGroup::_addSolverMenu(int num) ...@@ -1012,6 +1015,7 @@ void onelabGroup::_addSolverMenu(int num)
void onelabGroup::_addViewMenu(int num) void onelabGroup::_addViewMenu(int num)
{ {
// FIXME SEGFAULT in n->depth() with pend.py
std::ostringstream path; std::ostringstream path;
path << "0Post-processing/View" << num; path << "0Post-processing/View" << num;
Fl_Tree_Item *n = _tree->add(path.str().c_str()); Fl_Tree_Item *n = _tree->add(path.str().c_str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment