File: xm_widgets-shell.ads

package info (click to toggle)
libadabindx 0.7.2-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,136 kB
  • ctags: 32
  • sloc: ada: 35,597; makefile: 556; sh: 10
file content (529 lines) | stat: -rw-r--r-- 24,152 bytes parent folder | download
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
-------------------------------------------------------------------------------
--                                                                           --
--  Ada Interface to the X Window System and Motif(tm)/Lesstif               --
--  Copyright (c) 1996-2000 Hans-Frieder Vogt                                --
--                                                                           --
--  Adabindx is free software; you can redistribute it and/or modify it      --
--  under the terms of the GNU General Public License as published by the    --
--  Free Software Foundation; either version 2 of the License, or (at your   --
--  option) any later version.                                               --
--                                                                           --
--  This program 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 General Public License for more details.                     --
--                                                                           --
--  You should have received a copy of the GNU General Public License        --
--  along with this program; if not, write to the                            --
--  Free Software Foundation, Inc.,                                          --
--  59 Temple Place - Suite 330,                                             --
--  Boston, MA 02111-1307, USA.                                              --
--                                                                           --
--  As a special exception, if other files instantiate generics from this    --
--  unit, or you link this unit with other files to produce an executable,   --
--  this unit does not by itself cause the resulting executable to be        --
--  covered by the GNU General Public License. This exception does not       --
--  however invalidate any other reasons why the executable file might be    --
--  covered by the GNU General Public License.                               --
--                                                                           --
--  X Window System is copyrighted by the X Consortium                       --
--  Motif(tm)       is copyrighted by the Open Software Foundation, Inc.     --
--                  and by The Open Group                                    --
--                                                                           --
--                                                                           --
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
--
-- HISTORY:
--          June 20, 1998 begin of history
--          July 07, 1998 HFVogt: changed type names to Initial_Window_State,
--                                Audible_Warning_Kind
--
-------------------------------------------------------------------------------

with X_lib.Property,
     X_Toolkit.Shell;
package Xm_Widgets.Shell is


-- ----------------------------------------------------------------------------
--
--  constants representing widget classes
--

   Xm_Dialog_Shell_Widget_Class        : constant Widget_Class;
   Xm_Drag_Over_Shell_Widget_Class     : constant Widget_Class;
-- UseMotif2.0 Motif2.1 Lesstif
   Xm_Grab_Shell_Widget_Class          : constant Widget_Class;
-- EndMotif2.0 Motif2.1 Lesstif
   Xm_Menu_Shell_Widget_Class          : constant Widget_Class;
   Xm_Vendor_Shell_Widget_Class        : constant Widget_Class;

-- ----------------------------------------------------------------------------
--
--  convenience functions for creating widgets
--

   function Xm_Create_Dialog_Shell
     (Parent   : in  Widget;
      Name     : in  String;
      Arglist  : in  Arg_List := Null_Arg_List)
      return Widget;

-- UseMotif2.0 Motif2.1 Lesstif
   function Xm_Create_Grab_Shell
     (Parent   : in  Widget;
      Name     : in  String;
      Arglist  : in  Arg_List := Null_Arg_List)
      return Widget;
-- EndMotif2.0 Motif2.1 Lesstif

   function Xm_Create_Menu_Shell
     (Parent   : in  Widget;
      Name     : in  String;
      Arglist  : in  Arg_List := Null_Arg_List)
      return Widget;


   function Xm_Is_Dialog_Shell    (W : in Widget) return Boolean;
   function Xm_Is_Drag_Over_Shell (W : in Widget) return Boolean;
   function Xm_Is_Menu_Shell      (W : in Widget) return Boolean;
-- UseMotif2.0 Motif2.1 Lesstif
   function Xm_Is_Grab_Shell      (W : in Widget) return Boolean;
-- EndMotif2.0 Motif2.1 Lesstif
   function Xm_Is_Vendor_Shell    (W : in Widget) return Boolean;

   function Xm_Is_Motif_WM_Running (Shell : in Widget) return Boolean;


   -- -------------------------------------------------------------------------
   --
   --  new resource strings
   --

   -- -------------------------------------------------------------------------
   --
   --  Shell
   --
   Xm_N_Allow_Shell_Resize      : constant Xt_N_Resource_String;
   Xm_N_Create_Popup_Child_Proc : constant Xt_N_Resource_String;
   Xm_N_Geometry                : constant Xt_N_Resource_String;
   Xm_N_Override_Redirect       : constant Xt_N_Resource_String;
   Xm_N_Popdown_Callback        : constant Xt_N_Resource_String;
   Xm_N_Popup_Callback          : constant Xt_N_Resource_String;
   Xm_N_Save_Under              : constant Xt_N_Resource_String;
   Xm_N_Visual                  : constant Xt_N_Resource_String;


   -- -------------------------------------------------------------------------
   --
   --  Menu Shell
   --
   Xm_N_Button_Font_List       : constant Xt_N_Resource_String;
-- UseMotif2.0 Motif2.1 Lesstif
   Xm_N_Button_Render_Table    : constant Xt_N_Resource_String;
-- EndMotif2.0 Motif2.1 Lesstif
   Xm_N_Default_Font_List      : constant Xt_N_Resource_String;
   Xm_N_Label_Font_List        : constant Xt_N_Resource_String;
-- UseMotif2.0 Motif2.1 Lesstif
   Xm_N_Label_Render_Table     : constant Xt_N_Resource_String;
   Xm_N_Layout_Direction       : constant Xt_N_Resource_String;
-- EndMotif2.0 Motif2.1 Lesstif


   -- -------------------------------------------------------------------------
   --
   --  WM Shell
   --
   Xm_N_Base_Height            : constant Xt_N_Resource_String;
   Xm_N_Base_Width             : constant Xt_N_Resource_String;
   Xm_N_Height_Inc             : constant Xt_N_Resource_String;
   Xm_N_Icon_Mask              : constant Xt_N_Resource_String;
   Xm_N_Icon_Pixmap            : constant Xt_N_Resource_String;
   Xm_N_Icon_Window            : constant Xt_N_Resource_String;
   Xm_N_Icon_X                 : constant Xt_N_Resource_String;
   Xm_N_Icon_Y                 : constant Xt_N_Resource_String;

   -- for Xm_N_Initial_State use a value of Initial_State
   --
   Xm_N_Initial_State          : constant Xt_N_Resource_String;

   subtype Initial_Window_State is
      X_Lib.Property.Window_State range X_Lib.Property.Normal .. X_Lib.Property.Iconic;

   procedure Append_Set (List  : in out Arg_List;
                         Name  : in     Xt_N_Resource_String;
                         Value : in     Initial_Window_State);

   procedure Append_Get (List  : in out Arg_List;
                         Name  : in     Xt_N_Resource_String;
                         Value :    out Initial_Window_State);
   pragma Convention (C, Append_Get);


   Xm_N_Input                  : constant Xt_N_Resource_String;
   Xm_N_Max_Aspect_X           : constant Xt_N_Resource_String;
   Xm_N_Max_Aspect_Y           : constant Xt_N_Resource_String;
   Xm_N_Max_Height             : constant Xt_N_Resource_String;
   Xm_N_Max_Width              : constant Xt_N_Resource_String;
   Xm_N_Min_Aspect_X           : constant Xt_N_Resource_String;
   Xm_N_Min_Aspect_Y           : constant Xt_N_Resource_String;
   Xm_N_Min_Height             : constant Xt_N_Resource_String;
   Xm_N_Min_Width              : constant Xt_N_Resource_String;
   Xm_N_Title                  : constant Xt_N_Resource_String;
   Xm_N_Title_Encoding         : constant Xt_N_Resource_String;
   Xm_N_Transient              : constant Xt_N_Resource_String;
   Xm_N_Wait_For_WM            : constant Xt_N_Resource_String;
   Xm_N_Width_Inc              : constant Xt_N_Resource_String;
   Xm_N_Win_Gravity            : constant Xt_N_Resource_String;
   Xm_N_Window_Group           : constant Xt_N_Resource_String;
   Xm_N_WM_Timeout             : constant Xt_N_Resource_String;


   -- -------------------------------------------------------------------------
   --
   --  Vendor Shell
   --
   Xm_N_Audible_Warning        : constant Xt_N_Resource_String;

   type Audible_Warning_Kind is (None, Bell);

   procedure Append_Set (List  : in out Arg_List;
                         Name  : in     Xt_N_Resource_String;
                         Value : in     Audible_Warning_Kind);

   procedure Append_Get (List  : in out Arg_List;
                         Name  : in     Xt_N_Resource_String;
                         Value : out    Audible_Warning_Kind);
   pragma Convention (C, Append_Get);


   -- Xm_N_Button_Font_List       : constant Xt_N_Resource_String;
   -- Xm_N_Button_Render_Table    : constant Xt_N_Resource_String;
   -- Xm_N_Default_Font_List      : constant Xt_N_Resource_String;
   Xm_N_Delete_Response        : constant Xt_N_Resource_String;

   type Delete_Response is (Destroy, Unmap, Do_Nothing);

   procedure Append_Set (List  : in out Arg_List;
                         Name  : in     Xt_N_Resource_String;
                         Value : in     Delete_Response);

   procedure Append_Get (List  : in out Arg_List;
                         Name  : in     Xt_N_Resource_String;
                         Value : out    Delete_Response);
   pragma Convention (C, Append_Get);

   Xm_N_Input_Method           : constant Xt_N_Resource_String;
