2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2017 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2017-06-30 14:50:28 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "vcsbase_global.h"
|
2020-02-04 08:11:50 +01:00
|
|
|
|
2017-06-30 14:50:28 +02:00
|
|
|
#include <diffeditor/diffeditorcontroller.h>
|
|
|
|
|
|
2021-05-04 05:54:54 +02:00
|
|
|
namespace Utils {
|
|
|
|
|
class Environment;
|
2022-12-12 14:40:56 +01:00
|
|
|
class QtcProcess;
|
2021-05-04 05:54:54 +02:00
|
|
|
} // Utils
|
2017-06-30 14:50:28 +02:00
|
|
|
|
|
|
|
|
namespace VcsBase {
|
|
|
|
|
|
|
|
|
|
class VcsBaseDiffEditorControllerPrivate;
|
|
|
|
|
|
|
|
|
|
class VCSBASE_EXPORT VcsBaseDiffEditorController : public DiffEditor::DiffEditorController
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2020-02-04 08:11:50 +01:00
|
|
|
explicit VcsBaseDiffEditorController(Core::IDocument *document);
|
2018-05-07 15:02:04 +02:00
|
|
|
~VcsBaseDiffEditorController() override;
|
2017-06-30 14:50:28 +02:00
|
|
|
|
2021-05-04 05:54:54 +02:00
|
|
|
void setProcessEnvironment(const Utils::Environment &value);
|
2020-02-04 08:11:50 +01:00
|
|
|
void setVcsBinary(const Utils::FilePath &path);
|
|
|
|
|
|
2017-06-30 14:50:28 +02:00
|
|
|
protected:
|
2022-12-15 10:27:23 +01:00
|
|
|
Utils::Tasking::TreeStorage<QString> inputStorage() const;
|
|
|
|
|
Utils::Tasking::TaskItem postProcessTask();
|
|
|
|
|
|
2022-12-12 14:40:56 +01:00
|
|
|
void setupCommand(Utils::QtcProcess &process, const QStringList &args) const;
|
2017-06-30 14:50:28 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
friend class VcsBaseDiffEditorControllerPrivate;
|
|
|
|
|
VcsBaseDiffEditorControllerPrivate *d;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} //namespace VcsBase
|