MCPcopy Create free account
hub / github.com/KDE/kdevelop / CMakeManager

Method CMakeManager

plugins/cmake/cmakemanager.cpp:72–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70K_PLUGIN_FACTORY_WITH_JSON(CMakeSupportFactory, "kdevcmakemanager.json", registerPlugin<CMakeManager>(); )
71
72CMakeManager::CMakeManager(QObject* parent, const KPluginMetaData& metaData, const QVariantList&)
73 : KDevelop::AbstractFileManagerPlugin(QStringLiteral("kdevcmakemanager"), parent, metaData)
74{
75 if (CMake::findExecutable().isEmpty()) {
76 setErrorDescription(i18n("Unable to find a CMake executable. Is one installed on the system?"));
77 m_highlight = nullptr;
78 return;
79 }
80
81 m_highlight = new KDevelop::CodeHighlighting(this);
82
83 new CodeCompletion(this, new CMakeCodeCompletionModel(this), name());
84
85 connect(ICore::self()->projectController(), &IProjectController::projectClosing, this, &CMakeManager::projectClosing);
86 connect(ICore::self()->runtimeController(), &IRuntimeController::currentRuntimeChanged, this, &CMakeManager::reloadProjects);
87 connect(this, &KDevelop::AbstractFileManagerPlugin::folderAdded, this, &CMakeManager::folderAdded);
88}
89
90CMakeManager::~CMakeManager()
91{

Callers

nothing calls this directly

Calls 5

nameFunction · 0.85
projectControllerMethod · 0.80
runtimeControllerMethod · 0.80
findExecutableFunction · 0.70
isEmptyMethod · 0.45

Tested by

no test coverage detected