1 #include "mussa_class.hh"
4 #include <FL/Fl_Window.H>
5 #include <FL/Fl_Button.H>
7 #include <FL/Fl_Input.H>
8 #include <FL/Fl_Output.H>
9 #include <FL/Fl_Pack.H>
10 #include <FL/fl_show_colormap.H>
16 vector<vector<int> > locations;
20 //typedef motif_ptr *motif;
23 class MotifWindow : public Fl_Window
26 MotifWindow(int w, int h, const char* title, vector<motif> * some_motifs);
28 Fl_Pack * motif_input_pack;
29 list<Fl_Input*> motif_ins;
30 vector<Fl_Button*> motif_color_buttons;
31 list<Fl_Input*> name_ins;
35 void cb_motif_in_i(Fl_Input*, int i);
36 void cb_motif_color_i(Fl_Button* o, int i);
39 vector<motif> * the_motifs;
42 void add_motif_input(int index);
44 static void add_motif_cb(Fl_Button*, void*);
45 inline void add_motif_cb_real(Fl_Button*, void*);
47 static void print_cb(Fl_Button*, void*);
48 inline void print_cb_real(Fl_Button*, void*);
51 // crazy whacked shite Titus taught me to do to get an index value associated
52 // with each instance of an input associated with the callback...
59 motif new_blank_motif();