Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/* $XConsortium: README /main/2 1996/07/15 14:05:33 drk $ */
Template
This is the localized README file for the template application package.
The template application illustrates how a simple application
can be integrated fully into the CDE desktop.
The application's user-visible features are:
Draw using mouse button 1.
Load and Save drawings as .template files.
File manager recognition of .template files.
Print system recognition of .template files.
Front panel recognition of .template files and Template actions.
Dropping of .template file onto application will load file.
All application messages can be localized.

View File

@@ -0,0 +1,7 @@
! $XConsortium: Template.ad /main/2 1995/07/17 18:52:21 drk $
! Template app-defaults file
Template*drawingArea.unitType: 1000th_inches
Template*drawingArea.width: 4000
Template*drawingArea.height: 4000

View File

@@ -0,0 +1,346 @@
@template@
108 86
108 85
102 82
92 80
90 80
89 80
85 79
82 78
76 79
72 79
69 80
66 82
64 82
50 89
46 93
43 96
41 98
40 101
38 115
38 127
39 137
40 147
41 159
45 167
47 177
49 181
51 185
53 187
57 191
59 193
69 195
79 196
83 197
97 197
100 197
103 196
106 194
108 193
112 191
112 190
116 188
116 187
117 187
119 185
141 75
142 80
143 92
144 106
144 109
144 119
145 125
146 128
146 130
147 133
148 137
151 144
152 146
153 148
153 150
154 153
155 161
156 163
156 166
157 169
157 172
158 173
158 176
158 178
142 63
143 63
144 63
148 62
151 62
152 62
155 62
185 64
186 64
190 65
202 65
203 66
229 74
231 77
234 87
234 88
235 91
236 94
237 101
237 102
237 105
236 109
235 119
232 137
232 138
231 140
230 143
229 146
226 150
225 151
222 154
220 156
219 157
217 159
213 161
211 162
193 168
191 169
188 170
185 171
175 172
165 174
163 175
162 176
161 176
160 174
161 59
162 59
163 59
170 59
180 60
198 61
199 61
203 61
215 62
216 62
219 63
221 64
223 66
224 68
224 69
226 72
225 72
276 49
280 54
284 68
288 80
290 92
293 104
296 112
297 115
298 119
300 129
301 133
303 140
304 143
305 146
306 150
307 152
307 154
308 156
308 158
309 159
310 158
277 42
278 42
292 42
324 44
340 44
343 44
346 43
348 42
350 42
352 40
350 40
340 40
336 40
332 41
318 42
315 42
312 43
298 45
294 45
293 46
292 46
292 47
312 157
314 157
328 157
338 156
341 156
351 155
364 155
366 154
368 154
370 152
371 152
373 151
374 150
375 150
374 150
358 152
340 153
324 154
323 154
319 155
315 156
315 154
315 152
315 150
298 99
300 99
301 99
303 99
305 98
307 98
309 98
311 98
313 98
316 98
317 98
319 98
326 98
327 98
329 97
330 97
92 271
92 272
94 279
95 289
95 301
95 305
95 309
96 315
97 319
97 320
98 324
99 328
100 331
100 341
103 367
104 381
105 393
106 396
106 397
105 394
107 384
164 326
165 325
168 324
169 324
170 324
171 325
172 326
172 327
171 330
167 334
165 335
164 335
163 335
162 335
162 333
163 331
165 331
167 331
166 334
165 333
165 332
165 331
166 330
166 327
248 290
250 285
251 282
251 281
253 280
254 277
255 276
258 274
262 271
264 270
266 269
268 269
271 268
273 268
276 269
280 270
282 271
288 275
291 278
294 280
297 283
298 284
300 286
304 292
306 295
308 298
310 302
312 305
314 318
315 328
316 338
317 348
317 352
316 366
316 370
315 373
315 374
314 376
312 378
310 379
305 382
302 383
301 384
286 384
285 385
283 384
273 382
272 381
271 381
269 377
267 376
266 375
264 372
263 370
260 366
260 364
259 363
259 361
258 359
258 357
257 353
256 351
256 349
255 346
255 344
255 343
255 339
255 338
255 335
254 332
254 321
253 318
253 314
252 312
252 311
252 310
252 309
251 308
251 306
251 304
251 302
252 298
253 294
253 293
253 290
253 289

View File

@@ -0,0 +1,15 @@
/* $XConsortium: template-brush.bm /main/2 1995/07/17 18:04:13 drk $ */
#define template-brush.bm_width 32
#define template-brush.bm_height 32
static char template-brush.bm_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x01, 0x00,
0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x10, 0x00, 0x00,
0x00, 0x00, 0x84, 0x00, 0x00, 0x08, 0x00, 0x00, 0x10, 0x00, 0x20, 0x00,
0x00, 0x49, 0x00, 0x00, 0x80, 0x00, 0x85, 0x04, 0x00, 0x00, 0x00, 0x00,
0x04, 0x40, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0x80, 0x00,
0x80, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x24, 0x00, 0x04,
0x00, 0x40, 0x04, 0x00, 0x40, 0x04, 0x82, 0x00, 0x20, 0x10, 0x80, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xa8, 0x00, 0x11, 0x00,
0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00,
0x00, 0x00, 0x00, 0x00, 0x80, 0x82, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

View File

