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

Opie::OColorButton Class Reference

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

#include </home/clem/local/src/opie/libqtaux/ocolorbutton.h>

Collaboration diagram for Opie::OColorButton:

Collaboration graph
[legend]
List of all members.

Public Slots

virtual void setColor (const QColor &)

Signals

void colorSelected (const QColor &)

Public Member Functions

 OColorButton (QWidget *parent=0, const QColor &=black, const char *name=0)
virtual ~OColorButton ()
QColor color () const

Protected Slots

virtual void updateColor (const QColor &)

Protected Member Functions

void resizeEvent (QResizeEvent *)

Private Member Functions

void updateColor (const QColor &, bool sendSignal=true)

Private Attributes

OColorButtonPrivated

Detailed Description

A Button which will show a OColorPopupMenu.

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

Definition at line 49 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 54 of file ocolorbutton.cpp.

References colorSelected(), d, height, OColorButtonPrivate::m_color, s, updateColor(), and width.

OColorButton::~OColorButton  )  [virtual]
 

This destructs the object

Definition at line 74 of file ocolorbutton.cpp.

References d, and OColorButtonPrivate::m_menu.


Member Function Documentation

QColor OColorButton::color  )  const
 

Returns:
Returns the current color of the button

Definition at line 83 of file ocolorbutton.cpp.

References d.

Referenced by IRCSettings::accept(), and AddressBookPluginConfig::writeConfig().

void Opie::OColorButton::colorSelected const QColor &   )  [signal]
 

emitted when a color gets selected

Referenced by OColorButton(), and updateColor().

void OColorButton::resizeEvent QResizeEvent *  ev  )  [protected]
 

For internal use only.

Definition at line 159 of file ocolorbutton.cpp.

References d, OColorButtonPrivate::m_color, and updateColor().

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 92 of file ocolorbutton.cpp.

References updateColor().

Referenced by AddressBookPluginConfig::readConfig().

void OColorButton::updateColor const QColor &  ,
bool  sendSignal = true
[private]
 

Definition at line 105 of file ocolorbutton.cpp.

References alpha, colorSelected(), d, g, height, pix, width, Opie::MM::x, and Opie::MM::y.

void OColorButton::updateColor const QColor &   )  [protected, virtual, slot]
 

For internal use only.

Definition at line 100 of file ocolorbutton.cpp.

Referenced by OColorButton(), resizeEvent(), and setColor().


Member Data Documentation

OColorButtonPrivate* Opie::OColorButton::d [private]
 

Definition at line 77 of file ocolorbutton.h.

Referenced by color(), OColorButton(), resizeEvent(), updateColor(), and ~OColorButton().


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