ZeButton Class Reference

ZeButton provides easy displaying of different pixmaps for different states

It takes 3 pixmaps for the three different states:
up: what could be called the normal, unpressed appearance
down: when the button is pressed or - if setToggle = true - when the button isDown
active: when the mouse pointer is hovering over the button you might want to set a different pixmap (needs mouseOver = true). More...

List of all members.

Public Member Functions

 ZeButton (QWidget *, QString)
 ZeButton (QWidget *, QString, QPixmap, QPixmap, QPixmap, bool, bool)
QPixmap getUpPixmap () const
void setUpPixmap (QPixmap)
QPixmap getDownPixmap () const
void setDownPixmap (QPixmap)
QPixmap getActivePixmap () const
void setMouseOver (bool)
bool getMouseOver () const
void setActivePixmap (QPixmap)
void setProperties (QPixmap, QPixmap, QPixmap, bool=true, bool=false)

Protected Slots

void showDownPixmap (bool)

Protected Member Functions

void enterEvent (QEvent *)
void leaveEvent (QEvent *)

Properties

QPixmap upPixmap []
QPixmap downPixmap []
QPixmap activePixmap []
bool mouseOver []


Detailed Description

ZeButton provides easy displaying of different pixmaps for different states

It takes 3 pixmaps for the three different states:
up: what could be called the normal, unpressed appearance
down: when the button is pressed or - if setToggle = true - when the button isDown
active: when the mouse pointer is hovering over the button you might want to set a different pixmap (needs mouseOver = true).


Constructor & Destructor Documentation

ZeButton::ZeButton ( QWidget *  parent,
QString  name 
)

standard QPushButton c'tor

ZeButton::ZeButton ( QWidget *  parent,
QString  name,
QPixmap  up,
QPixmap  down,
QPixmap  active,
bool  mouseOver,
bool  toggle 
)

This overloaded function allows to set all configurations in on step.
Essentially the pixmaps for the three different states can be set.


Member Function Documentation

QPixmap ZeButton::getUpPixmap (  )  const

Get the upPixmap.
Escpecially needed to export for use as a plugin.

void ZeButton::setUpPixmap ( QPixmap  up  ) 

Set the upPixmap.
Escpecially needed to export for use as a plugin.

QPixmap ZeButton::getDownPixmap (  )  const

Get the upPixmap.
Escpecially needed to export for use as a plugin.

void ZeButton::setDownPixmap ( QPixmap  down  ) 

Set the downPixmap.
Escpecially needed to export for use as a plugin.

QPixmap ZeButton::getActivePixmap (  )  const

Get the upPixmap.
Escpecially needed to export for use as a plugin.

void ZeButton::setMouseOver ( bool  mO  ) 

Set mouseOver.
Escpecially needed to export for use as a plugin.

bool ZeButton::getMouseOver (  )  const

Get mouseEver.
Escpecially needed to export for use as a plugin.

void ZeButton::setActivePixmap ( QPixmap  active  ) 

Set the activePixmap.
Escpecially needed to export for use as a plugin.

void ZeButton::setProperties ( QPixmap  ,
QPixmap  ,
QPixmap  ,
bool  = true,
bool  = false 
)

void ZeButton::showDownPixmap ( bool   )  [protected, slot]

void ZeButton::enterEvent ( QEvent *   )  [protected]

void ZeButton::leaveEvent ( QEvent *   )  [protected]


Property Documentation

QPixmap ZeButton::upPixmap [read, write]

QPixmap ZeButton::downPixmap [read, write]

QPixmap ZeButton::activePixmap [read, write]

bool ZeButton::mouseOver [read, write]


Generated on Wed Nov 8 20:07:48 2006 for ZeTools by  doxygen 1.5.1