diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-11-28 20:07:57 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-11-28 20:16:52 (GMT) |
commit | 5c2567847c73f6095206dfbd451fe2f26f4056aa (patch) | |
tree | 06a9ed263bec86531bd08b89242c78b3aeb0d8a0 /Swift/QtUI/QtXMLConsoleWidget.h | |
parent | 85dcc894ccf417ec8b057d868afb1d8006634ac4 (diff) | |
download | swift-contrib-5c2567847c73f6095206dfbd451fe2f26f4056aa.zip swift-contrib-5c2567847c73f6095206dfbd451fe2f26f4056aa.tar.bz2 |
Implemented XML console.
Resolves: #135
Diffstat (limited to 'Swift/QtUI/QtXMLConsoleWidget.h')
-rw-r--r-- | Swift/QtUI/QtXMLConsoleWidget.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/Swift/QtUI/QtXMLConsoleWidget.h b/Swift/QtUI/QtXMLConsoleWidget.h index 50b53f2..0d5a10d 100644 --- a/Swift/QtUI/QtXMLConsoleWidget.h +++ b/Swift/QtUI/QtXMLConsoleWidget.h @@ -3,16 +3,28 @@ #include "Swift/Controllers/UIInterfaces/XMLConsoleWidget.h" #include "QtTabbable.h" +class QTextEdit; + namespace Swift { class QtXMLConsoleWidget : public QtTabbable, public XMLConsoleWidget { - Q_OBJECT + Q_OBJECT + public: QtXMLConsoleWidget(); + void show(); void activate(); - protected slots: - void closeEvent(QCloseEvent* event); - protected: - void showEvent(QShowEvent* event); + + virtual void handleDataRead(const String& data); + virtual void handleDataWritten(const String& data); + + private: + virtual void closeEvent(QCloseEvent* event); + virtual void showEvent(QShowEvent* event); + + void appendText(const String& data); + + private: + QTextEdit* textEdit; }; } |