#include <colorsel.h>
Inheritance diagram for TColorItemList::
Public Methods | |
TColorItemList (const TRect &bounds, TScrollBar *aScrollBar, TColorItem *aItems) | |
virtual void | focusItem (short item) |
virtual void | getText (char *dest, short item, short maxLen) |
virtual void | handleEvent (TEvent &event) |
Static Public Methods | |
TStreamable* | build () |
Static Public Attributes | |
const char* const | name |
Protected Methods | |
TColorItemList (StreamableInit) | |
Protected Attributes | |
TColorItem* | items |
TColorItemList is a simpler variant of TColorGroupList for viewing and selecting single color items rather than groups of colors.
Like TColorGroupList, TColorItemList is specialized derivative of TListViewer. Color items can be selected in any of the usual ways (by mouse or keyboard).
Unlike TColorGroupList, TColorItemList overrides the TListViewer event handler.
Definition at line 717 of file colorsel.h.
|
Calls TListViewer constructor TListViewer(bounds, 1, 0, aScrollBar) to create a single-column list viewer with a single vertical scroll bar. Then, the constructor sets items data member to `aItems' and range to the number of items. |
|
Each streamable class needs a "builder" to allocate the correct memory for its objects together with the initialized virtual table pointers. This is achieved by calling this constructor with an argument of type StreamableInit. |
|
Called to create an object in certain stream-reading situations. Reimplemented from TListViewer. |
|
Selects the given item by calling TListViewer::focusItem(item), then broadcasts a cmNewColorIndex event.
Reimplemented from TListViewer. |
|
Copies the item name corresponding to `item' to the `dest' string. Reimplemented from TListViewer. |
|
Calls TListViewer::handleEvent(). Then, if the event is cmNewColorItem, the appropriate item is focused and the viewer is redrawn. Reimplemented from TListViewer. |
|
The color item list for this viewer. Definition at line 751 of file colorsel.h. |
|
Undocumented. Reimplemented from TListViewer. Definition at line 767 of file colorsel.h. |