mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Col*: Moving code into ColTypeString base
This commit is contained in:
parent
de9c0b97f6
commit
dc72a22887
10 changed files with 5 additions and 14 deletions
|
@ -39,7 +39,6 @@ extern Context context;
|
||||||
ColumnDepends::ColumnDepends ()
|
ColumnDepends::ColumnDepends ()
|
||||||
{
|
{
|
||||||
_name = "depends";
|
_name = "depends";
|
||||||
_type = "string";
|
|
||||||
_style = "list";
|
_style = "list";
|
||||||
_label = STRING_COLUMN_LABEL_DEP;
|
_label = STRING_COLUMN_LABEL_DEP;
|
||||||
_styles = {"list",
|
_styles = {"list",
|
||||||
|
|
|
@ -40,7 +40,6 @@ extern Context context;
|
||||||
ColumnDescription::ColumnDescription ()
|
ColumnDescription::ColumnDescription ()
|
||||||
{
|
{
|
||||||
_name = "description";
|
_name = "description";
|
||||||
_type = "string";
|
|
||||||
_style = "combined";
|
_style = "combined";
|
||||||
_label = STRING_COLUMN_LABEL_DESC;
|
_label = STRING_COLUMN_LABEL_DESC;
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,6 @@ extern Context context;
|
||||||
ColumnMask::ColumnMask ()
|
ColumnMask::ColumnMask ()
|
||||||
{
|
{
|
||||||
_name = "mask";
|
_name = "mask";
|
||||||
_type = "string";
|
|
||||||
_style = "default";
|
_style = "default";
|
||||||
_label = STRING_COLUMN_LABEL_MASK;
|
_label = STRING_COLUMN_LABEL_MASK;
|
||||||
_modifiable = false;
|
_modifiable = false;
|
||||||
|
|
|
@ -38,7 +38,6 @@ extern Context context;
|
||||||
ColumnProject::ColumnProject ()
|
ColumnProject::ColumnProject ()
|
||||||
{
|
{
|
||||||
_name = "project";
|
_name = "project";
|
||||||
_type = "string";
|
|
||||||
_style = "full";
|
_style = "full";
|
||||||
_label = STRING_COLUMN_LABEL_PROJECT;
|
_label = STRING_COLUMN_LABEL_PROJECT;
|
||||||
_styles = {"full", "parent", "indented"};
|
_styles = {"full", "parent", "indented"};
|
||||||
|
|
|
@ -38,11 +38,6 @@ extern Context context;
|
||||||
ColumnRecur::ColumnRecur ()
|
ColumnRecur::ColumnRecur ()
|
||||||
{
|
{
|
||||||
_name = "recur";
|
_name = "recur";
|
||||||
|
|
||||||
// This is 'string', and not 'duration' to force the value to be stored as a
|
|
||||||
// raw duration, so that it can be reevaluated every time.
|
|
||||||
_type = "string";
|
|
||||||
|
|
||||||
_style = "duration";
|
_style = "duration";
|
||||||
_label = STRING_COLUMN_LABEL_RECUR;
|
_label = STRING_COLUMN_LABEL_RECUR;
|
||||||
_styles = {"duration", "indicator"};
|
_styles = {"duration", "indicator"};
|
||||||
|
|
|
@ -27,9 +27,11 @@
|
||||||
#ifndef INCLUDED_COLRECUR
|
#ifndef INCLUDED_COLRECUR
|
||||||
#define INCLUDED_COLRECUR
|
#define INCLUDED_COLRECUR
|
||||||
|
|
||||||
#include <ColTypeDuration.h>
|
#include <ColTypeString.h>
|
||||||
|
|
||||||
class ColumnRecur : public ColumnTypeDuration
|
// This is 'string', and not 'duration' to force the value to be stored as a
|
||||||
|
// raw duration, so that it can be reevaluated every time.
|
||||||
|
class ColumnRecur : public ColumnTypeString
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ColumnRecur ();
|
ColumnRecur ();
|
||||||
|
|
|
@ -37,7 +37,6 @@ extern Context context;
|
||||||
ColumnStatus::ColumnStatus ()
|
ColumnStatus::ColumnStatus ()
|
||||||
{
|
{
|
||||||
_name = "status";
|
_name = "status";
|
||||||
_type = "string";
|
|
||||||
_style = "long";
|
_style = "long";
|
||||||
_label = STRING_COLUMN_LABEL_STATUS;
|
_label = STRING_COLUMN_LABEL_STATUS;
|
||||||
_styles = {"long", "short"};
|
_styles = {"long", "short"};
|
||||||
|
|
|
@ -38,7 +38,6 @@ extern Context context;
|
||||||
ColumnTags::ColumnTags ()
|
ColumnTags::ColumnTags ()
|
||||||
{
|
{
|
||||||
_name = "tags";
|
_name = "tags";
|
||||||
_type = "string";
|
|
||||||
_style = "list";
|
_style = "list";
|
||||||
_label = STRING_COLUMN_LABEL_TAGS;
|
_label = STRING_COLUMN_LABEL_TAGS;
|
||||||
_styles = {"list", "indicator", "count"};
|
_styles = {"list", "indicator", "count"};
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
ColumnTypeString::ColumnTypeString ()
|
ColumnTypeString::ColumnTypeString ()
|
||||||
{
|
{
|
||||||
|
_type = "string";
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -37,7 +37,6 @@ extern Context context;
|
||||||
ColumnUUID::ColumnUUID ()
|
ColumnUUID::ColumnUUID ()
|
||||||
{
|
{
|
||||||
_name = "uuid";
|
_name = "uuid";
|
||||||
_type = "string";
|
|
||||||
_style = "long";
|
_style = "long";
|
||||||
_label = STRING_COLUMN_LABEL_UUID;
|
_label = STRING_COLUMN_LABEL_UUID;
|
||||||
_modifiable = false;
|
_modifiable = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue