kalarm/lib

#include <label.h>

Inherits TQLabel.

Public Member Functions

 Label (TQWidget *parent, const char *name=0, WFlags f=0)
 
 Label (const TQString &text, TQWidget *parent, const char *name=0, WFlags f=0)
 
 Label (TQWidget *buddy, const TQString &text, TQWidget *parent, const char *name=0, WFlags f=0)
 
virtual void setBuddy (TQWidget *buddy)
 

Protected Member Functions

virtual void drawContents (TQPainter *p)
 

Friends

class LabelFocusWidget
 

Detailed Description

A TQLabel with option for a buddy radio button.

The Label class provides a text display, with special behaviour when a radio button is set as a buddy.

The Label object in effect acts as if it were part of the buddy radio button, in that when the label's accelerator key is pressed, the radio button receives focus and is switched on. When a non-radio button is specified as a buddy, the behaviour is the same as for TQLabel.

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

Definition at line 41 of file label.h.

Constructor & Destructor Documentation

◆ Label() [1/3]

Label::Label ( TQWidget *  parent,
const char *  name = 0,
WFlags  f = 0 
)
explicit

Constructs an empty label.

Parameters
parentThe parent object of this widget.
nameThe name of this widget.
fFlags. See TQWidget constructor for details.

Definition at line 26 of file label.cpp.

◆ Label() [2/3]

Label::Label ( const TQString &  text,
TQWidget *  parent,
const char *  name = 0,
WFlags  f = 0 
)

Constructs a label that displays text.

Parameters
textText string to display.
parentThe parent object of this widget.
nameThe name of this widget.
fFlags. See TQWidget constructor for details.

Definition at line 32 of file label.cpp.

◆ Label() [3/3]

Label::Label ( TQWidget *  buddy,
const TQString &  text,
TQWidget *  parent,
const char *  name = 0,
WFlags  f = 0 
)

Constructs a label, with a buddy widget, that displays text.

Parameters
buddyBuddy widget which receives the keyboard focus when the label's accelerator key is pressed. If buddy is a radio button, buddy is in addition selected when the accelerator key is pressed.
textText string to display.
parentThe parent object of this widget.
nameThe name of this widget.
fFlags. See TQWidget constructor for details.

Definition at line 38 of file label.cpp.

Member Function Documentation

◆ setBuddy()

void Label::setBuddy ( TQWidget *  buddy)
virtual

Sets the label's buddy widget which receives the keyboard focus when the label's accelerator key is pressed.

If buddy is a radio button, buddy is in addition selected when the accelerator key is pressed.

Definition at line 50 of file label.cpp.


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