generators for various objects. This simplifies the distributed
generation of kvp-option dialogs.
* app-utils.scm: export kvp-option-registry functions
* option-util: add option_db_changed() function
* business-gnome.scm: add "File -> File Preferences" menu item
which is the kvp-option dialog for the Book.
* business-prefs.scm: register a kvp-option generator for gnc:id-book
* gnc-book: add gnc_book_kvp_changed() function
* gw-engine-spec.scm: wrap gnc_book_kvp_changed
* dialog-options.c: only call the SCM apply_cb if the optiondb
actually changed.
* gnome-utils.scm: create gnc:kvp-option-dialog procedure to create
an kvp-option dialog for the speficied type. Export this procedure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7097 57a11ea4-9604-0410-9ed3-97b8803252fd
option_db_destroy()
* options.scm: fix scm->kvp method; fix a typo; add clear-kvp?
argument to gnc:options-scm->kvp for whether to clear out the
kvp before saving it.
* business-gnome.scm: add code to test the kvp option-dialog
* kvp-scm.c: fix the delete_at_path() function to actually work right.
* dialog-options: create a function (and support routines) to
use SCM apply_cb and close_cb callback functions:
options_dialog_set_callbacks()
* gw-gnome-utils-spec.scm: wrap <gnc:OptionWin*>, options_dialog_new(),
options_dialog_destroy(), options_dialog_build_contents(), and
options_dialog_set_callbacks()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7096 57a11ea4-9604-0410-9ed3-97b8803252fd
* gnc-file.c: change the open/closed book hooks to take a
<gnc:Session*> instead of a string.
* binary-import.scm: fix the book-opened-hook.
* main-window.scm: fix the book-opened/closed-hook calls
* main.scm: fix the book-opened/closed-hook calls
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7095 57a11ea4-9604-0410-9ed3-97b8803252fd
and kvp->scp. Implement these two methods for most of the options.
* app-utils.scm: export the kvp->scm and scm->kvp procedures
* business-options.scm: Implement the kvp->scm and scm->kvp methods
for the business options.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7094 57a11ea4-9604-0410-9ed3-97b8803252fd
for changing the book-opened-hook and book-closed-hook
prototypes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7093 57a11ea4-9604-0410-9ed3-97b8803252fd
This function will clear a sub-tree out of a kvp_frame.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7090 57a11ea4-9604-0410-9ed3-97b8803252fd
* business-options.c: implement invoice option for the dialog
* gncEntryLedgerLoad.c: fix a compiler warning
* invoice.scm: make report visible; deal with no invoice; make
invoice a visible option on the general page; deal with "printing"
un-posted invoices.
* receivables.scm: remove code I don't need
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7085 57a11ea4-9604-0410-9ed3-97b8803252fd
options to plug into the options dialog.
* businessmod-gnome: initialize business options
* business-utils: pack into box FALSE, not TRUE
* owner-report: put the company into the options dialog instead of
hiding it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7084 57a11ea4-9604-0410-9ed3-97b8803252fd
* dialog-options: publish gnc_options_dialog_changed_internal() so
pluggible options can set the flag, too.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7083 57a11ea4-9604-0410-9ed3-97b8803252fd
the supplied owner actually matches..
Internationalize the business reports a bit better.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7081 57a11ea4-9604-0410-9ed3-97b8803252fd
added "links" to the company, invoices, and company-report.
Create a "Business Reports" menu item under "Reports" and put the
business reports there. This required a new startup hook to allow
dynamic creation of the Report Menu. Change the aging reports to
use Invoices and Lots instead of the transaction description to
differentiate actual companies.
* dialog-invoice: publish the function to open a company-report
* business-urls: hooks into gnc-html for business objects.
Initialize at module load-time. wrap the business url types.
* business-core: create gnc:owner-from-split which is used by a
bunch of the business reports. wrap gncOwnerCopy().
* fix the "Create Test Data" extension
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7080 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/druid-hierarchy.c (gnc_get_ea_locale_dir): If current
locale doesn't work for account hierarchy druid, then check all
abbreviated versions of that locale.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7079 57a11ea4-9604-0410-9ed3-97b8803252fd
function that adds a list of valid account-types; this limits the
account-tree dialog to only "reasonable" accounts.
* option-util.[ch]: add function to obtain GList* of valid
account-types. NULL means "all".
* dialog-options: Limit account-list by types.
* Update payables and receivables reports to limit account types.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7076 57a11ea4-9604-0410-9ed3-97b8803252fd
Window. Fill in the callbacks required to get the menu to work.
* Create a hook into the "owner-report" and link that into the
Invoice Window, so you can print the report from any Invoice.
* add a hook in the entry ledger to obtain the current Query (to
set the sort order).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7075 57a11ea4-9604-0410-9ed3-97b8803252fd
popup. Only set the popup for Read-Write invoices.
* business/business-gnome/glade/invoice.glade: define the popup
menu in glade.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7068 57a11ea4-9604-0410-9ed3-97b8803252fd
space. This was because the HBOX was had both expand and fill set to
true. Oops.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7062 57a11ea4-9604-0410-9ed3-97b8803252fd
gnc_build_url() (or gnc:html-build-url in scheme) instead of
assuming the HTML prototype string. Unfortunately the
help-window-index.scm cannot be fixed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7060 57a11ea4-9604-0410-9ed3-97b8803252fd
* accounts/fr_FR/*: Add french account hierarchy template by
Yannick LE NY <y-le-ny@ifrance.com> (might need more work though.)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7057 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome-utils/gnc-dense-cal.c (gnc_dense_cal_mark_remove):
Unrealistic marks [such as '-1'] are now ignored instead of
hitting assertion.
* src/gnome/dialog-scheduledxaction.c: Dead code removal; naming
clarifications.
(gnc_sxed_check_consistent): Added.
(gnc_sxed_check_changed): Added; used when the cancel button is
pressed. SX editor now queries the user if the SX has changed.
(gnc_sxed_save_sx): Added; seperated from consistency-check.
(_gnc_sxed_get_widgets): Added; many glade_xml_get_widget(...)s
removed from code.
(free_var_numeric): Added; we now cleanup the temporary variable
table correctly after doing balance checking.
(schedXact_editor_create_ledger): RegWidget toolbar shouldn't
expand; fixed.
(putSchedXactionInDialog): Fixed assertion-failure/abort when a
previously-unscheduled SX is scheduled.
* src/engine/SchedXaction.c (xaccSchedXactionGetNextInstance),
(xaccSchedXactionGetInstanceAfter): Fixed bug in
number-of-occurance instance-state processing.
* src/register/ledger-core/gnc-regwidget.c:
* src/gnome/dialog-schedxaction.c:
* src/gnome/dialog-sxsincelast.c:
* src/engine/SchedXaction.[ch]:
* src/engine/FreqSpec.[ch]: Dead code removal/cleanup.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7054 57a11ea4-9604-0410-9ed3-97b8803252fd
their integer values). This is an incompatible change -- old
business XML objects will not load properly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7053 57a11ea4-9604-0410-9ed3-97b8803252fd
* gw-gnome-utils-spec: wrap URLType type, #defines, and gnc_build_url()
* get the rest of the C code to use URLTypes properly
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7052 57a11ea4-9604-0410-9ed3-97b8803252fd