Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OColorDialog Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/libopie/colordialog.h>

Collaboration diagram for OColorDialog:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static QColor getColor (const QColor &, QWidget *parent=0, const char *name=0)
static QRgb getRgba (const QRgb &, bool *ok=0, QWidget *parent=0, const char *name=0)

Private Member Functions

 ~OColorDialog ()
 OColorDialog (QWidget *parent=0, const char *name=0, bool modal=FALSE)
void setColor (const QColor &)
QColor color () const
void setSelectedAlpha (int)
int selectedAlpha () const

Private Attributes

OColorDialogPrivated

Friends

class OColorDialogPrivate

Constructor & Destructor Documentation

OColorDialog::~OColorDialog  )  [private]
 

Destructs the dialog and frees any memory it allocated.

Definition at line 815 of file colordialog.cpp.

OColorDialog::OColorDialog QWidget *  parent = 0,
const char *  name = 0,
bool  modal = FALSE
[private]
 

Constructs a default color dialog. Use setColor() for setting an initial value.

See also:
getColor()

Definition at line 720 of file colordialog.cpp.

References d, and OColorDialogPrivate.

Referenced by getColor(), and getRgba().


Member Function Documentation

QColor OColorDialog::color  )  const [private]
 

Returns the color currently selected in the dialog.

See also:
setColor()

Definition at line 805 of file colordialog.cpp.

References OColorDialogPrivate::currentColor(), and d.

Referenced by getColor(), and getRgba().

QColor OColorDialog::getColor const QColor &  initial,
QWidget *  parent = 0,
const char *  name = 0
[static]
 

Pops up a modal color dialog letting the user choose a color and returns that color. The color is initially set to initial. Returns an invalid color if the user cancels the dialog. All colors allocated by the dialog will be deallocated before this function returns.

Definition at line 734 of file colordialog.cpp.

References color(), OColorDialog(), qApp, setColor(), tr, and TRUE.

Referenced by OColorPopupMenu::moreColorClicked().

QRgb OColorDialog::getRgba const QRgb &  initial,
bool *  ok = 0,
QWidget *  parent = 0,
const char *  name = 0
[static]
 

Pops up a modal color dialog, letting the user choose a color and an alpha channel value. The color+alpha is initially set to initial.

If ok is non-null, *ok is set to TRUE if the user clicked OK, and FALSE if the user clicked Cancel.

If the user clicks Cancel the initial value is returned.

Definition at line 771 of file colordialog.cpp.

References alpha, color(), OColorDialog(), selectedAlpha(), setColor(), setSelectedAlpha(), and TRUE.

int OColorDialog::selectedAlpha  )  const [private]
 

Returns the value selected for the alpha channel.

Definition at line 851 of file colordialog.cpp.

References OColorDialogPrivate::currentAlpha(), and d.

Referenced by getRgba().

void OColorDialog::setColor const QColor &  c  )  [private]
 

Sets the color shown in the dialog to c.

See also:
color()

Definition at line 827 of file colordialog.cpp.

References d, and OColorDialogPrivate::setCurrentColor().

Referenced by getColor(), and getRgba().

void OColorDialog::setSelectedAlpha int  a  )  [private]
 

Sets the initial alpha channel value to a, and show the alpha channel entry box.

Definition at line 840 of file colordialog.cpp.

References d, OColorDialogPrivate::setCurrentAlpha(), OColorDialogPrivate::showAlpha(), and TRUE.

Referenced by getRgba().


Friends And Related Function Documentation

friend class OColorDialogPrivate [friend]
 

Definition at line 81 of file colordialog.h.

Referenced by OColorDialog().


Member Data Documentation

OColorDialogPrivate* OColorDialog::d [private]
 

Definition at line 80 of file colordialog.h.

Referenced by color(), OColorDialog(), selectedAlpha(), setColor(), and setSelectedAlpha().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:41:49 2005 for OPIE by  doxygen 1.4.2