Commit Graph

9444 Commits

Author SHA1 Message Date
Andreas Köhler
e8f409211a Initialize some variables before usage so that gcc does not complain.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13798 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-17 14:30:34 +00:00
Neil Williams
293e60d88f Final changes for QOF 0.6.4 - Improvements in map handling.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13797 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-17 13:06:33 +00:00
Neil Williams
c8cffa2094 updated en_GB translation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13796 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-17 09:05:19 +00:00
Chris Lyttle
b58efd00d1 update to release 1.9.5
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13794 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-16 23:32:30 +00:00
Derek Atkins
4921f27c79 Add new files to make the string freeze that define the
interface to choose a customer or vendor for a hand-entered
	  transaction.  Hopefully we can simplify the input by allowing
	  users to enter a transaction directly and assigning it to a
	  customer/vendor by hand (rather than going through the business
	  interfaces).



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13793 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-16 22:25:39 +00:00
Andreas Köhler
5362a54874 Add a string to final page of encodings druid.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13792 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-16 21:19:06 +00:00
Derek Atkins
cf565e278c need to #include gmodule.h.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13791 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-15 23:21:37 +00:00
Chris Shoemaker
e048e7e7f7 Avoid trying to represent "forever-ago" with a timepair.
Instead, call gnc:accountlist-get-comm-balance-at-date when we really just
   want the balance at one date.
   This fixes the retained-earnings calculation on the balance sheet report.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13790 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-15 21:37:00 +00:00
David Hampton
54374be00d Replace "commodity" with "security" where it is user visible. If its
possible to determine that the user is operating on a currency instead
of a commodity, update titles/labels to specify "security". Fixes
338382.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13789 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-15 21:26:56 +00:00
David Hampton
c29ce7478d Clean up the xml file some by dropping empty kvp strings/frames and
'false' placeholder values.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13788 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-15 18:50:59 +00:00
Andreas Köhler
ff513a4fcc Fix to compile on systems with glib < 2.9.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13787 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-15 18:10:22 +00:00
David Hampton
dc28af130f The kvp_frame_get_string() function returns a pointer to an internal
string.  Mark it 'const' to prevent callers from trying to free it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13786 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-15 16:40:03 +00:00
David Hampton
39fad14808 Add a per-account "hidden" flag, and update the accounts page and the
account quickfill to respect this flag.  Also flip the "hide zero
balance" flag to a "show zero balance" flag for symmetry.  Implements
87077.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13785 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-15 03:52:44 +00:00
David Hampton
e1fdd98f98 Allow the account tree view callback to run in addition the the page
callback.  Fixes 303995.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13784 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-15 00:14:19 +00:00
David Hampton
da7b7787c0 Clarify text regarding the lines in the register. Fixes 338479.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13783 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 22:56:06 +00:00
David Hampton
8fd1f3a93a Fixes to compile with gcc4.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13782 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 22:44:28 +00:00
Andreas Köhler
14ce276877 Initial support to decode old, ambiguous data files, missing an encoding declaration, with the help of the user.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13781 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 17:38:57 +00:00
Derek Atkins
d9c78bd0fe Fix a bunch of 64-bit compile issues.
* src/engine/Transaction.c:
	* src/engine/test/test-date.c:
	* src/backend/file/test/test-dom-converters1.c:
	  Fix 64-bit compile: Use G_GUINT64_FORMAT instead of %llu or lld
	  for Timespec seconds.
	* src/app-utils/gnc-ui-util.c:
	  Fix 64-bit compile issues:
	  - Use QOF_SCANF_LLD instead of GNC_SCANF_LLD.
	  - Use QOF_SCANF_LLD and G_GINT64_FORMAT properly.
	  - replace %lld with G_GINT64_FORMAT



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13780 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 16:45:10 +00:00
David Hampton
4ee1e008a8 Add a new event for when a split associated with account is changed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13779 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 05:37:34 +00:00
David Hampton
5d4b4c7b22 Improve the performance of the listen_for_accounts function. Never
rebuild the list_store from scratch as the time required to sort each
account insertion takes forever with a large number of accounts.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13778 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 05:36:42 +00:00
David Hampton
5f3491f7d3 Finish cleaning up old uses of NS_ISO. Use the C is_currency function
for both C and Scheme calls.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13777 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 03:49:14 +00:00
David Hampton
9c24273f83 Replace NS_ISO with NS_CURRENCY. This substitution was already
performed by the called functions, so there this change is purely
cosmetic.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13776 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 02:36:00 +00:00
David Hampton
df6d6c6835 Another comment.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13775 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 02:31:07 +00:00
David Hampton
94ab607bb5 Add a couple of comments.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13774 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 02:29:53 +00:00
Andreas Köhler
9b47d47ec4 Fix loop of split account reassignments in xaccGroupMergeAccounts, because the commit of one split will change the list itself. Potentially fix 337048.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13773 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-13 19:39:37 +00:00
Christian Stimming
e7abbc61d4 Update/merge po files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13772 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-13 09:01:44 +00:00
David Hampton
751e720a9f Update the determination of what's a currency and what isn't. Fixes
337804.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13771 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-12 15:22:57 +00:00
Chris Shoemaker
a83d0c0502 Test for support of the tree-model-sort interface instead of one particular
implementation.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13770 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-12 02:31:23 +00:00
Andreas Köhler
8b4f3a1570 Fix leakage of old books.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13769 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-11 20:49:35 +00:00
Derek Atkins
dd321449ce * lib/libqof/qof/qofbookmerge.c: fix a few memory leaks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13768 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-11 15:20:04 +00:00
Chris Shoemaker
5cb26b7614 Implement Split events for Split destruction, Split rollback, (including
Split un-destruction) and Split re-parenting.
   All these actions now generate ITEM-REMOVED or ITEM-ADDED events for
   related Transactions (as appropriate).

   Minor: allow xaccSplitSetParent() to accept a NULL argument in order to use
   it in the rollback-newly-created-split case.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13767 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-11 03:12:09 +00:00
