Commit Graph
249 Commits
Author SHA1 Message Date
Dave Peticolas e9cd05c521 Robert Graham Merkel's transaction report patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3757 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-07 07:46:25 +00:00
Dave Peticolas cc5c68a1cc Fix colonial franc names.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3755 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-07 02:48:47 +00:00
Dave Peticolas b6dc29d3ce * src/scm/iso-4217-currencies.scm: remove duplicate currency
* src/engine/sixtp-dom-parsers.c (dom_tree_to_commodity_ref): use
	gnc_commodity_destroy, not g_free.

	* src/guile/gnc.gwp: fix for new commodity insert

	* src/gnome/druid-qif-import.c: fix for new commodity insert

	* src/gnome/dialog-commodity.c: check for existing commodity.
	fix for new commodity insert.

	* src/engine/io-gncbin-r.c: fix for new commodity insert

	* src/gnome/druid-commodity.c: fix for new commodity insert

	* src/engine/gnc-commodity.c: change commodity insert semantics to
	use an existing commodity if present. Remove
	gnc_commodity_table_remove(). It wasn't used and was a mem leak.

	* src/engine/Commodity-xml-parser-v1.c
	(commodity_restore_end_handler): use gnc_commodity_destroy,
	not just g_free.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3754 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-07 02:37:38 +00:00
Dave Peticolas 7ec82656bd * src/register/gnome/gnucash-item-edit.{ch}: improve horizontal
scrolling behavior.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3752 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-06 00:14:41 +00:00
Dave Peticolas 53fadd2116 Christian Stimming's report patch.
* src/scm/html-utilities.scm: reorganizing of the hierarchical
	reports: subtotals are now printed *below* the subaccounts instead
	of above.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3751 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-05 21:10:23 +00:00
Dave Peticolas 346f39d45a Check for gal library.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3750 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-05 11:05:31 +00:00
Dave Peticolas 8dd1c738ca * configure.in: define a new substitution GNC_PIXMAP_DIR for
a pixmap directory.

	* src/pixmaps/Makefile.am (gncpixmapdir): install in configured
	pixmap directory

	* src/gnc-dir.h.in (GNC_PIXMAP_DIR): define pixmap directory

	* src/Makefile.am (gnc-dir.h): configure pixmap directory
	for gnc-dir.h.in

	* src/gnome/dialog-utils.c (gnc_get_pixmap): use configured
	pixmap directory


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3749 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-05 02:10:44 +00:00
Dave Peticolas a913dfc5cf * src/pixmaps: add gnucash_long.png graphic
* src/gnome/top-level.c (gnucash_ui_init): show splash screen

	* src/gnome/gnc-splash.{ch}: splash screen functionality

	* src/gnome/dialog-utils.{ch} (gnc_get_pixmap): new function

	* src/gnc-dir.h.in: add header file with directory info

	* src/guile/Makefile.am: use BUILT_SOURCES for *.in sources


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3746 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-04 11:14:17 +00:00
Dave Peticolas 9e22005614 Christian Stimming's report patch.
* src/scm/html-utilities.scm: Added different printing of stock
	accounts. Started a new layout/ordering for sub-totals.

	* src/scm/commodity-utilities.scm (gnc:sum-collector-stocks):
	added such that stock prices are no longer shown but foreign
	currencies are. Rounding precision increased. Added sanity checks
	for arguments of various funtions.

	* src/scm/report-utilities.scm (gnc:account-is-stock?): added
	function


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3744 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-04 08:26:10 +00:00
Dave Peticolas 240fa15646 * src/gnome/window-help.c: save & restore window size
* src/gnome/window-report.c: save & restore window size

	* src/scm/prefs.scm: add vars for report & help win sizes


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3743 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-04 08:17:17 +00:00
Dave Peticolas d786539c08 * src/engine/sql/README: add info about running without root
privileges


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3742 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-04 07:04:19 +00:00
Dave Peticolas 354f1202d2 * src/engine/sql/design.txt: update design docs
* src/engine/sql/PostgresBackend.c (pgend_session_begin): connect
	to template1 database instead of 'gnucash'


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3741 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-04 06:54:56 +00:00
Dave Peticolas 01a15a1658 * src/gnome/new-user.glade: tweak layout, strings
* src/gnome/new-user-funs.h: add gpl header

	* src/gnome/new-user-funs.{ch}: add gpl header

	* src/gnome/new-user-callbacks.c: tweak layout, add gpl header


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3735 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-03 02:14:18 +00:00
Dave Peticolas d7cf63bf2b * src/gnome/gnc-dialogs.glade: add title to transfer dialog
* src/engine/gnc-pricedb.c (gnc_pricedb_destroy): fix mem leak

	* src/gnome/dialog-options.c: cleanup destruction semantics.
	destroy tooltips

	* src/engine/io-gncxml-r.c (gnc_book_load_from_xml_file): fix mem
	leak

	* src/gnome/dialog-utils.c (gnc_build_option_menu): destroy
	tooltips when menu is destroyed

	* src/gnome/dialog-transfer.c: destroy tooltips object

	* src/gnome/window-main.c (gnc_ui_destroy_all_subwindows): now all
	windows use component manager

	* src/gnome/window-report.c: add report to component manager.
	cleaner destruction behavior

	* src/gnome/window-help.c: cleaner destruction behavior

	* src/gnome/gnc-html.c: fix to avoid having the ref the container
	from outside for destruction

	* src/FileDialog.c (gncAddHistory): fix mem leak

	* src/gnome/dialog-options.c (gnc_option_create_date_widget): fix
	bug & mem leak.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3733 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-02 10:11:55 +00:00
