2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2008-12-02 14:09:21 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2021-08-11 09:12:01 +02:00
|
|
|
#include <utils/filepath.h>
|
|
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QObject>
|
|
|
|
|
#include <QString>
|
|
|
|
|
#include <QMap>
|
2013-03-27 08:29:38 +01:00
|
|
|
|
|
|
|
|
QT_FORWARD_DECLARE_CLASS(QKeySequence)
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
struct ShortcutItem;
|
2010-01-29 21:33:57 +01:00
|
|
|
|
2008-12-02 14:09:21 +01:00
|
|
|
class CommandsFile : public QObject
|
|
|
|
|
{
|
2008-12-02 12:01:29 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2021-08-11 09:12:01 +02:00
|
|
|
CommandsFile(const Utils::FilePath &filePath);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2020-03-04 16:37:45 +01:00
|
|
|
QMap<QString, QList<QKeySequence> > importCommands() const;
|
2008-12-02 12:01:29 +01:00
|
|
|
bool exportCommands(const QList<ShortcutItem *> &items);
|
|
|
|
|
|
|
|
|
|
private:
|
2021-08-11 09:12:01 +02:00
|
|
|
Utils::FilePath m_filePath;
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Core
|