kpresenter

KPrEffectHandler Class Reference

List of all members.

Detailed Description

Definition at line 35 of file KPrEffectHandler.h.


Public Member Functions

 KPrEffectHandler (PresStep step, bool back, QPaintDevice *dst, QPixmap *src, const QPtrList< KPrObject > &objects, KPrView *view, int _presSpeed)
 ~KPrEffectHandler ()
bool doEffect ()
void finish ()

Protected Member Functions

bool doAppearEffectStep (KPrObject *object)
bool doDisappearEffectStep (KPrObject *object)
bool appearNone (KPrObject *object)
bool appearComeLeft (KPrObject *object)
bool appearComeTop (KPrObject *object)
bool appearComeRight (KPrObject *object)
bool appearComeBottom (KPrObject *object)
bool appearComeLeftTop (KPrObject *object)
bool appearComeLeftBottom (KPrObject *object)
bool appearComeRightTop (KPrObject *object)
bool appearComeRightBottom (KPrObject *object)
bool appearWipeLeft (KPrObject *object)
bool appearWipeRight (KPrObject *object)
bool appearWipeTop (KPrObject *object)
bool appearWipeBottom (KPrObject *object)
bool disappearGoLeft (KPrObject *object)
bool disappearGoRight (KPrObject *object)
bool disappearGoTop (KPrObject *object)
bool disappearGoBottom (KPrObject *object)
bool disappearGoLeftTop (KPrObject *object)
bool disappearGoLeftBottom (KPrObject *object)
bool disappearGoRightTop (KPrObject *object)
bool disappearGoRightBottom (KPrObject *object)
bool disappearWipeLeft (KPrObject *object)
bool disappearWipeRight (KPrObject *object)
bool disappearWipeTop (KPrObject *object)
bool disappearWipeBottom (KPrObject *object)
void drawObject (KPrObject *object, int x, int y, QPixmap *screen, QRect *clipRect=0)

Protected Attributes

int m_effectStep
PresStep m_step
bool m_back
QPaintDevice * m_dst
QPixmap * m_src
QPixmap m_paint
QPtrList< KPrObjectm_objects
QPtrList< KPrObjectm_appearEffectObjects
QPtrList< KPrObjectm_disappearEffectObjects
KPrViewm_view
int m_stepWidth
int m_stepHeight
QPtrList< QRect > m_repaintRects
QPtrList< QRect > m_lastRepaintRects
QString m_soundEffect
int m_objectTimer

Constructor & Destructor Documentation

KPrEffectHandler::KPrEffectHandler ( PresStep  step,
bool  back,
QPaintDevice *  dst,
QPixmap *  src,
const QPtrList< KPrObject > &  objects,
KPrView view,
int  _presSpeed 
)

Creates an EffectsHandler for the effect step step and the effect sub step subStep.

step the effect step for which the effect should be displayed subStep the sub effect step for which the effect should be displayed back set to true if the effect step was reached by going backwards dst the paint device on which the Effects will be shown src this pixmap holds the pixmap before any effects are started objects all objects of the page view pointer to the active KPrView

Definition at line 37 of file KPrEffectHandler.cpp.

KPrEffectHandler::~KPrEffectHandler (  ) 

Delete the KPrEffectHandler.

Definition at line 87 of file KPrEffectHandler.cpp.


Member Function Documentation

bool KPrEffectHandler::doEffect (  ) 

doEffect handle the next step of the object effect.

Returns true if all effects in the current step are finished. In automatic presentation mode: On the first step it stops the automatic presentation timer. The automatic presentation timer will be restared when all effects are done.

Definition at line 93 of file KPrEffectHandler.cpp.

void KPrEffectHandler::finish (  ) 

Ends the effect for the current step by displaying all objects on their final position.

In automatic presentation mode: Restarts the automatic presentation timer.

Definition at line 239 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::doAppearEffectStep ( KPrObject object  )  [protected]

Calls the right appear effect method for the object object.

Returns true if the effect for the object is finished.

Definition at line 295 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::doDisappearEffectStep ( KPrObject object  )  [protected]

Calls the right disappear effect method for the object object.

Returns true if the effect for the object is finished.

Definition at line 347 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::appearNone ( KPrObject object  )  [protected]

Effect None The object just appears on its position Returns allways true as the object is in is final position.

Definition at line 397 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::appearComeLeft ( KPrObject object  )  [protected]

Effect Come From Left The object comes in from the left to its position Returns true if the object is on its final position.

Definition at line 406 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::appearComeTop ( KPrObject object  )  [protected]

Effect Come From Top The object comes in from the top to its position Returns true if the object is on its final position.

Definition at line 430 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::appearComeRight ( KPrObject object  )  [protected]

Effect Come From Right The object comes in from the right to its position Returns true if the object is on its final position.

Definition at line 454 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::appearComeBottom ( KPrObject object  )  [protected]

Effect Come From Bottom The object comes in from the bottom to its position Returns true if the object is on its final position.

Definition at line 478 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::appearComeLeftTop ( KPrObject object  )  [protected]

Effect Come From Left/Top The object comes in from the top left corner to its position Returns true if the object is on its final position.

Definition at line 502 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::appearComeLeftBottom ( KPrObject object  )  [protected]

Effect Come From Left/Buttom The object comes in from the bottom left corner to its position Returns true if the object is on its final position.

Definition at line 535 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::appearComeRightTop ( KPrObject object  )  [protected]

Effect Come From Right/Top The object comes in from the top right corner to its position Returns true if the object is on its final position.

Definition at line 568 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::appearComeRightBottom ( KPrObject object  )  [protected]