-- UseMotif2.0 Motif2.1 Lesstif
   Xm_N_Input_Policy           : constant Xt_N_Resource_String;

   type Input_Policy is (Per_Shell, Per_Widget, Inherit_Policy);

   procedure Append_Set (List  : in out Arg_List;
                         Name  : in     Xt_N_Resource_String;
                         Value : in     Input_Policy);

   procedure Append_Get (List  : in out Arg_List;
                         Name  : in     Xt_N_Resource_String;
                         Value : out    Input_Policy);
   pragma Convention (C, Append_Get);

-- EndMotif2.0 Motif2.1 Lesstif

   Xm_N_Keyboard_Focus_Policy  : constant Xt_N_Resource_String;

   type Keyboard_Focus_Policy is (Explicit, Pointer);

   procedure Append_Set (List  : in out Arg_List;
                         Name  : in     Xt_N_Resource_String;
                         Value : in     Keyboard_Focus_Policy);

   procedure Append_Get (List  : in out Arg_List;
                         Name  : in     Xt_N_Resource_String;
                         Value : out    Keyboard_Focus_Policy);
   pragma Convention (C, Append_Get);

   -- Xm_N_Label_Font_List        : constant Xt_N_Resource_String;
   -- Xm_N_Label_Render_Table     : constant Xt_N_Resource_String;
   -- Xm_N_Layout_Direction       : constant Xt_N_Resource_String;
   Xm_N_MWM_Decorations        : constant Xt_N_Resource_String;
   Xm_N_MWM_Functions          : constant Xt_N_Resource_String;
   Xm_N_MWM_Input_Mode         : constant Xt_N_Resource_String;
   Xm_N_MWM_Menu               : constant Xt_N_Resource_String;
   Xm_N_Preedit_Type           : constant Xt_N_Resource_String;
   Xm_N_Shell_Unit_Type        : constant Xt_N_Resource_String;
   Xm_N_Text_Font_List         : constant Xt_N_Resource_String;
   Xm_N_Text_Render_Table      : constant Xt_N_Resource_String;
-- UseMotif2.0 Motif2.1 Lesstif
   Xm_N_Unit_Type              : constant Xt_N_Resource_String;
-- EndMotif2.0 Motif2.1 Lesstif
   Xm_N_Use_Async_Geometry     : constant Xt_N_Resource_String;


   -- -------------------------------------------------------------------------
   --
   --  TransientShell
   --
   Xm_N_Transient_For          : constant Xt_N_Resource_String;


   -- -------------------------------------------------------------------------
   --
   --  TopLevelShell
   --
   Xm_N_Iconic                 : constant Xt_N_Resource_String;
   Xm_N_Icon_Name              : constant Xt_N_Resource_String;
   Xm_N_Icon_Name_Encoding     : constant Xt_N_Resource_String;


   -- -------------------------------------------------------------------------
   --
   --  ApplicationShell
   --
   Xm_N_Argc                   : constant Xt_N_Resource_String;
   Xm_N_Argv                   : constant Xt_N_Resource_String;




