2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 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
|
2013-01-14 23:11:10 +04:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2013-01-14 23:11:10 +04:00
|
|
|
|
2023-11-01 15:05:03 +01:00
|
|
|
#include <texteditor/textdocument.h>
|
2013-01-14 23:11:10 +04:00
|
|
|
|
2022-07-15 11:49:34 +02:00
|
|
|
namespace Python::Internal {
|
2013-01-14 23:11:10 +04:00
|
|
|
|
2023-11-01 15:05:03 +01:00
|
|
|
class PythonDocument : public TextEditor::TextDocument
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
PythonDocument();
|
|
|
|
|
|
|
|
|
|
void updateCurrentPython();
|
|
|
|
|
void updatePython(const Utils::FilePath &python);
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void pythonUpdated(const Utils::FilePath &python);
|
|
|
|
|
};
|
|
|
|
|
|
2024-01-15 16:31:41 +01:00
|
|
|
void setupPythonEditorFactory(QObject *guard);
|
|
|
|
|
|
2022-07-15 11:49:34 +02:00
|
|
|
} // Python::Internal
|