Commit Graph

11956 Commits

Author SHA1 Message Date
Phil Longstaff
580ac585ee Remove Database Connection dialog and menu entry
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17994 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-14 18:12:49 +00:00
Phil Longstaff
eb2aa66bfe Implement BEGIN/COMMIT/ROLLBACK for transaction support. Provides a *huge*
performance improvement when saving to an sqlite3 file.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17993 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-13 16:33:19 +00:00
Derek Atkins
45370b48d8 Add a glade file to the POTFILES list.
make check now works for me.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17992 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-13 15:31:35 +00:00
Derek Atkins
c08c1baf73 remove python-bindings from POTFILES.in
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17991 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-13 15:09:15 +00:00
Derek Atkins
e52c8693a2 Ignore the python-bindings when building translations.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17990 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-13 15:07:39 +00:00
Phil Longstaff
39c89512e0 Replace radio buttons with a combo box. A bit ugly because I haven't figured out how to keep
the combo box from expanding to fill the space.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17989 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-10 17:41:52 +00:00
Charles Day
c3b86442c0 Reports: Speed up the report infrastructure. Patch by Mike Alexander.
One set of changes speeds up the three functions in report-utilities.scm:
gnc:account-get-comm-balance-interval
gnc:accountlist-get-comm-balance-interval
gnc:accountlist-get-comm-balance-at-date

These can all be implemented as calls to
gnc:account-get-trans-type-balance-interval (with a minor change to it to
ignore the type parameter if it is #f) and it is much faster since it does a
single query instead of a loop over an account list.

The other set of changes is in gnc:html-acct-table-add-accounts! in
html-acct-table.scm.  This functions starts off by building a hash table of
account balances it cares about.  The code to do this did a recursive loop over
the relevant accounts.  I changed it to do a query to find the splits in the
accounts it cares about and build the hash table from them.  This speeds it up
by a couple of orders of magnitude.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17988 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-09 20:14:46 +00:00
Charles Day
2d2e2d5b0e Register: Fix the file name in a comment.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17987 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-09 20:07:51 +00:00
Charles Day
08a8d60401 Register: Add a few debugging calls.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17986 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-09 20:07:09 +00:00
Charles Day
e3477bc041 Register core: Start doxygen documentation of table-allgui.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17985 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-09 19:47:58 +00:00
Charles Day
4165e0ed62 Bug #523982: Fix the Enter key in double-line mode. The register had wrongly assumed one physical row per virtual row.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17984 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-09 18:23:25 +00:00
Phil Longstaff
945e700a37 Fix lots of splint issues (including memory leaks). This includes some changes
in qof and gnc files adding annotation comments to help splint analyze ownership
of memory and objects.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17983 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-09 17:17:57 +00:00
Charles Day
0621803bd6 QIF Import: Correct case of cleared status code "c" in documentation text file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17982 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-08 19:14:41 +00:00
Charles Day
1c8761d6d1 QIF Import: Allow "R" or "r" for reconciled, and "C" or "c" for cleared.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17981 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-08 18:58:17 +00:00
Charles Day
573d809b4a QIF Import: Add a section for "cleared status" and fix some inconsistent whitespace.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17980 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-07 19:48:06 +00:00
Phil Longstaff
9017cbf593 Disable radio buttons for access types (sqlite3/mysql/pgsql) which don't have a qof backend
registered.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17979 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-07 17:46:25 +00:00
Phil Longstaff
cf19b319e3 Don't create qof backends for uri types where there is no libdbi driver installed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17978 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-07 17:36:13 +00:00
Phil Longstaff
f20bbd373d In File Access dialog, sqlite3 is default format, so make db fields
insensitive when dialog opened.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17977 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-07 00:46:16 +00:00
Phil Longstaff
bcf974bd11 1) Add new dialog-file-access which combines the standard GTK file selection widget with
the database selection fields from the old database connection dialog.  If --enable-dbi
is specified at configuration time, this dialog is used instead of the file open and
save-as dialogs.
2) Prompt to create a mysql db if it doesn't exist.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17976 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-06 22:43:07 +00:00
Phil Longstaff
dea5a1c388 Handle integer values returned as string GValues (mysql does this for bigint
values).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17975 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-06 21:02:10 +00:00
Phil Longstaff
a9116066f4 1) Update table version number so that tables aren't re-updated each time (update won't hurt, but
is not needed)
2) Don't free memory too soon


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17974 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-05 15:33:40 +00:00
Phil Longstaff
e0f50e0589 Update business table version numbers
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17973 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-05 15:28:44 +00:00
Andrew Sackville-West
ad7e8d3876 refactor saved-reports-2.4 migration to eliminate duplicate code and
fix the report template renderer name reference.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17972 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-05 01:05:24 +00:00
Charles Day
5456ef6eba Business ledger: Don't leave the account cell if the user chooses not to create a new account when prompted. This allows any typo to be quickly fixed. Previously the account cell text was blanked and focus moved to the next cell.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17971 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-04 15:31:22 +00:00
Charles Day
69379901ca Register: Fix an unbalanced ENTER().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17970 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-03 22:48:18 +00:00
Charles Day
7014c66c6f Bug #343217: Register: Don't leave the account cell if the user chooses not to create a new account when prompted. This allows any typo to be quickly fixed. Previously the account cell text was blanked and focus moved to the next cell.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17969 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-03 19:02:09 +00:00
Andrew Sackville-West
522afc3085 update email address for Polish \"last translator\"
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17968 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-02 23:58:48 +00:00
Andreas Köhler
4619a7b38c Revert r17966 and use Glade-2 again.
At the moment all major distributions feature Glade-3 which tends to
save a lot of lines less compared to Glade-2 because it does not define
properties whose values equal the default ones specified by Gtk+.
Unfortunately though, only very recent versions of Glade, v3.5.3+,
address the following two issues:

(1) GtkTable attachments are written in different order each times,
rendering diffs unusable.
(2) Currently we depend on the ability to use a name multiple times in a
single glade file and only newer versions allow to have uniqueness be
applied to each top-level widget.

Sorry for the confusion.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17967 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-02 21:15:41 +00:00
Andreas Köhler
47ede669f2 Re-save glade files from Glade 3, remove util/glade-fixup.
Glade 3 does not save properties with default values anymore.  This
reduces patch sizes when Glade-3/Gtk+ is used with varying versions and
also avoids warnings about properties unknown to older Gtk+ versions.

The version Glade 3 used is 3.4.5.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17966 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-01 19:13:14 +00:00
Andreas Köhler
ea478541e9 Bug #572107: Use fallback string for OFX account types when matching to GnuCash accounts.
Without the fallback, NULL is printf'ed which crashes GnuCash on
Windows.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17965 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-26 22:12:51 +00:00
Charles Day
48c7f72430 Bug #499215, #530819, #551643: Register: Fix transaction pasting, which was fairly broken. Pasting was being committed immediately, the transaction was not checked properly before opening, the blank split was being destroyed while the transaction was left pending, and more. These problems left the register in an inconsistent state that was being noticed in g_assert() calls in several spots. GnuCash would then crash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17962 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-25 19:10:23 +00:00
Charles Day
575b8ca3d0 Register: White space fixes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17961 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-25 18:20:22 +00:00
Charles Day
5b9b685d4b Register: Fix a bug that appears in basic and auto-split ledger modes when entering a new transaction. Entering multiple splits for the register's account would cause the 2nd though nth splits to be displayed above the new transaction, making them appear to be non-new.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17960 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-25 16:50:30 +00:00
Charles Day
199c0c309d Register: Add debugging to gnc_split_register_changed().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17959 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-25 00:11:01 +00:00
Charles Day
5a7650b0cc Register: Make all account cells right-justified. Previously a mix of left- and right-justification was used.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17958 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-25 00:03:13 +00:00
Andreas Köhler
3c9603f501 Add ChangeLog.2008 to dist.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17951 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-24 00:12:15 +00:00
Charles Day
18cf9f4e20 Register: Tweak some comments and slightly reorganize the register cleanup code for ease of reading.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17950 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-23 22:56:06 +00:00
Andreas Köhler
8ff8256b03 [Win32] Update EXTRA_DIST.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17948 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-23 20:19:03 +00:00
Andrew Sackville-West
a898dca194 Implement a new saved-reports-2.4 file to allow translation of existing saved reports into report-guid enabled versions.
Take note: this change will *hide* any manually hacked saved reports
that make use of the new report-guid. The new saved-reports-2.4 file
will shadow the old saved-reports-2.0 file and will leave those hacked
reports behind. Any pre-existing saved reports that use report-guid will
have to be manually migrated to the new file.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17942 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-20 23:08:39 +00:00
Charles Day
a98bc56de6 Bug #570887: Fix a typo in r17939.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17940 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-20 05:00:08 +00:00
Charles Day
0c09333ce8 Bug #570887: Change the swig type mapping for GUID* so that Scheme can tell the difference between a GUID* that is NULL, and a GUID* pointing to storage containing the "null" GUID. Previously the former case returned SCM_UNDEFINED to Scheme, which would unbind Scheme variables and make crashes. Now SCM_BOOL_F is used instead, and Scheme code can check for a NULL by comparing to #f.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17939 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-20 04:37:28 +00:00
Charles Day
6d1e0b75e1 Register: Add debugging code for the copy and cut operations.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17938 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-20 03:03:05 +00:00
Phil Longstaff
97ae5d8224 Fix 572251: remove extra definitions of write_objects_t structure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17933 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-18 21:18:07 +00:00
Charles Day
5760020652 Bug #565421: Remove dependency on GTK+ 2.10 in date edit control.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17930 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-17 18:14:04 +00:00
Charles Day
f4f9fed740 Doxygen: Adjust the style of a comment block for consistency and to eliminate a splint warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17929 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-17 16:49:52 +00:00
Phil Longstaff
e9929bd401 Fix some splint issues
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17928 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-16 21:30:21 +00:00
Phil Longstaff
905d7551a8 Fix 64 bit integer handling. In an sqlite3 db, column types are basically ignored.
However, libdbi uses the column type name to determine how big it thinks the integer 
value is.  Therefore, change all 64 bit integer values (including num/denom in numeric 
values) to 'bigint'.  Tables will be automatically upgraded when an sqlite3 file is 
opened.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17927 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-16 16:22:18 +00:00
Phil Longstaff
96fea96847 Fix CRIT errors when loading owner info in business objects.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17926 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-16 01:08:57 +00:00
Phil Longstaff
c67b86b470 1) Before saving file contents via save-as, ensure that all data has been loaded. This
doesn't matter for the file backend, but does for the SQL backend, because the SQL backend 
only loads transactions/splits as needed.
2) Partially solve problem where int64 values are loaded incorrectly.  This started because 
num and denom for prices were seen to be limited to 32 bits.  libdbi provides a 
libdbi_result_get_longlong() routine, but unfortunately, on my system (with libdbi 0.8.2-3), 
it seems to have some bugs a) it returns negative values unsigned and b) it seems limited to 
a 32 bit value even when the correct value is in the db.  


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17925 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-15 19:26:38 +00:00
Andreas Köhler
f3592f34da Bug #571220: [Win32] Unset SCHEME_LIBRARY_PATH environment variable.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17921 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-15 17:23:16 +00:00