private

   for Audible_Warning_Kind use (None => 0, Bell => 1);
   for Audible_Warning_Kind'Size use Interfaces.C.unsigned_char'Size;

   for Delete_Response use (Destroy => 0, Unmap => 1, Do_Nothing => 2);
   for Delete_Response'Size use Interfaces.C.unsigned_char'Size;

   for Keyboard_Focus_Policy use (Explicit => 0, Pointer => 1);
   for Keyboard_Focus_Policy'Size use Interfaces.C.unsigned_char'Size;

-- UseMotif2.0 Motif2.1 Lesstif
   for Input_Policy use (Per_Shell => 0, Per_Widget => 1, Inherit_Policy => 255);
   for Input_Policy'Size use Interfaces.C.unsigned_char'Size;
-- EndMotif2.0 Motif2.1 Lesstif

   -- a workaround for gnat apparently not (yet) being able to import
   -- constants
   c_const_Xm_Dialog_Shell_Widget_Class        : Widget_Class;
   c_const_Xm_Drag_Over_Shell_Widget_Class     : Widget_Class;
-- UseMotif2.0 Motif2.1 Lesstif
   c_const_Xm_Grab_Shell_Widget_Class          : Widget_Class;
-- EndMotif2.0 Motif2.1 Lesstif
   c_const_Xm_Menu_Shell_Widget_Class          : Widget_Class;
   c_const_Xm_Vendor_Shell_Widget_Class        : Widget_Class;

   pragma Import (C, c_const_Xm_Dialog_Shell_Widget_Class, "xmDialogShellWidgetClass");
   pragma Import (C, c_const_Xm_Drag_Over_Shell_Widget_Class, "xmDragOverShellWidgetClass");
-- UseMotif2.0 Motif2.1 Lesstif
   pragma Import (C, c_const_Xm_Grab_Shell_Widget_Class, "xmGrabShellWidgetClass");
-- EndMotif2.0 Motif2.1 Lesstif
   pragma Import (C, c_const_Xm_Menu_Shell_Widget_Class, "xmMenuShellWidgetClass");
   pragma Import (C, c_const_Xm_Vendor_Shell_Widget_Class, "vendorShellWidgetClass");

   Xm_Dialog_Shell_Widget_Class        : constant Widget_Class :=
    c_const_Xm_Dialog_Shell_Widget_Class;
   Xm_Drag_Over_Shell_Widget_Class     : constant Widget_Class :=
    c_const_Xm_Drag_Over_Shell_Widget_Class;
-- UseMotif2.0 Motif2.1 Lesstif
   Xm_Grab_Shell_Widget_Class          : constant Widget_Class :=
    c_const_Xm_Grab_Shell_Widget_Class;
-- EndMotif2.0 Motif2.1 Lesstif
   Xm_Menu_Shell_Widget_Class          : constant Widget_Class :=
    c_const_Xm_Menu_Shell_Widget_Class;
   Xm_Vendor_Shell_Widget_Class        : constant Widget_Class :=
    c_const_Xm_Vendor_Shell_Widget_Class;


   -- -------------------------------------------------------------------------
   --
   --  resource value strings
   --

   use  X_Toolkit.Shell;

   -- -------------------------------------------------------------------------
   --
   --  Shell
   --
   Xm_N_Allow_Shell_Resize      : constant Xt_N_Resource_String
                                := Xt_N_Allow_Shell_Resize;
   Xm_N_Create_Popup_Child_Proc : constant Xt_N_Resource_String
                                := Xt_N_Create_Popup_Child_Proc;
   Xm_N_Geometry                : constant Xt_N_Resource_String
                                := Xt_N_Geometry;
   Xm_N_Override_Redirect       : constant Xt_N_Resource_String
                                := Xt_N_Override_Redirect;
   Xm_N_Popdown_Callback        : constant Xt_N_Resource_String
                                := Xt_N_Popdown_Callback;
   Xm_N_Popup_Callback          : constant Xt_N_Resource_String
                                := Xt_N_Popup_Callback;
   Xm_N_Save_Under              : constant Xt_N_Resource_String
                                := Xt_N_Save_Under;
   Xm_N_Visual                  : constant Xt_N_Resource_String
                                := Xt_N_Visual;


   -- -------------------------------------------------------------------------
   --
   --  Menu Shell
   --
   Xm_N_Button_Font_List       : constant Xt_N_Resource_String
                               := To_Resource_String ("buttonFontList");
