Bug 632931: Advanced Portfolio: total gains does not include income

- new column layout as suggested on bugzilla. Total return is now an amount
  (not a percentage), and includes income as well as capital gains. New
  column "Rate of return" gives the percentage.
- changed default value for "Ignore brokerage fees when calculating
  returns", the default is now to NOT ignore the fees.

Patch by Sebastien Alborini <salborini@gmail.com>
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22018 57a11ea4-9604-0410-9ed3-97b8803252fd
Fix "'txn' may be used uninitialized in this function" warning

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22021 57a11ea4-9604-0410-9ed3-97b8803252fd
Bug #670002 - updates to comments format for gnc-fq-check and
gnc-fq-helper utilities.
Patch by Dmitry Smirnov

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22025 57a11ea4-9604-0410-9ed3-97b8803252fd
Add an additional test that hopefully will shed more light on bug
666855.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22026 57a11ea4-9604-0410-9ed3-97b8803252fd
Properly handle Windos end-of-line markers in determining xml file versions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22038 57a11ea4-9604-0410-9ed3-97b8803252fd
Fix broken value-to-kvp conversion for number range option which doesn't get the kvp type correctly.

This seems to be have been broken all along since r7094.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22049 57a11ea4-9604-0410-9ed3-97b8803252fd
Payment dialog ui tweaks. Make it slightly larger by default and enable sorting on the document list

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22050 57a11ea4-9604-0410-9ed3-97b8803252fd
Fix translatable strings. Patch provided by Aurimas Fišeras.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22053 57a11ea4-9604-0410-9ed3-97b8803252fd
Bug #668693: aqbanking: Use "focus-out-event" to track amount changes in transaction dialog

"amount-changed" is only emitted on KP_ENTER and thus doesn't help us while "changed" confuses the widget.

Patch by Johannes Schmid.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22054 57a11ea4-9604-0410-9ed3-97b8803252fd
[cutecash] add gnc-features.[hc] to cmake. Follow-up to r21981.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22056 57a11ea4-9604-0410-9ed3-97b8803252fd
Fix a warning due to the wrong declaration for the return value of gzopen.
The return value is off by a level of indirection, it should be a gzFile not
gzFile *.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22057 57a11ea4-9604-0410-9ed3-97b8803252fd
Fix r22010 to not crash if the current file has no company name.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22058 57a11ea4-9604-0410-9ed3-97b8803252fd
Fix gtk_entry_set_text error warnings.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22060 57a11ea4-9604-0410-9ed3-97b8803252fd
Bug #670727: Clarify license of a file to be GPLv2 and GPLv3

gnc-dense-cal.h: License remark was forgotten in r19507, but the author
Josh Sled agreed on GPLv2 and GPLv3 licensing in his gnucash-devel
message on 2010-08-28.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22063 57a11ea4-9604-0410-9ed3-97b8803252fd
New plugin to import customers and vendors from a csv type file.
From a patch by Sebastian Held.
Again the CSV file is of fixed number of fields, similar to invoice/bill importer.
Please test this.
Field list:
id,  company,  name,  addr1,  addr2,  addr3,  addr4,  phone,  fax,  email,  notes,  shipname,  shipaddr1,  shipaddr2,  shipaddr3,  shipaddr4,  shipphone  shipfax,  shipemail
Vendors don't have shipping information so even though the fields have to exist, leave them empty.
The id field is optional, if empty a new id will be chosen. If an id is used this will UPDATE
a vendor/customer with the same id.  This may not be what the user wants.  Maybe this should
be optional/selectable behaviour.
To enable the plugin, add the line:
(gnc:module-load "gnucash/plugins/customer_import" 0)
to ~/.gnucash/config.user

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22065 57a11ea4-9604-0410-9ed3-97b8803252fd
Bug #670727: Extend license of 3 files to be GPLv2 and GPLv3.

This has been granted by the gnumeric copyright holders.
See https://bugzilla.gnome.org/show_bug.cgi?id=670727#c7

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22066 57a11ea4-9604-0410-9ed3-97b8803252fd
Remove potentially abandoned file (that has a GPLv2-only license, too).

The last contributors here, Josh Sled and Chris Lyttle, have put their
code under "GPLv2 and GPLv3" license, see r22063, but I'm too lazy to
look up the copyright holders on the file as a whole so I'd rather remove it.

If someone wants to add a similar packaging file again, feel free to do
so, but please don't use GPLv2-only code to do so.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22067 57a11ea4-9604-0410-9ed3-97b8803252fd
Fix memory leak: Missing regfree() after regcomp().

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22070 57a11ea4-9604-0410-9ed3-97b8803252fd
Remove obsolete strspn() call that causes valgrind warnings about invalid read().

The strspn() call was added in r8500 but the usage of its return value
was removed in r10315, so it isn't neccesary anyway.

The macro GNC_DEPRECATED is defined nowhere and used nowhere else, so
we can remove that block altogether.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22071 57a11ea4-9604-0410-9ed3-97b8803252fd
Fix minor memory leak: Return value of gnc_uri_get_components must get free'd.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22072 57a11ea4-9604-0410-9ed3-97b8803252fd