Commit Graph

7942 Commits

Author SHA1 Message Date
Linas Vepstas
5a955e7161 fix comments
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10011 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 18:28:23 +00:00
Linas Vepstas
b22de5241b convert tabs to spaces (my tab stops aren't set to 8, so tabs wreck indentation)
Replace crummy list usage, when a for-each would have been enough.
(this improves performance, reduces em fragmentation)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10010 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 18:03:10 +00:00
Linas Vepstas
2083da1480 Changes to use shared quick-fill for teh account transfer combo box.
Untested but should work fine.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10009 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 17:47:20 +00:00
Linas Vepstas
aec37075f0 move the account-name quickfill code to the utilities directory, where
it can eb shared with the business ledger


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10007 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 17:12:47 +00:00
Linas Vepstas
b14c720b6c Minor documentation cleanup
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10006 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 17:11:07 +00:00
Linas Vepstas
c3d50ae4f9 add account-cuickfill to the makefile,
add some missing #includes needed for a clean compile


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10005 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 16:47:31 +00:00
Linas Vepstas
03af394ebc source code for account quick-fill utility
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10004 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 16:37:07 +00:00
Linas Vepstas
bdb03fdb8e new, account-name quickfill utility
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10003 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 16:31:41 +00:00
Linas Vepstas
203a854e13 add more notes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10002 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 16:03:48 +00:00
Linas Vepstas
29d5f82221 fix horrid indentation (someone used tabs inconsistently)
add documentation
add copyright (hey I wrote this code in 1998, along with the rest
of the register code.  Someone stripped out the copyright along the
way. Baadd).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10001 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 15:58:20 +00:00
Linas Vepstas
cd0064b516 add a utility routine, do some minor performance tuning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9998 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 15:22:57 +00:00
Linas Vepstas
2079c5f7f6 fix the quickfill docos
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9996 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 14:57:31 +00:00
Linas Vepstas
fe39e2717b add doxygen documentation markup.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9995 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 14:48:46 +00:00
Linas Vepstas
921cc92ec5 fix core dump bug introduced by earlier last-minute changes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9993 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 06:51:06 +00:00
Linas Vepstas
83ff95c449 Add shared quick-fill for the register account-transfer pull-down combo
boxes.  Building the quickfil of account names takes gobs of cpu when
the number of accounts exceedd about 500 or so.   The sharing avoids
the rebuild of this list for each new reg window.

See
http://bugzilla.gnome.org/show_bug.cgi?id=120028

This patch should be back-ported to the 1.8 tree.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9992 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 04:53:26 +00:00
Linas Vepstas
593e574cf3 add documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9991 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 04:43:21 +00:00
Linas Vepstas
7709758d5a Add documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9990 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-31 03:29:43 +00:00
Linas Vepstas
270cd08498 add finalizers for the user-data hooks. The finalizer is called when the
book is being destroyed, allowing user to clean up thier data.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9989 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-30 23:32:51 +00:00
Linas Vepstas
15762c2e5e remove deprecated has table routines
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9988 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-30 23:27:26 +00:00
Linas Vepstas
6880ffc106 Please port these changes to 1.8.x and g2 branches.
This patch adds code to allow combo-boxes to run with
a shared quickfill.  The use of a shared quickfill should
dramatically improve register startup performance for
systems with a large number of accounts.  See
http://bugzilla.gnome.org/show_bug.cgi?id=120028
for details


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9987 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-30 22:23:57 +00:00
Linas Vepstas
4d8ba273fd IMPORTANT Patch for performance; please test and port to g2 branch.
This patch fixes some, not all, of the problems discussed in
http://bugzilla.gnome.org/show_bug.cgi?id=120028

The performance problem occurs when there are large numbers of
accounts in the account tree (for example 600 or more).  This patch
fixes performance problems with transaction editing and register
updates.

There are four calls to gnc_load_xfer_cell(), which is called twice by
gnc_split_register_load_xfer_cells() which is called by
gnc_split_register_load() in register/ledger-core/split-register-load.c
These calls should have been protected by if (info->first_pass)
so that they'd be called only when the register is first opened,
instead of each transaction update.  I just moved these to
a more correct location in that routine, and surrounded by
the fisrt_pass test, and it seems to make a huge difference in
performance, and it seems to still work correctly.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9985 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-30 19:31:59 +00:00
Linas Vepstas
4083634727 add a note about how to do the FIFO policy
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9984 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-30 16:42:52 +00:00
Linas Vepstas
758fa8bd91 add fflush to make output appear sooner
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9983 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-30 16:02:28 +00:00
Linas Vepstas
53507304cd add debugging print statements
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9982 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-30 05:10:27 +00:00
Linas Vepstas
216535a29b add 128-bit division & remainder support.
This helps reduce the failing gnc-lot problem.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9981 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-30 05:04:37 +00:00
Linas Vepstas
0ff45c2de4 -- check for overflow during numeric multiply
-- remove dead code (old common-factor finder)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9980 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-30 01:47:37 +00:00
Linas Vepstas
28fa53b187 start of quick-n-dirty 128-bit math lib
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9979 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-30 00:18:34 +00:00
Linas Vepstas
c5c92f5099 -- make the gnc-numeric error codes be a typdef enum
-- try to inline the numeric-check for slightly better performance


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9978 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 22:43:49 +00:00
Linas Vepstas
bd7a8b732d partial fix for the failure of the test-lots test case:
Change the FIFO policy to avoid mixed-currency lots.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9977 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 20:06:03 +00:00
Linas Vepstas
c11d423065 Do not try to compute cap gains if cap gains not possible.
Gains aren't possible if the lot commodity is the same as
the transaction currency.   I think that this should fix
http://bugzilla.gnome.org/show_bug.cgi?id=139677
Untested, let me know.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9976 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 19:09:14 +00:00
Linas Vepstas
894da26df6 whoops
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9975 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 18:29:27 +00:00
Linas Vepstas
94c46181df update documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9974 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 18:22:53 +00:00
Linas Vepstas
e10faa04b5 partial fix for http://bugzilla.gnome.org/show_bug.cgi?id=139677
requires that all splits in lot share a common transaction currency.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9973 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 18:04:40 +00:00
Derek Atkins
a9bbb453e7 Fix memory corruption: add book_closing and use it.
* src/engine/Transaction.c:
	  Don't recompute balances or write to the translog when we're
	  shutting down.  Destroy the parent transaction from xaccSplitDestroy()
	  if we're shutting down.
	* src/engine/qofbook-p.h:
	* src/engine/qofbook.h:
	* src/engine/qofbook.c:
	  add "shutting_down" parameter and getter-method, so that
	  objects can detect when the book is shutting down and
	  ignore non-necessary reprocessing.  Fixes a memory corruption
	  bug during book-closing.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9972 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 17:45:56 +00:00
Linas Vepstas
b83705a471 whitespace fixes (convert tabs to spaces)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9971 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-28 14:01:11 +00:00
Derek Atkins
eed3dfed9f A few more QOF_QUERY_PARAM_GUID -> QOF_PARAM_GUID conversions.
* src/gnome-search/dialog-search.c:
	* src/gnome-search/gnc-general-search.c:
	* src/gnome-utils/gnc-query-list.c:
	  Linas missed a few QOF_QUERY_PARAM_GUID -> QOF_PARAM_GUID
	  conversions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9969 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-24 21:12:25 +00:00
Derek Atkins
8ab475610b Vasil's patch to add "export" option to txn report.
* src/report/standard-reports/transaction.cm: applied Vasil's
	  patch to improve the transaction report for HTML export
	  purposes.  Fixes bug #142942.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9968 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-24 16:55:59 +00:00
Linas Vepstas
ce63311484 -- Rename QOF_QUERY_PARAM_XX to QOF_PARAM_XX
-- Add 'new' callback to QofObject.  This allows QofObject to act
   as an 'object factory', creating a new instance of something,
   given only the type name.  Plan to use this in the new SQL
   backend, when restoring objects from SQL tables.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9965 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-23 17:31:40 +00:00
Linas Vepstas
2bddf219fa bug fix, book getter should have been returning book
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9964 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-23 16:52:55 +00:00
Derek Atkins
7854068fa8 Guile-1.6 doesn't allow string->symbol on a symbol (bug #131201).
* src/report/locale-specific/us/taxtxf.scm: guile-1.6 complains
	  about string->symbol when passed a symbol.  Fixes #131201
	  Also add some code to handle accounts that are expected to
	  have parents but do not (also described in #131201).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9963 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-17 18:55:16 +00:00
Derek Atkins
bc21c87cd8 automake-1.8.x is more pedantic about m4 quoting.
* Luigi Ballabio's automake patch to gnucash.m4


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9960 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-15 16:13:29 +00:00
Christian Stimming
70b125d138 For gcc3.4.x, add -Wdeclaration-after-statement warning switch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9958 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-08 10:00:52 +00:00
Christian Stimming
524f98c9d3 (gnc_imap_add_account_bayes): Skip the case when a token is the empty string.
2004-05-08  Christian Stimming  <stimming@tuhh.de>

	* src/import-export/import-match-map.c
	(gnc_imap_add_account_bayes): Skip the case when a token is the
	empty string. This caused many warnings about a NULL kvp_frame
	lookup.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9956 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-08 09:32:36 +00:00
David Hampton
e752fa5714 Added quote sources for Indian Mutual Funds.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9954 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-08 05:27:26 +00:00
David Hampton
f63c016e0a Needs to include config.h.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9953 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-08 05:26:43 +00:00
Linas Vepstas
6f27b18d37 Changes to get rid of most of the remaining usages of deprecated
guile gh_* routines.  The file engine-helpers.c also has whitespace
changes where tabs were expanded to 8 spaces (I have set ts=3, so
mixed tab/space indentation looks terrible). I beleive that the
changes are all good, but if you suspect the worst, you can revert by
fishing out the cvs tag 'pre-gh-deprecate'.

Some of the gnome files weren't converted, mostly because the
conversions really should be done in the gnome2 branch not this
branch.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9950 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-08 03:53:51 +00:00
Derek Atkins
0fa3a1904d Remove gncOrder.h from doxygen (I hope this works correctly)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9948 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 13:40:55 +00:00
Linas Vepstas
4f1297bc75 just a couple more documentation tweaks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9947 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 05:20:15 +00:00
Linas Vepstas
1471882a35 add markup to get these files to appear in the Doxygen documentation
system


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9946 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 05:11:49 +00:00
Linas Vepstas
23124f665b more doxygen docuemtnation updates
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9945 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 04:54:21 +00:00