# data file for the Fltk User Interface Designer (fluid) version 1.0104 header_name {.h} code_name {.cxx} class SmartShelfUI {open } { Function {SmartShelfUI()} {open } { Fl_Window win { label {SmartShelf GUI} open xywh {638 107 581 550} type Double color 0 code0 {\#include \#include} code1 {using namespace std;} visible } { Fl_Text_Display inventory { label {Kitchen Inventory} xywh {24 25 520 170} color 0 selection_color 3 labelfont 1 labelsize 16 labelcolor 3 textcolor 3 } Fl_Value_Slider S1 { label S1 xywh {30 260 35 180} type {Vert Fill} color 175 selection_color 130 labelcolor 3 minimum 3000 maximum 0 step 1 textcolor 88 } Fl_Value_Slider S2 { label S2 xywh {75 260 35 180} type {Vert Fill} color 175 selection_color 130 labelcolor 3 minimum 3000 maximum 0 step 1 textcolor 88 } Fl_Value_Slider S3 { label S3 xywh {120 260 35 180} type {Vert Fill} color 175 selection_color 130 labelcolor 3 minimum 3000 maximum 0 step 1 textcolor 88 } Fl_Value_Slider S4 { label S4 xywh {170 260 35 180} type {Vert Fill} color 175 selection_color 130 labelcolor 3 minimum 3000 maximum 0 step 1 textcolor 88 } Fl_Button display { label {Display Recipes} selected xywh {405 410 130 35} box ENGRAVED_BOX color 175 labelsize 15 labelcolor 24 code0 {char buf[256];} } Fl_Value_Output sum { label {Pressure Change} xywh {240 410 110 30} color 175 labelcolor 95 align 6 minimum -3000 maximum 3000 } } } Function {} {open } { code {extern SmartShelfUI* main_window; extern void init_sigio(void); extern void handle_input(int); extern void open_database(void); extern void cb_display(Fl_Button*, void*); extern void display_inventory(); main_window->inventory->buffer(new Fl_Text_Buffer()); main_window->display->callback( (Fl_Callback*) cb_display ); main_window->win->show(); open_database(); display_inventory(); init_sigio(); while (1) { handle_input(-1); Fl::wait(0.1); }} {} } }