File: ui_objs.c

package info (click to toggle)
libforms1 1.0-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 6,648 kB
  • ctags: 14,351
  • sloc: ansic: 90,441; makefile: 9,902; sh: 8
file content (107 lines) | stat: -rw-r--r-- 3,858 bytes parent folder | download | duplicates (3)
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
/*
 *
 * This file is part of XForms.
 *
 * XForms is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1, or
 * (at your option) any later version.
 *
 * XForms is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with XForms; see the file COPYING.  If not, write to
 * the Free Software Foundation, 59 Temple Place - Suite 330, Boston,
 * MA 02111-1307, USA.
 *
 */


/* Form definition file generated with fdesign. */

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

FD_buttonform *create_form_buttonform(void)
{
  FL_OBJECT *obj;
  FD_buttonform *fdui = (FD_buttonform *) fl_calloc(1, sizeof(*fdui));
  int old_bw = fl_get_border_width();

  fl_set_border_width(-2);
  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");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,60,3,30,30,"round");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,100,3,30,30,"round3d");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,140,3,30,30,"check");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,180,3,30,30,"light");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,220,3,30,30,"bitmap");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,260,3,30,30,"pixmap");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,300,3,30,30,"scroll");
  fl_end_form();

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

  return fdui;
}
/*---------------------------------------*/

FD_valuatorform *create_form_valuatorform(void)
{
  FL_OBJECT *obj;
  FD_valuatorform *fdui = (FD_valuatorform *) fl_calloc(1, sizeof(*fdui));
  int old_bw = fl_get_border_width();

  fl_set_border_width(-2);
  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");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,66,5,30,30,"valslider");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,112,5,30,30,"scrollbar");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,158,5,30,30,"dial");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,204,5,30,30,"counter");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,250,5,30,30,"positioner");
  fl_end_form();

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

  return fdui;
}
/*---------------------------------------*/

FD_staticform *create_form_staticform(void)
{
  FL_OBJECT *obj;
  FD_staticform *fdui = (FD_staticform *) fl_calloc(1, sizeof(*fdui));
  int old_bw = fl_get_border_width();

  fl_set_border_width(-2);
  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");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,70,3,30,30,"frame");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,120,3,30,30,"labelframe");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,170,3,30,30,"text");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,220,3,30,30,"bitmap");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,270,3,30,30,"pixmap");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,320,3,30,30,"chart");
  obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON,370,3,30,30,"clock");
  fl_end_form();

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

  return fdui;
}
/*---------------------------------------*/