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

TDirListBox Class Reference

Specialized derivative of TListBox for displaying and selecting directories stored in a TDirCollection object. More...

#include <stddlg.h>

Inheritance diagram for TDirListBox::

TListBox TListViewer TView TObject TStreamable List of all members.

Public Methods

 TDirListBox (const TRect &bounds, TScrollBar *aScrollBar)
 ~TDirListBox ()
virtual void getText (char *dest, short item, short maxLen)
virtual Boolean isSelected (short item)
virtual void selectItem (short item)
void newDirectory (const char *aList)
virtual void setState (ushort aState, Boolean enable)
TDirCollectionlist ()

Static Public Methods

TStreamablebuild ()

Static Public Attributes

const char* pathDir
const char* firstDir
const char* middleDir
const char* lastDir
const char* graphics
const char* const name

Protected Methods

 TDirListBox (StreamableInit)

Detailed Description

TDirListBox is a specialized derivative of TListBox for displaying and selecting directories stored in a TDirCollection object.

By default, these are displayed in a single column with an optional vertical scroll bar.

Definition at line 1159 of file stddlg.h.


Constructor & Destructor Documentation

TDirListBox::TDirListBox ( const TRect & bounds,
TScrollBar * aScrollBar )
 

Calls TListBox::TListBox(bounds, 1, aScrollBar) to create a single-column list box with the given bounds and vertical scroll bar.

See also:
TListBox::TListBox

TDirListBox::~TDirListBox ( )
 

Calls its base destructor to dispose of the list box.

See also:
TListBox::~TListBox

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

Undocumented.

Definition at line 1241 of file stddlg.h.


Member Function Documentation

TStreamable * TDirListBox::build ( ) [static]
 

Called to create an object in certain stream-reading situations.

Reimplemented from TListBox.

void TDirListBox::getText ( char * dest,
short item,
short maxLen ) [virtual]
 

Grabs the text string at index `item' and copies it to `dest'.

Reimplemented from TListBox.

Boolean TDirListBox::isSelected ( short item ) [virtual]
 

Returns True if `item' is selected, otherwise returns False.

Reimplemented from TListViewer.

TDirCollection * TDirListBox::list ( ) [inline]
 

Returns a pointer to the TDirCollection object currently associated with this directory list box.

Reimplemented from TListBox.

Definition at line 1275 of file stddlg.h.

void TDirListBox::newDirectory ( const char * aList )
 

Deletes the existing TDirEntry object associated with this list box and replaces it with the file collection given by `aList'.

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

void TDirListBox::selectItem ( short item ) [virtual]
 

Undocumented.

Reimplemented from TListViewer.

void TDirListBox::setState ( ushort aState,
Boolean enable ) [virtual]
 

By default, calls the ancestral TListBox::setState().

Reimplemented from TListViewer.


Member Data Documentation

const char * TDirListBox::firstDir [static]
 

Undocumented.

Definition at line 1216 of file stddlg.h.

const char * TDirListBox::graphics [static]
 

Undocumented.

Definition at line 1228 of file stddlg.h.

const char * TDirListBox::lastDir [static]
 

Undocumented.

Definition at line 1224 of file stddlg.h.

const char * TDirListBox::middleDir [static]
 

Undocumented.

Definition at line 1220 of file stddlg.h.

const char *const TDirListBox::name [static]
 

Undocumented.

Reimplemented from TListBox.

Definition at line 1246 of file stddlg.h.

const char * TDirListBox::pathDir [static]
 

Undocumented.

Definition at line 1212 of file stddlg.h.


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