Commit Graph

6426 Commits

Author SHA1 Message Date
Joshua Sled
941b7dacc5 2002-12-08 Joshua Sled <jsled@asynchronous.org>
* src/engine/SchedXaction.h: Doxygen-related changes.

	* src/register/ledger-core/split-register-layout.c
	(gnc_split_register_layout_add_cells): Change F(DEBT|CRED)_CELL
	types to FORMULA_CELL from QUICKFILL_CELL.

	* src/register/register-gnome/gncmod-register-gnome.c
	(libgncmod_register_gnome_LTX_gnc_module_init): Add
	formulacell-gnome override to gnc_register setup.

	* src/register/register-core/formulacell.c:
	* src/register/register-gnome/formulacell-gnome.c: Filled in a
	long-thought of idea for a formula cell: can contain text unlike a
	pricecell, but doesn't really want to do auto-complete like a
	quickfill cell [what we had been using].  This allows us to
	provide the gnome formula cell which can remap the keypad '.'
	character based on locale; addresses Bug#97065, which is the
	cause of Bugs#97063 and #97062.

	* src/gnome/glade/sched-xact.glade: Remove "[Last Day]" option;
	add "/last day" to 29/30/31 options in gnc-frequnecy month-based
	selections.

	* src/gnome/dialog-scheduledxaction.c (new_button_clicked): Change
	default new SX frequency to monthly; fixes Bug#100615.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7662 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-08 22:25:40 +00:00
Derek Atkins
33d989eb1e * README.cvs: mention gettextize breakage and "cvs up -C"
workaround.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7661 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-08 18:01:25 +00:00
Christian Stimming
2dbd57d31d Revert latest change in category-barchart.scm -- in fact there wasn't an
error at all. (The problems were only in commodity-utilities.scm).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7660 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-08 16:04:20 +00:00
Christian Stimming
2e3f7e07ff 2002-12-08 Christian Stimming <stimming@tuhh.de>
* src/report/standard-reports/category-barchart.scm: Fix some
	multi-currency bugs introduced during the progress bar work.

	* src/report/report-system/commodity-utilities.scm: For
	calculation of weighted average, use all accounts and not only
	currency/stock accounts now with the new exchange system.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7659 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-08 15:59:27 +00:00
Christian Stimming
b27bdceef8 2002-12-08 Christian Stimming <stimming@tuhh.de>
* src/import-export/import-backend.c: Fix zero amount in the
	'other' split of an imported transaction by now using
	SplitSetBaseValue.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7658 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-08 14:55:45 +00:00
Christian Stimming
4d8b8c8625 More comments about how to use functions (xaccSplitSetBaseValue).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7657 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-08 14:54:37 +00:00
David Hampton
0a875d8fe7 Make the register's "Set Date Range" window more intuitive by moving a
button.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7656 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-08 10:56:04 +00:00
David Hampton
288cc88f9e Tweak the filename normalization routines. Ignore anything starting
with blah:// unless its file://.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7655 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-08 10:54:42 +00:00
Christian Stimming
39d7d736a1 more doxygen improved documentation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7654 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-08 02:19:10 +00:00
Benoit Grégoire
1f5adc6bc4 2002-12-7 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/generic-import.glade:  Add user instructions,
	get rid of apply button.
	* src/import-export/import-main-matcher.c: Speed optimizations,
	implement import status notification with background color.
	Clarify strings.

	Note:  The matcher is now feature complete, except for manual
	transaction editing.  (More optimizations and code review still
	to be done)  I am awaiting comments about the matcher UI and
	and investment transaction importing.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7653 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-08 01:47:24 +00:00
