#include <colorsel.h>
Inheritance diagram for TColorGroupList::
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) |
TColorGroup* | getGroup (uchar groupNum) |
uchar | getGroupIndex (uchar groupNum) |
uchar | getNumGroups () |
Static Public Methods | |
TStreamable* | build () |
Static Public Attributes | |
const char* const | name |
Protected Methods | |
TColorGroupList (StreamableInit) | |
virtual void | write (opstream &os) |
virtual void* | read (ipstream &is) |
Protected Attributes | |
TColorGroup* | groups |
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. 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'.
|
|
Destroys the list viewer and all associated groups and their items. |
|
Undocumented. |
|
Called to create an object in certain stream-reading situations. Reimplemented from TListViewer. |
|
Selects the given item by calling TListViewer::focusItem(item) and then broadcasts a cmNewColorItem event.
Reimplemented from TListViewer. |
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
Copies the group name corresponding to `item' to the `dest' string. Reimplemented from TListViewer. |
|
Undocumented. Reimplemented from TListViewer. |
|
Reads from the input stream `is'. Reimplemented from TListViewer. |
|
Undocumented. |
|
Writes to the output stream `os'. Reimplemented from TListViewer. |
|
The color group for this list viewer. Definition at line 617 of file colorsel.h. |
|
Undocumented. Reimplemented from TListViewer. Definition at line 658 of file colorsel.h. |