Commit Graph

5904 Commits

Author SHA1 Message Date
Derek Atkins
c6ca88665b * kvp-option-registry.scm: create a registry of kvp-options
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
2002-07-08 14:52:55 +00:00
Derek Atkins
5904e6d487 * gw-app-utils-spec.scm: wrap <gnc:OptionDB*>, option_db_new,
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
2002-07-08 04:38:04 +00:00
Derek Atkins
25e3a16191 * hooks.scm: fix documentation
* 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
2002-07-08 00:13:12 +00:00
Derek Atkins
d461f68d6f * options.scm: change gnc:make-option; add two new args, scm->kvp
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
2002-07-07 20:52:40 +00:00
Derek Atkins
9bd373af71 * gw-engine-spec.scm: wrap gnc_session_get_url(), in preparation
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
2002-07-07 03:15:02 +00:00
Derek Atkins
783e9926b9 Return a kvp_value instead of a kvp_frame (type-checking is your friend)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7092 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-06 22:47:14 +00:00
Derek Atkins
1aa8299725 * kvp-scm: implement KVP_TYPE_FRAME kvp-values
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7091 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-06 22:44:13 +00:00
Derek Atkins
62c76bce36 * kvp-scm: create gnc_kvp_frame_delete_at_path() and wrap it.
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
2002-07-06 21:50:14 +00:00
Derek Atkins
873f0bf369 * gw-kvp-spec.scm: wrap kvp_slot_set_slot_path_gslist(),
kvp_slot_get_slot_path_gslist(), and gnc_book_get_slots()


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7089 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-06 19:35:23 +00:00
David Hampton
0ae2f8f5aa *** empty log message ***
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7088 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-06 05:48:46 +00:00
Derek Atkins
796adbd84c * invoice.scm: add the ability to show the payments applied to
the invoice


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7087 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-05 16:23:27 +00:00
Derek Atkins
11894edfda * gw-engine-spec.scm: wrap gnc_lot_get_split_list
* gw-business-core-spec.scm: wrap gncInvoiceGetPosted{Acc,Txn,Lot}


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7086 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-05 16:22:19 +00:00
Derek Atkins
c917663ad3 * business-core.scm: fix a typo
* 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
2002-07-04 15:31:55 +00:00
Derek Atkins
49809dd904 * business-options: (new files) implement owner/customer/vendor
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
2002-07-04 14:24:50 +00:00
Derek Atkins
74388444a2 * option-util.c: add gnc_option_get_option_data() function
* 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
2002-07-04 14:19:51 +00:00
Derek Atkins
512bb1be52 Actually set the right copyright date
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7082 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-04 03:40:12 +00:00
Derek Atkins
654dc44be8 Change the 'owner' option.. define an owner-type and make sure
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
2002-07-04 03:36:32 +00:00
Derek Atkins
7347c8c378 * moved receivable and payable aging reports to business-reports;
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
2002-07-04 02:39:19 +00:00
Christian Stimming
f6e2119afa 2002-07-03 Christian Stimming <stimming@tuhh.de>
* 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
2002-07-03 22:21:02 +00:00
David Hampton
7c85fa2b35 If 'auto decimal places' is set then make sure all numbers have a
decimal point in them.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7077 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-03 05:59:51 +00:00
Derek Atkins
702d5f3529 * options.scm: Create gnc:make-account-list-limited-option
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
2002-07-03 00:47:02 +00:00
Derek Atkins
91a961d792 * fill out the Invoice Window Menu, based upon the Register
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
2002-07-02 22:10:18 +00:00
Derek Atkins
94946605f6 Add DATE_ENTERED parameter into the searchable fields
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7074 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 22:08:00 +00:00
Derek Atkins
bbe97eea70 A few more typos
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7073 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 22:04:22 +00:00
Derek Atkins
9e5a9336db Fix a typo that could crash the report
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7072 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 21:50:17 +00:00
Derek Atkins
ff6708d932 change a bunch of "callback" functions to non-static, so they can
be used elsewhere.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7071 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 21:29:29 +00:00
Derek Atkins
24fc191ac3 Fix a typo
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7070 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 21:28:45 +00:00
Derek Atkins
ab19dd4c7b * add a menubar to the Invoice Window in glade
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7069 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 15:40:48 +00:00
Derek Atkins
3f22ee757d * business/business-gnome/dialog-invoice.c: use glade for the
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
2002-07-02 15:18:27 +00:00
Derek Atkins
e5b6d357a5 * register/register-gnome/gnucash-sheet.c: allow a caller to
"unset" the popup menu by passing a NULL popup.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7067 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 15:14:21 +00:00
Derek Atkins
28fabff82f * business-gnome/dialog-invoice.c: make all my callbacks
non-static; remove the toolbar creation code.
	* business-gnome/glade/invoice.glade: create the toolbar in glade.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7066 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 04:30:34 +00:00
