summaryrefslogtreecommitdiff
path: root/freebsdtvision/doc/html/classTSortedListBox.html
blob: 479753fddaab987c1fce271c88c06f6614fbdaf9 (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
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<!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>TSortedListBox class Reference</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>TSortedListBox Class Reference</h1>A base for other list box classes. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="stddlg_8h-source.html">stddlg.h</a>&gt;</code>
<p>
<p>Inheritance diagram for TSortedListBox:
<p><center><img src="classTSortedListBox.png" usemap="#TSortedListBox_map" border="0" alt=""></center>
<map name="TSortedListBox_map">
<area href="classTListBox.html" alt="TListBox" shape="rect" coords="53,168,149,192">
<area href="classTListViewer.html" alt="TListViewer" shape="rect" coords="53,112,149,136">
<area href="classTView.html" alt="TView" shape="rect" coords="53,56,149,80">
<area href="classTObject.html" alt="TObject" shape="rect" coords="0,0,96,24">
<area href="classTStreamable.html" alt="TStreamable" shape="rect" coords="106,0,202,24">
<area href="classTFileList.html" alt="TFileList" shape="rect" coords="53,280,149,304">
</map>
<a href="classTSortedListBox-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<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="classTSortedListBox.html#a0">TSortedListBox</a> (const <a class="el" href="classTRect.html">TRect</a> &amp;bounds, <a class="el" href="ttypes_8h.html#a0">ushort</a> aNumCols, <a class="el" href="classTScrollBar.html">TScrollBar</a> *aScrollBar)</td></tr>
<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classTSortedListBox.html#a1">handleEvent</a> (<a class="el" href="structTEvent.html">TEvent</a> &amp;event)</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classTSortedListBox.html#a2">newList</a> (<a class="el" href="classTSortedCollection.html">TSortedCollection</a> *aList)</td></tr>
<tr><td nowrap align=right valign=top>void *&nbsp;</td><td valign=bottom><a class="el" href="classTSortedListBox.html#a3">read</a> (<a class="el" href="classipstream.html">ipstream</a> &amp;is)</td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classTSortedCollection.html">TSortedCollection</a> *&nbsp;</td><td valign=bottom><a class="el" href="classTSortedListBox.html#a4">list</a> ()</td></tr>
<tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classTStreamable.html">TStreamable</a> *&nbsp;</td><td valign=bottom><a class="el" href="classTSortedListBox.html#d0">build</a> ()</td></tr>
<tr><td colspan=2><br><h2>Static Public Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top>const char *const&nbsp;</td><td valign=bottom><a class="el" href="classTSortedListBox.html#p0">name</a></td></tr>
<tr><td colspan=2><br><h2>Protected Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classTSortedListBox.html#b0">TSortedListBox</a> (<a class="el" href="ttypes_8h.html#a14">StreamableInit</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="ttypes_8h.html#a1">uchar</a>&nbsp;</td><td valign=bottom><a class="el" href="classTSortedListBox.html#n0">shiftState</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
TSortedListBox is a specialized <a class="el" href="classTListBox.html">TListBox</a> derivative that maintains its items in a sorted sequence. It is intended as a base for other list box classes. 
<p>

<p>
Definition at line <a class="el" href="stddlg_8h-source.html#l00362">362</a> of file <a class="el" href="stddlg_8h-source.html">stddlg.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="TSortedListBox::TSortedListBox"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> TSortedListBox::TSortedListBox </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classTRect.html">TRect</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>bounds</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="ttypes_8h.html#a0">ushort</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>aNumCols</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classTScrollBar.html">TScrollBar</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>aScrollBar</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

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

<p>
Calls <a class="el" href="classTListBox.html">TListBox</a> constructor to create a list box with the given size `bounds', number of columns `aNumCols', and vertical scroll bar `aScrollBar'. <dl compact><dt><b>See also: </b></dt><dd>
<a class="el" href="classTListBox.html#a0">TListBox::TListBox</a></dl>Data member <a class="el" href="classTSortedListBox.html#n0">shiftState</a> is set to 0 and the cursor is set at the first item.     </td>
  </tr>
</table>
<a name="b0" doxytag="TSortedListBox::TSortedListBox"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> TSortedListBox::TSortedListBox </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="ttypes_8h.html#a14">StreamableInit</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [inline, protected]</code></td>
        </tr>

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

<p>
Undocumented. 
<p>
Definition at line <a class="el" href="stddlg_8h-source.html#l00426">426</a> of file <a class="el" href="stddlg_8h-source.html">stddlg.h</a>.
<p>
References <a class="el" href="ttypes_8h-source.html#l00062">StreamableInit</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="d0" doxytag="TSortedListBox::build"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classTStreamable.html">TStreamable</a>* TSortedListBox::build </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [static]</code></td>
        </tr>

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

<p>
Undocumented. 
<p>
Reimplemented from <a class="el" href="classTListBox.html#d0">TListBox</a>.
<p>
Reimplemented in <a class="el" href="classTFileList.html#d0">TFileList</a>.    </td>
  </tr>
</table>
<a name="a1" doxytag="TSortedListBox::handleEvent"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> virtual void TSortedListBox::handleEvent </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structTEvent.html">TEvent</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>event</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

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

<p>
Calls <a class="el" href="classTListViewer.html#a7">TListBox::handleEvent()</a>, then handles the special key and mouse events used to select items from the list. 
<p>
Reimplemented from <a class="el" href="classTListViewer.html#a7">TListViewer</a>.    </td>
  </tr>
</table>
<a name="a4" doxytag="TSortedListBox::list"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classTSortedCollection.html">TSortedCollection</a> * TSortedListBox::list </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [inline]</code></td>
        </tr>

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

<p>
Returns a pointer to the <a class="el" href="classTSortedCollection.html">TSortedCollection</a> object currently associated with this sorted list box. This gives access the the private items data member, a pointer to the items to be listed and selected. <dl compact><dt><b>See also: </b></dt><dd>
<a class="el" href="classTListBox.html#a7">TListBox::list</a></dl>Derived sorted list box classes will typically override <a class="el" href="classTSortedListBox.html#a4">list()</a> to provide a pointer to objects of a class derived from <a class="el" href="classTSortedCollection.html">TSortedCollection</a>. 
<p>
Reimplemented from <a class="el" href="classTListBox.html#a7">TListBox</a>.
<p>
Reimplemented in <a class="el" href="classTFileList.html#a11">TFileList</a>.
<p>
Definition at line <a class="el" href="stddlg_8h-source.html#l00460">460</a> of file <a class="el" href="stddlg_8h-source.html">stddlg.h</a>.
<p>
References <a class="el" href="dialogs_8h-source.html#l01775">TListBox::list()</a>.
<p>
Referenced by <a class="el" href="stddlg_8h-source.html#l00614">TFileList::list()</a>.    </td>
  </tr>
</table>
<a name="a2" doxytag="TSortedListBox::newList"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void TSortedListBox::newList </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classTSortedCollection.html">TSortedCollection</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>aList</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

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

<p>
Calls <a class="el" href="classTListBox.html#a5">TListBox::newList()</a> to delete the existing <a class="el" href="classTSortedCollection.html">TSortedCollection</a> object associated with this list box and replace it with the collection given by `aList'.
<p>
The first item of the new collection will receive the focus. 
<p>
Referenced by <a class="el" href="stddlg_8h-source.html#l00609">TFileList::newList()</a>.    </td>
  </tr>
</table>
<a name="a3" doxytag="TSortedListBox::read"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void* TSortedListBox::read </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classipstream.html">ipstream</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>is</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

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

<p>
Reads from the input stream `is'. 
<p>
Reimplemented from <a class="el" href="classTListBox.html#b2">TListBox</a>.    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="p0" doxytag="TSortedListBox::name"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const char* const TSortedListBox::name<code> [static]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Undocumented. 
<p>
Reimplemented from <a class="el" href="classTListBox.html#p0">TListBox</a>.
<p>
Reimplemented in <a class="el" href="classTFileList.html#p0">TFileList</a>.
<p>
Definition at line <a class="el" href="stddlg_8h-source.html#l00431">431</a> of file <a class="el" href="stddlg_8h-source.html">stddlg.h</a>.    </td>
  </tr>
</table>
<a name="n0" doxytag="TSortedListBox::shiftState"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="ttypes_8h.html#a1">uchar</a> TSortedListBox::shiftState<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Undocumented. 
<p>
Definition at line <a class="el" href="stddlg_8h-source.html#l00410">410</a> of file <a class="el" href="stddlg_8h-source.html">stddlg.h</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="stddlg_8h-source.html">stddlg.h</a></ul>
<hr><address style="align: right;"><small>Generated on Wed Apr 2 22:13:17 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>