Commit Graph

2474 Commits

Author SHA1 Message Date
David Hampton
094de8287b Leave the accounts unordered in the engine. Switch the g-wrap
functions that return account lists to use new functions that return
sorted lists so that they see no change.  Fixes 331855.  Also change
the default account sorting to sort on utf8 strings.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13624 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-14 06:32:54 +00:00
Neil Williams
41671fe8a9 Synchronise with QOF 0.6.3. Correct map handling to allow reverse operations and iteration over hierarchical objects. Improving debug messages and preventing a crash when loading a map directly. Standardise QSF backend on gint and gchar. Add new map file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13621 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-13 22:52:02 +00:00
Andreas Köhler
8d45bae07c Save a QofBook instead of its GUID in the list of books in plugin pages. This should renable the deletion of some plugin pages.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13618 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-13 17:07:12 +00:00
Christian Stimming
7da11565e0 Reduce debug stack size from 2,000,000 to 200,000 because guile on windows will only accept the smaller value.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13617 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-13 16:54:14 +00:00
David Hampton
b486969db6 Add a new per-page callback to tell the page to finish any pending
activities.  The page may return FALSE to abort whatever the caller's
normal function.  Add helper routines to iterate over all pages in a
window, or all pages in all windows.  Call these new functions before
Quit, Save, Close, and closing a window.  The register page now
implements this hook and uses it to save/discard any pending
transaction.  Closes 334090.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13615 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-13 04:37:58 +00:00
David Hampton
18b1188dbb Tweak a couple of tooltips. Try and make it clear that the commodity
mnemonic field must exactly match that used by the quote source.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13614 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-12 22:49:53 +00:00
David Hampton
2307a95bde Andrew Sackville-West's patch to tidy up the multi-currency handling
quite a bit. It also adds some functionality such as showing the
basis, realized and unrealized gains, and takes advantage of the new
gnc_pricedb_lookup-latest-before function.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13613 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-12 22:46:00 +00:00
David Hampton
808a35ae99 Andrew Sackville-West's patch to show zero balance entries in the
payables and receivables aging reports.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13612 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-12 22:23:40 +00:00
David Hampton
c9bd69b302 Andrew Sackville-West's changes to add the ability to lookup the
latest price before a specific date.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13611 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-12 22:18:28 +00:00
David Hampton
872a2cafa8 Replace the changes in r13361 with a better method for determining
when a change in the register needs to be reflected in the available
user actions.  Now updates the Void and Unvoid actions which
implements the enhancement request in 330763.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13610 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-12 21:54:04 +00:00
David Hampton
5af42fc6b1 Finish removing the redundant list of valid strings maintained by the
combocell and use the list in the item_edit widget.  Fixes the problem
where account cell contents disappear when focusing in/out of an
account cell.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13609 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-12 03:52:45 +00:00
Andreas Köhler
5d58c5ce49 Fix order of parameters to gnc_ui_common_commodity_modal, and 334181.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13606 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-11 23:41:51 +00:00
Derek Atkins
fe14d8341c fix the build-order (and install order) of the engine libs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13605 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-11 21:52:31 +00:00
Derek Atkins
3c37fe7edd translate "Thank you.." string.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13602 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-11 19:43:21 +00:00
Derek Atkins
470625b385 Make sure we translate the button label string.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13600 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-11 18:10:19 +00:00
David Hampton
4d2d52413a The account tree model event handler needs to be more robust in the
case of multiple account sets existing at the same time. Pass the
account group instead of the parent account so that its possible to
determine which model a "top level" account belongs to.  Fixes 333866.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13599 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-11 17:30:54 +00:00
Andreas Köhler
2a3b4aa51f Unref the summary bar list store so that it gets deleted together with the combobox.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13597 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-11 15:52:45 +00:00
Andreas Köhler
b39a0305fc Avoid calculation of account period total for the top level account.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13595 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-11 15:23:19 +00:00
Derek Atkins
f3cbe0ce05 put ".links" into lib so rm -rf works properly from the top-level
of the source tree.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13593 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-10 23:32:53 +00:00
David Hampton
fc8d20214b Walk through the list of plugins installed in a window and uninstall
them before the window is destroyed. Fixes 333973.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13592 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-10 23:11:54 +00:00
Derek Atkins
ec2d9622e7 gnc:get-account-from-full-name requires two args, not three (#334170)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13590 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-10 22:16:15 +00:00
David Hampton
e5c36757bb Show newly created windows when restoring the second and subsequent
windows.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13587 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-10 20:07:32 +00:00
Christian Stimming
d53ba8d54b Recode all po files into UTF-8 character encoding,
except for the most recent ones, and uk.po which seems to 
contain encoding errors.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13586 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-10 14:58:45 +00:00
Christian Stimming
8c8cae582b Gnucash replaced dlopen/dlsym by the g_module functions,
so don't error out if they are unavailable; dlsym is needed 
only optionally for BSD linkers. Also removes quotation 
error in AC_MSG_ERROR macro.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13583 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-10 11:04:02 +00:00
Christian Stimming
967cbf8c7a If <glob.h> unavailable, provide own typedef and disable globbing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13581 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-10 10:30:35 +00:00
Andreas Köhler
c8544e6a57 Move retrieval of private data of main window after the creation of the window.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13574 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 22:58:36 +00:00
David Hampton
d331aa8f18 Finish removing deprecated QOF functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13573 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 21:57:42 +00:00
David Hampton
64ee595be2 Restore clickable links for price quotes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13572 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 21:23:42 +00:00
Neil Williams
321f21a303 Make xsl/ available for installation and therefore packaging.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13571 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 18:12:14 +00:00
Neil Williams
abb2bd5473 Move qof_book_merge to new naming convention and deprecate old code
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13567 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 17:03:01 +00:00
Neil Williams
1a775d7119 Optional XSL stylesheets and support - prototypes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13566 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 16:54:44 +00:00
Neil Williams
32cd6f4716 allow recursive copying of gncEntry from a gncInvoice
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13565 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 16:50:39 +00:00
Christian Stimming
04998d5e37 Add substitution code for unavailable function gettimeofday
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13563 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 16:44:11 +00:00
Christian Stimming
df1f9b6306 Add substitution code for unavailable functions gettimeofday and gmtime_r.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13560 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 16:26:02 +00:00
Christian Stimming
e993e7256a Replace "ln -sf" by "$(LN_S) -f" for
systems that don't have symbolic links available.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13556 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 14:28:54 +00:00
Christian Stimming
f3a611d90a Check for <glob.h> and provide own typedef if header unavailable.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13555 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 13:03:29 +00:00
Christian Stimming
969bfe6065 Updated vietnamese glossary by Clytie Siddall
<clytie@riverland.net.au>


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13552 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 12:22:18 +00:00
David Hampton
59056ce619 Remove more functions to be deprecated in libqof2. (Pass Three - more
trivial substitutions and simple translations.)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13550 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 06:08:02 +00:00
David Hampton
4b04137e7d Never include "config.h" from a header file. Doing so makes it nigh
impossible to override configuration settings.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13549 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 05:51:07 +00:00
Derek Atkins
45403651c5 Define and emit two new events when splits are added/removed from accounts.
* src/engine/gnc-event.h:
	  Add GNC_EVENT_ITEM_ADDED and GNC_EVENT_ITEM_REMOVED event definitions
	* src/engine/Split.c:
	  Emit GNC_EVENT_ITEM_ADDED and GNC_EVENT_ITEM_REMOVED events
	  when a split is added or removed from an account.
	* configure.in: depend on QOF 0.6.3 for proper event handling.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13548 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 03:58:00 +00:00
David Hampton
61a12b2715 Remove more functions to be deprecated in libqof2. (Pass Two - more
trivial substitutions, some simple translations.)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13547 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 03:48:49 +00:00
Derek Atkins
db890792bb Fix the definition of QOF_EVENT_BASE; use QOF_EVENT__LAST for tests.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13546 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 03:33:00 +00:00
David Hampton
41db89c516 Remove functions to be deprecated in libqof2. (Pass One - trivial
substitutions)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13545 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 02:29:29 +00:00
David Hampton
58cbae9911 Remove extra events added in r13483. This leaves the REMOVE event as
the only changed event.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13544 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 00:49:46 +00:00
Derek Atkins
9d84d59f97 gstdio.h and g_mkdir are in glib-2.6 -- use old APIs with glib-2.4.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13543 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-08 21:22:40 +00:00
Christian Stimming
9bcdddbe43 Replace setenv() by g_setenv for increased cross-platform
compatibility.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13542 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-08 16:00:09 +00:00
Christian Stimming
7ce02733e8 Replace index(3) by strchr(3) and rindex(3) by strrchr(3) because the
latter is more widely available.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13540 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-08 15:52:51 +00:00
David Hampton
1a2bd156cf Use a font size of "smaller" when printing to the splash
screen. Should solve 104436 except for people running with huge system
fonts.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13539 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-08 06:13:28 +00:00
David Hampton
9cc57ee534 Relabel column titles from "XXX (Report)" to a label that includes the
currency mnemonic (e.g. "Total (EUR)").


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13537 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-08 05:16:36 +00:00
David Hampton
1c2ae49da7 The account quickfill has multiple components to it, only one of which
was shared. Build and use a shared list store used by the
gnucash_item_edit widget (which is updated by signals sent when
accounts are added/deleted/modified.)  With this in place, its not
necessary to rebuild two account quickfills for each open register
window when a gnc_gui_resume_refresh is called which eliminates an
O(2n) slowdown.  This seems sufficient to close 120028.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13532 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-08 03:06:51 +00:00