Commit Graph

2907 Commits

Author SHA1 Message Date
Linas Vepstas
edc699a651 need to begin/commit transaction when changing values ...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3632 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-11 03:55:02 +00:00
Dave Peticolas
5dd4c94809 Christian Stimming's report patch.
* src/scm/commodity-utilities.scm: Functions to calculate exchange
	rates (weighted average) for different commodities (moved from
	report-utilities.scm). Major cleanup.

	* src/scm/options-utilities.scm: Option creation functions common
	to several reports. (moved from report-utilities.scm)

	* src/scm/report-utilities.scm: Major cleanup.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3631 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-09 22:07:16 +00:00
Dave Peticolas
999ceb2a5d Derek Atkins' patch to fix compiling with --disable-guppi.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3630 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-09 22:04:23 +00:00
Dave Peticolas
19f65b1b00 Replace gh_lookup with gh_eval_str.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3629 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-09 22:01:41 +00:00
Dave Peticolas
0cb7f80a35 Pull in some more bits from /dev/urandom periodically.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3628 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-09 07:36:02 +00:00
Dave Peticolas
990f692e74 Fix bugs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3627 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-09 01:44:23 +00:00
Dave Peticolas
fc35747a45 Bill Gribble's patch.
* src/gnome/druid-qif-import.c: restructure druid a bit to
        allow more flexible navigation (in particular, so we can have
        a global pref to skip documentation pages)

        * src/scm/html-*.scm: change rendering model to speed up reports.
        use a "string tree" instead of the old with-output-to-string and
        compile style tables where possible.  Strangely enough, alists
        are faster than hash tables.

        * src/scm/html-table.scm: clean up row/col style stuff a little.
        semantics changed a wee bit: now row style takes precedence over
        column style.  this was necessary for performance.

        * src/scm/prefs.scm: add a global pref to skip doc pages in the
        QIF importer.

        * src/scm/report.scm: shuffle around a bit for the new rendering
        model.

        * src/gnome/window-report.c: back out some overly-aggressive
        memory reclamation.  I need to figure out how to do this right.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3626 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 23:31:54 +00:00
Dave Peticolas
fed1fcd1fe James LewisMoss's xml refactoring patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3625 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 22:23:18 +00:00
Dave Peticolas
a016811048 Christian Stimming's report patch.
* src/scm/date-utilities.scm Added (gnc:timepair-previous-day).

	* src/scm/report-utilities.scm (gnc:account-get-balance-interval)
	Fix bug with start date.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3624 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 22:10:16 +00:00
Dave Peticolas
fc5dd365ae Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3623 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 21:35:04 +00:00
Dave Peticolas
c1dbc8ef7b Christian Stimming's report patch.
* src/scm/html-style-info.scm: Fix bug.

	* src/scm/gnc-numeric.scm: Add more functions on gnc-monetary.

	* src/scm/html-utilities.scm: Add balance sign reversal
	conditioned on gnc:account-reverse-balance? for the account
	table. Add function to print exchange rates.

	* src/scm/report-utilities.scm: Modify commodity-collector to
	enable more sign reversals and usage of gnc-monetary. Add option
	creation functions common to several reports.

	* src/scm/report/account-summary.scm: Removed function now in
	report-utilities.scm. Added variables for option names.

	* src/scm/report/pnl.scm: New Profit And Loss report, based on
	account-summary report.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3622 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 11:10:57 +00:00
Dave Peticolas
3afbeae315 Additional testing patch from James LewisMoss.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3621 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 07:52:17 +00:00
Dave Peticolas
f6672b8490 Fix compiler warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3620 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 05:01:50 +00:00
Dave Peticolas
fbb1a7a440 Missed one.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3619 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 04:09:15 +00:00
Dave Peticolas
fa9cff9ce9 James LewisMoss's patch.
2001-02-07  James LewisMoss  <dres@phoenixdsl.com>

	* make-gnucash-patch.in: Add a file ending that is ignored.

	* src/doc/xml/types.dtd: Change currency-type -> commodity-type.
	Add defs for cmd:space and cmd:id.

	* src/doc/xml/io-gncxml-version1.dtd: Change currency-type ->
	commodity-type.

	* src/doc/xml/account-v2.dtd: Change currency-type ->
	commodity-type.

2001-02-06  James LewisMoss  <dres@phoenixdsl.com>

	* src/engine/sixtp.c: Use frame creator.
	Move sixtp_handle_catastrophe to here. Add functions
	sixtp_context_new, sixtp_context_destroy.  And change and move
	sixtp_parse_file and sixtp_parse_buffer here from io-gncxml-r.c
	Add concept of a parsing context to hold data.

	* src/engine/sixtp-stack.h: Add creator.  Add headers.

	* src/engine/sixtp-stack.c: Add creator.

	* src/engine/sixtp-parsers.h: add needed headers.
	Add func from sixtp-to-dom-parser.c

	* src/engine/io-gncxml.h: Fix name.

	* src/engine/io-gncxml-w.c: Fix name.

	* src/engine/io-gncxml-r.c: Fix name.  Create stack frame creator
	function and use here.

