2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2020 Alexis Jeandet.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2020-10-29 10:20:14 +01:00
|
|
|
|
2020-05-01 18:20:56 +02:00
|
|
|
#pragma once
|
2020-10-29 10:20:14 +01:00
|
|
|
|
2022-10-10 09:14:04 +02:00
|
|
|
#include "mesonprojectmanagertr.h"
|
|
|
|
|
|
2020-05-01 18:20:56 +02:00
|
|
|
#include <utils/parameteraction.h>
|
2020-10-29 10:20:14 +01:00
|
|
|
|
2020-05-01 18:20:56 +02:00
|
|
|
namespace MesonProjectManager {
|
|
|
|
|
namespace Internal {
|
2020-10-29 10:20:14 +01:00
|
|
|
|
2020-05-01 18:20:56 +02:00
|
|
|
class MesonActionsManager : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
Utils::ParameterAction buildTargetContextAction{
|
2022-10-10 09:14:04 +02:00
|
|
|
Tr::tr("Build"), Tr::tr("Build \"%1\""),
|
|
|
|
|
Utils::ParameterAction::AlwaysEnabled /*handled manually*/
|
2020-05-01 18:20:56 +02:00
|
|
|
};
|
|
|
|
|
QAction configureActionMenu;
|
|
|
|
|
QAction configureActionContextMenu;
|
|
|
|
|
void configureCurrentProject();
|
|
|
|
|
void updateContextActions();
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
MesonActionsManager();
|
|
|
|
|
};
|
2020-10-29 10:20:14 +01:00
|
|
|
|
2020-05-01 18:20:56 +02:00
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace MesonProjectManager
|