Commit Graph

11867 Commits

Author SHA1 Message Date
Phil Longstaff
3b70eef190 Fix crash due to use of uninitialized variable. Fix supplied by Sebastien Held.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18017 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-04-05 17:07:50 +00:00
Phil Longstaff
4e47416ede 1) Add new files to po/POTFILES.in
2) Fix some unmatched quotes (in some cases, they were spelling errors)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18016 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-04-05 00:52:30 +00:00
Phil Longstaff
f8cf69ef2d Add some debug enter/exit tracing. Add some more argument checking.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18014 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-04-04 23:44:16 +00:00
Derek Atkins
c02bba9102 Upgrade doxygen configuration from 1.5.2 to 1.5.7.1
for upgrade on server to Fedora 10.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18011 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-31 14:22:53 +00:00
Phil Longstaff
6e46443785 Fix uninitialized variable fileChooserAction.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18006 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-29 15:44:11 +00:00
Andrew Sackville-West
07467f13c6 Implement new custom report dialog.
Implements a new interface for accessing "saved" or "custom" reports.
Specifically, the current sub-menu is replaced with a dialog holding a
GtkTreeView of the saved reports. From here the user can either run or
delete an existing saved report.

* allows deletion of existing saved reports
* allows immediate access to new saved reports from this session (no
  need to restart gnucash to get access to new saved reports!)
* keeps a single rolling backup of saved reports in case of errors


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18001 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-26 19:38:38 +00:00
Charles Day
908813cf34 QIF Import: Throw an error immediately upon failing to parse a category. Previously a bad value was returned, which could then cause a failure in the caller.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18000 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-25 00:52:32 +00:00
Charles Day
77c174f5c0 QIF: Replicate the fix from r17998 in two other QIF-related places.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17999 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-22 17:48:34 +00:00
Charles Day
dfa30891c7 QIF Import: Support backslash characters in category names. There was a mistake the regular expression, as a pipe symbol shouldn't be escaped with a backslash when used inside brackets.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17998 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-22 17:24:58 +00:00
Phil Longstaff
52343ab661 Add debugging info re SQL transactions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17997 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-19 14:45:57 +00:00
Phil Longstaff
69458bd21c 1) Remove obsolete dwi directory.
2) Remove vestiges of GDA from Makefile.am



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17996 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-19 14:44:52 +00:00
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