[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties

KLFColorChooseWidgetPane Class Reference

A pane displaying a gradient of colors, controlling one or two (arbitrary) components of a color. More...

#include <klfcolorchooser.h>

Inheritance diagram for KLFColorChooseWidgetPane:
Inheritance graph
[legend]
Collaboration diagram for KLFColorChooseWidgetPane:
Collaboration graph
[legend]

List of all members.

Public Slots

void setColor (const QColor &newcolor)
void setPaneType (const QString &panetype)

Signals

void colorChanged (const QColor &color)

Public Member Functions

 KLFColorChooseWidgetPane (QWidget *parent=0)
virtual ~KLFColorChooseWidgetPane ()
QString paneType () const
QColor color () const

Protected Member Functions

virtual void paintEvent (QPaintEvent *e)
virtual void mousePressEvent (QMouseEvent *e)
virtual void mouseMoveEvent (QMouseEvent *e)
virtual void wheelEvent (QWheelEvent *e)

Properties

QString paneType
QColor color

Detailed Description

A pane displaying a gradient of colors, controlling one or two (arbitrary) components of a color.

Most common would be eg. hue and saturation in the big pane in most common selection dialogs.

The pane type is the two components that this pane is editing, concatenated with a "+" sign, eg. a red-blue 2-D editor pane would be described by the pane type "Red+Blue". Note that pane types are case-insensitive and are converted to lower case.

This class can also display only one editing dimension and keep the other fixed, just give "fix" to that fixed dimension.

For an example, look at the dynamic properties set in klfcolorchoosewidget.ui in each color pane widget.

The zeros of the components are placed top left of the pane.

Definition at line 264 of file klfcolorchooser.h.


Constructor & Destructor Documentation

KLFColorChooseWidgetPane::KLFColorChooseWidgetPane ( QWidget parent = 0)

Definition at line 124 of file klfcolorchooser.cpp.

virtual KLFColorChooseWidgetPane::~KLFColorChooseWidgetPane ( ) [inline, virtual]

Definition at line 271 of file klfcolorchooser.h.


Member Function Documentation

QColor KLFColorChooseWidgetPane::color ( ) const [inline]

Definition at line 274 of file klfcolorchooser.h.

References KLFColorComponentsEditorBase::_color.

void KLFColorChooseWidgetPane::colorChanged ( const QColor color) [signal]

Referenced by setColor().

void KLFColorChooseWidgetPane::mouseMoveEvent ( QMouseEvent e) [protected, virtual]
void KLFColorChooseWidgetPane::mousePressEvent ( QMouseEvent e) [protected, virtual]
void KLFColorChooseWidgetPane::paintEvent ( QPaintEvent e) [protected, virtual]
QString KLFColorChooseWidgetPane::paneType ( ) const [inline]
void KLFColorChooseWidgetPane::setColor ( const QColor newcolor) [slot]
void KLFColorChooseWidgetPane::setPaneType ( const QString panetype) [slot]
void KLFColorChooseWidgetPane::wheelEvent ( QWheelEvent e) [protected, virtual]

Property Documentation

QColor KLFColorChooseWidgetPane::color [read, write]

Definition at line 267 of file klfcolorchooser.h.

QString KLFColorChooseWidgetPane::paneType [read, write]

Definition at line 267 of file klfcolorchooser.h.


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

Generated by doxygen 1.7.3