Thomas Lauf
920e3b4019
Add field reference_hour
, extract determination of color for hour label
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-11 23:13:41 +02:00
Thomas Lauf
a6b9e4204c
Use fields directly instead of passing them as function parameters
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-11 22:43:27 +02:00
Thomas Lauf
0510b59460
Make cell width a field
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-11 22:23:48 +02:00
Thomas Lauf
ea9a5e341e
Make parameter 'configuration' a const reference
...
- Clang-Tidy: The parameter 'configuration' is copied for each invocation but only used as a const reference;
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-10 12:02:07 +02:00
Thomas Lauf
42cb7273cd
Inject reference datetime (= now) into chart
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-10 12:00:25 +02:00
Thomas Lauf
b4a15b3c84
Use internal fields color_today and color_holiday in getDayColor
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-09 16:23:37 +02:00
Thomas Lauf
9fcadaee1c
Reorder and group function declarations
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-09 16:23:37 +02:00
Thomas Lauf
58c392b0b9
Move color definitions into configuration
2019-04-09 16:23:37 +02:00
Thomas Lauf
4ef248b973
Extract more parameters into chart configuration
2019-04-09 16:23:37 +02:00
Thomas Lauf
e2bd076357
Extract chart configuration into separate class
2019-04-09 16:23:37 +02:00
Thomas Lauf
cf88f1585a
Use fields directly instead of via parameters to calculate indent size
2019-01-31 23:06:44 +01:00
Thomas Lauf
c7b7b483ba
Move configuration for label to contructor
2019-01-31 23:06:44 +01:00
Thomas Lauf
0523262115
Reduce interface of Chart to function 'render'
2019-01-31 23:06:44 +01:00
Thomas Lauf
49f25ba7d7
Make functions of Chart member functions
2019-01-31 23:06:44 +01:00
Thomas Lauf
c562f3fc81
Make Chart::render return a string instead of writing to std::cout
2019-01-31 23:06:44 +01:00
Thomas Lauf
365ae27e49
Extract chart rendering into own class
2019-01-31 23:06:44 +01:00