Skip to content
Snippets Groups Projects
Select Git revision
  • 2254fd137fc922c3672c389ea2cc4971478468e0
  • master default
  • cgnsUnstructured
  • partitioning
  • poppler
  • HighOrderBLCurving
  • gmsh_3_0_4
  • gmsh_3_0_3
  • gmsh_3_0_2
  • gmsh_3_0_1
  • gmsh_3_0_0
  • gmsh_2_16_0
  • gmsh_2_15_0
  • gmsh_2_14_1
  • gmsh_2_14_0
  • gmsh_2_13_2
  • gmsh_2_13_1
  • gmsh_2_12_0
  • gmsh_2_11_0
  • gmsh_2_10_1
  • gmsh_2_10_0
  • gmsh_2_9_3
  • gmsh_2_9_2
  • gmsh_2_9_1
  • gmsh_2_9_0
  • gmsh_2_8_6
26 results

onelabWindow.h

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    onelabWindow.h 1.00 KiB
    // Gmsh - Copyright (C) 1997-2011 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // bugs and problems to <gmsh@geuz.org>.
    
    #ifndef _ONELAB_WINDOW_H_
    #define _ONELAB_WINDOW_H_
    
    #include "GmshConfig.h"
    #if defined(HAVE_FL_TREE)
    #include <vector>
    #include <FL/Fl_Window.H>
    #include <FL/Fl_Tree.H>
    #include <FL/Fl_Button.H>
    #include <FL/Fl_Input.H>
    #include "onelab.h"
    
    class onelabWindow{
     private:
      Fl_Window *_win;
      Fl_Tree *_tree;
      Fl_Button *_butt[2];
      Fl_Input *_model;
      std::vector<Fl_Widget*> _treeWidgets;
     public:
      onelabWindow(int deltaFontSize=0);
      void rebuildTree();
      void redrawTree();
      void show(){ _win->show(); }
      std::string getModelName(){ return _model->value(); }
      void setModelName(const std::string &name){ _model->value(name.c_str()); }
      std::string getPath(Fl_Tree_Item *item)
      {
        char path[1024];
        _tree->item_pathname(path, 1024, item);
        return std::string(path);
      }
    };
    
    void onelab_cb(Fl_Widget *w, void *data);
    
    #endif
    #endif