Commit graph

2670 commits

Author SHA1 Message Date
Thomas Lauf
4c19a055f4 Rename file
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 17:01:53 +01:00
Thomas Lauf
8022d88034 Remove trailing whitespace
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 17:00:50 +01:00
Thomas Lauf
ff6e9a4776 Add SEE ALSO section
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 17:00:31 +01:00
Thomas Lauf
ebe6bb6ce7 Rename file
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 16:56:32 +01:00
Thomas Lauf
9638672adc Add sections NAME, SYNOPSIS, and DESCRIPTION
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 16:54:13 +01:00
Thomas Lauf
857419d502 Add "see also" section
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 16:43:56 +01:00
Thomas Lauf
789b4b99fd Add missing quotes
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 16:20:10 +01:00
Thomas Lauf
574922708e Rename section "SEE ALSO" to "FURTHER DOCUMENTATION"
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 16:19:25 +01:00
Thomas Lauf
e78ebb5c84 Extract documentation about intervals into separate man page
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 14:12:52 +01:00
Thomas Lauf
27cf2e0ef2 Extract documentation about dates into separate man page
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 14:08:53 +01:00
Thomas Lauf
94ac7bd58a Extract documentation aboug hints into separate man page
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 14:07:03 +01:00
Thomas Lauf
eeb4645563 Extract documentation about durations into separate man page
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 14:05:57 +01:00
Thomas Lauf
f12356f35c Extract documentation about DOM into separate man page
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 14:05:07 +01:00
Thomas Lauf
7538cbf2f1 Extract documentation about configuration file into separate man page
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 14:04:03 +01:00
Thomas Lauf
bbf0e059ce Update ChangeLog
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 10:26:28 +01:00
Thomas Lauf
bdb28fa744 Fix tests
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 10:16:12 +01:00
Thomas Lauf
85e2ec741f Remove line breaks
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 10:09:41 +01:00
Thomas Lauf
4c71aa0ac7 Fix padding
Closes #11

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 10:09:04 +01:00
Thomas Lauf
a01c2bf19e Extract chart rendering into its own class (fixup) 2019-02-01 08:19:30 +01:00
Thomas Lauf
22902fe9a1 Make Chart::render return a string instead of writing to std::cout (fixup) 2019-01-31 23:16:48 +01:00
Thomas Lauf
8e649a9456 Extract calculation of total_width from day-loop 2019-01-31 23:06:44 +01: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
Thomas Lauf
cc0136a73a Use padding directly instead of handing over padding_size 2019-01-24 22:59:53 +01:00
Thomas Lauf
82e22380a9 Extract render method 2019-01-24 22:33:10 +01:00
Thomas Lauf
3feb1b5c5a Replace string axis_type with boolean with_internal_axis 2019-01-22 23:29:41 +01:00
Thomas Lauf
5c320e78b4 Extract rules from getIndentSize 2019-01-22 23:28:31 +01:00
Thomas Lauf
6cd1d7c804 Extract rules from renderInterval
- Simplify interval coloring (extract rules from helper::intervalColor)
- Add a default color for intervals without tags
2019-01-21 14:18:16 +01:00
Thomas Lauf
c5f8583355 Separate filtering and rendering of holidays 2019-01-21 14:18:16 +01:00
Thomas Lauf
ccb41e6501 Extract 'now' from getDayColor
- Use early returns
2019-01-21 14:18:16 +01:00
Thomas Lauf
c30f4b1e66 Extract color from renderDay/renderWeekday 2019-01-21 14:18:16 +01:00
Thomas Lauf
34d022d374 Add some curly braces 2019-01-21 14:18:16 +01:00
Thomas Lauf
c4f6213f49 Extract rules from renderExclusionBlocks 2019-01-21 14:18:16 +01:00
Thomas Lauf
16356a3270 Partially extract rules from renderInterval 2019-01-21 14:18:16 +01:00
Thomas Lauf
abe7f5f655 Extract rules from renderDay and renderWeekday 2019-01-21 14:18:16 +01:00
Thomas Lauf
b075745d6b Rename variable cell to minutes_per_char 2019-01-21 14:18:16 +01:00
Thomas Lauf
5a5d1f8b26 Extract rules from dayIsHoliday 2019-01-21 14:18:16 +01:00
Thomas Lauf
3bd1d70210 Remove const definition from function declaration 2019-01-21 14:18:16 +01:00
Thomas Lauf
77c022e8cf Extract indent from renderAxis 2019-01-21 14:18:16 +01:00
Thomas Lauf
56b18954df Make renderAxis return string instead of writing to std::out 2019-01-21 14:18:16 +01:00
Thomas Lauf
3d473e0447 Use variable cell_size 2019-01-21 14:18:16 +01:00
Thomas Lauf
654a209cb2 Combine color definitions 2019-01-21 14:18:16 +01:00
Thomas Lauf
fdecf9b6b1 Rearrange constant values 2019-01-21 14:18:16 +01:00
Thomas Lauf
4c095c60c6 Extract rules from determineHourRange 2019-01-21 14:18:16 +01:00
Thomas Lauf
f7b342cd50 Refactor renderExclusionBlocks
- rename variable cell to minutes_per_char
- introduce local variable cell_width
2019-01-21 14:18:16 +01:00
Thomas Lauf
211eaf3f94 Extract rules from renderAxis 2019-01-21 14:18:16 +01:00