Derek Atkins
6b4cffd608 Revert to using insensitive() widgets, per discussion on #gnucash
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7065 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 02:01:33 +00:00
Derek Atkins
339d8da55b As per suggestions on #gnucash, use hide() instead of insensitive() for
unavailable toolbar buttons


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7064 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 01:37:36 +00:00
Derek Atkins
5e0301a9cd Instead of hiding the invalid toolbar entries, just make them
insensitive at the appropriate times.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7063 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 01:04:51 +00:00
Derek Atkins
5b7d7cf199 Fix the "size" problem -- the customer/vendor widget was taking up too much
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
2002-07-02 01:04:01 +00:00
Joshua Sled
eca16b42dc 2002-07-01 Joshua Sled <jsled@asynchronous.org>
* src/gnome/dialog-scheduledxaction.c:
	* src/gnome/dialog-sxsincelast.c:
	* src/app-utils/prefs.scm: Added options/code-support for
	saving/restoring sizes of SX-related windows.  Fixes bug 86007.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7061 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 00:06:22 +00:00
Derek Atkins
40f6ede615 * Convert all (well, most all) HTML URL-generators to use
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
2002-07-01 23:01:12 +00:00
Christian Stimming
40c360338a 2002-07-02 Christian Stimming <stimming@tuhh.de>
* 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
2002-07-01 22:24:28 +00:00
Christian Stimming
a3ac6afc6b Fix missing gnome_libdir.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7056 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-01 21:30:09 +00:00
Derek Atkins
e576f51997 Don't assume gnu-date; use +FORMAT instead (which is more portable)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7055 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-01 20:52:08 +00:00
Joshua Sled
fab186c56b 2002-07-01 Joshua Sled <jsled@asynchronous.org>
* 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
2002-07-01 19:12:37 +00:00
Derek Atkins
52b503aca9 * fix the business XML to use symbolic names for enums (instead of
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
2002-07-01 18:31:48 +00:00
Derek Atkins
edc1a34ecc * gnc-html: convert URLType from enum to char*
* 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
2002-07-01 17:27:11 +00:00
David Hampton
6cd1c16df0 Fix a comment.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7051 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-29 20:28:56 +00:00
David Hampton
9dec16811b Add the current version number or cvs build date to the splash screen.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7050 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-29 20:28:31 +00:00
Derek Atkins
f232f64158 Add a 'Reconciled Date' column to print the date of reconciled splits.
It is turned off by default.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7049 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-29 15:47:06 +00:00
Derek Atkins
72ba391d45 wrap SPLIT_DATE_RECONCILED parameter
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7048 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-29 15:37:23 +00:00
David Hampton
089f36853f Use the actual version number.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7047 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 22:51:04 +00:00
Chris Lyttle
2c66ccb656 updated image to remove version info
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7046 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 22:42:17 +00:00
Chris Lyttle
9c3904576b updated image to remove version info
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7045 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 21:56:56 +00:00