2001-02-05  James LewisMoss  <dres@phoenixdsl.com>

	* src/engine/sixtp-stack.h: Add glib.h include (needed for GSList)

	* src/engine/sixtp.c: Add catchall tag for parsing handlers.  Use
	name instead of next_parser_tag since that can now contain a magic
	value.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3618 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 04:08:50 +00:00
Dave Peticolas
7d546af657 Christian Stimming's report patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3614 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-07 09:27:30 +00:00
Linas Vepstas
4b9194a1dd oops
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3613 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-07 06:38:49 +00:00
Linas Vepstas
07828e1b81 ignoe the autogenerated files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3612 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-07 06:15:55 +00:00
Linas Vepstas
cc8044c8fc bug fixes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3611 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-07 06:12:33 +00:00
Dave Peticolas
75cf84a107 Add date cell hot-keys.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3610 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-07 02:43:24 +00:00
Dave Peticolas
23555906d9 For now just read from /dev/urandom instead of /dev/random.
If it turns out that some systems only have /dev/random, then
we should look into non-blocking io for this.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3609 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-07 02:13:14 +00:00
Dave Peticolas
b4219c2835 Fix cursor positioning bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3608 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-07 00:30:23 +00:00
Dave Peticolas
2740f11b2a Use green checks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3607 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-06 23:37:20 +00:00
Dave Peticolas
e323710fae Try to prevent blocking on /dev/random.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3606 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-06 07:53:46 +00:00
Dave Peticolas
0058e026c4 Use amount edit widgets instead of spin buttons in finder dialog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3605 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-06 00:36:01 +00:00
Dave Peticolas
c822aa87c0 Fix compiler warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3604 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-06 00:10:09 +00:00
Dave Peticolas
ef04b97c2f Fix bugs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3603 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-05 23:45:04 +00:00
Dave Peticolas
7c25fa6704 Remove diff cruft.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3602 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-05 23:19:21 +00:00
Dave Peticolas
68ef8e0156 Bill Gribble's qif merge patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3601 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-05 23:06:26 +00:00
Dave Peticolas
07de0fee2a Christian Stimming's report patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3600 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-05 21:42:05 +00:00
Linas Vepstas
e4f135f4eb add support for deleting accounts
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3599 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-05 10:14:37 +00:00
Linas Vepstas
a5c1cb691a teeny patch to use correct account-deletion routines
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3598 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-05 10:10:50 +00:00
Linas Vepstas
d590daddac large invasive patch to send account-deletion info to the backend
Hopefully the last such invasion ...


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3597 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-05 10:09:57 +00:00
Dave Peticolas
8788434a5f Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3596 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-05 07:47:42 +00:00
Dave Peticolas
fc338614a6 Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3595 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-05 02:37:56 +00:00
Linas Vepstas
ef12a64271 document the bacekn functions a bit more, document the error codes.
add dialogs to create a new database, if it didn't exist before


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3594 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-04 07:19:41 +00:00
Linas Vepstas
276dee6677 add dialogs to create a new database, if it didn't exist before
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3593 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-04 07:19:03 +00:00
Linas Vepstas
77e7ae1741 forgot to check these in ...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3592 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-04 07:13:24 +00:00
Linas Vepstas
7f9eecba26 The postgress single-user mode should now be more-or-less 'beta'
with this patch; multi-user mode is still highly experimental.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3591 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-04 07:10:53 +00:00
Linas Vepstas
ba29865498 escape special chars in strings; simplify the build process.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3590 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-03 21:05:02 +00:00
Linas Vepstas
fba1aef3b8 Simpler build
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3589 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-03 20:55:37 +00:00
Linas Vepstas
ebece52761 Merge the two different error reporting mechanisms together into one.
This simplifiesthe logic a good bit, and the code should be more
readable as a result.   It also allows backends to report errors on up
to the GUI.  (which is what this is really about).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3588 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-03 20:55:17 +00:00
Dave Peticolas
a22f48c2c8 Christian Stimming's report patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3586 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-03 09:55:59 +00:00
Dave Peticolas
60acab72f1 Fix refreshing when importing old files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3585 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-03 09:47:21 +00:00
Dave Peticolas
2944c0d801 James LewisMoss's patch to file loading that fixes the duplicate guid bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3582 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-03 08:56:50 +00:00
Dave Peticolas
67688f3c1f Use check marks instead of 'y' in reconcile dialog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3581 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-03 04:25:27 +00:00
Dave Peticolas
32746742a1 Fix compiler warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3580 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-03 00:44:34 +00:00
Dave Peticolas
5f5661e125 James LewisMoss's refactoring of xml writing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3579 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-03 00:41:20 +00:00
Dave Peticolas
06b7c43a82 Jan-Uwe Finck's updated de.po.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3578 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-02 21:32:43 +00:00
Dave Peticolas
d5f1e3595f Allow urls to be typed into the filebox.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3577 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-02 10:02:47 +00:00