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


Public Methods | |
| virtual void | updateCaptionPosition () |
| overwrite this to recalculate caption position | |
| 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 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 | |
| QCaptionButton (QWidget *aOwner) | |
| Constructor. | |
| virtual | ~QCaptionButton () |
| Destructor. | |
| virtual void | updateCaptionPosition () |
| overwrite this to recalculate caption position | |
| 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 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 | |
| QCaptionButton (QWidget *aOwner) | |
| Constructor. | |
| virtual | ~QCaptionButton () |
| Destructor. | |
Protected Attributes | |
| string | Caption |
| caption of the button | |
| QFont * | Font |
| used to draw caption | |
| QFont * | Font |
| used to draw caption | |
Private Attributes | |
| int | CaptionPositionX |
| x position of the caption (centered) | |
Definition at line 17 of file QCaptionButton.h.
|
|
Constructor.
Definition at line 131 of file QCaptionButton.cpp. |
|
|
Destructor.
Definition at line 141 of file QCaptionButton.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 QButton. |
|
|
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 QButton. Definition at line 57 of file QCaptionButton.cpp. |
|
|
defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus
Reimplemented from QButton. |
|
|
defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus
Reimplemented from QButton. Definition at line 80 of file QCaptionButton.cpp. |
|
|
called if a child is added/removed
Reimplemented from QButton. |
|
|
called if a child is added/removed
Reimplemented from QButton. Definition at line 75 of file QCaptionButton.cpp. |
|
|
clean up code
Reimplemented from QButton. |
|
|
clean up code
Reimplemented from QButton. Definition at line 95 of file QCaptionButton.cpp. References QButton::CleanUp(). |
|
|
draws itself with OpenGL. Here is the OpenGL drawing code
Reimplemented from QButton. |
|
|
draws itself with OpenGL. Here is the OpenGL drawing code
Reimplemented from QButton. Definition at line 23 of file QCaptionButton.cpp. References Caption, CaptionPositionX, QFont::drawAtPos(), QLookAndFeel::drawBevel(), QLookAndFeel::drawRect(), Font, QLookAndFeel::getBackGroundColor(), QWidget::getFocused(), QLookAndFeel::getHighlightColor(), QFont::getLengthForWidth(), QWidget::Height, QWidget::LookAndFeel, QColor::setAsCurrent(), QButton::State, and QWidget::Width. |
|
|
getter method for Caption
|
|
|
getter method for Caption
Definition at line 101 of file QCaptionButton.cpp. References Caption. Referenced by myMethod2(). |
|
|
getter method for Font
|
|
|
getter method for Font
Definition at line 114 of file QCaptionButton.cpp. References Font. |
|
|
initialization code
Reimplemented from QButton. |
|
|
initialization code
Reimplemented from QButton. Definition at line 86 of file QCaptionButton.cpp. References QFont::copyFrom(), Font, QLookAndFeel::getFont(), QWidget::Height, QButton::Init(), QWidget::LookAndFeel, and setCaption(). |
|
|
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 QButton. |
|
|
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 QButton. Definition at line 50 of file QCaptionButton.cpp. References QButton::layout(), and updateCaptionPosition(). |
|
|
prints itself to the cout
Reimplemented from QButton. |
|
|
prints itself to the cout
Reimplemented from QButton. Definition at line 122 of file QCaptionButton.cpp. |
|
|
processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner
Reimplemented from QButton. |
|
|
processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner
Reimplemented from QButton. Definition at line 63 of file QCaptionButton.cpp. References QButton::processEvent(). |
|
|
processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner
Reimplemented from QButton. |
|
|
processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner
Reimplemented from QButton. Definition at line 69 of file QCaptionButton.cpp. References QButton::processMouseOwner(). |
|
|
setter method for Caption
|
|
|
setter method for Caption
Definition at line 107 of file QCaptionButton.cpp. References Caption, and updateCaptionPosition(). Referenced by Init(), main(), and MyWindow::MyWindow(). |
|
|
overwrite this to recalculate caption position
|
|
|
overwrite this to recalculate caption position
Definition at line 14 of file QCaptionButton.cpp. References Caption, CaptionPositionX, Font, QFont::getTextWidth(), and QWidget::Width. Referenced by layout(), and setCaption(). |
|
|
caption of the button
Definition at line 26 of file QCaptionButton.h. Referenced by draw(), getCaption(), setCaption(), and updateCaptionPosition(). |
|
|
x position of the caption (centered)
Definition at line 22 of file QCaptionButton.h. Referenced by draw(), and updateCaptionPosition(). |
|
|
used to draw caption
Definition at line 29 of file QCaptionButton.h. |
|
|
used to draw caption
Definition at line 28 of file QCaptionButton.h. Referenced by draw(), getFont(), Init(), and updateCaptionPosition(). |
1.2.18