// generated by Fast Light User Interface Designer (fluid) version 1.00 #include "win.h" Fl_Window *mainwin=(Fl_Window *)0; Fl_Button *btn_exit=(Fl_Button *)0; Fl_Button *btn_start=(Fl_Button *)0; Fl_Light_Button *btn_stop=(Fl_Light_Button *)0; Fl_Light_Button *btn_realview=(Fl_Light_Button *)0; Fl_Button *btn_cfg=(Fl_Button *)0; Fl_Light_Button *btn_showcross=(Fl_Light_Button *)0; Fl_Light_Button *btn_snap=(Fl_Light_Button *)0; Fl_Light_Button *btn_view=(Fl_Light_Button *)0; Fl_Light_Button *btn_control=(Fl_Light_Button *)0; Fl_Value_Output *txt_mincol=(Fl_Value_Output *)0; Fl_Value_Output *txt_maxcol=(Fl_Value_Output *)0; Fl_Window *cfgwin=(Fl_Window *)0; Fl_Input *in_calcstart=(Fl_Input *)0; Fl_Input *in_maxcalckoor=(Fl_Input *)0; Fl_Input *in_coltolerance=(Fl_Input *)0; Fl_Input *in_percentcorrect=(Fl_Input *)0; Fl_Button *btn_cfg_quit=(Fl_Button *)0; Fl_Choice *ch_strategy=(Fl_Choice *)0; Fl_Input *in_seeing=(Fl_Input *)0; Fl_Choice *ch_koortype=(Fl_Choice *)0; Fl_Input *in_xraster=(Fl_Input *)0; Fl_Input *in_yraster=(Fl_Input *)0; Fl_Input *in_snapprefix=(Fl_Input *)0; Fl_Input *in_maxsnap=(Fl_Input *)0; Fl_Input *in_snapquality=(Fl_Input *)0; Fl_Choice *ch_snapsize=(Fl_Choice *)0; Fl_Input *in_coverinterval=(Fl_Input *)0; Fl_Window* make_window() { Fl_Window* w; { Fl_Window* o = mainwin = new Fl_Window(171, 229, "elcamw"); w = o; o->labelsize(10); { Fl_Button* o = btn_exit = new Fl_Button(115, 5, 50, 15, "Exit"); o->labelsize(10); o->callback((Fl_Callback*)cb_btn_exit); } { Fl_Button* o = btn_start = new Fl_Button(5, 5, 50, 15, "Start"); o->labelsize(10); o->callback((Fl_Callback*)cb_btn_start); } { Fl_Light_Button* o = btn_stop = new Fl_Light_Button(60, 5, 50, 15, "Stop"); o->type(0); o->labelsize(10); o->callback((Fl_Callback*)cb_btn_stop); } { Fl_Light_Button* o = btn_realview = new Fl_Light_Button(60, 170, 50, 15, "Real"); o->type(0); o->labelsize(10); o->callback((Fl_Callback*)cb_btn_realview); o->align(FL_ALIGN_CENTER|FL_ALIGN_INSIDE); } { Fl_Button* o = btn_cfg = new Fl_Button(115, 190, 50, 35, "Config"); o->labelsize(10); o->callback((Fl_Callback*)cb_btn_cfg); } { Fl_Light_Button* o = btn_showcross = new Fl_Light_Button(115, 170, 50, 15, "Koor"); o->type(0); o->labelsize(10); o->callback((Fl_Callback*)cb_btn_showcross); o->align(FL_ALIGN_CENTER|FL_ALIGN_INSIDE); } { Fl_Light_Button* o = btn_snap = new Fl_Light_Button(5, 190, 50, 15, "Snap"); o->type(0); o->labelsize(10); o->callback((Fl_Callback*)cb_btn_snap); o->align(FL_ALIGN_CENTER|FL_ALIGN_INSIDE); } { Fl_Light_Button* o = btn_view = new Fl_Light_Button(5, 170, 50, 15, "View"); o->type(0); o->labelsize(10); o->callback((Fl_Callback*)cb_btn_view); o->align(FL_ALIGN_CENTER|FL_ALIGN_INSIDE); Fl_Group::current()->resizable(o); } { Fl_Light_Button* o = btn_control = new Fl_Light_Button(60, 190, 50, 15, "Ctrl."); o->type(0); o->labelsize(10); o->callback((Fl_Callback*)cb_btn_control); o->align(FL_ALIGN_CENTER|FL_ALIGN_INSIDE); } { Fl_Value_Output* o = txt_mincol = new Fl_Value_Output(25, 210, 30, 15, "min"); o->labelsize(10); o->maximum(255); o->textsize(10); } { Fl_Value_Output* o = txt_maxcol = new Fl_Value_Output(80, 210, 30, 15, "max"); o->labelsize(10); o->maximum(255); o->textsize(10); } o->end(); } { Fl_Window* o = cfgwin = new Fl_Window(270, 329, "elcamw config"); w = o; o->labelsize(10); { Fl_Input* o = in_calcstart = new Fl_Input(5, 5, 35, 20, "Nr. of pictures to get, before test. ( 1-255)"); o->labelsize(10); o->textsize(10); o->align(FL_ALIGN_RIGHT); o->when(FL_WHEN_NEVER); } { Fl_Input* o = in_maxcalckoor = new Fl_Input(5, 30, 35, 20, "Nr. of koordinates to test (1-100)"); o->labelsize(10); o->textsize(10); o->align(FL_ALIGN_RIGHT); o->when(FL_WHEN_NEVER); } { Fl_Input* o = in_coltolerance = new Fl_Input(5, 105, 35, 20, "Add. accepted range of brightness (0-255)"); o->labelsize(10); o->textsize(10); o->align(FL_ALIGN_RIGHT); o->when(FL_WHEN_NEVER); } { Fl_Input* o = in_percentcorrect = new Fl_Input(5, 55, 35, 20, "% Percent of koordinates, which must be ok."); o->labelsize(10); o->textsize(10); o->align(FL_ALIGN_RIGHT); o->when(FL_WHEN_NEVER); } { Fl_Button* o = btn_cfg_quit = new Fl_Button(175, 305, 90, 20, "Quit"); o->labelsize(10); o->callback((Fl_Callback*)cb_btn_cfg_quit); } { Fl_Choice* o = ch_strategy = new Fl_Choice(5, 305, 80, 20, "Strategy"); o->labelsize(10); o->textsize(10); o->callback((Fl_Callback*)cb_ch_strategy); o->align(FL_ALIGN_TOP_LEFT); o->when(FL_WHEN_CHANGED); } { Fl_Input* o = in_seeing = new Fl_Input(5, 130, 35, 20, "Seeing ( 0 - 19 pixel, where 0 is best )"); o->labelsize(10); o->textsize(10); o->align(FL_ALIGN_RIGHT); o->when(FL_WHEN_NEVER); } { Fl_Choice* o = ch_koortype = new Fl_Choice(90, 305, 80, 20, "Koortype"); o->labelsize(10); o->textsize(10); o->align(FL_ALIGN_TOP_LEFT); o->when(FL_WHEN_NEVER); } { Fl_Input* o = in_xraster = new Fl_Input(5, 80, 35, 20, "Raster X ( 1-20)"); o->labelsize(10); o->textsize(10); o->align(FL_ALIGN_RIGHT); o->when(FL_WHEN_NEVER); } { Fl_Input* o = in_yraster = new Fl_Input(130, 80, 35, 20, "Raster Y ( 1-20)"); o->labelsize(10); o->textsize(10); o->align(FL_ALIGN_RIGHT); o->when(FL_WHEN_NEVER); } { Fl_Input* o = in_snapprefix = new Fl_Input(5, 190, 260, 20, "Prefix for numerated pictures to snap"); o->labelsize(10); o->textsize(10); o->align(FL_ALIGN_TOP_LEFT); o->when(FL_WHEN_NEVER); } { Fl_Input* o = in_maxsnap = new Fl_Input(5, 250, 95, 20, "Number of max. pictures to snap, 0 - unlimited."); o->labelsize(10); o->textsize(10); o->align(FL_ALIGN_TOP_LEFT); o->when(FL_WHEN_NEVER); } { Fl_Input* o = in_snapquality = new Fl_Input(110, 250, 35, 20, "% Quality"); o->labelsize(10); o->textsize(10); o->align(FL_ALIGN_RIGHT); o->when(FL_WHEN_NEVER); } { Fl_Choice* o = ch_snapsize = new Fl_Choice(5, 215, 120, 20, "Size of snapped pictures"); o->labelsize(10); o->textsize(10); o->align(FL_ALIGN_RIGHT); o->when(FL_WHEN_NEVER); } { Fl_Input* o = in_coverinterval = new Fl_Input(5, 155, 35, 20, "Restartinterval ( Nr. of pict., 0 means off )"); o->labelsize(10); o->textsize(10); o->align(FL_ALIGN_RIGHT); o->when(FL_WHEN_NEVER); } o->end(); } return w; }