#include <Libs/Widgets/ctkConsole.h>
|
virtual void | clear () |
| Clears the contents of the console. More...
|
|
virtual void | exec (const QString &) |
|
virtual void | printHelp () |
| Print the console help with shortcuts. More...
|
|
virtual void | reset () |
| Clears the contents of the console and display welcome message. More...
|
|
virtual void | runFile (const QString &filePath) |
|
virtual void | runFile () |
|
|
QScopedPointer< ctkConsolePrivate > | d_ptr |
|
QWidget that provides an interactive console
Definition at line 67 of file ctkConsole.h.
Enumerator |
---|
NoHints |
|
AutomaticIndentation |
Align cursor based an indentation of the previous command
|
RemoveTrailingSpaces |
Remove trailing spaces of the entered command
|
SplitCopiedTextByLine |
Copied text is split by lines and each one is executed (expected the last one)
|
Definition at line 89 of file ctkConsole.h.
Enumerator |
---|
NoRunFileUserInterface |
|
RunFileButton |
Show a button at the bottom of the console to run a file
|
RunFileShortcut |
Add the shortcut CTRL+r to run a file
|
Definition at line 98 of file ctkConsole.h.
ctkConsole::ctkConsole |
( |
QWidget * |
parentObject = 0 | ) |
|
virtual ctkConsole::~ctkConsole |
( |
| ) |
|
|
virtual |
ctkConsole::ctkConsole |
( |
ctkConsolePrivate * |
pimpl, |
|
|
QWidget * |
parentObject |
|
) |
| |
|
protected |
void ctkConsole::aboutToExecute |
( |
const QString & |
| ) |
|
|
signal |
This signal emitted before and after a command is executed.
void ctkConsole::addCompleterShortcut |
( |
const QKeySequence & |
key | ) |
|
QColor ctkConsole::backgroundColor |
( |
| ) |
const |
virtual void ctkConsole::clear |
( |
| ) |
|
|
virtualslot |
Clears the contents of the console.
QColor ctkConsole::commandTextColor |
( |
| ) |
const |
Return the completer of this console.
QList<QKeySequence> ctkConsole::completerShortcuts |
( |
| ) |
const |
EditorHints ctkConsole::editorHints |
( |
| ) |
const |
QColor ctkConsole::errorTextColor |
( |
| ) |
const |
virtual void ctkConsole::exec |
( |
const QString & |
| ) |
|
|
virtualslot |
Exec the contents of the last console line
- See also
- openFile(), runFile(QString)
virtual void ctkConsole::executeCommand |
( |
const QString & |
Command | ) |
|
|
protectedvirtual |
void ctkConsole::executed |
( |
const QString & |
| ) |
|
|
signal |
QTextCharFormat ctkConsole::getFormat |
( |
| ) |
const |
QColor ctkConsole::outputTextColor |
( |
| ) |
const |
virtual void ctkConsole::printHelp |
( |
| ) |
|
|
virtualslot |
Print the console help with shortcuts.
void ctkConsole::printMessage |
( |
const QString & |
message, |
|
|
const QColor & |
color |
|
) |
| |
Prints text on the console.
QColor ctkConsole::promptColor |
( |
| ) |
const |
virtual QString ctkConsole::ps1 |
( |
| ) |
const |
|
virtual |
virtual QString ctkConsole::ps2 |
( |
| ) |
const |
|
virtual |
QString ctkConsole::readInputLine |
( |
| ) |
|
|
protected |
Prompt the user for input.
virtual void ctkConsole::reset |
( |
| ) |
|
|
virtualslot |
Clears the contents of the console and display welcome message.
virtual void ctkConsole::runFile |
( |
const QString & |
filePath | ) |
|
|
virtualslot |
Exec line by line the content of a file.
- See also
- openFile(), exec()
virtual void ctkConsole::runFile |
( |
| ) |
|
|
virtualslot |
Open a file dialog to select a file and run it. Shortcut: CTRL+O
- See also
- runFile(QString), exec()
RunFileOptions ctkConsole::runFileOptions |
( |
| ) |
const |
Qt::ScrollBarPolicy ctkConsole::scrollBarPolicy |
( |
| ) |
const |
void ctkConsole::setBackgroundColor |
( |
const QColor & |
newColor | ) |
|
void ctkConsole::setCommandTextColor |
( |
const QColor & |
newColor | ) |
|
Set a completer for this console.
void ctkConsole::setCompleterShortcuts |
( |
const QList< QKeySequence > & |
keys | ) |
|
void ctkConsole::setEditorHints |
( |
const EditorHints & |
newEditorHints | ) |
|
void ctkConsole::setErrorTextColor |
( |
const QColor & |
newColor | ) |
|
void ctkConsole::setFormat |
( |
const QTextCharFormat & |
Format | ) |
|
void ctkConsole::setOutputTextColor |
( |
const QColor & |
newColor | ) |
|
void ctkConsole::setPromptColor |
( |
const QColor & |
newColor | ) |
|
virtual void ctkConsole::setPs1 |
( |
const QString & |
newPs1 | ) |
|
|
virtual |
virtual void ctkConsole::setPs2 |
( |
const QString & |
newPs2 | ) |
|
|
virtual |
void ctkConsole::setRunFileOptions |
( |
const RunFileOptions & |
newOptions | ) |
|
Set which options to run file are enabled. Default is RunFileShortcut.
- See also
- runFileOptions()
void ctkConsole::setScrollBarPolicy |
( |
const Qt::ScrollBarPolicy & |
newScrollBarPolicy | ) |
|
void ctkConsole::setShellFont |
( |
const QFont & |
font | ) |
|
Sets font of python shell.
void ctkConsole::setStdinTextColor |
( |
const QColor & |
newColor | ) |
|
void ctkConsole::setWelcomeTextColor |
( |
const QColor & |
newColor | ) |
|
QFont ctkConsole::shellFont |
( |
| ) |
const |
Returns current font of python shell.
static QString ctkConsole::stdInRedirectCallBack |
( |
void * |
callData | ) |
|
|
static |
QColor ctkConsole::stdinTextColor |
( |
| ) |
const |
QColor ctkConsole::welcomeTextColor |
( |
| ) |
const |
QScopedPointer<ctkConsolePrivate> ctkConsole::d_ptr |
|
protected |
QColor ctkConsole::backgroundColor |
|
readwrite |
QColor ctkConsole::commandTextColor |
|
readwrite |
QList<QKeySequence> ctkConsole::completerShortcuts |
|
readwrite |
EditorHints ctkConsole::editorHints |
|
readwrite |
QColor ctkConsole::errorTextColor |
|
readwrite |
QColor ctkConsole::outputTextColor |
|
readwrite |
QColor ctkConsole::promptColor |
|
readwrite |
RunFileOptions ctkConsole::runFileOptions |
|
readwrite |
Qt::ScrollBarPolicy ctkConsole::scrollBarPolicy |
|
readwrite |
QColor ctkConsole::stdinTextColor |
|
readwrite |
QColor ctkConsole::welcomeTextColor |
|
readwrite |
The documentation for this class was generated from the following file: