nightly (development)
latest release (v5.13.3)
5.13.3
5.13.2
5.13.1
5.13.0
5.12.1
5.12.0
5.11.2
5.11.1
5.11.0
5.10.2
5.10.1
5.10.0
5.9.1
5.9.0
5.8.1
5.8.0
5.7.0
5.6.2
5.5.2
C++
Python
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
c
f
g
i
l
m
n
p
q
r
s
t
v
w
+
Functions
c
g
l
m
n
p
q
r
s
t
v
+
Variables
_
l
m
q
v
Typedefs
Enumerations
+
Enumerator
a
c
g
l
m
n
p
q
r
s
t
v
w
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
2
3
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
g
i
l
m
n
p
q
r
s
t
u
v
w
+
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Related Functions
:
a
b
c
d
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
x
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
+
Typedefs
b
c
g
i
k
m
n
o
p
q
s
u
v
z
Enumerations
+
Enumerator
c
k
v
x
y
z
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Qt
Python
pqPythonSyntaxHighlighter.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 pqPythonSyntaxHighlighter_h
5
#define pqPythonSyntaxHighlighter_h
6
7
#undef slots
8
#include "vtkPython.h"
9
#define slots Q_SLOTS
10
11
#include "
pqPythonModule.h
"
12
13
#include <QObject>
14
15
#include "
vtkPythonCompatibility.h
"
16
#include "vtkPythonInterpreter.h"
17
#include "
vtkSmartPyObject.h
"
18
19
class
QTextEdit;
20
class
QUndoStack;
21
22
struct
pqPythonTextHistoryEntry
;
23
37
class
PQPYTHON_EXPORT
pqPythonSyntaxHighlighter
:
public
QObject
38
{
39
Q_OBJECT
40
public
:
41
typedef
QObject
Superclass
;
47
explicit
pqPythonSyntaxHighlighter
(QObject* p, QTextEdit& textEdit);
48
~
pqPythonSyntaxHighlighter
()
override
=
default
;
49
54
bool
isReplacingTabs()
const
;
59
void
setReplaceTabs(
bool
replaceTabs);
60
64
QString Highlight(
const
QString& src)
const
;
65
71
void
ConnectHighligter()
const
;
72
73
protected
:
78
bool
eventFilter(QObject*, QEvent*)
override
;
79
80
private
:
81
QTextEdit& TextEdit;
82
83
vtkSmartPyObject
PygmentsModule;
84
85
vtkSmartPyObject
HighlightFunction;
86
87
vtkSmartPyObject
PythonLexer;
88
89
vtkSmartPyObject
HtmlFormatter;
90
95
bool
ReplaceTabs =
true
;
96
97
Q_DISABLE_COPY(
pqPythonSyntaxHighlighter
);
98
};
99
100
#endif
vtkSmartPyObject
PQPYTHON_EXPORT
#define PQPYTHON_EXPORT
Definition:
pqPythonModule.h:15
pqPythonSyntaxHighlighter::Superclass
QObject Superclass
Definition:
pqPythonSyntaxHighlighter.h:41
vtkPythonCompatibility.h
pqPythonModule.h
pqPythonSyntaxHighlighter
This class is a helper object to attach to a QTextEdit to add Python syntax highlighting to the text ...
Definition:
pqPythonSyntaxHighlighter.h:37
vtkSmartPyObject.h
pqPythonTextHistoryEntry
Definition:
pqPythonUndoCommand.h:27
Generated by
1.8.13 on Wed Apr 23 2025