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

QCheckBox Class Reference

Check Box. More...

#include <QCheckBox.h>

Inheritance diagram for QCheckBox:

Inheritance graph
[legend]
Collaboration diagram for QCheckBox:

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 QCheckBoxState getState ()
 getter method for State

virtual void setState (QCheckBoxState newValue)
 setter method for State

virtual int getBoxSize ()
 getter method for BoxSize

virtual void setBoxSize (int newValue)
 setter method for BoxSize

virtual string getCaption ()
 getter method for Caption

virtual void setCaption (string newValue)
 setter method for Caption

QFontgetFont ()
 getter method for Font

void print ()
 prints itself to the cout

 QCheckBox (QWidget *aOwner)
 Constructor.

virtual ~QCheckBox ()
 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 QCheckBoxState getState ()
 getter method for State

virtual void setState (QCheckBoxState newValue)
 setter method for State

virtual int getBoxSize ()
 getter method for BoxSize

virtual void setBoxSize (int newValue)
 setter method for BoxSize

virtual string getCaption ()
 getter method for Caption

virtual void setCaption (string newValue)
 setter method for Caption

QFontgetFont ()
 getter method for Font

void print ()
 prints itself to the cout

 QCheckBox (QWidget *aOwner)
 Constructor.

virtual ~QCheckBox ()
 Destructor.


Protected Attributes

QCheckBoxState State
 checked status

int BoxSize
 size of the box picture

string Caption
 caption of the checkbox

QFontFont
 used to draw caption

QFontFont
 used to draw caption


Detailed Description

Check Box.

Definition at line 20 of file QCheckBox.h.


Constructor & Destructor Documentation

QCheckBox::QCheckBox QWidget   aOwner
 

Constructor.

Definition at line 133 of file QCheckBox.cpp.

QCheckBox::~QCheckBox   [virtual]
 

Destructor.

Definition at line 145 of file QCheckBox.cpp.

QCheckBox::QCheckBox QWidget   aOwner
 

Constructor.

virtual QCheckBox::~QCheckBox   [virtual]
 

Destructor.


Member Function Documentation

virtual bool QCheckBox::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 QWidget.

Reimplemented in QRadioButton, and QRadioButton.

bool QCheckBox::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 QWidget.

Reimplemented in QRadioButton, and QRadioButton.

Definition at line 31 of file QCheckBox.cpp.

virtual bool QCheckBox::canFocus QEvent   e [virtual]
 

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

Reimplemented from QWidget.

Reimplemented in QRadioButton, and QRadioButton.

bool QCheckBox::canFocus QEvent   e [virtual]
 

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

Reimplemented from QWidget.

Reimplemented in QRadioButton, and QRadioButton.

Definition at line 59 of file QCheckBox.cpp.

virtual void QCheckBox::childrenChanged   [virtual]
 

called if a child is added/removed

Reimplemented from QWidget.

Reimplemented in QRadioButton, and QRadioButton.

void QCheckBox::childrenChanged   [virtual]
 

called if a child is added/removed

Reimplemented from QWidget.

Reimplemented in QRadioButton, and QRadioButton.

Definition at line 54 of file QCheckBox.cpp.

virtual void QCheckBox::CleanUp   [virtual]
 

clean up code

Reimplemented from QWidget.

Reimplemented in QRadioButton, and QRadioButton.

void QCheckBox::CleanUp   [virtual]
 

clean up code

Reimplemented from QWidget.

Reimplemented in QRadioButton, and QRadioButton.

Definition at line 72 of file QCheckBox.cpp.

virtual void QCheckBox::draw QEvent   e [virtual]
 

draws itself with OpenGL. Here is the OpenGL drawing code

Reimplemented from QWidget.

Reimplemented in QRadioButton, and QRadioButton.

void QCheckBox::draw QEvent   e [virtual]
 

draws itself with OpenGL. Here is the OpenGL drawing code

Reimplemented from QWidget.

Reimplemented in QRadioButton, and QRadioButton.

Definition at line 14 of file QCheckBox.cpp.

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

virtual int QCheckBox::getBoxSize   [virtual]
 

getter method for BoxSize

int QCheckBox::getBoxSize   [virtual]
 

getter method for BoxSize

Definition at line 89 of file QCheckBox.cpp.

References BoxSize.

virtual string QCheckBox::getCaption   [virtual]
 

getter method for Caption

string QCheckBox::getCaption   [virtual]
 

getter method for Caption

Definition at line 101 of file QCheckBox.cpp.

References Caption.

Referenced by myMethod3().

