Qt widget that provides an interactive console - you can send text to the console by calling printString() and receive user input by connecting to the executeCommand() slot.
More...
#include <pqConsoleWidget.h>
Inherits QWidget.
Qt widget that provides an interactive console - you can send text to the console by calling printString() and receive user input by connecting to the executeCommand() slot.
- See also
- pqPythonShell, pqOutputWindow
Definition at line 51 of file pqConsoleWidget.h.
§ pqConsoleWidget()
| pqConsoleWidget::pqConsoleWidget |
( |
QWidget * |
Parent | ) |
|
§ ~pqConsoleWidget()
| virtual pqConsoleWidget::~pqConsoleWidget |
( |
| ) |
|
|
virtual |
§ getFormat()
| QTextCharFormat pqConsoleWidget::getFormat |
( |
| ) |
|
Returns the current formatting that will be used by printString.
§ setFormat()
| void pqConsoleWidget::setFormat |
( |
const QTextCharFormat & |
Format | ) |
|
Sets formatting that will be used by printString.
§ setCompleter()
Set a completer for this console widget.
§ getCursorPosition()
| QPoint pqConsoleWidget::getCursorPosition |
( |
| ) |
|
§ executeCommand
| void pqConsoleWidget::executeCommand |
( |
const QString & |
Command | ) |
|
|
signal |
Signal emitted whenever the user enters a command.
§ printString
| void pqConsoleWidget::printString |
( |
const QString & |
Text | ) |
|
|
slot |
Writes the supplied text to the console.
§ printCommand
| void pqConsoleWidget::printCommand |
( |
const QString & |
cmd | ) |
|
|
slot |
Updates the current command.
Unlike printString, this will affect the current command being typed.
§ clear
| void pqConsoleWidget::clear |
( |
| ) |
|
|
slot |
Clears the contents of the console.
§ prompt
| void pqConsoleWidget::prompt |
( |
const QString & |
text | ) |
|
|
slot |
Puts out an input accepting prompt.
It is recommended that one uses prompt instead of printString() to print an input prompt since this call ensures that the prompt is shown on a new line.
§ insertCompletion
| void pqConsoleWidget::insertCompletion |
( |
const QString & |
text | ) |
|
|
slot |
Inserts the given completion string at the cursor.
This will replace the current word that the cursor is touching with the given text. Determines the word using QTextCursor::StartOfWord, EndOfWord.
§ pqImplementation
| friend class pqImplementation |
|
friend |
§ pqConsoleWidgetEventPlayer
The documentation for this class was generated from the following file: