- The 'summary' report now uses 'project.indented' format.
This commit is contained in:
Paul Beckingham 2012-03-25 18:00:22 -04:00
parent adb6785931
commit a73c711188
3 changed files with 7 additions and 1 deletions

View file

@ -6,6 +6,7 @@
Features
+ Added the new 'indented' format for the 'project' attribute.
+ The 'projects' report now uses 'project.indented' format.
+ The 'summary' report now uses 'project.indented' format.
Bugs
+ Fixed grammar in feedback string (thanks to Uli Martens).

View file

@ -33,6 +33,7 @@
#include <ViewText.h>
#include <Duration.h>
#include <text.h>
#include <util.h>
#include <i18n.h>
#include <main.h>
#include <CmdSummary.h>
@ -135,7 +136,10 @@ int CmdSummary::execute (std::string& output)
if (countPending[i->first] > 0)
{
int row = view.addRow ();
view.set (row, 0, (i->first == "" ? "(none)" : i->first));
view.set (row, 0, (i->first == ""
? STRING_CMD_SUMMARY_NONE
: indentProject (i->first, " ", '.')));
view.set (row, 1, countPending[i->first]);
if (counter[i->first])
view.set (row, 2, Duration ((int) (sumEntry[i->first] / (double)counter[i->first])).format ());

View file

@ -300,6 +300,7 @@
#define STRING_CMD_SUMMARY_REMAINING "Remaining"
#define STRING_CMD_SUMMARY_AVG_AGE "Avg age"
#define STRING_CMD_SUMMARY_COMPLETE "Complete"
#define STRING_CMD_SUMMARY_NONE "(none)"
#define STRING_CMD_COUNT_USAGE "Counts matching tasks"
#define STRING_CMD_DELETE_USAGE "Deletes the specified task"