summaryrefslogtreecommitdiffstats
path: root/smdialog.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2014-07-08 08:13:30 +0200
committerArno <am@disconnect.de>2014-07-08 08:13:30 +0200
commitf76b42f192a82f777cf77f3eecfab9ca7e31e396 (patch)
tree40b15701fc3a5356e044de3ad6ca8274b0d592de /smdialog.h
parentca9cdb39a8b3eafa8106fed84cce013f18b0a114 (diff)
downloadSheMov-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.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/smdialog.h b/smdialog.h
index 4b2e935..144502f 100644
--- a/smdialog.h
+++ b/smdialog.h
@@ -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