1 // This file is part of the Mussa source distribution.
2 // http://mussa.caltech.edu/
3 // Contact author: Tristan De Buysscher, tristan@caltech.edu
5 // This program and all associated source code files are Copyright (C) 2005
6 // the California Institute of Technology, Pasadena, CA, 91125 USA. It is
7 // under the GNU Public License; please see the included LICENSE.txt
8 // file for more information, or contact Tristan directly.
11 #include "mussa_class.hh"
14 #include <FL/Fl_Window.H>
15 #include <FL/Fl_Button.H>
17 #include <FL/Fl_Input.H>
18 #include <FL/Fl_Output.H>
19 #include <FL/Fl_Pack.H>
20 #include <FL/fl_show_colormap.H>
26 vector<vector<int> > locations;
30 //typedef motif_ptr *motif;
33 class MotifWindow : public Fl_Window
36 MotifWindow(int w, int h, const char* title, vector<motif> * some_motifs);
38 Fl_Pack * motif_input_pack;
39 list<Fl_Input*> motif_ins;
40 vector<Fl_Button*> motif_color_buttons;
41 list<Fl_Input*> name_ins;
45 void cb_motif_in_i(Fl_Input*, int i);
46 void cb_motif_color_i(Fl_Button* o, int i);
49 vector<motif> * the_motifs;
52 void add_motif_input(int index);
54 static void add_motif_cb(Fl_Button*, void*);
55 inline void add_motif_cb_real(Fl_Button*, void*);
57 static void print_cb(Fl_Button*, void*);
58 inline void print_cb_real(Fl_Button*, void*);
61 // crazy whacked shite Titus taught me to do to get an index value associated
62 // with each instance of an input associated with the callback...
69 motif new_blank_motif();