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

QScreen Class Reference

Screen which manages the windows. More...

#include <QScreen.h>

Inheritance diagram for QScreen:

Inheritance graph
[legend]
Collaboration diagram for QScreen:

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 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 QWidgetgetScreenFocusedWidget ()
 getter method for ScreenFocusedWidget

virtual void setScreenFocusedWidget (QWidget *newValue)
 setter method for ScreenFocusedWidget

QEventgetLastEvent ()
 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 QWidgetgetScreenFocusedWidget ()
 getter method for ScreenFocusedWidget

virtual void setScreenFocusedWidget (QWidget *newValue)
 setter method for ScreenFocusedWidget

QEventgetLastEvent ()
 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.

QWidgetScreenFocusedWidget
 current focused widget

QEventLastEvent
 last event which was sent to windows or widgets

list< QWidget * > WidgetsToRemove
 Widget List which will be removed before next event processing.

QWidgetScreenFocusedWidget
 current focused widget

QEventLastEvent
 last event which was sent to windows or widgets


Detailed Description

Screen which manages the windows.

Definition at line 17 of file QScreen.h.


Constructor & Destructor Documentation

QScreen::QScreen QWidget   aOwner
 

Constructor.

Definition at line 246 of file QScreen.cpp.

QScreen::~QScreen   [virtual]
 

Destructor.

Definition at line 257 of file QScreen.cpp.

QScreen::QScreen QWidget   aOwner
 

Constructor.

virtual QScreen::~QScreen   [virtual]
 

Destructor.


Member Function Documentation

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

bool QScreen::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.

Definition at line 28 of file QScreen.cpp.

virtual bool QScreen::canFocus QEvent   e [virtual]
 

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

Reimplemented from QWidget.

bool QScreen::canFocus QEvent   e [virtual]
 

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.

virtual void QScreen::childrenChanged   [virtual]
 

called if a child is added/removed

Reimplemented from QWidget.

void QScreen::childrenChanged   [virtual]
 

called if a child is added/removed

Reimplemented from QWidget.

Definition at line 46 of file QScreen.cpp.

virtual void QScreen::CleanUp   [virtual]
 

clean up code

Reimplemented from QWidget.

void QScreen::CleanUp   [virtual]
 

clean up code

Reimplemented from QWidget.

Definition at line 63 of file QScreen.cpp.

References QWidget::LookAndFeel.

virtual void QScreen::draw QEvent   e [virtual]
 

draws itself with OpenGL. Here is the OpenGL drawing code

Reimplemented from QWidget.

void QScreen::draw QEvent   e [virtual]
 

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.

virtual void QScreen::freeWidget QWidget   widget [virtual]
 

overwritten method which adds the widget to the list for freeing

Reimplemented from QWidget.

void QScreen::freeWidget QWidget   widget [virtual]
 

overwritten method which adds the widget to the list for freeing

Reimplemented from QWidget.

Definition at line 69 of file QScreen.cpp.

References WidgetsToRemove.

QEvent* QScreen::getLastEvent  
 

getter method for LastEvent

QEvent * QScreen::getLastEvent  
 

getter method for LastEvent

Definition at line 227 of file QScreen.cpp.

References LastEvent.

virtual QWidget* QScreen::getScreenFocusedWidget   [virtual]
 

getter method for ScreenFocusedWidget

QWidget * QScreen::getScreenFocusedWidget   [virtual]
 

getter method for ScreenFocusedWidget

Definition at line 215 of file QScreen.cpp.

References ScreenFocusedWidget.

virtual void QScreen::glutDisplay   [virtual]
 

method for handling glut display function

void QScreen::glutDisplay   [virtual]
 

method for handling glut display function

Definition at line 193 of file QScreen.cpp.

References LastEvent, sendEvent(), and QEvent::setType().

Referenced by glutDisplay().

virtual void QScreen::glutKeyboard unsigned char    key,
int    x,
int    y
[virtual]
 

method for handling glut keyboard down function

void QScreen::glutKeyboard unsigned char    key,
int    x,
int    y
[virtual]
 

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().

virtual void QScreen::glutKeyboardUp unsigned char    key,
int    x,
int    y
[virtual]
 

method for handling glut keyboard up function

void QScreen::glutKeyboardUp unsigned char    key,
int    x,
int    y
[virtual]
 

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().

