kpresenter

KPrCircleToggle Class Reference

#include <KPrRotationDialogImpl.h>

List of all members.


Detailed Description

A toggle-button like widget that shows one pixmap when it is checked, and another when it is unselected.

Definition at line 63 of file KPrRotationDialogImpl.h.


Public Slots

void setChecked (bool on)

Signals

void clicked (int id)

Public Member Functions

 KPrCircleToggle (QWidget *parent, const QString &image, int id)
int id ()

Protected Member Functions

void mousePressEvent (QMouseEvent *e)

Constructor & Destructor Documentation

KPrCircleToggle::KPrCircleToggle ( QWidget *  parent,
const QString &  image,
int  id 
)

Constructor.

Parameters:
parent the parent widget, as required by Qt.
image the named image that we will use. "rotate/" is prepended and "dn" is appended for the checked state.
id the id that will be used in the clicked signal

Definition at line 117 of file KPrRotationDialogImpl.cpp.


Member Function Documentation

void KPrCircleToggle::clicked ( int  id  )  [signal]

this signal will be emitted whenever the button becomes checked

int KPrCircleToggle::id (  )  [inline]

return the id which is passed in the constructor

Definition at line 76 of file KPrRotationDialogImpl.h.

void KPrCircleToggle::mousePressEvent ( QMouseEvent *  e  )  [protected]

overwritten method from QWidget.

Definition at line 133 of file KPrRotationDialogImpl.cpp.

void KPrCircleToggle::setChecked ( bool  on  )  [slot]

Check or uncheck the button.

On change the toggle will emit the clicked signal.

Parameters:
on the new state of the button.

Definition at line 139 of file KPrRotationDialogImpl.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys