#include <QCheckBox.h>
Inheritance diagram for QCheckBox:


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 | |
| QFont * | getFont () |
| 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 | |
| QFont * | getFont () |
| 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 | |
| QFont * | Font |
| used to draw caption | |
| QFont * | Font |
| used to draw caption | |
Definition at line 20 of file QCheckBox.h.
|
|
Constructor.
Definition at line 133 of file QCheckBox.cpp. |
|
|
Destructor.
Definition at line 145 of file QCheckBox.cpp. |
|
|
Constructor.
|
|
|
Destructor.
|
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
called if a child is added/removed
Reimplemented from QWidget. Reimplemented in QRadioButton, and QRadioButton. |
|
|
called if a child is added/removed
Reimplemented from QWidget. Reimplemented in QRadioButton, and QRadioButton. Definition at line 54 of file QCheckBox.cpp. |
|
|
clean up code
Reimplemented from QWidget. Reimplemented in QRadioButton, and QRadioButton. |
|
|
clean up code
Reimplemented from QWidget. Reimplemented in QRadioButton, and QRadioButton. Definition at line 72 of file QCheckBox.cpp. |
|
|
draws itself with OpenGL. Here is the OpenGL drawing code
Reimplemented from QWidget. Reimplemented in QRadioButton, and QRadioButton. |
|
|
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. |
|
|
getter method for BoxSize
|
|
|
getter method for BoxSize
Definition at line 89 of file QCheckBox.cpp. References BoxSize. |
|
|
getter method for Caption
|
|
|
getter method for Caption
Definition at line 101 of file QCheckBox.cpp. References Caption. Referenced by myMethod3(). |
|
|
getter method for Font
|
|
|
getter method for Font
Definition at line 114 of file QCheckBox.cpp. References Font. Referenced by MyWindow::MyWindow(). |
|
|
getter method for State
|
|
|
getter method for State
Definition at line 77 of file QCheckBox.cpp. References State. |
|
|
initialization code
Reimplemented from QWidget. Reimplemented in QRadioButton, and QRadioButton. |
|
|
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(). |
|
|
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. |
|
|
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(). |
|
|
prints itself to the cout
Reimplemented from QWidget. Reimplemented in QRadioButton, and QRadioButton. |
|
|
prints itself to the cout
Reimplemented from QWidget. Reimplemented in QRadioButton, and QRadioButton. Definition at line 122 of file QCheckBox.cpp. |
|
|
processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner
Reimplemented from QWidget. Reimplemented in QRadioButton, and QRadioButton. |
|
|
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(). |
|
|
processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner
Reimplemented from QWidget. Reimplemented in QRadioButton, and QRadioButton. |
|
|
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. |
|
|
setter method for BoxSize
|
|
|
setter method for BoxSize
Definition at line 95 of file QCheckBox.cpp. References BoxSize. |
|
|
setter method for Caption
|
|
|
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(). |
|
|
setter method for State
|
|
|
setter method for State
Definition at line 83 of file QCheckBox.cpp. References State. Referenced by MyWindow::MyWindow(). |
|
|
size of the box picture
Definition at line 28 of file QCheckBox.h. Referenced by QRadioButton::draw(), draw(), getBoxSize(), layout(), setBoxSize(), and setCaption(). |
|
|
caption of the checkbox
Definition at line 31 of file QCheckBox.h. Referenced by QRadioButton::draw(), draw(), getCaption(), and setCaption(). |
|
|
used to draw caption
Definition at line 34 of file QCheckBox.h. |
|
|
used to draw caption
Definition at line 33 of file QCheckBox.h. Referenced by QRadioButton::draw(), draw(), getFont(), Init(), and setCaption(). |
|
|
checked status
Definition at line 25 of file QCheckBox.h. Referenced by QRadioButton::draw(), draw(), getState(), processEvent(), and setState(). |
1.2.18