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

Opie::Ui::OGradientSelector Class Reference

#include </home/clem/local/src/opie/libopie2/opieui/oselector.h>

Inheritance diagram for Opie::Ui::OGradientSelector:

Inheritance graph
[legend]
Collaboration diagram for Opie::Ui::OGradientSelector:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OGradientSelector (QWidget *parent=0, const char *name=0)
 OGradientSelector (Orientation o, QWidget *parent=0, const char *name=0)
 ~OGradientSelector ()
void setColors (const QColor &col1, const QColor &col2)
void setText (const QString &t1, const QString &t2)
void setFirstColor (const QColor &col)
void setSecondColor (const QColor &col)
void setFirstText (const QString &t)
void setSecondText (const QString &t)
const QColor firstColor () const
const QColor secondColor () const
const QString firstText () const
const QString secondText () const

Protected Member Functions

virtual void drawContents (QPainter *)
virtual QSize minimumSize () const

Properties

QColor firstColor
QColor secondColor
QString firstText
QString secondText

Private Member Functions

void init ()

Private Attributes

QColor color1
QColor color2
QString text1
QString text2
OGradientSelectorPrivate * d

Detailed Description

The OGradientSelector widget allows the user to choose from a one-dimensional range of colors which is given as a gradient between two colors provided by the programmer.

Definition at line 301 of file oselector.h.


Constructor & Destructor Documentation

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

Constructs a horizontal color selector which contains a gradient between white and black.

Definition at line 384 of file oselector.cpp.

References init().

OGradientSelector::OGradientSelector Orientation  o,
QWidget *  parent = 0,
const char *  name = 0
 

Constructs a colors selector with orientation o which contains a gradient between white and black.

Definition at line 391 of file oselector.cpp.

References init().

OGradientSelector::~OGradientSelector  ) 
 

Destructs the widget.

Definition at line 399 of file oselector.cpp.


Member Function Documentation

void OGradientSelector::drawContents QPainter *   )  [protected, virtual]
 

Reimplemented from Opie::Ui::OSelector.

Definition at line 412 of file oselector.cpp.

References col, color1, color2, Opie::Ui::OSelector::contentsRect(), Opie::Ui::OImageEffect::dither(), height, image, Opie::Ui::OSelector::orientation(), p, s, scale(), text1, text2, width, Opie::MM::x, and Opie::MM::y.

const QColor Opie::Ui::OGradientSelector::firstColor  )  const [inline]
 

Definition at line 349 of file oselector.h.

References color1.

const QString Opie::Ui::OGradientSelector::firstText  )  const [inline]
 

Definition at line 354 of file oselector.h.

References text1.

void OGradientSelector::init  )  [private]
 

Definition at line 403 of file oselector.cpp.

References color1, color2, text1, and text2.

Referenced by OGradientSelector().

virtual QSize Opie::Ui::OGradientSelector::minimumSize  )  const [inline, protected, virtual]
 

Definition at line 368 of file oselector.h.

const QColor Opie::Ui::OGradientSelector::secondColor  )  const [inline]
 

Definition at line 351 of file oselector.h.

References color2.

const QString Opie::Ui::OGradientSelector::secondText  )  const [inline]
 

Definition at line 356 of file oselector.h.

References text2.

void Opie::Ui::OGradientSelector::setColors const QColor &  col1,
const QColor &  col2
[inline]
 

Sets the two colors which span the gradient.

Definition at line 328 of file oselector.h.

References color1, and color2.

void Opie::Ui::OGradientSelector::setFirstColor const QColor &  col  )  [inline]
 

Set each color on its own.

Definition at line 336 of file oselector.h.

References color1.

void Opie::Ui::OGradientSelector::setFirstText const QString t  )  [inline]
 

Set each description on its own

Definition at line 344 of file oselector.h.

References text1.

void Opie::Ui::OGradientSelector::setSecondColor const QColor &  col  )  [inline]
 

Definition at line 338 of file oselector.h.

References color2.

void Opie::Ui::OGradientSelector::setSecondText const QString t  )  [inline]
 

Definition at line 346 of file oselector.h.

References text2.

void Opie::Ui::OGradientSelector::setText const QString t1,
const QString t2
[inline]
 

Definition at line 330 of file oselector.h.

References text1, and text2.


Member Data Documentation

QColor Opie::Ui::OGradientSelector::color1 [private]
 

Definition at line 373 of file oselector.h.

Referenced by drawContents(), firstColor(), init(), setColors(), and setFirstColor().

QColor Opie::Ui::OGradientSelector::color2 [private]
 

Definition at line 374 of file oselector.h.

Referenced by drawContents(), init(), secondColor(), setColors(), and setSecondColor().

OGradientSelectorPrivate* Opie::Ui::OGradientSelector::d [private]
 

Reimplemented from Opie::Ui::OSelector.

Definition at line 379 of file oselector.h.

QString Opie::Ui::OGradientSelector::text1 [private]
 

Definition at line 375 of file oselector.h.

Referenced by drawContents(), firstText(), init(), setFirstText(), and setText().

QString Opie::Ui::OGradientSelector::text2 [private]
 

Definition at line 376 of file oselector.h.

Referenced by drawContents(), init(), secondText(), setSecondText(), and setText().


Property Documentation

QColor Opie::Ui::OGradientSelector::firstColor [read, write]
 

Definition at line 303 of file oselector.h.

QString Opie::Ui::OGradientSelector::firstText [read, write]
 

Definition at line 307 of file oselector.h.

QColor Opie::Ui::OGradientSelector::secondColor [read, write]
 

Definition at line 306 of file oselector.h.

QString Opie::Ui::OGradientSelector::secondText [read, write]
 

Definition at line 308 of file oselector.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:02:03 2005 for OPIE by  doxygen 1.4.2