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/PushB.h>
|
|
19 #include <Xm/RowColumn.h>
|
|
20 #include <Xm/Separator.h>
|
|
21 #include <Xm/TextF.h>
|
|
22 #include <Xm/ToggleB.h>
|
|
23 #include <Xm/ToggleBG.h>
|
|
24
|
|
25
|
|
26
|
|
27
|
|
28 create_widget0( parent )
|
|
29 Widget parent;
|
|
30 {
|
|
31 Display *display = XtDisplay ( parent );
|
|
32 Widget children[17]; /* Children to manage */
|
|
33 Arg al[64]; /* Arg List */
|
|
34 register int ac = 0; /* Arg Count */
|
|
35 char from_s [256]; /* For font list conversion */
|
|
36 XrmValue from_value, to_value; /* ditto */
|
|
37 int fg, bg; /* colour values for pixmaps */
|
|
38 XmString *list_items; /* For list items */
|
|
39 int list_item; /* Index for list_items */
|
|
40 XmString xmstrings[15]; /* temporary storage for XmStrings */
|
|
41 Widget widget0;
|
|
42 Widget widget1;
|
|
43 Widget widget2;
|
|
44 Widget widget3;
|
|
45 Widget widget4;
|
|
46 Widget widget5;
|
|
47 Widget widget6;
|
|
48 Widget widget7;
|
|
49 Widget widget8;
|
|
50 Widget widget9;
|
|
51 Widget widget10;
|
|
52 Widget widget11;
|
|
53 Widget widget12;
|
|
54 Widget widget13;
|
|
55 Widget widget14;
|
|
56 Widget widget15;
|
|
57 Widget widget16;
|
|
58 Widget widget17;
|
|
59 Widget widget18;
|
|
60 Widget widget19;
|
|
61 Widget widget20;
|
|
62 Widget widget21;
|
|
63 Widget widget22;
|
|
64
|
|
65 XtSetArg(al[ac], XmNallowShellResize, TRUE); ac++;
|
|
66 widget0 = XmCreateDialogShell ( parent, "widget0", al, ac );
|
|
67 ac = 0;
|
|
68 XtSetArg(al[ac], XmNshadowType, XmSHADOW_OUT); ac++;
|
|
69 widget1 = XmCreateFrame ( widget0, "lebrowserPanel", al, ac );
|
|
70 ac = 0;
|
|
71 XtSetArg(al[ac], XmNautoUnmanage, FALSE); ac++;
|
|
72 widget2 = XmCreateForm ( widget1, "panel", al, ac );
|
|
73 ac = 0;
|
|
74 widget3 = XmCreateLabel ( widget2, "nameLabel", al, ac );
|
|
75 XtSetArg(al[ac], XmNmarginHeight, 2); ac++;
|
|
76 XtSetArg(al[ac], XmNmarginWidth, 1); ac++;
|
|
77 widget4 = XmCreateTextField ( widget2, "nameText", al, ac );
|
|
78 ac = 0;
|
|
79 widget5 = XmCreateLabel ( widget2, "fileLabel", al, ac );
|
|
80 XtSetArg(al[ac], XmNmarginHeight, 2); ac++;
|
|
81 XtSetArg(al[ac], XmNmarginWidth, 1); ac++;
|
|
82 widget6 = XmCreateTextField ( widget2, "fileText", al, ac );
|
|
83 ac = 0;
|
|
84 widget7 = XmCreateLabel ( widget2, "projectLabel", al, ac );
|
|
85 XtSetArg(al[ac], XmNmarginHeight, 2); ac++;
|
|
86 XtSetArg(al[ac], XmNmarginWidth, 1); ac++;
|
|
87 widget8 = XmCreateTextField ( widget2, "projectText", al, ac );
|
|
88 ac = 0;
|
|
89 widget9 = XmCreateToggleButton ( widget2, "functions", al, ac );
|
|
90 widget10 = XmCreateToggleButton ( widget2, "classes", al, ac );
|
|
91 widget11 = XmCreateToggleButton ( widget2, "macros", al, ac );
|
|
92 widget12 = XmCreateToggleButton ( widget2, "variables", al, ac );
|
|
93 widget13 = XmCreateToggleButton ( widget2, "types", al, ac );
|
|
94 widget14 = XmCreateToggleButton ( widget2, "whereDeclared", al, ac );
|
|
95 widget15 = XmCreateToggleButton ( widget2, "verbose", al, ac );
|
|
96 widget16 = XmCreateLabel ( widget2, "separator", al, ac );
|
|
97 XtSetArg(al[ac], XmNmarginWidth, 0); ac++;
|
|
98 XtSetArg(al[ac], XmNmarginHeight, 0); ac++;
|
|
99 XtSetArg(al[ac], XmNorientation, XmHORIZONTAL); ac++;
|
|
100 widget17 = XmCreateRadioBox ( widget2, "nameStyle", al, ac );
|
|
101 ac = 0;
|
|
102 widget18 = XmCreateToggleButtonGadget ( widget17, "nameOnly", al, ac );
|
|
103 widget19 = XmCreateToggleButtonGadget ( widget17, "prototype", al, ac );
|
|
104 widget20 = XmCreateToggleButtonGadget ( widget17, "mangled", al, ac );
|
|
105 XtSetArg(al[ac], XmNwidth, 350); ac++;
|
|
106 widget21 = XmCreateSeparator ( widget2, "separator", al, ac );
|
|
107 ac = 0;
|
|
108 widget22 = XmCreatePushButton ( widget2, "apply", al, ac );
|
|
109
|
|
110 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_FORM); ac++;
|
|
111 XtSetArg(al[ac], XmNtopOffset, 5); ac++;
|
|
112 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
113 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_FORM); ac++;
|
|
114 XtSetArg(al[ac], XmNleftOffset, 2); ac++;
|
|
115 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
116 XtSetValues ( widget3,al, ac );
|
|
117 ac = 0;
|
|
118
|
|
119 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET); ac++;
|
|
120 XtSetArg(al[ac], XmNtopOffset, -4); ac++;
|
|
121 XtSetArg(al[ac], XmNtopWidget, widget3); ac++;
|
|
122 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
123 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
|
|
124 XtSetArg(al[ac], XmNleftOffset, 2); ac++;
|
|
125 XtSetArg(al[ac], XmNleftWidget, widget3); ac++;
|
|
126 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_WIDGET); ac++;
|
|
127 XtSetArg(al[ac], XmNrightOffset, 2); ac++;
|
|
128 XtSetArg(al[ac], XmNrightWidget, widget22); ac++;
|
|
129 XtSetValues ( widget4,al, ac );
|
|
130 ac = 0;
|
|
131
|
|
132 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET); ac++;
|
|
133 XtSetArg(al[ac], XmNtopOffset, 4); ac++;
|
|
134 XtSetArg(al[ac], XmNtopWidget, widget6); ac++;
|
|
135 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
136 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_FORM); ac++;
|
|
137 XtSetArg(al[ac], XmNleftOffset, 2); ac++;
|
|
138 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
139 XtSetValues ( widget5,al, ac );
|
|
140 ac = 0;
|
|
141
|
|
142 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
|
|
143 XtSetArg(al[ac], XmNtopOffset, 2); ac++;
|
|
144 XtSetArg(al[ac], XmNtopWidget, widget4); ac++;
|
|
145 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
146 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET); ac++;
|
|
147 XtSetArg(al[ac], XmNleftOffset, 0); ac++;
|
|
148 XtSetArg(al[ac], XmNleftWidget, widget4); ac++;
|
|
149 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_WIDGET); ac++;
|
|
150 XtSetArg(al[ac], XmNrightOffset, 2); ac++;
|
|
151 XtSetArg(al[ac], XmNrightWidget, widget22); ac++;
|
|
152 XtSetValues ( widget6,al, ac );
|
|
153 ac = 0;
|
|
154
|
|
155 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET); ac++;
|
|
156 XtSetArg(al[ac], XmNtopOffset, 4); ac++;
|
|
157 XtSetArg(al[ac], XmNtopWidget, widget8); ac++;
|
|
158 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
159 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_FORM); ac++;
|
|
160 XtSetArg(al[ac], XmNleftOffset, 2); ac++;
|
|
161 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
162 XtSetValues ( widget7,al, ac );
|
|
163 ac = 0;
|
|
164
|
|
165 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
|
|
166 XtSetArg(al[ac], XmNtopOffset, 2); ac++;
|
|
167 XtSetArg(al[ac], XmNtopWidget, widget6); ac++;
|
|
168 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
169 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET); ac++;
|
|
170 XtSetArg(al[ac], XmNleftOffset, 0); ac++;
|
|
171 XtSetArg(al[ac], XmNleftWidget, widget6); ac++;
|
|
172 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_WIDGET); ac++;
|
|
173 XtSetArg(al[ac], XmNrightOffset, 2); ac++;
|
|
174 XtSetArg(al[ac], XmNrightWidget, widget22); ac++;
|
|
175 XtSetValues ( widget8,al, ac );
|
|
176 ac = 0;
|
|
177
|
|
178 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
|
|
179 XtSetArg(al[ac], XmNtopOffset, 2); ac++;
|
|
180 XtSetArg(al[ac], XmNtopWidget, widget8); ac++;
|
|
181 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
182 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_FORM); ac++;
|
|
183 XtSetArg(al[ac], XmNleftOffset, 2); ac++;
|
|
184 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
185 XtSetValues ( widget9,al, ac );
|
|
186 ac = 0;
|
|
187
|
|
188 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
|
|
189 XtSetArg(al[ac], XmNtopOffset, 2); ac++;
|
|
190 XtSetArg(al[ac], XmNtopWidget, widget8); ac++;
|
|
191 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
192 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
|
|
193 XtSetArg(al[ac], XmNleftOffset, 2); ac++;
|
|
194 XtSetArg(al[ac], XmNleftWidget, widget9); ac++;
|
|
195 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
196 XtSetValues ( widget10,al, ac );
|
|
197 ac = 0;
|
|
198
|
|
199 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
|
|
200 XtSetArg(al[ac], XmNtopOffset, 2); ac++;
|
|
201 XtSetArg(al[ac], XmNtopWidget, widget8); ac++;
|
|
202 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
203 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
|
|
204 XtSetArg(al[ac], XmNleftOffset, 2); ac++;
|
|
205 XtSetArg(al[ac], XmNleftWidget, widget10); ac++;
|
|
206 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
207 XtSetValues ( widget11,al, ac );
|
|
208 ac = 0;
|
|
209
|
|
210 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
|
|
211 XtSetArg(al[ac], XmNtopOffset, 2); ac++;
|
|
212 XtSetArg(al[ac], XmNtopWidget, widget8); ac++;
|
|
213 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
214 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
|
|
215 XtSetArg(al[ac], XmNleftOffset, 2); ac++;
|
|
216 XtSetArg(al[ac], XmNleftWidget, widget11); ac++;
|
|
217 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
218 XtSetValues ( widget12,al, ac );
|
|
219 ac = 0;
|
|
220
|
|
221 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
|
|
222 XtSetArg(al[ac], XmNtopOffset, 2); ac++;
|
|
223 XtSetArg(al[ac], XmNtopWidget, widget8); ac++;
|
|
224 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
225 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
|
|
226 XtSetArg(al[ac], XmNleftOffset, 2); ac++;
|
|
227 XtSetArg(al[ac], XmNleftWidget, widget12); ac++;
|
|
228 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
229 XtSetValues ( widget13,al, ac );
|
|
230 ac = 0;
|
|
231
|
|
232 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
|
|
233 XtSetArg(al[ac], XmNtopOffset, 2); ac++;
|
|
234 XtSetArg(al[ac], XmNtopWidget, widget21); ac++;
|
|
235 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
236 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_FORM); ac++;
|
|
237 XtSetArg(al[ac], XmNleftOffset, 2); ac++;
|
|
238 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
239 XtSetValues ( widget14,al, ac );
|
|
240 ac = 0;
|
|
241
|
|
242 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
|
|
243 XtSetArg(al[ac], XmNtopOffset, 2); ac++;
|
|
244 XtSetArg(al[ac], XmNtopWidget, widget21); ac++;
|
|
245 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
246 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
|
|
247 XtSetArg(al[ac], XmNleftOffset, 2); ac++;
|
|
248 XtSetArg(al[ac], XmNleftWidget, widget14); ac++;
|
|
249 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
250 XtSetValues ( widget15,al, ac );
|
|
251 ac = 0;
|
|
252
|
|
253 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
|
|
254 XtSetArg(al[ac], XmNtopOffset, 2); ac++;
|
|
255 XtSetArg(al[ac], XmNtopWidget, widget21); ac++;
|
|
256 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
257 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
|
|
258 XtSetArg(al[ac], XmNleftOffset, 2); ac++;
|
|
259 XtSetArg(al[ac], XmNleftWidget, widget15); ac++;
|
|
260 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
261 XtSetValues ( widget16,al, ac );
|
|
262 ac = 0;
|
|
263
|
|
264 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
|
|
265 XtSetArg(al[ac], XmNtopOffset, 2); ac++;
|
|
266 XtSetArg(al[ac], XmNtopWidget, widget21); ac++;
|
|
267 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
268 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
|
|
269 XtSetArg(al[ac], XmNleftOffset, 2); ac++;
|
|
270 XtSetArg(al[ac], XmNleftWidget, widget16); ac++;
|
|
271 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
272 XtSetValues ( widget17,al, ac );
|
|
273 ac = 0;
|
|
274
|
|
275 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
|
|
276 XtSetArg(al[ac], XmNtopOffset, 0); ac++;
|
|
277 XtSetArg(al[ac], XmNtopWidget, widget9); ac++;
|
|
278 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
279 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_FORM); ac++;
|
|
280 XtSetArg(al[ac], XmNleftOffset, 0); ac++;
|
|
281 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_FORM); ac++;
|
|
282 XtSetArg(al[ac], XmNrightOffset, 0); ac++;
|
|
283 XtSetValues ( widget21,al, ac );
|
|
284 ac = 0;
|
|
285
|
|
286 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
|
|
287 XtSetArg(al[ac], XmNtopOffset, -4); ac++;
|
|
288 XtSetArg(al[ac], XmNtopWidget, widget3); ac++;
|
|
289 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
290 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_NONE); ac++;
|
|
291 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_FORM); ac++;
|
|
292 XtSetArg(al[ac], XmNrightOffset, 2); ac++;
|
|
293 XtSetValues ( widget22,al, ac );
|
|
294 ac = 0;
|
|
295 children[ac++] = widget18;
|
|
296 children[ac++] = widget19;
|
|
297 children[ac++] = widget20;
|
|
298 XtManageChildren(children, ac);
|
|
299 ac = 0;
|
|
300 children[ac++] = widget3;
|
|
301 children[ac++] = widget4;
|
|
302 children[ac++] = widget5;
|
|
303 children[ac++] = widget6;
|
|
304 children[ac++] = widget7;
|
|
305 children[ac++] = widget8;
|
|
306 children[ac++] = widget9;
|
|
307 children[ac++] = widget10;
|
|
308 children[ac++] = widget11;
|
|
309 children[ac++] = widget12;
|
|
310 children[ac++] = widget13;
|
|
311 children[ac++] = widget14;
|
|
312 children[ac++] = widget15;
|
|
313 children[ac++] = widget16;
|
|
314 children[ac++] = widget17;
|
|
315 children[ac++] = widget21;
|
|
316 children[ac++] = widget22;
|
|
317 XtManageChildren(children, ac);
|
|
318 ac = 0;
|
|
319 children[ac++] = widget2;
|
|
320 XtManageChildren(children, ac);
|
|
321 ac = 0;
|
|
322 }
|
|
323
|
|
324
|