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

TMonoSelector Class Reference

Monochrome color selector. More...

#include <colorsel.h>

Inheritance diagram for TMonoSelector::

TCluster TView TObject TStreamable List of all members.

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

TStreamablebuild ()

Static Public Attributes

const char* const name

Protected Methods

 TMonoSelector (StreamableInit)

Detailed Description

The interrelated classes TColorItem, TColorGroup, TColorSelector, TMonoSelector, TColorDisplay, TColorGroupList, TColorItemList and TColorDialog are used to 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.

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 & Destructor Documentation

TMonoSelector::TMonoSelector ( const TRect & bounds )
 

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.

See also:
TCluster::TCluster

TMonoSelector::TMonoSelector ( StreamableInit ) [protected]
 

Constructor.

Used to recover the view from a stream.


Member Function Documentation

TStreamable * TMonoSelector::build ( ) [static]
 

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.

void TMonoSelector::draw ( ) [virtual]
 

Draws the selector cluster.

Reimplemented from TView.

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

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.

Boolean TMonoSelector::mark ( int item ) [virtual]
 

Returns True if the item'th button has been selected; otherwise returns False.

Reimplemented from TCluster.

void TMonoSelector::movedTo ( int item ) [virtual]
 

Sets value to the item'th attribute (same effect as press()).

Reimplemented from TCluster.

void TMonoSelector::newColor ( )
 

Informs the owning group if the attribute has changed.

void TMonoSelector::press ( int item ) [virtual]
 

"Presses" the item'th button and calls newColor().

Reimplemented from TCluster.


Member Data Documentation

const char *const TMonoSelector::name [static]
 

Undocumented.

Reimplemented from TCluster.

Definition at line 401 of file colorsel.h.


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