ShadeWidget Class Reference

#include <shadewidget.h>

List of all members.

Public Types

enum  ShadeType

Signals

void colorsChanged ()

Public Member Functions

 ShadeWidget (ShadeType type, QWidget *parent)
void setHistogramPtr (QPixmap *histogramPtr)
void setGradientStops (const QGradientStops &stops)
void paintEvent (QPaintEvent *e)
QSize sizeHint () const
QPolygonF points () const
HoverPointshoverPoints () const
uint colorAt (int x)

Private Member Functions

void generateShade ()


Detailed Description

The shadewidget class is a drawable rectangle in which points and a color or alpha gradient can be drawn.

Member Enumeration Documentation

Enumerates the ShateType options.


Constructor & Destructor Documentation

ShadeWidget::ShadeWidget ( ShadeType  type,
QWidget *  parent 
)

Constructor that creates a color or alpha ShadeWidget.

Returns:
The pointer to the created color or alpha ShadeWidget.


Member Function Documentation

void ShadeWidget::setHistogramPtr ( QPixmap *  histogramPtr  ) 

Sets the histogram pointer if the widget is a ARGBShade widget.

Parameters:
histogramPtr is the pointer which should be set.

void ShadeWidget::setGradientStops ( const QGradientStops &  stops  ) 

Sets the gradient stops position and color from the given stops.

Parameters:
stops are the gradient stops which should be set.

void ShadeWidget::paintEvent ( QPaintEvent *  e  ) 

Paints the backround, points and the connection lines.

QSize ShadeWidget::sizeHint (  )  const

Returns:
The size hint for the Widget.

QPolygonF ShadeWidget::points (  )  const

Returns:
The points of this ShadeWidget.

HoverPoints* ShadeWidget::hoverPoints (  )  const [inline]

Returns:
The pointer to the hover points of this ShadeWidget.

uint ShadeWidget::colorAt ( int  x  ) 

Gets the current color of the ShadeWidet at the specific position.

Parameters:
x is the position from which the color should be taken.
Returns:
The color at the position.

void ShadeWidget::colorsChanged (  )  [signal]

A signal that is send on change of the colors.

void ShadeWidget::generateShade (  )  [private]

Generates the backround.


The documentation for this class was generated from the following files:

Generated on Tue Dec 9 22:48:07 2008 by  doxygen 1.5.6