summaryrefslogtreecommitdiff
path: root/src/tasks/TaskWindow.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-21 12:22:52 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-21 12:22:52 (GMT)
commit12ba6834ebff1271000f6232b1b6bce16665c10a (patch)
tree074ef551ea5a456366d5e42ccdd2cfe0764bfac1 /src/tasks/TaskWindow.h
parent09758b9152d3ef967522049fecb1920546b8970e (diff)
downloadpowder-12ba6834ebff1271000f6232b1b6bce16665c10a.zip
powder-12ba6834ebff1271000f6232b1b6bce16665c10a.tar.gz
Make status updates on tasks safe - add intermediate progress bar for TaskWindow
Diffstat (limited to 'src/tasks/TaskWindow.h')
-rw-r--r--src/tasks/TaskWindow.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tasks/TaskWindow.h b/src/tasks/TaskWindow.h
index d7edf8b..09893bc 100644
--- a/src/tasks/TaskWindow.h
+++ b/src/tasks/TaskWindow.h
@@ -18,15 +18,18 @@ class TaskWindow: public ui::Window, public TaskListener {
Task * task;
std::string title;
int progress;
+ float intermediatePos;
bool done;
+ bool closeOnDone;
ui::Label * statusLabel;
public:
- TaskWindow(std::string title_, Task * task_);
+ TaskWindow(std::string title_, Task * task_, bool closeOnDone = true);
virtual void NotifyStatus(Task * task);
virtual void NotifyDone(Task * task);
virtual void NotifyProgress(Task * task);
virtual void OnTick(float dt);
virtual void OnDraw();
+ virtual void Exit();
virtual ~TaskWindow();
};