mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Column: Added base ::modify method
This commit is contained in:
parent
6ef490a093
commit
5d566ddcbd
2 changed files with 8 additions and 1 deletions
|
@ -266,6 +266,12 @@ bool Column::validate (std::string& input)
|
|||
return input.length () ? true : false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Column::modify (Task& task, const std::string& value)
|
||||
{
|
||||
task.set (_name, value);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// All integer values are right-justified.
|
||||
void Column::renderInteger (
|
||||
|
|
|
@ -63,7 +63,8 @@ public:
|
|||
virtual void renderHeader (std::vector <std::string>&, int, Color&);
|
||||
virtual void render (std::vector <std::string>&, const std::string&, int, Color&) {};
|
||||
virtual void render (std::vector <std::string>&, Task&, int, Color&) {};
|
||||
virtual std::string modify (std::string& input) { return input; };
|
||||
|
||||
virtual void modify (Task&, const std::string&);
|
||||
|
||||
protected:
|
||||
void renderInteger (std::vector <std::string>&, int, Color&, int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue