/* Form definition file generated with fdesign. */ #include "forms.h" #include #include "interface.h" FD_Interface *create_form_Interface(void) { FL_OBJECT *obj; FD_Interface *fdui = (FD_Interface *) fl_calloc(1, sizeof(*fdui)); fdui->Interface = fl_bgn_form(FL_NO_BOX, 480, 580); obj = fl_add_box(FL_UP_BOX,0,0,480,580,"Version 1.1"); fl_set_object_color(obj,FL_DARKCYAN,FL_WHITE); fl_set_object_lsize(obj,FL_TINY_SIZE); fl_set_object_lalign(obj,FL_ALIGN_BOTTOM_RIGHT|FL_ALIGN_INSIDE); fl_set_object_lstyle(obj,FL_TIMESITALIC_STYLE); fdui->PlayButton = obj = fl_add_button(FL_NORMAL_BUTTON,10,230,80,50,"Play"); fl_set_object_boxtype(obj,FL_OVAL3D_UPBOX); fl_set_object_color(obj,FL_BLACK,FL_DARKCYAN); fl_set_object_lcolor(obj,FL_WHITE); fl_set_object_callback(obj,pb_back,0); fdui->ExitButton = obj = fl_add_button(FL_NORMAL_BUTTON,330,210,100,50,"Exit"); fl_set_object_boxtype(obj,FL_OVAL3D_UPBOX); fl_set_object_color(obj,FL_RED,FL_BLACK); fl_set_object_lsize(obj,FL_NORMAL_SIZE); fl_set_object_lstyle(obj,FL_BOLD_STYLE+FL_SHADOW_STYLE); fl_set_object_callback(obj,ex_back,0); fdui->logobmp = obj = fl_add_bitmap(FL_NORMAL_BITMAP,10,10,240,170,""); fl_set_object_boxtype(obj,FL_DOWN_BOX); fl_set_object_color(obj,FL_WHITE,FL_WHITE); fdui->filename = obj = fl_add_input(FL_NORMAL_INPUT,110,240,140,30,"Local File Name"); fl_set_object_color(obj,FL_BLACK,FL_WHITE); fl_set_object_lalign(obj,FL_ALIGN_TOP); fl_set_object_callback(obj,file_cb,0); fdui->plist = obj = fl_add_menu(FL_PULLDOWN_MENU,300,20,160,70,"Playlist"); fl_set_object_boxtype(obj,FL_UP_BOX); fl_set_object_color(obj,FL_BLACK,FL_INACTIVE); fl_set_object_lcolor(obj,FL_WHITE); fl_set_object_callback(obj,plistback,0); fdui->position = obj = fl_add_slider(FL_HOR_SLIDER,10,190,240,20,""); fl_set_object_color(obj,FL_BLACK,FL_WHITE); fl_set_object_lalign(obj,FL_ALIGN_TOP); fl_set_object_callback(obj,pback,0); fl_set_slider_value(obj, 0.00); fdui->AddButton = obj = fl_add_button(FL_NORMAL_BUTTON,340,120,80,40,"Add"); fl_set_object_boxtype(obj,FL_OVAL3D_UPBOX); fl_set_object_color(obj,FL_BLACK,FL_DARKCYAN); fl_set_object_lcolor(obj,FL_WHITE); fl_set_object_callback(obj,add_back,0); fdui->message = obj = fl_add_text(FL_NORMAL_TEXT,20,290,450,250,"Welcome"); fl_set_object_boxtype(obj,FL_ROUNDED3D_DOWNBOX); fl_set_object_color(obj,FL_BLACK,FL_BLACK); fl_set_object_lcolor(obj,FL_WHITE); fl_set_object_lalign(obj,FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE); fl_set_object_callback(obj,mback,0); fl_end_form(); fdui->Interface->fdui = fdui; return fdui; } /*---------------------------------------*/