summaryrefslogtreecommitdiff
path: root/src/ProgressWidget.h
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-02-10 15:13:12 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-02-10 15:13:12 (GMT)
commit8038ee0406c05b1bc9c147e47a7ae8c02da6afbf (patch)
tree3cc3dca407633ab420aa96cbb7d9308b2d76e3b1 /src/ProgressWidget.h
parentc021720bfd2d45d35786b6d31d23402ec23df404 (diff)
Moved progress display to status bar. Disabled by default but can be enabled in .pro file with CONFIG += progresswidget. Please test and enable as default if it looks good on all platforms.
git-svn-id: http://svn.clifford.at/openscad/trunk@432 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'src/ProgressWidget.h')
-rw-r--r--src/ProgressWidget.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/ProgressWidget.h b/src/ProgressWidget.h
new file mode 100644
index 0000000..a609dbd
--- /dev/null
+++ b/src/ProgressWidget.h
@@ -0,0 +1,25 @@
+#ifndef PROGRESSWIDGET_H_
+#define PROGRESSWIDGET_H_
+
+#include "ui_ProgressWidget.h"
+
+class ProgressWidget : public QWidget, public Ui::ProgressWidget
+{
+ Q_OBJECT;
+ Q_PROPERTY(bool wasCanceled READ wasCanceled);
+
+public:
+ ProgressWidget(QWidget *parent = NULL);
+ bool wasCanceled() const;
+
+public slots:
+ void setRange(int minimum, int maximum);
+ void setValue(int progress);
+ void cancel();
+
+private:
+ bool wascanceled;
+
+};
+
+#endif
contact: Jan Huwald // Impressum