15#ifndef QDESIGNER_MEMBERSHEET_H
16#define QDESIGNER_MEMBERSHEET_H
20#include <QtDesigner/membersheet.h>
21#include <QtDesigner/default_extensionfactory.h>
22#include <QtCore/qstringlist.h>
31 Q_INTERFACES(QDesignerMemberSheetExtension)
34 explicit QDesignerMemberSheet(QObject *object, QObject *parent =
nullptr);
35 ~QDesignerMemberSheet() override;
37 int indexOf(
const QString &name)
const override;
39 int count()
const override;
40 QString memberName(
int index)
const override;
42 QString memberGroup(
int index)
const override;
43 void setMemberGroup(
int index,
const QString &group) override;
45 bool isVisible(
int index)
const override;
46 void setVisible(
int index,
bool b) override;
48 bool isSignal(
int index)
const override;
49 bool isSlot(
int index)
const override;
51 bool inheritedFromWidget(
int index)
const override;
53 static bool signalMatchesSlot(
const QString &signal,
const QString &slot);
55 QString declaredInClass(
int index)
const override;
57 QString signature(
int index)
const override;
58 QList<QByteArray> parameterTypes(
int index)
const override;
59 QList<QByteArray> parameterNames(
int index)
const override;
62 QDesignerMemberSheetPrivate *d;
68 Q_INTERFACES(QAbstractExtensionFactory)
71 QDesignerMemberSheetFactory(QExtensionManager *parent =
nullptr);
74 QObject *createExtension(QObject *object,
const QString &iid, QObject *parent)
const override;
virtual bool dynamicPropertiesAllowed() const =0
virtual bool isDynamicProperty(int index) const =0
virtual int addDynamicProperty(const QString &propertyName, const QVariant &value)=0
virtual bool canAddDynamicProperty(const QString &propertyName) const =0
virtual bool removeDynamicProperty(int index)=0
virtual ~QDesignerDynamicPropertySheetExtension()=default
QDesignerPropertySheetFactory(QExtensionManager *parent=nullptr)
static void registerExtension(QExtensionManager *mgr)
FormEditorOptionsPage(QDesignerFormEditorInterface *core)
QString name() const override
QWidget * createPage(QWidget *parent) override
Adds header fake properties to QTreeView and QTableView objects.
ItemViewPropertySheet(QTableView *tableViewObject, QObject *parent=nullptr)
bool reset(int index) override
void setProperty(int index, const QVariant &value) override
QVariant property(int index) const override
void setChanged(int index, bool changed) override
bool isChanged(int index) const override
QHash< QString, QString > propertyNameMap() const
Returns the mapping of fake property names to real property names.
bool hasReset(int index) const override
bool reset(int index) override
~LayoutPropertySheet() override
void setProperty(int index, const QVariant &value) override
static void markChangedStretchProperties(QDesignerFormEditorInterface *core, QLayout *lt, const DomLayout *domLayout)
static void stretchAttributesToDom(QDesignerFormEditorInterface *core, QLayout *lt, DomLayout *domLayout)
void setChanged(int index, bool changed) override
QVariant property(int index) const override
QString propertyGroup(int index) const override
~LinePropertySheet() override
bool isVisible(int index) const override
void setProperty(int index, const QVariant &value) override
void remove(int index) override
QWidget * widget(int index) const override
void insertWidget(int index, QWidget *widget) override
void addWidget(QWidget *widget) override
int count() const override
bool canAddWidget() const override
int currentIndex() const override
bool canRemove(int) const override
void setCurrentIndex(int index) override
bool canRemove(int) const override
void addWidget(QWidget *widget) override
bool canAddWidget() const override
int count() const override
void remove(int index) override
static void positionNewMdiChild(const QWidget *area, QWidget *mdiChild)
int currentIndex() const override
QWidget * widget(int index) const override
void insertWidget(int index, QWidget *widget) override
void setCurrentIndex(int index) override
bool isChanged(int index) const override
void setProperty(int index, const QVariant &value) override
static bool checkProperty(const QString &propertyName)
bool isEnabled(int index) const override
bool reset(int index) override
QVariant property(int index) const override
int currentIndex() const override
void addWidget(QWidget *widget) override
int count() const override
QWidget * widget(int index) const override
void remove(int index) override
bool canRemove(int) const override
bool canAddWidget() const override
void insertWidget(int index, QWidget *widget) override
void setCurrentIndex(int index) override
static const char * pageIdProperty
bool reset(int index) override
bool isVisible(int index) const override
void setProperty(int index, const QVariant &value) override
~SpacerPropertySheet() override
bool dynamicPropertiesAllowed() const override
bool isVisible(int index) const override
QString name() const override
QWidget * createPage(QWidget *parent) override
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
#define QDESIGNER_SHARED_EXPORT