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_gui_motif_window.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>
28 //typedef annot_ptr *annot;
31 class AnnotWindow : public Fl_Window
34 AnnotWindow(int w, int h, const char* title,
35 vector<annot_color> * some_annots);
37 Fl_Pack * annot_input_pack;
38 list<Fl_Output*> annot_ins;
39 vector<Fl_Button*> annot_color_buttons;
40 list<Fl_Input*> name_ins;
44 void cb_annot_in_i(Fl_Input*, int i);
45 void cb_annot_color_i(Fl_Button* o, int i);
48 vector<annot_color> * the_annots;
51 void add_annot_input(int index);
53 static void add_annot_cb(Fl_Button*, void*);
54 inline void add_annot_cb_real(Fl_Button*, void*);
56 static void print_cb(Fl_Button*, void*);
57 inline void print_cb_real(Fl_Button*, void*);
60 // crazy whacked shite Titus taught me to do to get an index value associated
61 // with each instance of an input associated with the callback...
68 annot_color new_blank_annot();