r20057 - gnucash/trunk/src - Bug #638543: Add a GUI for the counter format and current value.
cstim at code.gnucash.org
Mon Jan 10 16:39:40 EST 2011
Date: 2011-01-10 16:39:40 -0500 (Mon, 10 Jan 2011)
New Revision: 20057
Bug #638543: Add a GUI for the counter format and current value.
Patch by Matthijs Kooijman:
This allows the user to change the format used for the various counters,
as well as see and change the current value of the counter.
This is a bit of hack right now, since the format and current counter
values are stored in the counter_formats and counters kvp slots
respectively, instead of options/<section> like the other options in the
This is implemented by adding the make-counter-option and
make-counter-format-option, which both replace the scm->kvp and kvp->scm
functions defined by make-number-range-option and make-string-option
respectively. The replaced function simply ignores the "path" parameter
and instead saves to the "counter" or "counter_formats" slot hardcoded.
More information about the gnucash-patches