# data file for the Fltk User Interface Designer (fluid) version 1.0009 header_name {.h} code_name {.cxx} gridx 5 gridy 5 snap 3 class gui {open } { Function {gui()} {open } { Fl_Window form { label window open xywh {699 347 419 503} type Double resizable code0 {\#include } visible } { Fl_Box gl_window { label gl_window selected xywh {15 35 355 330} labeltype NO_LABEL code0 {\#include "gl_window.h"} class CGL_Window } Fl_Group {} { label rotate open xywh {65 385 120 405} } { Fl_Slider x { label x callback {gl_window->rotatex(o->value()); gl_window->redraw();} xywh {85 385 25 95} minimum -360 maximum 360 step 0.1 } Fl_Slider y { label y callback {gl_window->rotatey(o->value()); gl_window->redraw();} xywh {115 385 25 95} minimum -360 maximum 360 step 0.1 } Fl_Slider z { label z callback {gl_window->rotatez(o->value()); gl_window->redraw();} xywh {145 385 25 95} minimum -360 maximum 360 step 0.1 } } Fl_Button quit { label quit callback {gl_window->quit_cb();} xywh {215 440 125 35} labelsize 12 } Fl_Button load { label load callback {gl_window->load(fl_file_chooser("Open File","*.coor",filename)); gl_window->redraw();} xywh {215 400 125 35} labelsize 12 code0 {\#include } } Fl_Menu_Bar menu_bar {open xywh {0 0 845 25} } { submenu file_menu { label {&file} open xywh {0 0 100 20} } { menuitem quit_file_menu_item { label {&quit} callback {file_menu_cb(o,0)} xywh {10 10 100 20} } } } Fl_Slider zoom { label zoom callback {gl_window->zoom(o->value()); gl_window->redraw();} xywh {375 35 30 310} minimum -200 step 0.1 } } code {filename[0] = '\\0';} {} } Function {show()} {open } { code {form->show(); gl_window->show();} {} } decl {char filename[1024];} {} Function {file_menu_cb(Fl_Widget *w, void*)} {open } { code {Fl_Menu_* mw = (Fl_Menu_*)w; const Fl_Menu_Item* m = mw->mvalue(); if (!m) printf("NULL\\n"); else if (m->shortcut()) printf("%s - %s\\n", m->label(), fl_shortcut_label(m->shortcut())); else printf("<%s>\\n", m->label()); if (!strcmp(m->label(), "&load")) printf("got load\\n"); else if (!strcmp(m->label(), "&quit")) gl_window->quit_cb();} {} } }