File: ui_objs.c

package info (click to toggle)
libforms 1.0.93sp1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 11,548 kB
  • ctags: 9,107
  • sloc: ansic: 97,227; sh: 9,236; makefile: 858
file content (154 lines) | stat: -rw-r--r-- 4,665 bytes parent folder | download | duplicates (2)
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/* Form definition file generated by fdesign. */

#include <stdlib.h>
#include "ui_objs.h"


/***************************************
 ***************************************/

FD_buttonform *
create_form_buttonform( void )
{
    FL_OBJECT *obj;
    FD_buttonform *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->buttonform = fl_bgn_form( FL_NO_BOX, 581, 51 );

    obj = fl_add_box( FL_FLAT_BOX, 0, 0, 581, 51, "" );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 20, 3, 30, 30, "button" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 60, 3, 30, 30, "round" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 100, 3, 30, 30, "round3d" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 140, 3, 30, 30, "check" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 180, 3, 30, 30, "light" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 220, 3, 30, 30, "bitmap" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 260, 3, 30, 30, "pixmap" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 300, 3, 30, 30, "scroll" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    fl_end_form( );

    fdui->buttonform->fdui = fdui;
    fl_set_border_width( old_bw );

    return fdui;
}


/***************************************
 ***************************************/

FD_valuatorform *
create_form_valuatorform( void )
{
    FL_OBJECT *obj;
    FD_valuatorform *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->valuatorform = fl_bgn_form( FL_NO_BOX, 581, 51 );

    obj = fl_add_box( FL_FLAT_BOX, 0, 0, 581, 51, "" );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 20, 5, 30, 30, "slider" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 66, 5, 30, 30, "valslider" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 112, 5, 30, 30, "scrollbar" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 158, 5, 30, 30, "dial" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 204, 5, 30, 30, "counter" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 250, 5, 30, 30, "positioner" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    fl_end_form( );

    fdui->valuatorform->fdui = fdui;
    fl_set_border_width( old_bw );

    return fdui;
}


/***************************************
 ***************************************/

FD_staticform *
create_form_staticform( void )
{
    FL_OBJECT *obj;
    FD_staticform *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->staticform = fl_bgn_form( FL_NO_BOX, 581, 51 );

    obj = fl_add_box( FL_FLAT_BOX, 0, 0, 581, 51, "" );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 20, 3, 30, 30, "box" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 70, 3, 30, 30, "frame" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 120, 3, 30, 30, "labelframe" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 170, 3, 30, 30, "text" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 220, 3, 30, 30, "bitmap" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 270, 3, 30, 30, "pixmap" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 320, 3, 30, 30, "chart" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 370, 3, 30, 30, "clock" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    fl_end_form( );

    fdui->staticform->fdui = fdui;
    fl_set_border_width( old_bw );

    return fdui;
}