Commit graph

168 commits

Author SHA1 Message Date
Paul Beckingham
04c3e9e537 Column: Implemented ::renderStringLeft, ::renderStringRight 2015-10-31 15:42:32 -04:00
Paul Beckingham
43e4f8a485 ColUrgency: Now uses Column::render{Integer,Double} 2015-10-31 15:24:03 -04:00
Paul Beckingham
4c55b8c9af ColID: Uses Column::renderInteger 2015-10-31 15:23:04 -04:00
Paul Beckingham
4837e9aa9d ColTypeNumeric: Delegated type to base class 2015-10-31 15:22:25 -04:00
Paul Beckingham
9ea69ea802 Column: Explained justification 2015-10-31 15:20:35 -04:00
Paul Beckingham
4d42584ca0 Column: Implemented ::renderDouble 2015-10-31 15:19:19 -04:00
Paul Beckingham
b8ae54275e Column: Implemented ::renderInteger 2015-10-31 15:16:51 -04:00
Paul Beckingham
dc72a22887 Col*: Moving code into ColTypeString base 2015-10-31 14:35:06 -04:00
Paul Beckingham
de9c0b97f6 Col*: Assigned a type-specific base class to each column object
- Base class currently does nothing.
2015-10-31 12:12:30 -04:00
Paul Beckingham
3475995f39 ColType*: Added Duration, String and Numeric type base classes 2015-10-31 11:54:53 -04:00
Paul Beckingham
2a6ce539d0 ColTypeDate: Renamed 'ColDate' to 'ColTypeDate'
- Renamed files ColDate* to ColTypeDate*.
- Renamed objects ColumnDate* to ColumnTypeDate*.
- This is mainly to make way for ColType{Duration,String,Numeric}, while leaving
  ColString untouched. ColString is used only for ViewText columns, but may soon
  be replaced by ColTypeString. Unknown.
2015-10-31 11:35:24 -04:00
Paul Beckingham
6baff92b5a Column: Removed ::can_modify, which is moot 2015-10-31 11:14:23 -04:00
Paul Beckingham
a82558064b Cleanup: Prep for '-Wextra' 2015-10-16 16:27:05 -04:00
Paul Beckingham
4e3eb1f420 ColDue, ColScheduled: Migrated from Date to ISO8601d 2015-10-03 19:18:39 -04:00
Paul Beckingham
9a5def4c95 ColDate: Migrated from Date to ISO8601d 2015-10-03 16:24:26 -04:00
Paul Beckingham
244a80f799 ISO8601: Migrated more Date instances to ISO8601d 2015-09-26 23:20:08 -04:00
Paul Beckingham
68c6afbdd4 ISO8601d: Conversion from Date to ISO8601d 2015-09-26 23:08:29 -04:00
Paul Beckingham
f2ac258bf1 Column: Missing include 2015-09-10 00:03:03 -04:00
Paul Beckingham
93e6ef5fb9 TW-1678: segfault in ~ViewTask()
- Column::setStyle now validates column styles.
- Thanks to Daniel Shahaf.
2015-09-09 23:41:37 -04:00
Paul Beckingham
995de68c90 ISO8601: Converted various calls of ::format to ::formatVague 2015-08-12 21:35:09 -04:00
Paul Beckingham
14b36a5dc6 ColScheduled: Duration replaced by ISO8601p 2015-08-12 11:36:38 -04:00
Paul Beckingham
cc120689ee ColRecur: Duration replaced by ISO8601p 2015-08-12 11:36:24 -04:00
Paul Beckingham
195a821781 ColDue: Duration replaced by ISO8601p 2015-08-12 11:36:08 -04:00
Paul Beckingham
25da9ee5cd ColDate: Duration replaced by ISO8601p 2015-08-12 11:35:34 -04:00
Paul Beckingham
3563aa8414 ColUDA: Duration replaced by ISO8601p 2015-08-12 11:29:33 -04:00
Paul Beckingham
575caffe13 Column: Removed unnecessary base class virtuals 2015-07-18 19:04:55 -04:00
Paul Beckingham
b1b1d97866 Bug: ID column width calculations were wrong
- Fixed width calculations, which were wrong for tasks with ID numbers greater
  than 9999.
- Added simple (fast) heuristic for ID widths for ID number up to 100000.  64Kb
  RAM ought to be enough for anybody.
2015-07-18 13:08:37 -04:00
Paul Beckingham
d753bb747b Columns: Removed unnecessary virtual overrides 2015-07-18 00:43:51 -04:00
Paul Beckingham
e39f610a68 ColDate: Removed Col* virtual overrides that delegate back to the base 2015-07-17 23:23:43 -04:00
Paul Beckingham
bf0b074f45 Column: Dead code removal 2015-07-17 20:59:52 -04:00
Paul Beckingham
9ea0bc6f07 Bug: Fixed missing 'due' examples from 'columns' report 2015-07-17 16:37:12 -04:00
Paul Beckingham
e930bb0ba9 Columns: Removed _fixed_width for indicator columns
- Column indicator formats (depends.indicator, for example), should not set the
  ::_fixed_width flag because then the column does not have the opportunity to
  be suppressed via rc.print.empty.colums=1.
2015-07-11 22:09:15 -04:00
Paul Beckingham
8fd1bb630d Code: Formatting cleanup 2015-05-25 09:21:58 -04:00
Paul Beckingham
e8d04bdce6 C++11: N1984 auto 2015-05-24 13:36:26 -04:00
Paul Beckingham
7bbc794d3a C++11: N2672 Initializer lists
- Modified code to use the more compact and readable initializer lists.
2015-05-24 13:03:02 -04:00
Paul Beckingham
bd3d58484a C++11: Cleaned up column code wiht range-based for 2015-05-11 17:33:20 -04:00
Paul Beckingham
61e1401073 Performance: Only measures the first fixed-width column row 2015-04-05 16:05:43 -04:00
Paul Beckingham
5af4579741 Priority: Converted 'priority' attribute to a UDA
- 'priority.long' and 'priority.short' formats now map to 'priority', and
  generate a warning.
- Man page updated.
- Converted priority urgency coefficients to UDA equivalents.
- Converted priority color rules to UDA color rules.
- Removed 'default.priority' support.
- Removed special sort handling for 'priority' field in Variant, added special
  UDA sort handling.
- Removed ColPriority.{h,cpp} source files.
- Removed asorted newly-unused variables.
- The 'show' command now highlights unused priority settings.
- Removed unused localized priority-relateѕ strings.
- Added legacy mapping for columns and sort columns for 'priority.long' and
  'priority.short' columns in report definitions.
- Removed priority color rules implementation.
- Removed obsolete tests for #860, #990, custom.priority_long.t.
- Updated various tests that set priority default, colors.
2015-04-04 19:30:33 -04:00
Paul Beckingham
f1ef53bea0 Column: Return const refs rather than string copies 2015-04-04 10:58:55 -04:00
Paul Beckingham
f2998aba74 TW-1547
- TW-1547 Recur column is always shown even if no recurring task is displayed
          (thanks to Renato Alves).
2015-02-18 20:53:56 -08:00
Paul Beckingham
d2b2631db7 TW-1546
- TW-1546 column type due.remaining breaks colors on due tasks (thanks to Renato
          Alves).
2015-02-18 20:18:31 -08:00
Paul Beckingham
693fe9b8fd ColPriority
- Made the acceptance of lower-case priorities explicitly either lower or upper
  case, but converted to upper case. This eliminates the dependency on text.cpp
  upperCase(), which is not UTF8-safe.
2015-02-17 10:40:51 -05:00
Paul Beckingham
61291e4d1e C++
- ColumnDate::~ColumnDate should be virtual.
2015-01-31 13:23:45 -05:00
Paul Beckingham
b7ad091d00 Updated copyright to 2015 2015-01-01 00:00:41 -05:00
Paul Beckingham
3f8095166e TW-161
- TW-161 UDA indicator (thanks to Jim B).
2014-12-27 15:30:41 -05:00
Paul Beckingham
e924913e11 TW-1417
- TW-1417 Misaligned fields in report for "remaining" date (thanks to Jeremy
          John Reeder).
2014-12-24 10:00:57 -05:00
Paul Beckingham
8ff32b767f TW-1444
- TW-1444 Tag ordering is preserved, but should be sorted in reports.
2014-11-08 16:52:19 -05:00
Paul Beckingham
861cc83e6d TW-241
- TW-241 new column format; recur.short.
- All duration columns now default to compact ISO duration format.
2014-09-06 15:38:25 -04:00
atomicules
87f9d548df TW-101 - New description column format: Truncated WITH annotation count
Adds a "truncated with annotation count" column style for the
description field and corresponding unit test.
2014-08-23 12:05:00 -04:00
Paul Beckingham
5c6c14e21b TW-1381
- TW-1381 blocking report exits with "Unknown error" and exit code 3.
2014-08-16 16:14:28 -04:00