~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to filters/libdialogfilter/exportsizedia.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2006-04-20 21:38:53 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060420213853-j5lxluqvymxt2zny
Tags: 1:1.5.0-0ubuntu2
UbuntuĀ uploadĀ 

Show diffs side-by-side

added added

removed removed

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