- 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

@@ -39,8 +39,14 @@ ColumnProject::ColumnProject ()
{
_name = "project";
_type = "string";
_style = "default";
_style = "full";
_label = STRING_COLUMN_LABEL_PROJECT;
_styles.push_back ("full");
_styles.push_back ("parent");
_examples.push_back (STRING_COLUMN_EXAMPLES_PROJ);
_examples.push_back (STRING_COLUMN_EXAMPLES_PAR);
}
////////////////////////////////////////////////////////////////////////////////
@@ -66,7 +72,8 @@ void ColumnProject::measure (Task& task, int& minimum, int& maximum)
if (period != std::string::npos)
project = project.substr (0, period);
}
else if (_style != "default")
else if (_style != "default" &&
_style != "full")
throw format (STRING_COLUMN_BAD_FORMAT, _name, _style);
minimum = longestWord (project);