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/ToggleB.h>
|
|
22 #include <Xm/ToggleBG.h>
|
|
23
|
|
24
|
|
25 Widget button1;
|
|
26
|
|
27
|
|
28 create_widget0( parent )
|
|
29 Widget parent;
|
|
30 {
|
|
31 Display *display = XtDisplay ( parent );
|
|
32 Widget children[10]; /* 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 widget4;
|
|
45 Widget widget5;
|
|
46 Widget widget6;
|
|
47 Widget widget7;
|
|
48 Widget widget8;
|
|
49 Widget widget9;
|
|
50 Widget widget10;
|
|
51 Widget widget11;
|
|
52 Widget widget12;
|
|
53 Widget widget13;
|
|
54 Widget widget14;
|
|
55 Widget widget15;
|
|
56 Widget widget16;
|
|
57 Widget widget17;
|
|
58 Widget widget18;
|
|
59 Widget widget19;
|
|
60 Widget widget20;
|
|
61 Widget widget21;
|
|
62 Widget widget22;
|
|
63 Widget widget23;
|
|
64 Widget widget24;
|
|
65 Widget widget25;
|
|
66
|
|
67 XtSetArg(al[ac], XmNallowShellResize, TRUE); ac++;
|
|
68 widget0 = XmCreateDialogShell ( parent, "dialog", al, ac );
|
|
69 ac = 0;
|
|
70 XtSetArg(al[ac], XmNautoUnmanage, FALSE); ac++;
|
|
71 widget1 = XmCreateForm ( widget0, "projectDisplayDialog", al, ac );
|
|
72 ac = 0;
|
|
73 XtSetArg(al[ac], XmNspacing, 13); ac++;
|
|
74 XtSetArg(al[ac], XmNorientation, XmHORIZONTAL); ac++;
|
|
75 XtSetArg(al[ac], XmNpacking, XmPACK_COLUMN); ac++;
|
|
76 XtSetArg(al[ac], XmNentryAlignment, XmALIGNMENT_CENTER); ac++;
|
|
77 XtSetArg(al[ac], XmNadjustLast, FALSE); ac++;
|
|
78 XtSetArg(al[ac], XmNisAligned, TRUE); ac++;
|
|
79 widget2 = XmCreateRowColumn ( widget1, "row", al, ac );
|
|
80 ac = 0;
|
|
81 XtSetArg(al[ac], XmNdefaultButtonShadowThickness, 1); ac++;
|
|
82 button1 = XmCreatePushButton ( widget2, "button1", al, ac );
|
|
83 ac = 0;
|
|
84 widget4 = XmCreatePushButton ( widget2, "button2", al, ac );
|
|
85 XtSetArg(al[ac], XmNmappedWhenManaged, FALSE); ac++;
|
|
86 widget5 = XmCreatePushButton ( widget2, "separator_button", al, ac );
|
|
87 ac = 0;
|
|
88 widget6 = XmCreatePushButton ( widget2, "button3", al, ac );
|
|
89 widget7 = XmCreateSeparator ( widget1, "widget7", al, ac );
|
|
90 XtSetArg(al[ac], XmNlabelType, XmPIXMAP); ac++;
|
|
91 widget8 = XmCreateLabel ( widget1, "dbox-question", al, ac );
|
|
92 ac = 0;
|
|
93 widget9 = XmCreateLabel ( widget1, "groupLabel", al, ac );
|
|
94 widget10 = XmCreateFrame ( widget1, "widget10", al, ac );
|
|
95 widget11 = XmCreateRadioBox ( widget10, "groupBox", al, ac );
|
|
96 widget12 = XmCreateToggleButtonGadget ( widget11, "groupType", al, ac );
|
|
97 widget13 = XmCreateToggleButtonGadget ( widget11, "groupDirectory", al, ac );
|
|
98 widget14 = XmCreateLabel ( widget1, "showLabel", al, ac );
|
|
99 widget15 = XmCreateFrame ( widget1, "widget15", al, ac );
|
|
100 widget16 = XmCreateRowColumn ( widget15, "widget16", al, ac );
|
|
101 widget17 = XmCreateToggleButton ( widget16, "showHeaders", al, ac );
|
|
102 widget18 = XmCreateToggleButton ( widget16, "showSources", al, ac );
|
|
103 widget19 = XmCreateToggleButton ( widget16, "showOthers", al, ac );
|
|
104 widget20 = XmCreateLabel ( widget1, "fileSetLabel", al, ac );
|
|
105 widget21 = XmCreateFrame ( widget1, "widget21", al, ac );
|
|
106 widget22 = XmCreateRadioBox ( widget21, "fileSetBox", al, ac );
|
|
107 widget23 = XmCreateToggleButtonGadget ( widget22, "fileSetOwn", al, ac );
|
|
108 widget24 = XmCreateToggleButtonGadget ( widget22, "fileSetUsed", al, ac );
|
|
109 XtSetArg(al[ac], XmNalignment, XmALIGNMENT_BEGINNING); ac++;
|
|
110 widget25 = XmCreateLabel ( widget1, "message", al, ac );
|
|
111 ac = 0;
|
|
112 XtSetArg(al[ac], XmNdefaultButton, button1); ac++;
|
|
113 XtSetValues ( widget1,al, ac );
|
|
114 ac = 0;
|
|
115
|
|
116 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_NONE); ac++;
|
|
117 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_FORM); ac++;
|
|
118 XtSetArg(al[ac], XmNbottomOffset, 13); ac++;
|
|
119 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_FORM); ac++;
|
|
120 XtSetArg(al[ac], XmNleftOffset, 13); ac++;
|
|
121 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_FORM); ac++;
|
|
122 XtSetArg(al[ac], XmNrightOffset, 13); ac++;
|
|
123 XtSetValues ( widget2,al, ac );
|
|
124 ac = 0;
|
|
125
|
|
126 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_NONE); ac++;
|
|
127 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_WIDGET); ac++;
|
|
128 XtSetArg(al[ac], XmNbottomOffset, 13); ac++;
|
|
129 XtSetArg(al[ac], XmNbottomWidget, widget2); ac++;
|
|
130 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_FORM); ac++;
|
|
131 XtSetArg(al[ac], XmNleftOffset, 0); ac++;
|
|
132 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_FORM); ac++;
|
|
133 XtSetArg(al[ac], XmNrightOffset, 0); ac++;
|
|
134 XtSetValues ( widget7,al, ac );
|
|
135 ac = 0;
|
|
136
|
|
137 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_FORM); ac++;
|
|
138 XtSetArg(al[ac], XmNtopOffset, 13); ac++;
|
|
139 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
140 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_FORM); ac++;
|
|
141 XtSetArg(al[ac], XmNleftOffset, 13); ac++;
|
|
142 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
143 XtSetValues ( widget8,al, ac );
|
|
144 ac = 0;
|
|
145
|
|
146 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_NONE); ac++;
|
|
147 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_WIDGET); ac++;
|
|
148 XtSetArg(al[ac], XmNbottomOffset, -6); ac++;
|
|
149 XtSetArg(al[ac], XmNbottomWidget, widget10); ac++;
|
|
150 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET); ac++;
|
|
151 XtSetArg(al[ac], XmNleftOffset, 6); ac++;
|
|
152 XtSetArg(al[ac], XmNleftWidget, widget10); ac++;
|
|
153 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
154 XtSetValues ( widget9,al, ac );
|
|
155 ac = 0;
|
|
156
|
|
157 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET); ac++;
|
|
158 XtSetArg(al[ac], XmNtopOffset, 0); ac++;
|
|
159 XtSetArg(al[ac], XmNtopWidget, widget21); ac++;
|
|
160 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
161 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
|
|
162 XtSetArg(al[ac], XmNleftOffset, 13); ac++;
|
|
163 XtSetArg(al[ac], XmNleftWidget, widget21); ac++;
|
|
164 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_FORM); ac++;
|
|
165 XtSetArg(al[ac], XmNrightOffset, 13); ac++;
|
|
166 XtSetValues ( widget10,al, ac );
|
|
167 ac = 0;
|
|
168
|
|
169 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_NONE); ac++;
|
|
170 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_WIDGET); ac++;
|
|
171 XtSetArg(al[ac], XmNbottomOffset, -6); ac++;
|
|
172 XtSetArg(al[ac], XmNbottomWidget, widget15); ac++;
|
|
173 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET); ac++;
|
|
174 XtSetArg(al[ac], XmNleftOffset, 6); ac++;
|
|
175 XtSetArg(al[ac], XmNleftWidget, widget15); ac++;
|
|
176 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
177 XtSetValues ( widget14,al, ac );
|
|
178 ac = 0;
|
|
179
|
|
180 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_NONE); ac++;
|
|
181 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_WIDGET); ac++;
|
|
182 XtSetArg(al[ac], XmNbottomOffset, 13); ac++;
|
|
183 XtSetArg(al[ac], XmNbottomWidget, widget7); ac++;
|
|
184 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
|
|
185 XtSetArg(al[ac], XmNleftOffset, 13); ac++;
|
|
186 XtSetArg(al[ac], XmNleftWidget, widget8); ac++;
|
|
187 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
188 XtSetValues ( widget15,al, ac );
|
|
189 ac = 0;
|
|
190
|
|
191 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_NONE); ac++;
|
|
192 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_WIDGET); ac++;
|
|
193 XtSetArg(al[ac], XmNbottomOffset, -6); ac++;
|
|
194 XtSetArg(al[ac], XmNbottomWidget, widget21); ac++;
|
|
195 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET); ac++;
|
|
196 XtSetArg(al[ac], XmNleftOffset, 6); ac++;
|
|
197 XtSetArg(al[ac], XmNleftWidget, widget21); ac++;
|
|
198 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
199 XtSetValues ( widget20,al, ac );
|
|
200 ac = 0;
|
|
201
|
|
202 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET); ac++;
|
|
203 XtSetArg(al[ac], XmNtopOffset, 0); ac++;
|
|
204 XtSetArg(al[ac], XmNtopWidget, widget15); ac++;
|
|
205 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_NONE); ac++;
|
|
206 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
|
|
207 XtSetArg(al[ac], XmNleftOffset, 13); ac++;
|
|
208 XtSetArg(al[ac], XmNleftWidget, widget15); ac++;
|
|
209 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_NONE); ac++;
|
|
210 XtSetValues ( widget21,al, ac );
|
|
211 ac = 0;
|
|
212
|
|
213 XtSetArg(al[ac], XmNtopAttachment, XmATTACH_FORM); ac++;
|
|
214 XtSetArg(al[ac], XmNtopOffset, 13); ac++;
|
|
215 XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_WIDGET); ac++;
|
|
216 XtSetArg(al[ac], XmNbottomOffset, 13); ac++;
|
|
217 XtSetArg(al[ac], XmNbottomWidget, widget14); ac++;
|
|
218 XtSetArg(al[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
|
|
219 XtSetArg(al[ac], XmNleftOffset, 13); ac++;
|
|
220 XtSetArg(al[ac], XmNleftWidget, widget8); ac++;
|
|
221 XtSetArg(al[ac], XmNrightAttachment, XmATTACH_FORM); ac++;
|
|
222 XtSetArg(al[ac], XmNrightOffset, 13); ac++;
|
|
223 XtSetValues ( widget25,al, ac );
|
|
224 ac = 0;
|
|
225 children[ac++] = button1;
|
|
226 children[ac++] = widget4;
|
|
227 children[ac++] = widget5;
|
|
228 children[ac++] = widget6;
|
|
229 XtManageChildren(children, ac);
|
|
230 ac = 0;
|
|
231 children[ac++] = widget12;
|
|
232 children[ac++] = widget13;
|
|
233 XtManageChildren(children, ac);
|
|
234 ac = 0;
|
|
235 children[ac++] = widget11;
|
|
236 XtManageChildren(children, ac);
|
|
237 ac = 0;
|
|
238 children[ac++] = widget17;
|
|
239 children[ac++] = widget18;
|
|
240 children[ac++] = widget19;
|
|
241 XtManageChildren(children, ac);
|
|
242 ac = 0;
|
|
243 children[ac++] = widget16;
|
|
244 XtManageChildren(children, ac);
|
|
245 ac = 0;
|
|
246 children[ac++] = widget23;
|
|
247 children[ac++] = widget24;
|
|
248 XtManageChildren(children, ac);
|
|
249 ac = 0;
|
|
250 children[ac++] = widget22;
|
|
251 XtManageChildren(children, ac);
|
|
252 ac = 0;
|
|
253 children[ac++] = widget2;
|
|
254 children[ac++] = widget7;
|
|
255 children[ac++] = widget8;
|
|
256 children[ac++] = widget9;
|
|
257 children[ac++] = widget10;
|
|
258 children[ac++] = widget14;
|
|
259 children[ac++] = widget15;
|
|
260 children[ac++] = widget20;
|
|
261 children[ac++] = widget21;
|
|
262 children[ac++] = widget25;
|
|
263 XtManageChildren(children, ac);
|
|
264 ac = 0;
|
|
265 }
|
|
266
|
|
267
|