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 ()
|
||||
{
|
||||
_name = "depends";
|
||||
_type = "string";
|
||||
_style = "list";
|
||||
_label = STRING_COLUMN_LABEL_DEP;
|
||||
_styles = {"list",
|
||||
|
|
|
@ -40,7 +40,6 @@ extern Context context;
|
|||
ColumnDescription::ColumnDescription ()
|
||||
{
|
||||
_name = "description";
|
||||
_type = "string";
|
||||
_style = "combined";
|
||||
_label = STRING_COLUMN_LABEL_DESC;
|
||||
|
||||
|
|
|
@ -37,7 +37,6 @@ extern Context context;
|
|||
ColumnMask::ColumnMask ()
|
||||
{
|
||||
_name = "mask";
|
||||
_type = "string";
|
||||
_style = "default";
|
||||
_label = STRING_COLUMN_LABEL_MASK;
|
||||
_modifiable = false;
|
||||
|
|
|
@ -38,7 +38,6 @@ extern Context context;
|
|||
ColumnProject::ColumnProject ()
|
||||
{
|
||||
_name = "project";
|
||||
_type = "string";
|
||||
_style = "full";
|
||||
_label = STRING_COLUMN_LABEL_PROJECT;
|
||||
_styles = {"full", "parent", "indented"};
|
||||
|
|
|
@ -38,11 +38,6 @@ extern Context context;
|
|||
ColumnRecur::ColumnRecur ()
|
||||
{
|
||||
_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";
|
||||
_label = STRING_COLUMN_LABEL_RECUR;
|
||||
_styles = {"duration", "indicator"};
|
||||
|
|
|
@ -27,9 +27,11 @@
|
|||
#ifndef 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:
|
||||
ColumnRecur ();
|
||||
|
|
|
@ -37,7 +37,6 @@ extern Context context;
|
|||
ColumnStatus::ColumnStatus ()
|
||||
{
|
||||
_name = "status";
|
||||
_type = "string";
|
||||
_style = "long";
|
||||
_label = STRING_COLUMN_LABEL_STATUS;
|
||||
_styles = {"long", "short"};
|
||||
|
|
|
@ -38,7 +38,6 @@ extern Context context;
|
|||
ColumnTags::ColumnTags ()
|
||||
{
|
||||
_name = "tags";
|
||||
_type = "string";
|
||||
_style = "list";
|
||||
_label = STRING_COLUMN_LABEL_TAGS;
|
||||
_styles = {"list", "indicator", "count"};
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
ColumnTypeString::ColumnTypeString ()
|
||||
{
|
||||
_type = "string";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -37,7 +37,6 @@ extern Context context;
|
|||
ColumnUUID::ColumnUUID ()
|
||||
{
|
||||
_name = "uuid";
|
||||
_type = "string";
|
||||
_style = "long";
|
||||
_label = STRING_COLUMN_LABEL_UUID;
|
||||
_modifiable = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue