diff ui/createinstallerdialog.h @ 516:3332db04c77d

Call makensis in create installer dialog
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 28 Apr 2014 17:15:31 +0000
parents 9d3880db6ba7
children f6371e9c959a
line wrap: on
line diff
--- a/ui/createinstallerdialog.h	Mon Apr 28 14:02:40 2014 +0000
+++ b/ui/createinstallerdialog.h	Mon Apr 28 17:15:31 2014 +0000
@@ -11,6 +11,8 @@
 #include <QDialog>
 #include <QMainWindow>
 #include <QLineEdit>
+#include <QProcess>
+#include <QProgressDialog>
 /**
  * @file createinstallerdialog.h
  * @brief The dialog to show settings and create an installer.
@@ -34,6 +36,9 @@
     QLineEdit *mBinaryFolder;
     QLineEdit *mSaveFile;
 
+    QProcess mNSISProc;
+    QProgressDialog mProgress;
+
     /** @brief show an error message with QMessageBox
      *
      * @param [in] msg The message to show
@@ -45,6 +50,10 @@
     void openFolderSelect();
     void openSaveLocation();
     void createInstaller();
+
+    /* Slots for the creator process */
+    void processError(QProcess::ProcessError error);
+    void processFinished(int exitCode, QProcess::ExitStatus exitStatus);
 };
 
 #endif // CREATEINSTALLERDIALOG_H

http://wald.intevation.org/projects/trustbridge/