mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Columns
- The Columns::is_uda() method allows identification of UDA attributes.
This commit is contained in:
parent
416b597c8a
commit
194db8634e
3 changed files with 8 additions and 0 deletions
|
@ -56,6 +56,12 @@ ColumnUDA::~ColumnUDA ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ColumnUDA::is_uda () const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ColumnUDA::validate (std::string& value)
|
||||
{
|
||||
|
|
|
@ -39,6 +39,7 @@ public:
|
|||
ColumnUDA ();
|
||||
~ColumnUDA ();
|
||||
|
||||
bool is_uda () const;
|
||||
bool validate (std::string&);
|
||||
void measure (Task&, unsigned int&, unsigned int&);
|
||||
void render (std::vector <std::string>&, Task&, int, Color&);
|
||||
|
|
|
@ -50,6 +50,7 @@ public:
|
|||
std::string label () const { return _label; }
|
||||
std::string type () const { return _type; }
|
||||
bool modifiable () const { return _modifiable; }
|
||||
bool is_uda () const { return false; }
|
||||
std::vector <std::string> styles () const { return _styles; }
|
||||
std::vector <std::string> examples () const { return _examples; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue