1 | /**************************************************************************** |
2 | ** |
3 | ** Copyright (C) 2016 The Qt Company Ltd. |
4 | ** Contact: https://www.qt.io/licensing/ |
5 | ** |
6 | ** This file is part of the Qt Designer of the Qt Toolkit. |
7 | ** |
8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ |
9 | ** Commercial License Usage |
10 | ** Licensees holding valid commercial Qt licenses may use this file in |
11 | ** accordance with the commercial license agreement provided with the |
12 | ** Software or, alternatively, in accordance with the terms contained in |
13 | ** a written agreement between you and The Qt Company. For licensing terms |
14 | ** and conditions see https://www.qt.io/terms-conditions. For further |
15 | ** information use the contact form at https://www.qt.io/contact-us. |
16 | ** |
17 | ** GNU General Public License Usage |
18 | ** Alternatively, this file may be used under the terms of the GNU |
19 | ** General Public License version 3 as published by the Free Software |
20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT |
21 | ** included in the packaging of this file. Please review the following |
22 | ** information to ensure the GNU General Public License requirements will |
23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html. |
24 | ** |
25 | ** $QT_END_LICENSE$ |
26 | ** |
27 | ****************************************************************************/ |
28 | |
29 | #include <QtDesigner/abstractwidgetfactory.h> |
30 | #include "abstractformeditor.h" |
31 | #include "abstractwidgetdatabase.h" |
32 | |
33 | QT_BEGIN_NAMESPACE |
34 | |
35 | /*! |
36 | \class QDesignerWidgetFactoryInterface |
37 | \brief The QDesignerWidgetFactoryInterface class provides an interface that is used to control |
38 | the widget factory used by Qt Designer. |
39 | \inmodule QtDesigner |
40 | \internal |
41 | */ |
42 | |
43 | /*! |
44 | \fn QDesignerWidgetFactoryInterface::QDesignerWidgetFactoryInterface(QObject *parent) |
45 | |
46 | Constructs an interface to a widget factory with the given \a parent. |
47 | */ |
48 | QDesignerWidgetFactoryInterface::QDesignerWidgetFactoryInterface(QObject *parent) |
49 | : QObject(parent) |
50 | { |
51 | } |
52 | |
53 | /*! |
54 | \fn virtual QDesignerWidgetFactoryInterface::~QDesignerWidgetFactoryInterface() |
55 | */ |
56 | QDesignerWidgetFactoryInterface::~QDesignerWidgetFactoryInterface() = default; |
57 | |
58 | /*! |
59 | \fn virtual QDesignerFormEditorInterface *QDesignerWidgetFactoryInterface::core() const = 0 |
60 | |
61 | Returns the core form editor interface associated with this interface. |
62 | */ |
63 | |
64 | /*! |
65 | \fn virtual QWidget* QDesignerWidgetFactoryInterface::containerOfWidget(QWidget *child) const = 0 |
66 | |
67 | Returns the widget that contains the specified \a child widget. |
68 | */ |
69 | |
70 | /*! |
71 | \fn virtual QWidget* QDesignerWidgetFactoryInterface::widgetOfContainer(QWidget *container) const = 0 |
72 | |
73 | |
74 | */ |
75 | |
76 | /*! |
77 | \fn virtual QWidget *QDesignerWidgetFactoryInterface::createWidget(const QString &name, QWidget *parent) const = 0 |
78 | |
79 | Returns a new widget with the given \a name and \a parent widget. If no parent is specified, |
80 | the widget created will be a top-level widget. |
81 | */ |
82 | |
83 | /*! |
84 | \fn virtual QLayout *QDesignerWidgetFactoryInterface::createLayout(QWidget *widget, QLayout *layout, int type) const = 0 |
85 | |
86 | Returns a new layout of the specified \a type for the given \a widget or \a layout. |
87 | */ |
88 | |
89 | /*! |
90 | \fn virtual bool QDesignerWidgetFactoryInterface::isPassiveInteractor(QWidget *widget) = 0 |
91 | */ |
92 | |
93 | /*! |
94 | \fn virtual void QDesignerWidgetFactoryInterface::initialize(QObject *object) const = 0 |
95 | */ |
96 | |
97 | QT_END_NAMESPACE |
98 | |