#include <colorsel.h>
Inheritance diagram for TMonoSelector::
Public Methods | |
TMonoSelector (const TRect &bounds) | |
virtual void | draw () |
virtual void | handleEvent (TEvent &event) |
virtual Boolean | mark (int item) |
void | newColor () |
virtual void | press (int item) |
void | movedTo (int item) |
Static Public Methods | |
TStreamable* | build () |
Static Public Attributes | |
const char* const | name |
Protected Methods | |
TMonoSelector (StreamableInit) |
TMonoSelector implements a cluster from which you can select normal, highlight, underline, or inverse video attributes on monochrome screens.
Definition at line 341 of file colorsel.h.
|
Constructor. Creates a cluster by calling the TCluster constructor with four buttons labeled: "Normal", "Highlight", "Underline", and "Inverse". The evBroadcast flag is set in eventMask. `bounds' is the bounding rectangle of the view.
|
|
Constructor. Used to recover the view from a stream. |
|
Creates a new TMonoSelector. Used to recover the view from a stream. Called to create an object in certain stream-reading situations. Reimplemented from TCluster. |
|
Draws the selector cluster. Reimplemented from TView. |
|
Calls TCluster::handleEvent() and responds to cmColorSet events by changing the data member value accordingly. The view is redrawn if necessary. value holds a video attribute corresponding to the selected attribute. Reimplemented from TCluster. |
|
Returns True if the item'th button has been selected; otherwise returns False. Reimplemented from TCluster. |
|
Sets value to the item'th attribute (same effect as press()). Reimplemented from TCluster. |
|
Informs the owning group if the attribute has changed. |
|
"Presses" the item'th button and calls newColor(). Reimplemented from TCluster. |
|
Undocumented. Reimplemented from TCluster. Definition at line 401 of file colorsel.h. |