src
paraview-5.12
Qt
Python
pqPythonShellCompleter.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3
// SPDX-License-Identifier: BSD-3-Clause
4
#ifndef pqPythonShellCompleter_h
5
#define pqPythonShellCompleter_h
6
7
#include "
pqPythonCompleter.h
"
8
#include "pqPythonModule.h"
// needed for PQPYTHON_EXPORT.
9
#include "
vtkWeakPointer.h
"
// for weak pointer
10
11
class
vtkPythonInteractiveInterpreter;
12
16
class
PQPYTHON_EXPORT
pqPythonShellCompleter
:
public
pqPythonCompleter
17
{
18
public
:
19
pqPythonShellCompleter
(QWidget* parent, vtkPythonInteractiveInterpreter* interp)
20
:
pqPythonCompleter
(parent)
21
, Interpreter(interp){};
22
23
protected
:
24
QStringList
getPythonCompletions
(
const
QString& pythonObjectName)
override
;
25
26
private
:
27
vtkWeakPointer<vtkPythonInteractiveInterpreter>
Interpreter;
28
};
29
30
#endif
pqPythonShellCompleter
Completer class for Python shell, using interactive shell context to provide line completions.
Definition:
pqPythonShellCompleter.h:16
pqPythonCompleter::getPythonCompletions
virtual QStringList getPythonCompletions(const QString &pythonObjectName)=0
Given a text prompt, return a list of possible completions.
pqPythonShellCompleter::pqPythonShellCompleter
pqPythonShellCompleter(QWidget *parent, vtkPythonInteractiveInterpreter *interp)
Definition:
pqPythonShellCompleter.h:19
vtkWeakPointer.h
pqPythonCompleter
Abstract class for Python completers.
Definition:
pqPythonCompleter.h:15
vtkWeakPointer< vtkPythonInteractiveInterpreter >
pqPythonCompleter.h
Generated by
1.8.17 on Wed Mar 27 2024