summaryrefslogtreecommitdiff
path: root/sigalatvision/doc/html/classTProgInit.html
blob: 79e5eff6f5e84fb3b4d38eee3a1b627d522b63a3 (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
<!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>TProgInit class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.8.1 -->
<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>TProgInit  Class Reference</h1>Virtual base class for <a class="el" href="classTProgram.html">TProgram</a>. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="app_8h-source.html">app.h</a>&gt;</code>
<p>
<p>Inheritance diagram for TProgInit::
<p><center><img src="classTProgInit.gif" usemap="#TProgInit_map" border="0"></center>
<map name="TProgInit_map">
<area href="classTProgram.html" alt="TProgram" shape="rect" coords="0,56,82,80">
<area href="classTApplication.html" alt="TApplication" shape="rect" coords="0,112,82,136">
</map>
<a href="classTProgInit-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classTProgInit.html#a0">TProgInit</a> (<a class="el" href="classTStatusLine.html">TStatusLine</a> *(*cStatusLine)(<a class="el" href="classTRect.html">TRect</a>), <a class="el" href="classTMenuBar.html">TMenuBar</a> *(*cMenuBar)(<a class="el" href="classTRect.html">TRect</a>), <a class="el" href="classTDeskTop.html">TDeskTop</a> *(*cDeskTop)(<a class="el" href="classTRect.html">TRect</a>))</td></tr>
<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classTStatusLine.html">TStatusLine</a>* (*&nbsp;</td><td valign=bottom><a class="el" href="classTProgInit.html#n0">createStatusLine</a> )(<a class="el" href="classTRect.html">TRect</a>)</td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classTMenuBar.html">TMenuBar</a>* (*&nbsp;</td><td valign=bottom><a class="el" href="classTProgInit.html#n1">createMenuBar</a> )(<a class="el" href="classTRect.html">TRect</a>)</td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classTDeskTop.html">TDeskTop</a>* (*&nbsp;</td><td valign=bottom><a class="el" href="classTProgInit.html#n2">createDeskTop</a> )(<a class="el" href="classTRect.html">TRect</a>)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
TProgInit is a virtual base class for <a class="el" href="classTProgram.html">TProgram</a>.
<p>
The <a class="el" href="classTProgram.html">TProgram</a> constructor calls the TProgInit base constructor, passing to it the addresses of three initialization functions that create the status line, menu bar, and desk top. 
<p>

<p>
Definition at line <a class="el" href="app_8h-source.html#l00439">439</a> of file <a class="el" href="app_8h-source.html">app.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="TProgInit::TProgInit"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
TProgInit::TProgInit (
          </b></td>
          <td valign="bottom"><b>
<a class="el" href="classTStatusLine.html">TStatusLine</a> *(* <em>cStatusLine</em>)(<a class="el" href="classTRect.html">TRect</a>), 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
<a class="el" href="classTMenuBar.html">TMenuBar</a> *(* <em>cMenuBar</em>)(<a class="el" href="classTRect.html">TRect</a>), 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
<a class="el" href="classTDeskTop.html">TDeskTop</a> *(* <em>cDeskTop</em>)(<a class="el" href="classTRect.html">TRect</a>)&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The <a class="el" href="classTProgram.html">TProgram</a> constructor calls the TProgInit constructor, passing to it the addresses of three init functions. The TProgInit constructor creates a status line, menu bar, and desk top. If these calls are successful, the three objects are inserted into the <a class="el" href="classTProgram.html">TProgram</a> group. Variables <a class="el" href="classTProgram.html#p1">TProgram::statusLine</a>, <a class="el" href="classTProgram.html#p2">TProgram::menuBar</a> and <a class="el" href="classTProgram.html#p3">TProgram::deskTop</a> are set to point at these new objects.
<p>
The <a class="el" href="classTGroup.html">TGroup</a> constructor is also invoked to create a full screen view: the video <a class="el" href="classTGroup.html#m4">TGroup::buffer</a> and default palettes are initialized and the following <a class="el" href="classTView.html#m4">TView::state</a> flags are set:
<p>
<pre>
 state = <a class="el" href="views_8h.html#a26">sfVisible</a> | <a class="el" href="views_8h.html#a31">sfSelected</a> | <a class="el" href="views_8h.html#a32">sfFocused</a> |
         <a class="el" href="views_8h.html#a35">sfModal</a> | <a class="el" href="views_8h.html#a37">sfExposed</a>;
 </pre>     </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="n2" doxytag="TProgInit::createDeskTop"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
<a class="el" href="classTDeskTop.html">TDeskTop</a> *(* TProgInit::createDeskTop)(<a class="el" href="classTRect.html">TRect</a>)<code> [protected]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Creates the desk top with the given size.     </td>
  </tr>
</table>
<a name="n1" doxytag="TProgInit::createMenuBar"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
<a class="el" href="classTMenuBar.html">TMenuBar</a> *(* TProgInit::createMenuBar)(<a class="el" href="classTRect.html">TRect</a>)<code> [protected]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Creates the menu bar with the given size.     </td>
  </tr>
</table>
<a name="n0" doxytag="TProgInit::createStatusLine"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
<a class="el" href="classTStatusLine.html">TStatusLine</a> *(* TProgInit::createStatusLine)(<a class="el" href="classTRect.html">TRect</a>)<code> [protected]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Creates the status line with the given size.     </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="app_8h-source.html">app.h</a></ul>
<hr><address><small>Generated at Sat Sep 22 20:19:31 2001 for TVision by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.8.1 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2001</small></address>
</body>
</html>