summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Renamed acconf.h to config.h, for included gettextJohn Wiegley2009-02-221-1/+1
|
* Correctly accept "false" as a keywordJohn Wiegley2009-02-221-2/+2
|
* Added --exchange (-x) optionJohn Wiegley2009-02-2213-71/+115
| | | | | | | This is like -V, except it lets you specify the goal commodity to report in terms of, for example: reg -x CAD
* Fixed the way values are justified for printingJohn Wiegley2009-02-226-42/+54
|
* Allow balances to be rounded and unroundedJohn Wiegley2009-02-221-0/+4
|
* Changed --colors to --color, to match GitJohn Wiegley2009-02-222-13/+13
|
* Restored the --invert optionJohn Wiegley2009-02-224-36/+4
|
* Fix for systems that don't build with gettextJohn Wiegley2009-02-222-1/+2
|
* Removed unused --totals optionJohn Wiegley2009-02-222-3/+0
| | | | This option was for outputting <total> elements in 2.x's XML output.
* Added a new --colors option, for terminal funJohn Wiegley2009-02-212-19/+54
| | | | | | | | | The following colors are applied in the balance and register reports: GREEN To a date, if it occurs in the future BOLD If a payee name relates to an uncleared entry BLUE For account names RED For negative values
* Allow balance values to be compared < or > 0John Wiegley2009-02-211-0/+42
|
* Fixed a bug with interactive_t's arg validationJohn Wiegley2009-02-211-1/+1
|
* Fixed an accumulator bug that was mangling errorsJohn Wiegley2009-02-211-1/+5
|
* Added support for using GNU gettextJohn Wiegley2009-02-212-0/+9
|
* Use a "format accumulator" for error stringsJohn Wiegley2009-02-214-4/+185
| | | | | | | | This makes it possible to internationalize strings while still using I/O streams. For example: std::cout << ACCUM(_("Hello to %1 and %2!") << "me" << "you") << std::endl;
* Added a new --raw option, for use with printJohn Wiegley2009-02-215-32/+62
|
* Removed an unused class: format_entriesJohn Wiegley2009-02-214-60/+4
|
* Use more general scrub valexpr function in formatsJohn Wiegley2009-02-212-42/+46
|
* Create a new interactive_t helper classJohn Wiegley2009-02-2110-152/+365
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The purpose of this class is much like Emacs' (interactive) form: it allows a value expression function to declare exactly how many arguments, and of what type, it intends to receive. It then offers type-safe access to theese arguments in a consistent manner. An example value expression function definition in C++: value_t fn_foo(call_scope_t& scope) { // We expect a string, an integer, and an optional date interactive_t args(scope, "sl&d"); std::cout << "String = " << args.get<string>(0) << "Integer = " << args.get<long>(1) << std::endl; if (args.has(2)) // was a date provided? std::cout << "Date = " << args.get<date_t>(2) << std::endl; return NULL_VALUE; } There is also an in_context_t<T> template, which finds the context type T in the current scope hierarchy. The in_context_t then also acts as a smart pointer to reference this context object, in addition to serving the same duty as interactive_t. This combination of intent is solely for the sake of brevity. value_t fn_bar(call_scope_t& scope) { in_context_t<account_t> env(scope, "sl&d"); std::cout << "Account name = " << env->fullname() << "String arg = " << env.get<string>(0) << std::endl; return NULL_VALUE; } As you can see here, 'env' acts as a smart pointer to the required context, and an object to extract the typed arguments.
* The --help (-h, -H) options now visit the man pageJohn Wiegley2009-02-216-271/+36
|
* Made --leeway a synonym for --price-expJohn Wiegley2009-02-211-0/+1
|
* Fixed another memory bug in by_payee_xactsJohn Wiegley2009-02-213-20/+21
|
* Fixed a memory leak in value_t::storage_tJohn Wiegley2009-02-212-14/+18
|
* Fixed the spelling of some option exceptionsJohn Wiegley2009-02-211-4/+4
|
* Added --start-of-week option, used with --weeklyJohn Wiegley2009-02-213-0/+4
| | | | | For example, --start-of-week=monday can be used to report weeks that begin on Mondays.
* Handle reporting widths that are too smallJohn Wiegley2009-02-212-2/+3
|
* Added a new --exact optionJohn Wiegley2009-02-215-35/+57
| | | | | | | | | The purpose of this option is that usually when you do a --monthly periodic report, you see dates ranges from the first day of each month, to the last day. With --exact, the first day of each range will be the date of the first transaction found in that range, and likewise with the end of the range. Essentially it "contracts" the reported period dates to reflect the exact begin and end dates.
* Greatly improved the way "weeks" are iteratedJohn Wiegley2009-02-214-34/+61
|
* Restored the --deviation optionJohn Wiegley2009-02-211-1/+3
|
* Justify integers correctly when printingJohn Wiegley2009-02-211-6/+8
|
* Don't allow '-' as part of an identifier tokenJohn Wiegley2009-02-211-1/+1
|
* Restored --forecast, now also --forecast-whileJohn Wiegley2009-02-215-13/+19
|
* Restored the --base optionJohn Wiegley2009-02-201-1/+5
|
* Restored the --budget optionJohn Wiegley2009-02-206-14/+14
|
* Added more option baseline tests, enabled --dowJohn Wiegley2009-02-202-1/+4
|
* Enabled --current optionJohn Wiegley2009-02-203-1/+12
|
* Strip amounts displayed in the csv reportJohn Wiegley2009-02-201-1/+1
|
* Allow date and datetime values to be formatted into stringsJohn Wiegley2009-02-201-0/+19
|
* Removed unused --cache optionJohn Wiegley2009-02-202-3/+2
|
* Restored the --basis optionJohn Wiegley2009-02-202-7/+34
|
* Added --no-total optionJohn Wiegley2009-02-204-12/+12
| | | | This simply omits the final total in the balance report, nothing more.
* Don't use auto-widths for widths explicitly givenJohn Wiegley2009-02-202-31/+60
|
* Corrected a column-wise formatting issueJohn Wiegley2009-02-201-2/+2
|
* When clocking out, call total_seconds()John Wiegley2009-02-201-1/+1
|
* Rewrote the equity command, which is working againJohn Wiegley2009-02-208-140/+110
| | | | | | The old implementation used an account formatter, and was very specialized. The new is done as a transaction filter, and works along with everything else, eliminating bugs special to the equity report.
* Added a --strict session optionJohn Wiegley2009-02-197-14/+54
| | | | | | | When enabled, if any accounts or commodities are seen in an uncleared transaction, which were not seen previously in a cleared or pending transaction or a textual directive dealing with accounts or commodities, a warning is generated about the unknown item.
* Simplify account total values before comparisonJohn Wiegley2009-02-193-5/+16
| | | | | | This way, if two account values are BALANCE types containing only a single AMOUNT, then it will do the sorting comparison of the amounts -- since otherwise balances are ignored for the purposes of sorting.
* Fixed another sort issueJohn Wiegley2009-02-191-1/+1
|
* Added some sort-related debugging codeJohn Wiegley2009-02-191-0/+6
|
* A key fix to the ways accounts were sortedJohn Wiegley2009-02-191-9/+16
| | | | Comparing integer < amount was doing the reverse comparison.