blob: f8251f03b70b286904071bac9b16bce8433ac37c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright (C) 2016 Nicolas Arnaud-Cormos
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include "imacrohandler.h"
#include <coreplugin/actionmanager/actionmanager.h>
#include <QSet>
namespace Macros::Internal {
class ActionMacroHandler : public IMacroHandler
{
public:
ActionMacroHandler();
bool canExecuteEvent(const MacroEvent ¯oEvent) override;
bool executeEvent(const MacroEvent ¯oEvent) override;
private:
void registerCommand(Utils::Id id);
Core::Command *command(const QString &id);
void addCommand(Utils::Id id);
private:
QSet<Utils::Id> m_commandIds;
};
} // namespace Macros::Internal
|