lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] visual feedback when editing cells


From: Václav Slavík
Subject: [lmi] visual feedback when editing cells
Date: Tue, 9 Aug 2011 18:29:47 +0200

Hi,

when I press Ctrl+E in census view, there's a noticeable delay until the dialog 
appears. This can be frustrating, I am unsure whether I pressed the right 
shortcut or not and sometimes press it twice.

The small patch below adds visual busy indicator. IMHO it makes the situation 
much better -- at least you know something is happening and the app isn't 
ignoring you.

Regards,
Vaclav


diff --git a/census_view.cpp b/census_view.cpp
index c4a84a5..e9c14f2 100644
--- a/census_view.cpp
+++ b/census_view.cpp
@@ -335,12 +335,15 @@ int CensusView::edit_parameters
         return false;
         }
 
+    std::auto_ptr<wxBusyCursor> busy_cursor(new wxBusyCursor);
+
     bool dirty = document().IsModified();
 
     Input edited_lmi_input = lmi_input;
     DefaultView const default_view;
     MvcController controller(GetFrame(), edited_lmi_input, default_view);
     controller.SetTitle(name);
+    busy_cursor.reset();
     int rc = controller.ShowModal();
     if(wxID_OK == rc)
         {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]