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


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 QBevelState | getState () |
| getter method for State | |
| virtual void | setState (QBevelState newValue) |
| setter method for State | |
| void | print () |
| prints itself to the cout | |
| QButton (QWidget *aOwner) | |
| Constructor. | |
| virtual | ~QButton () |
| 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 QBevelState | getState () |
| getter method for State | |
| virtual void | setState (QBevelState newValue) |
| setter method for State | |
| void | print () |
| prints itself to the cout | |
| QButton (QWidget *aOwner) | |
| Constructor. | |
| virtual | ~QButton () |
| Destructor. | |
Data Fields | |
| void(* | onPress )(QWidget *, QEvent *) |
| event handler for press (either mouse click or spacebar or return | |
Protected Attributes | |
| QBevelState | State |
| bevel state | |
Definition at line 16 of file QButton.h.
|
|
Constructor.
Definition at line 125 of file QButton.cpp. |
|
|
Destructor.
Definition at line 136 of file QButton.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 QCaptionButton, and QCaptionButton. |
|
|
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 QCaptionButton, and QCaptionButton. Definition at line 25 of file QButton.cpp. |
|
|
defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus
Reimplemented from QWidget. Reimplemented in QCaptionButton, and QCaptionButton. |
|
|
defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus
Reimplemented from QWidget. Reimplemented in QCaptionButton, and QCaptionButton. Definition at line 86 of file QButton.cpp. |
|
|
called if a child is added/removed
Reimplemented from QWidget. Reimplemented in QCaptionButton, and QCaptionButton. |
|
|
called if a child is added/removed
Reimplemented from QWidget. Reimplemented in QCaptionButton, and QCaptionButton. Definition at line 81 of file QButton.cpp. |
|
|
clean up code
Reimplemented from QWidget. Reimplemented in QCaptionButton, and QCaptionButton. |
|
|
clean up code
Reimplemented from QWidget. Reimplemented in QCaptionButton, and QCaptionButton. Definition at line 97 of file QButton.cpp. Referenced by QCaptionButton::CleanUp(). |
|
|
draws itself with OpenGL. Here is the OpenGL drawing code
Reimplemented from QWidget. Reimplemented in QCaptionButton, and QCaptionButton. |
|
|
draws itself with OpenGL. Here is the OpenGL drawing code
Reimplemented from QWidget. Reimplemented in QCaptionButton, and QCaptionButton. Definition at line 14 of file QButton.cpp. |
|
|
getter method for State
|
|
|
getter method for State
Definition at line 102 of file QButton.cpp. References State. Referenced by QWindow::drawCloseButton(), and QWindow::drawMaximizeButton(). |
|
|
initialization code
Reimplemented from QWidget. Reimplemented in QCaptionButton, and QCaptionButton. |
|
|
initialization code
Reimplemented from QWidget. Reimplemented in QCaptionButton, and QCaptionButton. Definition at line 92 of file QButton.cpp. Referenced by QCaptionButton::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 QCaptionButton, and QCaptionButton. |
|
|
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 QCaptionButton, and QCaptionButton. Definition at line 20 of file QButton.cpp. Referenced by QCaptionButton::layout(). |
|
|
prints itself to the cout
Reimplemented from QWidget. Reimplemented in QCaptionButton, and QCaptionButton. |
|
|
prints itself to the cout
Reimplemented from QWidget. Reimplemented in QCaptionButton, and QCaptionButton. Definition at line 116 of file QButton.cpp. |
|
|
processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner
Reimplemented from QWidget. Reimplemented in QCaptionButton, and QCaptionButton. |
|
|
processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner
Reimplemented from QWidget. Reimplemented in QCaptionButton, and QCaptionButton. Definition at line 31 of file QButton.cpp. References QEvent::getButton(), QEvent::getKey(), QEvent::getType(), and State. Referenced by QCaptionButton::processEvent(). |
|
|
processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner
Reimplemented from QWidget. Reimplemented in QCaptionButton, and QCaptionButton. |
|
|
processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner
Reimplemented from QWidget. Reimplemented in QCaptionButton, and QCaptionButton. Definition at line 69 of file QButton.cpp. References QEvent::getX(), QEvent::getY(), QWidget::Height, QWidget::Left, State, QWidget::Top, and QWidget::Width. Referenced by QCaptionButton::processMouseOwner(). |
|
|
setter method for State
|
|
|
setter method for State
Definition at line 108 of file QButton.cpp. References State. |
|
|
event handler for press (either mouse click or spacebar or return
Referenced by main(), and MyWindow::MyWindow(). |
|
|
bevel state
Definition at line 21 of file QButton.h. Referenced by QCaptionButton::draw(), getState(), processEvent(), processMouseOwner(), and setState(). |
1.2.18