diff options
Diffstat (limited to 'freebsdtvision/doc/html/app_8h-source.html')
-rw-r--r-- | freebsdtvision/doc/html/app_8h-source.html | 315 |
1 files changed, 315 insertions, 0 deletions
diff --git a/freebsdtvision/doc/html/app_8h-source.html b/freebsdtvision/doc/html/app_8h-source.html new file mode 100644 index 0000000..7a6263c --- /dev/null +++ b/freebsdtvision/doc/html/app_8h-source.html @@ -0,0 +1,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> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </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 <sergio@sigala.it></span> +00010 <span class="comment"> */</span> +00011 +00012 <span class="preprocessor">#if defined( Uses_TBackground ) && !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>& 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>& <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>& 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>& 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>& <a class="code" href="views_8h.html#a136">operator >> </a>( <a class="code" href="classipstream.html">ipstream</a>& is, <a class="code" href="classTBackground.html">TBackground</a>& cl ) +00101 { <span class="keywordflow">return</span> is >> (<a class="code" href="classTStreamable.html">TStreamable</a>&)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>& <a class="code" href="views_8h.html#a136">operator >> </a>( <a class="code" href="classipstream.html">ipstream</a>& is, <a class="code" href="classTBackground.html">TBackground</a>*& cl ) +00106 { <span class="keywordflow">return</span> is >> (<span class="keywordtype">void</span> *&)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>& <a class="code" href="views_8h.html#a138">operator << </a>( <a class="code" href="classopstream.html">opstream</a>& os, <a class="code" href="classTBackground.html">TBackground</a>& cl ) +00112 { <span class="keywordflow">return</span> os << (<a class="code" href="classTStreamable.html">TStreamable</a>&)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>& <a class="code" href="views_8h.html#a138">operator << </a>( <a class="code" href="classopstream.html">opstream</a>& os, <a class="code" href="classTBackground.html">TBackground</a>* cl ) +00117 { <span class="keywordflow">return</span> os << (<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 ) && !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>& 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>& ); +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>& ); +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>& ); +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>& <a class="code" href="views_8h.html#a136">operator >> </a>( <a class="code" href="classipstream.html">ipstream</a>& is, <a class="code" href="classTDeskTop.html">TDeskTop</a>& cl ) +00299 { <span class="keywordflow">return</span> is >> (<a class="code" href="classTStreamable.html">TStreamable</a>&)(<a class="code" href="classTGroup.html">TGroup</a>&)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>& <a class="code" href="views_8h.html#a136">operator >> </a>( <a class="code" href="classipstream.html">ipstream</a>& is, <a class="code" href="classTDeskTop.html">TDeskTop</a>*& cl ) +00304 { <span class="keywordflow">return</span> is >> (<span class="keywordtype">void</span> *&)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>& <a class="code" href="views_8h.html#a138">operator << </a>( <a class="code" href="classopstream.html">opstream</a>& os, <a class="code" href="classTDeskTop.html">TDeskTop</a>& cl ) +00310 { <span class="keywordflow">return</span> os << (<a class="code" href="classTStreamable.html">TStreamable</a>&)(<a class="code" href="classTGroup.html">TGroup</a>&)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>& <a class="code" href="views_8h.html#a138">operator << </a>( <a class="code" href="classopstream.html">opstream</a>& os, <a class="code" href="classTDeskTop.html">TDeskTop</a>* cl ) +00315 { <span class="keywordflow">return</span> os << (<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 ) && !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>& event); +00610 <span class="keyword">virtual</span> <a class="code" href="classTPalette.html">TPalette</a>& <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>& 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>& 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 ) && !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>& 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> |