Files
qt-creator/src/plugins/coreplugin/actionmanager/commandsfile.h

35 lines
664 B
C
Raw Normal View History

// Copyright (C) 2016 The Qt Company Ltd.
// 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
#pragma once
2008-12-02 12:01:29 +01:00
#include <utils/filepath.h>
#include <QObject>
#include <QString>
#include <QMap>
QT_FORWARD_DECLARE_CLASS(QKeySequence)
2008-12-02 12:01:29 +01:00
namespace Core {
namespace Internal {
struct ShortcutItem;
2008-12-02 14:09:21 +01:00
class CommandsFile : public QObject
{
2008-12-02 12:01:29 +01:00
Q_OBJECT
public:
CommandsFile(const Utils::FilePath &filePath);
2008-12-02 12:01:29 +01:00
QMap<QString, QList<QKeySequence> > importCommands() const;
2008-12-02 12:01:29 +01:00
bool exportCommands(const QList<ShortcutItem *> &items);
private:
Utils::FilePath m_filePath;
2008-12-02 12:01:29 +01:00
};
} // namespace Internal
} // namespace Core