Commit Graph

79 Commits

Author SHA1 Message Date
Paul Beckingham
8a43f4902d libhsared: migrating from local to libshared 2018-05-13 20:26:34 -04:00
Paul Beckingham
db7ebf9029 Column: Made ::validate const 2016-02-01 23:56:39 -05:00
Paul Beckingham
7ae5e4657d Column: Only fail when an invalid UDA type is found
- Previously it was failing for a missing type, so that if a UDA was not
  completely defined, there was an unexpected error. This is because the
  setting uda.foo.label was enough to make Column extract 'foo', but then
  fail to extract uda.foo.type.
2016-02-01 18:43:47 -05:00
Paul Beckingham
309ee57783 Column: Only store UDA column objects that instantiate 2016-02-01 18:43:10 -05:00
Paul Beckingham
11b7d2edbf Column: Uses const loop iterators 2016-02-01 18:42:25 -05:00
Paul Beckingham
4f7805d005 Column: Uses non-auto-vivifying Config::has 2016-02-01 18:41:36 -05:00
Paul Beckingham
6f4f468d0d ColUDA: Split ColUDA into ColUDA{String,Numeric,Date,Duration} to make use of ColType*::modify 2016-02-01 01:10:11 -05:00
Paul Beckingham
c167fa665e Column: Reduced ::modify to a minimal implementation 2016-02-01 00:33:22 -05:00
Paul Beckingham
5d566ddcbd Column: Added base ::modify method 2016-01-31 16:29:23 -05:00
Paul Beckingham
08233c438a Revert "Column: Removed obsolete method"
This reverts commit 07027abf99.
2016-01-10 00:07:31 -05:00
Paul Beckingham
07027abf99 Column: Removed obsolete method 2016-01-09 22:41:42 -05:00
Paul Beckingham
641d232dea Copyright: Updated to 2016 2015-12-31 15:06:43 -05:00
Paul Beckingham
f64cbe1e81 Column: A std::map was being used as a std::set 2015-11-02 08:13:32 -05:00
Paul Beckingham
78b8fc5dc7 Column: Phasing out text.cpp/nontrivial() 2015-11-01 16:48:34 -05:00
Paul Beckingham
04c3e9e537 Column: Implemented ::renderStringLeft, ::renderStringRight 2015-10-31 15:42:32 -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
6baff92b5a Column: Removed ::can_modify, which is moot 2015-10-31 11:14:23 -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
575caffe13 Column: Removed unnecessary base class virtuals 2015-07-18 19:04:55 -04:00
Paul Beckingham
bf0b074f45 Column: Dead code removal 2015-07-17 20:59:52 -04:00
Paul Beckingham
e8d04bdce6 C++11: N1984 auto 2015-05-24 13:36:26 -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
b7ad091d00 Updated copyright to 2015 2015-01-01 00:00:41 -05:00
Paul Beckingham
25abf04fdf TW-1318
- TW-1318 creating a UDA in the wrong sequence will cripple taskwarrior (thanks
          to Onion).
2014-05-09 22:57:40 -04:00
Paul Beckingham
8d10d81198 Columns
- Removed ColUDA::is_uda override, because it was wrong.  Now in the base class
  a member variable is referenced.
2014-04-16 00:06:29 -04:00
Paul Beckingham
523dce8f32 Code Cleanup
- Standardized headers.
2014-02-01 14:33:37 -05:00
Paul Beckingham
8ed92ca498 Copyright
- Bumped copyright to 2014, ready for release.
2014-01-01 13:32:22 -05:00
Thomas
f39120dd73 Integrated Priority column modification to the ColPriority object, from Task core. 2013-06-14 22:44:49 -04:00
Paul Beckingham
d03c4cda8a Build Error
- Many files were missing an explicit cmake.h include.  Some were not including
  it at all.  Now it's used almost everywhere.

(cherry picked from commit 82ae86979c497e6d1d0c6b2b5a55aa379ec82c98)
2013-06-02 13:57:36 -04:00
Paul Beckingham
7b89bc92e1 Performance
- It it not necessary to make a copy of all configuration variable names, if the
  Config::const_iterator is sufficient.

(cherry picked from commit 5708cb90780f1f6c8f58f5b549796c4af612b1ab)
2013-06-02 13:56:00 -04:00
Paul Beckingham
773b55d374 Code Cleanup
- Removed L10N define.  It served its purpose.
2013-04-07 23:50:51 -04:00
Paul Beckingham
1dccd29643 Copyright 2013
- Updated copyright notices.
2013-03-04 17:47:12 -05:00
Paul Beckingham
7fc7093f68 Bug #1183
- Fixed bug #1183, correcting error message typos (thanks to Jakub Wilk).
2013-02-26 16:34:59 -05:00
Scott Kostyshak
19cc9177b9 Code Cleanup
- 'measure' now accepts unsigned ints for 'minimum' and 'maximum' args.
2013-01-09 17:37:49 -05:00
Paul Beckingham
bb167b2275 Feature
- New 'modified' attribute, which contains the most recent modification date,
  if a modification has occurred.
2012-09-27 00:56:41 -04:00
Scott Kostyshak
e89aa6cdbc Feature #1069
- Throw a custom error if uda.<uda-name>.type is not set
  but, for example, uda.<uda-name>.label is set.
2012-08-15 21:37:01 -04:00
Paul Beckingham
d89d51e7e1 Deprecation
- Removed deprecated 'fg:' and 'bg:' attributes, which involves code,
  documentation and tests.
- Cleaned out NEWS file.
- Cleaned out config import synonyms, which should have been deleted a while
  ago.
- Removed unused localized strings, but left the 'deprecated' one behind,
  because it will be needed.
2012-07-25 22:44:25 -04:00
Paul Beckingham
5fcc33f1f8 UDAs
- UDA definitions that have the same name as a core attribute are not
  permitted.
2012-07-05 00:11:54 -04:00
Paul Beckingham
7f1d8c3682 UDAs - User Defined Attributes
- Added support for named allowable values.
2012-07-02 22:22:19 -04:00
Paul Beckingham
98f215b1b5 Feature: scheduled date
- Supports 'scheduled' date for tasks, which represent the earliest opportunity
  to work on a task.
- Added unit tests for urgency.
- Implemented color rule.
- Added scheduled to 'info' report.
- Updated assorted documentation.
- Removed comments in default rc because they are never seen.
- Added (broken) 'ready' report, which is like 'next' but only for ready tasks.
2012-05-13 17:19:22 -04:00
Paul Beckingham
96fe3f42ba Minor Refactoring
- Added support for more type-specific checks of attribute values.
- Added support for more type-specific attribute rendering.
- Improved generalized methods for checking columns in a report.
- Added unit tests.
- Minor code cleanup.
- Added secret hidden feature for internal testing.
2012-02-05 20:56:46 -05:00
Paul Beckingham
6580095002 Copyright
- Year change.
2012-01-02 23:32:10 -05:00
Paul Beckingham
2e2521a4cf Bug #892
- Possible fix for bug #892, which I cannot replicate anyway.  This fix
  involves testing my suspicion that std::map autovivifies via
  std::map::operator[], which is not nice.  Will ask Dmitriy to confirm.
2011-12-31 11:00:30 -05:00
Federico Hernandez
198cf16837 License
- moving from GPL to MIT license
  src/columns directory
2011-10-08 01:00:51 +02:00
Paul Beckingham
1c98544380 Columns - 'fg' and 'bg'
- Added columns 'fg' and 'bg', despite their being deprecated.  Can't
  remove capabilities without appropriate forewarning.
2011-08-27 11:56:03 -04:00