0
|
1
|
|
2 /*
|
|
3 ** Generated by X-Designer
|
|
4 */
|
|
5 /*
|
|
6 **LIBS: -lXm -lXt -lX11
|
|
7 */
|
|
8
|
|
9 #include <X11/Xatom.h>
|
|
10 #include <X11/Intrinsic.h>
|
|
11 #include <X11/Shell.h>
|
|
12
|
|
13 #include <Xm/Xm.h>
|
|
14 #include <Xm/DialogS.h>
|
|
15 #include <Xm/Form.h>
|
|
16 #include <Xm/Frame.h>
|
|
17 #include <Xm/Label.h>
|
|
18 #include <Xm/RowColumn.h>
|
|
19 #include <Xm/ToggleBG.h>
|
|
20
|
|
21
|
|
22
|
|
23
|
|
24 create_widget0( parent )
|
|
25 Widget parent;
|
|
26 {
|
|
27 Display *display = XtDisplay ( parent );
|
|
28 Widget children[4]; /* Children to manage */
|
|
29 Arg al[64]; /* Arg List */
|
|
30 register int ac = 0; /* Arg Count */
|
|
31 char from_s [256]; /* For font list conversion */
|
|
32 XrmValue from_value, to_value; /* ditto */
|
|
33 int fg, bg; /* colour values for pixmaps */
|
|
34 XmString *list_items; /* For list items */
|
|
35 int list_item; /* Index for list_items */
|
|
36 XmString xmstrings[15]; /* temporary storage for XmStrings */
|
|
37 Widget widget0;
|
|
38 Widget widget1;
|
|
39 Widget widget2;
|
|
40 Widget widget3;
|
|
41 Widget widget4;
|
|
42 Widget widget5;
|
|
43 Widget widget6;
|
|
44 Widget widget7;
|
|
45 Widget widget8;
|
|
46 Widget widget9;
|
|
47 Widget widget10;
|
|
48 Widget widget11;
|
|
49
|
|
50 XtSetArg(al[ac], XmNallowShellResize, TRUE); ac++;
|
|
51 widget0 = XmCreateDialogShell ( parent, "widget0", al, ac );
|
|
52 ac = 0;
|
|
53 XtSetArg(al[ac], XmNshadowType, XmSHADOW_OUT); ac++;
|
|
54 widget1 = XmCreateFrame ( widget0, "project_psheet", al, ac );
|
|
55 ac = 0;
|
|
56 XtSetArg(al[ac], XmNautoUnmanage, FALSE); ac++;
|
|
57 widget2 = XmCreateForm ( widget1, "widget2", al, ac );
|
|
58 ac = 0;
|
|
59 XtSetArg(al[ac], XmNorientation, XmHORIZONTAL); ac++;
|
|
60 widget3 = XmCreateRadioBox ( widget2, "sourceinforadiobox", al, ac );
|
|
61 ac = 0;
|
|
62 widget4 = XmCreateToggleButtonGadget ( widget3, "nameinfo", al, ac );
|
|
63 widget5 = XmCreateToggleButtonGadget ( widget3, "longinfo", al, ac );
|
|
64 widget6 = XmCreateToggleButtonGadget ( widget3, "compileinfo", al, ac );
|
|
65 XtSetArg(al[ac], XmNorientation, XmHORIZONTAL); ac++;
|
|
66 widget7 = XmCreateRadioBox ( widget2, "membersortingradiobox", al, ac );
|
|
67 ac = 0;
|
|
68 widget8 = XmCreateToggleButtonGadget ( widget7, "alphaorder", al, ac );
|
|
69 widget9 = XmCreateToggleButtonGadget ( widget7, "linkorder", al, ac );
|
|
70 widget10 = XmCreateLabel ( widget2, "project", al, ac );
|
|
71 widget11 = XmCreateLabel ( widget2, "name", al, ac );
|
|
72
|
|
73 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
|
|
74 XtSetArg(al[ac], XmNtopWidget, widget11); ac++;
|
|
75 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
76 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
|
|
77 XtSetArg(al[ac], XmNleftWidget, widget10); ac++;
|
|
78 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_FORM); ac++;
|
|
79 XtSetArg(al[ac], XmNrightOffset, 2); ac++;
|
|
80 XtSetValues ( widget3,al, ac );
|
|
81 ac = 0;
|
|
82
|
|
83 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
|
|
84 XtSetArg(al[ac], XmNtopOffset, 2); ac++;
|
|
85 XtSetArg(al[ac], XmNtopWidget, widget3); ac++;
|
|
86 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_FORM); ac++;
|
|
87 XtSetArg(al[ac], XmNbottomOffset, 2); ac++;
|
|
88 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET); ac++;
|
|
89 XtSetArg(al[ac], XmNleftOffset, 0); ac++;
|
|
90 XtSetArg(al[ac], XmNleftWidget, widget3); ac++;
|
|
91 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
92 XtSetValues ( widget7,al, ac );
|
|
93 ac = 0;
|
|
94
|
|
95 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_FORM); ac++;
|
|
96 XtSetArg(al[ac], XmNtopOffset, 2); ac++;
|
|
97 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
98 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_FORM); ac++;
|
|
99 XtSetArg(al[ac], XmNleftOffset, 2); ac++;
|
|
100 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
101 XtSetValues ( widget10,al, ac );
|
|
102 ac = 0;
|
|
103
|
|
104 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET); ac++;
|
|
105 XtSetArg(al[ac], XmNtopOffset, 0); ac++;
|
|
106 XtSetArg(al[ac], XmNtopWidget, widget10); ac++;
|
|
107 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
108 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
|
|
109 XtSetArg(al[ac], XmNleftOffset, 2); ac++;
|
|
110 XtSetArg(al[ac], XmNleftWidget, widget10); ac++;
|
|
111 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
112 XtSetValues ( widget11,al, ac );
|
|
113 ac = 0;
|
|
114 children[ac++] = widget4;
|
|
115 children[ac++] = widget5;
|
|
116 children[ac++] = widget6;
|
|
117 XtManageChildren(children, ac);
|
|
118 ac = 0;
|
|
119 children[ac++] = widget8;
|
|
120 children[ac++] = widget9;
|
|
121 XtManageChildren(children, ac);
|
|
122 ac = 0;
|
|
123 children[ac++] = widget3;
|
|
124 children[ac++] = widget7;
|
|
125 children[ac++] = widget10;
|
|
126 children[ac++] = widget11;
|
|
127 XtManageChildren(children, ac);
|
|
128 ac = 0;
|
|
129 children[ac++] = widget2;
|
|
130 XtManageChildren(children, ac);
|
|
131 ac = 0;
|
|
132 }
|
|
133
|
|
134
|