filters

pngexportdia.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002 Ulrich Kuettler <ulrich.kuettler@mailbox.tu-dresden.de>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef PNGEXPORTDIA_H
00021 #define PNGEXPORTDIA_H
00022 
00023 class QCheckBox;
00024 class QString;
00025 class KIntNumInput;
00026 class KDoubleNumInput;
00027 
00028 namespace KFormula {
00029     class Container;
00030     class DocumentWrapper;
00031 }
00032 
00033 #include <qdom.h>
00034 
00035 #include <kdialogbase.h>
00036 
00037 
00038 class PNGExportDia : public KDialogBase
00039 {
00040     Q_OBJECT
00041 
00042 public:
00043     PNGExportDia( const QDomDocument &dom, const QString &outFile, QWidget *parent=0L, const char *name=0L );
00044     ~PNGExportDia();
00045 
00046 public slots:
00047     void slotOk();
00048 
00049 protected slots:
00050 
00051     void widthChanged( int  );
00052     void heightChanged( int );
00053     void percentWidthChanged( double );
00054     void percentHeightChanged( double );
00055 
00056     void proportionalClicked();
00057 
00058 private:
00059 
00060     void connectAll();
00061     void disconnectAll();
00062 
00063     void setupGUI();
00064 
00065     int realWidth;
00066     int realHeight;
00067 
00068     QString _fileOut;
00069     QByteArray _arrayOut;
00070 
00071     KFormula::Container* formula;
00072     KFormula::DocumentWrapper* wrapper;
00073 
00074     QCheckBox* proportional;
00075     KIntNumInput* widthEdit;
00076     KIntNumInput* heightEdit;
00077     KDoubleNumInput* percWidthEdit;
00078     KDoubleNumInput* percHeightEdit;
00079 };
00080 
00081 #endif // PNGEXPORTDIA_H
KDE Home | KDE Accessibility Home | Description of Access Keys