2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
24 * File: DtP.h $TOG: DtP.h /main/7 1998/07/30 12:12:49 mgreess $
31 #include <X11/Xmd.h> /* for protocol typedefs */
32 #include <X11/Intrinsic.h>
34 #include <Dt/DtPStrings.h>
35 #include <Dt/DtGetMessageP.h>
37 #include <bms/sbport.h>
44 /*********************************
46 * Miscellaneous Data Types
48 *********************************/
51 #define DtString XeString
53 /*********************************
57 *********************************/
59 #define DtToolClass XeToolClass
61 /*********************************
63 * Global variables (defined in DtUtil.c)
65 *********************************/
66 extern Display * _DtDisplay;
67 extern char * _DtApplicationName;
68 extern char * _DtApplicationClass;
69 extern char * _DtToolClass;
71 extern XtAppContext _DtAppContext;
72 extern XrmDatabase _DtResourceDatabase;
73 extern Widget _DtInitTtContextWidget;
74 extern XtAppContext * _DtInitAppContextp;
76 extern void _DtAddToResource( Display *, const char * );
77 extern void _DtAddResString( Display *, const char *, unsigned int);
78 extern char * _DtGetResString( Display *dpy, unsigned int);
81 #define _DT_ATR_RESMGR (1 << 0)
82 #define _DT_ATR_PREFS (1 << 1)
87 Add strings to XA_RESOURCE_MANAGER property on the default root
88 window. Correctly merges resource specifications with the same
89 name and different values. The new value overwrites the old.
91 _DtAddToResource() may be used where you would have used xrdb to
96 void _DtAddToResource(dpy,data)
98 Display *dpy; The application's display structure.
100 char *data; The string to be added to the
101 XA_RESOURCE_MANAGER property.
105 extern char *_DtCreateDtDirs( Display * );
109 Creates the directories needed for dt to operate in. When an
110 application saves its state inside a file, it should call this
111 routine to set up the directories before saving any files. The
112 routine constructs the path to which all save files should be saved
113 to when responding the the WM_SAVE_YOURSELF message issued by the
114 session manager. The routine returns the path to save to. It also
115 allocates the memory for the path so when you are done with it you
118 WARNING: If it can't create the directory it returns NULL
122 dirName = _DtCreateDtDirs (display);
124 char *dirName; The path to save to.
126 Display *display; The application's display structure.
130 * The following string globals are available for use by any DT
131 * component. They represent the button labels in most dialogs,
132 * and will be automatically localized by DtInitialize().
134 extern const char * _DtOkString;
135 extern const char * _DtCancelString;
136 extern const char * _DtHelpString;
137 extern const char * _DtApplyString;
138 extern const char * _DtCloseString;
144 /* Do not add anything after this endif. */