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

QColorShower Class Reference

Collaboration diagram for QColorShower:

Collaboration graph
[legend]
List of all members.

Public Slots

void setRgb (QRgb rgb)

Signals

void newCol (QRgb rgb)

Public Member Functions

 QColorShower (QWidget *parent, const char *name=0)
void setHsv (int h, int s, int v)
int currentAlpha () const
void setCurrentAlpha (int a)
void showAlpha (bool b)
QRgb currentColor () const

Private Slots

void rgbEd ()
void hsvEd ()

Private Member Functions

void showCurrentColor ()

Private Attributes

int hue
int sat
int val
QRgb curCol
QColNumLineEdithEd
QColNumLineEditsEd
QColNumLineEditvEd
QColNumLineEditrEd
QColNumLineEditgEd
QColNumLineEditbEd
QColNumLineEditalphaEd
QLabel * alphaLab
QColorShowLabellab
bool rgbOriginal

Constructor & Destructor Documentation

QColorShower::QColorShower QWidget *  parent,
const char *  name = 0
 

Definition at line 1144 of file qcolordialog.cpp.

References alphaEd, alphaLab, bEd, curCol, gEd, hEd, hsvEd(), l, lab, newCol(), rEd, rgbEd(), sEd, setRgb(), tr, and vEd.


Member Function Documentation

int QColorShower::currentAlpha  )  const [inline]
 

Definition at line 1003 of file qcolordialog.cpp.

References alphaEd, and QColNumLineEdit::val().

Referenced by OColorDialogPrivate::currentAlpha(), and QColorDialogPrivate::currentAlpha().

QRgb QColorShower::currentColor  )  const [inline]
 

Definition at line 1008 of file qcolordialog.cpp.

References curCol.

Referenced by QColorDialogPrivate::addCustom(), OColorDialogPrivate::currentColor(), QColorDialogPrivate::currentColor(), hsvEd(), rgbEd(), setHsv(), setRgb(), and showCurrentColor().

void QColorShower::hsvEd  )  [private, slot]
 

Definition at line 1240 of file qcolordialog.cpp.

References bEd, curCol, currentColor(), FALSE, gEd, hEd, hue, newCol(), rEd, rgbOriginal, sat, sEd, QColNumLineEdit::setNum(), showCurrentColor(), val, QColNumLineEdit::val(), and vEd.

Referenced by QColorShower().

void QColorShower::newCol QRgb  rgb  )  [signal]
 

Referenced by hsvEd(), QColorShower(), and rgbEd().

void QColorShower::rgbEd  )  [private, slot]
 

Definition at line 1226 of file qcolordialog.cpp.

References bEd, curCol, currentColor(), gEd, hEd, hue, newCol(), rEd, rgb2hsv(), rgbOriginal, sat, sEd, QColNumLineEdit::setNum(), showCurrentColor(), TRUE, val, QColNumLineEdit::val(), and vEd.

Referenced by QColorShower().

void QColorShower::setCurrentAlpha int  a  )  [inline]
 

Definition at line 1004 of file qcolordialog.cpp.

References alphaEd, and QColNumLineEdit::setNum().

Referenced by OColorDialogPrivate::setCurrentAlpha(), and QColorDialogPrivate::setCurrentAlpha().

void QColorShower::setHsv int  h,
int  s,
int  v
 

Definition at line 1275 of file qcolordialog.cpp.

References bEd, curCol, currentColor(), FALSE, gEd, hEd, hue, rEd, rgbOriginal, sat, sEd, QColNumLineEdit::setNum(), showCurrentColor(), val, and vEd.

Referenced by OColorDialogPrivate::newHsv(), and QColorDialogPrivate::newHsv().

void QColorShower::setRgb QRgb  rgb  )  [slot]
 

Definition at line 1257 of file qcolordialog.cpp.

References bEd, curCol, currentColor(), gEd, hEd, hue, rEd, rgb2hsv(), rgbOriginal, sat, sEd, QColNumLineEdit::setNum(), showCurrentColor(), TRUE, val, and vEd.

Referenced by QColorShower(), OColorDialogPrivate::setCurrentColor(), and QColorDialogPrivate::setCurrentColor().

void QColorShower::showAlpha bool  b  ) 
 

Definition at line 1073 of file qcolordialog.cpp.

References alphaEd, and alphaLab.

Referenced by OColorDialogPrivate::showAlpha(), and QColorDialogPrivate::showAlpha().

void QColorShower::showCurrentColor  )  [private]
 

Definition at line 1220 of file qcolordialog.cpp.

References currentColor(), FALSE, lab, and QColorShowLabel::setColor().

Referenced by hsvEd(), rgbEd(), setHsv(), and setRgb().


Member Data Documentation

QColNumLineEdit* QColorShower::alphaEd [private]
 

Definition at line 1028 of file qcolordialog.cpp.

Referenced by currentAlpha(), QColorShower(), setCurrentAlpha(), and showAlpha().

QLabel* QColorShower::alphaLab [private]
 

Definition at line 1029 of file qcolordialog.cpp.

Referenced by QColorShower(), and showAlpha().

QColNumLineEdit* QColorShower::bEd [private]
 

Definition at line 1027 of file qcolordialog.cpp.

Referenced by hsvEd(), QColorShower(), rgbEd(), setHsv(), and setRgb().

QRgb QColorShower::curCol [private]
 

Definition at line 1021 of file qcolordialog.cpp.

Referenced by currentColor(), hsvEd(), QColorShower(), rgbEd(), setHsv(), and setRgb().

QColNumLineEdit* QColorShower::gEd [private]
 

Definition at line 1026 of file qcolordialog.cpp.

Referenced by hsvEd(), QColorShower(), rgbEd(), setHsv(), and setRgb().

QColNumLineEdit* QColorShower::hEd [private]
 

Definition at line 1022 of file qcolordialog.cpp.

Referenced by hsvEd(), QColorShower(), rgbEd(), setHsv(), and setRgb().

int QColorShower::hue [private]
 

Definition at line 1020 of file qcolordialog.cpp.

Referenced by hsvEd(), rgbEd(), setHsv(), and setRgb().

QColorShowLabel* QColorShower::lab [private]
 

Definition at line 1030 of file qcolordialog.cpp.

Referenced by QColorShower(), and showCurrentColor().

QColNumLineEdit* QColorShower::rEd [private]
 

Definition at line 1025 of file qcolordialog.cpp.

Referenced by hsvEd(), QColorShower(), rgbEd(), setHsv(), and setRgb().

bool QColorShower::rgbOriginal [private]
 

Definition at line 1031 of file qcolordialog.cpp.

Referenced by hsvEd(), rgbEd(), setHsv(), and setRgb().

int QColorShower::sat [private]
 

Definition at line 1020 of file qcolordialog.cpp.

Referenced by hsvEd(), rgbEd(), setHsv(), and setRgb().

QColNumLineEdit* QColorShower::sEd [private]
 

Definition at line 1023 of file qcolordialog.cpp.

Referenced by hsvEd(), QColorShower(), rgbEd(), setHsv(), and setRgb().

int QColorShower::val [private]
 

Definition at line 1020 of file qcolordialog.cpp.

Referenced by hsvEd(), rgbEd(), setHsv(), and setRgb().

QColNumLineEdit* QColorShower::vEd [private]
 

Definition at line 1024 of file qcolordialog.cpp.

Referenced by hsvEd(), QColorShower(), rgbEd(), setHsv(), and setRgb().


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