QFont* QCheckBox::getFont  
 

getter method for Font

QFont * QCheckBox::getFont  
 

getter method for Font

Definition at line 114 of file QCheckBox.cpp.

References Font.

Referenced by MyWindow::MyWindow().

virtual QCheckBoxState QCheckBox::getState   [virtual]
 

getter method for State

QCheckBoxState QCheckBox::getState   [virtual]
 

getter method for State

Definition at line 77 of file QCheckBox.cpp.

References State.

virtual void QCheckBox::Init   [virtual]
 

initialization code

Reimplemented from QWidget.

Reimplemented in QRadioButton, and QRadioButton.

void QCheckBox::Init   [virtual]
 

initialization code

Reimplemented from QWidget.

Reimplemented in QRadioButton, and QRadioButton.

Definition at line 65 of file QCheckBox.cpp.

References QFont::copyFrom(), Font, QLookAndFeel::getFont(), QWidget::Init(), and QWidget::LookAndFeel.

Referenced by QRadioButton::Init().

virtual void QCheckBox::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 QWidget.

Reimplemented in QRadioButton, and QRadioButton.

void QCheckBox::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 QWidget.

Reimplemented in QRadioButton, and QRadioButton.

Definition at line 25 of file QCheckBox.cpp.

References BoxSize, and QWidget::Height.

Referenced by QRadioButton::layout().

void QCheckBox::print  
 

prints itself to the cout

Reimplemented from QWidget.

Reimplemented in QRadioButton, and QRadioButton.

void QCheckBox::print  
 

prints itself to the cout

Reimplemented from QWidget.

Reimplemented in QRadioButton, and QRadioButton.

Definition at line 122 of file QCheckBox.cpp.

virtual bool QCheckBox::processEvent QEvent   e [virtual]
 

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

Reimplemented from QWidget.

Reimplemented in QRadioButton, and QRadioButton.

bool QCheckBox::processEvent QEvent   e [virtual]
 

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

Reimplemented from QWidget.

Reimplemented in QRadioButton, and QRadioButton.

Definition at line 37 of file QCheckBox.cpp.

References QEvent::getType(), and State.

Referenced by QRadioButton::processEvent().

virtual bool QCheckBox::processMouseOwner QEvent   e [virtual]
 

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

Reimplemented from QWidget.

Reimplemented in QRadioButton, and QRadioButton.

bool QCheckBox::processMouseOwner QEvent   e [virtual]
 

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

Reimplemented from QWidget.

Reimplemented in QRadioButton, and QRadioButton.

Definition at line 48 of file QCheckBox.cpp.

virtual void QCheckBox::setBoxSize int    newValue [virtual]
 

setter method for BoxSize

void QCheckBox::setBoxSize int    newValue [virtual]
 

setter method for BoxSize

Definition at line 95 of file QCheckBox.cpp.

References BoxSize.

virtual void QCheckBox::setCaption string    newValue [virtual]
 

setter method for Caption

void QCheckBox::setCaption string    newValue [virtual]
 

setter method for Caption

Definition at line 107 of file QCheckBox.cpp.

References BoxSize, Caption, Font, QFont::getTextWidth(), and QWidget::setWidth().

Referenced by MyWindow::MyWindow().

virtual void QCheckBox::setState QCheckBoxState    newValue [virtual]
 

setter method for State

void QCheckBox::setState QCheckBoxState    newValue [virtual]
 

setter method for State

Definition at line 83 of file QCheckBox.cpp.

References State.

Referenced by MyWindow::MyWindow().


Field Documentation

int QCheckBox::BoxSize [protected]
 

size of the box picture

Definition at line 28 of file QCheckBox.h.

Referenced by QRadioButton::draw(), draw(), getBoxSize(), layout(), setBoxSize(), and setCaption().

string QCheckBox::Caption [protected]
 

caption of the checkbox

Definition at line 31 of file QCheckBox.h.

Referenced by QRadioButton::draw(), draw(), getCaption(), and setCaption().

QFont* QCheckBox::Font [protected]
 

used to draw caption

Definition at line 34 of file QCheckBox.h.

QFont* QCheckBox::Font [protected]
 

used to draw caption

Definition at line 33 of file QCheckBox.h.

Referenced by QRadioButton::draw(), draw(), getFont(), Init(), and setCaption().

QCheckBoxState QCheckBox::State [protected]
 

checked status

Definition at line 25 of file QCheckBox.h.

Referenced by QRadioButton::draw(), draw(), getState(), processEvent(), and setState().


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