1 #ifndef _MUSSA_GUI_SEQ_TEXT_H_
2 #define _MUSSA_GUI_SEQ_TEXT_H_
3 // This file is part of the Mussa source distribution.
4 // http://mussa.caltech.edu/
5 // Contact author: Tristan De Buysscher, tristan@caltech.edu
7 // This program and all associated source code files are Copyright (C) 2005
8 // the California Institute of Technology, Pasadena, CA, 91125 USA. It is
9 // under the GNU Public License; please see the included LICENSE.txt
10 // file for more information, or contact Tristan directly.
15 #include <FL/Fl_Button.H>
16 #include <FL/Fl_Input.H>
17 #include <FL/Fl_Text_Buffer.H>
18 #include <FL/Fl_Text_Display.H>
19 #include <FL/Fl_Multiline_Output.H>
20 #include <FL/Fl_Window.H>
22 #include "alg/sequence.hh"
24 class SeqTextWindow : public Fl_Window
27 SeqTextWindow(int w, int h, const char* title, std::vector<Sequence> some_Seqs);
30 Fl_Button* get_seq_but;
31 Fl_Multiline_Output* seq_display;
32 Fl_Text_Buffer* seq_buffer;
33 Fl_Text_Display* seq_display2;
34 Fl_Input *seq_id_input;
35 Fl_Input *seq_start_input;
36 Fl_Input *seq_end_input;
38 // callback receiver functions
40 void real_get_seq_cb();
41 void real_set_seq_id_cb(Fl_Input* o);
42 void real_set_seq_start_cb(Fl_Input* o);
43 void real_set_seq_end_cb(Fl_Input* o);
47 std::vector<Sequence> the_seqs;
48 std::string sub_sequence;
49 int seq_id, seq_start, seq_end;