- Converted history reports to use ViewText.
- Fixed unit test.
This commit is contained in:
Paul Beckingham 2011-05-11 00:20:35 -04:00
parent fcb711d673
commit ec7d9ed765
5 changed files with 103 additions and 144 deletions

View file

@ -57,9 +57,9 @@ int shortUsage (std::string& outs)
{
ViewText view;
view.width (context.getWidth ());
view.add ("");
view.add ("");
view.add ("");
view.add (Column::factory ("string", ""));
view.add (Column::factory ("string", ""));
view.add (Column::factory ("string", ""));
int row = view.addRow ();
view.set (row, 0, "Usage:");
@ -1762,8 +1762,8 @@ int handleReportStats (std::string& outs)
ViewText view;
view.width (context.getWidth ());
view.intraPadding (2);
view.add ("Category");
view.add ("Data");
view.add (Column::factory ("string", "Category"));
view.add (Column::factory ("string", "Data"));
int row = view.addRow ();
view.set (row, 0, "Pending");