Debian Codegraph @

install/unix/test/testxm.c

raw symbols SCIP
1 /*===========================================================================
2 Copyright (C) 1995-2007 European Southern Observatory (ESO)
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License as
6 published by the Free Software Foundation; either version 2 of
7 the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public
15 License along with this program; if not, write to the Free
16 Software Foundation, Inc., 675 Massachusetts Ave, Cambridge,
17 MA 02139, USA.
18
19 Correspondence concerning ESO-MIDAS should be addressed as follows:
20 Internet e-mail: [email protected]
21 Postal address: European Southern Observatory
22 Data Management Division
23 Karl-Schwarzschild-Strasse 2
24 D 85748 Garching bei Muenchen
25 GERMANY
26 ===========================================================================*/
27
28 /*+++++++++++++++++++++++++++++++ testxm +++++++++++++++++++++++++++++++
29
30 ..LANGUAGE C
31
32 ..IDENTIFICATION
33 use some definitions and functions from Motif
34 check existence of Motif include files
35
36 ..VERSION
37 140815 last modif
38 ------------------------------------------------------------------------*/
39
40
41 /* Include files extracted from all the C files in dir.
42 "gui/GraphLib/libsrc/vms_uimx/src/" */
43
44 #define __COMPILE_MOTIF_LIBS__
45 #include <Xm/Xm.h>
46 #include <Xm/Text.h>
47 #include <Xm/ArrowB.h>
48 #include <Xm/ArrowBG.h>
49 #include <Xm/BulletinB.h>
50 #include <Xm/CascadeB.h>
51 #include <Xm/CascadeBG.h>
52 #include <Xm/Command.h>
53 #include <Xm/DialogS.h>
54 #include <Xm/DrawingA.h>
55 #include <Xm/DrawnB.h>
56 #include <Xm/FileSB.h>
57 #include <Xm/Form.h>
58 #include <Xm/Frame.h>
59 #include <Xm/Label.h>
60 #include <Xm/LabelG.h>
61 #include <Xm/List.h>
62 #include <Xm/MainW.h>
63 #include <Xm/MenuShell.h>
64 #include <Xm/MessageB.h>
65 #include <Xm/PanedW.h>
66 #include <Xm/PushB.h>
67 #include <Xm/PushBG.h>
68 #include <Xm/RowColumn.h>
69 #include <Xm/Scale.h>
70 #include <Xm/ScrollBar.h>
71 #include <Xm/ScrolledW.h>
72 #include <Xm/SelectioB.h>
73 #include <Xm/SeparatoG.h>
74 #include <Xm/Separator.h>
75 #include <Xm/Text.h>
76 #include <Xm/ToggleB.h>
77 #include <Xm/ToggleBG.h>
78
79 #include <stdio.h>
80 #include <stdlib.h>
81
82 /*
83
84 for Kubuntu 7.10 we also had to install the package (071114)
85 x11proto-print-dev for the printing extension protocol
86 because in Xm/Xm.h reference was made to X11/extension/Print.h
87
88 */
89
90
91 main()
92 {
93 printf("%d\n",XmVersion);
94 exit(0);
95 }
96
97 #ifndef ONLY_INCLUDES
98 routine()
99 {
100 /*
101 * Some X11 fuctions extracted from:
102 * gui/GraphLib/libsrc/vms_uimx/src/*.c
103 */
104
105 XmRegisterConverters();
106 XmMenuPosition ((Widget)0, (XButtonEvent*)0);
107 XmScrolledWindowSetAreas((Widget)0, (Widget)0, (Widget)0, (Widget)0);
108 XmMainWindowSetAreas((Widget)0, (Widget)0, (Widget)0,
109 (Widget)0, (Widget)0, (Widget)0);
110 XmAddTabGroup((Widget)0);
111 XmRemoveTabGroup((Widget)0);
112 XmConvertUnits ((Widget)0, (unsigned char)0,
113 (unsigned char)0, (int)0, (unsigned char)0);
114 XmStringCreateLtoR((char*)0, "");
115
116 exit(0);
117 }
118 #endif /* ONLY_INCLUDES */