diff options
author | Arno <am@disconnect.de> | 2014-07-08 08:13:30 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2014-07-08 08:13:30 +0200 |
commit | f76b42f192a82f777cf77f3eecfab9ca7e31e396 (patch) | |
tree | 40b15701fc3a5356e044de3ad6ca8274b0d592de /smdialog.h | |
parent | ca9cdb39a8b3eafa8106fed84cce013f18b0a114 (diff) | |
download | SheMov-f76b42f192a82f777cf77f3eecfab9ca7e31e396.tar.gz SheMov-f76b42f192a82f777cf77f3eecfab9ca7e31e396.tar.bz2 SheMov-f76b42f192a82f777cf77f3eecfab9ca7e31e396.zip |
Display unpack output in Dialog
This was a difficult one. Got lost in the Semantics of QThread once
again, but just 2 days later it works :)
Diffstat (limited to 'smdialog.h')
-rw-r--r-- | smdialog.h | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -13,6 +13,9 @@ class QLineEdit; class QSpinBox; class QPushButton; +class QLabel; +class QTextEdit; +class Unpacker; class SmDialog : public QDialog { Q_OBJECT @@ -40,4 +43,31 @@ class SeriesPartsDialog : public SmDialog { }; +class UnpackDialog : public SmDialog { + Q_OBJECT + public: + explicit UnpackDialog(QWidget *parent = 0, Qt::WindowFlags f = 0); + void setCurrentLabel(const QString &cur); + void clearOutput(); + void setCloseEnabled(bool enabled); + + signals: + void workFinished(); + + public slots: + void addOutput(const QString &msg, const QString &prepend); + void addProcOutput(const QByteArray &data); + void appendCommand(const QStringList &cmd); + void doIt(); + void newPackage(const QString &package); + void unpackDone(); + + private: + QLabel *mCurrentL; + QTextEdit *mOutput; + QPushButton *mClose; + QList<QStringList> mCommandQueue; + Unpacker *mUnpacker; +}; + #endif // SMDIALOG_H |