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

TColorGroupList Class Reference

Implements a scrollable list of named color groups. More...

#include <colorsel.h>

Inheritance diagram for TColorGroupList::

TListViewer TView TObject TStreamable List of all members.

Public Methods

 TColorGroupList (const TRect &bounds, TScrollBar *aScrollBar, TColorGroup *aGroups)
virtual ~TColorGroupList ()
virtual void focusItem (short item)
virtual void getText (char *dest, short item, short maxLen)
virtual void handleEvent (TEvent &)
void setGroupIndex (uchar groupNum, uchar itemNum)
TColorGroupgetGroup (uchar groupNum)
uchar getGroupIndex (uchar groupNum)
uchar getNumGroups ()

Static Public Methods

TStreamablebuild ()

Static Public Attributes

const char* const name

Protected Methods

 TColorGroupList (StreamableInit)
virtual void write (opstream &os)
virtual void* read (ipstream &is)

Protected Attributes

TColorGroupgroups

Detailed Description

The interrelated classes TColorItem, TColorGroup, TColorSelector, TMonoSelector, TColorDisplay, TColorGroupList, TColorItemList and TColorDialog provide viewers and dialog boxes from which the user can select and change the color assignments from available palettes with immediate effect on the screen.

TColorGroupList is a specialized derivative of TListViewer providing a scrollable list of named color groups. Groups can be selected in any of the usual ways (by mouse or keyboard).

TColorGroupList uses the TListViewer event handler without modification.

Definition at line 580 of file colorsel.h.


Constructor & Destructor Documentation

TColorGroupList::TColorGroupList ( const TRect & bounds,
TScrollBar * aScrollBar,
TColorGroup * aGroups )
 

Constructor.

Calls TListViewer(bounds, 1, 0, aScrollBar) to create a single-column list viewer a single vertical scroll bar. Then, sets groups data member to `aGroups'.

See also:
TListViewer::TListViewer

TColorGroupList::~TColorGroupList ( ) [virtual]
 

Destroys the list viewer and all associated groups and their items.

TColorGroupList::TColorGroupList ( StreamableInit ) [protected]
 

Undocumented.


Member Function Documentation

TStreamable * TColorGroupList::build ( ) [static]
 

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

Reimplemented from TListViewer.

void TColorGroupList::focusItem ( short item ) [virtual]
 

Selects the given item by calling TListViewer::focusItem(item) and then broadcasts a cmNewColorItem event.

See also:
TListViewer::focusItem

Reimplemented from TListViewer.

TColorGroup * TColorGroupList::getGroup ( uchar groupNum )
 

Undocumented.

uchar TColorGroupList::getGroupIndex ( uchar groupNum )
 

Undocumented.

uchar TColorGroupList::getNumGroups ( )
 

Undocumented.

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

Copies the group name corresponding to `item' to the `dest' string.

Reimplemented from TListViewer.

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

Undocumented.

Reimplemented from TListViewer.

void * TColorGroupList::read ( ipstream & is ) [protected, virtual]
 

Reads from the input stream `is'.

Reimplemented from TListViewer.

void TColorGroupList::setGroupIndex ( uchar groupNum,
uchar itemNum )
 

Undocumented.

void TColorGroupList::write ( opstream & os ) [protected, virtual]
 

Writes to the output stream `os'.

Reimplemented from TListViewer.


Member Data Documentation

TColorGroup * TColorGroupList::groups [protected]
 

The color group for this list viewer.

Definition at line 617 of file colorsel.h.

const char *const TColorGroupList::name [static]
 

Undocumented.

Reimplemented from TListViewer.

Definition at line 658 of file colorsel.h.


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