1 #include "mussa_gui_annot_window.hh"
2 #include <FL/Fl_File_Chooser.H>
3 #include <FL/Fl_Scroll.H>
5 class SetupWindow : public Fl_Window
8 SetupWindow(int w, int h, const char* title, Mussa *an_analysis);
13 //did I put these in public for a reason?
17 Fl_Input *thres_input;
18 Fl_Input *seq_num_input;
19 Fl_Scroll *seq_scroll;
20 // need to keep track of these so a browsed file search can set the input
21 // fields to teh selected file
22 vector<Fl_Input*> seq_inputs, annot_inputs;
25 // callback receiver functions
27 void real_do_analysis();
29 void real_set_ana_name_cb(Fl_Input* o);
30 void real_set_win_size_cb(Fl_Input* o);
31 void real_set_threshold_cb(Fl_Input* o);
32 void real_set_seq_num_cb(Fl_Input* o);
34 void real_seq_file_in_cb(Fl_Input* o, int i);
35 void real_choose_seq_file_cb(int i);
36 void real_annot_file_in_cb(Fl_Input* o, int i);
37 void real_choose_annot_file_cb(int i);
39 void real_fa_index_in_cb(Fl_Input* o, int i);
40 void real_sub_start_in_cb(Fl_Input* o, int i);
41 void real_sub_end_in_cb(Fl_Input* o, int i);
46 int window, threshold, seq_num;
47 vector<string> seq_files, annot_files;
48 vector<int> fasta_indices, sub_seq_starts, sub_seq_ends;
49 bool win_append, thres_append;
52 static void print_cb(Fl_Button*, void*);
53 inline void print_cb_real(Fl_Button*, void*);
55 void add_seq_input(int index);
58 // crazy whacked shite Titus taught me to do to get an index value associated
59 // with each instance of an input associated with the callback...
61 struct seq_data_instance