Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

QRadioButton Class Reference

Radio Button. More...

#include <QRadioButton.h>

Inheritance diagram for QRadioButton:

Inheritance graph
[legend]
Collaboration diagram for QRadioButton:

Collaboration graph
[legend]

Public Methods

virtual void draw (QEvent *e)
 draws itself with OpenGL. Here is the OpenGL drawing code

virtual void layout ()
 layout the children widgets. This method is called every time the size is changed. Have to be overwritten for respond on size changes

virtual bool canDrag (QEvent *e)
 have to return true if widget should be dragged with mouse. This method is overwritten in sub classes. If returns true, widget will be dragged

virtual bool processEvent (QEvent *e)
 processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner

virtual bool processMouseOwner (QEvent *e)
 processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner

virtual void childrenChanged ()
 called if a child is added/removed

virtual bool canFocus (QEvent *e)
 defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus

virtual void Init ()
 initialization code

virtual void CleanUp ()
 clean up code

virtual QRadioButtonGroupgetRadioButtonGroup ()
 getter method for RadioButtonGroup

virtual void setRadioButtonGroup (QRadioButtonGroup *newValue)
 setter method for RadioButtonGroup

void print ()
 prints itself to the cout

 QRadioButton (QWidget *aOwner)
 Constructor.

virtual ~QRadioButton ()
 Destructor.

virtual void draw (QEvent *e)
 draws itself with OpenGL. Here is the OpenGL drawing code

virtual void layout ()
 layout the children widgets. This method is called every time the size is changed. Have to be overwritten for respond on size changes

virtual bool canDrag (QEvent *e)
 have to return true if widget should be dragged with mouse. This method is overwritten in sub classes. If returns true, widget will be dragged

virtual bool processEvent (QEvent *e)
 processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner

virtual bool processMouseOwner (QEvent *e)
 processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner

virtual void childrenChanged ()
 called if a child is added/removed

virtual bool canFocus (QEvent *e)
 defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus

virtual void Init ()
 initialization code

virtual void CleanUp ()
 clean up code

virtual QRadioButtonGroupgetRadioButtonGroup ()
 getter method for RadioButtonGroup

virtual void setRadioButtonGroup (QRadioButtonGroup *newValue)
 setter method for RadioButtonGroup

void print ()
 prints itself to the cout

 QRadioButton (QWidget *aOwner)
 Constructor.

virtual ~QRadioButton ()
 Destructor.


Protected Attributes

QRadioButtonGroupRadioButtonGroup
 reference to a group

QRadioButtonGroupRadioButtonGroup
 reference to a group


Detailed Description

Radio Button.

Definition at line 17 of file QRadioButton.h.


Constructor & Destructor Documentation

QRadioButton::QRadioButton QWidget   aOwner
 

Constructor.

Definition at line 116 of file QRadioButton.cpp.

QRadioButton::~QRadioButton   [virtual]
 

Destructor.

Definition at line 126 of file QRadioButton.cpp.

QRadioButton::QRadioButton QWidget   aOwner
 

Constructor.

virtual QRadioButton::~QRadioButton   [virtual]
 

Destructor.


Member Function Documentation

virtual bool QRadioButton::canDrag QEvent   e [virtual]
 

have to return true if widget should be dragged with mouse. This method is overwritten in sub classes. If returns true, widget will be dragged

Reimplemented from QCheckBox.

bool QRadioButton::canDrag QEvent   e [virtual]
 

have to return true if widget should be dragged with mouse. This method is overwritten in sub classes. If returns true, widget will be dragged

Reimplemented from QCheckBox.

Definition at line 28 of file QRadioButton.cpp.

virtual bool QRadioButton::canFocus QEvent   e [virtual]
 

defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus

Reimplemented from QCheckBox.

bool QRadioButton::canFocus QEvent   e [virtual]
 

defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus

Reimplemented from QCheckBox.

Definition at line 63 of file QRadioButton.cpp.

virtual void QRadioButton::childrenChanged   [virtual]
 

called if a child is added/removed

Reimplemented from QCheckBox.

void QRadioButton::childrenChanged   [virtual]
 

