4#ifndef BUTTON_TASKMENU_H
5#define BUTTON_TASKMENU_H
7#include <QtWidgets/qabstractbutton.h>
8#include <QtWidgets/qcommandlinkbutton.h>
9#include <QtWidgets/qbuttongroup.h>
11#include <qdesigner_taskmenu_p.h>
12#include <extensionfactory_p.h>
18class QDesignerFormWindowCursorInterface;
31 void initialize(QDesignerFormWindowInterface *formWindow,
32 QButtonGroup *buttonGroup =
nullptr,
34 QAbstractButton *currentButton =
nullptr);
44 QAction *m_selectGroupAction;
45 QAction *m_breakGroupAction;
47 QDesignerFormWindowInterface *m_formWindow =
nullptr;
48 QButtonGroup *m_buttonGroup =
nullptr;
49 QAbstractButton *m_currentButton =
nullptr;
65 QButtonGroup *m_buttonGroup;
66 QList<QAction*> m_taskActions;
89 void addToGroup(QAction *a);
90 void removeFromGroup();
95 UngroupedButtonSelection,
96 GroupedButtonSelection
99 SelectionType selectionType(
const QDesignerFormWindowCursorInterface *cursor, QButtonGroup ** ptrToGroup =
nullptr)
const;
100 bool refreshAssignMenu(
const QDesignerFormWindowInterface *fw,
int buttonCount, SelectionType st, QButtonGroup *currentGroup);
101 QMenu *createGroupSelectionMenu(
const QDesignerFormWindowInterface *fw);
103 QList<QAction*> m_taskActions;
105 QMenu *m_assignGroupSubMenu;
106 QActionGroup *m_assignActionGroup;
107 QAction *m_assignToGroupSubMenuAction;
108 QMenu *m_currentGroupSubMenu;
109 QAction *m_currentGroupSubMenuAction;
111 QAction *m_createGroupAction;
112 QAction *m_preferredEditAction;
113 QAction *m_removeFromGroupAction;
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
static ButtonList buttonList(const QDesignerFormWindowCursorInterface *cursor)
static QUndoCommand * createRemoveButtonsCommand(QDesignerFormWindowInterface *fw, const ButtonList &bl)