Effect Come From Right/Buttom The object comes in from the bottom right corner to its position Returns true if the object is on its final position.

Definition at line 601 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::appearWipeLeft ( KPrObject object  )  [protected]

Effect Wipe From Left Returns true if the object is fully shown.

Definition at line 634 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::appearWipeRight ( KPrObject object  )  [protected]

Effect Wipe From Right Returns true if the object is fully shown.

Definition at line 654 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::appearWipeTop ( KPrObject object  )  [protected]

Effect Wipe From Top Returns true if the object is fully shown.

Definition at line 675 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::appearWipeBottom ( KPrObject object  )  [protected]

Effect Wipe From Bottom Returns true if the object is fully shown.

Definition at line 696 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::disappearGoLeft ( KPrObject object  )  [protected]

Effect Disappear To Left The object moves from it's position to the left out of the screen Returns true if the object is out of the screen.

Definition at line 717 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::disappearGoRight ( KPrObject object  )  [protected]

Effect Disappear To Right The object moves from it's position to the right out of the screen Returns true if the object is out of the screen.

Definition at line 765 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::disappearGoTop ( KPrObject object  )  [protected]

Effect Disappear To Top The object moves from it's position to the top out of the screen Returns true if the object is out of the screen.

Definition at line 741 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::disappearGoBottom ( KPrObject object  )  [protected]

Effect Disappear To Bottom The object moves from it's position to the bottom out of the screen Returns true if the object is out of the screen.

Definition at line 788 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::disappearGoLeftTop ( KPrObject object  )  [protected]

Effect Disappear To Left/Top The object moves from it's position to the top left out of the screen Returns true if the object is out of the screen.

Definition at line 811 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::disappearGoLeftBottom ( KPrObject object  )  [protected]

Effect Disappear To Left/Bottom The object moves from it's position to the bottom left out of the screen Returns true if the object is out of the screen.

Definition at line 837 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::disappearGoRightTop ( KPrObject object  )  [protected]

Effect Disappear To Right/Top The object moves from it's position to the top right out of the screen Returns true if the object is out of the screen.

Definition at line 863 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::disappearGoRightBottom ( KPrObject object  )  [protected]

Effect Disappear To Right/Bottom The object moves from it's position to the bottom right out of the screen Returns true if the object is out of the screen.

Definition at line 889 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::disappearWipeLeft ( KPrObject object  )  [protected]

Effect Wipe From Left Returns true if the object is fully shown.

Definition at line 915 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::disappearWipeRight ( KPrObject object  )  [protected]

Effect Wipe From Right Returns true if the object is fully shown.

Definition at line 937 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::disappearWipeTop ( KPrObject object  )  [protected]

Effect Wipe From Top Returns true if the object is fully shown.

Definition at line 959 of file KPrEffectHandler.cpp.

bool KPrEffectHandler::disappearWipeBottom ( KPrObject object  )  [protected]

Effect Wipe From Bottom Returns true if the object is fully shown.

Definition at line 981 of file KPrEffectHandler.cpp.

void KPrEffectHandler::drawObject ( KPrObject object,
int  x,
int  y,
QPixmap *  screen,
QRect *  clipRect = 0 
) [protected]

Draws the object object to the pixmap screen with the offset defined in x and y.

If clipRect is set the only the clipRect will be painted.

Definition at line 1003 of file KPrEffectHandler.cpp.


Member Data Documentation

The internal step of the effect.

This is used to calculate the position of the object.

Definition at line 262 of file KPrEffectHandler.h.

The effect step which should be animated.

Definition at line 267 of file KPrEffectHandler.h.

bool KPrEffectHandler::m_back [protected]

True when the effect step was reached by going backwards.

Definition at line 272 of file KPrEffectHandler.h.

QPaintDevice* KPrEffectHandler::m_dst [protected]

Paint device on which the effects will be displayed.

Definition at line 277 of file KPrEffectHandler.h.

QPixmap* KPrEffectHandler::m_src [protected]

Pixmap used as source for displaying on.

m_src contains all objects which are allready on the final position.

Definition at line 284 of file KPrEffectHandler.h.

QPixmap KPrEffectHandler::m_paint [protected]

Is used for printing all objects before bitblt to m_dst.

Definition at line 289 of file KPrEffectHandler.h.

QPtrList<KPrObject> KPrEffectHandler::m_objects [protected]

List of all objects of the current page.

Definition at line 294 of file KPrEffectHandler.h.

List of all objects which appear in the current step.

If a object has reached its final position it is removed from this list

Definition at line 301 of file KPrEffectHandler.h.

List of all objects which disappear in the current step.

If a object has disappeared it is removed from this list

Definition at line 307 of file KPrEffectHandler.h.

the active KPrView

Definition at line 310 of file KPrEffectHandler.h.

The width of a step.

Definition at line 315 of file KPrEffectHandler.h.

The height of a step.

Definition at line 320 of file KPrEffectHandler.h.

QPtrList<QRect> KPrEffectHandler::m_repaintRects [protected]

The rects which have to be bitblt.

Definition at line 325 of file KPrEffectHandler.h.

QPtrList<QRect> KPrEffectHandler::m_lastRepaintRects [protected]

The rects which have to be bitblt as the objects are no longer there.

Definition at line 331 of file KPrEffectHandler.h.

QString KPrEffectHandler::m_soundEffect [protected]

The filename of the sound file which should be played during the effect.

Definition at line 336 of file KPrEffectHandler.h.

Used the set the autopresentation timer.

Definition at line 341 of file KPrEffectHandler.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys