Encapsulates the multitab python editor.
More...
#include <pqPythonTabWidget.h>
Inherits QTabWidget.
|
| void | fileOpened (const QString &) |
| | Raised when a file has been opened and loaded into the text edit widget. More...
|
| |
| void | fileSaved (const QString &) |
| | Raised when a file has been saved successfuly. More...
|
| |
Encapsulates the multitab python editor.
Provides a QWidget with multiple QTextArea to edit python scripts in paraview. The widget handles automatic saving, syntax highlighting and undo/redo features within each tab.
Definition at line 28 of file pqPythonTabWidget.h.
◆ pqPythonTabWidget()
| pqPythonTabWidget::pqPythonTabWidget |
( |
QWidget * |
parent | ) |
|
Default constructor.
- Parameters
-
| [in] | parent | the QWidget owning this widget |
◆ getCurrentTextArea()
◆ connectActions()
Connects this class to the actions.
◆ updateActions()
◆ saveOnClose()
| bool pqPythonTabWidget::saveOnClose |
( |
| ) |
|
Returns true if all opened buffer were saved on the disk.
◆ updateTrace()
| void pqPythonTabWidget::updateTrace |
( |
const QString & |
str | ) |
|
Update the text in the paraview trace tab.
Creates a new one if the tab doesn't exist.
◆ stopTrace()
| void pqPythonTabWidget::stopTrace |
( |
const QString & |
str | ) |
|
Update the text in the paraview python trace tab and converts it into a unamed script.
If no tab exists, creates a new one.
◆ linkTo()
template<typename T >
| void pqPythonTabWidget::linkTo |
( |
T * |
| ) |
|
|
inline |
Link the input QTextEdit to one of the tab of the editor.
If this objects is already linked within the editor, switch to that tab otherwise creates a new one
Definition at line 82 of file pqPythonTabWidget.h.
◆ loadFile()
| void pqPythonTabWidget::loadFile |
( |
const QString & |
filename | ) |
|
◆ createNewEmptyTab
| void pqPythonTabWidget::createNewEmptyTab |
( |
| ) |
|
|
slot |
Add a new empty text area.
◆ addNewTextArea
| void pqPythonTabWidget::addNewTextArea |
( |
const QString & |
filename, |
|
|
vtkTypeUInt32 |
location = 0x10 |
|
) |
| |
|
slot |
Loads the content of the file into the current tab if it's empty and not linked to another QText.
Otherwise adds a new tab.
◆ closeCurrentTab
| void pqPythonTabWidget::closeCurrentTab |
( |
| ) |
|
|
slot |
Request to close the current tab.
◆ fileOpened
| void pqPythonTabWidget::fileOpened |
( |
const QString & |
| ) |
|
|
signal |
Raised when a file has been opened and loaded into the text edit widget.
◆ fileSaved
| void pqPythonTabWidget::fileSaved |
( |
const QString & |
| ) |
|
|
signal |
Raised when a file has been saved successfuly.
◆ keyPressEvent()
| void pqPythonTabWidget::keyPressEvent |
( |
QKeyEvent * |
keyEvent | ) |
|
|
overrideprotected |
◆ mousePressEvent()
| void pqPythonTabWidget::mousePressEvent |
( |
QMouseEvent * |
mouseEvent | ) |
|
|
overrideprotected |
The documentation for this class was generated from the following file: