Completer to be used for the Python calculator expression field. More...
#include <pqPythonCalculatorCompleter.h>


Public Member Functions | |
| pqPythonCalculatorCompleter (QWidget *parent, vtkSMSourceProxy *input) | |
Public Member Functions inherited from pqPythonCompleter | |
| pqPythonCompleter (QWidget *parent) | |
Public Member Functions inherited from pqWidgetCompleter | |
| pqWidgetCompleter (QWidget *parent) | |
| virtual void | updateCompletionModel (const QString &prompt) |
| This method is called by the client to request an update on the internal completion model, given a text prompt. More... | |
| bool | getCompleteEmptyPrompts () |
| get/set CompleteEmptyPrompts, indicating whether or not the completer should show anything if an empty prompt is given. More... | |
| void | setCompleteEmptyPrompts (bool newValue) |
| get/set CompleteEmptyPrompts, indicating whether or not the completer should show anything if an empty prompt is given. More... | |
Protected Member Functions | |
| QStringList | getPythonCompletions (const QString &pythonObjectName, bool call) override |
| Given a text prompt, return a list of possible completions. More... | |
| void | AddArrayNamesToResults (const vtkPVDataSetAttributesInformation *attributesInformation, QStringList &results) |
Append the names of arrays of the dataset attributes information object at the end of the results list. More... | |
Protected Member Functions inherited from pqPythonCompleter | |
| QStringList | getCompletions (const QString &prompt) override |
| Return a list of strings that could match the given prompt. More... | |
| QString | getCompletionPrefix (const QString &prompt) override |
| Return the part of the prompt that can be completed. More... | |
| QString | getVariableToComplete (const QString &prompt) |
| From a prompt string that can contain multiple tokens, retrieve the last (possibly incomplete) variable name. More... | |
| void | appendPyObjectAttributes (PyObject *object, QStringList &results) |
| Given a PyObject, append all of its attributes in the results list. More... | |
| void | appendFunctionKeywordArguments (PyObject *function, QStringList &results) |
| Given a PyObject that is a function, append all of it's keyword arguments to the results list. More... | |
| PyObject * | derivePyObject (const QString &pythonObjectName, PyObject *locals) |
Given pythonObjectName string in the form "X.Y.Z.T" and script locals, return the most derived PyObject that matches the string. More... | |
| PyObject * | getBuiltins (PyObject *locals) |
| Given the locals namespace return the builtins objects as a dict. More... | |
Completer to be used for the Python calculator expression field.
Looks up attributes of Python objects, static calculator-specific variables and data set field names.
Definition at line 16 of file pqPythonCalculatorCompleter.h.
|
inline |
Definition at line 19 of file pqPythonCalculatorCompleter.h.
|
overrideprotectedvirtual |
Given a text prompt, return a list of possible completions.
This method must be implemented in concrete classes.
Implements pqPythonCompleter.
|
protected |
Append the names of arrays of the dataset attributes information object at the end of the results list.
1.8.13 on Thu Dec 11 2025