33 #ifndef _pqConsoleWidget_h 34 #define _pqConsoleWidget_h 36 #include "pqWidgetsModule.h" 39 #include <QTextCharFormat> 62 QTextCharFormat getFormat();
66 void setFormat(
const QTextCharFormat& Format);
73 QPoint getCursorPosition();
79 void executeCommand(
const QString& Command);
85 void printString(
const QString& Text);
91 void printCommand(
const QString& cmd);
104 void prompt(
const QString& text);
111 void insertCompletion(
const QString& text);
117 void internalExecuteCommand(
const QString& Command);
119 class pqImplementation;
120 pqImplementation*
const Implementation;
121 friend class pqImplementation;
129 void printAndExecuteCommand(
const QString& text);
140 virtual void updateCompletionModel(
const QString& str) = 0;
143 #endif // !_pqConsoleWidget_h