TColorDialog Class Reference

[tvision Index] [tvision Hierarchy] [Headers]


Change the standard palette More...

#include <colorsel.h>

Inherits: TDialog

Public Members

Protected Members


Detailed Description

This class implements a dialog used to change the standard color palette.

See Also: TDialog


TColorDialog( TPalette *aPalette, TColorGroup *aGroups ) [public]

Constructor.

`aPalette' is a pointer to the initial palette to be modified. This class creates a local copy of the initial palette, so the initial palette is never modified. You may safely leave this field to 0 and set the palette with a subsequent call to setData(). `aGroups' is a pointer to a cluster of objects which specifies all the items in the palette.

See file `demo/tvdemo2.cc' for an example.

See Also:
TColorDialog::setData

~TColorDialog() [public]

Destructor.

Deletes the local copy of the palette.

ushort dataSize() [public virtual]

Returns the size of the palette, expressed in bytes.

void getData( void *rec ) [public virtual]

Reads the data record of this dialog.

`rec' should point to a TPalette object. Its contents will be overwritten by the contents of this object.

void handleEvent( TEvent& event ) [public virtual]

Handles TColorDialog events.

void setData( void *rec) [public virtual]

Writes the data record of this view.

`rec' should point to a TPalette object.

TPalette *pal[public]

Is a pointer to the local palette.

void getIndexes(TColorIndex*&) [public]

YYY

void setIndexes(TColorIndex*&) [public]

YYY

TStreamable* build() [public static]

YYY

TColorDisplay *display[protected]

YYY

TColorGroupList *groups[protected]

YYY

TLabel *forLabel[protected]

YYY

TColorSelector *forSel[protected]

YYY

TLabel *bakLabel[protected]

YYY

TColorSelector *bakSel[protected]

YYY

TLabel *monoLabel[protected]

YYY

TMonoSelector *monoSel[protected]

YYY

uchar groupIndex[protected]

YYY

TColorDialog( StreamableInit ) [protected]

Constructor.

Used to recover the dialog from a stream.

void write( opstream& os ) [protected virtual]

Used to store the dialog in a stream.

void* read( ipstream& is ) [protected virtual]

Used to recover the dialog from a stream.


Documentation generated by sergio@athena.milk.it on Wed Feb 10 22:11:47 CET 1999
Kdoc