Commit Graph

124 Commits

Author SHA1 Message Date
Linas Vepstas
88c88039dc rename the entity functions from xaccEntity to qof_entity
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8749 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-26 07:30:48 +00:00
Linas Vepstas
aaa6e14fe1 convert QueryObject to QofQueryObject
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8731 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-26 04:30:43 +00:00
Linas Vepstas
8118b2fd69 rename QueryNew to QofQuery
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8721 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-25 07:38:15 +00:00
Linas Vepstas
c30b78e183 glurg must be getting late; fix more mistakes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8708 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-25 05:41:38 +00:00
Linas Vepstas
edfa2f1151 rename gncQueryCore to QofQueryCore
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8701 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-25 05:14:10 +00:00
Linas Vepstas
50906151db rename GNCBook to QofBook
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8681 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-25 00:52:46 +00:00
David Hampton
1d98fa5497 Remove redundant routines and place a single copy in a common location.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7687 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-15 23:25:01 +00:00
Derek Atkins
a56e6be18b * created the backend-api document
* removed the old Query code (bug #94318)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7290 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-10-08 04:01:54 +00:00
Derek Atkins
8f63db0411 create xaccQueryAddGUIDMatchGL() and wrap it. This is a special function
that takes a GUID (instead of a const GUID *) and a GList (instead of
a GSList) and performs an gncQueryAddGUIDMatch().

Add Lots to the query infrastructure, so we can add Lot-based lookups
and queries.

Add SPLIT_LOT parameter and wrap it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7041 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 04:20:46 +00:00
Derek Atkins
b4e4b08957 Implement xaccQueryGetLots() which is just like xaccQueryGetTransactions()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7034 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-27 14:10:40 +00:00
Derek Atkins
0f0080c964 Integration of the new Query subsystem, to replace the old Query
infrastructure.  This also replaces the old "Find Transaction"
	dialog with the new gnome-search dialog.  Registers, Reports, SXs,
	etc. all test out fine.  Integration with SQL has been "done"
	(i.e. it compiles cleanly) but not "tested."  Lots of the old code
	is still there, but #ifdef'ed out.  That code will go away
	shortly.

	There is only one known loss-of-functionality: the query->xml-v1
	converter was not re-implemented.  The current intention is, if
	this functionality is required, to use the query->scm converter
	and then convert the scm->string and insert that into an XML
	document.

	Fix a Transaction Void bug.

	Fix a few bugs in test code.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6951 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-05 21:59:35 +00:00
Joshua Sled
7de7b944f8 2002-04-16 Joshua Sled <jsled@asynchronous.org>
* src/register/ledger-core/gnc-ledger-display.c: Some template-GL
	cleanup [debugging printf's removed].  Removed never-used
	LD_TEMPLATE type.

	* src/gnome/glade/sched-xact.glade: Removed unused start page.

	* src/gnome/dialog-sxsincelast.c: Added support for using the
	gnc-regWidget to display created transactions for review. Added
	'Cancel' support. Didn't remove enough dead code, but started to.

	* src/gnome/dialog-scheduledxaction.c: Added support for using the
	gncRegWidget in the SX editor.  Formatting changes.

	* src/register/ledger-core/gnc-regWidget.{h,c}: Added; a
	macro-widget roughly duplicating the src/gnome/window-register.c
	look-and-feel-and-behavior.

	* src/engine/SchedXaction.c: Added support for saving a "temporal
	snapshot" of a scheduled transaction. Rewrote "sequence state"
	manipulations in terms of temporal snapshots.

	* src/engine/Query.c: Add support for Querying the template
	AccountGroup.

	* src/doc/TODO-schedxactions: Updates.

	* src/engine/Makefile.am: Prepend-to instead of unconditionally
	setting GUILE_LOAD_PATH when creating iso-4217-currencies.c, for
	those of us that need to set it for whatever reason we need to do
	so.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6795 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-04-16 07:09:16 +00:00
Dave Peticolas
fae07ec3f1 fix mem leaks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6531 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-08 01:37:10 +00:00
Linas Vepstas
875a439abc cut over to multiple-book query
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6500 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-03 06:11:04 +00:00
Linas Vepstas
d4ff335f23 move Query private data structures to private file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6498 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-03 02:34:52 +00:00
Linas Vepstas
e0b61ebb58 more reorg in preparation for switch to books
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6496 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-03 01:57:04 +00:00
Linas Vepstas
68e191f02d start adding book-matching predicates
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6492 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-02 21:29:00 +00:00
Linas Vepstas
8819597b9d cosmetic renaming of PR_AMOUNT->PR_VALUE
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6486 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-02 20:20:37 +00:00
Linas Vepstas
df716532e9 purely cosmetic re-arrangement of parenthesis
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6485 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-02 19:56:02 +00:00
Linas Vepstas
fcabb48530 remove un-needed include
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6445 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-31 18:16:41 +00:00
Dave Peticolas
f8a37f7126 Remove use of xaccTransGetSplit.
Fix bug in account query optimization.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6140 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-29 11:10:20 +00:00
Linas Vepstas
8c2d2d4cf0 further backend->book simplification
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6050 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-25 08:31:26 +00:00
Derek Atkins
788d998d6b convert GNCIdType from an enum to a char*
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6035 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-25 02:20:34 +00:00
Linas Vepstas
aa232f2fcf add utilities for accounting periods, clean up backend handling
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6034 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-25 01:38:58 +00:00
Linas Vepstas
7f8b1e824e type-safety tweaks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6027 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-24 22:12:08 +00:00
Dave Peticolas
9ab5664185 Add explicit types to GUID queries.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5862 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-14 09:07:49 +00:00
Dave Peticolas
86c55a3e22 Fix query<->scm for new kvp queries.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5772 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-06 00:49:46 +00:00
Dave Peticolas
2176d53e99 Work on adding kvp queries.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5770 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-05 09:18:07 +00:00
Dave Peticolas
2efd973550 2001-10-11 Dave Peticolas <dave@krondo.com>
* src/register/register-core/table-allgui.c
	(gnc_table_traverse_update): remove assert

	* src/import-export/binary-import/druid-commodity.c: use g_assert

	* src/guile/gnucash.c.in (gnc_main): use g_assert

	* src/gnome-utils/gnc-account-tree.c: remove asserts

	* src/gnome/dialog-fincalc.c (normalize_period): remove asserts

	* src/gnome/dialog-find-transactions.c: remove asserts

	* src/gnome/dialog-scheduledxaction.c: remove asserts

	* src/gnome/reconcile-list.c: remove asserts

	* src/gnome/window-register.c: remove asserts

	* src/engine/Account.c: remove asserts

	* src/engine/Group.c: remove asserts

	* src/engine/Query.c:remove asserts

	* src/engine/TransLog.c: remove asserts

	* src/engine/Transaction.c: remove asserts

	* src/engine/gnc-engine-util.h: don't include assert.h

	* src/engine/gnc-engine.c: remove asserts

	* src/engine/gnc-numeric.c: remove asserts

	* src/engine/gnc-pricedb.c (gnc_price_unref): remove asserts

	* src/engine/messages.c: remove asserts

	* src/backend/file/test/test-xml-account.c: fix text handling

	* src/backend/file/test/test-xml-commodity.c: fix text handling

	* src/backend/file/test/test-xml-transaction.c: fix text handling

	* src/backend/file/gnc-freqspec-xml-v2.c: fix text handling

	* src/backend/file/gnc-pricedb-xml-v2.c: fix text handling

	* src/backend/file/gnc-schedxaction-xml-v2.c: fix text handling

	* src/backend/file/gnc-transaction-xml-v2.c: fix text handling

	* src/backend/file/io-gncxml-v1.c: fix text handling

	* src/backend/file/sixtp-dom-parsers.c: fix text handling

	* src/backend/file/sixtp-to-dom-parser.c (dom_chars_handler): don't
	ignore whitespace. This fixes text handling for strings like "< <"

	* src/app-utils/gnc-ui-util.c: remove asserts

	* src/app-utils/option-util.c: remove asserts


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5576 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-11 11:35:50 +00:00
Dave Peticolas
ba19fb2327 Work on moving entity tables into sessions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5482 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-09 22:27:58 +00:00
Dave Peticolas
d384066697 Work on moving entity tables into sessions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5473 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-08 22:48:37 +00:00
Dave Peticolas
b8d2150e4b Work on moving entity table into sessions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5472 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-08 07:14:58 +00:00
Dave Peticolas
2408e0f983 Work on moving entity tables into sessions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5468 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-06 08:12:55 +00:00
Robert Graham Merkel
fb1a443621 Add query support for voided transactions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5450 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-01 06:53:28 +00:00
Dave Peticolas
d7d84c58e9 Add gnucash autoconf macro. Don't include config.h in headers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5338 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-09-07 21:51:13 +00:00
James LewisMoss
80efaf5c27 *** empty log message ***
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5119 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-08-13 15:37:07 +00:00
Dave Peticolas
4cc2bfb9a9 Missed some.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5076 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-08-07 23:36:04 +00:00
Dave Peticolas
939f78a1cc 2001-08-06 Bill Gribble <grib@billgribble.com>
* Added module/plugin system (src/gnc-module/*)

	* reshuffled source code from src/engine, src/register, and some
	from src/guile, src/scm, src/gnome (see src/README.modules).
	engine, backends, register, qif importer are now "modules".

	* unfinished new QIF import/export module (the old one's still
	there and still works)

	* really too many files touched to get into it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5075 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-08-07 23:29:04 +00:00
Linas Vepstas
b4ce91d839 change function signature
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4987 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-07-25 01:07:58 +00:00
Dave Peticolas
48772fc3d7 2001-07-07 Dave Peticolas <dave@krondo.com>
* src/test/gnc-test-stuff.c (get_random_query): not so many terms

	* src/test/Makefile.am: add test-scm-query

	* src/test/.cvsignore: add test-scm-query

	* src/test/test-scm-query.c: new test -- check query<->scm
	conversion

	* src/guile/gnucash.h: new func api

	* src/guile/gnucash.c.in (gnc_gw_init): new func

	* src/guile/gnc-helpers.c: fix bugs

	* src/engine/Query.c: fix bugs


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4928 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-07-07 10:07:37 +00:00
Dave Peticolas
161082a90f 2001-07-05 Dave Peticolas <dave@krondo.com>
* src/engine/Query.c (xaccQueryEqual): new func.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4901 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-07-05 10:30:43 +00:00
Linas Vepstas
96f072b35f add more debugging statements
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4380 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-06-03 02:39:58 +00:00
Linas Vepstas
75e9fdb7c3 add more detailed debugging print info
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4374 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-06-02 17:48:04 +00:00
Linas Vepstas
3cc163db6e add some more debugging print statements
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4363 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-06-02 04:28:16 +00:00
Linas Vepstas
c7ee6073df add a few print statements to teh debugging routine.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4356 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-06-02 03:19:12 +00:00
Linas Vepstas
ccf1f11087 add utility function returning number of terms
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4342 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-31 17:44:58 +00:00
Linas Vepstas
70b34d05fa print additional info in the debugging routine PrintQuery()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4341 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-31 16:42:12 +00:00
Robert Graham Merkel
010d135579 Fixes for FreeBSD.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4330 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-29 15:20:23 +00:00
Dave Peticolas
9be6dfbca6 2001-05-01 Robert Graham Merkel <rgmerk@mira.net>
* src/engine/Query.{ch}: added date-granularity sorting functionality
	to queries.

	* src/engine/date.[ch] (timespecCanonicalDayTime): new function
	migrated from the scheme code.

	* src/guile/gnc.gwp: added wrappers for the above.

	* src/scm/date-utilities.scm (gnc:timepair-canonical-day-time):
	removed, replaced by new C function.

	* src/scm/report/*.scm: added checks for "no-accounts-selected".

	* src/scm/report/average-balance-2.scm: New (temporary) file.
	The average balance report with a rewritten calculation engine.

	* src/scm/report/register.scm: Modified to use global styles

	* src/scm/report/transaction-report.scm: use improved sorting ability,
	get report title from options.

	* src/scm/html-utilities.scm (gnc:html-make-no-account-warning): new
	function. (remove-last-empty-row): minor changes.

	* src/scm/report-utilities.scm: added the ability to get "numitems"
	out of a stats collector for debugging purposes.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4093 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-01 02:14:19 +00:00
Dave Peticolas
ea9ad455db * src/engine/Query.c (xaccQueryGetSplitsUniqueTrans): fix bug
* src/engine/Account.c (xaccAccountSetPriceSrc): fix bug


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4017 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-23 07:14:57 +00:00