* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* src/scm/report/account-summary.scm: fix bug.
* src/scm/html-document.scm: added handler for scatter plots.
* src/scm/report/price-scatter.scm: Added file. This eventually
should show prices over time. ATM it demonstrates scatter plots in
a meaningless report.
* src/scm/html-scatter.scm: Added file. Provides scatter plots for
reports.
* src/scm/options.scm (gnc:color->hex-string): added function.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4109 57a11ea4-9604-0410-9ed3-97b8803252fd
* many files: fix spelling errors
* src/gnome/gnc-html-guppi.c: use unsigned int for color
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4107 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/window-main.c: set the app's mdi mode from user prefs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4106 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/scm/report/net-barchart.scm: same as below
* src/scm/report/category-barchart.scm: same as below
* src/scm/report/average-balance.scm: same as below
* src/scm/report/account-piecharts.scm: don't combine liabilities
& equity together.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4102 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/dialog-column-view.c: work on gui
* src/gnome/dialog-utils.c (gnc_clist_columns_autosize): new func
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4101 57a11ea4-9604-0410-9ed3-97b8803252fd
* make-gnucash-patch.in: add --file option to allow single file
patches to be made.
* README.patches (new file): Moved patch instructions from README
file into this new file, and added detailed descriptions of all
the options for make-gnucash-patch.
* README: see above
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4098 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/window-acct-tree.c: add popup menu to account tree
* src/gnome/mainwindow-account-tree.c
(gnc_mainwin_account_tree_attach_popup): add user_data argument
for popup menu
* src/gnome/window-register.c: same as below
* src/gnome/window-main.c: same as below
* src/gnome/window-register.c: obey gnome preferences for
menubar & toolbar detachability
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4096 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/scm/report/portfolio.scm: fix bug
* src/scm/price-quotes.scm: handle 'nav' and 'price' types
* src/gnome/dialog-price-editor.c: update for nav price type
* src/quotes/finance-quote-helper.in: try 'nav' and 'price' if
'last' fails.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4094 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/Query.{ch}: added date-granularity sorting functionality
to queries.
* src/engine/date.[ch] (timespecCanonicalDayTime): new function
migrated from the scheme code.
* src/guile/gnc.gwp: added wrappers for the above.
* src/scm/date-utilities.scm (gnc:timepair-canonical-day-time):
removed, replaced by new C function.
* src/scm/report/*.scm: added checks for "no-accounts-selected".
* src/scm/report/average-balance-2.scm: New (temporary) file.
The average balance report with a rewritten calculation engine.
* src/scm/report/register.scm: Modified to use global styles
* src/scm/report/transaction-report.scm: use improved sorting ability,
get report title from options.
* src/scm/html-utilities.scm (gnc:html-make-no-account-warning): new
function. (remove-last-empty-row): minor changes.
* src/scm/report-utilities.scm: added the ability to get "numitems"
out of a stats collector for debugging purposes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4093 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/scm/date-utilities.scm: Fixed a whole lot of bugs in the
relative-date functions (did *nobody* ever test those???). Added
relative dates end-cal-year, end-current-quarter, and
end-this-month. Added comments.
* src/scm/options-utilities.scm: Changed date-options to be combo
options of both relative and absolute dates.
* src/scm/report/portfolio.scm, taxtxf.scm: adapt to usual option
conventions.
* src/scm/report/account-summary.scm: Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4079 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/SplitLedger.c (xaccSRExpandCurrentTrans): if expanding
a transaction, try to show all of it
* src/register/table-gnome.c (gnc_table_show_range): new func
* src/register/gnome/gnucash-sheet.c (gnucash_sheet_show_range):
new func
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4075 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/scm/report/net-barchart.scm: New file, it is the merger of
income-expense-graph.scm and net-worth-timeseries.scm.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4052 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/scm/report/*.scm: adapt to changed gnc:make-report-anchor.
* src/scm/html-utilities.scm (gnc:make-report-anchor):
gnc:report-add-child-by-id! is now used inside here. API changed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4051 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/druid-commodity.c: do gncFileNew after gncFileQuit
* src/guile/gnc.gwp: remove pokey functions (not used anymore)
* src/scm/main.scm: fix bug. don't do new user dialog if we
have a file on the command line.
* src/FileDialog.c (gncAddHistory): fix bug. check for NULL.
* src/guile/gnucash.c.in: include string.h
* src/gnome/window-main.c: don't restore state for old format files
2001-04-24 Dave Peticolas <dave@krondo.com>
* src/scm/options.scm: check for deleted accounts in account
list option. fix bug.
* src/scm/report/pnl.scm: filter out non income/expense accounts
* src/scm/report/budget-report.scm: remove
* src/scm/qif-import/qif-to-gnc.scm: remove cruft
* src/engine/Account.c: take out pokey warnings
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4043 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/scm/html-utilities.scm:
(gnc:html-table-append-ruler/markup!) new function. Also modify
(gnc:html-build-acct-table) and other functions to use global row
styles.
* src/scm/html-table.scm:(gnc:html-table-prepend-row/markup!) fix
bug.
* src/scm/report/balance-sheet.scm: use new global row styles.
* src/scm/report/stylesheet-*.scm: add new global row styles.
* src/scm/report/transaction-report.scm: use new global row styles,
fix bug with memo display. Remove local color options.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4042 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/FileDialog.c: call book-opened-hook and book-closed-hook
where appropriate
* src/gnome/dialog-column-view.c: change to single-parent model
* src/gnome/top-level.c: don't do MID state saving and restoring
here... do it in the book save/load hooks.
* src/gnome/window-main.c: the configstring stored in MDI is now a
Scheme form which restores the window state. save/restore it.
Also, change the MDI session name to encode the book URL
(have to encode it to escape some chars, notably /, which MDI
doesn't like in section names)
* src/scm/main-window.scm: new file. get the main-window
save/restore functions out of prefs.scm
* src/scm/report/scm: only one parent per report; write save
routines to save all parents and children.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4039 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/guile/gnc.gwp: g-wrap all the euro-related functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4036 57a11ea4-9604-0410-9ed3-97b8803252fd