1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
/* Form definition file generated by fdesign. */
#include <stdlib.h>
#include "button_spec.h"
/***************************************
***************************************/
FD_buttonattrib *
create_form_buttonattrib( void )
{
FL_OBJECT *obj;
FD_buttonattrib *fdui = fl_malloc( sizeof *fdui );
int old_bw = fl_get_border_width( );
fl_set_border_width( -1 );
fdui->vdata = fdui->cdata = NULL;
fdui->ldata = 0;
fdui->buttonattrib = fl_bgn_form( FL_NO_BOX, 540, 280 );
fdui->background = obj = fl_add_box( FL_FLAT_BOX, 0, 0, 540, 280, "" );
obj = fl_add_labelframe( FL_ENGRAVED_FRAME, 20, 20, 490, 240, "Button Attributes" );
fl_set_object_lsize( obj, FL_NORMAL_SIZE );
fl_set_object_lstyle( obj, FL_TIMESBOLD_STYLE );
fdui->initialval = obj = fl_add_checkbutton( FL_PUSH_BUTTON, 160, 60, 30, 30, "Initially Set" );
fl_set_object_lalign( obj, FL_ALIGN_LEFT );
fl_set_object_callback( obj, initialval_change, 0 );
fdui->filename = obj = fl_add_input( FL_NORMAL_INPUT, 160, 110, 210, 25, "Icon File" );
fl_set_object_callback( obj, iconbutton_filename_change, 0 );
fdui->pixalign = obj = fl_add_choice( FL_NORMAL_CHOICE2, 280, 70, 155, 25, "" );
fl_set_object_callback( obj, pixalign_change, 0 );
fdui->showfocus = obj = fl_add_checkbutton( FL_PUSH_BUTTON, 160, 80, 30, 30, "Show Focus" );
fl_set_object_lalign( obj, FL_ALIGN_LEFT );
fl_set_object_callback( obj, showfocus_change, 0 );
fl_set_button( obj, 1 );
fdui->browse = obj = fl_add_button( FL_NORMAL_BUTTON, 370, 110, 66, 25, "Browse ...." );
fl_set_button_shortcut( obj, "#B", 1 );
fl_set_object_callback( obj, lookfor_pixmapfile_cb, 0 );
fdui->use_data = obj = fl_add_checkbutton( FL_PUSH_BUTTON, 175, 175, 30, 30, "Use Data" );
fl_set_object_lalign( obj, FL_ALIGN_LEFT );
fl_set_object_callback( obj, usedata_change, 0 );
fdui->fullpath = obj = fl_add_checkbutton( FL_PUSH_BUTTON, 275, 175, 30, 30, "Full Path" );
fl_set_object_lalign( obj, FL_ALIGN_LEFT );
fl_set_object_callback( obj, fullpath_cb, 0 );
fdui->focus_filename = obj = fl_add_input( FL_NORMAL_INPUT, 160, 145, 210, 25, "Focus icon File" );
fl_set_object_callback( obj, focusiconbutton_filename_change, 0 );
fdui->browse2 = obj = fl_add_button( FL_NORMAL_BUTTON, 372, 145, 66, 25, "Browse ...." );
fl_set_object_callback( obj, lookfor_pixmapfile_cb, 1 );
fdui->tooltip = obj = fl_add_input( FL_NORMAL_INPUT, 160, 215, 240, 28, "Helper/tooltip" );
fl_set_object_callback( obj, helper_change_cb, 0 );
fdui->mbuttons_label = obj = fl_add_text( FL_NORMAL_TEXT, 60, 40, 100, 20, "Mouse buttons" );
fl_set_object_lalign( obj, FL_ALIGN_CENTER | FL_ALIGN_INSIDE );
fdui->react_left = obj = fl_add_roundbutton( FL_PUSH_BUTTON, 160, 40, 20, 20, "Left" );
fl_set_object_callback( obj, react_to_button, 0 );
fl_set_button( obj, 1 );
fdui->react_middle = obj = fl_add_roundbutton( FL_PUSH_BUTTON, 210, 40, 20, 20, "Middle" );
fl_set_object_callback( obj, react_to_button, 1 );
fl_set_button( obj, 1 );
fdui->react_right = obj = fl_add_roundbutton( FL_PUSH_BUTTON, 280, 40, 20, 20, "Right" );
fl_set_object_callback( obj, react_to_button, 2 );
fl_set_button( obj, 1 );
fdui->react_up = obj = fl_add_roundbutton( FL_PUSH_BUTTON, 340, 40, 20, 20, "Up" );
fl_set_object_callback( obj, react_to_button, 3 );
fl_set_button( obj, 1 );
fdui->react_down = obj = fl_add_roundbutton( FL_PUSH_BUTTON, 390, 40, 20, 20, "Down" );
fl_set_object_callback( obj, react_to_button, 4 );
fl_set_button( obj, 1 );
fl_end_form( );
fdui->buttonattrib->fdui = fdui;
fl_set_border_width( old_bw );
return fdui;
}
|