Code

show waiting cursor while ExecutionEnv is working
authorbuliabyak <buliabyak@users.sourceforge.net>
Wed, 28 Jan 2009 21:15:43 +0000 (21:15 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Wed, 28 Jan 2009 21:15:43 +0000 (21:15 +0000)
src/extension/execution-env.cpp

index 539e0786ac9330eb780f551d88b2e46ce2a5c634..4a13890d78c4137b8c5aa6dd9e2662d4d5299ded 100644 (file)
@@ -154,6 +154,8 @@ ExecutionEnv::workingCanceled( const int /*resp*/) {
 
 void
 ExecutionEnv::cancel (void) {
+    SPDesktop *desktop = (SPDesktop *)_doc;
+    desktop->clearWaitingCursor();
     _effect->get_imp()->cancelProcessing();
     return;
 }
@@ -203,7 +205,10 @@ ExecutionEnv::run (void) {
     if (_show_working) {
         createWorkingDialog();
     }
+    SPDesktop *desktop = (SPDesktop *)_doc;
+    desktop->setWaitingCursor();
     _effect->get_imp()->effect(_effect, _doc, _docCache);
+    desktop->clearWaitingCursor();
     _state = ExecutionEnv::COMPLETE;
     // _runComplete.signal();
     return;