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


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 void | freeWidget (QWidget *widget) |
| overwritten method which adds the widget to the list for freeing | |
| virtual void | remove (QWidget *widget) |
| removes a widget from the children | |
| void | sendEvent () |
| sends current event | |
| virtual void | redraw () |
| post request for redisplay | |
| virtual void | glutResize (int width, int height) |
| method for handling glut resize function | |
| virtual void | glutKeyboard (unsigned char key, int x, int y) |
| method for handling glut keyboard down function | |
| virtual void | glutKeyboardUp (unsigned char key, int x, int y) |
| method for handling glut keyboard up function | |
| virtual void | glutSpecialFunc (int key, int x, int y) |
| method for handling glut special key functions | |
| virtual void | glutMotion (int x, int y) |
| method for handling glut mouse motion function | |
| virtual void | glutMouse (int button, int state, int x, int y) |
| method for handling glut mouse button function | |
| virtual void | glutDisplay () |
| method for handling glut display function | |
| virtual void | requestFocus (QWidget *Sender, QWidget *FocusedWidget) |
| called if Sender wants to announce new focused control | |
| virtual QWidget * | getScreenFocusedWidget () |
| getter method for ScreenFocusedWidget | |
| virtual void | setScreenFocusedWidget (QWidget *newValue) |
| setter method for ScreenFocusedWidget | |
| QEvent * | getLastEvent () |
| getter method for LastEvent | |
| void | print () |
| prints itself to the cout | |
| QScreen (QWidget *aOwner) | |
| Constructor. | |
| virtual | ~QScreen () |
| 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 void | freeWidget (QWidget *widget) |
| overwritten method which adds the widget to the list for freeing | |
| virtual void | remove (QWidget *widget) |
| removes a widget from the children | |
| void | sendEvent () |
| sends current event | |
| virtual void | redraw () |
| post request for redisplay | |
| virtual void | glutResize (int width, int height) |
| method for handling glut resize function | |
| virtual void | glutKeyboard (unsigned char key, int x, int y) |
| method for handling glut keyboard down function | |
| virtual void | glutKeyboardUp (unsigned char key, int x, int y) |
| method for handling glut keyboard up function | |
| virtual void | glutSpecialFunc (int key, int x, int y) |
| method for handling glut special key functions | |
| virtual void | glutMotion (int x, int y) |
| method for handling glut mouse motion function | |
| virtual void | glutMouse (int button, int state, int x, int y) |
| method for handling glut mouse button function | |
| virtual void | glutDisplay () |
| method for handling glut display function | |
| virtual void | requestFocus (QWidget *Sender, QWidget *FocusedWidget) |
| called if Sender wants to announce new focused control | |
| virtual QWidget * | getScreenFocusedWidget () |
| getter method for ScreenFocusedWidget | |
| virtual void | setScreenFocusedWidget (QWidget *newValue) |
| setter method for ScreenFocusedWidget | |
| QEvent * | getLastEvent () |
| getter method for LastEvent | |
| void | print () |
| prints itself to the cout | |
| QScreen (QWidget *aOwner) | |
| Constructor. | |
| virtual | ~QScreen () |
| Destructor. | |
Protected Attributes | |
| list< QWidget * > | WidgetsToRemove |
| Widget List which will be removed before next event processing. | |
| QWidget * | ScreenFocusedWidget |
| current focused widget | |
| QEvent * | LastEvent |
| last event which was sent to windows or widgets | |
| list< QWidget * > | WidgetsToRemove |
| Widget List which will be removed before next event processing. | |
| QWidget * | ScreenFocusedWidget |
| current focused widget | |
| QEvent * | LastEvent |
| last event which was sent to windows or widgets | |
Definition at line 17 of file QScreen.h.
|
|
Constructor.
Definition at line 246 of file QScreen.cpp. |
|
|
Destructor.
Definition at line 257 of file QScreen.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. |
|
|
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. Definition at line 28 of file QScreen.cpp. |
|
|
defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus
Reimplemented from QWidget. |
|
|
defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus
Reimplemented from QWidget. Definition at line 51 of file QScreen.cpp. |
|
|
called if a child is added/removed
Reimplemented from QWidget. |
|
|
called if a child is added/removed
Reimplemented from QWidget. Definition at line 46 of file QScreen.cpp. |
|
|
clean up code
Reimplemented from QWidget. |
|
|
clean up code
Reimplemented from QWidget. Definition at line 63 of file QScreen.cpp. References QWidget::LookAndFeel. |
|
|
draws itself with OpenGL. Here is the OpenGL drawing code
Reimplemented from QWidget. |
|
|
draws itself with OpenGL. Here is the OpenGL drawing code
Reimplemented from QWidget. Definition at line 14 of file QScreen.cpp. References QLookAndFeel::drawRect(), QWidget::Height, QWidget::LookAndFeel, and QWidget::Width. |
|
|
overwritten method which adds the widget to the list for freeing
Reimplemented from QWidget. |
|
|
overwritten method which adds the widget to the list for freeing
Reimplemented from QWidget. Definition at line 69 of file QScreen.cpp. References WidgetsToRemove. |
|
|
getter method for LastEvent
|
|
|
getter method for LastEvent
Definition at line 227 of file QScreen.cpp. References LastEvent. |
|
|
getter method for ScreenFocusedWidget
|
|
|
getter method for ScreenFocusedWidget
Definition at line 215 of file QScreen.cpp. References ScreenFocusedWidget. |
|
|
method for handling glut display function
|
|
|
method for handling glut display function
Definition at line 193 of file QScreen.cpp. References LastEvent, sendEvent(), and QEvent::setType(). Referenced by glutDisplay(). |
|
||||||||||||||||
|
method for handling glut keyboard down function
|
|
||||||||||||||||
|
method for handling glut keyboard down function
Definition at line 119 of file QScreen.cpp. References LastEvent, redraw(), sendEvent(), QEvent::setKey(), QEvent::setType(), QEvent::setX(), and QEvent::setY(). Referenced by glutKeyboard(). |
|
||||||||||||||||
|
method for handling glut keyboard up function
|
|
||||||||||||||||
|
method for handling glut keyboard up function
Definition at line 130 of file QScreen.cpp. References LastEvent, redraw(), sendEvent(), QEvent::setKey(), QEvent::setType(), QEvent::setX(), and QEvent::setY(). Referenced by glutKeyboardUp(). |
|
||||||||||||
|
method for handling glut mouse motion function
|
|
||||||||||||
|
method for handling glut mouse motion function
Definition at line 152 of file QScreen.cpp. References LastEvent, redraw(), sendEvent(), QEvent::setType(), QEvent::setX(), and QEvent::setY(). Referenced by glutMotion(). |
|
||||||||||||||||||||
|
method for handling glut mouse button function
|
|
||||||||||||||||||||
|
method for handling glut mouse button function
Definition at line 162 of file QScreen.cpp. References LastEvent, redraw(), sendEvent(), QEvent::setButton(), QEvent::setType(), QEvent::setX(), and QEvent::setY(). Referenced by glutMouse(). |
|
||||||||||||
|
method for handling glut resize function
|
|
||||||||||||
|
method for handling glut resize function
Definition at line 114 of file QScreen.cpp. |
|
||||||||||||||||
|
method for handling glut special key functions
|
|
||||||||||||||||
|
method for handling glut special key functions
Definition at line 141 of file QScreen.cpp. References LastEvent, redraw(), sendEvent(), QEvent::setKey(), QEvent::setType(), QEvent::setX(), and QEvent::setY(). Referenced by glutSpecial(). |
|
|
initialization code
Reimplemented from QWidget. |
|
|
initialization code
Reimplemented from QWidget. Definition at line 57 of file QScreen.cpp. References QWidget::LookAndFeel. |
|
|
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. |
|
|
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. Definition at line 23 of file QScreen.cpp. |
|
|
prints itself to the cout
Reimplemented from QWidget. |
|
|
prints itself to the cout
Reimplemented from QWidget. Definition at line 235 of file QScreen.cpp. |
|
|
processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner
Reimplemented from QWidget. |
|
|
processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner
Reimplemented from QWidget. Definition at line 34 of file QScreen.cpp. |
|
|
processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner
Reimplemented from QWidget. |
|
|
processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner
Reimplemented from QWidget. Definition at line 40 of file QScreen.cpp. |
|
|
post request for redisplay
Reimplemented from QWidget. |
|
|
post request for redisplay
Reimplemented from QWidget. Definition at line 108 of file QScreen.cpp. Referenced by glutKeyboard(), glutKeyboardUp(), glutMotion(), glutMouse(), glutSpecialFunc(), and requestFocus(). |
|
|
removes a widget from the children
Reimplemented from QWidget. |
|
|
removes a widget from the children
Reimplemented from QWidget. Definition at line 80 of file QScreen.cpp. References QWidget::FocusPath, QWidget::remove(), and ScreenFocusedWidget. |
|
||||||||||||
|
called if Sender wants to announce new focused control
Reimplemented from QWidget. |
|
||||||||||||
|
called if Sender wants to announce new focused control
Reimplemented from QWidget. Definition at line 200 of file QScreen.cpp. References QWidget::clearFocusPath(), QWidget::FocusPath, redraw(), and ScreenFocusedWidget. |
|
|
sends current event
|
|
|
sends current event
Definition at line 87 of file QScreen.cpp. References QWidget::event(), QWidget::getOwner(), LastEvent, QWidget::remove(), and WidgetsToRemove. Referenced by glutDisplay(), glutKeyboard(), glutKeyboardUp(), glutMotion(), glutMouse(), and glutSpecialFunc(). |
|
|
setter method for ScreenFocusedWidget
|
|
|
setter method for ScreenFocusedWidget
Definition at line 221 of file QScreen.cpp. References ScreenFocusedWidget. |
|
|
last event which was sent to windows or widgets
|
|
|
last event which was sent to windows or widgets
Definition at line 27 of file QScreen.h. Referenced by getLastEvent(), glutDisplay(), glutKeyboard(), glutKeyboardUp(), glutMotion(), glutMouse(), glutSpecialFunc(), and sendEvent(). |
|
|
current focused widget
|
|
|
current focused widget
Definition at line 24 of file QScreen.h. Referenced by getScreenFocusedWidget(), remove(), requestFocus(), and setScreenFocusedWidget(). |
|
|
Widget List which will be removed before next event processing.
|
|
|
Widget List which will be removed before next event processing.
Definition at line 21 of file QScreen.h. Referenced by freeWidget(), and sendEvent(). |
1.2.18