lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [5081] Rearrange


From: Greg Chicares
Subject: [lmi-commits] [5081] Rearrange
Date: Wed, 28 Jul 2010 19:51:43 +0000

Revision: 5081
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5081
Author:   chicares
Date:     2010-07-28 19:51:42 +0000 (Wed, 28 Jul 2010)
Log Message:
-----------
Rearrange

Modified Paths:
--------------
    lmi/trunk/census_view.cpp

Modified: lmi/trunk/census_view.cpp
===================================================================
--- lmi/trunk/census_view.cpp   2010-07-28 19:47:57 UTC (rev 5080)
+++ lmi/trunk/census_view.cpp   2010-07-28 19:51:42 UTC (rev 5081)
@@ -953,27 +953,27 @@
 
 // TODO ?? Add unit tests for this function.
 
+/// A brand-new census contains one default cell, which doesn't
+/// represent user input, so we should erase it before pasting
+/// new cells from the clipboard.
+///
+/// But if the census contains any user input, we shouldn't
+/// erase it. User input is present if either the document has
+/// been modified (this covers the case where the default cell
+/// in a new census has been changed) or the document was loaded
+/// from a file (even if it was saved with only an unmodified
+/// default cell, we assume that the contents of any explicitly-
+/// saved file represent user intention). In this case, users
+/// say they want to append pasted data to the cells that are
+/// already present.
+///
+/// We do all of this as soon as we know that the user wants to
+/// paste census data. If pasting fails, the user is left with a
+/// census that contains no cells, but that's OK; in this event,
+/// they're likely to correct the data and repaste it.
+
 void CensusView::UponPasteCensus(wxCommandEvent&)
 {
-    // A brand-new census contains one default cell, which doesn't
-    // represent user input, so we should erase it before pasting
-    // new cells from the clipboard.
-    //
-    // But if the census contains any user input, we shouldn't
-    // erase it. User input is present if either the document has
-    // been modified (this covers the case where the default cell
-    // in a new census has been changed) or the document was loaded
-    // from a file (even if it was saved with only an unmodified
-    // default cell, we assume that the contents of any explicitly-
-    // saved file represent user intention). In this case, users
-    // say they want to append pasted data to the cells that are
-    // already present.
-    //
-    // We do all of this as soon as we know that the user wants to
-    // paste census data. If pasting fails, the user is left with a
-    // census that contains no cells, but that's OK; in this event,
-    // they're likely to correct the data and repaste it.
-    //
     // In the solution domain:
     //   document modified <--> dirty flag set
     //   loaded from file  <--> document path not null




reply via email to

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