15#ifndef QDESIGNER_STACKEDBOX_H
16#define QDESIGNER_STACKEDBOX_H
30 class PromotionTaskMenu;
40 explicit QStackedWidgetPreviewEventFilter(QStackedWidget *parent);
43 static void install(QStackedWidget *stackedWidget);
44 bool eventFilter(QObject *watched, QEvent *event) override;
46 void setButtonToolTipEnabled(
bool v) { m_buttonToolTipEnabled = v; }
47 bool buttonToolTipEnabled()
const {
return m_buttonToolTipEnabled; }
55 QStackedWidget *stackedWidget()
const {
return m_stackedWidget; }
56 virtual void gotoPage(
int page);
59 void updateButtonToolTip(QObject *o);
61 bool m_buttonToolTipEnabled;
62 QStackedWidget *m_stackedWidget;
74 explicit QStackedWidgetEventFilter(QStackedWidget *parent);
77 static void install(QStackedWidget *stackedWidget);
78 static QStackedWidgetEventFilter *eventFilterOf(
const QStackedWidget *stackedWidget);
80 static QMenu *addStackedWidgetContextMenuActions(
const QStackedWidget *stackedWidget, QMenu *popup);
83 QMenu *addContextMenuActions(QMenu *popup);
86 void removeCurrentPage();
92 void gotoPage(
int page) override;
95 QAction *m_actionPreviousPage;
96 QAction *m_actionNextPage;
97 QAction *m_actionDeletePage;
98 QAction *m_actionInsertPage;
99 QAction *m_actionInsertPageAfter;
100 QAction *m_actionChangePageOrder;
101 qdesigner_internal::PromotionTaskMenu* m_pagePromotionTaskMenu;
107 explicit QStackedWidgetPropertySheet(QStackedWidget *object, QObject *parent =
nullptr);
109 void setProperty(
int index,
const QVariant &value) override;
110 QVariant property(
int index)
const override;
111 bool reset(
int index) override;
112 bool isEnabled(
int index)
const override;
116 static bool checkProperty(
const QString &propertyName);
119 QStackedWidget *m_stackedWidget;
122using QStackedWidgetPropertySheetFactory = QDesignerPropertySheetFactory<QStackedWidget, QStackedWidgetPropertySheet>;
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
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