Commit Graph

3474 Commits

Author SHA1 Message Date
Rob Browning
73735fe869 * lib/srfi/srfi-2.scm: new file.
* lib/srfi/srfi-9.scm: new file.

* lib/srfi/srfi-11.scm: new file.

* lib/srfi/srfi-8.scm: moved from src/scm/srfi/.

* lib/srfi/srfi-19.scm: moved from src/scm/srfi.

* lib/srfi/README: moved from src/scm/srfi/.

* lib/srfi/srfi-1.scm: moved from src/scm/srfi/.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4200 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-15 15:48:44 +00:00
Robert Graham Merkel
73c08b34fd updating documentation to detail new features.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4199 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-15 12:22:07 +00:00
Dave Peticolas
92a7486177 2001-05-15 Dave Peticolas <dave@krondo.com>
* src/doc/design/engine.texinfo: update docs


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4198 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-15 09:39:13 +00:00
Christian Stimming
d2ba889f3f 2001-05-15 Christian Stimming <stimming@tuhh.de>
* src/scm/commodity-utilities.scm, report/portfolio.scm: major
	code cleanup. (gnc:pricealist-lookup-nearest-in-time) code moved
	from report/portfolio.scm to commodity-utilities.scm.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4197 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-15 07:34:15 +00:00
Christian Stimming
2cb20de3f6 2001-05-14 Christian Stimming <stimming@tuhh.de>
* src/scm/report/category-barchart.scm: fix bug.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4196 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-15 06:27:15 +00:00
Dave Peticolas
5b0846f673 Fix po.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4195 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-14 22:42:29 +00:00
Dave Peticolas
dec1750edd 2001-05-14 Dave Peticolas <dave@krondo.com>
* src/gnome/druid-qif-import.c: fix bug


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4194 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-14 22:16:43 +00:00
Dave Peticolas
ae1a33bb69 2001-05-14 Dave Peticolas <dave@krondo.com>
* src/engine/Account.c (xaccAccountGetChildren): fix bug


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4193 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-14 21:31:49 +00:00
Dave Peticolas
e950994585 Add changelog entry.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4192 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-14 10:30:42 +00:00
Dave Peticolas
9868880ff0 2001-05-14 Dave Peticolas <dave@krondo.com>
* src/scm/report/register.scm: reverse balance where appropriate.
	put total in proper column.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4191 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-14 10:29:23 +00:00
Dave Peticolas
94a26ca6a0 2001-05-14 Dave Peticolas <dave@krondo.com>
* src/scm/report/price-scatter.scm: use a commodity option
	so stocks/mutuals can be selected.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4190 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-14 09:11:15 +00:00
Dave Peticolas
d90446e3d5 2001-05-14 Dave Peticolas <dave@krondo.com>
* src/engine/gnc-book.c (gnc_book_begin_file): check for missing
	directory

	* src/gnome/file-history.c (gnc_history_add_file): fix bug


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4189 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-14 08:38:24 +00:00
Dave Peticolas
cf175242d6 2001-05-13 Kevin Finn <kevinfinn@mediaone.net>
* src/gnome/window-register.c:  flag summarybar as NEVER_VERTICAL


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4188 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-14 06:12:36 +00:00
Dave Peticolas
c24faf7658 Update po files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4186 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-14 00:51:40 +00:00
Christian Stimming
3d90d386a6 2001-05-13 Christian Stimming <stimming@tuhh.de>
* src/scm/report/portfolio.scm: Added price-source option. Added
	code to use prices from transactions.

	* src/scm/commodity-utilities.scm: fix warnings.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4185 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-14 00:39:37 +00:00
Dave Peticolas
574a211f00 2001-05-13 Dave Peticolas <dave@krondo.com>
* src/FileDialog.c (gncPostFileOpen): fix bug -- current_book
	might be changed by book-opened-hook.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4184 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-14 00:01:04 +00:00
Christian Stimming
8007082235 remove warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4183 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-13 23:30:37 +00:00
Dave Peticolas
02519b2038 Prepare for 1.5.95.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4182 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-13 22:42:40 +00:00
Dave Peticolas
c8c56ebb07 Update po files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4181 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-13 22:25:47 +00:00
Dave Peticolas
cd1bbef9e2 Add patches list address.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4180 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-13 22:22:28 +00:00
Dave Peticolas
f5c7459f27 2001-05-13 Dave Peticolas <dave@krondo.com>
* src/scm/tip-list.scm: fix tip

	* src/engine/Account.c (finder_help_function): fix warning


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4179 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-13 22:15:00 +00:00
Dave Peticolas
763f1dd255 2001-05-13 Dave Peticolas <dave@krondo.com>
* src/engine/Account.c (finder_help_function): fix warning


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4178 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-13 22:05:38 +00:00
Dave Peticolas
1ef81e6971 2001-05-13 Kevin Finn <kevinfinn@mediaone.net>
* src/SplitLedger.c, src/engine/Account.c, src/engine/Account.h:
	moved function gnc_find_trans_in_account_by_desc from SR to become
	new functions xaccAccountFindTransByDesc and
	xaccAccountFindSplitByDesc so they could be used outside of the
	register code.

	* src/gnome/dialog-transfer.c: Added quickfill/autocomplete
	functionality to the transfer dialog, based on the Description.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4177 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-13 21:57:20 +00:00
Dave Peticolas
beabb807e8 2001-05-13 Dave Peticolas <dave@krondo.com>
* src/gnome/window-main.c: write commodities with accounts

	* src/engine/io-gncxml-v2.c (write_commodities): make public


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4176 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-13 10:18:34 +00:00
Dave Peticolas
fc4562838e 2001-05-13 Dave Peticolas <dave@krondo.com>
* src/gnome/new-user.glade: tweak gui

	* src/gnome/window-main.c: the "destroy" handler does not
	return a result. add menu item & functionality for account
	hierarchy export.

	* src/scm/report/welcome-to-gnucash.scm: take out the ugly :)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4175 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-13 10:05:38 +00:00
Christian Stimming
0338dff9b6 2001-05-12 Christian Stimming <stimming@tuhh.de>
* src/scm/report/category-barchart.scm, net-barchart.scm,
	average-balance.scm: Added price-source option. Uses new function
	gnc:make-exchange-nearest-function to offer time-varying exchange
	rates.

	* src/scm/report-utilities.scm
	(gnc:acccounts-get-all-subaccounts): added.

	* src/scm/commodity-utilities.scm
	(gnc:make-exchange-nearest-function): Added this and many more
	functions to enable time-variant currency exchange.

	* src/scm/report/price-scatter.scm: Add warnings if data is empty.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4174 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-12 23:03:13 +00:00
Bill Gribble
4e87eb3d6a * src/gnome/dialog-options.c: fix destructor bug
* src/gnome/window-report.c: add options dialog to edited list
	even if opened by a URL click.

	* src/gnome/window-main.c: handle close of last window safely.
	Still don't save MDI info correctly with WM close, though


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4173 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-12 12:47:32 +00:00
Dave Peticolas
14b2d233ce 2001-05-12 Dave Peticolas <dave@krondo.com>
* src/FileDialog.c (gncFileSaveAs): don't use a default filename

	* src/scm/report/hello-world.scm: put under utility menu

	* src/scm/report/welcome-to-gnucash.scm: don't show in menu

	* src/scm/report/iframe-url.scm: put under utility menu

	* src/scm/report.scm: add 'utility reports' menu

	* src/gnome/new-user-funs.c: add support for opening balances

	* src/gnome/gnc-amount-edit.c (gnc_amount_edit_evaluate): allow
	empty string as zero

	* src/gnome/new-user-callbacks.c: add support for opening balances

	* src/gnome/dialog-account.c (gnc_account_list_fill): fix warning
	(gnc_account_window_destroy_cb): destroy callback has no return
	(gnc_ui_to_account): reverse opening balance appropriately

	* src/engine/Account.c: change return type to const


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4172 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-12 11:50:36 +00:00
Christian Stimming
455cc47410 2001-05-12 Christian Stimming <stimming@tuhh.de>
* src/scm/report/pnl.scm, account-piecharts.scm,
	account-summary.scm: Added price-source option. Use new function
	gnc:case-exchange-fn.

	* src/scm/date-utilities.scm (gnc:get-end-cur-fin-year): added
	function.

	* src/scm/options-utilities.scm (gnc:options-add-date-interval!):
	changed the order of relative dates - which order is best?

	* src/scm/report/balance-sheet.scm: use new function
	gnc:case-exchange-fn.

	* src/scm/commodity-utilities.scm (gnc:case-exchange-fn): add
	function.

	* src/scm/report/price-scatter.scm: adapted helper function name
	to other reports.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4171 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-12 08:41:01 +00:00
Christian Stimming
df5b1cf465 2001-05-12 Christian Stimming <stimming@tuhh.de>
* src/scm/report/price-scatter.scm: Extended option to use the
	pricedb as a price source.

	* src/scm/commodity-utilities.scm: Added functions for getting
	sorted commodity splits, for total-average-prices of a
	commodity-list, for instantaneous prices, for instantaneous prices
	of a commodity-list, and for cooking your morning coffee :)

	* src/scm/report-utilites.scm, html-utilities.scm: create new
	function (gnc:accounts-get-commodities), use it in
	html-utilities.scm.

	* src/scm/html-scatter.scm: add workaround for rgba color.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4170 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-12 07:44:24 +00:00
Robert Graham Merkel
41b5acf7e4 fix bug with new-user saving book config file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4169 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-12 06:33:02 +00:00
Robert Graham Merkel
6817312b82 Fix for new-user with no .gnucash bug reported by Bryan Larsen.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4168 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-12 06:31:40 +00:00
Dave Peticolas
6567373dcb 2001-05-11 Dave Peticolas <dave@krondo.com>
* src/engine/Account.c (xaccCloneAccountSimple): use
	xaccAccountSetCurrency -- it does more than just set the pointer!

	* src/gnome/new-user-funs.c (clone_account): don't use engine
	private functions.

	* src/engine/io-example-account.c (add_account_local): fix up
	currency & security for new example accounts

	* src/engine/io-utils.c: add emacs mode comment to cancel
	XML comment


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4167 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-11 22:26:44 +00:00
Dave Peticolas
957635e51a 2001-05-11 Dave Peticolas <dave@krondo.com>
* src/gnome/new-user-callbacks.c: fix compiler warning

	* src/engine/gnc-book.c (gnc_book_set_group): fix bug


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4166 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-11 21:24:19 +00:00
Dave Peticolas
cb47354213 2001-05-11 Dave Peticolas <dave@krondo.com>
* src/engine/sql/Makefile.am: add files for make dist


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4165 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-11 19:57:13 +00:00
Dave Peticolas
9b5f30f3cb 2001-05-11 Bill Gribble <grib@billgribble.com>
* src/scm/main-window.scm: force-output when saving param files.
	otherwise they don't get written until program exit, which can
	cause problems.  Add newlines to acct tree output.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4164 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-11 19:27:43 +00:00
Dave Peticolas
b20c018bad 2001-05-11 Dave Peticolas <dave@krondo.com>
* src/doc/design/engine.texinfo: update docs


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4163 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-11 10:48:01 +00:00
Robert Graham Merkel
bb1a96378a Fix for null data.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4162 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-11 05:40:11 +00:00
Dave Peticolas
f7eb603ace 2001-05-10 Dave Peticolas <dave@krondo.com>
* src/scm/main-window.scm ((gnc:main-window-book-open-handler
	book-url)): restore the main window even if we can't get a
	conf-file-name.

	* src/scm/main.scm (gnc:load-account-file): if we have a file to
	open, only run book-opened-hook if file open returns false.

	* src/FileDialog.c (gncPostFileOpen): once book-closed-hook has
	been run, run book-opened-hook if opening the file fails for some
	reason.

	* src/guile/gnc.gwp: update ui-open-file api.

	* src/gnome/top-level.c (gnucash_ui_open_file): return TRUE/FALSE
	for success/failure. use gboolean instead of int for boolean
	returns.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4161 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-10 22:55:08 +00:00
Dave Peticolas
d2aaaf20dc 2001-05-10 Bill Gribble <grib@billgribble.com>
* src/gnome/dialog-column-view.c: change handling of component
	reports.  now we explicitly handle the case of the column view,
	which is the only report that needs to save/restore its children.

	* src/gnome/gnc-html-guppi.c: add printing support for graphs.
	Doesn't really work on my system ATM.  I'll follow up on it.

	* src/gnome/window-main.c: move save/restore forms out of gnome
	MDI config string.  rename some functions.

	* src/gnome/window-report.c: save the initial report in a window
	for special treatment.  It's the one that gets saved and restored,
	and whose title appears in the tab.

	* src/scm/*: remove instances of report-add-child and friends.
	The concept is unnecessary.

	* src/scm/main-window.scm: save report and account data to a new
	file named after the book in the directory ~/.gnucash/books.

	* src/scm/options.scm: run option-changed callbacks in the order
	they were added.  Add gnc:options-touch to dirty the options
	without changing anything.

	* src/scm/report.scm: add new optional fields for the
	define-report form: 'options-cleanup-cb and 'options-changed-cb.
	'options-cleanup-cb is called before book save to allow you to
	clean up any mess that you don't want saved.  'options-changed-cb
	is called after any report option is changed.  Both are optional.

	Also get rid of the concept of 'display-lists' for reports and
	let the displays update themselves with callbacks.  Get rid of
	parents and children for the reports.

	* src/scm/report/view-column.scm: revamp to handle options
	processing, saving, and rendering better.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4160 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-10 22:30:45 +00:00
Linas Vepstas
629e1d185b testing 1 2 3
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4159 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-10 21:58:32 +00:00
Linas Vepstas
d6ee33b242 add documentation, and only documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4158 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-10 16:49:44 +00:00
James LewisMoss
dbff65cc9a * src/scm/main.scm ((gnc:main)): remove the main window startup
with new user startup (moved to end of new user stuff).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4157 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-10 16:15:34 +00:00
James LewisMoss
edf821719a almost complete new user stuff.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4156 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-10 16:15:08 +00:00
James LewisMoss
c31188fbf4 * src/engine/sql/PostgresBackend.c (pgendGetAllAccountKVP): use
xaccGroupForEachAccount rather than Deeply one.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4155 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-10 16:14:13 +00:00
James LewisMoss
e4ae3e610a * src/engine/rpc/RpcUtils.c (rpcend_build_gncacctlist):
xaccGroupForEachAccountDeeply -> xaccGroupForEachAccount(...TRUE)
(rpcend_build_gncacct_verslist): same.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4154 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-10 16:13:13 +00:00
James LewisMoss
74a69a5846 * src/engine/gnc-book.c (gnc_book_set_group): free account group
when setting new one.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4153 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-10 16:12:52 +00:00
James LewisMoss
84108d7b6a * src/engine/Group.c (xaccGroupForEachAccount): change from
xaccGroupForEachAccountDeeply and add argument on whether it
should do things deeply.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4152 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-10 16:12:28 +00:00
James LewisMoss
e01b217c43 * src/engine/Account.c (xaccCloneAccountSimple): new func.
(xaccAccountEnumAsString): change arg to GNCAccountType.

* src/engine/Account.c (xaccAccountGetChildren): Add children
group if ->children == NULL.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4151 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-10 16:12:02 +00:00
James LewisMoss
7753a796be * src/gnc-ui-util.c (gnc_ui_account_get_balance):
xaccGroupForEachAccountDeeply -> xaccGroupForEachAccount(...TRUE)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4150 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-10 16:11:16 +00:00