X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=src%2Fscriptoutput.h;fp=src%2Fscriptoutput.h;h=e6dfeab2b9345a1e0402213df2f8f5e806490d5f;hb=d483bd8e6523c23c6f1d8908a2e0611c2bc9ff4f;hp=0000000000000000000000000000000000000000;hpb=7dfa3fe589d1722d49681f42cdb0bf1e6efb5223;p=sven%2Fvym.git diff --git a/src/scriptoutput.h b/src/scriptoutput.h new file mode 100644 index 0000000..e6dfeab --- /dev/null +++ b/src/scriptoutput.h @@ -0,0 +1,22 @@ +#ifndef SCRIPTOUTPUT_H +#define SCRIPTOUTPUT_H + +#include +#include + +class ScriptOutput : public QWidget { + Q_OBJECT + public: + ScriptOutput(QWidget *parent); + ~ScriptOutput(); + void clear(); + void setText(const QString &text); + QString text(); + void append(const QString &text); + + private: + QTextEdit *editor; + QVBoxLayout *layout; +}; + +#endif // SCRIPTOUTPUT_H