-- UseMotif2.0 Motif2.1 Lesstif
   Xm_N_Button_Render_Table    : constant Xt_N_Resource_String
                               := To_Resource_String ("buttonRenderTable");
-- EndMotif2.0 Motif2.1 Lesstif
   Xm_N_Default_Font_List      : constant Xt_N_Resource_String
                               := To_Resource_String ("defaultFontList");
   Xm_N_Label_Font_List        : constant Xt_N_Resource_String
                               := To_Resource_String ("labelFontList");
-- UseMotif2.0 Motif2.1 Lesstif
   Xm_N_Label_Render_Table     : constant Xt_N_Resource_String
                               := To_Resource_String ("labelRenderTable");
   Xm_N_Layout_Direction       : constant Xt_N_Resource_String
                               := To_Resource_String ("layoutDirection");
-- EndMotif2.0 Motif2.1 Lesstif


   -- -------------------------------------------------------------------------
   --
   --  WM Shell
   --
   Xm_N_Base_Height            : constant Xt_N_Resource_String
                               := Xt_N_Base_Height;
   Xm_N_Base_Width             : constant Xt_N_Resource_String
                               := Xt_N_Base_Width;
   Xm_N_Height_Inc             : constant Xt_N_Resource_String
                               := Xt_N_Height_Inc;
   Xm_N_Icon_Mask              : constant Xt_N_Resource_String
                               := Xt_N_Icon_Mask;
   Xm_N_Icon_Pixmap            : constant Xt_N_Resource_String
                               := Xt_N_Icon_Pixmap;
   Xm_N_Icon_Window            : constant Xt_N_Resource_String
                               := Xt_N_Icon_Window;
   Xm_N_Icon_X                 : constant Xt_N_Resource_String
                               := Xt_N_Icon_X;
   Xm_N_Icon_Y                 : constant Xt_N_Resource_String
                               := Xt_N_Icon_Y;
   Xm_N_Initial_State          : constant Xt_N_Resource_String
                               := Xt_N_Initial_State;
   Xm_N_Input                  : constant Xt_N_Resource_String
                               := Xt_N_Input;
   Xm_N_Max_Aspect_X           : constant Xt_N_Resource_String
                               := Xt_N_Max_Aspect_X;
   Xm_N_Max_Aspect_Y           : constant Xt_N_Resource_String
                               := Xt_N_Max_Aspect_Y;
   Xm_N_Max_Height             : constant Xt_N_Resource_String
                               := Xt_N_Max_Height;
   Xm_N_Max_Width              : constant Xt_N_Resource_String
                               := Xt_N_Max_Width;
   Xm_N_Min_Aspect_X           : constant Xt_N_Resource_String
                               := Xt_N_Min_Aspect_X;
   Xm_N_Min_Aspect_Y           : constant Xt_N_Resource_String
                               := Xt_N_Min_Aspect_Y;
   Xm_N_Min_Height             : constant Xt_N_Resource_String
                               := Xt_N_Min_Height;
   Xm_N_Min_Width              : constant Xt_N_Resource_String
                               := Xt_N_Min_Width;
   Xm_N_Title                  : constant Xt_N_Resource_String
                               := Xt_N_Title;
   Xm_N_Title_Encoding         : constant Xt_N_Resource_String
                               := Xt_N_Title_Encoding;
   Xm_N_Transient              : constant Xt_N_Resource_String
                               := Xt_N_Transient;
   Xm_N_Wait_For_WM            : constant Xt_N_Resource_String
                               := Xt_N_Wait_For_WM;
   Xm_N_Width_Inc              : constant Xt_N_Resource_String
                               := Xt_N_Width_Inc;
   Xm_N_Win_Gravity            : constant Xt_N_Resource_String
                               := Xt_N_Win_Gravity;
   Xm_N_Window_Group           : constant Xt_N_Resource_String
                               := Xt_N_Window_Group;
   Xm_N_WM_Timeout             : constant Xt_N_Resource_String
                               := Xt_N_WM_Timeout;


   -- -------------------------------------------------------------------------
   --
   --  VendorShell
   --
   Xm_N_Audible_Warning        : constant Xt_N_Resource_String
                               := To_Resource_String ("audibleWarning");


   -- Xm_N_Button_Font_List       : constant Xt_N_Resource_String := To_Resource_String ("buttonFontList");
   -- Xm_N_Button_Render_Table    : constant Xt_N_Resource_String := To_Resource_String ("buttonRenderTable");
   -- Xm_N_Default_Font_List      : constant Xt_N_Resource_String := To_Resource_String ("defaultFontList");
   Xm_N_Delete_Response        : constant Xt_N_Resource_String
                               := To_Resource_String ("deleteResponse");

   Xm_N_Keyboard_Focus_Policy  : constant Xt_N_Resource_String
                               := To_Resource_String ("keyboardFocusPolicy");

   Xm_N_Input_Method           : constant Xt_N_Resource_String
                               := To_Resource_String ("inputMethod");
