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 
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:
28 };
29 
30 #endif
pqPythonShellCompleter(QWidget *parent, vtkPythonInteractiveInterpreter *interp)
#define PQPYTHON_EXPORT
Abstract class for Python completers.
Completer class for Python shell, using interactive shell context to provide line completions...
virtual QStringList getPythonCompletions(const QString &pythonObjectName)=0
Given a text prompt, return a list of possible completions.