Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
abstractmetadatabase.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef ABSTRACTMETADATABASE_H
5#define ABSTRACTMETADATABASE_H
6
7#include <QtDesigner/sdk_global.h>
8
9#include <QtCore/qobject.h>
10#include <QtCore/qlist.h>
11#include <QtCore/qhash.h>
12
13QT_BEGIN_NAMESPACE
14
15class QCursor;
16class QWidget;
17
18class QDesignerFormEditorInterface;
19
21{
22public:
24
27
28 virtual QString name() const = 0;
29 virtual void setName(const QString &name) = 0;
30
31 virtual QList<QWidget*> tabOrder() const = 0;
32 virtual void setTabOrder(const QList<QWidget*> &tabOrder) = 0;
33
34 virtual bool enabled() const = 0;
35 virtual void setEnabled(bool b) = 0;
36};
37
38
39class QDESIGNER_SDK_EXPORT QDesignerMetaDataBaseInterface: public QObject
40{
41 Q_OBJECT
42public:
43 explicit QDesignerMetaDataBaseInterface(QObject *parent = nullptr);
44 virtual ~QDesignerMetaDataBaseInterface();
45
46 virtual QDesignerMetaDataBaseItemInterface *item(QObject *object) const = 0;
47 virtual void add(QObject *object) = 0;
48 virtual void remove(QObject *object) = 0;
49
50 virtual QList<QObject*> objects() const = 0;
51
52 virtual QDesignerFormEditorInterface *core() const = 0;
53
54Q_SIGNALS:
55 void changed();
56};
57
58QT_END_NAMESPACE
59
60#endif // ABSTRACTMETADATABASE_H
The QDesignerMetaDataBaseInterface class provides an interface to Qt Widgets Designer's object meta d...
The QDesignerMetaDataBaseItemInterface class provides an interface to individual items in \QD's meta ...
virtual void setName(const QString &name)=0
Sets the name of the item to the given name.
virtual QString name() const =0
Returns the name of the item in the database.
virtual bool enabled() const =0
Returns whether the item is enabled.
virtual ~QDesignerMetaDataBaseItemInterface()=default
Destroys the item interface to the meta-data database.
virtual void setTabOrder(const QList< QWidget * > &tabOrder)=0
Sets the tab order in the form using the list of widgets defined by tabOrder.
virtual QList< QWidget * > tabOrder() const =0
Returns a list of widgets in the order defined by the form's tab order.
virtual void setEnabled(bool b)=0
If enabled is true, the item is enabled; otherwise it is disabled.
friend class QWidget
Definition qpainter.h:421
Combined button and popup list for selecting options.