Commit Graph

15010 Commits

Author SHA1 Message Date
Geert Janssens
67b2a56855 Change of mind. Use scm instead of vcs.
scm is the modern term. vcs is rather used to refer to archaic systems
such as cvs and older. I wish I remembered this before my previous
commit. Oh well...

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22476 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-01 10:35:34 +00:00
Geert Janssens
27c76eccd5 Minor changes to indicate svn is not the only/primary vcs used.
The code actually has provisions for svn, svk, git and bzr. Only svn and
git are actively used by the core developers though.

This involves changing
- filenames that contained svn while meant for multiple vcs's
- variable and macro names that are relevant for multiple vcs's
- the various locations where the vcs revision info is displayed
  to the user, to mention the actual vcs used instead of standard "svn"

While at the last item, I also changed the text printed when gnucash is
called with the --version parameter, to reuse the translatable string
that is also used for the about dialog. This saves us one string to
translate.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22475 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-31 21:38:49 +00:00
Geert Janssens
46334ab2fb Win32 build - build docs either from git (default) or svn
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22474 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-31 12:14:39 +00:00
John Ralls
d9fb4d3511 Allow SchedXaction to safely handle having g_object_property_set called on
end_date and last_date with invalid GDates.


This happens routinely when those values are empty and are restored from
SQL. Thanks to all warnings being fatal when testing, this caused the dbi
tests to fail.

[BP]

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22465 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:30:56 +00:00
John Ralls
ab0d45a034 Enable and correct all store-and-reload basic tests
Replacing printed errors and "do_test" with proper asserts.

There's a fake do_test to let it compile with the still unfixed but also
unused safe save and version check tests.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22464 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:30:40 +00:00
John Ralls
2bca864ddf Replace in-test setup and teardown with a fixture.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22463 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:30:31 +00:00
John Ralls
6f66fa8993 Remove local log handler and use checked handler from utest-support.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22462 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:30:22 +00:00
John Ralls
f86d4e8a96 Fix dbi-test linking error
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22461 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:30:12 +00:00
John Ralls
07dcde5f50 Load gncmod-backend-xml so that the tests actually run
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22460 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:29:51 +00:00
John Ralls
a1ae191fe2 Try to load libgncmod_foo.dylib if libgncmod_foo.so doesn't exist
Workaround for Darwin similar to what's already in gnc_module_refresh().

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22459 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:29:42 +00:00
John Ralls
a57f38a0d8 [Bug 686830] Non-portable equality test in configure.ac
[BP]

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22458 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:29:32 +00:00
John Ralls
88b325dbfd Fix typo from r22448
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22457 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:29:22 +00:00
Geert Janssens
c639e6b9f1 Add sql drop index test to cover bug #677488
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22451 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-26 08:50:04 +00:00
Geert Janssens
7dfa452b7d Bug #677488 - DROP INDEX missing ON <table>
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22450 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-26 08:49:54 +00:00
Geert Janssens
8573f4576e Add unittests for mysql and postgresql backends
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22449 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-26 08:49:41 +00:00
Geert Janssens
3f5eae6d8e Further register rewrite work.
This patch is an updated patch which I have been fighting with the sort
model on. It allows you to add, delete and modify basic transactions
and splits with the toolbar buttons. Jump and move to blank are
also working.

Visual indication of read only and future transactions are
also implemented.

As before, do not open same account in old and new register.

Tab key works manually but needs more work, cell editable value does not
seem to be reliable which was the way I was going to auto step over
uneditable cells.

There is another problem if you enter the debit/credit value before the
account, you will get an error in the trace file but entries
are recorded, not sure of answer.

New transactions are not added in date order at the moment, this was
going to be done by the sort model or the existing method of reload
register via the commented out watchers in ledger-display.

All the numeric functions are the existing ones from the rewrite and as
such I have not proved they are correct but a basic transaction seems to
work.

Author: Robert Fewell <14ubobit@gmail.com>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22448 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-18 08:15:21 +00:00
Geert Janssens
f6da044a42 Register rewrite: make separate menu item for general ledger based on
new register code.

