diff options
| author | Eran Mizrahi <erasmux@gmail.com> | 2017-12-13 16:18:54 +0200 |
|---|---|---|
| committer | Eran Mizrahi <erasmux@gmail.com> | 2017-12-13 22:27:11 +0200 |
| commit | a5bb70f53bc20f36f695ac5cd9f8b91163f694eb (patch) | |
| tree | 0d6f2c1e2bce7497c59785dd6de645d741620193 /src/lockeddialog.h | |
| parent | 0586b2856b0b8973e5781b9b0a1b5e5acac20532 (diff) | |
Wait for injected processes on MO close
Diffstat (limited to 'src/lockeddialog.h')
| -rw-r--r-- | src/lockeddialog.h | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/src/lockeddialog.h b/src/lockeddialog.h index 82a15a93..36c16429 100644 --- a/src/lockeddialog.h +++ b/src/lockeddialog.h @@ -17,16 +17,9 @@ You should have received a copy of the GNU General Public License along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef LOCKEDDIALOG_H
-#define LOCKEDDIALOG_H
+#pragma once
-#include "ilockedwaitingforprocess.h"
-#include <QDialog> // for QDialog
-#include <QObject> // for Q_OBJECT, slots
-#include <QString> // for QString
-
-class QResizeEvent;
-class QWidget;
+#include "lockeddialogbase.h"
namespace Ui {
class LockedDialog;
@@ -40,7 +33,7 @@ namespace Ui { * data on which Mod Organizer works. After the UI is unlocked (manually or after the
* external application closed) MO will refresh all of its data sources
**/
-class LockedDialog : public QDialog, public ILockedWaitingForProcess
+class LockedDialog : public LockedDialogBase
{
Q_OBJECT
@@ -48,35 +41,17 @@ public: explicit LockedDialog(QWidget *parent = 0, bool unlockByButton = false);
~LockedDialog();
- /**
- * @brief see if the user clicked the unlock-button
- *
- * @return true if the user clicked the unlock button
- **/
- bool unlockForced() override;
-
- /**
- * @brief set the name of the process being run
- * @param name of process
- */
void setProcessName(const QString &name) override;
protected:
- virtual void resizeEvent(QResizeEvent *event);
-
- virtual void reject();
+ void unlock() override;
private slots:
void on_unlockButton_clicked();
private:
- void unlock();
Ui::LockedDialog *ui;
- bool m_Unlocked;
- bool m_allowClose;
};
-
-#endif // LOCKEDDIALOG_H
|
