[project @ 6]
[mussa.git] / mussa_gui_conn_view.hh
1 #include "mussa_gui_seq.hh"
2
3
4
5 class ConnView : public Fl_Box
6 {
7   private:
8     string ana_name;
9     int seq_num, window, threshold;
10     bool win_append, thres_append;
11
12     //this data is passed as pointers to the instantiated classes
13     vector<Sequence> *S;
14     Nway_Paths *P;
15
16     int name_pad, y_pad;
17     float x_scale_factor;
18     int y_seq_incre;
19     int drag_start, drag_end;
20     float y_drag_start;
21     int ref_seq_num;
22     bool dragging, selected;
23     list<bool> highlight;
24
25     list<vector<int> > scaled_pathz;
26     vector<int> seq_lens;
27
28
29   public:
30     ConnView(int x_top,int y_top,int x_bot,int y_bot) :
31       Fl_Box(x_top,y_top,x_bot,y_bot)
32     {}
33
34     void setup(string name, int sq_num, int win_len,
35                vector<Sequence> *, Nway_Paths *);
36     void scale_paths();
37     void draw();
38     void resize(int x, int y, int w, int h); 
39     int handle(int e);
40     void spawnSeq();
41
42     // for drawing function debugging
43     void reporter(string var, int value);
44 };