filters

exportsizedia.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 EXPORTSIZEDIA_H
00021 #define EXPORTSIZEDIA_H
00022 
00023 
00024 class QCheckBox;
00025 class QString;
00026 class KIntNumInput;
00027 class KDoubleNumInput;
00028 
00029 
00030 #include <kdialogbase.h>
00031 
00032 
00033 class ExportSizeDia : public KDialogBase
00034 {
00035     Q_OBJECT
00036 
00037 public:
00038     ExportSizeDia( int width, int height, 
00039           QWidget *parent=0L, const char *name=0L );
00040     ~ExportSizeDia();
00041 
00042     int  width() const;
00043     int  height() const;
00044 
00045 #if 0
00046 public slots:
00047     void slotOk();
00048 #endif
00049 
00050 protected slots:
00051 
00052     void widthChanged( int  );
00053     void heightChanged( int );
00054     void percentWidthChanged( double );
00055     void percentHeightChanged( double );
00056 
00057     void proportionalClicked();
00058 
00059 private:
00060 
00061     void setupGUI();
00062     void connectAll();
00063     void disconnectAll();
00064 
00065     int  m_realWidth;
00066     int  m_realHeight;
00067 
00068     QCheckBox        *m_proportional;
00069     KIntNumInput     *m_widthEdit;
00070     KIntNumInput     *m_heightEdit;
00071     KDoubleNumInput  *m_percWidthEdit;
00072     KDoubleNumInput  *m_percHeightEdit;
00073 };
00074 
00075 
00076 #endif // EXPORTSIZEDIA_H
00077 
KDE Home | KDE Accessibility Home | Description of Access Keys