r14906 - gnucash/branches/2.0 - Add the ability to override the default sort (#150799).

Derek Atkins warlord at cvs.gnucash.org
Wed Sep 27 13:08:12 EDT 2006


Author: warlord
Date: 2006-09-27 13:07:17 -0400 (Wed, 27 Sep 2006)
New Revision: 14906
Trac: http://svn.gnucash.org/trac/changeset/14906

Modified:
   gnucash/branches/2.0/
   gnucash/branches/2.0/ChangeLog
   gnucash/branches/2.0/lib/libqof/qof/qofclass.h
   gnucash/branches/2.0/lib/libqof/qof/qofquery.c
   gnucash/branches/2.0/lib/libqof/qof/qofquerycore-p.h
   gnucash/branches/2.0/lib/libqof/qof/qofquerycore.c
   gnucash/branches/2.0/lib/libqof/qof/qofquerycore.h
   gnucash/branches/2.0/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()

approved by cstim
merged from r14903 and r14904




More information about the gnucash-patches mailing list