r20057 - gnucash/trunk/src - Bug #638543: Add a GUI for the counter format and current value.

Christian Stimming cstim at code.gnucash.org
Mon Jan 10 16:39:40 EST 2011


Author: cstim
Date: 2011-01-10 16:39:40 -0500 (Mon, 10 Jan 2011)
New Revision: 20057
Trac: http://svn.gnucash.org/trac/changeset/20057

Modified:
   gnucash/trunk/src/app-utils/app-utils.scm
   gnucash/trunk/src/app-utils/options.scm
   gnucash/trunk/src/business/business-utils/business-options.scm
   gnucash/trunk/src/business/business-utils/business-prefs.scm
Log:
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
File->properties window.

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 mailing list