- Converted 'help' and 'stats' reports to use ViewText.
- Modified Column.cpp to omit column headers if blank.
This commit is contained in:
Paul Beckingham 2011-05-10 23:46:47 -04:00
parent 1a833af2a4
commit fcb711d673
3 changed files with 243 additions and 271 deletions

View file

@ -68,7 +68,7 @@ int ViewText::addRow ()
////////////////////////////////////////////////////////////////////////////////
void ViewText::set (int row, int col, const std::string& value, Color color)
{
_data[row][col] = value;
_data[row][col] = value;
if (color.nontrivial ())
_color[row][col] = color;
@ -78,7 +78,7 @@ void ViewText::set (int row, int col, const std::string& value, Color color)
void ViewText::set (int row, int col, int value, Color color)
{
std::string string_value = format (value);
_data[row][col] = value;
_data[row][col] = string_value;
if (color.nontrivial ())
_color[row][col] = color;
@ -88,7 +88,7 @@ void ViewText::set (int row, int col, int value, Color color)
void ViewText::set (int row, int col, float value, int width, int precision, Color color)
{
std::string string_value = format ((float)value, width, precision);
_data[row][col] = value;
_data[row][col] = string_value;
if (color.nontrivial ())
_color[row][col] = color;