David Hampton
f3c166b44d Remove Finance::Quote from the repository.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7652 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-08 01:08:48 +00:00
Christian Stimming
e9406191ed 2002-12-07 Christian Stimming <stimming@tuhh.de>
* configure.in: Require openhbci 0.9.4 for HBCI version choosing.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7651 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-08 00:24:29 +00:00
David Hampton
eb868d71d5 Consolidate all knowledge about Finance::Quote sources into one
place. Rename functions.  Determine if F::Q is installed properly, and
if so, what quote sources are installed.  Clean up actual calls to
F::Q.  If F::Q isn't available, dim the entire quotes frame in the
Edit Account dialog, and add a warning message about F::Q.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7650 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-08 00:21:25 +00:00
Derek Atkins
cd1b6b6b37 * src/engine/gnc-commodity.c: change PWARN() to DEBUG() in
gnc_commodity_equal(), because the average user doesn't need
	  to know why commodities are not equal.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7649 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 23:50:14 +00:00
Derek Atkins
f559c850a3 * src/register/ledger-core/split-register-control.c:
- Don't grab the register account for multi-split txns.  Just return NULL.
	  - Better logic in the exchange-rate handler function for when to
	    pop up the dialog, and what to put into it.
	  - add an error dialog for corner cases where we want to force
	    the user to expand the txn in order to get proper conversions.

	* src/register/ledger-core/split-register-model-save.c:
	  - export "split_needs_amount()" for use elsewhere
	  - fix the logic in handling debcred changes, in particular for
	    multi-currency cases.  Convert amount->value->amount properly.
	  - handle the case where you change the exchange-rate manually
	    (and do nothing else).
	  - fix the logic in the save-split post-processing for what gets
	    converted when.

	* src/register/ledger-core/split-register-p.h:
	  - export the "split_needs_amount()" api for use in the register.

	FIXES bug #100489


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7648 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 22:37:50 +00:00
Benoit Grégoire
96c1ab0cb9 Stubborn Changelog...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7647 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 21:17:38 +00:00
Benoit Grégoire
8b98f87cc5 2002-12-7 Benoit Gr�goire <bock@step.polymtl.ca>
More Doxygenification.  Created an Engine module, and a
	Deprecated list.  Unfortunately, unless we turn on EXTRACT_ALL
	(not very practical currently) not all functions will appear
	unless they are all documented.
	* src/engine/Transaction.h: More Doxygenification
	* src/engine/Account.h: Doxygenify
	* src/doc/doxygen.cfg.in: Minor config change.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7646 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 21:16:01 +00:00
Christian Stimming
f320ed5d48 Update translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7645 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 19:39:00 +00:00
Christian Stimming
4fe83da21c 2002-12-07 Christian Stimming <stimming@tuhh.de>
* src/import-export/import-backend.c: Fix adding the balancing
	split.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7644 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 19:36:02 +00:00
Christian Stimming
47a67ab195 2002-12-07 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/gnc-hbci-utils.c: Correctly reparent the
	HBCI widgets when the parent window changes.

	* src/import-export/hbci/hbci-interaction[P].[hc],
	hbci-progressmon.c, hbci.scm: Add option for "close on finish" of
	the HBCI log window.

	* src/import-export/hbci/druid-hbci-initial.c, glade/hbci.glade:
	Add dialog for choosing HBCI version.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7643 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 19:21:30 +00:00
Christian Stimming
0701b43de2 Fix i18n problems.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7642 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 19:04:10 +00:00
Christian Stimming
f75485b2b2 2002-12-07 Christian Stimming <stimming@tuhh.de>
* po/el.po: Updated translation by Nikos Charonitakis
	<charosn@her.forthnet.gr>


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7641 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 17:41:54 +00:00
Christian Stimming
635def6e42 2002-12-07 Christian Stimming <stimming@tuhh.de>
* src/engine/Transaction.h: Extensively added function
	documentation (in order to avoid further amount/value confusion
	down the road), watch doxygen output. Added a lot of 'const' all
	over the place.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7640 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 13:05:45 +00:00