Chris Shoemaker
7b489a6943 Avoid generating Transaction modified events for Transaction roll-back.
Enable emission of some new Split events.
   Use xaccSplitRollbackEdit() in implementation of xaccTransRollbackEdit().
   Avoid rollback of Splits not owned by the Transaction.  This was actually
   impossible to encounter, but the algorithm is now correct even for some
   cases that aren't permitted by other code. 


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13766 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-11 02:55:57 +00:00
Derek Atkins
422bf34bfe Get gnucash to build properly with the new QOF changes (0.6.4+)
* src/backend/file/sixtp-utils.c:
	  use QOF_SCANF_LLD to read 64-bit numbers.
	* src/gnome-utils/QuickFill.c:
	* src/engine/gnc-pricedb.c:
	* src/engine/Transaction.c:
	* src/engine/gnc-commodity.c:
	  convert gnc_string_cache* APIs to CACHE_* APIs.
	* src/engine/Account.c:
	  Properly convert usage of SAFE_STRCMP() to safe_strcmp()
	* src/engine/kvp-scm.c:
	  #include <qof.h> instead of <kvp_frame.h>
	* src/engine/gnc-engine.c:
	  Update the method used to shutdown QOF.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13765 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-10 22:20:12 +00:00
Derek Atkins
f9d1f3e42f Create a QOF_SCANF_LLD (because we cannot use the printf version).
Keep the deprecated GNC_SCANF_LLD defined in terms of the new
QOF_SCANF_LLD.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13764 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-10 22:13:46 +00:00
Derek Atkins
5028d178ea Revert r13749. Wedon't need to explicitly #include glib.h
because qof.h includes it for us.  Also, this changeset contains
lots of other stuff that has nothing to do with glib.h.  Note
that this revision wont build, but I'll fix that shortly.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13763 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-10 21:49:44 +00:00
Derek Atkins
18700492c5 Back out r13752. We don't need to explicitly #include glib.h
because qof.h includes it for us.  Besides, it doesn't fix
the whole problem.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13762 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-10 21:14:34 +00:00
Christian Stimming
36a79b66f9 Updated German translation. 3601 out of 3620 translated.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13761 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-10 20:54:49 +00:00
Christian Stimming
684f9ed579 Fix spelling error
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13760 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-10 20:48:09 +00:00
David Hampton
454aabb1bd Eliminate some unnecessary work by comparing the account name in the
quickfill with the actual account name, and only rebuilding the
quickfill if they differ.  This improves GnuCash's response somewhat,
but still needs more improvement.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13758 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-08 23:52:20 +00:00
Neil Williams
ed58ab94a7 typo - erroneous &
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13757 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-08 22:50:08 +00:00
Christian Stimming
d7348c2ad8 Updated German translation. 3562 out of 3620 translated.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13756 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-08 10:06:32 +00:00
David Hampton
3dacd15900 Include the svn revision number in the about dialog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13754 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-07 23:39:53 +00:00
Derek Atkins
aaa13ff290 * lib/libqof/qof/qof.h: QOF requires <glib.h>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13753 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-07 19:46:36 +00:00
Neil Williams
df60a67ffd already include glib/gi18n.h, also need glib.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13752 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-07 19:25:21 +00:00
Neil Williams
7c16a84860 Move example from gnc_numeric.h to a separate Doxygen file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13751 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-07 18:52:51 +00:00
Neil Williams
ba61372f97 Replacing deprecated code.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13750 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-07 18:52:28 +00:00
Neil Williams
66a9c0b6ac Explicitly including glib.h instead of relying on libqof to reduce dependency problems.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13749 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-07 18:51:52 +00:00
Neil Williams
26a4051c70 QOF 0.6.4 requirement
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13748 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-07 18:50:45 +00:00
Neil Williams
68ac06b219 Standardise on gint and gchar. libqof 0.6.4 release.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13747 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-07 18:50:08 +00:00
Neil Williams
8edd35d84d Add encoding support and fix compression option handling
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13746 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-07 18:49:40 +00:00