2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2020 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2020-08-05 16:21:52 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <projectexplorer/buildstep.h>
|
2020-09-18 12:11:40 +02:00
|
|
|
|
|
|
|
|
#include <utils/aspects.h>
|
2020-08-05 16:21:52 +02:00
|
|
|
|
2020-08-06 16:48:43 +02:00
|
|
|
#include <QLabel>
|
|
|
|
|
#include <QPointer>
|
|
|
|
|
|
2023-01-19 17:19:57 +01:00
|
|
|
namespace IncrediBuild::Internal {
|
2020-08-05 16:21:52 +02:00
|
|
|
|
2020-09-18 12:11:40 +02:00
|
|
|
class CommandBuilderAspect final : public Utils::BaseAspect
|
2020-08-05 16:21:52 +02:00
|
|
|
{
|
2020-11-09 12:37:09 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
2020-08-05 16:21:52 +02:00
|
|
|
public:
|
|
|
|
|
explicit CommandBuilderAspect(ProjectExplorer::BuildStep *step);
|
|
|
|
|
~CommandBuilderAspect() final;
|
|
|
|
|
|
2020-08-06 18:11:52 +02:00
|
|
|
QString fullCommandFlag(bool keepJobNum) const;
|
2020-08-05 16:21:52 +02:00
|
|
|
|
|
|
|
|
private:
|
2023-05-02 17:20:57 +02:00
|
|
|
void addToLayout(Layouting::LayoutItem &parent) final;
|
2020-08-05 16:21:52 +02:00
|
|
|
void fromMap(const QVariantMap &map) final;
|
|
|
|
|
void toMap(QVariantMap &map) const final;
|
|
|
|
|
|
2020-08-06 18:11:52 +02:00
|
|
|
void updateGui();
|
|
|
|
|
|
2020-08-05 16:21:52 +02:00
|
|
|
class CommandBuilderAspectPrivate *d = nullptr;
|
|
|
|
|
};
|
|
|
|
|
|
2023-01-19 17:19:57 +01:00
|
|
|
} // IncrediBuild::Internal
|