Commit Graph

14287 Commits

Author SHA1 Message Date
Geert Janssens
a48eabebda Bug #628342 - Quick open on File menu deleted if failed
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20540 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-06 21:05:38 +00:00
Geert Janssens
0fa543901e Bug #629156 Recently Used Filenames incorrectly displayed
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20539 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-06 21:05:30 +00:00
Geert Janssens
f8294efc5e Windows build: fix logfile naming for tag builds
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20538 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-06 16:02:58 +00:00
Christian Stimming
a1f90ceba1 Add useful error message when running gnucash from an incomplete installation (such as from the build directory).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20537 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-06 10:20:32 +00:00
Geert Janssens
b82aad54b6 Use quotes instead of <> to include project local header files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20536 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-05 20:18:45 +00:00
Geert Janssens
99fa06e61b Fix currency entry alignment in hierarchy assistant
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20535 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-05 19:56:02 +00:00
Geert Janssens
994d04a81c Remove gnome dependency
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20534 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-05 19:55:53 +00:00
Geert Janssens
3a809cfc98 Replace Account Hierarchy setup druid with gtkbuilder compatible gtkassistant
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20533 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-05 19:55:45 +00:00
Geert Janssens
6107870317 Provide gtkbuilder equivalents for some libglade based support functions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20532 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-05 19:55:37 +00:00
Geert Janssens
57e9c00db3 Introduce a new directory to store all gtkbuilder compatible ui files
It already holds a first set of files that were converted from libglade
to gtkbuilder.
CAUTION: not all the GUI objects in these files work properly already !
Glade (the tool) simply deletes all widgets that are not supported
by gtkbuilder during the conversion. These will all be fixed gradually
while the corresponding calls in the C code are converted.

The idea is that with each GUI element that gets fixed in the
gtkbuilder file, and subsequently called from C, the old
GUI element is removed from the corresponding libglade file until all
the libglade files are empty and can be removed.
This way the conversion can be done gradually and both methods can
coexist until all widgets and code are converted.

