1
/* This file is part of the KDE libraries
2
Copyright (C) 2002 Joseph Wenninger <jowenn@kde.org>
3
Copyright (C) 2004 Cedric Pasteur <cedric.pasteur@free.fr>
4
Copyright (C) 2009 Jarosław Staniek <staniek@kde.org>
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Library General Public
8
License version 2 as published by the Free Software Foundation.
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
15
You should have received a copy of the GNU Library General Public License
16
along with this library; see the file COPYING.LIB. If not, write to
17
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
* Boston, MA 02110-1301, USA.
21
#ifndef KFE_RESIZEHANDLER_H
22
#define KFE_RESIZEHANDLER_H
24
#include "kformdesigner_export.h"
29
namespace KFormDesigner
33
class ResizeHandleSet;
36
* a set of resize handles (for resizing widgets)
37
* @author Joseph Wenninger
39
class KFORMDESIGNER_EXPORT ResizeHandleSet: public QObject
44
typedef QHash<QString, ResizeHandleSet*> Hash;
46
ResizeHandleSet(QWidget *modify, Form *form);
50
QWidget *widget() const;
52
void setWidget(QWidget *modify);
56
void setEditingMode(bool editing);
61
void geometryChangeStarted();
62
void geometryChanged(const QRect &newGeometry);
66
void resizeFinished();
71
friend class ResizeHandle;