Christian Stimming
407049ed86 2002-12-07 Christian Stimming <stimming@tuhh.de>
* po/nl.po: Fix use of msgid_plural by adding the appropriate
	header entry.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7639 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 10:03:13 +00:00
Benoit Grégoire
70cf41be4c Missing changelog
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7638 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 08:16:55 +00:00
Benoit Grégoire
aa30d872e7 2002-13-6 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/ofx/gnc-ofx-import.c:  Do the "right"
	thing for setting split amount and value.
	* src/import-export/import-main-matcher.c: Cosmetic
	improvements for balance display and window resizing.
	* All other affected files:  Doxygenify everything.  Take a
	look, run make doc, and open src/doc/html/index.html


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7637 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 08:13:46 +00:00
Derek Atkins
e68a9bbe19 * po/nl.po -- don't use msgid_plural -- it fails to work.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7636 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 04:54:29 +00:00
Derek Atkins
ad293e3fc0 * revert patch in src/engine/Transaction.c -- imbalance is computed
by _value_ -- ALWAYS.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7635 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 04:47:55 +00:00
Benoit Grégoire
50edf78b1d 2002-12-6 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/import-backend.c:  Fix for gcc2


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7634 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 01:29:11 +00:00
Christian Stimming
83240ff959 Add include for ngettext wrapping.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7633 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 01:21:34 +00:00
Benoit Grégoire
b6092223f6 2002-12-6 Benoit Gr�goire <bock@step.polymtl.ca>
Huge patch, this is the new generic import
	architecture/transaction matcher.  Many old
	files were renamed, split or deleted.

	* src/engine/Transaction.c,h:
	- Add a DxaccSplitSetAmount function,
	- Fix a bug in xaccSplitsComputeValue (Split values were
	sometimes being summed, which is illogical) that caused
	xaccTransGetImbalance to sometimes return incorrect values.
	Somebody please review this.  Playing in the engine during
	freeze isn't ideal.

	* src/import-export/import-backend.c,h: There is now a
	real backend, completely independent of the GUI.

	* src/import-export/gnc-gen-transaction.c: This is Christian's
	old matcher, I tried to maintain compatibility, but couldn't
	really test.  Please note that there is some code
	simplification that could be done there now that there is a
	clean backend, and that some values passed between the functions
	might no longuer have any effect.

	* src/import-export/ofx/gnc-ofx-import.c:  Update for new
	matcher.  Use the currency reported by libofx and
	xaccSpiltSetBaseValue when adding a banking/credit card
	transaction.

	* src/import-export/import-account-matcher.c,h: This is a
	very generic and flexible account matcher/picker.

	* src/import-export/import-commodity-matcher.c,h: This is
	a generic commodity matcher/picker.

	* src/import-export/import-main-matcher.c,h: This is the
	main transaction matcher GUI. It's mostly feature complete
	and should be fairly stable, but probably leaks memory.

	* src/import-export/import-match-map.c,h: Derek Atkin's
	generic string/account matching infrastructure.

	* src/import-export/import-match-picker.c,h:  This is the
	interface to pick a matching transaction.  It has been
	completely ripped from the backend.

	* src/import-export/import-settings.c,h:  All user
	settings (or compiled-in settings) are now abstracted in
	an opaque structure with getter functions.

	* src/import-export/import-utilities.c:	These are utility
	functions to help import module writers.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7632 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 00:34:28 +00:00
Christian Stimming
06e6ad6483 2002-12-06 Christian Stimming <stimming@tuhh.de>
* po/nl.po, po/uk.po: Updated translations by Hendrik-Jan Heins
	<hjh@passys.nl> and Volodymyr M. Lisivka <lvm@mystery.lviv.net>.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7631 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-06 22:58:19 +00:00
