diff --git a/Fltk/pluginWindow.cpp b/Fltk/pluginWindow.cpp index 38def9d44e4caa6247ac747ba4b86cca3a08d7dd..de72d20db034b3d3d4b8dbb5954a5ccb0be71b02 100644 --- a/Fltk/pluginWindow.cpp +++ b/Fltk/pluginWindow.cpp @@ -211,27 +211,6 @@ static void plugin_run_cb(Fl_Widget *w, void *data) drawContext::global()->draw(); } -static void plugin_create_new_view_cb(Fl_Widget *w, void *data) -{ - if(GModel::current()->getMeshStatus() < 1){ - Msg::Error("No mesh available to create the view: please mesh your model!"); - return; - } - std::map<int, std::vector<double> > d; - std::vector<GEntity*> entities; - GModel::current()->getEntities(entities); - for(unsigned int i = 0; i < entities.size(); i++){ - for(unsigned int j = 0; j < entities[i]->mesh_vertices.size(); j++){ - MVertex *v = entities[i]->mesh_vertices[j]; - d[v->getNum()].push_back(0.); - } - } - PView *view = new PView("New view", "NodeData", GModel::current(), d); - view->setChanged(true); - FlGui::instance()->updateViews(); - drawContext::global()->draw(); -} - void pluginWindow::_createDialogBox(GMSH_Plugin *p, int x, int y, int width, int height) { @@ -242,7 +221,6 @@ void pluginWindow::_createDialogBox(GMSH_Plugin *p, int x, int y, title->labelfont(FL_BOLD); title->labelsize(FL_NORMAL_SIZE + 3); title->align(FL_ALIGN_INSIDE); - Fl_Box *help = new Fl_Box (x, y + BH, width, BH + WB, strdup(p->getShortHelp().c_str())); help->align(FL_ALIGN_WRAP | FL_ALIGN_CLIP | FL_ALIGN_TOP | FL_ALIGN_INSIDE); @@ -337,16 +315,11 @@ pluginWindow::pluginWindow(int deltaFontSize) browser->box(FL_FLAT_BOX); browser->has_scrollbar(Fl_Browser_::VERTICAL); - view_browser = new Fl_Multi_Browser(L1, 0, L2, height - BH); + view_browser = new Fl_Multi_Browser(L1, 0, L2, height); view_browser->has_scrollbar(Fl_Browser_::VERTICAL); view_browser->callback(plugin_browser_cb); view_browser->box(FL_FLAT_BOX); - Fl_Button *b = new Fl_Button(L1, height - BH, L2, BH, "New view"); - b->callback(plugin_create_new_view_cb); - b->tooltip("Create new post-processing dataset based on current mesh"); - b->box(FL_FLAT_BOX); - for(std::map<std::string, GMSH_Plugin*>::iterator it = PluginManager:: instance()->begin(); it != PluginManager::instance()->end(); ++it) { GMSH_Plugin *p = it->second;