This should restore the original general ledger which was replaced by
the new register rewrite code.

Author: Robert Fewell <14ubobit@gmail.com>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22447 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-18 07:56:15 +00:00
Christian Stimming
bc34c7b23b Add some initial implementation for international (European) SEPA online transfers.
Needs testing, though - my bank doesn't offer it for me.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22445 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-16 20:06:10 +00:00
Mike Evans
fb6993ef1c Re-indentation of source code.
Done using the following options:

    astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=noneR

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22433 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-02 21:44:56 +00:00
Mike Evans
9cedbe7b43 Fix bug in customer/vendor importer where new customers/vendors
were always created even if one with a matching ID already exists.
The intended behaviour is to update customer or vendor data if
one already exists with a matching ID.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22432 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-02 21:42:22 +00:00
Mike Evans
5d44c421ff Fix typo in regex.
modified:   customer_import/dialog-customer-import-gui.c

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22431 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-02 20:12:49 +00:00
John Ralls
5243631e64 Add Mozilla::CA as CPAN dependency for new F::Q TIAA-CREF module
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22429 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-01 00:58:25 +00:00
Christian Stimming
42a9a15285 Upgrade aqbanking package versions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22428 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-30 19:05:48 +00:00
John Ralls
7d0f95c214 Update to gtkosxapplication version 2
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22427 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-29 18:29:21 +00:00
Geert Janssens
6fe081eefb Move option parsing back into its own function
Since we can't use gtk_init_with_args, it makes more sense to keep the
command line processing in one spot, more or less as it was before.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22426 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-24 19:07:22 +00:00
Geert Janssens
fabd3553be Don't set the log file in gnc_module_init
This should fix the logging to stderr since r22419.
gnc_module_init used to change the log path to stderr.
Presumably this was needed before, as logging used to be initialized
after module initialization. This has now changed, so gnc_module_init
can make use of qoflog settings as chosen by the user (which by default
means logging to gnucash.trace).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22425 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-24 17:06:03 +00:00
Frank H. Ellenberger
7ddef0069b Bug #684719 - Man pages for gnc-fq-* perl scripts
first (static) publishing of the pod extracted man pages
until we have some consense.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22424 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-24 16:42:28 +00:00
Frank H. Ellenberger
381b602f35 Fix [13303] files were renamed, but content not adjusted.
This would produce misguiding man pages - if we would produce them.
Additional were a few typos incomments fixed. 
BP
?

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22423 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-24 10:25:33 +00:00
Christian Stimming
d2b0242b6d Aqbanking plugin: Cache pointer to GncMainWindow each time the plugin command is started.
Hopefully fixes bug#684632.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22419 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-23 19:53:29 +00:00
Geert Janssens
9c9577d961 Small code cleanups in the gnucash-bin code
- Delay gtk_init until really required
- Regroup some initialization functions
- Drop qof_log initialization. gnc_log_init does it as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22399 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-19 20:52:22 +00:00
Mike Alexander
3f130f2c1b Parse arguments before initializing GTK so --add-price-quotes works
when the GUI can't be initialized.  gtk_init_with_args fails before
parsing the arguments if the GUI can't be initialized.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22398 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-17 01:09:59 +00:00
Frank H. Ellenberger
c66dec15f7 Fix of [21869]: src/plugins/bi_import/glade/* moved to gtkbuilder, but for some reason files were only trunkated.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22397 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-16 15:17:24 +00:00
Frank H. Ellenberger
73801f3203 Add "compound interest" and "principal payment" to glossary.
IMHO fundamental terms found in fin.scm / loan repayment calulator

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22396 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-16 13:32:41 +00:00
Frank H. Ellenberger
15476e3de0 add futureValue and computeInterestIncrement to fin.scm
as announced by jsled in http://lists.gnucash.org/pipermail/gnucash-user/2005-February/012964.html
additional improving of comments

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22395 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-16 13:17:34 +00:00
J. Alex Aycinena
91f76f4eea Correct error in search dialog where results sub-window(s) is(are) erroneously created.
To reproduce the error, open Gnucash (for example with --nofile argument), open a Find Transactions dialog (Edit->Find), open a Find Customer dialog (Business->Customer->Find Customer), open a Gnucash Preferences dialog (Edit->Preferences) and change some preference (for example, under the Register tab, select Use system theme colors). Each time a preference is changed the Find dialogs get wider as a new results sub window is created and added to the dialog. This happens because any time gnc_gui_refresh_all is called, which is the case when a preference is changed, and on other occasions as well, the refresh_handler in dialog-search.c is called for any open search dialog which calls gnc_search_dialog_display_results which, in turn, erroneously creates and adds the sub window. If the search dialog was initially created with a result_cb, as is the case for Find Transactions, the results sub window should never be created. If it was not, as is the case with Find Customer and all other calls, only one sub window should be created per dialog and it should only be refreshed if it already exists.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22387 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-14 22:12:02 +00:00
Geert Janssens
67b5ec103b Add missing file to dist
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22384 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-11 13:10:23 +00:00
Mike Alexander
54d1d0fa7f [Bug 683222] Display the "to amount" in the exchange rate dialog
when it is first shown.  Also updated some comments to be more
accurate.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22383 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-11 03:29:46 +00:00
Mike Alexander
e1bd508f61 Add xaccTransDump back, it is very useful when debugging.
It was removed in SVN r21579, "Cruft Reduction"< but it's not cruft.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22382 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-11 03:29:39 +00:00
Geert Janssens
ea2d564c3d Win32 build: more post-libgnome related build script changes
The previous commit broke the build. Hopefully this one fixes it again.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22381 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-10 19:22:22 +00:00
Geert Janssens
b0515f4b5e Win32 build: remove libgnome related parts from the build scripts
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22380 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-10 19:22:12 +00:00
Geert Janssens
3cf132b466 Replace gnome_program_init with gtk_init
This required some small reorganization of our setup code, but the end
result is that gnucash is now independent of libgnome.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22379 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-10 19:22:00 +00:00
Geert Janssens
77bc7e3753 Show help and guide in gnome independent way
The idea was taken from another gnome app: planner.

Note that the documentation has to be installed properly
for this to work on linux. Our current documentation
build doesn't install the documentation in the right way
and yelp won't find it. A fix has been committed, but
it will only be available in the next documentation
release.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22378 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-10 19:21:49 +00:00
Geert Janssens
b3dd4de2a2 Eliminate gnome dependency in file location functions
As a side effect, they can now be grouped together with
our other file location functions in core-utils. They
no longer depend on any gui library.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22377 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-10 19:21:38 +00:00
Christian Stimming
05a6a1cc87 Minor improvement of OFX import with missing date field. Unfortunately libofx doesn't do this right in any case.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22376 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-09 20:26:58 +00:00
Geert Janssens
1277f64c8f Fix critical gtk warning introduced with r22360
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22375 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-09 19:01:02 +00:00
Geert Janssens
f5bbf10224 Add comments and small code optimizations to the previous commit
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22360 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-05 13:34:22 +00:00
Geert Janssens
f4eac66079 Bug #682660 - Add Account background colour to Account page.
Author: Robert Fewell <14ubobit@gmail.com>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22359 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-05 13:34:12 +00:00
Geert Janssens
f48ef78090 Reduce dependency on libgnome
After this patch the only parts still requiring gnome libraries are
- src/bin/gnucash-bin.c (for gnome_program_init)
- src/gnome-utils/gnc-gnome-utils.c (for gnome_program_init)
- register-gnome (only uses libgnomecanvas)

Some refactoring was required in register-gnome to prevent other parts
of GnuCash to continue to depend on libgnomecanvas as well (the
register interface needlessly exposed the implementation details, thus
leaking GnomeCanvas dependencies to other parts of gnucash).

Most other changes simply replaced gnome specific stuff with gtk
equivalents.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22358 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-05 10:45:04 +00:00
Geert Janssens
29c4096266 Replace deprecated GDK_* with GDK_KEY_*
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22357 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-05 10:44:51 +00:00
Geert Janssens
653d7da4d8 Simplify dialog creation on date close dialog
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22356 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-05 10:44:39 +00:00