virtual void QScreen::glutMotion int    x,
int    y
[virtual]
 

method for handling glut mouse motion function

void QScreen::glutMotion int    x,
int    y
[virtual]
 

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().

virtual void QScreen::glutMouse int    button,
int    state,
int    x,
int    y
[virtual]
 

method for handling glut mouse button function

void QScreen::glutMouse int    button,
int    state,
int    x,
int    y
[virtual]
 

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().

virtual void QScreen::glutResize int    width,
int    height
[virtual]
 

method for handling glut resize function

void QScreen::glutResize int    width,
int    height
[virtual]
 

method for handling glut resize function

Definition at line 114 of file QScreen.cpp.

virtual void QScreen::glutSpecialFunc int    key,
int    x,
int    y
[virtual]
 

method for handling glut special key functions

void QScreen::glutSpecialFunc int    key,
int    x,
int    y
[virtual]
 

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().

virtual void QScreen::Init   [virtual]
 

initialization code

Reimplemented from QWidget.

void QScreen::Init   [virtual]
 

initialization code

Reimplemented from QWidget.

Definition at line 57 of file QScreen.cpp.

References QWidget::LookAndFeel.

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

void QScreen::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.

Definition at line 23 of file QScreen.cpp.

void QScreen::print  
 

prints itself to the cout

Reimplemented from QWidget.

void QScreen::print  
 

prints itself to the cout

Reimplemented from QWidget.

Definition at line 235 of file QScreen.cpp.

virtual bool QScreen::processEvent QEvent   e [virtual]
 

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

Reimplemented from QWidget.

bool QScreen::processEvent QEvent   e [virtual]
 

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.

virtual bool QScreen::processMouseOwner QEvent   e [virtual]
 

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

Reimplemented from QWidget.

bool QScreen::processMouseOwner QEvent   e [virtual]
 

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.

virtual void QScreen::redraw   [virtual]
 

post request for redisplay

Reimplemented from QWidget.

void QScreen::redraw   [virtual]
 

post request for redisplay

Reimplemented from QWidget.

Definition at line 108 of file QScreen.cpp.

Referenced by glutKeyboard(), glutKeyboardUp(), glutMotion(), glutMouse(), glutSpecialFunc(), and requestFocus().

virtual void QScreen::remove QWidget   widget [virtual]
 

removes a widget from the children

Reimplemented from QWidget.

void QScreen::remove QWidget   widget [virtual]
 

removes a widget from the children

Reimplemented from QWidget.

Definition at line 80 of file QScreen.cpp.

References QWidget::FocusPath, QWidget::remove(), and ScreenFocusedWidget.

virtual void QScreen::requestFocus QWidget   Sender,
QWidget   FocusedWidget
[virtual]
 

called if Sender wants to announce new focused control

Reimplemented from QWidget.

void QScreen::requestFocus QWidget   Sender,
QWidget   FocusedWidget
[virtual]
 

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.

void QScreen::sendEvent  
 

sends current event

void QScreen::sendEvent  
 

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().

virtual void QScreen::setScreenFocusedWidget QWidget   newValue [virtual]
 

setter method for ScreenFocusedWidget

void QScreen::setScreenFocusedWidget QWidget   newValue [virtual]
 

setter method for ScreenFocusedWidget

Definition at line 221 of file QScreen.cpp.

References ScreenFocusedWidget.


Field Documentation

QEvent* QScreen::LastEvent [protected]
 

last event which was sent to windows or widgets

Definition at line 28 of file QScreen.h.

QEvent* QScreen::LastEvent [protected]
 

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().

QWidget* QScreen::ScreenFocusedWidget [protected]
 

current focused widget

Definition at line 25 of file QScreen.h.

QWidget* QScreen::ScreenFocusedWidget [protected]
 

current focused widget

Definition at line 24 of file QScreen.h.

Referenced by getScreenFocusedWidget(), remove(), requestFocus(), and setScreenFocusedWidget().

list<QWidget*> QScreen::WidgetsToRemove [protected]
 

Widget List which will be removed before next event processing.

Definition at line 22 of file QScreen.h.

list<QWidget*> QScreen::WidgetsToRemove [protected]
 

Widget List which will be removed before next event processing.

Definition at line 21 of file QScreen.h.

Referenced by freeWidget(), and sendEvent().


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