libopie API Documentation

OColorButton Class Reference

A Button which will show a OColorPopupMenu. More...

#include <ocolorbutton.h>

Inheritance diagram for OColorButton:

Inheritance graph
[legend]
Collaboration diagram for OColorButton:

Collaboration graph
[legend]
List of all members.

Public Slots

virtual void setColor (const QColor &)
 This method sets the color of the button.


Signals

void colorSelected (const QColor &)
 emitted when a color gets selected


Public Member Functions

 OColorButton (QWidget *parent=0, const QColor &=black, const char *name=0)
 This concstructs a Color Button with.

virtual ~OColorButton ()
 This destructs the object.

QColor color () const

Protected Slots

virtual void updateColor (const QColor &)

Detailed Description

A Button which will show a OColorPopupMenu.

Author:
Robert Griebl ( sandman@handhelds.org )
Version:
1.0
See also:
QPushButton

Definition at line 44 of file ocolorbutton.h.


Constructor & Destructor Documentation

OColorButton::OColorButton QWidget parent = 0,
const QColor color = black,
const char *  name = 0
 

This concstructs a Color Button with.

Parameters:
color as the start color It'll use a OColorPopupMenu internally
parent The parent of the Color Button
color The color from where to start on
name 
See also:
QObject

Definition at line 51 of file ocolorbutton.cpp.

References colorSelected(), QObject::connect(), QWidget::setMaximumSize(), QWidget::setMinimumSize(), QPushButton::setPopup(), and QWidget::sizeHint().

OColorButton::~OColorButton  )  [virtual]
 

This destructs the object.

Definition at line 71 of file ocolorbutton.cpp.


Member Function Documentation

QColor OColorButton::color  )  const
 

Returns:
Returns the current color of the button

Definition at line 79 of file ocolorbutton.cpp.

void OColorButton::colorSelected const QColor  )  [signal]
 

emitted when a color gets selected

Referenced by OColorButton().

void OColorButton::setColor const QColor c  )  [virtual, slot]
 

This method sets the color of the button.

Parameters:
c The color to be set.

Definition at line 88 of file ocolorbutton.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for OPIE Version 1.1.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:24:49 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001