kalarm/lib

#include <radiobutton.h>

Inherits TQRadioButton.

Public Member Functions

 RadioButton (TQWidget *parent, const char *name=0)
 
 RadioButton (const TQString &text, TQWidget *parent, const char *name=0)
 
bool isReadOnly () const
 
virtual void setReadOnly (bool readOnly)
 
TQWidget * focusWidget () const
 
void setFocusWidget (TQWidget *widget, bool enable=true)
 

Protected Slots

void slotClicked ()
 

Protected Member Functions

virtual void mousePressEvent (TQMouseEvent *)
 
virtual void mouseReleaseEvent (TQMouseEvent *)
 
virtual void mouseMoveEvent (TQMouseEvent *)
 
virtual void keyPressEvent (TQKeyEvent *)
 
virtual void keyReleaseEvent (TQKeyEvent *)
 

Detailed Description

A TQRadioButton with focus widget and read-only options.

The RadioButton class is a TQRadioButton with the ability to transfer focus to another widget when checked, and with a read-only option.

Another widget may be specified as the focus widget for the radio button. Whenever the user clicks on the radio button so as to set its state to checked, focus is automatically transferred to the focus widget.

The widget may be set as read-only. This has the same effect as disabling it, except that its appearance is unchanged.

Author
David Jarvie softw.nosp@m.are@.nosp@m.astro.nosp@m.jar..nosp@m.org.u.nosp@m.k

Definition at line 42 of file radiobutton.h.

Constructor & Destructor Documentation

◆ RadioButton() [1/2]

RadioButton::RadioButton ( TQWidget *  parent,
const char *  name = 0 
)
explicit

Constructor.

Parameters
parentThe parent object of this widget.
nameThe name of this widget.

Definition at line 24 of file radiobutton.cpp.

◆ RadioButton() [2/2]

RadioButton::RadioButton ( const TQString &  text,
TQWidget *  parent,
const char *  name = 0 
)

Constructor.

Parameters
textText to display.
parentThe parent object of this widget.
nameThe name of this widget.

Definition at line 31 of file radiobutton.cpp.

Member Function Documentation

◆ focusWidget()

TQWidget* RadioButton::focusWidget ( ) const
inline

Returns the widget which receives focus when the button is clicked.

Definition at line 66 of file radiobutton.h.

◆ isReadOnly()

bool RadioButton::isReadOnly ( ) const
inline

Returns true if the widget is read only.

Definition at line 59 of file radiobutton.h.

◆ setFocusWidget()

void RadioButton::setFocusWidget ( TQWidget *  widget,
bool  enable = true 
)

Specifies a widget to receive focus when the button is clicked.

Parameters
widgetWidget to receive focus.
enableIf true, widget will be enabled before receiving focus. If false, the enabled state of widget will be left unchanged when the radio button is clicked.

Definition at line 56 of file radiobutton.cpp.

◆ setReadOnly()

void RadioButton::setReadOnly ( bool  readOnly)
virtual

Sets whether the radio button is read-only for the user.

If read-only, its state cannot be changed by the user.

Parameters
readOnlyTrue to set the widget read-only, false to set it read-write.

Definition at line 42 of file radiobutton.cpp.


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