1 // This file is part of the Mussa source distribution.
2 // http://mussa.caltech.edu/
3 // Contact author: Tristan De Buysscher, tristan@caltech.edu
5 // This program and all associated source code files are Copyright (C) 2005
6 // the California Institute of Technology, Pasadena, CA, 91125 USA. It is
7 // under the GNU Public License; please see the included LICENSE.txt
8 // file for more information, or contact Tristan directly.
11 #include "mussa_gui_load_window.hh"
14 #include <FL/Fl_Box.H>
15 #include <FL/fl_draw.H>
17 class SeqView : public Fl_Box
20 SeqView(int x_top,int y_top,int x_bot,int y_bot) :
21 Fl_Box(x_top,y_top,x_bot,y_bot)
31 void setup(string name, int sq_num, vector<Sequence> *some_seqs,
32 list<vector<int> > some_paths, vector<int> some_lens,
33 vector<motif> *some_motifs);
34 void align_offsets(int align_num);
35 void toggle_align(int align_num);
44 //this data is passed as pointers to the instantiated classes
46 //list of paths in selection box
49 //pointer to passed motif data
50 vector<motif> *the_motifs;
52 int x_max, y_max, x_min, y_min;
55 vector<int> seq_align_offsets;
56 vector<string> raw_sequence;
58 int drag_change, scroll_offset;
59 bool show_bars, show_motifs;
60 vector<bool> show_aligns;
62 void resize(int new_x, int new_y, int new_w, int new_h);
64 void draw_motifs(double ch_width);
65 void draw_sequence(double ch_width);
66 void draw_match_lines(double ch_width);
67 void draw_indices(double ch_width);
69 void reporter(string id, int value);