comparison 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
comparison
equal deleted inserted replaced
515:9d3880db6ba7 516:3332db04c77d
9 #define CREATEINSTALLERDIALOG_H 9 #define CREATEINSTALLERDIALOG_H
10 10
11 #include <QDialog> 11 #include <QDialog>
12 #include <QMainWindow> 12 #include <QMainWindow>
13 #include <QLineEdit> 13 #include <QLineEdit>
14 #include <QProcess>
15 #include <QProgressDialog>
14 /** 16 /**
15 * @file createinstallerdialog.h 17 * @file createinstallerdialog.h
16 * @brief The dialog to show settings and create an installer. 18 * @brief The dialog to show settings and create an installer.
17 */ 19 */
18 20
32 34
33 QLineEdit *mCertFile; 35 QLineEdit *mCertFile;
34 QLineEdit *mBinaryFolder; 36 QLineEdit *mBinaryFolder;
35 QLineEdit *mSaveFile; 37 QLineEdit *mSaveFile;
36 38
39 QProcess mNSISProc;
40 QProgressDialog mProgress;
41
37 /** @brief show an error message with QMessageBox 42 /** @brief show an error message with QMessageBox
38 * 43 *
39 * @param [in] msg The message to show 44 * @param [in] msg The message to show
40 */ 45 */
41 void showErrorMessage(const QString &msg); 46 void showErrorMessage(const QString &msg);
43 private slots: 48 private slots:
44 void openCertificateSelect(); 49 void openCertificateSelect();
45 void openFolderSelect(); 50 void openFolderSelect();
46 void openSaveLocation(); 51 void openSaveLocation();
47 void createInstaller(); 52 void createInstaller();
53
54 /* Slots for the creator process */
55 void processError(QProcess::ProcessError error);
56 void processFinished(int exitCode, QProcess::ExitStatus exitStatus);
48 }; 57 };
49 58
50 #endif // CREATEINSTALLERDIALOG_H 59 #endif // CREATEINSTALLERDIALOG_H

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