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
Thomas Lauf
1390be6936
Add local variable cell_size
2019-01-21 14:18:16 +01:00
Thomas Lauf
0d31045361
Rename variables
2019-01-21 14:18:16 +01:00
Thomas Lauf
a9505fec3c
Move up everything concerning rules and conflate it
2019-01-21 14:18:16 +01:00
Thomas Lauf
3cc808bbb7
Simplify renderSubTotal
2019-01-21 14:18:16 +01:00
Thomas Lauf
25609c598d
Extract rules from renderSubTotal
2019-01-21 14:18:16 +01:00
Thomas Lauf
c73359ad7e
Extract rules from renderTotal
2019-01-21 14:18:16 +01:00
Thomas Lauf
879a870c43
Add function separator comment
2019-01-21 14:18:16 +01:00
Thomas Lauf
fd9f13fc9f
Partially extract rules from renderWeekday
2019-01-21 14:18:16 +01:00
Thomas Lauf
8ee689702d
Partially extract rules from renderDay
2019-01-21 14:18:16 +01:00
Thomas Lauf
12140859dc
Split renderDayName into renderWeekday and renderDay
2019-01-21 14:18:16 +01:00
Thomas Lauf
227344063e
Extract rules from renderWeek
2019-01-21 14:18:16 +01:00
Thomas Lauf
7f7f2cb84a
Extract rules from renderMonth
2019-01-21 14:18:16 +01:00
Thomas Lauf
1d3a19fd3f
Split renderMonthAndWeek into renderMonth and renderWeek
2019-01-21 14:18:16 +01:00
Thomas Lauf
2f8638ac8b
Refactor renderMonth
...
- rename to renderMonthAndWeek
2019-01-21 14:18:16 +01:00
Thomas Lauf
c4a8542287
Add braces, reformat code
2019-01-21 14:18:16 +01:00
Thomas Lauf
9711c10639
Move everything concerning rules up
2019-01-21 14:18:16 +01:00
Thomas Lauf
9294fae712
Extract with_totals from renderSubTotals
2019-01-21 14:18:16 +01:00
Thomas Lauf
551605a8ba
Use getIndentSize(...) in renderSubTotal
2019-01-21 14:18:16 +01:00
Thomas Lauf
4484d507e3
Extract holidays from renderHolidays
2019-01-21 14:18:16 +01:00
Thomas Lauf
63d56a84d0
Extract type from renderHolidays
2019-01-21 14:18:16 +01:00
Thomas Lauf
61aebb3b4e
Extract rules from renderSummary function
2019-01-21 14:18:16 +01:00
Thomas Lauf
ed49eb7650
Introduce variable 'axis_type'
2019-01-21 14:18:16 +01:00
Thomas Lauf
2f3c7990e0
Use default value of Rules::getInteger
2019-01-21 14:18:16 +01:00
Thomas Lauf
dff02d3d86
Let determineHourRange return a pair of ints
...
- Defaults to (0, 23)
2019-01-21 14:18:16 +01:00
Thomas Lauf
ea324d056a
Use boolean variable instead of public field Palette::enabled
2019-01-21 14:18:16 +01:00
Thomas Lauf
37c7cc705d
Use local variable for indent string
2019-01-21 14:18:16 +01:00
Thomas Lauf
b00d097e3e
Extract function to calculate indent
2019-01-21 14:18:16 +01:00
Thomas Lauf
c0039b6ff5
Add convenience method to set range with two dates
2018-09-19 06:32:56 +02:00
Thomas Lauf
9dd106116c
Let Interval inherit from Range
...
- Remove 1 level of indirection
- Remove public field Interval::range (instead use interval directly)
2018-09-19 06:32:56 +02:00
Thomas Lauf
9e1e604108
Rename Range::overlap to Range::overlaps
2018-09-18 21:06:33 +02:00
Thomas Lauf
b1421579ab
Update ChangeLog, AUTHORS, and Copyright
2018-05-19 11:35:14 +02:00
Thomas Lauf
543848ae68
Take change of month into account when calculating interval widths
...
- Fixes #135 : Task at month end not getting displayed
2018-05-19 11:35:14 +02:00
Thomas Lauf
2c5812f7a3
Use the empty method to check for emptiness instead of comparing to an empty object
2018-05-10 20:57:22 +02:00
Simon Ruderich
2271bd9eea
Use https:// link for opensource.org
2018-03-16 23:11:08 +01:00
Thomas Lauf
95380bbe96
Optimize includes
2018-01-05 14:21:37 +01:00
Paul Beckingham
88d644d193
Copyright 2018
2017-12-31 19:37:13 -05:00
Thomas Lauf
c9a7a59679
Correct typos
2017-09-14 18:33:05 +02:00
Paul Beckingham
3000dceca5
CmdChart: Corrected use of obsolete date names
2017-03-08 08:08:43 -05:00
Paul Beckingham
addb89e13d
CmdChart: Config defaults make the rules defaults redundant
...
- Do not need both
2017-02-25 15:15:51 -05:00
Paul Beckingham
848c6e33fc
CmdChart: Default value handling
...
- Added default value ('15') for 'rules.<type>.cell'.
- Corrected EINVAL and ERANGE handling inside Rule::getInteger.
- Made the error message for the above more specific.
- Added the '> 0' constraint to the man page.
2017-02-25 13:00:20 -05:00
Thomas Lauf
58f07d0266
TI-46: Display error in visual reports (day,week,month)
...
- Fix calculation of end_mins
- Add tests
2017-02-18 23:04:44 +01:00
Thomas Lauf
c944aebacc
TI-39: Bogus command line option causes segfault
...
- Return error message for invalid values in CmdChart
- Add tests (partially moved from cli.t)
2017-02-13 20:58:37 +01:00
Paul Beckingham
1091cc2085
Copyright update
2017-01-01 12:45:32 -05:00
Jelle van der Waa
8f74cdeff3
TI-39: Bogs command line option segfaults
...
num_lines is set to zero when the conversion fails which segfaults later
when num_lines is used to create the Composite vector. Set the default
value for num_lines to 1 to resolve the issue of bad input segfaulting.
2016-11-05 11:36:06 -04:00
Paul Beckingham
082eca0679
CmdChart: Renamed 'reports.<type>.style=compact' to 'reports.<type>.axis=internal'
2016-07-17 10:42:09 -04:00
Paul Beckingham
9de59fe58e
CmdChart: Week number now always displayed for first line
2016-07-06 07:23:58 -04:00
Paul Beckingham
225494d360
CmdChart: Switched to use intervalColor
...
- This should reduce color palette rotation speed
2016-07-04 16:10:35 -04:00
Paul Beckingham
44e5dd7b84
CmdChart: Added assert for non-negative totals
2016-07-04 09:44:14 -04:00