Dave Peticolas 1fdbf22c2d James LewisMoss's mem leak fix.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3727 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-01 21:15:21 +00:00
Dave Peticolas 275142e3c2 * src/register/gnome/gnucash-sheet.c: if input is cancelled by
user during delete, ignore the insert callback.

	* src/MultiLedger.c: update for new view api

	* src/register/recncell.{ch}: allow setting a parent to be used
	for the dialog.

	* src/gnome/query-user.c (gnc_verify_dialog_parented): handle null
	parent by using gnc_get_ui_data.

	* src/gnome/window-register.c: eliminate calls to
	xaccSRCheckReconciled. confirmation is done in SplitLedger.c now.

	* src/SplitLedger.c: use new data entry confirmation callback
	to confirm changes to a reconciled split.

	* src/register/splitreg.{ch}: mod for table-allgui changes

	* src/register/table-allgui.{ch}: encapsulate 'view' callbacks
	into a struct. add a callback for confiming data entry.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3726 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-01 11:06:36 +00:00
Dave Peticolas fa161cd3b5 Robert Graham Merkel's report patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3725 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-01 10:46:00 +00:00
Dave Peticolas f916a195cc * src/engine/Transaction.c (xaccSplitsComputeValue): fix a bug
* src/engine/gnc-book.c (gnc_book_load): fix spelling

	* src/engine/Scrub.c (xaccTransScrubImbalance): don't use sub_fixed
	since the value may not have the right denominator
	(xaccSplitScrub): handle splits without accounts

	* src/gnome/query-user.c
	(gnc_choose_radio_option_dialog_parented): actually set the parent

	* src/SplitLedger.c (xaccSRCheckReconciled): check current
	transaction, not current split.

	* src/engine/GNCId.c: use GUID allocator for hash keys.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3724 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-01 07:03:38 +00:00
Dave Peticolas b91b75648f James LewisMoss's xml patch.
* src/engine/gnc-commodity-xml-v2.c (gnc_commodity_end_handler):
	mem leak.  free the node in the end handler.

	* src/engine/gnc-commodity.c (reset_unique_name): new func.
	(reset_printname): new func.
	(gnc_commodity_new): use new funcs
	(gnc_commodity_set_mnemonic): use new funcs.
	(gnc_commodity_set_namespace): use new funcs.
	(gnc_commodity_set_fullname): use new funcs.

	* src/engine/gnc-commodity-xml-v2.c (gnc_commodity_end_handler):
	Don't free commodity.  That's the globaldata funcs job if it wants
	to.
	(set_commodity_value): Must remember compare equals == 0.  Duh.

	* src/engine/sixtp.c (sixtp_parse_file): Only run end handler if
	parsing is already ok.

	* src/test/test-xml-account.c (test_generation): oops should have
	continued here.

	* src/engine/gnc-commodity-xml-v2.c (valid_commodity): Complete func.

	* configure.in (LIBS): disable libxml/xmlversion.h checks so we can't
	compile for libxml2 for now.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3723 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-01 04:55:05 +00:00
Dave Peticolas 0221a10490 James LewisMoss's xml patch.
* src/test/test-xml-account.c (node_and_account_equal): fix mem
	leak.
	(test_add_account): new func.
	(test_generation): Actually test the node created and the
	parser. Everything looks good other than some sixtp oddness I
	don't understand yet.

	* src/engine/gnc-transaction-xml-v2.c
	(gnc_transaction_end_handler): same as below.

	* src/engine/gnc-commodity-xml-v2.c (gnc_commodity_end_handler):
	Use data struct from io-gncxml-v2.h

	* src/engine/gnc-account-xml-v2.c (account_currency_handler): Make
	not use engine commodity funcs to make this testable.  Will have
	to have something to clean this up in production code.
	(account_security_handler): Same.
	(gnc_xml_set_account_data): Oops.  Actually set that we have
	gotten this so the got all test succeeds.
	(gnc_account_end_handler): Start the main parsing setup by relying
	on data struct from io-gncxml-v2.h
	(gnc_account_end_handler): fix free to free the correct thing.
	Add some g_warning calls to make errors more apparent.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3720 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-28 23:31:04 +00:00
Dave Peticolas 6df78be645 Store un-commafied urls in the file history.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3719 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-28 10:21:03 +00:00
Dave Peticolas ce80ff48a2 James LewisMoss's patch.
* src/test/test-xml-account.c (delete_random_account): new func to
	cleanup commodities not generally freed at xaccAccountDestroy.
	(node_and_account_equal): complete func to compare account and the
	dom tree created.  Looks good except for some warnings from
	dom_tree_to_text.

	* src/test/test-stuff.c (equals_node_val_vs_commodity): new func.
	(equals_node_val_vs_guid): New func.
	(equals_node_val_vs_string): new func.

	* src/engine/gnc-account-xml-v2.c (account_code_handler): Add func.
	(account_description_handler): Add func.  Oops forgot a couple.
	(gnc_account_dom_tree_create): Move all string tags in file to
	const gchar*s.
	(account_slots_handler): Complete func.

	* make-gnucash-patch.in: Test to see if makepatch exists.

	* src/engine/sixtp-dom-parsers.c (dom_tree_to_text): same as
	below.  Add NULL tests for arguments.  Affected many functions in
	this file.

	* src/engine/gnc-pricedb-xml-v1.c (price_parse_xml_sub_node): Same
	as below.

	* src/engine/gnc-commodity-xml-v2.c (set_commodity_value): Convert
	dom_tree_to_text to act as rest looking at children on it's own.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3718 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-28 08:06:50 +00:00
Dave Peticolas 93ba986b30 * src/register/gnome/gnucash-scrolled-window.c: subclass of
gtk_scrolled_window for use in register.

	* src/register/gnome/gnucash-item-list.c: use scrolled window
	for really long account names.

	* doc/sgml/es/Makefile.am (GNUCASH_SGML_FILES): fix list of sgml
	files

	* src/gnc-ui.h: use gncUIWidget not GtkWidget* in non-gnome
	directories.

	* src/engine/sql/PostgresBackend.c (pgendSyncTransaction): add
	missing call to gnc_engine_resume_events ().


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3717 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-28 07:04:44 +00:00
Dave Peticolas af05f3af60 Robert Graham Merkel's reporting patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3715 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-28 06:31:49 +00:00
Dave Peticolas 5494d6ad07 James LewisMoss's patch with some xml and testing stuff.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3712 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-27 20:15:11 +00:00
Dave Peticolas cd024af6f5 Add username/password dialog & api.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3709 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-27 11:20:30 +00:00
Dave Peticolas 4dce05e4f7 Don't evaluate debug macro args unless they are going to be printed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3707 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-27 06:43:19 +00:00
Dave Peticolas 84cbba8ec2 Robert Graham Merkel's reimplementation of the transaction report.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3686 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-25 03:21:39 +00:00
Dave Peticolas e30a8bc509 Rob Browning's patch with price db & miscellany.
* first iteration of pricedb: we should preserve quotes from old
    binfiles now (rather than throwing it away during the conversion),
    and we can read/write the pricedb as XML.

  * added configure --enable-error-on-warning -- developers, please
    use this.

  * add fancier TAGS handling -- we now track file additions/deletions
    dynamically.

  * add g_hash_table_key_value_pairs: returns a GSList of all the key
    value pairs in a given hash table so you can manipulate them.

    add g_hash_table_kv_pair_free_gfunc: g_slist_foreach helper for
    deleting key value hash pairs when you're finished with the
    results from g_hash_table_key_value_pairs.  You'll still need to
    call g_slist_free as well to delete the spine of the list.

  * continue migration to using backend for all IO and switching from
    top-level Group to top level GNCBook.

  * switch from const gnc_commodity to gnc_commodity in many places,
    after consultation with Bill.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3684 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-25 00:42:44 +00:00
Dave Peticolas ce532a2a86 Bill Gribble's update to the qif importer.
* src/scm/qif-import/qif-dialog-utils.scm: Be more flexible
	about account types on QIF import

	* src/scm/qif-import/qif-objects.scm: make sure the list of
	allowed types is in the right order

	* src/scm/qif-import/qif-to-gnc.scm: be more flexible about type;
	check on parent type after creating child; don't set security on
	non-{stock,mutual} accounts.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3683 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-23 22:20:36 +00:00
Dave Peticolas 7e20ed1642 Christian Stimming's patch for xaccSplitGetShareAmount -> xaccSplitGetAmount.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3682 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-23 07:19:37 +00:00
Dave Peticolas 5b7f9b4631 James LewisMoss's big big patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3678 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-22 07:29:05 +00:00
Dave Peticolas fab6bbc56a Bill Gribble's qif importing patches.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3674 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-22 06:09:50 +00:00
Dave Peticolas d66d8d2fc3 Christian Stimming's report patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3663 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-15 09:01:19 +00:00
Dave Peticolas a1a95e9cdd James LewisMoss's patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3661 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-15 08:40:33 +00:00
Dave Peticolas a24407162c James LewisMoss's patch.
* src/test/test-dom-converters1.c (Repository): fix mem leak.

	* src/engine/sixtp-dom-parsers.h (Repository): start of kvp code.

	* src/engine/sixtp-dom-parsers.c (Repository): fix mem leak.
	Start of kvp code.

	* src/engine/sixtp-dom-generators.c (Repository): fix mem leak.
	(Repository): Start of kvp code.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3660 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-15 06:35:22 +00:00
Dave Peticolas f335a5b722 James LewisMoss's patch.
* src/test/test-date-converting.c (Repository): Tests to make sure
	date <-> string converting strings work.

	* src/test/test-dom-converters1.c (Repository): Add tests for rest
	of converters.

	* src/test/Makefile.am (Repository): add new test.  Make "make
	check" work here.

	* src/engine/sixtp-xml-write-utils.c (Repository): use date format
	strings from sixtp-utils.h

	* src/engine/sixtp-utils.h (Repository): add date format strings.
	#include sixtp.h

	* src/engine/sixtp-utils.c (Repository): Use define as timespec
	date format string.

	* src/engine/sixtp-dom-parsers.c (Repository): Add funcs from
	Rob.  make consistent.  Fix a few bugs.  Make
	dom_tree_to_commodity_ref testable by adding new func
	"associate_commodity_ref_with_engine_commodity" to do final
	association with engine commodity table.

	* src/engine/sixtp-dom-generators.c (Repository): Fix to_guid to
	be generic.  Oops.  Add rest of funcs to to foo_to_dom_tree to
	match funcs in sixtp_dom_parsers.

	* src/engine/gnc-numeric.c (Repository): Comment out unused var.

	* src/engine/gnc-account-xml-v2.c (Repository): change to use
	dom_tree_to_commodity_ref.

	* src/doc/xml/types.dtd: Change cmd: to cmdty: and add ts: to the
	timespec tags.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3659 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-15 00:17:57 +00:00
Dave Peticolas 31569b751f Use nl_langinfo(D_FMT) instead of %x for locale-based date formatting.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3657 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-14 22:11:30 +00:00
Dave Peticolas 596eabc8a0 Bill Gribble's QIF import patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3656 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-14 22:08:17 +00:00
Dave Peticolas 1da310e7c8 Christian Stimming's report patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3655 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-14 12:03:39 +00:00
Dave Peticolas 9a7f5b18d4 * src/engine/gnc-numeric.c: fix stupid. stupid. stupid. stupid
log10 error

        * src/guile/gnc-helpers.c: start to fix scm_to_gint64 for
        guile-1.3.. this is sort of a duct-tape fix.  We need to port some
        stuff from the guile-1.4 source tree.  Should work fine unless you
        are Bill Gates and you do your accounting in lira.

        * src/gnome/dialog-style-sheet.c: handle WM delete event

        * src/scm/qif-import/qif-to-gnc.scm: fix backtrace-if-exception
        usage; add preliminary memo/payee-to-account mapping.

        * src/scm/utilities.scm: define hash-fold if it's not builtin


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3652 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-13 23:20:29 +00:00
Dave Peticolas fa026af058 Bill Gribble's fix for report i18n.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3645 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 23:15:23 +00:00
Dave Peticolas 2caac7636b Bill Gribble's patch.
* src/engine/gnc-numeric.{c,h}, src/scm/gnc-numeric.scm: add
        support for a new auto-denom type, GNC_DENOM_SIGFIGS(x), where x
        is the number of "significant figures" you want in the output.
        This means that the output denominator will always be a poewr of
        10, but which power is determined by the magnitude of the
        argument.

        * src/engine/Transaction.c, src/gnc-exp-parser.c,
        src/gnc-ui-util.c: make minor changes to use GNC_DENOM_SIGFIGS
        where appropriate.

        * src/gnome/dialog-account-picker.{c,h}: totally rewritten QIF
        import account picker.  this one is much less likely to get you
        into trouble.  Still some rough edges but MUCH better than
        the old one.

        * src/gnome/druid-qif-import.c: fixes.  Add memo/payee matching
        (but it's not hooked up to the import yet so don't get that
        excited).

        * src/scm/qif-import/qif-dialog-utils.scm: memo mapping stuff,
        i18n fixes.

        * src/scm/qif-import/qif-to-gnc.scm: update error catching; print
        backtrace on failure.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3644 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 22:46:55 +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 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 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 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 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 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