src
paraview-5.12
Qt
Python
pqPythonCalculatorCompleter.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-License-Identifier: BSD-3-Clause
3
#ifndef pqPythonCalculatorCompleter_h
4
#define pqPythonCalculatorCompleter_h
5
6
#include <vtkPython.h>
7
8
#include "
pqPythonCompleter.h
"
9
#include "
vtkSMSourceProxy.h
"
10
16
class
PQPYTHON_EXPORT
pqPythonCalculatorCompleter
:
public
pqPythonCompleter
17
{
18
public
:
19
pqPythonCalculatorCompleter
(QWidget* parent,
vtkSMSourceProxy
* input)
20
:
pqPythonCompleter
(parent)
21
, Input(input)
22
{
23
this->
setCompleteEmptyPrompts
(
true
);
// Ovrerride pqPythonCompleter default
24
}
25
26
protected
:
27
QStringList
getPythonCompletions
(
const
QString& pythonObjectName)
override
;
28
33
void
AddArrayNamesToResults(
34
const
vtkPVDataSetAttributesInformation
* attributesInformation, QStringList& results);
35
36
private
:
37
vtkSMSourceProxy
* Input;
// Needed to retrieve input field names
38
};
39
#endif
pqPythonCalculatorCompleter
Completer to be used for the Python calculator expression field.
Definition:
pqPythonCalculatorCompleter.h:16
pqPythonCalculatorCompleter::pqPythonCalculatorCompleter
pqPythonCalculatorCompleter(QWidget *parent, vtkSMSourceProxy *input)
Definition:
pqPythonCalculatorCompleter.h:19
vtkSMSourceProxy.h
vtkPVDataSetAttributesInformation
List of array info.
Definition:
vtkPVDataSetAttributesInformation.h:24
vtkSMSourceProxy
proxy for a VTK source on a server
Definition:
vtkSMSourceProxy.h:37
pqPythonCompleter::getPythonCompletions
virtual QStringList getPythonCompletions(const QString &pythonObjectName)=0
Given a text prompt, return a list of possible completions.
pqPythonCompleter
Abstract class for Python completers.
Definition:
pqPythonCompleter.h:15
pqWidgetCompleter::setCompleteEmptyPrompts
void setCompleteEmptyPrompts(bool newValue)
get/set CompleteEmptyPrompts, indicating whether or not the completer should show anything if an empt...
Definition:
pqWidgetCompleter.h:33
pqPythonCompleter.h
Generated by
1.8.17 on Wed Mar 27 2024