Mercurial > trustbridge
view ui/createinstallerdialog.h @ 627:566ee111e331 trustbridge-refactor
Added state to certificate list item and updated certificate list widget.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 23 Jun 2014 12:46:53 +0200 |
parents | f6371e9c959a |
children | 6c4fff146999 |
line wrap: on
line source
/* Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik * Software engineering by Intevation GmbH * * This file is Free Software under the GNU GPL (v>=2) * and comes with ABSOLUTELY NO WARRANTY! * See LICENSE.txt for details. */ #ifndef CREATEINSTALLERDIALOG_H #define CREATEINSTALLERDIALOG_H #include <QDialog> #include <QMainWindow> #include <QLineEdit> #include <QProcess> #include <QProgressDialog> /** * @file createinstallerdialog.h * @brief The dialog to show settings and create an installer. */ class QListWidget; class CreateInstallerDialog : public QDialog { Q_OBJECT public: /** @brief Create a dialog showing settings for the create installer * process * */ CreateInstallerDialog(QMainWindow *parent); private: void setupGUI(); QLineEdit *mCertFile; QLineEdit *mBinaryFolder; QLineEdit *mSaveFile; QProcess mNSISProc; QProgressDialog mProgress; /** @brief show an error message with QMessageBox * * @param [in] msg The message to show */ void showErrorMessage(const QString &msg); private slots: void openCertificateSelect(); void openFolderSelect(); void openSaveLocation(); void createInstaller(); /* Slots for the creator process */ void processError(QProcess::ProcessError error); void processFinished(int exitCode, QProcess::ExitStatus exitStatus); }; /** @brief The dialog shown after the installer was created. */ class FinishedDialog : public QDialog { Q_OBJECT public: /** @brief constructor for the dialog * * @param [in] parent the parent window * @param [in] msg the message to show * @param [in] details verbose information * @param [in] isErr if the dialog should be shown as an error*/ FinishedDialog(QDialog *parent, QString msg, QString details, bool isErr); }; #endif // CREATEINSTALLERDIALOG_H