1 #include "mussa_gui_motif_window.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>
18 //typedef annot_ptr *annot;
21 class AnnotWindow : public Fl_Window
24 AnnotWindow(int w, int h, const char* title,
25 vector<annot_color> * some_annots);
27 Fl_Pack * annot_input_pack;
28 list<Fl_Output*> annot_ins;
29 vector<Fl_Button*> annot_color_buttons;
30 list<Fl_Input*> name_ins;
34 void cb_annot_in_i(Fl_Input*, int i);
35 void cb_annot_color_i(Fl_Button* o, int i);
38 vector<annot_color> * the_annots;
41 void add_annot_input(int index);
43 static void add_annot_cb(Fl_Button*, void*);
44 inline void add_annot_cb_real(Fl_Button*, void*);
46 static void print_cb(Fl_Button*, void*);
47 inline void print_cb_real(Fl_Button*, void*);
50 // crazy whacked shite Titus taught me to do to get an index value associated
51 // with each instance of an input associated with the callback...
58 annot_color new_blank_annot();