Documentation

- Modified the wording of the output of the undo command.
This commit is contained in:
Paul Beckingham 2010-07-03 17:54:02 -04:00
parent d00b57ec65
commit 484c31f0e4

View file

@ -796,13 +796,13 @@ void TDB::undo ()
table.setColumnJustification (1, Table::left); table.setColumnJustification (1, Table::left);
int row = table.addRow (); int row = table.addRow ();
table.addCell (row, 0, "--- before"); table.addCell (row, 0, "--- previous state");
table.addCell (row, 1, "Previous state that undo will restore"); table.addCell (row, 1, "Undo will restore this state");
table.setRowColor (row, color_red); table.setRowColor (row, color_red);
row = table.addRow (); row = table.addRow ();
table.addCell (row, 0, "+++ after "); // Note trailing space. table.addCell (row, 0, "+++ current state "); // Note trailing space.
table.addCell (row, 1, "Change made: " + lastChange.toStringWithTime (context.config.get ("dateformat"))); table.addCell (row, 1, "Change made " + lastChange.toStringWithTime (context.config.get ("dateformat")));
table.setRowColor (row, color_green); table.setRowColor (row, color_green);
table.addRow (); table.addRow ();
@ -841,9 +841,11 @@ void TDB::undo ()
if (*a == "uuid" || if (*a == "uuid" ||
before_att == after_att) before_att == after_att)
{ {
row = table.addRow (); // Show nothing - no point displaying that which did not change.
table.addCell (row, 0, *a + ":");
table.addCell (row, 1, before_att); // row = table.addRow ();
// table.addCell (row, 0, *a + ":");
// table.addCell (row, 1, before_att);
} }
// Attribute deleted. // Attribute deleted.
@ -894,7 +896,7 @@ void TDB::undo ()
} }
// Output displayed, now confirm. // Output displayed, now confirm.
if (!confirm ("The undo command is not reversible. Are you sure you want to undo the last update?")) if (!confirm ("The undo command is not reversible. Are you sure you want to revert to the previous state?"))
throw std::string ("No changes made."); throw std::string ("No changes made.");
// Extract identifying uuid. // Extract identifying uuid.