- Added feature #800, adding a new command 'columns' that lists all the columns
  available for custom reports, and includes their formatting options (thanks
  to T. Charles Yun).
This commit is contained in:
Paul Beckingham
2011-07-16 13:08:23 -04:00
parent 3a5370ddf1
commit 27a04b29f5
28 changed files with 372 additions and 64 deletions

View File

@@ -40,8 +40,12 @@ ColumnID::ColumnID ()
{
_name = "id";
_type = "number";
_style = "default";
_style = "number";
_label = STRING_COLUMN_LABEL_ID;
_styles.push_back ("number");
_examples.push_back ("123");
}
////////////////////////////////////////////////////////////////////////////////
@@ -69,7 +73,8 @@ void ColumnID::measure (Task& task, int& minimum, int& maximum)
minimum = maximum = length;
if (_style != "default")
if (_style != "default" &&
_style != "number")
throw format (STRING_COLUMN_BAD_FORMAT, _name, _style);
}