[project @ 13]
[mussa.git] / mussa_gui_seq_text.hh
1 //  This file is part of the Mussa source distribution.
2 //  http://mussa.caltech.edu/
3 //  Contact author: Tristan  De Buysscher, tristan@caltech.edu
4
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.
9
10
11 #include "mussa_gui_seq.hh"
12 #include <FL/Fl_Text_Buffer.H>
13 #include <FL/Fl_Text_Display.H>
14 #include <FL/Fl_Multiline_Output.H>
15
16 class SeqTextWin : public Fl_Window
17
18   public:
19     SeqTextWin(int w, int h, const char* title, vector<Sequence> some_Seqs);
20     ~SeqTextWin();
21
22     Fl_Button* get_seq_but;
23     Fl_Multiline_Output* seq_display;
24     Fl_Text_Buffer* seq_buffer;
25     Fl_Text_Display* seq_display2;
26     Fl_Input *seq_id_input;
27     Fl_Input *seq_start_input;
28     Fl_Input *seq_end_input;
29
30     // callback receiver functions
31
32     void real_get_seq_cb();
33     void real_set_seq_id_cb(Fl_Input* o);
34     void real_set_seq_start_cb(Fl_Input* o);
35     void real_set_seq_end_cb(Fl_Input* o);
36
37   private:
38     // sequence data
39     vector<Sequence> the_Seqs;
40     string sub_sequence;
41     int seq_id, seq_start, seq_end;
42 };
43