r14903 - gnucash/trunk - Add the ability to override the default sort (#150799).
Derek Atkins
warlord at cvs.gnucash.org
Wed Sep 27 09:39:53 EDT 2006
Author: warlord
Date: 2006-09-27 09:39:32 -0400 (Wed, 27 Sep 2006)
New Revision: 14903
Trac: http://svn.gnucash.org/trac/changeset/14903
Modified:
gnucash/trunk/
gnucash/trunk/ChangeLog
gnucash/trunk/lib/libqof/qof/qofclass.h
gnucash/trunk/lib/libqof/qof/qofquery.c
gnucash/trunk/lib/libqof/qof/qofquerycore-p.h
gnucash/trunk/lib/libqof/qof/qofquerycore.c
gnucash/trunk/lib/libqof/qof/qofquerycore.h
gnucash/trunk/src/engine/Transaction.c
Log:
Add the ability to override the default sort (#150799).
Override the Transaction Number to sort numerically.
* lib/libqof/qof/qofclass.h:
* lib/libqof/qof/qofquery.c:
* lib/libqof/qof/qofquerycore-p.h:
* lib/libqof/qof/qofquerycore.[ch]:
- Publish the QofCompareFunc prototype.
- Add a new QofParam param_compfcn parameter
- Change QofQuery to use the param_compfcn over the
default type compare function.
- create (and publish) a qof API to compare strings
as numbers: qof_string_number_compare_func()
* src/engine/Transaction.c:
Assign TRANS_NUM to use qof_string_numer_compare_func()
More information about the gnucash-patches
mailing list