41 QAction *
action(Action action)
const override;
42 QActionGroup *
actionGroup(ActionGroup actionGroup)
const override;
49 QDesignerFormWindowInterface *
createFormWindow(
QWidget *parentWidget =
nullptr, Qt::WindowFlags flags = {})
override;
55 void dragItems(
const QList<QDesignerDnDItemInterface*> &item_list)
override;
69#if QT_CONFIG(clipboard)
75 void slotActionSelectAllActivated();
76 void slotActionLowerActivated();
77 void slotActionRaiseActivated();
79 void slotActionBreakLayoutActivated();
80 void slotActionAdjustSizeActivated();
81 void slotActionSimplifyLayoutActivated();
83 void slotActionGroupPreviewInStyle(
const QString &style,
int deviceProfileIndex);
84 void slotActionShowFormWindowSettingsDialog();
86 void slotUpdateActions();
93 void setCurrentUndoStack(QUndoStack *stack);
96 enum CreateLayoutContext { LayoutContainer, LayoutSelection, MorphLayout };
98 QDesignerFormEditorInterface *m_core;
100 QList<FormWindow*> m_formWindows;
102 PreviewManager *m_previewManager;
105
106 CreateLayoutContext m_createLayoutContext;
107 QWidget *m_morphLayoutContainer;
110#if QT_CONFIG(clipboard)
115 QAction *m_actionSelectAll =
nullptr;
116 QAction *m_actionDelete =
nullptr;
117 QAction *m_actionLower =
nullptr;
118 QAction *m_actionRaise =
nullptr;
120 QAction *m_actionHorizontalLayout =
nullptr;
121 QAction *m_actionVerticalLayout =
nullptr;
122 QAction *m_actionFormLayout =
nullptr;
123 QAction *m_actionSplitHorizontal =
nullptr;
124 QAction *m_actionSplitVertical =
nullptr;
125 QAction *m_actionGridLayout =
nullptr;
126 QAction *m_actionBreakLayout =
nullptr;
127 QAction *m_actionSimplifyLayout =
nullptr;
128 QAction *m_actionAdjustSize =
nullptr;
130 QAction *m_actionDefaultPreview =
nullptr;
132 QAction *m_actionShowFormWindowSettingsDialog =
nullptr;
134 QAction *m_actionUndo =
nullptr;
135 QAction *m_actionRedo =
nullptr;
137 QSet<QWidget *> getUnsortedLayoutsToBeBroken(
bool firstOnly)
const;
138 bool hasLayoutsToBeBroken()
const;
139 QWidgetList layoutsToBeBroken(
QWidget *w)
const;
140 QWidgetList layoutsToBeBroken()
const;
142 QUndoGroup *m_undoGroup =
nullptr;
QWidget * createPage(QWidget *parent) override
QString name() const override