summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-11-01 06:47:53 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-06 07:45:02 -0500
commit3d0197fa5e6c4209d021398415f779994c21bd24 (patch)
treed1f9cf2a8aafea7270faee431b36eb0537bc06a6 /src
parentada2ac0cb5d0ef2039ce55794928c4d05255ed65 (diff)
comments
Diffstat (limited to 'src')
-rw-r--r--src/lockwidget.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lockwidget.h b/src/lockwidget.h
index 18ff76dd..d3ff2f7d 100644
--- a/src/lockwidget.h
+++ b/src/lockwidget.h
@@ -5,22 +5,40 @@
class LockWidget
{
public:
+ // reason to show the widget
+ //
enum Reasons
{
NoReason = 0,
+
+ // lock the ui
LockUI,
+
+ // because the output is required
OutputRequired,
+
+ // to prevent exiting until all processes are completed
PreventExit
};
+ // returned by result()
+ //
enum Results
{
NoResult = 0,
+
+ // the widget is still up
StillLocked,
+
+ // force unlock was clicked
ForceUnlocked,
+
+ // cancel was clicked
Cancelled
};
+ // if `reason` is not NoReason, lock() is called with it
+ //
LockWidget(QWidget* parent, Reasons reason=NoReason);
~LockWidget();