filters

pngexportdia.h
1/* This file is part of the KDE project
2 Copyright (C) 2002 Ulrich Kuettler <ulrich.kuettler@mailbox.tu-dresden.de>
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 PNGEXPORTDIA_H
21#define PNGEXPORTDIA_H
22
23class TQCheckBox;
24class TQString;
25class KIntNumInput;
26class KDoubleNumInput;
27
28namespace KFormula {
29 class Container;
30 class DocumentWrapper;
31}
32
33#include <tqdom.h>
34
35#include <kdialogbase.h>
36
37
38class PNGExportDia : public KDialogBase
39{
40 TQ_OBJECT
41
42
43public:
44 PNGExportDia( const TQDomDocument &dom, const TQString &outFile, TQWidget *parent=0L, const char *name=0L );
45 ~PNGExportDia();
46
47public slots:
48 void slotOk();
49
50protected slots:
51
52 void widthChanged( int );
53 void heightChanged( int );
54 void percentWidthChanged( double );
55 void percentHeightChanged( double );
56
57 void proportionalClicked();
58
59private:
60
61 void connectAll();
62 void disconnectAll();
63
64 void setupGUI();
65
66 int realWidth;
67 int realHeight;
68
69 TQString _fileOut;
70 TQByteArray _arrayOut;
71
72 KFormula::Container* formula;
73 KFormula::DocumentWrapper* wrapper;
74
75 TQCheckBox* proportional;
76 KIntNumInput* widthEdit;
77 KIntNumInput* heightEdit;
78 KDoubleNumInput* percWidthEdit;
79 KDoubleNumInput* percHeightEdit;
80};
81
82#endif // PNGEXPORTDIA_H