1 /****************************************************************************
2 **
3 ** Copyright (C) 2015 The Qt Company Ltd.
4 ** Contact: http://www.qt.io/licensing/
5 **
6 ** This file is part of the Qt Designer of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
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 http://www.qt.io/terms-conditions. For further
15 ** information use the contact form at http://www.qt.io/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 or version 3 as published by the Free
20 ** Software Foundation and appearing in the file LICENSE.LGPLv21 and
21 ** LICENSE.LGPLv3 included in the packaging of this file. Please review the
22 ** following information to ensure the GNU Lesser General Public License
23 ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
24 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
25 **
26 ** As a special exception, The Qt Company gives you certain additional
27 ** rights. These rights are described in The Qt Company LGPL Exception
28 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
29 **
30 ** GNU General Public License Usage
31 ** Alternatively, this file may be used under the terms of the GNU
32 ** General Public License version 3.0 as published by the Free Software
33 ** Foundation and appearing in the file LICENSE.GPL included in the
34 ** packaging of this file.  Please review the following information to
35 ** ensure the GNU General Public License version 3.0 requirements will be
36 ** met: http://www.gnu.org/copyleft/gpl.html.
37 **
38 ** $QT_END_LICENSE$
39 **
40 ****************************************************************************/
41 
42 // sdk
43 #include "abstractmetadatabase.h"
44 
45 QT_BEGIN_NAMESPACE
46 
47 /*!
48     \class QDesignerMetaDataBaseInterface
49     \brief The QDesignerMetaDataBaseInterface class provides an interface to Qt Designer's
50     object meta database.
51     \inmodule QtDesigner
52     \internal
53 */
54 
55 /*!
56     Constructs an interface to the meta database with the given \a parent.
57 */
QDesignerMetaDataBaseInterface(QObject * parent)58 QDesignerMetaDataBaseInterface::QDesignerMetaDataBaseInterface(QObject *parent)
59     : QObject(parent)
60 {
61 }
62 
63 /*!
64     Destroys the interface to the meta database.
65 */
~QDesignerMetaDataBaseInterface()66 QDesignerMetaDataBaseInterface::~QDesignerMetaDataBaseInterface()
67 {
68 }
69 
70 /*!
71     \fn QDesignerMetaDataBaseItemInterface *QDesignerMetaDataBaseInterface::item(QObject *object) const
72 
73     Returns the item in the meta database associated with the given \a object.
74 */
75 
76 /*!
77     \fn void QDesignerMetaDataBaseInterface::add(QObject *object)
78 
79     Adds the specified \a object to the meta database.
80 */
81 
82 /*!
83     \fn void QDesignerMetaDataBaseInterface::remove(QObject *object)
84 
85     Removes the specified \a object from the meta database.
86 */
87 
88 /*!
89     \fn QList<QObject*> QDesignerMetaDataBaseInterface::objects() const
90 
91     Returns the list of objects that have corresponding items in the meta database.
92 */
93 
94 /*!
95     \fn QDesignerFormEditorInterface *QDesignerMetaDataBaseInterface::core() const
96 
97     Returns the core interface that is associated with the meta database.
98 */
99 
100 
101 // Doc: Interface only
102 
103 /*!
104     \class QDesignerMetaDataBaseItemInterface
105     \brief The QDesignerMetaDataBaseItemInterface class provides an interface to individual
106     items in Qt Designer's meta database.
107     \inmodule QtDesigner
108     \internal
109 
110     This class allows individual items in \QD's meta-data database to be accessed and modified.
111     Use the QDesignerMetaDataBaseInterface class to change the properties of the database itself.
112 */
113 
114 /*!
115     \fn QDesignerMetaDataBaseItemInterface::~QDesignerMetaDataBaseItemInterface()
116 
117     Destroys the item interface to the meta-data database.
118 */
119 
120 /*!
121     \fn QString QDesignerMetaDataBaseItemInterface::name() const
122 
123     Returns the name of the item in the database.
124 
125     \sa setName()
126 */
127 
128 /*!
129     \fn void QDesignerMetaDataBaseItemInterface::setName(const QString &name)
130 
131     Sets the name of the item to the given \a name.
132 
133     \sa name()
134 */
135 
136 /*!
137     \fn QList<QWidget*> QDesignerMetaDataBaseItemInterface::tabOrder() const
138 
139     Returns a list of widgets in the order defined by the form's tab order.
140 
141     \sa setTabOrder()
142 */
143 
144 
145 /*!
146     \fn void QDesignerMetaDataBaseItemInterface::setTabOrder(const QList<QWidget*> &tabOrder)
147 
148     Sets the tab order in the form using the list of widgets defined by \a tabOrder.
149 
150     \sa tabOrder()
151 */
152 
153 
154 /*!
155     \fn bool QDesignerMetaDataBaseItemInterface::enabled() const
156 
157     Returns whether the item is enabled.
158 
159     \sa setEnabled()
160 */
161 
162 /*!
163     \fn void QDesignerMetaDataBaseItemInterface::setEnabled(bool enabled)
164 
165     If \a enabled is true, the item is enabled; otherwise it is disabled.
166 
167     \sa enabled()
168 */
169 
170 QT_END_NAMESPACE
171