mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
ColTypeDate: Renamed 'ColDate' to 'ColTypeDate'
- Renamed files ColDate* to ColTypeDate*. - Renamed objects ColumnDate* to ColumnTypeDate*. - This is mainly to make way for ColType{Duration,String,Numeric}, while leaving ColString untouched. ColString is used only for ViewText columns, but may soon be replaced by ColTypeString. Unknown.
This commit is contained in:
parent
6baff92b5a
commit
2a6ce539d0
12 changed files with 27 additions and 27 deletions
|
@ -6,7 +6,7 @@ include_directories (${CMAKE_SOURCE_DIR}
|
||||||
${TASK_INCLUDE_DIRS})
|
${TASK_INCLUDE_DIRS})
|
||||||
|
|
||||||
set (columns_SRCS Column.cpp Column.h
|
set (columns_SRCS Column.cpp Column.h
|
||||||
ColDate.cpp ColDate.h
|
ColTypeDate.cpp ColTypeDate.h
|
||||||
ColDepends.cpp ColDepends.h
|
ColDepends.cpp ColDepends.h
|
||||||
ColDescription.cpp ColDescription.h
|
ColDescription.cpp ColDescription.h
|
||||||
ColDue.cpp ColDue.h
|
ColDue.cpp ColDue.h
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
#ifndef INCLUDED_COLDUE
|
#ifndef INCLUDED_COLDUE
|
||||||
#define INCLUDED_COLDUE
|
#define INCLUDED_COLDUE
|
||||||
|
|
||||||
#include <ColDate.h>
|
#include <ColTypeDate.h>
|
||||||
|
|
||||||
class ColumnDue : public ColumnDate
|
class ColumnDue : public ColumnTypeDate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ColumnDue ();
|
ColumnDue ();
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
#ifndef INCLUDED_COLEND
|
#ifndef INCLUDED_COLEND
|
||||||
#define INCLUDED_COLEND
|
#define INCLUDED_COLEND
|
||||||
|
|
||||||
#include <ColDate.h>
|
#include <ColTypeDate.h>
|
||||||
|
|
||||||
class ColumnEnd : public ColumnDate
|
class ColumnEnd : public ColumnTypeDate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ColumnEnd ();
|
ColumnEnd ();
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
#ifndef INCLUDED_COLENTRY
|
#ifndef INCLUDED_COLENTRY
|
||||||
#define INCLUDED_COLENTRY
|
#define INCLUDED_COLENTRY
|
||||||
|
|
||||||
#include <ColDate.h>
|
#include <ColTypeDate.h>
|
||||||
|
|
||||||
class ColumnEntry : public ColumnDate
|
class ColumnEntry : public ColumnTypeDate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ColumnEntry ();
|
ColumnEntry ();
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
#ifndef INCLUDED_COLMODIFIED
|
#ifndef INCLUDED_COLMODIFIED
|
||||||
#define INCLUDED_COLMODIFIED
|
#define INCLUDED_COLMODIFIED
|
||||||
|
|
||||||
#include <ColDate.h>
|
#include <ColTypeDate.h>
|
||||||
|
|
||||||
class ColumnModified : public ColumnDate
|
class ColumnModified : public ColumnTypeDate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ColumnModified ();
|
ColumnModified ();
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
#ifndef INCLUDED_COLSCHED
|
#ifndef INCLUDED_COLSCHED
|
||||||
#define INCLUDED_COLSCHED
|
#define INCLUDED_COLSCHED
|
||||||
|
|
||||||
#include <ColDate.h>
|
#include <ColTypeDate.h>
|
||||||
|
|
||||||
class ColumnScheduled : public ColumnDate
|
class ColumnScheduled : public ColumnTypeDate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ColumnScheduled ();
|
ColumnScheduled ();
|
||||||
|
|
|
@ -75,7 +75,7 @@ void ColumnStart::measure (Task& task, unsigned int& minimum, unsigned int& maxi
|
||||||
minimum = maximum = 0;
|
minimum = maximum = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ColumnDate::measure (task, minimum, maximum);
|
ColumnTypeDate::measure (task, minimum, maximum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ void ColumnStart::render (
|
||||||
context.config.get ("active.indicator"), width)));
|
context.config.get ("active.indicator"), width)));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ColumnDate::render (lines, task, width, color);
|
ColumnTypeDate::render (lines, task, width, color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
#ifndef INCLUDED_COLSTART
|
#ifndef INCLUDED_COLSTART
|
||||||
#define INCLUDED_COLSTART
|
#define INCLUDED_COLSTART
|
||||||
|
|
||||||
#include <ColDate.h>
|
#include <ColTypeDate.h>
|
||||||
|
|
||||||
class ColumnStart : public ColumnDate
|
class ColumnStart : public ColumnTypeDate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ColumnStart ();
|
ColumnStart ();
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#include <cmake.h>
|
#include <cmake.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
#include <ColDate.h>
|
#include <ColTypeDate.h>
|
||||||
#include <ISO8601.h>
|
#include <ISO8601.h>
|
||||||
#include <text.h>
|
#include <text.h>
|
||||||
#include <i18n.h>
|
#include <i18n.h>
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
extern Context context;
|
extern Context context;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
ColumnDate::ColumnDate ()
|
ColumnTypeDate::ColumnTypeDate ()
|
||||||
{
|
{
|
||||||
_name = "";
|
_name = "";
|
||||||
_type = "date";
|
_type = "date";
|
||||||
|
@ -61,13 +61,13 @@ ColumnDate::ColumnDate ()
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
ColumnDate::~ColumnDate ()
|
ColumnTypeDate::~ColumnTypeDate ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Set the minimum and maximum widths for the value.
|
// Set the minimum and maximum widths for the value.
|
||||||
void ColumnDate::measure (Task& task, unsigned int& minimum, unsigned int& maximum)
|
void ColumnTypeDate::measure (Task& task, unsigned int& minimum, unsigned int& maximum)
|
||||||
{
|
{
|
||||||
minimum = maximum = 0;
|
minimum = maximum = 0;
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ void ColumnDate::measure (Task& task, unsigned int& minimum, unsigned int& maxim
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void ColumnDate::render (
|
void ColumnTypeDate::render (
|
||||||
std::vector <std::string>& lines,
|
std::vector <std::string>& lines,
|
||||||
Task& task,
|
Task& task,
|
||||||
int width,
|
int width,
|
|
@ -33,11 +33,11 @@
|
||||||
#include <Color.h>
|
#include <Color.h>
|
||||||
#include <Task.h>
|
#include <Task.h>
|
||||||
|
|
||||||
class ColumnDate : public Column
|
class ColumnTypeDate : public Column
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ColumnDate ();
|
ColumnTypeDate ();
|
||||||
virtual ~ColumnDate ();
|
virtual ~ColumnTypeDate ();
|
||||||
|
|
||||||
virtual void measure (Task&, unsigned int&, unsigned int&);
|
virtual void measure (Task&, unsigned int&, unsigned int&);
|
||||||
virtual void render (std::vector <std::string>&, Task&, int, Color&);
|
virtual void render (std::vector <std::string>&, Task&, int, Color&);
|
|
@ -27,9 +27,9 @@
|
||||||
#ifndef INCLUDED_COLUNTIL
|
#ifndef INCLUDED_COLUNTIL
|
||||||
#define INCLUDED_COLUNTIL
|
#define INCLUDED_COLUNTIL
|
||||||
|
|
||||||
#include <ColDate.h>
|
#include <ColTypeDate.h>
|
||||||
|
|
||||||
class ColumnUntil : public ColumnDate
|
class ColumnUntil : public ColumnTypeDate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ColumnUntil ();
|
ColumnUntil ();
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
#ifndef INCLUDED_COLWAIT
|
#ifndef INCLUDED_COLWAIT
|
||||||
#define INCLUDED_COLWAIT
|
#define INCLUDED_COLWAIT
|
||||||
|
|
||||||
#include <ColDate.h>
|
#include <ColTypeDate.h>
|
||||||
|
|
||||||
class ColumnWait : public ColumnDate
|
class ColumnWait : public ColumnTypeDate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ColumnWait ();
|
ColumnWait ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue