summaryrefslogtreecommitdiff
path: root/freebsdtvision/doc/html/app_8h-source.html
blob: 7a6263c18d38cafb67b019d7331a49f605a6b8a9 (plain)
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>app.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>app.h</h1><a href="app_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>
00002 <span class="comment"> * app.h</span>
00003 <span class="comment"> *</span>
00004 <span class="comment"> * Turbo Vision - Version 2.0</span>
00005 <span class="comment"> *</span>
00006 <span class="comment"> * Copyright (c) 1994 by Borland International</span>
00007 <span class="comment"> * All Rights Reserved.</span>
00008 <span class="comment"> *</span>
00009 <span class="comment"> * Modified by Sergio Sigala &lt;sergio@sigala.it&gt;</span>
00010 <span class="comment"> */</span>
00011 
00012 <span class="preprocessor">#if defined( Uses_TBackground ) &amp;&amp; !defined( __TBackground )</span>
00013 <span class="preprocessor"></span><span class="preprocessor">#define __TBackground</span>
00014 <span class="preprocessor"></span>
00019 <span class="keyword">class </span><a class="code" href="classTRect.html">TRect</a>;
00020 
<a name="l00029"></a><a class="code" href="classTBackground.html">00029</a> <span class="keyword">class </span><a class="code" href="classTBackground.html">TBackground</a> : <span class="keyword">public</span> <a class="code" href="classTView.html">TView</a>
00030 {
00031 <span class="keyword">public</span>:
00040     <a class="code" href="classTBackground.html#a0">TBackground</a>( <span class="keyword">const</span> <a class="code" href="classTRect.html">TRect</a>&amp; bounds, <span class="keywordtype">char</span> aPattern );
00045     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTBackground.html#a1">draw</a>();
00049     <span class="keyword">virtual</span> <a class="code" href="classTPalette.html">TPalette</a>&amp; <a class="code" href="classTBackground.html#a2">getPalette</a>() <span class="keyword">const</span>;
00050 <span class="keyword">protected</span>:
<a name="l00054"></a><a class="code" href="classTBackground.html#n0">00054</a>     <span class="keywordtype">char</span> <a class="code" href="classTBackground.html#n0">pattern</a>;
00055 <span class="keyword">private</span>:
00056     <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *streamableName()<span class="keyword"> const</span>
00057 <span class="keyword">        </span>{ <span class="keywordflow">return</span> <a class="code" href="classTBackground.html#p0">name</a>; }
00058 <span class="keyword">protected</span>:
00069     <a class="code" href="classTBackground.html#a0">TBackground</a>( <a class="code" href="ttypes_8h.html#a14">StreamableInit</a> );
00075     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTBackground.html#b1">write</a>( <a class="code" href="classopstream.html">opstream</a>&amp; os );
00081     <span class="keyword">virtual</span> <span class="keywordtype">void</span> *<a class="code" href="classTBackground.html#b2">read</a>( <a class="code" href="classipstream.html">ipstream</a>&amp; is );
00082 <span class="keyword">public</span>:
<a name="l00086"></a><a class="code" href="classTBackground.html#p0">00086</a>     <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> <a class="code" href="classTBackground.html#p0">name</a>;
00094     <span class="keyword">static</span> <a class="code" href="classTStreamable.html">TStreamable</a> *<a class="code" href="classTBackground.html#d0">build</a>();
00095 };
00096 
<a name="l00100"></a><a class="code" href="app_8h.html#a24">00100</a> <span class="keyword">inline</span> <a class="code" href="classipstream.html">ipstream</a>&amp; <a class="code" href="views_8h.html#a136">operator &gt;&gt; </a>( <a class="code" href="classipstream.html">ipstream</a>&amp; is, <a class="code" href="classTBackground.html">TBackground</a>&amp; cl )
00101     { <span class="keywordflow">return</span> is &gt;&gt; (<a class="code" href="classTStreamable.html">TStreamable</a>&amp;)cl; }
<a name="l00105"></a><a class="code" href="app_8h.html#a25">00105</a> <span class="keyword">inline</span> <a class="code" href="classipstream.html">ipstream</a>&amp; <a class="code" href="views_8h.html#a136">operator &gt;&gt; </a>( <a class="code" href="classipstream.html">ipstream</a>&amp; is, <a class="code" href="classTBackground.html">TBackground</a>*&amp; cl )
00106     { <span class="keywordflow">return</span> is &gt;&gt; (<span class="keywordtype">void</span> *&amp;)cl; }
00107 
<a name="l00111"></a><a class="code" href="app_8h.html#a26">00111</a> <span class="keyword">inline</span> <a class="code" href="classopstream.html">opstream</a>&amp; <a class="code" href="views_8h.html#a138">operator &lt;&lt; </a>( <a class="code" href="classopstream.html">opstream</a>&amp; os, <a class="code" href="classTBackground.html">TBackground</a>&amp; cl )
00112     { <span class="keywordflow">return</span> os &lt;&lt; (<a class="code" href="classTStreamable.html">TStreamable</a>&amp;)cl; }
<a name="l00116"></a><a class="code" href="app_8h.html#a27">00116</a> <span class="keyword">inline</span> <a class="code" href="classopstream.html">opstream</a>&amp; <a class="code" href="views_8h.html#a138">operator &lt;&lt; </a>( <a class="code" href="classopstream.html">opstream</a>&amp; os, <a class="code" href="classTBackground.html">TBackground</a>* cl )
00117     { <span class="keywordflow">return</span> os &lt;&lt; (<a class="code" href="classTStreamable.html">TStreamable</a> *)cl; }
00118 
00119 <span class="preprocessor">#endif  // Uses_TBackground</span>
00120 <span class="preprocessor"></span>
00121 
00122 <span class="preprocessor">#if defined( Uses_TDeskTop )  &amp;&amp; !defined( __TDeskTop )</span>
00123 <span class="preprocessor"></span><span class="preprocessor">#define __TDeskTop</span>
00124 <span class="preprocessor"></span>
00125 <span class="keyword">class </span><a class="code" href="classTBackground.html">TBackground</a>;
00126 <span class="keyword">class </span><a class="code" href="classTRect.html">TRect</a>;
00127 <span class="keyword">class </span><a class="code" href="structTEvent.html">TEvent</a>;
00128 
<a name="l00136"></a><a class="code" href="classTDeskInit.html">00136</a> <span class="keyword">class </span><a class="code" href="classTDeskInit.html">TDeskInit</a>
00137 {
00138 <span class="keyword">public</span>:
00150     <a class="code" href="classTDeskInit.html#a0">TDeskInit</a>( <a class="code" href="classTBackground.html">TBackground</a> *(*cBackground)( <a class="code" href="classTRect.html">TRect</a> bounds ) );
00151 <span class="keyword">protected</span>:
00157     <a class="code" href="classTBackground.html">TBackground</a> *(*createBackground)( <a class="code" href="classTRect.html">TRect</a> bounds );
00158 };
00159 
<a name="l00179"></a><a class="code" href="classTDeskTop.html">00179</a> <span class="keyword">class </span><a class="code" href="classTDeskTop.html">TDeskTop</a> : <span class="keyword">public</span> <a class="code" href="classTGroup.html">TGroup</a>, <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="classTDeskInit.html">TDeskInit</a>
00180 {
00181 <span class="keyword">public</span>:
00194     <a class="code" href="classTDeskTop.html#a0">TDeskTop</a>( <span class="keyword">const</span> <a class="code" href="classTRect.html">TRect</a>&amp; bounds );
00204     <span class="keywordtype">void</span> <a class="code" href="classTDeskTop.html#a1">cascade</a>( <span class="keyword">const</span> <a class="code" href="classTRect.html">TRect</a>&amp; );
00212     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTDeskTop.html#a2">handleEvent</a>( <a class="code" href="structTEvent.html">TEvent</a>&amp; );
00226     <span class="keyword">static</span> <a class="code" href="classTBackground.html">TBackground</a> *<a class="code" href="classTDeskTop.html#d0">initBackground</a>( <a class="code" href="classTRect.html">TRect</a> );
00230     <span class="keywordtype">void</span> <a class="code" href="classTDeskTop.html#a3">tile</a>( <span class="keyword">const</span> <a class="code" href="classTRect.html">TRect</a>&amp; );
00238     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTDeskTop.html#a4">tileError</a>();
00251     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTDeskTop.html#a5">shutDown</a>();
<a name="l00255"></a><a class="code" href="classTDeskTop.html#p0">00255</a>     <span class="keyword">static</span> <span class="keywordtype">char</span> <a class="code" href="classTDeskTop.html#p0">defaultBkgrnd</a>;
00256 <span class="keyword">protected</span>:
<a name="l00261"></a><a class="code" href="classTDeskTop.html#n0">00261</a>     <a class="code" href="classTBackground.html">TBackground</a> *<a class="code" href="classTDeskTop.html#n0">background</a>;
<a name="l00267"></a><a class="code" href="classTDeskTop.html#n1">00267</a>     <a class="code" href="ttypes_8h.html#a13">Boolean</a> <a class="code" href="classTDeskTop.html#n1">tileColumnsFirst</a>;
00268 <span class="keyword">private</span>:
00269     <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *streamableName()<span class="keyword"> const</span>
00270 <span class="keyword">        </span>{ <span class="keywordflow">return</span> <a class="code" href="classTDeskTop.html#p1">name</a>; }
00271 <span class="keyword">protected</span>:
00280     <a class="code" href="classTDeskTop.html#a0">TDeskTop</a>( <a class="code" href="ttypes_8h.html#a14">StreamableInit</a> );
00281 <span class="keyword">public</span>:
<a name="l00285"></a><a class="code" href="classTDeskTop.html#p1">00285</a>     <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> <a class="code" href="classTDeskTop.html#p1">name</a>;
00292     <span class="keyword">static</span> <a class="code" href="classTStreamable.html">TStreamable</a> *<a class="code" href="classTDeskTop.html#d1">build</a>();
00293 };
00294 
<a name="l00298"></a><a class="code" href="app_8h.html#a28">00298</a> <span class="keyword">inline</span> <a class="code" href="classipstream.html">ipstream</a>&amp; <a class="code" href="views_8h.html#a136">operator &gt;&gt; </a>( <a class="code" href="classipstream.html">ipstream</a>&amp; is, <a class="code" href="classTDeskTop.html">TDeskTop</a>&amp; cl )
00299     { <span class="keywordflow">return</span> is &gt;&gt; (<a class="code" href="classTStreamable.html">TStreamable</a>&amp;)(<a class="code" href="classTGroup.html">TGroup</a>&amp;)cl; }
<a name="l00303"></a><a class="code" href="app_8h.html#a29">00303</a> <span class="keyword">inline</span> <a class="code" href="classipstream.html">ipstream</a>&amp; <a class="code" href="views_8h.html#a136">operator &gt;&gt; </a>( <a class="code" href="classipstream.html">ipstream</a>&amp; is, <a class="code" href="classTDeskTop.html">TDeskTop</a>*&amp; cl )
00304     { <span class="keywordflow">return</span> is &gt;&gt; (<span class="keywordtype">void</span> *&amp;)cl; }
00305 
<a name="l00309"></a><a class="code" href="app_8h.html#a30">00309</a> <span class="keyword">inline</span> <a class="code" href="classopstream.html">opstream</a>&amp; <a class="code" href="views_8h.html#a138">operator &lt;&lt; </a>( <a class="code" href="classopstream.html">opstream</a>&amp; os, <a class="code" href="classTDeskTop.html">TDeskTop</a>&amp; cl )
00310     { <span class="keywordflow">return</span> os &lt;&lt; (<a class="code" href="classTStreamable.html">TStreamable</a>&amp;)(<a class="code" href="classTGroup.html">TGroup</a>&amp;)cl; }
<a name="l00314"></a><a class="code" href="app_8h.html#a31">00314</a> <span class="keyword">inline</span> <a class="code" href="classopstream.html">opstream</a>&amp; <a class="code" href="views_8h.html#a138">operator &lt;&lt; </a>( <a class="code" href="classopstream.html">opstream</a>&amp; os, <a class="code" href="classTDeskTop.html">TDeskTop</a>* cl )
00315     { <span class="keywordflow">return</span> os &lt;&lt; (<a class="code" href="classTStreamable.html">TStreamable</a> *)(<a class="code" href="classTGroup.html">TGroup</a> *)cl; }
00316 
00317 <span class="preprocessor">#endif</span>
00318 <span class="preprocessor"></span>
00319 <span class="comment">// Turbo Vision 2.0 Color Palettes</span>
00320 
00321 <span class="preprocessor">#ifndef __UNPATCHED</span>
00322 <span class="preprocessor"></span><span class="preprocessor">#define cpAppColor \</span>
00323 <span class="preprocessor">       "\x71\x70\x78\x74\x20\x28\x24\x17\x1F\x1A\x31\x31\x1E\x71\x1F" \</span>
00324 <span class="preprocessor">    "\x37\x3F\x3A\x13\x13\x3E\x21\x3F\x70\x7F\x7A\x13\x13\x70\x7F\x7E" \</span>
00325 <span class="preprocessor">    "\x70\x7F\x7A\x13\x13\x70\x70\x7F\x7E\x20\x2B\x2F\x78\x2E\x70\x30" \</span>
00326 <span class="preprocessor">    "\x3F\x3E\x1F\x2F\x1A\x20\x72\x31\x31\x30\x2F\x3E\x31\x13\x38\x00" \</span>
00327 <span class="preprocessor">    "\x17\x1F\x1A\x71\x71\x1E\x17\x1F\x1E\x20\x2B\x2F\x78\x2E\x10\x30" \</span>
00328 <span class="preprocessor">    "\x3F\x3E\x70\x2F\x7A\x20\x12\x31\x31\x30\x2F\x3E\x31\x13\x38\x00" \</span>
00329 <span class="preprocessor">    "\x37\x3F\x3A\x13\x13\x3E\x30\x3F\x3E\x20\x2B\x2F\x78\x2E\x30\x70" \</span>
00330 <span class="preprocessor">    "\x7F\x7E\x1F\x2F\x1A\x20\x32\x31\x71\x70\x2F\x7E\x71\x13\x78\x00" \</span>
00331 <span class="preprocessor">    "\x37\x3F\x3A\x13\x13\x30\x3E\x1E"    // help colors</span>
00332 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00333 <span class="preprocessor"></span><span class="preprocessor">#define cpAppColor \</span>
00334 <span class="preprocessor">       "\x71\x70\x78\x74\x20\x28\x24\x17\x1F\x1A\x31\x31\x1E\x71\x1F" \</span>
00335 <span class="preprocessor">    "\x37\x3F\x3A\x13\x13\x3E\x21\x3F\x70\x7F\x7A\x13\x13\x70\x7F\x7E" \</span>
00336 <span class="preprocessor">    "\x70\x7F\x7A\x13\x13\x70\x70\x7F\x7E\x20\x2B\x2F\x78\x2E\x70\x30" \</span>
00337 <span class="preprocessor">    "\x3F\x3E\x1F\x2F\x1A\x20\x72\x31\x31\x30\x2F\x3E\x31\x13\x38\x00" \</span>
00338 <span class="preprocessor">    "\x17\x1F\x1A\x71\x71\x1E\x17\x1F\x1E\x20\x2B\x2F\x78\x2E\x10\x30" \</span>
00339 <span class="preprocessor">    "\x3F\x3E\x70\x2F\x7A\x20\x12\x31\x31\x30\x2F\x3E\x31\x13\x38\x00" \</span>
00340 <span class="preprocessor">    "\x37\x3F\x3A\x13\x13\x3E\x30\x3F\x3E\x20\x2B\x2F\x78\x2E\x30\x70" \</span>
00341 <span class="preprocessor">    "\x7F\x7E\x1F\x2F\x1A\x20\x32\x31\x71\x70\x2F\x7E\x71\x13\x38\x00" \</span>
00342 <span class="preprocessor">    "\x37\x3F\x3A\x13\x13\x30\x3E\x1E"    // help colors</span>
00343 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00344 <span class="preprocessor"></span>
00345 <span class="preprocessor">#ifndef __UNPATCHED</span>
00346 <span class="preprocessor"></span><span class="preprocessor">#define cpAppBlackWhite \</span>
00347 <span class="preprocessor">       "\x70\x70\x78\x7F\x07\x07\x0F\x07\x0F\x07\x70\x70\x07\x70\x0F" \</span>
00348 <span class="preprocessor">    "\x07\x0F\x07\x70\x70\x07\x70\x0F\x70\x7F\x7F\x70\x07\x70\x07\x0F" \</span>
00349 <span class="preprocessor">    "\x70\x7F\x7F\x70\x07\x70\x70\x7F\x7F\x07\x0F\x0F\x78\x0F\x78\x07" \</span>
00350 <span class="preprocessor">    "\x0F\x0F\x0F\x70\x0F\x07\x70\x70\x70\x07\x70\x0F\x07\x07\x08\x00" \</span>
00351 <span class="preprocessor">    "\x07\x0F\x0F\x07\x70\x07\x07\x0F\x0F\x70\x78\x7F\x08\x7F\x08\x70" \</span>
00352 <span class="preprocessor">    "\x7F\x7F\x7F\x0F\x70\x70\x07\x70\x70\x70\x07\x7F\x70\x07\x78\x00" \</span>
00353 <span class="preprocessor">    "\x70\x7F\x7F\x70\x07\x70\x70\x7F\x7F\x07\x0F\x0F\x78\x0F\x78\x07" \</span>
00354 <span class="preprocessor">    "\x0F\x0F\x0F\x70\x0F\x07\x70\x70\x70\x07\x70\x0F\x07\x07\x08\x00" \</span>
00355 <span class="preprocessor">    "\x07\x0F\x07\x70\x70\x07\x0F\x70"    // help colors</span>
00356 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00357 <span class="preprocessor"></span><span class="preprocessor">#define cpAppBlackWhite \</span>
00358 <span class="preprocessor">       "\x70\x70\x78\x7F\x07\x07\x0F\x07\x0F\x07\x70\x70\x07\x70\x0F" \</span>
00359 <span class="preprocessor">    "\x07\x0F\x07\x70\x70\x07\x70\x0F\x70\x7F\x7F\x70\x07\x70\x07\x0F" \</span>
00360 <span class="preprocessor">    "\x70\x7F\x7F\x70\x07\x70\x70\x7F\x7F\x07\x0F\x0F\x78\x0F\x78\x07" \</span>
00361 <span class="preprocessor">    "\x0F\x0F\x0F\x70\x0F\x07\x70\x70\x70\x07\x70\x0F\x07\x07\x78\x00" \</span>
00362 <span class="preprocessor">    "\x07\x0F\x0F\x07\x70\x07\x07\x0F\x0F\x70\x78\x7F\x08\x7F\x08\x70" \</span>
00363 <span class="preprocessor">    "\x7F\x7F\x7F\x0F\x70\x70\x07\x70\x70\x70\x07\x7F\x70\x07\x78\x00" \</span>
00364 <span class="preprocessor">    "\x70\x7F\x7F\x70\x07\x70\x70\x7F\x7F\x07\x0F\x0F\x78\x0F\x78\x07" \</span>
00365 <span class="preprocessor">    "\x0F\x0F\x0F\x70\x0F\x07\x70\x70\x70\x07\x70\x0F\x07\x07\x78\x00" \</span>
00366 <span class="preprocessor">    "\x07\x0F\x07\x70\x70\x07\x0F\x70"    // help colors</span>
00367 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00368 <span class="preprocessor"></span>
00369 <span class="preprocessor">#ifndef __UNPATCHED</span>
00370 <span class="preprocessor"></span><span class="preprocessor">#define cpAppMonochrome \</span>
00371 <span class="preprocessor">       "\x70\x07\x07\x0F\x70\x70\x70\x07\x0F\x07\x70\x70\x07\x70\x00" \</span>
00372 <span class="preprocessor">    "\x07\x0F\x07\x70\x70\x07\x70\x00\x70\x70\x70\x07\x07\x70\x07\x00" \</span>
00373 <span class="preprocessor">    "\x70\x70\x70\x07\x07\x70\x70\x70\x0F\x07\x07\x0F\x70\x0F\x70\x07" \</span>
00374 <span class="preprocessor">    "\x0F\x0F\x07\x70\x07\x07\x70\x07\x07\x07\x70\x0F\x07\x07\x70\x00" \</span>
00375 <span class="preprocessor">    "\x70\x70\x70\x07\x07\x70\x70\x70\x0F\x07\x07\x0F\x70\x0F\x70\x07" \</span>
00376 <span class="preprocessor">    "\x0F\x0F\x07\x70\x07\x07\x70\x07\x07\x07\x70\x0F\x07\x07\x01\x00" \</span>
00377 <span class="preprocessor">    "\x70\x70\x70\x07\x07\x70\x70\x70\x0F\x07\x07\x0F\x70\x0F\x70\x07" \</span>
00378 <span class="preprocessor">    "\x0F\x0F\x07\x70\x07\x07\x70\x07\x07\x07\x70\x0F\x07\x07\x01\x00" \</span>
00379 <span class="preprocessor">    "\x07\x0F\x07\x70\x70\x07\x0F\x70"    // help colors</span>
00380 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00381 <span class="preprocessor"></span><span class="preprocessor">#define cpAppMonochrome \</span>
00382 <span class="preprocessor">       "\x70\x07\x07\x0F\x70\x70\x70\x07\x0F\x07\x70\x70\x07\x70\x00" \</span>
00383 <span class="preprocessor">    "\x07\x0F\x07\x70\x70\x07\x70\x00\x70\x70\x70\x07\x07\x70\x07\x00" \</span>
00384 <span class="preprocessor">    "\x70\x70\x70\x07\x07\x70\x70\x70\x0F\x07\x07\x0F\x70\x0F\x70\x07" \</span>
00385 <span class="preprocessor">    "\x0F\x0F\x07\x70\x07\x07\x70\x07\x07\x07\x70\x0F\x07\x07\x70\x00" \</span>
00386 <span class="preprocessor">    "\x70\x70\x70\x07\x07\x70\x70\x70\x0F\x07\x07\x0F\x70\x0F\x70\x07" \</span>
00387 <span class="preprocessor">    "\x0F\x0F\x07\x70\x07\x07\x70\x07\x07\x07\x70\x0F\x07\x07\x70\x00" \</span>
00388 <span class="preprocessor">    "\x70\x70\x70\x07\x07\x70\x70\x70\x0F\x07\x07\x0F\x70\x0F\x70\x07" \</span>
00389 <span class="preprocessor">    "\x0F\x0F\x07\x70\x07\x07\x70\x07\x07\x07\x70\x0F\x07\x07\x70\x00" \</span>
00390 <span class="preprocessor">    "\x07\x0F\x07\x70\x70\x07\x0F\x70"    // help colors</span>
00391 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00392 <span class="preprocessor"></span>
00393 <span class="preprocessor">#if defined( Uses_TProgram ) &amp;&amp; !defined( __TProgram )</span>
00394 <span class="preprocessor"></span><span class="preprocessor">#define __TProgram</span>
00395 <span class="preprocessor"></span>
00396 <span class="comment">// Standard application help contexts</span>
00397 
00398 <span class="comment">// Note: range $FF00 - $FFFF of help contexts are reserved by Borland</span>
00399 
00400 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcNew          = 0xFF01;
00401 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcOpen         = 0xFF02;
00402 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcSave         = 0xFF03;
00403 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcSaveAs       = 0xFF04;
00404 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcSaveAll      = 0xFF05;
00405 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcChangeDir    = 0xFF06;
00406 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcDosShell     = 0xFF07;
00407 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcExit         = 0xFF08;
00408 
00409 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcUndo         = 0xFF10;
00410 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcCut          = 0xFF11;
00411 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcCopy         = 0xFF12;
00412 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcPaste        = 0xFF13;
00413 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcClear        = 0xFF14;
00414 
00415 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcTile         = 0xFF20;
00416 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcCascade      = 0xFF21;
00417 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcCloseAll     = 0xFF22;
00418 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcResize       = 0xFF23;
00419 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcZoom         = 0xFF24;
00420 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcNext         = 0xFF25;
00421 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcPrev         = 0xFF26;
00422 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> hcClose        = 0xFF27;
00423 
00424 
00425 <span class="keyword">class </span><a class="code" href="classTStatusLine.html">TStatusLine</a>;
00426 <span class="keyword">class </span><a class="code" href="classTMenuBar.html">TMenuBar</a>;
00427 <span class="keyword">class </span><a class="code" href="classTDeskTop.html">TDeskTop</a>;
00428 <span class="keyword">class </span><a class="code" href="structTEvent.html">TEvent</a>;
00429 <span class="keyword">class </span><a class="code" href="classTView.html">TView</a>;
00430 
<a name="l00439"></a><a class="code" href="classTProgInit.html">00439</a> <span class="keyword">class </span><a class="code" href="classTProgInit.html">TProgInit</a>
00440 {
00441 <span class="keyword">public</span>:
00459     <a class="code" href="classTProgInit.html#a0">TProgInit</a>( <a class="code" href="classTStatusLine.html">TStatusLine</a> *(*cStatusLine)( <a class="code" href="classTRect.html">TRect</a> ),
00460                <a class="code" href="classTMenuBar.html">TMenuBar</a> *(*cMenuBar)( <a class="code" href="classTRect.html">TRect</a> ),
00461                <a class="code" href="classTDeskTop.html">TDeskTop</a> *(*cDeskTop )( <a class="code" href="classTRect.html">TRect</a> )
00462              );
00463 <span class="keyword">protected</span>:
00467     <a class="code" href="classTStatusLine.html">TStatusLine</a> *(*createStatusLine)( TRect );
00471     <a class="code" href="classTMenuBar.html">TMenuBar</a> *(*createMenuBar)( TRect );
00475     <a class="code" href="classTDeskTop.html">TDeskTop</a> *(*createDeskTop)( TRect );
00476 };
00477 
00478 <span class="comment">/* ---------------------------------------------------------------------- */</span>
00479 <span class="comment">/*      class TProgram                                                    */</span>
00480 <span class="comment">/*                                                                        */</span>
00481 <span class="comment">/*      Palette layout                                                    */</span>
00482 <span class="comment">/*          1 = TBackground                                               */</span>
00483 <span class="comment">/*       2- 7 = TMenuView and TStatusLine                                 */</span>
00484 <span class="comment">/*       8-15 = TWindow(Blue)                                             */</span>
00485 <span class="comment">/*      16-23 = TWindow(Cyan)                                             */</span>
00486 <span class="comment">/*      24-31 = TWindow(Gray)                                             */</span>
00487 <span class="comment">/*      32-63 = TDialog                                                   */</span>
00488 <span class="comment">/* ---------------------------------------------------------------------- */</span>
00489 
00490 <span class="comment">//  TApplication palette entries</span>
00491 
00496 <span class="keyword">const</span> <span class="keywordtype">int</span>
<a name="l00497"></a><a class="code" href="app_8h.html#a22">00497</a>     <a class="code" href="app_8h.html#a21">apColor</a>      = 0,
00498 
<a name="l00503"></a><a class="code" href="app_8h.html#a23">00503</a>     <a class="code" href="app_8h.html#a22">apBlackWhite</a> = 1,
00504 
00509     <a class="code" href="app_8h.html#a23">apMonochrome</a> = 2;
00510 
00511 <span class="keyword">class </span><a class="code" href="classTDialog.html">TDialog</a>;
00512 <span class="keyword">class </span><a class="code" href="classTWindow.html">TWindow</a>;
00513 
<a name="l00524"></a><a class="code" href="classTProgram.html">00524</a> <span class="keyword">class </span><a class="code" href="classTProgram.html">TProgram</a> : <span class="keyword">public</span> <a class="code" href="classTGroup.html">TGroup</a>, <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="classTProgInit.html">TProgInit</a>
00525 {
00526 <span class="keyword">public</span>:
00547     <a class="code" href="classTProgram.html#a0">TProgram</a>();
00554     <span class="keyword">virtual</span> <a class="code" href="classTProgram.html#a1">~TProgram</a>();
00562     <span class="keyword">virtual</span> <a class="code" href="ttypes_8h.html#a13">Boolean</a> <a class="code" href="classTProgram.html#a2">canMoveFocus</a>();
00582     <span class="keyword">virtual</span> <a class="code" href="ttypes_8h.html#a0">ushort</a> <a class="code" href="classTProgram.html#a3">executeDialog</a>(<a class="code" href="classTDialog.html">TDialog</a>* pD, <span class="keywordtype">void</span>*data = 0);
00602     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTProgram.html#a4">getEvent</a>(<a class="code" href="structTEvent.html">TEvent</a>&amp; event);
00610     <span class="keyword">virtual</span> <a class="code" href="classTPalette.html">TPalette</a>&amp; <a class="code" href="classTProgram.html#a5">getPalette</a>() <span class="keyword">const</span>;
00630     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTProgram.html#a6">handleEvent</a>(<a class="code" href="structTEvent.html">TEvent</a>&amp; event);
00653     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTProgram.html#a7">idle</a>();
00667     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTProgram.html#a8">initScreen</a>();
00679     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTProgram.html#a9">outOfMemory</a>();
00690     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTProgram.html#a10">putEvent</a>( <a class="code" href="structTEvent.html">TEvent</a>&amp; event );
00697     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTProgram.html#a11">run</a>();
00701     <span class="keyword">virtual</span> <a class="code" href="classTWindow.html">TWindow</a>* <a class="code" href="classTProgram.html#a12">insertWindow</a>(<a class="code" href="classTWindow.html">TWindow</a>*);
00720     <span class="keywordtype">void</span> <a class="code" href="classTProgram.html#a13">setScreenMode</a>( <a class="code" href="ttypes_8h.html#a0">ushort</a> mode );
00739     <a class="code" href="classTView.html">TView</a> *<a class="code" href="classTProgram.html#a14">validView</a>( <a class="code" href="classTView.html">TView</a> *p );
00751     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTProgram.html#a15">shutDown</a>();
<a name="l00759"></a><a class="code" href="classTProgram.html#a16">00759</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTProgram.html#a16">suspend</a>() {}
<a name="l00767"></a><a class="code" href="classTProgram.html#a17">00767</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTProgram.html#a17">resume</a>() {}
00783     <span class="keyword">static</span> <a class="code" href="classTStatusLine.html">TStatusLine</a> *<a class="code" href="classTProgram.html#d0">initStatusLine</a>( <a class="code" href="classTRect.html">TRect</a> );
00799     <span class="keyword">static</span> <a class="code" href="classTMenuBar.html">TMenuBar</a> *<a class="code" href="classTProgram.html#d1">initMenuBar</a>( <a class="code" href="classTRect.html">TRect</a> );
00815     <span class="keyword">static</span> <a class="code" href="classTDeskTop.html">TDeskTop</a> *<a class="code" href="classTProgram.html#d2">initDeskTop</a>( <a class="code" href="classTRect.html">TRect</a> );
<a name="l00825"></a><a class="code" href="classTProgram.html#p0">00825</a>     <span class="keyword">static</span> <a class="code" href="classTProgram.html">TProgram</a> * <a class="code" href="classTProgram.html#p0">application</a>;
<a name="l00833"></a><a class="code" href="classTProgram.html#p1">00833</a>     <span class="keyword">static</span> <a class="code" href="classTStatusLine.html">TStatusLine</a> * <a class="code" href="classTProgram.html#p1">statusLine</a>;
<a name="l00841"></a><a class="code" href="classTProgram.html#p2">00841</a>     <span class="keyword">static</span> <a class="code" href="classTMenuBar.html">TMenuBar</a> * <a class="code" href="classTProgram.html#p2">menuBar</a>;
<a name="l00849"></a><a class="code" href="classTProgram.html#p3">00849</a>     <span class="keyword">static</span> <a class="code" href="classTDeskTop.html">TDeskTop</a> * <a class="code" href="classTProgram.html#p3">deskTop</a>;
<a name="l00866"></a><a class="code" href="classTProgram.html#p4">00866</a>      <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classTProgram.html#p4">appPalette</a>;
00867 <span class="keyword">protected</span>:
<a name="l00874"></a><a class="code" href="classTProgram.html#q0">00874</a>     <span class="keyword">static</span> <a class="code" href="structTEvent.html">TEvent</a> <a class="code" href="classTProgram.html#q0">pending</a>;
00875 <span class="keyword">private</span>:
00876     <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * exitText;
00877 };
00878 
00879 <span class="preprocessor">#endif</span>
00880 <span class="preprocessor"></span>
00881 <span class="preprocessor">#if defined( Uses_TApplication ) &amp;&amp; !defined( __TApplication )</span>
00882 <span class="preprocessor"></span><span class="preprocessor">#define __TApplication</span>
00883 <span class="preprocessor"></span>
<a name="l00907"></a><a class="code" href="classTApplication.html">00907</a> <span class="keyword">class </span><a class="code" href="classTApplication.html">TApplication</a> : <span class="keyword">public</span> <a class="code" href="classTScreen.html">TScreen</a>, <span class="keyword">public</span> <a class="code" href="classTProgram.html">TProgram</a>
00908 {
00909 <span class="keyword">protected</span>:
00936     <a class="code" href="classTApplication.html#b0">TApplication</a>();
00943     <span class="keyword">virtual</span> <a class="code" href="classTApplication.html#b1">~TApplication</a>();
00944 <span class="keyword">public</span>:
00953     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTApplication.html#a0">suspend</a>();
00962     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTApplication.html#a1">resume</a>();
<a name="l00968"></a><a class="code" href="classTApplication.html#a2">00968</a>     <span class="keywordtype">void</span> <a class="code" href="classTApplication.html#a2">getEvent</a>(<a class="code" href="structTEvent.html">TEvent</a>&amp; event) { <a class="code" href="classTProgram.html#a4">TProgram::getEvent</a>(event); };
00969 };
00970 
00971 <span class="preprocessor">#endif</span>
</pre></div><hr><address style="align: right;"><small>Generated on Wed Apr 2 22:13:08 2003 for TVision by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.18 </small></address>
</body>
</html>