filters
pngexportdia.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
|