2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2008-12-02 14:09:21 +01:00
|
|
|
|
2016-01-27 10:14:00 +01:00
|
|
|
#pragma once
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2017-03-03 18:16:34 +01:00
|
|
|
#include <projectexplorer/project.h>
|
2010-11-02 16:14:00 +01:00
|
|
|
|
2019-05-26 23:48:40 +03:00
|
|
|
namespace Utils { class ParameterAction; }
|
|
|
|
|
|
2014-09-12 13:02:40 +04:00
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QAction;
|
|
|
|
|
QT_END_NAMESPACE
|
2010-11-02 16:14:00 +01:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
namespace CMakeProjectManager {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2017-03-03 18:16:34 +01:00
|
|
|
class CMakeManager : public QObject
|
2008-12-02 12:01:29 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2017-03-03 18:16:34 +01:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
public:
|
2015-02-04 17:54:46 +01:00
|
|
|
CMakeManager();
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
private:
|
2021-06-18 08:46:38 +02:00
|
|
|
void updateCmakeActions(ProjectExplorer::Node *node);
|
2019-10-25 09:55:32 +02:00
|
|
|
void clearCMakeCache(ProjectExplorer::BuildSystem *buildSystem);
|
|
|
|
|
void runCMake(ProjectExplorer::BuildSystem *buildSystem);
|
|
|
|
|
void rescanProject(ProjectExplorer::BuildSystem *buildSystem);
|
2019-05-26 23:48:40 +03:00
|
|
|
void buildFileContextMenu();
|
|
|
|
|
void buildFile(ProjectExplorer::Node *node = nullptr);
|
|
|
|
|
void updateBuildFileAction();
|
|
|
|
|
void enableBuildFileMenus(ProjectExplorer::Node *node);
|
2014-09-12 14:09:40 +04:00
|
|
|
|
2011-02-23 15:52:43 +01:00
|
|
|
QAction *m_runCMakeAction;
|
2016-03-10 12:01:30 +01:00
|
|
|
QAction *m_clearCMakeCacheAction;
|
2011-02-23 15:52:43 +01:00
|
|
|
QAction *m_runCMakeActionContextMenu;
|
2016-12-04 03:36:12 +10:00
|
|
|
QAction *m_rescanProjectAction;
|
2019-05-26 23:48:40 +03:00
|
|
|
QAction *m_buildFileContextMenu;
|
|
|
|
|
Utils::ParameterAction *m_buildFileAction;
|
2009-01-21 16:25:21 +01:00
|
|
|
};
|
|
|
|
|
|
2008-12-02 14:09:21 +01:00
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace CMakeProjectManager
|