This first commit for example contains a converted account hierarchy setup
assistant, but not yet the code to use it, so the old druid is still in
the libglade file. Once the code can succesfully use the new assistant
from the gtkbuilder file, the old druid will be removed from the
libglade file.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20531 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-05 19:55:25 +00:00
Geert Janssens
c0bff17fc6 Add New Account Hierarchy assistant to replace the druid
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20530 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-05 19:55:16 +00:00
Geert Janssens
b7bbea239b Add assistant-utils, equivalent of druid-utils to be used with
GtkAssistant based dialogs.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20529 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-05 19:55:08 +00:00
Christian Stimming
9abd9f6086 Remove some more functions from libqof which are unused and look weird.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20526 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-04 09:25:10 +00:00
Christian Stimming
fb27768aea Fix warning about NULL guid_list in xaccQueryAddAccountGUIDMatch, which caused some total amounts in reports to disappear.
Apparently gnc:account-get-trans-type-splits-interval didn't watch out
for empty lists of accounts, and the resulting split list somehow
was bogus. Now that we check for empty account list, all is fine again.
This was broken for some months by now, maybe since r20404?

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20525 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-03 20:16:47 +00:00
Christian Stimming
cc632cff24 Sort Makefile/CMakeLists alphabetically.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20518 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-02 20:18:05 +00:00
Christian Stimming
c97da5c431 Remove another unused and un-compiled file from libqof. Now we got all of them.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20517 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-02 20:17:53 +00:00
Christian Stimming
79e7c77b39 Remove a set of kvp_frame functions which are unused throughout gnucash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20516 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-02 20:17:42 +00:00
Christian Stimming
82167d6a78 Revert r20509, "Rename header <qof/qofreference.h> into <qofreference-p.h> "
Somehow I missed the reference from src/engine/test/test-recursive.c.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20515 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-02 19:59:31 +00:00
Christian Stimming
5322a3080f Remove the qof_book_merge code because it is unused in gnucash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20514 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-02 19:59:20 +00:00
Christian Stimming
cb05504b72 Make some functions static which are used only inside libqof.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20513 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-02 19:59:06 +00:00
Christian Stimming
bae1b4e7b6 Remove a few completely unused and weird functions from qofutils.[hc].
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20512 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-02 19:58:56 +00:00
Christian Stimming
5a313a82c2 Rename qofmath128.h header to qofmath128-p.h because those functions are only private to libqof.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20511 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-02 19:58:45 +00:00
Christian Stimming
29fce2c21c Minor code documentation update: Add explanatory comment w.r.t. MSVC.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20510 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-02 19:02:32 +00:00
Christian Stimming
cb7c59d79b Rename header <qof/qofreference.h> into <qofreference-p.h> because it is used only internally in the libqof module (in qofsession.c)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20509 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-02 19:02:21 +00:00
Christian Stimming
aaa2410309 Remove completely unused and code from libqof which also doesn't get compiled for years by now.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20508 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-02 19:02:05 +00:00
Geert Janssens
683b7a6bbb Various spelling fixes in comments and translatable strings.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20507 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-01 18:08:17 +00:00
Christian Stimming
1921c342f0 Note webkit dependency in README.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20505 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-30 07:13:54 +00:00
Phil Longstaff
4e4fbf1933 During win32 build, if a component is already installed, print the installation path
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20501 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-29 01:17:00 +00:00
Christian Stimming
c6ec7e1039 Slightly lower the requirements from r20489 again so that the windows build builds.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20500 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-28 18:51:22 +00:00
Derek Atkins
95358ed1d9 Several people reporting that swig-runtime.h wasn't being created.
That's because '.' wasn't in the front of the SUBDIRS, so the Makefile
wasn't building the local targets.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20499 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-28 15:58:00 +00:00
Christian Stimming
ffa95c6c03 Bug #645518: Partly revert r20378, "Correct memory leaks found with valgrind"
The original author (Alex) asked to have this part reverted as it seems
to cause the crash explained in the bugreport, but he doesn't have time
to investigate this in detail right now.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20496 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-27 19:18:10 +00:00
Christian Stimming
f2028cf5c8 Fix glade message with unintended whitespaces.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20491 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-26 12:58:26 +00:00
Christian Stimming
0ab7e1762f Update German translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20490 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-26 12:58:13 +00:00
Christian Stimming
7d46b5fc0e Bump required gtk version to 2.16 as discussed on gnucash-devel.
This requirement will be increased to 2.18.1 once our win32 build
is upgraded.

Following the gtk version, I increased also all the other related libraries
according to what I found here: ftp://ftp.gnome.org/pub/gnome/platform/2.26/2.26.3/sources/

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20489 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-26 12:50:06 +00:00
Geert Janssens
245212e514 Windows nightly build: fix webserver directory creation hack
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20487 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-26 10:50:18 +00:00
Christian Stimming
a5ceef49c5 Bump gnucash version to 2.4.99 to distinguish this from stable ones.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20484 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-26 09:23:56 +00:00
Christian Stimming
8298177be7 Remove gtkhtml-related sources completely.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20483 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-26 09:23:45 +00:00
Christian Stimming
51e95d1840 Disable gtkhtml choice from gnucash as we now require the CSS/javascript features of webkit.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20482 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-26 08:59:07 +00:00
Christian Stimming
de7fec3b0e Bug #645640: Online transfer must not allow to change amount in second window
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20481 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-25 21:19:01 +00:00
Christian Stimming
2a380b3f78 Bug #645352: Customer and Vendor Reports should have separate income and expense subtotals per period; error if 'Amount' is not selected
Patch by Chris Curtis:

Add 'Credit' and 'Debit' columns and options; fix error if 'Amount' is not
selected.

