kpresenter

#include <KPrRotationDialogImpl.h>

Inherits TQLabel.

Public Slots

void setChecked (bool on)
 

Signals

void clicked (int id)
 

Public Member Functions

 KPrCircleToggle (TQWidget *parent, const TQString &image, int id)
 
int id ()
 

Protected Member Functions

void mousePressEvent (TQMouseEvent *e)
 

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.

Constructor & Destructor Documentation

◆ KPrCircleToggle()

KPrCircleToggle::KPrCircleToggle ( TQWidget *  parent,
const TQString &  image,
int  id 
)

Constructor.

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

Definition at line 116 of file KPrRotationDialogImpl.cpp.

Member Function Documentation

◆ clicked

void KPrCircleToggle::clicked ( int  id)
signal

this signal will be emitted whenever the button becomes checked

◆ id()

int KPrCircleToggle::id ( )
inline

return the id which is passed in the constructor

Definition at line 77 of file KPrRotationDialogImpl.h.

◆ mousePressEvent()

void KPrCircleToggle::mousePressEvent ( TQMouseEvent *  e)
protected

overwritten method from TQWidget.

Definition at line 132 of file KPrRotationDialogImpl.cpp.

◆ setChecked

void KPrCircleToggle::setChecked ( bool  on)
slot

Check or uncheck the button.

On change the toggle will emit the clicked signal.

Parameters
onthe new state of the button.

Definition at line 138 of file KPrRotationDialogImpl.cpp.


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