Col*: Moving code into ColTypeString base
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user