kpresenter

KPrImageEffectDia.h

00001 // -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*-
00002 /* This file is part of the KDE project
00003    Copyright (C) 2002 Lukas Tinkl <lukas@kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef IMAGEEFFECTDIA_H
00022 #define IMAGEEFFECTDIA_H
00023 
00024 #include <qpixmap.h>
00025 
00026 #include <kdialogbase.h>
00027 
00028 #include "imageEffectBase.h"
00029 #include "global.h"
00030 
00031 class KPrImageEffectDia: public KDialogBase {
00032     Q_OBJECT
00033 
00034 public:
00035     KPrImageEffectDia(QWidget * parent = 0, const char * name = 0);
00036     ~KPrImageEffectDia();
00037 
00041     void setPixmap(QPixmap pix);
00042 
00046     ImageEffect getEffect() const {return m_effect;}
00050     QVariant getParam1() const {return m_param1;}
00054     QVariant getParam2() const {return m_param2;}
00058     QVariant getParam3() const {return m_param3;}
00059 
00063     void setEffect(ImageEffect eff, QVariant p1, QVariant p2, QVariant p3);
00064 
00065 protected:
00066     virtual void showEvent(QShowEvent * e);
00067 
00068 private slots:
00069     void effectChanged(int);
00070     void okClicked();
00071     void effectParamChanged();
00072 
00073 private:
00074     void updatePreview();
00075     void setupSignals();
00076     QPixmap m_pix;
00077     QPixmap m_origpix;
00078     ImageEffect m_effect;
00079     QVariant m_param1, m_param2, m_param3;
00080     EffectBrowserBase * base;
00081 };
00082 
00083 #endif //IMAGEEFFECTDIA_H
KDE Home | KDE Accessibility Home | Description of Access Keys