* 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
* 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
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
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
(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
* src/engine/gnc-pricedb.c (gnc_pricedb_lookup_nearest_in_time):
Fixed this function so that it works properly now.
* src/scm/commodity-utilities.scm
(gnc:get-match-commodity-splits): fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4145 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/scm/report/price-scatter.scm: use the configurable report
title.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4140 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/scm/report/price-scatter.scm: Added new option: get weighted
average prices from the past, not only the instant prices.
* src/scm/commodity-utilities.scm
(gnc:get-commodity-totalaverage-prices): Added
function. Eventually this could be an extension/alternative to
prices from the pricedb.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4138 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/scm/options-utilities.scm, src/scm/report/price-scatter.scm:
moved gnc:options-add-marker-choice! from price-scatter.scm to
options-utilities.scm.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4133 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/scm/commodity-utilities.scm: Always use the absolute value
when building a weighted average.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4127 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/scm/report/price-scatter.scm: More experiments with scatter
plots which are working now. Doesn't look too nice though.
* src/scm/commodity-utilities.scm
(gnc:get-match-commodity-splits): new function.
* src/scm/date-utilities.scm (gnc:date->timepair): new
function. Code cleanup.
* src/guile/gnc.gwp: more price handling functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4118 57a11ea4-9604-0410-9ed3-97b8803252fd
* make-gnucash-patch.in: add --manifest option (allow use of a
manifest file. Also, change --file option to allow multiple
files.
Fix bug in previous change.
* README.patches: Updated to reflect new capabilities.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4113 57a11ea4-9604-0410-9ed3-97b8803252fd