class DecoratedGameFrame

The base class for KsirK application windows. More...

Definition#include <ksirk/decoratedgameframe.h>
InheritsQCanvasView (unknown) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Signals

Protected Methods

Protected Members


Detailed Description

The base class for KsirK application windows. It sets up the main window and reads the config file as well as providing a menubar, toolbar and statusbar. An instance of KsirKView creates your center view, which is connected to the window's Doc object. KsirKApp reimplements the methods that KMainWindow provides for main window handling and supports full session management as well as using KActions.

See also: KMainWindow, KApplication, KConfig

 DecoratedGameFrame (QWidget* parent, const char *nom, QCanvas* clientWnd)

DecoratedGameFrame

Creates the frame, its timer and set some parameters

 ~DecoratedGameFrame ()

~DecoratedGameFrame

Destroy the frame : stops and deletes the timer

void  initTimer ()

initTimer

Start the timer. Quit if error

void  haltTimer ()

haltTimer

Halt the timer. Quit if error

void  evenementLButtonDown (const QPoint &)

evenementLButtonDown

[signal]

These signals are connected to slots of the window. They are emitted for the mouse buttons events with corrected coordinates

void  evenementLButtonUp (const QPoint &)

evenementLButtonUp

[signal]

void  evenementRButtonDown (const QPoint &)

evenementRButtonDown

[signal]

QTimer * timer

timer

[protected]

void  contentsMousePressEvent ( QMouseEvent * )

contentsMousePressEvent

[protected virtual]

These methods override the inherited ones by converting the coordinates from screen ones to game ones. After this conversion, they emit the adequate signal

void  contentsMouseReleaseEvent ( QMouseEvent * )

contentsMouseReleaseEvent

[protected virtual]