For tax purposes it would be helpful if the customer and vendor reports
included the totals for the amounts earned, received, or billed for a given
time period.

The reports currently give a total, which is (if you're lucky) zero because the
credits cancel out the debits.  But for verifying or providing the amounts of a
1099-MISC, for instance, the report should show just the amounts credited or
debited depending on your business' accounting method.


Secondarily, if the 'Amount' column is deselected the report fails with an
error.

The attached patch both corrects this problem and adds the requested features.


The new columns are labeled simply 'Credit' and 'Debit' and do not attempt
context-aware naming ("Paid", "Billed", etc.) for simplicity and applicability
(cash versus accrual accounting).  The columns contain a running total, and the
final totals appear in a line above the Amount (running) total.

If the beginning period splits an invoice/payment pair an opening balance
appears and is accounted for in the Amount total as before, but is not included
in the Credit/Debit totals as it is outside the reporting period.  If the
Amount column is not selected for display then neither is the opening balance,
even if it otherwise would have been.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20480 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-25 19:57:20 +00:00
Christian Stimming
0c0297bcb3 Bug #644762: Deprecated __new__() call in function_class.py
Patch by Sara Arenson:

Patch to fix the deprecated __new__() call in function_class.py

When you create an object of type ClassFromFunctions (a subclass of object),
you get the following warning:

/opt/gnucash-2.4.0/lib/python2.6/site-packages/gnucash/function_class.py:55:
DeprecationWarning: object.__new__() takes no parameters
  return super(ClassFromFunctions, cls).__new__(cls, *args, **kargs)

As per Python docs (http://docs.python.org/reference/datamodel.html), __new__()
accepts class name and a list of arguments for the object's constructor.  Since
ClassFromFunctions's superclass's constructor has no arguments, we should not
be passing *args and **kargs.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20479 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-25 19:57:07 +00:00
Christian Stimming
39030f8a73 Bug #645406: Make transaction matching on memo and description case-insensitive
Patch by gnemas:

The function split_find_match() in import-backend.c scores
transactions according to comparisons of amount, date, description,
etc.

I noticed that the comparison of the description and memo fields is
case-sensitive.

This means that my supermarket entries that have descriptions "Giant
Food" do not match the downloaded descriptions "GIANT FOOD".

This applies to both the exact and the 50% match cases, and for both
the memo and the description fields.

The attached patch should fix this.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20478 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-25 19:56:51 +00:00
Christian Stimming
6e987e23f0 Correctly disable python unless --enable-python was given
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20477 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-25 07:57:15 +00:00
Geert Janssens
9d1ce4f716 Windows build: fix weekly 2.4 build and move log files into separate directory
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20475 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-24 21:50:01 +00:00
Christian Stimming
0775d8d8c2 Shared code between the various jqplot charts
From: Andy Clayton <q3aiml@gmail.com>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20474 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-24 21:30:24 +00:00
Christian Stimming
b6258d7a7a Add javascript jqplot 0.9.7r635 module so that it can be used in reports.
From: Andy Clayton <q3aiml@gmail.com>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20473 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-24 21:30:09 +00:00
Christian Stimming
4e4f194df2 Add needed python linker flags to app-utils-python.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20472 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-24 20:10:57 +00:00
Christian Stimming
a3443e4f90 Add code to start up a Python console during Py module init, but disabled by default.
If a python console is wanted, change the last section
of src/python/init.py to "if True:".

From: Andy Clayton <q3aiml@gmail.com>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20471 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-24 20:10:45 +00:00
Christian Stimming
1874219672 A somewhat rough start to a gnucash python module
This also renames the configure option to --enable-python.

From: Andy Clayton <q3aiml@gmail.com>
(with minor modifications by myself)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20470 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-24 19:47:47 +00:00
Christian Stimming
5cbf6cbdb1 Enclose building of app-utils-python in AM_CONDITIONAL so that it isn't build on a non-python build.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20469 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-24 19:47:32 +00:00