// Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #pragma once #include "projectexplorer_export.h" #include namespace ProjectExplorer { class FolderNode; class Node; class Project; namespace Internal { class ProjectWizardContext; class PROJECTEXPLORER_EXPORT ProjectFileWizardExtension : public Core::IFileWizardExtension { Q_OBJECT public: ~ProjectFileWizardExtension() override; QList extensionPages(const Core::IWizardFactory *wizard) override; Utils::Result<> processFiles(const QList &files, bool *removeOpenProjectAttribute) override; void applyCodeStyle(Core::GeneratedFile *file) const override; public slots: void firstExtensionPageShown(const QList &files, const QVariantMap &extraValues) override; private: Node *findWizardContextNode(Node *contextNode, Project *project, const Utils::FilePath &path); Utils::Result<> processProject(const QList &files, bool *removeOpenProjectAttribute); ProjectWizardContext *m_context = nullptr; }; } // namespace Internal } // namespace ProjectExplorer