Commit graph

1666 commits

Author SHA1 Message Date
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
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
f5bbe5e1bc Let command join merge tags of given intervals 2019-01-20 23:25:54 +01:00
Thomas Lauf
2026296bf5 Update AUTHORS, ChangeLog
- Fix copyright dates
2018-12-06 21:08:30 +01:00
Thomas Lauf
9598f01fcf Remove accidentially added files from repository 2018-12-06 13:36:17 +01:00
Shaun Ruffell
ceca4c817e #131: Introduce 'modify' to adjust historical records to fixed date/time.
This change introduces a new command that, like lengthen, move, resize, and
shorten, is intended to move and/or resize a record, but instead of taking an
interval, will take an absolute date/time.

This command is useful because it removes the need for the user to calculate
the time intervals to shorten / lengthen a record by. For example, if the user
accidentally forgot to stop tracking an interval before starting a new one,
but new they stopped working at a specific time, it is easy to simply modify
the end time of the interval that they had forgotten to stop.
2018-11-30 22:27:08 +01:00
Shaun Ruffell
0a766bb86f Make Range destructor virtual.
This quiets the following compiler warning:

   warning: destructor called on non-final 'Interval' that has virtual functions but non-virtual destructor
2018-11-30 22:27:08 +01:00
Thomas Lauf
c598f2bd66 Add lower bounds check for DOM tag reference
- Closes #189
2018-11-25 12:24:30 +01:00
Thomas Lauf
067a475614 libshared: Updated to 230c63bd385b2a5a6ee5eb431df54b0c5c229b4d
- Closes #139
2018-11-04 19:25:03 +01:00
Thomas Lauf
72cfe7b4d8 Allow for closed intervals with start date in the future
- open intervals still have to start before now (move check to CmdStart)
- Closes #62
- Closes #142
2018-10-19 14:07:19 +02:00
Thomas Lauf
72acde371e Quote annotation in serialization to prevent splitting by lexer
Closes #183
2018-10-15 16:02:05 +02:00
Thomas Lauf
3678c2cdc3 Add hint :annotations to display annotation column in summary (default: hidden) 2018-10-10 22:10:01 +02:00
Thomas Lauf
a35b9d6660 Add annotation column to summary 2018-10-10 21:38:57 +02:00
Thomas Lauf
fc1761e700 Fix behaviour when 'timew annotate' is called without annotation string 2018-10-10 20:42:01 +02:00
Thomas Lauf
63bb079f5e Update CmdHelp with help about 'timew annotate' 2018-10-10 15:50:11 +02:00
Thomas Lauf
58e7cec118 Added first version of command 'annotate'
Closes #68
Closes #77
2018-10-09 17:00:36 +02:00
Thomas Lauf
0077768843 Add annotations to intervals 2018-10-08 21:42:25 +02:00
Thomas Lauf
59f44e7ff2 Small refactoring
- use const and reference in fromJson
- reformat code
2018-10-08 21:42:25 +02:00
Thomas Lauf
043fea04e9 Fix case when JSON does not contain a start date 2018-10-08 21:42:25 +02:00
Thomas Lauf
af8cd7eb40 Refactor setRange 2018-10-08 21:42:25 +02:00
Thomas Lauf
1a24c49507 Extract creation of intervals into IntervalFactory 2018-10-08 21:42:25 +02:00
Thomas Lauf
64fd98a2bd Add help and man page for command 'undo' 2018-09-27 22:02:15 +02:00