mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdSummary: Migrated from ViewText to Table
This commit is contained in:
parent
6c90de1974
commit
7001e38c30
1 changed files with 7 additions and 7 deletions
|
@ -31,7 +31,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
#include <Filter.h>
|
#include <Filter.h>
|
||||||
#include <ViewText.h>
|
#include <Table.h>
|
||||||
#include <Duration.h>
|
#include <Duration.h>
|
||||||
#include <format.h>
|
#include <format.h>
|
||||||
#include <util.h>
|
#include <util.h>
|
||||||
|
@ -131,13 +131,13 @@ int CmdSummary::execute (std::string& output)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a table for output.
|
// Create a table for output.
|
||||||
ViewText view;
|
Table view;
|
||||||
view.width (context.getWidth ());
|
view.width (context.getWidth ());
|
||||||
view.add (Column::factory ("string", STRING_CMD_SUMMARY_PROJECT));
|
view.add (STRING_CMD_SUMMARY_PROJECT);
|
||||||
view.add (Column::factory ("string.right", STRING_CMD_SUMMARY_REMAINING));
|
view.add (STRING_CMD_SUMMARY_REMAINING, false);
|
||||||
view.add (Column::factory ("string.right", STRING_CMD_SUMMARY_AVG_AGE));
|
view.add (STRING_CMD_SUMMARY_AVG_AGE, false);
|
||||||
view.add (Column::factory ("string.right", STRING_CMD_SUMMARY_COMPLETE));
|
view.add (STRING_CMD_SUMMARY_COMPLETE, false);
|
||||||
view.add (Column::factory ("string.left_fixed", "0% 100%"));
|
view.add ("0% 100%");
|
||||||
|
|
||||||
Color bar_color;
|
Color bar_color;
|
||||||
Color bg_color;
|
Color bg_color;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue