1 #ifndef _MUSSA_GUI_SEQ_H_
2 #define _MUSSA_GUI_SEQ_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.
17 #include "mussa_gui_seq_view.hh"
19 #include <FL/Fl_Menu_Bar.H>
20 #include <FL/Fl_Menu_Item.H>
21 #include <FL/Fl_Menu_Button.H>
22 #include <FL/Fl_Double_Window.H>
24 class SeqWindow : public Fl_Double_Window
30 //this data is passed as pointers to the instantiated classes
31 std::vector<Sequence> *S;
32 // list of paths in selection box
33 std::list<std::vector<int> > P;
34 std::vector<int> seq_lens;
35 //pointer to passed motif data
36 std::vector<motif> *the_motifs;
39 Fl_Menu_Button *choose_align_menu;
40 Fl_Menu_Button *show_align_menu;
41 Fl_Button *toggle_bars;
47 SeqWindow(int w, int h, const char* title, int sq_num,
48 std::vector<Sequence> *some_seqs,
49 std::list<std::vector<int> > some_paths,
50 std::vector<int> some_lens,
51 std::vector<motif> *some_motifs);
52 virtual ~SeqWindow(){ std::cout << "dying\n"; }
54 void make_choose_menu();
55 void make_show_menu();
56 void real_set_align_cb(int which_align);
57 void real_show_align_cb(int which_align);
58 void real_toggle_bars_cb();
59 void real_toggle_motifs_cb();
63 struct menu_align_data_bundle