X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fgraphicalui.h;h=42a0a01cd70def56931862b6c192029ac4d5c5e5;hp=6d6306eda383b0b0fb8c0b9b04b9d9f98a3ec977;hb=44833145103bc0802f2e6fcc9edecaa2fdafc9d9;hpb=4476cfb22f36ad9ba96e4978c3bcce1c2f6b5a04 diff --git a/src/uisupport/graphicalui.h b/src/uisupport/graphicalui.h index 6d6306ed..42a0a01c 100644 --- a/src/uisupport/graphicalui.h +++ b/src/uisupport/graphicalui.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-2010 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -46,6 +46,15 @@ public: * @param category The category (default: "General") */ static ActionCollection *actionCollection(const QString &category = "General"); + static QHash 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(); inline static ContextMenuActionProvider *contextMenuActionProvider(); inline static ToolBarActionProvider *toolBarActionProvider(); @@ -92,6 +101,9 @@ protected: virtual bool eventFilter(QObject *obj, QEvent *event); +protected slots: + virtual void disconnectedFromCore(); + private: static inline GraphicalUi *instance();