-- UseMotif2.0 Motif2.1 Lesstif
   Xm_N_Input_Policy           : constant Xt_N_Resource_String
                               := To_Resource_String ("inputPolicy");

-- EndMotif2.0 Motif2.1 Lesstif

   -- Xm_N_Label_Font_List        : constant Xt_N_Resource_String := To_Resource_String ("labelFontList");
   -- Xm_N_Label_Render_Table     : constant Xt_N_Resource_String := To_Resource_String ("labelRenderTable");
   -- Xm_N_Layout_Direction       : constant Xt_N_Resource_String := To_Resource_String ("layoutDirection");
   Xm_N_MWM_Decorations        : constant Xt_N_Resource_String
                               := To_Resource_String ("mwmDecorations");
   Xm_N_MWM_Functions          : constant Xt_N_Resource_String
                               := To_Resource_String ("mwmFunctions");
   Xm_N_MWM_Input_Mode         : constant Xt_N_Resource_String
                               := To_Resource_String ("mwmInputMode");
   Xm_N_MWM_Menu               : constant Xt_N_Resource_String
                               := To_Resource_String ("mwmMenu");
   Xm_N_Preedit_Type           : constant Xt_N_Resource_String
                               := To_Resource_String ("preeditType");
   Xm_N_Shell_Unit_Type        : constant Xt_N_Resource_String
                               := To_Resource_String ("shellUnitType");
   Xm_N_Text_Font_List         : constant Xt_N_Resource_String
                               := To_Resource_String ("textFontList");
   Xm_N_Text_Render_Table      : constant Xt_N_Resource_String
                               := To_Resource_String ("textRenderTable");
-- UseMotif2.0 Motif2.1 Lesstif
   Xm_N_Unit_Type              : constant Xt_N_Resource_String
                               := Xm_Widgets.Xm_N_Unit_Type;
-- EndMotif2.0 Motif2.1 Lesstif
   Xm_N_Use_Async_Geometry     : constant Xt_N_Resource_String
                               := To_Resource_String ("useAsyncGeometry");


   -- -------------------------------------------------------------------------
   --
   --  TransientShell
   --
   Xm_N_Transient_For          : constant Xt_N_Resource_String
                               := Xt_N_Transient_For;


   -- -------------------------------------------------------------------------
   --
   --  TopLevelShell
   --
   Xm_N_Iconic                 : constant Xt_N_Resource_String
                               := Xt_N_Iconic;
   Xm_N_Icon_Name              : constant Xt_N_Resource_String
                               := Xt_N_Icon_Name;
   Xm_N_Icon_Name_Encoding     : constant Xt_N_Resource_String
                               := Xt_N_Icon_Name_Encoding;


   -- -------------------------------------------------------------------------
   --
   --  ApplicationShell
   --
   Xm_N_Argc                   : constant Xt_N_Resource_String
                               := Xt_N_Argc;
   Xm_N_Argv                   : constant Xt_N_Resource_String
                               := Xt_N_Argv;

end Xm_Widgets.Shell;