File indexing completed on 2024-06-23 04:25:45

0001 /* This file is part of the KDE libraries
0002     SPDX-FileCopyrightText: 2008 Alexander Dymo <adymo@kdevelop.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 #ifndef KSHORTCUTSCHEMESHELPER_P_H
0007 #define KSHORTCUTSCHEMESHELPER_P_H
0008 
0009 #include <QString>
0010 #include <QHash>
0011 
0012 class KisKActionCollection;
0013 class KisKXMLGUIClient;
0014 class KConfigBase;
0015 
0016 class KisKShortcutSchemesHelper
0017 {
0018 public:
0019 
0020     /**
0021      * @return the name of the (writable) file to save the shortcut scheme to.
0022      */
0023     static QString shortcutSchemeFileName(const QString &schemeName);
0024 
0025     static bool saveShortcutScheme();
0026 
0027     /**
0028      * @return a list of files to save the shortcut scheme to. Does not include "Default"
0029      * @see shortcutSchemeFileName, exportActionCollection
0030      */
0031     static QHash<QString, QString> schemeFileLocations();
0032 
0033 };
0034 
0035 #endif