Thicker bars, better letters
[mussa.git] / gui / ConnWindow.hh
1 #ifndef _MUSSA_GUI_CONN_WINDOW_H_
2 #define _MUSSA_GUI_CONN_WINDOW_H_
3
4 //  This file is part of the Mussa source distribution.
5 //  http://mussa.caltech.edu/
6 //  Contact author: Tristan  De Buysscher, tristan@caltech.edu
7
8 // This program and all associated source code files are Copyright (C) 2005
9 // the California Institute of Technology, Pasadena, CA, 91125 USA.  It is
10 // under the GNU Public License; please see the included LICENSE.txt
11 // file for more information, or contact Tristan directly.
12
13 #include <string>
14
15 #include <FL/Fl_Double_Window.H>
16 #include <FL/Fl_Menu_Bar.H>
17 #include <FL/Fl_Menu_Item.H>
18
19 #include "ConnView.hh"
20 #include "SetupWindow.hh"
21 #include "SubAnalysisWindow.hh"
22 #include "SeqTextWindow.hh"
23
24 //! Window for showing the lines connecting the various sequences together
25 class ConnWindow : public Fl_Double_Window
26 {
27   private:
28     Mussa *an_analysis, *sub_analysis;
29     ConnWindow *sub_conn_win;
30
31     Fl_Menu_Button *file_menu;
32     Fl_Menu_Button *view_menu;
33     Fl_Menu_Bar *menu_bar;
34     Fl_Input *bar_input;
35     Fl_Input *line_input;
36     Fl_Input *thres_input;
37     ConnView *conn_box;
38     SetupWindow *setup_win;
39     SubAnalysisWindow *subana_win;
40     SeqTextWindow *show_seq_win;
41     int padding, name_pad;
42     std::string window_name;
43
44   public:
45     ConnWindow(int w, int h, const char* title);
46     ~ConnWindow();
47     void add_ana(Mussa *the_ana);
48
49     void real_load_ana_cb();
50     void real_do_ana_cb();
51     void real_setup_ana_cb();
52     void real_subana_cb();
53     void real_resthres();
54     void real_seq_show_cb();
55
56     void real_seq_win_spawn_cb();
57     void real_motif_find_cb();
58     void real_annot_win_cb();
59
60     void real_toggle_bars_cb();
61     void real_set_bar_len_cb(Fl_Input* o);
62     void real_toggle_lines_cb();
63     void real_set_line_len_cb(Fl_Input* o);
64     void real_set_soft_thres_cb(Fl_Input* o);
65 };
66
67 #endif