- 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

@ -40,7 +40,7 @@ public:
~ViewText () {}
// View specifications.
void add (const std::string&);
void add (Column* col) { _columns.push_back (col); }
void width (int width) { _width = width; }
void leftMargin (int margin) { _left_margin = margin; }
void colorHeader (Color& c) { _header = c; }
@ -55,7 +55,7 @@ public:
void truncateLines (int n) { _truncate_lines = n; }
void truncateRows (int n) { _truncate_rows = n; }
int lines () { return _lines; }
int rows () { return _rows; }
int rows () { return (int) _data.size (); }
// Data provision.
int addRow ();