#include <colorsel.h>
Inheritance diagram for TColorDisplay::
Public Methods | |
TColorDisplay (const TRect &bounds, const char *aText) | |
virtual | ~TColorDisplay () |
virtual void | draw () |
virtual void | handleEvent (TEvent &event) |
virtual void | setColor (uchar *aColor) |
Static Public Methods | |
TStreamable* | build () |
Static Public Attributes | |
const char* const | name |
Protected Methods | |
TColorDisplay (StreamableInit) | |
virtual void | write (opstream &os) |
virtual void* | read (ipstream &is) |
Protected Attributes | |
uchar* | color |
const char* | text |
TColorItem, TColorGroup, TColorSelector, TMonoSelector, TColorGroupList, TColorItemList and TColorDialog.
TColorDisplay is a view for displaying text so that the user can select a suitable palette.
Definition at line 454 of file colorsel.h.
|
Constructor. Creates a view of the given size with TView constructors TView(bounds), then sets text to the `aText' argument. `bounds' is the bounding rectangle of the view. `aText' is the string printed in the view. |
|
Destructor. Destroys both the view and the text string. |
|
Constructor. Used to recover the view from a stream. |
|
Creates a new TColorDisplay. Used to recover the view from a stream. Called to create an object in certain stream-reading situations. Reimplemented from TView. |
|
Draws the view with given text and current color. Reimplemented from TView. |
|
Calls TView::handleEvent() and redraws the view as appropriate in response to the cmColorBackgroundChanged and cmColorForegroundChanged broadcast events. Reimplemented from TView. |
|
Used to recover the view from a stream. Reads from the input stream `is'. Reimplemented from TView. |
|
Change the currently displayed color. Sets color to `aColor', broadcasts the change to the owning group, then calls drawView(). |
|
Used to store the view in a stream. Writes to the output stream `os'. Reimplemented from TView. |
|
Stores the current color for this display. Definition at line 493 of file colorsel.h. |
|
Undocumented. Reimplemented from TView. Definition at line 521 of file colorsel.h. |
|
Stores a pointer to the text string to be displayed. Definition at line 497 of file colorsel.h. |