- Broke out View into ViewTask and ViewText, where the former uses an
  external std::vector <Task> as storage, thus eliminating the additional
  copy, and the latter that duplicates data and color into 2D vectors
  for rendering non-task data.
This commit is contained in:
Paul Beckingham
2011-05-10 22:49:20 -04:00
parent ac60ee8d33
commit 1a833af2a4
10 changed files with 513 additions and 249 deletions

View File

@@ -38,7 +38,7 @@
#include <Context.h>
#include <Date.h>
#include <Duration.h>
#include <View.h>
#include <ViewTask.h>
#include <text.h>
#include <util.h>
#include <main.h>
@@ -237,7 +237,7 @@ int handleCustomReport (const std::string& report, std::string& outs)
sort_tasks (tasks, sequence, reportSort);
// Configure the view.
View view;
ViewTask view;
view.width (context.getWidth ());
view.leftMargin (context.config.getInteger ("indent.report"));
view.extraPadding (context.config.getInteger ("row.padding"));