kpresenter

KPrImageEffectDia.h
1/* This file is part of the KDE project
2 Copyright (C) 2002 Lukas Tinkl <lukas@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef IMAGEEFFECTDIA_H
21#define IMAGEEFFECTDIA_H
22
23#include <tqpixmap.h>
24
25#include <kdialogbase.h>
26
27#include "imageEffectBase.h"
28#include "global.h"
29
30class KPrImageEffectDia: public KDialogBase {
31 TQ_OBJECT
32
33
34public:
35 KPrImageEffectDia(TQWidget * parent = 0, const char * name = 0);
36 ~KPrImageEffectDia();
37
41 void setPixmap(TQPixmap pix);
42
46 ImageEffect getEffect() const {return m_effect;}
50 TQVariant getParam1() const {return m_param1;}
54 TQVariant getParam2() const {return m_param2;}
58 TQVariant getParam3() const {return m_param3;}
59
63 void setEffect(ImageEffect eff, TQVariant p1, TQVariant p2, TQVariant p3);
64
65protected:
66 virtual void showEvent(TQShowEvent * e);
67
68private slots:
69 void effectChanged(int);
70 void okClicked();
71 void effectParamChanged();
72
73private:
74 void updatePreview();
75 void setupSignals();
76 TQPixmap m_pix;
77 TQPixmap m_origpix;
78 ImageEffect m_effect;
79 TQVariant m_param1, m_param2, m_param3;
80 EffectBrowserBase * base;
81};
82
83#endif //IMAGEEFFECTDIA_H