called if a child is added/removed

Reimplemented from QCheckBox.

Definition at line 58 of file QRadioButton.cpp.

virtual void QRadioButton::CleanUp   [virtual]
 

clean up code

Reimplemented from QCheckBox.

void QRadioButton::CleanUp   [virtual]
 

clean up code

Reimplemented from QCheckBox.

Definition at line 75 of file QRadioButton.cpp.

virtual void QRadioButton::draw QEvent   e [virtual]
 

draws itself with OpenGL. Here is the OpenGL drawing code

Reimplemented from QCheckBox.

void QRadioButton::draw QEvent   e [virtual]
 

draws itself with OpenGL. Here is the OpenGL drawing code

Reimplemented from QCheckBox.

Definition at line 14 of file QRadioButton.cpp.

References QCheckBox::BoxSize, QCheckBox::Caption, QFont::drawInternal(), QLookAndFeel::drawRadioButton(), QCheckBox::Font, QFont::getSize(), QWidget::LookAndFeel, and QCheckBox::State.

virtual QRadioButtonGroup* QRadioButton::getRadioButtonGroup   [virtual]
 

getter method for RadioButtonGroup

QRadioButtonGroup * QRadioButton::getRadioButtonGroup   [virtual]
 

getter method for RadioButtonGroup

Definition at line 80 of file QRadioButton.cpp.

References RadioButtonGroup.

virtual void QRadioButton::Init   [virtual]
 

initialization code

Reimplemented from QCheckBox.

void QRadioButton::Init   [virtual]
 

initialization code

Reimplemented from QCheckBox.

Definition at line 69 of file QRadioButton.cpp.

References QCheckBox::Init().

virtual void QRadioButton::layout   [virtual]
 

layout the children widgets. This method is called every time the size is changed. Have to be overwritten for respond on size changes

Reimplemented from QCheckBox.

void QRadioButton::layout   [virtual]
 

layout the children widgets. This method is called every time the size is changed. Have to be overwritten for respond on size changes

Reimplemented from QCheckBox.

Definition at line 22 of file QRadioButton.cpp.

References QCheckBox::layout().

void QRadioButton::print  
 

prints itself to the cout

Reimplemented from QCheckBox.

void QRadioButton::print  
 

prints itself to the cout

Reimplemented from QCheckBox.

Definition at line 107 of file QRadioButton.cpp.

virtual bool QRadioButton::processEvent QEvent   e [virtual]
 

processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner

Reimplemented from QCheckBox.

bool QRadioButton::processEvent QEvent   e [virtual]
 

processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner

Reimplemented from QCheckBox.

Definition at line 34 of file QRadioButton.cpp.

References QEvent::getType(), QCheckBox::processEvent(), RadioButtonGroup, and QRadioButtonGroup::setAsSelected().

virtual bool QRadioButton::processMouseOwner QEvent   e [virtual]
 

processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner

Reimplemented from QCheckBox.

bool QRadioButton::processMouseOwner QEvent   e [virtual]
 

processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner

Reimplemented from QCheckBox.

Definition at line 52 of file QRadioButton.cpp.

virtual void QRadioButton::setRadioButtonGroup QRadioButtonGroup   newValue [virtual]
 

setter method for RadioButtonGroup

void QRadioButton::setRadioButtonGroup QRadioButtonGroup   newValue [virtual]
 

setter method for RadioButtonGroup

Definition at line 86 of file QRadioButton.cpp.

References QRadioButtonGroup::add(), RadioButtonGroup, and QRadioButtonGroup::remove().

Referenced by MyWindow::MyWindow().


Field Documentation

QRadioButtonGroup* QRadioButton::RadioButtonGroup [protected]
 

reference to a group

Definition at line 22 of file QRadioButton.h.

QRadioButtonGroup* QRadioButton::RadioButtonGroup [protected]
 

reference to a group

Definition at line 21 of file QRadioButton.h.

Referenced by getRadioButtonGroup(), processEvent(), and setRadioButtonGroup().


The documentation for this class was generated from the following files:
Generated on Thu Mar 18 18:34:31 2004 for miniQT by doxygen1.2.18