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>
|
2014-09-26 09:14:03 +02:00
|
|
|
#include <texteditor/texteditor.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
|
|
|
|
2014-09-26 11:37:54 +02:00
|
|
|
class PythonEditorFactory : public TextEditor::TextEditorFactory
|
2014-08-20 15:05:32 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
PythonEditorFactory();
|
2023-08-17 18:48:45 +02:00
|
|
|
private:
|
|
|
|
QObject m_guard;
|
2014-08-20 15:05:32 +02: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);
|
|
|
|
};
|
|
|
|
|
2022-07-15 11:49:34 +02:00
|
|
|
} // Python::Internal
|