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
objectinspector.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 OBJECTINSPECTOR_H
5#define OBJECTINSPECTOR_H
6
9
11
12class QDesignerFormEditorInterface;
13class QDesignerFormWindowInterface;
14
15class QItemSelection;
16
17namespace qdesigner_internal {
18
20{
22public:
25
26 QDesignerFormEditorInterface *core() const override;
27
28 void getSelection(Selection &s) const override;
29 bool selectObject(QObject *o) override;
31
32 void setFormWindow(QDesignerFormWindowInterface *formWindow) override;
33
34public slots:
36
37private slots:
39 void slotPopupContextMenu(const QPoint &pos);
40 void slotHeaderDoubleClicked(int column);
41
42protected:
43 void dragEnterEvent (QDragEnterEvent * event) override;
44 void dragMoveEvent(QDragMoveEvent * event) override;
45 void dragLeaveEvent(QDragLeaveEvent * event) override;
46 void dropEvent (QDropEvent * event) override;
47
48private:
51};
52
53} // namespace qdesigner_internal
54
55QT_END_NAMESPACE
56
57#endif // OBJECTINSPECTOR_H
The QDesignerMetaDataBaseItemInterface class provides an interface to individual items in \QD's meta ...
QtAbstractPropertyBrowser provides a base class for implementing property browsers.
The QtBrowserItem class represents a property in a property browser instance.
The QtButtonPropertyBrowser class provides a drop down QToolButton based property browser.
The QtProperty class encapsulates an instance of a property.
The QtTreePropertyBrowser class provides QTreeWidget based property browser.
The QtVariantProperty class is a convenience class handling QVariant based properties.
QDesignerFormEditorInterface * core() const override
Returns a pointer to \QD's current QDesignerFormEditorInterface object.
void setFormWindow(QDesignerFormWindowInterface *formWindow) override
Sets the currently selected form window to formWindow.
bool selectObject(QObject *o) override
void getSelection(Selection &s) const override
void dragMoveEvent(QDragMoveEvent *event) override
void dragLeaveEvent(QDragLeaveEvent *event) override
void dropEvent(QDropEvent *event) override
void dragEnterEvent(QDragEnterEvent *event) override
QString currentPropertyName() const override
Returns the name of the currently selected property in the property editor.
bool event(QEvent *event) override
This virtual function receives events to an object and should return true if the event e was recogniz...
QDesignerFormEditorInterface * core() const override
Returns a pointer to \QD's current QDesignerFormEditorInterface object.
void setObject(QObject *object) override
Changes the currently selected object in \QD's workspace, to object.
QObject * object() const override
Returns the currently selected object in \QD's workspace.
void setReadOnly(bool readOnly) override
If readOnly is true, the property editor is made write protected; otherwise the write protection is r...
bool isReadOnly() const override
Returns true if the property editor is write protected; otherwise false.
void setPropertyValue(const QString &name, const QVariant &value, bool changed=true) override
Sets the value of the property specified by name to value.
bool loadContents(const QString &contents) override
void dropEvent(QDropEvent *event) override
QString fileName() const override
Returns the name of the XML file \QD is currently using to populate its widget box.
Widget widget(int cat_idx, int wgt_idx) const override
Category category(int cat_idx) const override
bool load() override
Populates \QD's widget box by loading (or reloading) the currently specified XML file.
void dragEnterEvent(QDragEnterEvent *event) override
void dropWidgets(const QList< QDesignerDnDItemInterface * > &item_list, const QPoint &global_mouse_pos) override
void removeCategory(int cat_idx) override
void dragMoveEvent(QDragMoveEvent *event) override
void addWidget(int cat_idx, const Widget &wgt) override
int categoryCount() const override
void setFileName(const QString &file_name) override
Sets the XML file that \QD will use to populate its widget box, to fileName.
bool save() override
Saves the contents of \QD's widget box in the file specified by the fileName() function.
void addCategory(const Category &cat) override
QDesignerFormEditorInterface * core() const
Definition widgetbox.cpp:97
int widgetCount(int cat_idx) const override
void removeWidget(int cat_idx, int wgt_idx) override
QIcon iconForWidget(const QString &className, const QString &category=QString()) const override
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
#define QT_OBJECTINSPECTOR_EXPORT
#define QT_PROPERTYEDITOR_EXPORT
#define INIT_PLUGIN_INSTANCE(PLUGIN)
static int qtMajorVersion(int qtVersion)
static QString widgetBoxFileName(int qtVersion, const QDesignerLanguageExtension *lang=nullptr)
static void setMinorVersion(int minorVersion, int *qtVersion)
static int qtMinorVersion(int qtVersion)
#define QDESIGNER_SHARED_EXPORT
#define QT_WIDGETBOX_EXPORT