Commit Graph

9566 Commits

Author SHA1 Message Date
Chris Shoemaker
de0c1edcb5 Add a flag, 'infant', to QofInstance to note that the instance has been
committed at least once in its lifecycle.  Then, we can mark the collection
   dirty whenever an object is committed, except for the special case of an 
   QofInstance that has never been committed before and is now being deleted.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13957 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-08 04:47:04 +00:00
Chris Shoemaker
6b925724e7 Fix off-by-one error when checking editlevel in qof_commit_edit() (and
macro version), in case we ever want qof_commit_edit() to actually do 
   something with a backend.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13956 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-08 03:04:49 +00:00
Chris Shoemaker
57636f50e4 Make qof_commit_edit() (and macro version) call qof_backend_run_commit()
instead of qof_backend_run_begin().
   Minor cleanups of qof_commit_edit() and qof_begin_edit().


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13955 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-08 03:02:15 +00:00
Chris Shoemaker
681577f889 Add begin/commit edit blocks to budget setters. Change to using the
"destroy" method for budget deletion.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13954 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-08 02:54:03 +00:00
Joshua Sled
9593088a56 Simply traversal impl.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13944 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-07 21:52:15 +00:00
Joshua Sled
728dc7a8d0 Restructure for clarity.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13943 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-07 21:39:56 +00:00
Joshua Sled
3a2fa62d87 Fix test-query failure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13942 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-07 21:39:30 +00:00
Joshua Sled
2d509ca6ca indentation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13941 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-07 20:22:54 +00:00
Joshua Sled
27106709ec Bug#340936: Actually close the SX list when we are button-requested to Close the dialog, thus cleaning up properly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13940 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-07 20:12:08 +00:00
Joshua Sled
a2d6c363a6 Bug#340875: factor utf8-clean decimal-point insertion and string handling out of the pricecell, and call from the formulacell.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13939 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-07 18:01:33 +00:00
David Hampton
ed28db12a1 Rebuild the column selection menu when the report currency is changed.
Fixes #340243.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13936 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-07 00:14:02 +00:00
David Hampton
367b78637b Really bump the version number for setting the GNOME_DISABLE_DEPRECATED flag.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13934 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-06 23:01:36 +00:00
David Hampton
bb0afbe8fb Trivial replacements for deprecated functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13933 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-06 22:26:50 +00:00
David Hampton
cf54659c92 Use the new qof functions to provide a dirty indication in the title
bar, fixing #339026.  Also provide an indication of how long the book
has been dirty in the "save changes to file" dialog.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13932 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-06 21:11:16 +00:00
David Hampton
fad343b4e2 Add support for directly marking the book dirty, for recording the
time that the book transitioned from clean to dirty, and for calling
back a registered function when the book transitions from clean to
dirty.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13931 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-06 21:09:59 +00:00
David Hampton
f455c29dc8 Can't use external qof until it supports "alternate dirty mode".
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13930 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-06 14:53:22 +00:00
Christian Stimming
e3301dde28 Updated (finished) norwegian bokmaal translation by Sigve Indregard
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13929 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-06 07:55:37 +00:00
David Hampton
42233b0d47 Add begin_edit/commit_edit brackets around object modifications. Some
other related edit changes.  Bug #339943 should be fixed as of this
change.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13928 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-06 06:14:21 +00:00
David Hampton
534e987273 Unconditionally enable qof alternate dirty mode.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13927 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-06 06:03:48 +00:00
David Hampton
9323c1405d Add an alternate mode for handling the dirty state of instances and
collections.  In this mode, marking an instance as dirty does not
immediately mark the collection as dirty.  The collection is only
dirtied when a dirty instance is actually committed to the collection.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13926 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-06 06:01:14 +00:00
David Hampton
06f7888c4c Bump the version number for setting the GNOME_DISABLE_DEPRECATED flag.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13925 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-06 01:27:40 +00:00
Joshua Sled
1afdaac632 fix mis-use of test api.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13924 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-05 13:02:30 +00:00
Joshua Sled
d08ba61322 add encoding to test xml files to prevent loading errors; reformat error message.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13923 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-05 01:21:13 +00:00
Chris Shoemaker
3555d0f101 More consistent Lot<->Split handling. Try to use the right API for adding
a cloned Split to the Lot.  Make sure to remove the Split from the Lot when
   deleting a Split.  (This prevents use-after-free by test-lots.)  Add some 
   comments to some strange code that's possibly wrong.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13922 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-05 00:58:17 +00:00
