[project @ 4]
[mussa.git] / mussa_gui_conn.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 x_max, y_max;
17     float x_scale_factor;
18     int y_seq_incre;
19     int drag_start, drag_end;
20     bool dragging, selected;
21     list<bool> highlight;
22
23     list<vector<int> > scaled_pathz;
24     vector<int> seq_lens;
25
26
27   public:
28     ConnView(int x_top,int y_top,int x_bot,int y_bot) :
29       Fl_Box(x_top,y_top,x_bot,y_bot)
30       {
31         x_max = x_bot;
32         y_max = y_bot;
33       }
34
35     void setup(string name, int sq_num, int win_len,
36                vector<Sequence> *, Nway_Paths *);
37     void scale_paths();
38     void draw();
39     int handle(int e);
40     void spawnSeq();
41 };