Derek Atkins
cd25e8eb52 * src/register/ledger-core/split-register-control.c -- Fix the
amount display so that the exchange dialog always shows the
	  "amount" in the the local (register) currency.  It will convert
	  the amount to the txn currency if necessary in cases where all
	  accounts involved in a split are different (strange edge case).
	  Fixes #100277


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7630 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-06 21:45:12 +00:00
David Hampton
a287a86ab0 Make VWD price quotes work. Add a run-time check for the presence of
the LWP (libwww-perl) module.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7629 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-06 08:42:02 +00:00
Derek Atkins
1c5fd9f7a9 * src/gnome-utils/dialog-transfer.[ch]: add two APIs to set the
exchange rate and to set "swapped currencies".  The former will
	  set the "price" and the latter will set a (as of yet unused) flag.
	* src/register/ledger-core/split-register-control.c: Don't pop up
	  the exchange dialog when it is not needed, even when reqested.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7628 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-06 06:58:57 +00:00
Derek Atkins
53b8443e7c Add a comment.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7627 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-06 01:17:32 +00:00
Derek Atkins
2de8cca0b3 * src/gnome/glade/register.glade -- add "Edit Exchange Rate" menu
items to the Actions menu and the context menu
	* src/gnome/gnc-split-reg.c -- turn off Exchange Rate editing on
	  "read-only" registers
	* src/register/ledger-core/split-register-control.c -- fix the logic
	  for when we pop-up the exchange-rate dialog, in particular when the
	  user requests it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7626 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-06 01:00:48 +00:00
Derek Atkins
b300c13888 * revert patch -- not needed. Oops.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7625 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-05 23:02:33 +00:00
Derek Atkins
998298e25f * src/gnome-search/Makefile.am: add GDK_PIXBUF_CFLAGS because
it is pulled in by gtkhtml, which is pulled in from window-help.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7624 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-05 21:40:28 +00:00
David Hampton
235248a0f4 Catch errors in the execution of the finance-quote-helper script and
print a warning message.  Allow stock index names to be passed to
finance-quote-helper.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7623 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-05 07:19:46 +00:00
Derek Atkins
9821b8879b * src/import-export/qif-import/qif-parse.scm:
* src/import-export/qif-io-core/qif-parse.scm:
	  deal with broken QIF files that give broken bang-fields.  In
	  particular, handle the case where it supplies "!Type Bank"
	  instead of "!Type:Bank"


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7622 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-05 06:37:22 +00:00
Derek Atkins
ae8112a77c * remove src/experimental/ofx from the build system
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7621 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-05 06:11:37 +00:00
Derek Atkins
6a3d562957 * README: fix references to g-wrap
* acinclude.m4: fix g-wrap test to fail properly if it cannot
	  find g-wrap-config


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7620 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-05 06:05:33 +00:00
Derek Atkins
7ec2795267 * src/gnome/gnc-split-reg.c: add a handler for
exchange-rate menu items..  Partial fix for #100285


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7619 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-05 00:11:49 +00:00
Derek Atkins
9380dc52f0 * src/register/ledger-core/split-register-p.h:
* src/register/ledger-core/split-register.h:
	  move handle_exchange() API from -p.h to .h to export it
	  for the menus to call.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7618 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-04 18:42:12 +00:00
David Hampton
ace48f6712 Normalize the path name before using it to open a config files. This
insures that you always get the same config file regardless of how you
reference the data file.  #90487


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7617 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-04 07:31:53 +00:00
David Hampton
f92fe14fac Write out a new 1.8 version of the config file. Add the 1.8 version to
the list of files to try an read when reading the config. #100266


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7616 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-04 05:10:10 +00:00
David Hampton
da5e7a9b4f Put the build date into the about box for development versions of
gnucash. #99775


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7615 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-04 02:09:17 +00:00
David Hampton
d3821422dd Don't erase the just loaded account information because the backend is
reporting that the file is from a previous version.  Let the caller
decide after querying the user. #97270.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7614 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-04 02:08:51 +00:00
Derek Atkins
b0fad26f7b Closed bug # 97690
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7613 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-04 00:55:14 +00:00