Chris Shoemaker
40a9ed1925 Move some gains-related transaction-scrubbing operations to from
cap-gains.c to Transaction.c.
   Fix a logic error where "split->gains |= ~GAINS_STATUS_ADIRTY" was supposed
   to be "split->gains &= ~GAINS_STATUS_ADIRTY".

   Disable the loop-restart code in xaccTransScrubGainsDate() because I think
   the state changes inside the loop will never cause a previously-skipped 
   Split to be not skipped during another pass.

   Incidental:
      make both xaccTransFindSplitByAccount() arguments 'const'
      Internalize Begin/Commit edit block into xaccTransScrubSplits()


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13921 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-05 00:40:15 +00:00
Chris Shoemaker
e6f9e20679 Some testing bits that got left out of r13916.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13920 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-05 00:18:59 +00:00
Chris Shoemaker
90864dcb27 Correctly ensure that the amount and value of test Splits have the same sign
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13919 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-05 00:17:04 +00:00
Christian Stimming
017967476c Updated Norwegian Bokmaal translaction by Sigvei Indregard
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13918 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-04 09:18:39 +00:00
Chris Shoemaker
2324301a45 Fix bug #340168 by ignoring Splits that have been destroyed since the
last call to xaccTransBeginEdit().


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13917 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-04 03:59:15 +00:00
Chris Shoemaker
0589407c66 Hide the Transaction's management of the "reverse-by" KVP inside the engine.
Add new function xaccTransGetReversedBy() to find the reversing transaction
   if there is one.
   This also ensures that the KVP changes are inside a Begin/Commit block.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13916 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-04 00:06:58 +00:00
Christian Stimming
70295ccd36 Updated French translation by Fabrice Kurz
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13915 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-03 20:46:53 +00:00
David Hampton
2ba716c4ed Use the existing QOF API to modify the instance dirty flag.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13912 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-03 02:28:18 +00:00
Christian Stimming
222b2b26d0 Updated German translation; still 3666 out of 3666 translated.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13900 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-02 19:35:41 +00:00
Andreas Köhler
8c2dc711ed Correct option strings in sx editor for tri-annual transactions. Fix #339724.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13899 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-02 19:26:27 +00:00
Joshua Sled
a2772eece8 match malloc to free, not g_free.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13898 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-02 12:17:56 +00:00
Christian Stimming
cbd0726200 Ensure the warning about debian and error-on-warning is shown only if necessary
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13897 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-02 09:05:13 +00:00
David Hampton
d7c2dff901 Use the parent commodity and account type when creating new accounts.
Fixes #337189 and #340242.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13896 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-02 03:48:21 +00:00
David Hampton
5d031b2203 Start a new log file after a save. Fixes #173056.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13895 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-02 02:32:49 +00:00
Joshua Sled
014a0bf8a2 Bug#340358: mem/string-handling crasher fix.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13894 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-02 00:11:49 +00:00
Christian Stimming
fd3164b629 Updated British English translation by Nigel Titley
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13893 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-01 08:00:10 +00:00
David Hampton
d1b5d2df03 Patch from Mike Alexander to fix the cleared split date threshold in
the reconcile window. Fixes #340235.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13892 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-05-01 02:49:15 +00:00
Andreas Köhler
6b75ce64fc Add legend only to barchart and piechart plots, not to scatter plots, as there is currently no usage for it. Fix #337769.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13891 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-30 23:29:02 +00:00
David Hampton
5e8b7bbc88 Remove translation on new strings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13890 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-30 19:28:24 +00:00
Joshua Sled
2220646d16 Bug#340197: reverse account opening balances when desired.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13889 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-30 16:49:07 +00:00
Christian Stimming
a0bbda961f Fix retrieval of reconcile abbreviation if the translators erroneously
did not use the same string length as the english string. Bug #339722.




git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13888 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-30 10:32:34 +00:00
David Hampton
2f5698d619 Patch from Mike Alexander's to handle multiple lot dispositions on the
same day.  Needed since the transaction sorting code may sort gains
splits after other splits on the same day. Add a new function to find
the source split associated with a capital gains split.  Also use
lot_amount and lot_value consistently instead of opening_amount and
opening_value.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13887 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-30 03:52:05 +00:00
David Hampton
c90adde7ba Function opening curly brace should be on a line by itself.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13886 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-30 02:59:58 +00:00
Chris Shoemaker
29ce19ddfc Take care of any pending changes to a Transaction before voiding it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13885 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-30 02:38:11 +00:00
David Hampton
e500dae5b4 Eliminate some gtk warning messages. Stop the contents of the Bill
Terms dialog from shifting around when the first/last term is
created/destroyed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13884 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-30 01:27:24 +00:00
Chris Shoemaker
cc413fa58c When deleting the current Transaction in the register, let the action take
effect immediately by commiting the transaction if it's open.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13883 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-30 00:43:45 +00:00