~ubuntu-branches/debian/sid/kexi/sid

« back to all changes in this revision

Viewing changes to src/formeditor/resizehandle.h

  • Committer: Package Import Robot
  • Author(s): Pino Toscano
  • Date: 2017-06-24 20:10:10 UTC
  • Revision ID: package-import@ubuntu.com-20170624201010-5lrzd5r2vwthwifp
Tags: upstream-3.0.1.1
Import upstream version 3.0.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>
 
5
 
 
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.
 
9
 
 
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.
 
14
 
 
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.
 
19
*/
 
20
 
 
21
#ifndef KFE_RESIZEHANDLER_H
 
22
#define KFE_RESIZEHANDLER_H
 
23
 
 
24
#include "kformdesigner_export.h"
 
25
 
 
26
#include <QHash>
 
27
#include <QWidget>
 
28
 
 
29
namespace KFormDesigner
 
30
{
 
31
 
 
32
class Form;
 
33
class ResizeHandleSet;
 
34
 
 
35
/**
 
36
* a set of resize handles (for resizing widgets)
 
37
* @author Joseph Wenninger
 
38
*/
 
39
class KFORMDESIGNER_EXPORT ResizeHandleSet: public QObject
 
40
{
 
41
    Q_OBJECT
 
42
 
 
43
public:
 
44
    typedef QHash<QString, ResizeHandleSet*> Hash;
 
45
 
 
46
    ResizeHandleSet(QWidget *modify, Form *form);
 
47
 
 
48
    ~ResizeHandleSet();
 
49
 
 
50
    QWidget *widget() const;
 
51
 
 
52
    void setWidget(QWidget *modify);
 
53
 
 
54
    void raise();
 
55
 
 
56
    void setEditingMode(bool editing);
 
57
 
 
58
    Form *form() const;
 
59
 
 
60
Q_SIGNALS:
 
61
    void geometryChangeStarted();
 
62
    void geometryChanged(const QRect &newGeometry);
 
63
 
 
64
protected:
 
65
    void resizeStarted();
 
66
    void resizeFinished();
 
67
private:
 
68
    class Private;
 
69
 
 
70
    Private* const d;
 
71
    friend class ResizeHandle;
 
72
};
 
73
 
 
74
}
 
75
 
 
76
#endif