summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonutils.h
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-03-10 16:26:20 +0100
committerEike Ziller <eike.ziller@qt.io>2020-03-19 13:04:48 +0000
commit3b5fc296f26b9fa093d0d332654e6937fff7a132 (patch)
treece4c360d830e3098fe98f09ac3be293e2b511095 /src/plugins/python/pythonutils.h
parentbe9d5fa0d9524b6d0968f5a8f271d12a355b7294 (diff)
downloadqt-creator-3b5fc296f26b9fa093d0d332654e6937fff7a132.tar.gz
Python editor: Add buttons & actions for opening REPL
Opens interactive Python, optionally with the current file imported, for testing and experimentation. Change-Id: Ieb120e3698bdba77a1445c40fe7fda533773a0cf Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/python/pythonutils.h')
-rw-r--r--src/plugins/python/pythonutils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/python/pythonutils.h b/src/plugins/python/pythonutils.h
index 28d1faf607..9bedd9f6cf 100644
--- a/src/plugins/python/pythonutils.h
+++ b/src/plugins/python/pythonutils.h
@@ -40,6 +40,10 @@ namespace TextEditor { class TextDocument; }
namespace Python {
namespace Internal {
+enum class ReplType { Unmodified, Import, ImportToplevel };
+
+void openPythonRepl(const Utils::FilePath &file, ReplType type);
+
struct PythonLanguageServerState;
class PyLSConfigureAssistant : public QObject