summaryrefslogtreecommitdiffstats
path: root/extractordialog.h
diff options
context:
space:
mode:
authoram <am@f440f766-f032-0410-8965-dc7d17de2ca0>2009-07-13 15:42:03 +0000
committeram <am@f440f766-f032-0410-8965-dc7d17de2ca0>2009-07-13 15:42:03 +0000
commit440f3fe87e9adc95f6155b924162e335f2b434e0 (patch)
tree35aae6cb701552252ced67b7ba7f17bcdc7b8c9b /extractordialog.h
parenta3dd54389f7b28431fc9853cd57af231bd6a3c9c (diff)
downloadSheMov-440f3fe87e9adc95f6155b924162e335f2b434e0.tar.gz
SheMov-440f3fe87e9adc95f6155b924162e335f2b434e0.tar.bz2
SheMov-440f3fe87e9adc95f6155b924162e335f2b434e0.zip
-Finished ConfigurationDialog->paths
-Implemented ExtractorDialog (untested) -started work on extractor menus git-svn-id: file:///var/svn/repos2/shemov/trunk@386 f440f766-f032-0410-8965-dc7d17de2ca0
Diffstat (limited to 'extractordialog.h')
-rw-r--r--extractordialog.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/extractordialog.h b/extractordialog.h
new file mode 100644
index 0000000..80c7e2c
--- /dev/null
+++ b/extractordialog.h
@@ -0,0 +1,38 @@
+/*
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version
+ 2 of the License, or (at your option) any later version.
+*/
+
+#ifndef EXTRACTORDIALOG_H
+#define EXTRACTORDIALOG_H
+
+#include <QDialog>
+#include <QProcess>
+
+class QTextEdit;
+class QPushButton;
+
+class ExtractorDialog : public QDialog {
+ Q_OBJECT
+ public:
+ ExtractorDialog(const QString &archive, const QString &extractTo, QWidget *parent = 0, Qt::WindowFlags f = 0);
+ ~ExtractorDialog() {};
+
+ private slots:
+ void processStatusChanged(QProcess::ProcessState newState);
+ void killProcess();
+ void writeOutput();
+
+ private:
+ void start();
+ QString mArchive;
+ QString mExtractTo;
+ QPushButton *mCancelClose;
+ QTextEdit *mOutput;
+ QProcess *mExtractor;
+};
+
+#endif
+