X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fgraphicalui.h;h=269e079c5c529f589b487a687b0acdaf127467d0;hb=326a0d0783c8ecffb6a7bae02fd74f66bd4242fa;hp=5435d4e80fdfbcb07168a56feee316aa7c41321c;hpb=647215f1dd8ea6fdb6e4fb747c5dc3e19c4ec3fc;p=quassel.git diff --git a/src/uisupport/graphicalui.h b/src/uisupport/graphicalui.h index 5435d4e8..269e079c 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 * @@ -45,7 +45,16 @@ public: * create appropriate Action objects using GraphicalUi::actionCollection(cat)->add\(). * @param category The category (default: "General") */ - static ActionCollection *actionCollection(const QString &category = "General"); + static ActionCollection *actionCollection(const QString &category = "General", const QString &translatedCategory = QString()); + 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();