moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kig / kig / zoomarea.h
blob1409f1f49fe614c058e9fddfffcd9e175da002ca
1 /**
2 This file is part of Kig, a KDE program for Interactive Geometry...
3 Copyright (C) 2004 Dominique Devriese <devriese@kde.org>
4 Copyright (C) 2004 Pino Toscano <toscano.pino@tiscali.it>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19 USA
20 **/
22 #ifndef KIG_MISC_ZOOMAREA_H
23 #define KIG_MISC_ZOOMAREA_H
25 #include "zoomareabase.h"
26 #include "../misc/coordinate.h"
27 #include "kig_document.h"
29 #include <qvalidator.h>
31 #include <kiconloader.h>
33 class ZoomArea
34 : public ZoomAreaBase
36 Q_OBJECT
38 const KIconLoader* il;
39 KigDocument& mdoc;
40 QValidator* mvtor;
42 Coordinate mcoord0;
43 Coordinate mcoord1;
44 public:
45 ZoomArea( QWidget* parent, KigDocument& doc );
46 ~ZoomArea();
48 Coordinate coord0() const;
49 Coordinate coord1() const;
50 void setCoord0( Coordinate& );
51 void setCoord1( Coordinate& );
53 public slots:
54 void okSlot();
55 void cancelSlot();
57 protected slots:
58 void coordsChangedSlot( const QString& );
61 #endif