mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-04 01:27:20 +02:00
Enhancement
- Began detailed implementation of commands and columns objects.
This commit is contained in:
parent
1c23b28514
commit
120562a7e9
9 changed files with 148 additions and 21 deletions
|
@ -28,12 +28,15 @@
|
|||
#define INCLUDED_COLUMN
|
||||
|
||||
#include <string>
|
||||
#include <Task.h>
|
||||
|
||||
class Column
|
||||
{
|
||||
public:
|
||||
/*
|
||||
enum just {right = 0, left, center};
|
||||
enum sizing {minimal = 0, fixed, proportional, maximal};
|
||||
*/
|
||||
|
||||
static Column* factory (const std::string&);
|
||||
|
||||
|
@ -43,17 +46,19 @@ public:
|
|||
bool operator== (const Column&) const; // TODO Is this necessary?
|
||||
~Column ();
|
||||
|
||||
void setName (const std::string&);
|
||||
std::string render (Task*, int, int, const std::string style = "default");
|
||||
std::string type () const;
|
||||
virtual void setName (const std::string&);
|
||||
virtual std::string render (Task*, int, int, const std::string style = "default") = 0;
|
||||
virtual std::string type () const = 0;
|
||||
|
||||
private:
|
||||
protected:
|
||||
std::string _name;
|
||||
/*
|
||||
int _minimum;
|
||||
int _maximum;
|
||||
bool _wrap;
|
||||
just _just;
|
||||
sizing _sizing;
|
||||
*/
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue