summaryrefslogtreecommitdiff
path: root/src/lockeddialog.h
diff options
context:
space:
mode:
authorJeremy Rimpo <jeremy.rimpo@servermonkey.com>2017-12-13 15:58:43 -0600
committerGitHub <noreply@github.com>2017-12-13 15:58:43 -0600
commit554b46847589fffb6cd7bc5c54689665c34ed95b (patch)
tree235f1cad320f73e6b22cdf330d9a14d42bd33092 /src/lockeddialog.h
parente4b952278d978567af3210d6a4be992eef3ba205 (diff)
parent604d86ed07711651bc71871f6d37a794d916da6a (diff)
Merge pull request #148 from erasmux/lockeddialog_fixes
Lockeddialog fixes
Diffstat (limited to 'src/lockeddialog.h')
-rw-r--r--src/lockeddialog.h32
1 files changed, 6 insertions, 26 deletions
diff --git a/src/lockeddialog.h b/src/lockeddialog.h
index 8803efae..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,38 +33,25 @@ 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
public:
- explicit LockedDialog(QWidget *parent = 0, const QString &text = "", bool unlockButton = true);
+ 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 unlockClicked() override { return m_UnlockClicked; }
-
- /**
- * @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);
+ void unlock() override;
private slots:
void on_unlockButton_clicked();
private:
+
Ui::LockedDialog *ui;
- bool m_UnlockClicked;
};
-
-#endif // LOCKEDDIALOG_H