33 #ifndef _pqConsoleWidget_h 34 #define _pqConsoleWidget_h 36 #include "pqWidgetsModule.h" 39 #include <QTextCharFormat> 61 QTextCharFormat getFormat();
63 void setFormat(
const QTextCharFormat& Format);
68 QPoint getCursorPosition();
72 void executeCommand(
const QString& Command);
76 void printString(
const QString& Text);
80 void printCommand(
const QString& cmd);
89 void prompt(
const QString& text);
94 void insertCompletion(
const QString& text);
100 void internalExecuteCommand(
const QString& Command);
102 class pqImplementation;
103 pqImplementation*
const Implementation;
104 friend class pqImplementation;
110 void printAndExecuteCommand(
const QString& text);
121 virtual void updateCompletionModel(
const QString& str) = 0;
125 #endif // !_pqConsoleWidget_h