Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
18
cde/examples/template/C/README
Normal file
18
cde/examples/template/C/README
Normal 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.
|
||||
|
||||
|
||||
7
cde/examples/template/C/Template.ad
Normal file
7
cde/examples/template/C/Template.ad
Normal 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
|
||||
|
||||
346
cde/examples/template/C/example.template
Normal file
346
cde/examples/template/C/example.template
Normal 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
|
||||
15
cde/examples/template/C/template-brush.bm
Normal file
15
cde/examples/template/C/template-brush.bm
Normal 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};
|
||||
98
cde/examples/template/C/template.dt
Normal file
98
cde/examples/template/C/template.dt
Normal 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
|
||||
}
|
||||
|
||||
|
||||
120
cde/examples/template/C/template.htg
Normal file
120
cde/examples/template/C/template.htg
Normal file
@@ -0,0 +1,120 @@
|
||||
|
||||
<metainfo>
|
||||
|
||||
<title>template (Sample Application)
|
||||
<copyright>
|
||||
|
||||
Copyright © 1993, 1994 Hewlett-Packard
|
||||
Copyright © 1993, 1994 International Business Machines Corp.
|
||||
Copyright © 1993, 1994 Sun Microsystems, Inc.
|
||||
Copyright © 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.
|
||||
|
||||
30
cde/examples/template/C/template.l.bm
Normal file
30
cde/examples/template/C/template.l.bm
Normal 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};
|
||||
59
cde/examples/template/C/template.l.pm
Normal file
59
cde/examples/template/C/template.l.pm
Normal 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 ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
||||
17
cde/examples/template/C/template.m.bm
Normal file
17
cde/examples/template/C/template.m.bm
Normal 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};
|
||||
44
cde/examples/template/C/template.m.pm
Normal file
44
cde/examples/template/C/template.m.pm
Normal 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 ",
|
||||
" "};
|
||||
34
cde/examples/template/C/template.msg
Normal file
34
cde/examples/template/C/template.msg
Normal 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...
|
||||
12
cde/examples/template/C/template.s.bm
Normal file
12
cde/examples/template/C/template.s.bm
Normal 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};
|
||||
35
cde/examples/template/C/template.s.pm
Normal file
35
cde/examples/template/C/template.s.pm
Normal 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 "};
|
||||
9
cde/examples/template/C/template.t.bm
Normal file
9
cde/examples/template/C/template.t.bm
Normal 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};
|
||||
27
cde/examples/template/C/template.t.pm
Normal file
27
cde/examples/template/C/template.t.pm
Normal 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 "};
|
||||
43
cde/examples/template/C/template_icon.pm
Normal file
43
cde/examples/template/C/template_icon.pm
Normal 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 ",
|
||||
" "};
|
||||
17
cde/examples/template/C/template_icon_m.bm
Normal file
17
cde/examples/template/C/template_icon_m.bm
Normal 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};
|
||||
Reference in New Issue
Block a user