kpresenter

KPrPageEffects.h
1/* This file is part of the KDE project
2 Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
3 Copyright (C) 2002 Ariya Hidayat <ariya@kde.org>
4 Copyright (C) 2002 Harri Porten <porten@kde.org>
5 Copyright (C) 2004 Thorsten Zachmann <zachmann@kde.org>
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
21*/
22
23#ifndef PAGEEFFECTS_H
24#define PAGEEFFECTS_H
25
26#include "global.h"
27#include <tqvaluelist.h>
28
29
30class TQPaintDevice;
31class TQPixmap;
32
33
34class KPrPageEffects
35{
36public:
48 KPrPageEffects( TQPaintDevice *dst, const TQPixmap &pageTo, PageEffect effect, EffectSpeed speed );
49
50 ~KPrPageEffects();
51
56 bool doEffect();
57
61 void finish();
62protected:
63 bool effectNone() const;
64 bool effectCloseHorizontal() const;
65 bool effectCloseVertical() const;
66 bool effectCloseFromAllDirections() const;
67 bool effectOpenHorizontal() const;
68 bool effectOpenVertical() const;
69 bool effectOpenFromAllDirections() const;
70 bool effectInterlockingHorizontal1() const;
71 bool effectInterlockingHorizontal2() const;
72 bool effectInterlockingVertical1() const;
73 bool effectInterlockingVertical2() const;
74 bool effectSurround1() const;
75 bool effectFlyAway1();
76 bool effectBlindsHorizontal() const;
77 bool effectBlindsVertical() const;
78 bool effectBoxIn() const;
79 bool effectBoxOut() const ;
80 bool effectCheckboardAcross() const;
81 bool effectCheckboardDown() const;
82 bool effectCoverDown() const;
83 bool effectUncoverDown() const;
84 bool effectCoverUp() const;
85 bool effectUncoverUp();
86 bool effectCoverLeft() const;
87 bool effectUncoverLeft();
88 bool effectCoverRight() const;
89 bool effectUncoverRight();
90 bool effectCoverLeftUp() const;
91 bool effectUncoverLeftUp();
92 bool effectCoverLeftDown() const;
93 bool effectUncoverLeftDown();
94 bool effectCoverRightUp() const;
95 bool effectUncoverRightUp();
96 bool effectCoverRightDown() const;
97 bool effectUncoverRightDown();
98 bool effectDissolve();
99 bool effectStripesLeftUp() const;
100 bool effectStripesLeftDown() const;
101 bool effectStripesRightUp() const;
102 bool effectStripesRigthDown() const;
103 bool effectMelting();
104
105 TQPaintDevice *m_dst;
106 const TQPixmap m_pageTo;
107 TQPixmap m_pageFrom;
108 PageEffect m_effect;
109 PageEffect m_randomEffect;
110 EffectSpeed m_speed;
111 TQValueList<int> m_list;
112 int m_effectStep;
113 int m_stepWidth;
114 int m_stepHeight;
115 int m_width;
116 int m_height;
117 bool m_finished;
118};
119
120#endif /* PAGEEFFECTS_H */