@@ -0,0 +1,98 @@
ACTION TemplateEdit
{
LABEL Edit
ICON template
ARG_TYPE TemplateData
TYPE TT_MSG
TT_CLASS TT_REQUEST
TT_SCOPE TT_SESSION
TT_OPERATION Edit
TT_ARG0_MODE TT_INOUT
TT_ARG0_VTYPE %Arg_1%
TT_FILE %Arg_1%
DESCRIPTION Edit Template
}
ACTION TemplateNew
{
TYPE COMMAND
EXEC_STRING templatebin
ICON template
WINDOW_TYPE NO_STDIO
DESCRIPTION Run template application
LABEL New
}
ACTION TemplateOpen
{
TYPE COMMAND
EXEC_STRING templatebin %(File)Arg_1"Open file"%
ICON template
WINDOW_TYPE NO_STDIO
ARG_TYPE TemplateData
DESCRIPTION Run template application
LABEL Open
}
ACTION TemplatePrint
{
TYPE COMMAND
EXEC_STRING templatebin -print %(File)Arg_1"Print file"%
ICON template
WINDOW_TYPE NO_STDIO
ARG_TYPE TemplateData
DESCRIPTION Run template application
LABEL Print
}
ACTION Open
{
ARG_TYPE TemplateData
TYPE MAP
MAP_ACTION TemplateOpen
LABEL Open
}
ACTION Print
{
ARG_TYPE TemplateData
TYPE MAP
MAP_ACTION TemplatePrint
LABEL Print
}
DATA_ATTRIBUTES TemplateData
{
ACTIONS Open,Print,TemplateEdit
ICON template
MEDIA DT_EXAMPLE_TEMPLATE
}
DATA_CRITERIA TemplateFileCriteria
{
DATA_ATTRIBUTES_NAME TemplateData
PATH_PATTERN *.template
MODE !d
}
DATA_CRITERIA TemplateContentCriteria
{
DATA_ATTRIBUTES_NAME TemplateData
CONTENT 0 string @template@
}
DATA_ATTRIBUTES TemplateAppGroup
{
ACTIONS OpenInPlace,OpenNewView
ICON template
DESCRIPTION template application group
}
DATA_CRITERIA TemplateAppGroupCriteria
{
DATA_ATTRIBUTES_NAME TemplateAppGroup
PATH_PATTERN */appmanager/*/template
MODE d
}

View File

@@ -0,0 +1,120 @@
<metainfo>
<title>template (Sample Application)
<copyright>
Copyright &copy; 1993, 1994 Hewlett-Packard
Copyright &copy; 1993, 1994 International Business Machines Corp.
Copyright &copy; 1993, 1994 Sun Microsystems, Inc.
Copyright &copy; 1993, 1994 Novell, Inc.
All Rights Reserved.
!!This program is for demonstration purposes only! !!
<abstract>This online help volume is used with the `template' application.
<\metainfo>
<hometopic>Template Help Information
<idx|introduction|
This is the home topic. This is the top level of your ``template'' help
information.
Choose one of the following links to find out more about the ``template''
application.
<list bullet>
* <xref chap1ID>
* <xref chap2ID>
<\list>
<chapter id=chap1ID> User feature description
The template application illustrates how a simple application
can be integrated fully into the CDE desktop.
The application's user-visible features are:
<list bullet>
* Draw using mouse button 1.
* Load and Save drawings as .template files.
* File manager recognition of .template files.
* Print system recognition of .template files.
* Front panel recognition of .template files and Template actions.
* Dropping of .template file onto application will load file.
* All application messages can be localized.
<\list>
<chapter id=chap2ID> Application description
This is a template CDE application. It illustrates how to write
a simple application integrated with the CDE desktop.
The application provides a simple airbrush drawing facility using
Motif. It defines a new file type '*.template' which contains a list
of x, y coordinates for the drawn points. The application and data
format favor simplicity over performance, and could obviously
be improved.
<procedure>Actions
A set of actions are provided to allow integration into the CDE desktop:
TemplateNew (labeled New) - to create a new Template data file.
TemplateOpen (labeled Open) - to open an existing Template data file.
TemplatePrint (labeled Print) - to Print a Template data file.
<procedure>Datatypes
The template data file is described by the datatype TemplateData, defined
in C/template.dt
<procedure>Icons
A minimal set of icons are provided to integrate with the CDE desktop. The
application group icons, window manager icon, Action icons and data file
icons are identical. In a more sophisticated application, these would
most likely be similar, but visually differentiated in some way.
<procedure>Help
A simple help file is provided. This can be displayed from within the
application using the Help viewer widget (by selecting 'Overview' in the
'Help' menu. It can also be view using the dthelpview tool.
<procedure>Message Catalog
All user-visible text in the application is loaded from the message catalog
template.cat.
<procedure>App-defaults file
The app-defaults file 'Template' contains resources to set the initial
size of the application window.
<procedure>Example file
As recommended in the Programmer's Guide, an example .template file is
provided.
<procedure>The Application Package
The Makefile provided will build the application binary and associated
files. It then copies these into the newly created template directory
hierarchy. The ./dt/ subdirectory hierarchy is described in the Programmer's
Guide. The other directories (bin, app-defaults, msg) are arbitrary and
may vary for your application and installation script.
This application package can then be installed using an application
installation script. This script should be written to ensure that
the bin, app-defaults and message catalog get installed correctly
on your target system, and available in the appropriate user or
system search paths.
The final step of the installation script should be to execute
'dtappintegrate -s template' This will ensure that the desktop
files under the ./dt/ subdirectory are installed correctly and
inserted into the appropriate system and user paths.
<procedure>Localization
The application is ready for localization. This directory contains
the non-localizable portions of the application.
The ./C/ directory contains the localizable portions of the application
in US English. Some or all of these files should be translated and
placed in a separate locale-specific directory.

View File

@@ -0,0 +1,30 @@
/* $XConsortium: template.l.bm /main/2 1995/07/17 18:04:21 drk $ */
#define template.l.bm_width 48
#define template.l.bm_height 48
#define template.l.bm_x_hot 0
#define template.l.bm_y_hot 0
static char template.l.bm_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xe0, 0xff, 0x3f, 0x00, 0x00, 0x00, 0xe0, 0xff, 0x1f, 0x00, 0x00, 0x00,
0xe0, 0xff, 0x1f, 0x00, 0x00, 0x00, 0xe0, 0xff, 0x1f, 0x00, 0x00, 0x00,
0xe0, 0xff, 0x1f, 0x00, 0x00, 0x00, 0xe0, 0xff, 0x1f, 0x00, 0x00, 0x00,
0xe0, 0xff, 0x1f, 0x00, 0x00, 0x00, 0xe0, 0xff, 0x1f, 0x00, 0x01, 0x00,
0xe0, 0xff, 0x1f, 0x80, 0x01, 0x00, 0xe0, 0xff, 0x1f, 0x80, 0x03, 0x00,
0xe0, 0xff, 0x1f, 0xc0, 0x03, 0x00, 0xe0, 0xff, 0x1f, 0xc0, 0x07, 0x00,
0xe0, 0xff, 0x1f, 0xe0, 0x07, 0x00, 0xe0, 0xff, 0x1f, 0xe0, 0x0f, 0x00,
0xe0, 0xff, 0x1f, 0xf0, 0x0f, 0x00, 0xe0, 0xff, 0x1f, 0xf0, 0x1f, 0x00,
0x20, 0x00, 0x00, 0xf8, 0x3f, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x3f, 0x00,
0x00, 0x00, 0x00, 0xfc, 0x7f, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x7f, 0x00,
0x00, 0x00, 0x00, 0xfe, 0xff, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0x00,
0x00, 0x00, 0x00, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0xfe, 0x01, 0x00, 0x00, 0x00, 0x00, 0xff, 0x01, 0x00, 0x00,
0x00, 0x80, 0xff, 0x03, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x07, 0x00, 0x00,
0x00, 0xe0, 0xff, 0x0f, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x1f, 0x00, 0x00,
0x00, 0xf0, 0xff, 0x1f, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x1f, 0x00, 0x00,
0x00, 0xf0, 0xff, 0x1f, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x1f, 0x00, 0x00,
0x00, 0xf0, 0xff, 0x1f, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x1f, 0x00, 0x00,
0x00, 0xf0, 0xff, 0x1f, 0x00, 0x00, 0x00, 0xe0, 0xff, 0x0f, 0x00, 0x00,
0x00, 0xc0, 0xff, 0x07, 0x00, 0x00, 0x00, 0x80, 0xff, 0x03, 0x00, 0x00,
0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

View File

@@ -0,0 +1,59 @@
/* XPM */
/* $XConsortium: template.l.pm /main/3 1995/07/18 16:06:22 drk $ */
static char * template_l_pm[] = {
/* width height ncolors cpp [x_hot y_hot] */
"48 48 4 1 0 0",
/* colors */
" s none m none c none",
". s iconGray1 m white c #dededededede",
"X s iconGray2 m white c #bdbdbdbdbdbd",
"o s iconGray6 m black c #636363636363",
/* pixels */
" ",
" ",
" ",
" ",
" ",
" .............. ",
" .XXXXXXXXXXXXo ",
" .XXXXXXXXXXXXo ",
" .XXXXXXXXXXXXo ",
" .XXXXXXXXXXXXo ",
" .XXXXXXXXXXXXo . ",
" .XXXXXXXXXXXXo .Xo ",
" .XXXXXXXXXXXXo .XXo ",
" .XXXXXXXXXXXXo .XXXo ",
" .XXXXXXXXXXXXo .XXXXo ",
" .XXXXXXXXXXXXo .XXXXXo ",
" .XXXXXXXXXXXXo .XXXXXXo ",
" .XXXXXXXXXXXXo .XXXXXXXo ",
" .ooooooooooooo .XXXXXXXXo ",
" .XXXXXXXXXXo ",
" .XXXXXXXXXXo ",
" .XXXXXXXXXXXXo ",
" .XXXXXXXXXXXXo ",
" .XXXXXXXXXXXXXXo ",
" .XXXXXXXXXXXXXXo ",
" .ooooooooooooooooo ",
" ",
" ",
" ",
" ",
" ......... ",
" .XXXXXXXXXo ",
" .XXXXXXXXXXXo ",
" .XXXXXXXXXXXXXo ",
" .XXXXXXXXXXXXXXXo ",
" .XXXXXXXXXXXXXXXo ",
" .XXXXXXXXXXXXXXXo ",
" .XXXXXXXXXXXXXXXo ",
" .XXXXXXXXXXXXXXXo ",
" .XXXXXXXXXXXXXXXo ",
" .XXXXXXXXXXXXXXXo ",
" .XXXXXXXXXXXXXo ",
" .XXXXXXXXXXXo ",
" .XXXXXXXXXo ",
" ooooooooo ",
" ",
" ",
" "};

View File

@@ -0,0 +1,17 @@
/* $XConsortium: template.m.bm /main/2 1995/07/17 18:04:36 drk $ */
#define template.m.bm_width 32
#define template.m.bm_height 32
#define template.m.bm_x_hot 0
#define template.m.bm_y_hot 0
static char template.m.bm_bits[] = {
0x00, 0x00, 0x00, 0x00, 0xf8, 0x7f, 0x00, 0x00, 0xf8, 0x3f, 0x00, 0x00,
0xf8, 0x3f, 0x00, 0x00, 0xf8, 0x3f, 0x00, 0x00, 0xf8, 0x3f, 0x00, 0x00,
0xf8, 0x3f, 0x00, 0x00, 0xf8, 0x3f, 0x20, 0x00, 0xf8, 0x3f, 0x70, 0x00,
0xf8, 0x3f, 0xf0, 0x00, 0xf8, 0x3f, 0xf0, 0x00, 0xf8, 0x3f, 0xf8, 0x00,
0x08, 0x00, 0xfc, 0x03, 0x00, 0x00, 0xfc, 0x03, 0x00, 0x00, 0xfc, 0x03,
0x00, 0x00, 0xfe, 0x07, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0x01, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x03, 0x00, 0x00, 0xfc, 0x03, 0x00,
0x00, 0xfe, 0x03, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00,
0x00, 0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00,
0x00, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0x03, 0x00, 0x00, 0xfc, 0x03, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

View File

@@ -0,0 +1,44 @@
/* XPM */
/* $XConsortium: template.m.pm /main/3 1995/07/18 16:06:29 drk $ */
static char * template_m_pm[] = {
/* width height ncolors cpp [x_hot y_hot] */
"32 32 5 1 0 0",
/* colors */
" s none m none c none",
". s iconGray1 m white c #dededededede",
"X s iconGray2 m white c #bdbdbdbdbdbd",
"o s iconGray6 m black c #636363636363",
"O s bottomShadowColor m black c #636363636363",
/* pixels */
" ",
" ............ ",
" .XXXXXXXXXXo ",
" .XXXXXXXXXXo ",
" .XXXXXXXXXXo ",
" .XXXXXXXXXXo ",
" .XXXXXXXXXXo . ",
" .XXXXXXXXXXo .o ",
" .XXXXXXXXXXo .XXo ",
" .XXXXXXXXXXo .XXXO ",
" .XXXXXXXXXXo .XXXXo ",
" .XXXXXXXXXXo .XXXXXo ",
" .ooooooooooo .XXXXXXXO ",
" .XXXXXXXo ",
" .XXXXXXXXXo ",
" .XXXXXXXXXo ",
" .XXXXXXXXXXXo ",
" .oooooooooooo ",
" ",
" ....... ",
" .XXXXXXXo ",
" .XXXXXXXXXo ",
" .XXXXXXXXXXXo ",
" .XXXXXXXXXXXo ",
" .XXXXXXXXXXXo ",
" .XXXXXXXXXXXo ",
" .XXXXXXXXXXXo ",
" .XXXXXXXXXXXo ",
" .XXXXXXXXXo ",
" .XXXXXXXo ",
" ooooooo ",
" "};

View File

@@ -0,0 +1,34 @@
$ $XConsortium: template.msg /main/3 1995/10/27 10:46:30 rswiston $
$
$ template.msg
$
$ message catalog for template example
$
$ Module: template.c
$
$set 1
$ General application messages
1 Template
2 Template Open
3 Template Save As
4 Template Help
5 -
6 (untitled)
7 ttdt_open failed
8 ttmedia_ptype_declare failed
9 ttdt_join_session failed
10 template: can't open %s\n
$set 2
$ These messages are used in the main window of the template example.
1 File
2 Open...
3 Save As...
4 Print
5 Clear
6 Exit
7 Help
8 Overview...
9 New...

View File

@@ -0,0 +1,12 @@
/* $XConsortium: template.s.bm /main/2 1995/07/17 18:04:50 drk $ */
#define template.s.bm_width 24
#define template.s.bm_height 24
#define template.s.bm_x_hot 0
#define template.s.bm_y_hot 0
static char template.s.bm_bits[] = {
0x00, 0x00, 0x00, 0xfc, 0x0f, 0x00, 0xfc, 0x07, 0x00, 0xfc, 0x07, 0x00,
0xfc, 0x07, 0x00, 0xfc, 0x07, 0x03, 0xfc, 0x87, 0x03, 0xfc, 0x87, 0x03,
0xfc, 0xc7, 0x03, 0x04, 0xc0, 0x0f, 0x00, 0xc0, 0x0f, 0x00, 0xe0, 0x0f,
0x00, 0xf0, 0x1f, 0x00, 0x10, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x3f, 0x00,
0x80, 0x3f, 0x00, 0xc0, 0x7f, 0x00, 0xc0, 0x7f, 0x00, 0xc0, 0x7f, 0x00,
0xc0, 0x7f, 0x00, 0x80, 0x3f, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, 0x00};

View File

@@ -0,0 +1,35 @@
/* XPM */
/* $XConsortium: template.s.pm /main/3 1995/07/18 16:06:36 drk $ */
static char * template_s_pm[] = {
/* width height ncolors cpp [x_hot y_hot] */
"24 24 4 1 0 0",
/* colors */
" s none m none c none",
". s iconGray1 m white c #dededededede",
"X s iconGray2 m white c #bdbdbdbdbdbd",
"o s iconGray6 m black c #636363636363",
/* pixels */
" ",
" ......... ",
" .XXXXXXXo ",
" .XXXXXXXo ",
" .XXXXXXXo ",
" .XXXXXXXo .. ",
" .XXXXXXXo .XXo ",
" .XXXXXXXo .XXo ",
" .XXXXXXXo .XXXXo ",
" .oooooooo .XXXXXo ",
" .XXXXXo ",
" .XXXXXXo ",
" .XXXXXXXXo ",
" .ooooooooo ",
" .... ",
" .XXXXo ",
" .XXXXXXo ",
" .XXXXXXXXo ",
" .XXXXXXXXo ",
" .XXXXXXXXo ",
" .XXXXXXXXo ",
" .XXXXXXo ",
" .XXXXo ",
" oooo "};

View File

@@ -0,0 +1,9 @@
/* $XConsortium: template.t.bm /main/2 1995/07/17 18:05:06 drk $ */
#define template.t.bm_width 16
#define template.t.bm_height 16
#define template.t.bm_x_hot 0
#define template.t.bm_y_hot 0
static char template.t.bm_bits[] = {
0x00, 0x00, 0x7e, 0x00, 0x7e, 0x00, 0x7e, 0x08, 0x7e, 0x0c, 0x7e, 0x0c,
0x02, 0x1e, 0x00, 0x3e, 0x00, 0x3f, 0x00, 0x01, 0xc0, 0x01, 0xe0, 0x01,
0xf0, 0x03, 0xf0, 0x03, 0xe0, 0x01, 0x00, 0x00};

View File

@@ -0,0 +1,27 @@
/* XPM */
/* $XConsortium: template.t.pm /main/3 1995/07/18 16:06:44 drk $ */
static char * template_t_pm[] = {
/* width height ncolors cpp [x_hot y_hot] */
"16 16 4 1 0 0",
/* colors */
" s none m none c none",
". s iconGray1 m white c #dededededede",
"X s iconGray2 m white c #bdbdbdbdbdbd",
"o s iconGray6 m black c #636363636363",
/* pixels */
" ",
" ...... ",
" .XXXXo ",
" .XXXXo . ",
" .XXXXo .Xo ",
" .XXXXo .Xo ",
" .ooooo .XXXo ",
" .XXXXo ",
" .XXXXXo ",
" .oooooo ",
" ... ",
" .XXXo ",
" .XXXXXo ",
" .XXXXXo ",
" .XXXo ",
" ooo "};

View File

@@ -0,0 +1,43 @@
/* XPM */
/* $XConsortium: template_icon.pm /main/3 1995/07/18 16:06:52 drk $ */
static char * template_icon_pm[] = {
/* width height ncolors cpp [x_hot y_hot] */
"32 32 4 1 0 0",
/* colors */
" s none m none c none",
". s iconGray1 m white c #dededededede",
"X s iconGray2 m white c #bdbdbdbdbdbd",
"o s iconGray6 m black c #636363636363",
/* pixels */
" ",
" ............ ",
" .XXXXXXXXXXo ",
" .XXXXXXXXXXo ",
" .XXXXXXXXXXo ",
" .XXXXXXXXXXo ",
" .XXXXXXXXXXo . ",
" .XXXXXXXXXXo .o ",
" .XXXXXXXXXXo .XXo ",
" .XXXXXXXXXXo .XXXo ",
" .XXXXXXXXXXo .XXXXo ",
" .XXXXXXXXXXo .XXXXXo ",
" .ooooooooooo .XXXXXXXo ",
" .XXXXXXXo ",
" .XXXXXXXXXo ",
" .XXXXXXXXXo ",
" .XXXXXXXXXXXo ",
" .oooooooooooo ",
" ",
" ....... ",
" .XXXXXXXo ",
" .XXXXXXXXXo ",
" .XXXXXXXXXXXo ",
" .XXXXXXXXXXXo ",
" .XXXXXXXXXXXo ",
" .XXXXXXXXXXXo ",
" .XXXXXXXXXXXo ",
" .XXXXXXXXXXXo ",
" .XXXXXXXXXo ",
" .XXXXXXXo ",
" ooooooo ",
" "};

View File

@@ -0,0 +1,17 @@
/* $XConsortium: template_icon_m.bm /main/2 1995/07/17 18:05:29 drk $ */
#define template_icon_m.bm_width 32
#define template_icon_m.bm_height 32
#define template_icon_m.bm_x_hot 0
#define template_icon_m.bm_y_hot 0
static char template_icon_m.bm_bits[] = {
0x00, 0x00, 0x00, 0x00, 0xf8, 0x7f, 0x00, 0x00, 0xf8, 0x7f, 0x00, 0x00,
0xf8, 0x7f, 0x00, 0x00, 0xf8, 0x7f, 0x00, 0x00, 0xf8, 0x7f, 0x00, 0x00,
0xf8, 0x7f, 0x20, 0x00, 0xf8, 0x7f, 0x60, 0x00, 0xf8, 0x7f, 0xf0, 0x00,
0xf8, 0x7f, 0xf0, 0x01, 0xf8, 0x7f, 0xf8, 0x01, 0xf8, 0x7f, 0xf8, 0x03,
0xf8, 0x7f, 0xfc, 0x07, 0x00, 0x00, 0xfc, 0x07, 0x00, 0x00, 0xfe, 0x0f,
0x00, 0x00, 0xfe, 0x0f, 0x00, 0x00, 0xff, 0x1f, 0x00, 0x00, 0xff, 0x1f,
0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x03, 0x00, 0x00, 0xfc, 0x07, 0x00,
0x00, 0xfe, 0x0f, 0x00, 0x00, 0xff, 0x1f, 0x00, 0x00, 0xff, 0x1f, 0x00,
0x00, 0xff, 0x1f, 0x00, 0x00, 0xff, 0x1f, 0x00, 0x00, 0xff, 0x1f, 0x00,
0x00, 0xff, 0x1f, 0x00, 0x00, 0xfe, 0x0f, 0x00, 0x00, 0xfc, 0x07, 0x00,
0x00, 0xf8, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00};

View File

@@ -0,0 +1,107 @@
# $XConsortium: Makefile.hp /main/3 1996/05/13 12:00:59 drk $
##########################################################################
#
# Makefile for template example (HP)
#
# (c) Copyright 1993, 1994 Hewlett-Packard Company
# (c) Copyright 1993, 1994 International Business Machines Corp.
# (c) Copyright 1993, 1994 Sun Microsystems, Inc.
# (c) Copyright 1993, 1994 Novell, Inc.
#
##########################################################################
CC = cc
RM = rm -f
DTHELPTAG = dthelptag
GENCAT = gencat
MKDIR = mkdir -p
CP = cp
CHMODEXE = chmod a+x
LOCALE = C
PACKAGE = template
APPGROUPNAME = template
PROGRAM = templatebin
SOURCES = template.c
OBJECTS = template.o
HELPSOURCE = $(LOCALE)/template.htg
HELPFILE = $(LOCALE)/template.sdl
MSGSOURCE = $(LOCALE)/template.msg
MSGFILE = $(LOCALE)/template.cat
TYPEFILE = $(LOCALE)/template.dt
ICONFILES = \
$(LOCALE)/template.t.pm $(LOCALE)/template.t.bm \
$(LOCALE)/template.s.pm $(LOCALE)/template.s.bm \
$(LOCALE)/template.m.pm $(LOCALE)/template.m.bm \
$(LOCALE)/template.l.pm $(LOCALE)/template.l.bm \
$(LOCALE)/template_icon.pm $(LOCALE)/template_icon_m.bm \
$(LOCALE)/template-brush.bm
APPDEFAULTSSRC = $(LOCALE)/Template.ad
APPDEFAULTS = $(LOCALE)/Template
README = $(LOCALE)/README
EXAMPLES = $(LOCALE)/example.template
ACTIONS = TemplateNew TemplateOpen TemplatePrint
DEFINES = -D_INCLUDE_XOPEN_SOURCE
CDEBUGFLAGS = -O
CFLAGS = -Aa -z $(DEFINES) $(CDEBUGFLAGS)
DTINCLUDE = -I/usr/dt/include
X11INCLUDE = -I/usr/include/X11R5
INCLUDES = $(DTINCLUDE) $(X11INCLUDE)
DTLIBS = -L/usr/dt/lib -lDtHelp -lDtSvc -lXm -ltt
X11LIBS = -L/usr/lib/X11R5 -lXt -lX11
SYSLIBS =
LIBRARIES = $(DTLIBS) $(X11LIBS) $(SYSLIBS)
LDFLAGS =
.c.o:
$(CC) -c $(CFLAGS) $(INCLUDES) $<
#all:: $(PACKAGE)
$(PACKAGE):: $(PROGRAM) $(HELPFILE) $(MSGFILE) $(APPDEFAULTS) \
$(ICONFILES) $(TYPEFILE) $(README) $(EXAMPLES) $(ACTIONS)
$(RM) -r $(PACKAGE)
$(MKDIR) $(PACKAGE)/bin
$(MKDIR) $(PACKAGE)/app-defaults/C
$(MKDIR) $(PACKAGE)/msg/C
$(CP) $(PROGRAM) $(PACKAGE)/bin
$(CP) $(MSGFILE) $(PACKAGE)/msg/C
$(CP) $(APPDEFAULTS) $(PACKAGE)/app-defaults/C
$(MKDIR) $(PACKAGE)/dt/appconfig/icons/C
$(MKDIR) $(PACKAGE)/dt/appconfig/help/C
$(MKDIR) $(PACKAGE)/dt/appconfig/types/C
$(MKDIR) $(PACKAGE)/dt/appconfig/appmanager/$(LOCALE)/$(APPGROUPNAME)
$(CP) $(ICONFILES) $(PACKAGE)/dt/appconfig/icons/C
$(CP) $(HELPFILE) $(PACKAGE)/dt/appconfig/help/C
$(CP) $(TYPEFILE) $(PACKAGE)/dt/appconfig/types/C
$(CHMODEXE) $(ACTIONS)
$(CP) $(README) $(EXAMPLES) $(ACTIONS) \
$(PACKAGE)/dt/appconfig/appmanager/$(LOCALE)/$(APPGROUPNAME)
$(PROGRAM):: $(OBJECTS)
$(CC) -o $(PROGRAM) $(LDFLAGS) $(OBJECTS) $(LIBRARIES)
$(APPDEFAULTS):: $(APPDEFAULTSSRC)
$(CP) $(APPDEFAULTSSRC) $(APPDEFAULTS)
$(HELPFILE):: $(HELPSOURCE)
$(DTHELPTAG) $(HELPSOURCE)
$(MSGFILE):: $(MSGSOURCE)
$(GENCAT) $(MSGFILE) $(MSGSOURCE)
clean::
$(RM) $(PROGRAM) $(OBJECTS) $(MSGFILE) $(APPDEFAULTS)
$(DTHELPTAG) -clean $(HELPSOURCE)
$(RM) -r template

View File

@@ -0,0 +1,107 @@
# $XConsortium: Makefile.ibm /main/3 1996/05/13 12:01:18 drk $
##########################################################################
#
# Makefile for template example (IBM)
#
# (c) Copyright 1993, 1994 Hewlett-Packard Company
# (c) Copyright 1993, 1994 International Business Machines Corp.
# (c) Copyright 1993, 1994 Sun Microsystems, Inc.
# (c) Copyright 1993, 1994 Novell, Inc.
#
##########################################################################
CC = cc
RM = rm -f
DTHELPTAG = dthelptag
GENCAT = gencat
MKDIR = mkdir -p
CP = cp
CHMODEXE = chmod a+x
LOCALE = C
PACKAGE = template
APPGROUPNAME = template
PROGRAM = templatebin
SOURCES = template.c
OBJECTS = template.o
HELPSOURCE = $(LOCALE)/template.htg
HELPFILE = $(LOCALE)/template.sdl
MSGSOURCE = $(LOCALE)/template.msg
MSGFILE = $(LOCALE)/template.cat
TYPEFILE = $(LOCALE)/template.dt
ICONFILES = \
$(LOCALE)/template.t.pm $(LOCALE)/template.t.bm \
$(LOCALE)/template.s.pm $(LOCALE)/template.s.bm \
$(LOCALE)/template.m.pm $(LOCALE)/template.m.bm \
$(LOCALE)/template.l.pm $(LOCALE)/template.l.bm \
$(LOCALE)/template_icon.pm $(LOCALE)/template_icon_m.bm \
$(LOCALE)/template-brush.bm
APPDEFAULTSSRC = $(LOCALE)/Template.ad
APPDEFAULTS = $(LOCALE)/Template
README = $(LOCALE)/README
EXAMPLES = $(LOCALE)/example.template
ACTIONS = TemplateNew TemplateOpen TemplatePrint
DEFINES =
CDEBUGFLAGS = -O
CFLAGS = -Xc $(DEFINES) $(CDEBUGFLAGS)
DTINCLUDE = -I/usr/dt/include
X11INCLUDE = -I/usr/include
INCLUDES = $(DTINCLUDE) $(X11INCLUDE)
DTLIBS = -L/usr/dt/lib -lDtHelp -lDtSvc -lXm -ltt
X11LIBS = -L/usr/lib -lXt -lX11
SYSLIBS =
LIBRARIES = $(DTLIBS) $(X11LIBS) $(SYSLIBS)
LDFLAGS =
.c.o:
$(CC) -c $(CFLAGS) $(INCLUDES) $<
#all:: $(PACKAGE)
$(PACKAGE):: $(PROGRAM) $(HELPFILE) $(MSGFILE) $(APPDEFAULTS) \
$(ICONFILES) $(TYPEFILE) $(README) $(EXAMPLES) $(ACTIONS)
$(RM) -r $(PACKAGE)
$(MKDIR) $(PACKAGE)/bin
$(MKDIR) $(PACKAGE)/app-defaults/C
$(MKDIR) $(PACKAGE)/msg/C
$(CP) $(PROGRAM) $(PACKAGE)/bin
$(CP) $(MSGFILE) $(PACKAGE)/msg/C
$(CP) $(APPDEFAULTS) $(PACKAGE)/app-defaults/C
$(MKDIR) $(PACKAGE)/dt/appconfig/icons/C
$(MKDIR) $(PACKAGE)/dt/appconfig/help/C
$(MKDIR) $(PACKAGE)/dt/appconfig/types/C
$(MKDIR) $(PACKAGE)/dt/appconfig/appmanager/$(LOCALE)/$(APPGROUPNAME)
$(CP) $(ICONFILES) $(PACKAGE)/dt/appconfig/icons/C
$(CP) $(HELPFILE) $(PACKAGE)/dt/appconfig/help/C
$(CP) $(TYPEFILE) $(PACKAGE)/dt/appconfig/types/C
$(CHMODEXE) $(ACTIONS)
$(CP) $(README) $(EXAMPLES) $(ACTIONS) \
$(PACKAGE)/dt/appconfig/appmanager/$(LOCALE)/$(APPGROUPNAME)
$(PROGRAM):: $(OBJECTS)
$(CC) -o $(PROGRAM) $(LDFLAGS) $(OBJECTS) $(LIBRARIES)
$(APPDEFAULTS):: $(APPDEFAULTSSRC)
$(CP) $(APPDEFAULTSSRC) $(APPDEFAULTS)
$(HELPFILE):: $(HELPSOURCE)
$(DTHELPTAG) $(HELPSOURCE)
$(MSGFILE):: $(MSGSOURCE)
$(GENCAT) $(MSGFILE) $(MSGSOURCE)
clean::
$(RM) $(PROGRAM) $(OBJECTS) $(MSGFILE) $(APPDEFAULTS)
$(DTHELPTAG) -clean $(HELPSOURCE)
$(RM) -r template

View File

@@ -0,0 +1,110 @@
# $XConsortium: Makefile.novell /main/3 1996/05/13 12:01:32 drk $
##########################################################################
#
# Makefile for template example (Novell)
#
# (c) Copyright 1993, 1994 Hewlett-Packard Company
# (c) Copyright 1993, 1994 International Business Machines Corp.
# (c) Copyright 1993, 1994 Sun Microsystems, Inc.
# (c) Copyright 1993, 1994 Novell, Inc.
#
##########################################################################
CC = cc
RM = rm -f
DTHELPTAG = dthelptag
GENCAT = gencat
MKDIR = mkdir -p
CP = cp
CHMODEXE = chmod a+x
LOCALE = C
PACKAGE = template
APPGROUPNAME = template
PROGRAM = templatebin
SOURCES = template.c
OBJECTS = template.o
HELPSOURCE = $(LOCALE)/template.htg
HELPFILE = $(LOCALE)/template.sdl
MSGSOURCE = $(LOCALE)/template.msg
MSGFILE = $(LOCALE)/template.cat
TYPEFILE = $(LOCALE)/template.dt
ICONFILES = \
$(LOCALE)/template.t.pm $(LOCALE)/template.t.bm \
$(LOCALE)/template.s.pm $(LOCALE)/template.s.bm \
$(LOCALE)/template.m.pm $(LOCALE)/template.m.bm \
$(LOCALE)/template.l.pm $(LOCALE)/template.l.bm \
$(LOCALE)/template_icon.pm $(LOCALE)/template_icon_m.bm \
$(LOCALE)/template-brush.bm
APPDEFAULTSSRC = $(LOCALE)/Template.ad
APPDEFAULTS = $(LOCALE)/Template
README = $(LOCALE)/README
EXAMPLES = $(LOCALE)/example.template
ACTIONS = TemplateNew TemplateOpen TemplatePrint
DEFINES =
CDEBUGFLAGS = -O
CFLAGS = -Xc $(DEFINES) $(CDEBUGFLAGS)
DTINCLUDE = -I/usr/dt/include
X11INCLUDE = -I/usr/X/include
INCLUDES = $(DTINCLUDE) $(X11INCLUDE)
DTLIBS = -L/usr/dt/lib -lDtHelp -lDtSvc -lXm -ltt
X11LIBS = -L/usr/X/lib -lXt -lX11
SYSLIBS = -lw -lgen -lnsl -lresolv -lsocket -lXIM
LIBRARIES = $(DTLIBS) $(X11LIBS) $(SYSLIBS)
LDFLAGS = -R/usr/dt/lib:/usr/openwin/lib
.c.o:
$(CC) -c $(CFLAGS) $(INCLUDES) $<
#all:: $(PACKAGE)
$(PACKAGE):: $(PROGRAM) $(HELPFILE) $(MSGFILE) $(APPDEFAULTS) \
$(ICONFILES) $(TYPEFILE) $(README) $(EXAMPLES) $(ACTIONS)
$(RM) -r $(PACKAGE)
$(MKDIR) $(PACKAGE)/bin
$(MKDIR) $(PACKAGE)/app-defaults/C
$(MKDIR) $(PACKAGE)/msg/C
$(CP) $(PROGRAM) $(PACKAGE)/bin
$(CP) $(MSGFILE) $(PACKAGE)/msg/C
$(CP) $(APPDEFAULTS) $(PACKAGE)/app-defaults/C
$(MKDIR) $(PACKAGE)/dt/appconfig/icons/C
$(MKDIR) $(PACKAGE)/dt/appconfig/help/C
$(MKDIR) $(PACKAGE)/dt/appconfig/types/C
$(MKDIR) $(PACKAGE)/dt/appconfig/appmanager/$(LOCALE)/$(APPGROUPNAME)
$(CP) $(ICONFILES) $(PACKAGE)/dt/appconfig/icons/C
$(CP) $(HELPFILE) $(PACKAGE)/dt/appconfig/help/C
$(CP) $(TYPEFILE) $(PACKAGE)/dt/appconfig/types/C
$(CP) $(README) $(EXAMPLES) $(ACTIONS) \
$(PACKAGE)/dt/appconfig/appmanager/$(LOCALE)/$(APPGROUPNAME)
$(CHMODEXE) $(ACTIONS)
$(CP) $(ACTIONS) \
$(PACKAGE)/dt/appconfig/appmanager/$(LOCALE)/$(APPGROUPNAME)
$(PROGRAM):: $(OBJECTS)
$(CC) -o $(PROGRAM) $(LDFLAGS) $(OBJECTS) $(LIBRARIES)
$(APPDEFAULTS):: $(APPDEFAULTSSRC)
$(CP) $(APPDEFAULTSSRC) $(APPDEFAULTS)
$(HELPFILE):: $(HELPSOURCE)
$(DTHELPTAG) $(HELPSOURCE)
$(MSGFILE):: $(MSGSOURCE)
$(GENCAT) $(MSGFILE) $(MSGSOURCE)
clean::
$(RM) $(PROGRAM) $(OBJECTS) $(MSGFILE) $(APPDEFAULTS)
$(DTHELPTAG) -clean $(HELPSOURCE)
$(RM) -r template

View File

@@ -0,0 +1,107 @@
# $XConsortium: Makefile.sun /main/3 1996/05/13 12:01:49 drk $
##########################################################################
#
# Makefile for template example (SUN)
#
# (c) Copyright 1993, 1994 Hewlett-Packard Company
# (c) Copyright 1993, 1994 International Business Machines Corp.
# (c) Copyright 1993, 1994 Sun Microsystems, Inc.
# (c) Copyright 1993, 1994 Novell, Inc.
#
##########################################################################
CC = cc
RM = rm -f
DTHELPTAG = dthelptag
GENCAT = gencat
MKDIR = mkdir -p
CP = cp
CHMODEXE = chmod a+x
LOCALE = C
PACKAGE = template
APPGROUPNAME = template
PROGRAM = templatebin
SOURCES = template.c
OBJECTS = template.o
HELPSOURCE = $(LOCALE)/template.htg
HELPFILE = $(LOCALE)/template.sdl
MSGSOURCE = $(LOCALE)/template.msg
MSGFILE = $(LOCALE)/template.cat
TYPEFILE = $(LOCALE)/template.dt
ICONFILES = \
$(LOCALE)/template.t.pm $(LOCALE)/template.t.bm \
$(LOCALE)/template.s.pm $(LOCALE)/template.s.bm \
$(LOCALE)/template.m.pm $(LOCALE)/template.m.bm \
$(LOCALE)/template.l.pm $(LOCALE)/template.l.bm \
$(LOCALE)/template_icon.pm $(LOCALE)/template_icon_m.bm \
$(LOCALE)/template-brush.bm
APPDEFAULTSSRC = $(LOCALE)/Template.ad
APPDEFAULTS = $(LOCALE)/Template
README = $(LOCALE)/README
EXAMPLES = $(LOCALE)/example.template
ACTIONS = TemplateNew TemplateOpen TemplatePrint
DEFINES =
CDEBUGFLAGS = -O
CFLAGS = $(DEFINES) $(CDEBUGFLAGS)
DTINCLUDE = -I/usr/dt/include
X11INCLUDE = -I/usr/openwin/include
INCLUDES = $(DTINCLUDE) $(X11INCLUDE)
DTLIBS = -L/usr/dt/lib -lDtHelp -lDtSvc -lXm -ltt
X11LIBS = -L/usr/openwin/lib -lXt -lX11
SYSLIBS = -ldl -lw -lgen
LIBRARIES = $(DTLIBS) $(X11LIBS) $(SYSLIBS)
LDFLAGS = -R/usr/dt/lib:/usr/openwin/lib
.c.o:
$(CC) -c $(CFLAGS) $(INCLUDES) $<
#all:: $(PACKAGE)
$(PACKAGE):: $(PROGRAM) $(HELPFILE) $(MSGFILE) $(APPDEFAULTS) \
$(ICONFILES) $(TYPEFILE) $(README) $(EXAMPLES) $(ACTIONS)
$(RM) -r $(PACKAGE)
$(MKDIR) $(PACKAGE)/bin
$(MKDIR) $(PACKAGE)/app-defaults/C
$(MKDIR) $(PACKAGE)/msg/C
$(CP) $(PROGRAM) $(PACKAGE)/bin
$(CP) $(MSGFILE) $(PACKAGE)/msg/C
$(CP) $(APPDEFAULTS) $(PACKAGE)/app-defaults/C
$(MKDIR) $(PACKAGE)/dt/appconfig/icons/C
$(MKDIR) $(PACKAGE)/dt/appconfig/help/C
$(MKDIR) $(PACKAGE)/dt/appconfig/types/C
$(MKDIR) $(PACKAGE)/dt/appconfig/appmanager/$(LOCALE)/$(APPGROUPNAME)
$(CP) $(ICONFILES) $(PACKAGE)/dt/appconfig/icons/C
$(CP) $(HELPFILE) $(PACKAGE)/dt/appconfig/help/C
$(CP) $(TYPEFILE) $(PACKAGE)/dt/appconfig/types/C
$(CHMODEXE) $(ACTIONS)
$(CP) $(README) $(EXAMPLES) $(ACTIONS) \
$(PACKAGE)/dt/appconfig/appmanager/$(LOCALE)/$(APPGROUPNAME)
$(PROGRAM):: $(OBJECTS)
$(CC) -o $(PROGRAM) $(LDFLAGS) $(OBJECTS) $(LIBRARIES)
$(APPDEFAULTS):: $(APPDEFAULTSSRC)
$(CP) $(APPDEFAULTSSRC) $(APPDEFAULTS)
$(HELPFILE):: $(HELPSOURCE)
$(DTHELPTAG) $(HELPSOURCE)
$(MSGFILE):: $(MSGSOURCE)
$(GENCAT) $(MSGFILE) $(MSGSOURCE)
clean::
$(RM) $(PROGRAM) $(OBJECTS) $(MSGFILE) $(APPDEFAULTS)
$(DTHELPTAG) -clean $(HELPSOURCE)
$(RM) -r template

View File

@@ -0,0 +1,111 @@
# $XConsortium: Makefile.uxp /main/2 1996/05/13 12:02:07 drk $
##########################################################################
#
# Makefile for template example (UXP)
#
# (Fujitsu.patch applied)
#
# (c) Copyright 1993, 1994 Hewlett-Packard Company
# (c) Copyright 1993, 1994 International Business Machines Corp.
# (c) Copyright 1993, 1994 Sun Microsystems, Inc.
# (c) Copyright 1993, 1994 Novell, Inc.
#
##########################################################################
CC = cc
RM = rm -f
DTHELPTAG = dthelptag
GENCAT = gencat
MKDIR = mkdir -p
CP = cp
CHMODEXE = chmod a+x
LOCALE = C
PACKAGE = template
APPGROUPNAME = template
PROGRAM = templatebin
SOURCES = template.c
OBJECTS = template.o
HELPSOURCE = $(LOCALE)/template.htg
HELPFILE = $(LOCALE)/template.sdl
MSGSOURCE = $(LOCALE)/template.msg
MSGFILE = $(LOCALE)/template.cat
TYPEFILE = $(LOCALE)/template.dt
ICONFILES = \
$(LOCALE)/template.t.pm $(LOCALE)/template.t.bm \
$(LOCALE)/template.s.pm $(LOCALE)/template.s.bm \
$(LOCALE)/template.m.pm $(LOCALE)/template.m.bm \
$(LOCALE)/template.l.pm $(LOCALE)/template.l.bm \
$(LOCALE)/template_icon.pm $(LOCALE)/template_icon_m.bm \
$(LOCALE)/template-brush.bm
APPDEFAULTSSRC = $(LOCALE)/Template.ad
APPDEFAULTS = $(LOCALE)/Template
README = $(LOCALE)/README
EXAMPLES = $(LOCALE)/example.template
ACTIONS = TemplateNew TemplateOpen TemplatePrint
DEFINES =
CDEBUGFLAGS = -O
CFLAGS = -Xc $(DEFINES) $(CDEBUGFLAGS)
DTINCLUDE = -I/usr/dt/include
INCLUDES = $(DTINCLUDE)
DTLIBS = -L/usr/dt/lib -lDtHelp -lDtSvc -lXm -ltt
X11LIBS = -L/usr/X/lib -lXt -lX11
SYSLIBS = -lw -lgen -lnsl -lresolv -lsocket -lm
LIBRARIES = $(DTLIBS) $(X11LIBS) $(SYSLIBS)
LDFLAGS = -R/usr/dt/lib:/usr/openwin/lib
.c.o:
$(CC) -c $(CFLAGS) $(INCLUDES) $<
#all:: $(PACKAGE)
$(PACKAGE):: $(PROGRAM) $(HELPFILE) $(MSGFILE) $(APPDEFAULTS) \
$(ICONFILES) $(TYPEFILE) $(README) $(EXAMPLES) $(ACTIONS)
$(RM) -r $(PACKAGE)
$(MKDIR) $(PACKAGE)/bin
$(MKDIR) $(PACKAGE)/app-defaults/C
$(MKDIR) $(PACKAGE)/msg/C
$(CP) $(PROGRAM) $(PACKAGE)/bin
$(CP) $(MSGFILE) $(PACKAGE)/msg/C
$(CP) $(APPDEFAULTS) $(PACKAGE)/app-defaults/C
$(MKDIR) $(PACKAGE)/dt/appconfig/icons/C
$(MKDIR) $(PACKAGE)/dt/appconfig/help/C
$(MKDIR) $(PACKAGE)/dt/appconfig/types/C
$(MKDIR) $(PACKAGE)/dt/appconfig/appmanager/$(LOCALE)/$(APPGROUPNAME)
$(CP) $(ICONFILES) $(PACKAGE)/dt/appconfig/icons/C
$(CP) $(HELPFILE) $(PACKAGE)/dt/appconfig/help/C
$(CP) $(TYPEFILE) $(PACKAGE)/dt/appconfig/types/C
$(CP) $(README) $(EXAMPLES) $(ACTIONS) \
$(PACKAGE)/dt/appconfig/appmanager/$(LOCALE)/$(APPGROUPNAME)
$(CHMODEXE) $(ACTIONS)
$(CP) $(ACTIONS) \
$(PACKAGE)/dt/appconfig/appmanager/$(LOCALE)/$(APPGROUPNAME)
$(PROGRAM):: $(OBJECTS)
$(CC) -o $(PROGRAM) $(LDFLAGS) $(OBJECTS) $(LIBRARIES)
$(APPDEFAULTS):: $(APPDEFAULTSSRC)
$(CP) $(APPDEFAULTSSRC) $(APPDEFAULTS)
$(HELPFILE):: $(HELPSOURCE)
$(DTHELPTAG) $(HELPSOURCE)
$(MSGFILE):: $(MSGSOURCE)
$(GENCAT) $(MSGFILE) $(MSGSOURCE)
clean::
$(RM) $(PROGRAM) $(OBJECTS) $(MSGFILE) $(APPDEFAULTS)
$(DTHELPTAG) -clean $(HELPSOURCE)
$(RM) -r template

View File

@@ -0,0 +1,118 @@
/* $XConsortium: README /main/3 1996/07/15 14:05:55 drk $ */
The Template Application
------------------------
This is a template Dt application. It illustrates how to write
a simple application integrated with the Dt desktop.
The application provides a simple airbrush drawing facility using
Motif. It defines a new file type '*.template' which contains a list
of x, y coordinates for the drawn points. The application and data
format favor simplicity over performance, and could obviously
be improved.
Actions
-------
A set of actions are provided to allow integration into the Dt desktop:
TemplateNew (labeled New) - to create a new Template data file.
TemplateOpen (labeled Open) - to open an existing Template data file.
TemplatePrint (labeled Print) - to Print a Template data file.
Datatypes
---------
The template data file is described by the datatype TemplateData, defined
in C/template.dt
Icons
-----
A minimal set of icons are provided to integrate with the Dt desktop. The
application group icons, window manager icon, Action icons and data file
icons are identical. In a more sophisticated application, these would
most likely be similar, but visually differentiated in some way.
Help
----
A simple help file is provided. This can be displayed from within the
application using the Help viewer widget (by selecting 'Overview' in the
'Help' menu. It can also be view using the dthelpview tool.
Message Catalog
---------------
All user-visible text in the application is loaded from the message catalog
template.cat.
Example file
------------
As recommended in the Programmer's Guide, an example.template file is
provided.
App-defaults file
-----------------
The app-defaults file 'Template' contains resources to set the initial
size of the application window.
The Application Package
-----------------------
The Makefile provided will build the application binary ("templatebin") and
associated files. It then copies these into the newly created application
package directory hierarchy ("template"). The ./dt/ subdirectory hierarchy
is a Dt standard and is described in the Programmer's Guide. The other
directories (bin, app-defaults, msg) are not standard directories and may
vary for your application and installation script.
The binary templatebin will function on its own, however to fully install
the application and integrate with the Dt desktop you will need to write a
platform-specific installation script. The installation script will
typically need to be run with root privileges.
This script should be written to ensure that the binary, app-defaults and
message catalog get installed correctly on your target system, and are
available in the appropriate user or system search paths.
This script should also install the ToolTalk ptype into the system by
running the command 'tt_type_comp -d system template.ptype'.
NOTE: There is a bug in the system that may prevent tt_type_comp from
notifying an existing desktop session that new types have been added.
The symptom of this bug will be that the application will fail with the
following error message:
templatebin: ttmedia_ptype_declare failed
If this occurs, a workaround is to send SIGUSR2 to the running ttsession
process, like so:
$ /usr/bin/ps -e | grep ttsess
7850 console 0:08 ttsessio
$ kill -USR2 7850
This will cause ttsession to reread its types files. See ttsession(1)
for further information. An alternative workaround is to logout from
the desktop and restart.
If you choose to test the templatebin binary before integrating it with
the Dt desktop, you will need to set the following (this assumes you
have built out of /usr/dt/examples/template):
export XMICONBMSEARCHPATH=$XMICONBMSEARCHPATH:/usr/dt/examples/template/template/dt/appconfig/icons/C/%B:
export XMICONSEARCHPATH=$XMICONSEARCHPATH:/usr/dt/examples/template/template/dt/appconfig/icons/C/%B:
export DTHELPSEARCHPATH=$DTHELPSEARCHPATH:/usr/dt/examples/template/template/dt/appconfig/help/C/%H.sdl:
The installation script should be written to ensure that the bin, app-defaults
and message catalog get installed correctly on your target system, and
The final step of the installation script should be to execute
'dtappintegrate -s template'. This will ensure that the desktop
files under the ./dt/ subdirectory are installed correctly and
inserted into the appropriate Dt system and user paths.
Localization
------------
The application is ready for localization. This directory contains
the non-localizable portions of the application.
The ./C/ directory contains the localizable portions of the application
in US English. Some or all of these files should be translated and
placed in a separate locale-specific directory.

View File

@@ -0,0 +1,20 @@
######################################################################
#
# action
#
# Common Desktop Environment
#
# $XConsortium: TemplateNew /main/3 1995/10/27 10:45:17 rswiston $
#
######################################################################
# This file represents a CDE DT action. The contents of the file do not
# matter; the action will work even if the file is empty. If this file is
# executable and the name of the file matches an entry in the action
# database (*.dt files), the CDE DT File Manager will treat this file as an
# action.
#
# For more information on DT actions, see the CDE DT manuals.
echo "Common Desktop Environment DT action"

View File

@@ -0,0 +1,20 @@
######################################################################
#
# action
#
# Common Desktop Environment
#
# $XConsortium: TemplateOpen /main/3 1995/10/27 10:45:26 rswiston $
#
######################################################################
# This file represents a CDE DT action. The contents of the file do not
# matter; the action will work even if the file is empty. If this file is
# executable and the name of the file matches an entry in the action
# database (*.dt files), the CDE DT File Manager will treat this file as an
# action.
#
# For more information on DT actions, see the CDE DT manuals.
echo "Common Desktop Environment DT action"

View File

@@ -0,0 +1,20 @@
######################################################################
#
# action
#
# Common Desktop Environment
#
# $XConsortium: TemplatePrint /main/3 1995/10/27 10:45:35 rswiston $
#
######################################################################
# This file represents a CDE DT action. The contents of the file do not
# matter; the action will work even if the file is empty. If this file is
# executable and the name of the file matches an entry in the action
# database (*.dt files), the CDE DT File Manager will treat this file as an
# action.
#
# For more information on DT actions, see the CDE DT manuals.
echo "Common Desktop Environment DT action"

View File

@@ -0,0 +1,15 @@
/* $XConsortium: default_brush.bm /main/2 1995/07/17 18:05:35 drk $ */
#define default_brush_width 32
#define default_brush_height 32
static const unsigned char default_brush_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x01, 0x00,
0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x10, 0x00, 0x00,
0x00, 0x00, 0x84, 0x00, 0x00, 0x08, 0x00, 0x00, 0x10, 0x00, 0x20, 0x00,
0x00, 0x49, 0x00, 0x00, 0x80, 0x00, 0x85, 0x04, 0x00, 0x00, 0x00, 0x00,
0x04, 0x40, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0x80, 0x00,
0x80, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x24, 0x00, 0x04,
0x00, 0x40, 0x04, 0x00, 0x40, 0x04, 0x82, 0x00, 0x20, 0x10, 0x80, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xa8, 0x00, 0x11, 0x00,
0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00,
0x00, 0x00, 0x00, 0x00, 0x80, 0x82, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,8 @@
/* $XConsortium: template.ptype /main/2 1996/11/19 15:54:56 drk $ */
ptype DT_Example_Template {
start "templatebin -server";
handle:
session Edit(inout DT_EXAMPLE_TEMPLATE contents)
=> start opnum = 1;
}