X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fconsolewidget.h;fp=src%2Fconsolewidget.h;h=147b5979e1f52b77673d29aac8482d6cf44508f4;hb=5d8c9e52606315fbfe857f2715b8f051b4f97491;hp=0000000000000000000000000000000000000000;hpb=742d2aa9bb46bce4f690474fa22f5980e175e55e;p=architektonas diff --git a/src/consolewidget.h b/src/consolewidget.h new file mode 100644 index 0000000..147b597 --- /dev/null +++ b/src/consolewidget.h @@ -0,0 +1,27 @@ +#ifndef __CONSOLEWIDGET_H__ +#define __CONSOLEWIDGET_H__ + +#include +#include "promptlineedit.h" + +class ConsoleWidget: public QWidget +{ + Q_OBJECT + + public: + ConsoleWidget(QWidget * parent = NULL); + ~ConsoleWidget(); + + public slots: + void Execute(void); + void MoveScrollBarToBottom(int min, int max); + + protected: + void paintEvent(QPaintEvent * event); + + public: + PromptLineEdit * cmdline; + QTextEdit * screen; +}; + +#endif // __CONSOLEWIDGET_H__