#include <actionregistry.h>
◆ action()
| QAction * openswmmvis::ui::ActionRegistry::action |
( |
const QString & |
id | ) |
const |
◆ actionRegistered
| void openswmmvis::ui::ActionRegistry::actionRegistered |
( |
const QString & |
id | ) |
|
|
signal |
◆ allActions()
| QList< QAction * > openswmmvis::ui::ActionRegistry::allActions |
( |
| ) |
const |
◆ catalogEntry()
| const ActionCatalogEntry * openswmmvis::ui::ActionRegistry::catalogEntry |
( |
const QString & |
id | ) |
const |
◆ conflictingActionId()
| QString openswmmvis::ui::ActionRegistry::conflictingActionId |
( |
const QKeySequence & |
seq, |
|
|
const QString & |
excludeId = QString() |
|
) |
| const |
Id of the registered action whose effective bindings contain seq, excluding excludeId; empty if none.
◆ defaultShortcuts()
| QList< QKeySequence > openswmmvis::ui::ActionRegistry::defaultShortcuts |
( |
const QString & |
id | ) |
const |
Catalog-default bindings for id ("std:" entries expand to the platform's full standard-key binding list).
◆ effectiveShortcuts()
| QList< QKeySequence > openswmmvis::ui::ActionRegistry::effectiveShortcuts |
( |
const QString & |
id | ) |
const |
Effective bindings — user override when present, else defaults.
◆ hasUserShortcut()
| bool openswmmvis::ui::ActionRegistry::hasUserShortcut |
( |
const QString & |
id | ) |
const |
◆ instance()
◆ registerAction()
| void openswmmvis::ui::ActionRegistry::registerAction |
( |
const QString & |
id, |
|
|
QAction * |
action |
|
) |
| |
Adopt action for catalog entry id and apply its effective shortcut. No-op with a warning if the id is unknown or already bound to a different action.
◆ registeredIds()
| QStringList openswmmvis::ui::ActionRegistry::registeredIds |
( |
| ) |
const |
◆ registerFromCatalog()
| int openswmmvis::ui::ActionRegistry::registerFromCatalog |
( |
QWidget * |
root | ) |
|
Sweep the catalog and adopt every entry whose objectName resolves to a QAction under root. Entries that don't resolve are left unregistered (tolerated — mirrors the historical findChild behavior for dangling names). Returns the number adopted.
◆ resetShortcut()
| void openswmmvis::ui::ActionRegistry::resetShortcut |
( |
const QString & |
id | ) |
|
Drop any user override for id and restore the catalog default.
◆ setEnabledByTag()
| void openswmmvis::ui::ActionRegistry::setEnabledByTag |
( |
unsigned |
tag, |
|
|
bool |
enabled |
|
) |
| |
Enable/disable every registered action carrying tag (see ActionTag in actioncatalog.h).
◆ setUserShortcut()
| void openswmmvis::ui::ActionRegistry::setUserShortcut |
( |
const QString & |
id, |
|
|
const QKeySequence & |
seq |
|
) |
| |
Persist seq as the user binding for id and apply it live. An empty sequence persists as "deliberately cleared".
◆ shortcutChanged
| void openswmmvis::ui::ActionRegistry::shortcutChanged |
( |
const QString & |
id | ) |
|
|
signal |
The documentation for this class was generated from the following files: