// generated by Fast Light User Interface Designer (fluid) version 1.0102 #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_coltolerance=(Fl_Input *)0; Fl_Button *btn_cfg_quit=(Fl_Button *)0; Fl_Input *in_seeing=(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_Light_Button *btn_fruse=(Fl_Light_Button *)0; Fl_Check_Button *btn_frleft=(Fl_Check_Button *)0; Fl_Light_Button *btn_guide=(Fl_Light_Button *)0; Fl_Input *in_dirlock=(Fl_Input *)0; Fl_Window* make_window() { Fl_Window* w; { Fl_Window* o = mainwin = new Fl_Window(170, 225, "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, 265, "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. ( 3-255)"); 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, 30, 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_Button* o = btn_cfg_quit = new Fl_Button(5, 240, 260, 20, "Quit"); o->labelsize(10); o->callback((Fl_Callback*)cb_btn_cfg_quit); } { Fl_Input* o = in_seeing = new Fl_Input(5, 55, 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_Input* o = in_snapprefix = new Fl_Input(5, 125, 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, 185, 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, 185, 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, 150, 120, 20, "Size of snapped pictures"); o->down_box(FL_BORDER_BOX); o->labelsize(10); o->textsize(10); o->align(FL_ALIGN_RIGHT); o->when(FL_WHEN_NEVER); } { Fl_Light_Button* o = btn_fruse = new Fl_Light_Button(5, 215, 95, 20, "Fieldrotator"); o->type(0); o->labelsize(10); } { Fl_Check_Button* o = btn_frleft = new Fl_Check_Button(105, 215, 35, 20, "Left"); o->type(0); o->down_box(FL_DIAMOND_DOWN_BOX); o->labelsize(10); } { Fl_Light_Button* o = btn_guide = new Fl_Light_Button(170, 215, 95, 20, "Autoguide"); o->type(0); o->labelsize(10); } { Fl_Input* o = in_dirlock = new Fl_Input(5, 80, 35, 20, "Directionlock ( 0-100, 0 = off )"); o->labelsize(10); o->textsize(10); o->align(FL_ALIGN_RIGHT); o->when(FL_WHEN_NEVER); } o->end(); } return w; }