+ GraphicalUi(QObject *parent = 0);
+ virtual void init();
+
+ //! Access global ActionCollections.
+ /** These ActionCollections are associated with the main window, i.e. they contain global
+ * actions (and thus, shortcuts). Widgets providing application-wide shortcuts should
+ * create appropriate Action objects using GraphicalUi::actionCollection(cat)->add\<Action\>().
+ * @param category The category (default: "General")
+ */
+ static ActionCollection *actionCollection(const QString &category = "General", const QString &translatedCategory = QString());
+ static QHash<QString, ActionCollection *> actionCollections();
+
+ //! Load custom shortcuts from ShortcutSettings
+ /** @note This method assumes that all configurable actions are defined when being called
+ */
+ static void loadShortcuts();
+
+ //! Save custom shortcuts to ShortcutSettings
+ static void saveShortcuts();