Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TSortedListBox Class Reference

A base for other list box classes. More...

#include <stddlg.h>

Inheritance diagram for TSortedListBox::

TListBox TListViewer TView TObject TStreamable TFileList List of all members.

Public Methods

 TSortedListBox (const TRect &bounds, ushort aNumCols, TScrollBar *aScrollBar)
virtual void handleEvent (TEvent &event)
void newList (TSortedCollection *aList)
void* read (ipstream &is)
TSortedCollectionlist ()

Static Public Methods

TStreamablebuild ()

Static Public Attributes

const char* const name

Protected Methods

 TSortedListBox (StreamableInit)

Protected Attributes

uchar shiftState

Detailed Description

TSortedListBox is a specialized TListBox derivative that maintains its items in a sorted sequence. It is intended as a base for other list box classes.

Definition at line 362 of file stddlg.h.


Constructor & Destructor Documentation

TSortedListBox::TSortedListBox ( const TRect & bounds,
ushort aNumCols,
TScrollBar * aScrollBar )
 

Calls TListBox constructor to create a list box with the given size `bounds', number of columns `aNumCols', and vertical scroll bar `aScrollBar'.

See also:
TListBox::TListBox

Data member shiftState is set to 0 and the cursor is set at the first item.

TSortedListBox::TSortedListBox ( StreamableInit ) [inline, protected]
 

Undocumented.

Definition at line 426 of file stddlg.h.


Member Function Documentation

TStreamable * TSortedListBox::build ( ) [static]
 

Undocumented.

Reimplemented from TListBox.

Reimplemented in TFileList.

void TSortedListBox::handleEvent ( TEvent & event ) [virtual]
 

Calls TListBox::handleEvent(), then handles the special key and mouse events used to select items from the list.

Reimplemented from TListViewer.

TSortedCollection * TSortedListBox::list ( ) [inline]
 

Returns a pointer to the TSortedCollection 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.

See also:
TListBox::list

Derived sorted list box classes will typically override list() to provide a pointer to objects of a class derived from TSortedCollection.

Reimplemented from TListBox.

Reimplemented in TFileList.

Definition at line 460 of file stddlg.h.

void TSortedListBox::newList ( TSortedCollection * aList )
 

Calls TListBox::newList() to delete the existing TSortedCollection object associated with this list box and replace it with the collection given by `aList'.

The first item of the new collection will receive the focus.

void * TSortedListBox::read ( ipstream & is ) [virtual]
 

Reads from the input stream `is'.

Reimplemented from TListBox.


Member Data Documentation

const char *const TSortedListBox::name [static]
 

Undocumented.

Reimplemented from TListBox.

Reimplemented in TFileList.

Definition at line 431 of file stddlg.h.

uchar TSortedListBox::shiftState [protected]
 

Undocumented.

Definition at line 410 of file stddlg.h.


The documentation for this class was generated from the following file:
Generated at Sat Sep 22 20:19:34 2001 for TVision by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001