20#ifndef LIBREPCB_EDITOR_EXCLUSIVEACTIONGROUP_H
21#define LIBREPCB_EDITOR_EXCLUSIVEACTIONGROUP_H
64 void reset() noexcept;
66 void addAction(QPointer<QAction> action,
int id,
67 const QVariant& mode = QVariant()) noexcept;
81 QHash<
int, QVector<std::pair<QPointer<QAction>, QVariant>>>
mActions;
The ExclusiveActionGroup class groups multiple QAction's together.
Definition: exclusiveactiongroup.h:54
void actionTriggeredSlot() noexcept
Definition: exclusiveactiongroup.cpp:91
void reset() noexcept
Definition: exclusiveactiongroup.cpp:48
QHash< int, QVector< std::pair< QPointer< QAction >, QVariant > > > mActions
Definition: exclusiveactiongroup.h:81
void setEnabled(bool enabled) noexcept
Definition: exclusiveactiongroup.cpp:53
ExclusiveActionGroup() noexcept
Definition: exclusiveactiongroup.cpp:38
void setCurrentAction(int id) noexcept
Definition: exclusiveactiongroup.cpp:80
void addAction(QPointer< QAction > action, int id, const QVariant &mode=QVariant()) noexcept
Definition: exclusiveactiongroup.cpp:65
ExclusiveActionGroup(const ExclusiveActionGroup &other)=delete
void actionTriggered(int id, const QVariant &mode)
~ExclusiveActionGroup() noexcept
Definition: exclusiveactiongroup.cpp:41
void setActionEnabled(int id, bool enabled) noexcept
Definition: exclusiveactiongroup.cpp:74
Definition: occmodel.cpp:77