From 440f3fe87e9adc95f6155b924162e335f2b434e0 Mon Sep 17 00:00:00 2001 From: am Date: Mon, 13 Jul 2009 15:42:03 +0000 Subject: -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 --- extractordialog.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 extractordialog.h (limited to 'extractordialog.h') 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 +#include + +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 + -- cgit v1.2.3-70-g09d2