Col*: Moving code into ColTypeString base

This commit is contained in:
Paul Beckingham 2015-10-31 14:35:06 -04:00
parent de9c0b97f6
commit dc72a22887
10 changed files with 5 additions and 14 deletions

View file

@ -39,7 +39,6 @@ extern Context context;
ColumnDepends::ColumnDepends ()
{
_name = "depends";
_type = "string";
_style = "list";
_label = STRING_COLUMN_LABEL_DEP;
_styles = {"list",

View file

@ -40,7 +40,6 @@ extern Context context;
ColumnDescription::ColumnDescription ()
{
_name = "description";
_type = "string";
_style = "combined";
_label = STRING_COLUMN_LABEL_DESC;

View file

@ -37,7 +37,6 @@ extern Context context;
ColumnMask::ColumnMask ()
{
_name = "mask";
_type = "string";
_style = "default";
_label = STRING_COLUMN_LABEL_MASK;
_modifiable = false;

View file

@ -38,7 +38,6 @@ extern Context context;
ColumnProject::ColumnProject ()
{
_name = "project";
_type = "string";
_style = "full";
_label = STRING_COLUMN_LABEL_PROJECT;
_styles = {"full", "parent", "indented"};

View file

@ -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"};

View file

@ -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 ();

View file

@ -37,7 +37,6 @@ extern Context context;
ColumnStatus::ColumnStatus ()
{
_name = "status";
_type = "string";
_style = "long";
_label = STRING_COLUMN_LABEL_STATUS;
_styles = {"long", "short"};

View file

@ -38,7 +38,6 @@ extern Context context;
ColumnTags::ColumnTags ()
{
_name = "tags";
_type = "string";
_style = "list";
_label = STRING_COLUMN_LABEL_TAGS;
_styles = {"list", "indicator", "count"};

View file

@ -30,6 +30,7 @@
////////////////////////////////////////////////////////////////////////////////
ColumnTypeString::ColumnTypeString ()
{
_type = "string";
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -37,7 +37,6 @@ extern Context context;
ColumnUUID::ColumnUUID ()
{
_name = "uuid";
_type = "string";
_style = "long";
_label = STRING_COLUMN_LABEL_UUID;
_modifiable = false;