filters

exportsizedia.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 EXPORTSIZEDIA_H
21#define EXPORTSIZEDIA_H
22
23
24class TQCheckBox;
25class TQString;
26class KIntNumInput;
27class KDoubleNumInput;
28
29
30#include <kdialogbase.h>
31
32
33class ExportSizeDia : public KDialogBase
34{
35 TQ_OBJECT
36
37
38public:
39 ExportSizeDia( int width, int height,
40 TQWidget *parent=0L, const char *name=0L );
41 ~ExportSizeDia();
42
43 int width() const;
44 int height() const;
45
46#if 0
47public slots:
48 void slotOk();
49#endif
50
51protected slots:
52
53 void widthChanged( int );
54 void heightChanged( int );
55 void percentWidthChanged( double );
56 void percentHeightChanged( double );
57
58 void proportionalClicked();
59
60private:
61
62 void setupGUI();
63 void connectAll();
64 void disconnectAll();
65
66 int m_realWidth;
67 int m_realHeight;
68
69 TQCheckBox *m_proportional;
70 KIntNumInput *m_widthEdit;
71 KIntNumInput *m_heightEdit;
72 KDoubleNumInput *m_percWidthEdit;
73 KDoubleNumInput *m_percHeightEdit;
74};
75
76
77#endif // EXPORTSIZEDIA_H
78