Commit Graph
100 Commits
Author SHA1 Message Date
Christian Stimming da217aa506 Fix the broken code of the reconcile list widget to not mess up the GtkCList class structure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21602 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 21:43:23 +00:00
Christian Stimming adb4a6fee6 Fix missing linker flag
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21599 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-20 10:20:15 +00:00
Christian Stimming b379a2fd18 More checking of the read-only flag of the book.
- GncEntryLedger switches to read-only
- Toolbar actions of several plugin pages switch to insensitive
  (invoice, normal register)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21585 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-19 11:49:00 +00:00
Christian Stimming 21216a137a Extend File->Open dialog on locked file: Offer to open read-only as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21584 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-19 11:48:42 +00:00
Christian Stimming eb7e2f4be9 Fix compiler warning about /* inside comment. (Can't be nested.)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21583 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-19 10:42:48 +00:00
Christian Stimming 5b4fa6128a Another minor revert of "[Cruft Reduction] Remove unused functions from src/engine"
The compiler complains if there is no previous declaration of the non-static
function xaccSplitSetSlots_nc.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21582 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-18 21:56:07 +00:00
Christian Stimming c1381f5ca4 Minor reverts of "[Cruft Reduction] Remove unused functions from src/engine"
Those two functions are in use in the C++ code.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21581 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-18 21:53:28 +00:00
Christian Stimming 0214098fdc Add the possibility of multi-selection in the invoice/bill search window (but so far still disabled).
Eventually, this should enable multi-duplication of a selection.
However, my gtk-2.20 seems to be broken w.r.t. multi-selections in
GtkCList, so I better have this available only in newer gtk and so far still deactivated.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21580 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-18 21:53:13 +00:00
Christian Stimming 3365baa7ed Take into account the read-only flag of the book to update the buttons in the register accordingly.
Also, the register itself must be read-only.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21569 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-14 21:28:32 +00:00
Christian Stimming 411261ae17 Remove obsolete documentation texts.
Those are so insanely obsolete, it hurts our eyes.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21568 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-14 19:43:20 +00:00
Christian Stimming 44e679a5a3 Minor code cleanup: Rename field "primary_book" into "book" because there are no multiple books in gnucash at all.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21566 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-13 21:33:29 +00:00
Christian Stimming 55463dd5be Check the read-only attribute in the XML backend as well and refuse to save if we are read-only.
Also, add a "(read-only)" suffix in the window title if we are read-only.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21565 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-13 21:26:21 +00:00
Christian Stimming c4c39aa964 Bug #663934: Fix potential crash on failing aqbanking setup druid lookup.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21564 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-13 21:01:31 +00:00
Christian Stimming d25a992701 Add unittest for gnc_dmy2gdate() function to verify the correct behaviour of the by-value returned value.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21563 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-13 20:39:53 +00:00
Christian Stimming 5e1dde2018 Fix occasional not working "up / down" arrow in invoice window.
This was because the "date" field was indeed be set with a different
time of day (noon vs. start of day), depending on the various code
places.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21562 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 21:58:36 +00:00
Christian Stimming 3a4cd615e8 Use the GDate-based date setter of GncEntry where suitable instead of the timespec one.
This fixes the time-of-day mismatch between entering a new entry
(that was using timespecCanonicalDayTime, "noon") vs. duplicating
an invoice (that was using gnc_timet_get_today_start, "start of day").

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21561 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 21:58:21 +00:00
Christian Stimming 6a0f3b5a57 Add accessor/setter for the date of a GncEntry as a GDate.
This is much more suitable to avoid any ambiguities due to differently
chosen time-of-day in various parts of the code.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21560 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 21:58:04 +00:00
Christian Stimming bbb529263b Add two more helper functions dealing with GDate.
In particular, glib doesn't offer a function for easily accessing
the "today" date as a GDate. What a pity. It's added now as gnc_g_date_new_today().

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21559 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 21:57:52 +00:00
Christian Stimming e782c612f6 Simplify QofSession to own only exactly one QofBook.
No more, no less. This object isn't used in any other way in gnucash, so
we better get rid of the extra potential complexity here.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21548 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-09 21:45:12 +00:00
Christian Stimming 66ddf0c74f Revert r21517 "Add is_readonly attribute to QofSession class."
This is not needed. See
http://lists.gnucash.org/pipermail/gnucash-devel/2011-November/032793.html
and thread.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21547 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-09 21:44:58 +00:00
Christian Stimming 10891aa738 Fix erroneous return value of gnc_gconf_get_float()
Discovered in bug#663433 - the return value was cached in an int variable
instead of a gdouble one.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21541 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-09 13:07:05 +00:00
Christian Stimming 13ca8524d1 Remove qof_session_add_book() - a QofSession is used only with one book throughout gnucash.
Subsequently, the QofBook pointer in QofSession can be changed from
a GList to a QofBook*.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21526 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-06 20:53:59 +00:00
Christian Stimming 4a5ec547e8 Add is_readonly attribute to QofSession class.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21517 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-03 21:48:00 +00:00
Christian Stimming 759312dd10 [glibmm] Unify naming convention of member methods: Always use underscore naming.
No more CamelCase in engine C++ wrappers, hopefully.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21509 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-29 19:39:50 +00:00
Christian Stimming 6ae771d69a Fix dependency of python module - does not require any C++ header.
Somehow Transaction.hpp erroneously appeared here in r19802.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21507 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 20:50:12 +00:00
Christian Stimming 58ed6b9863 [Cutecash] Fix code to work with glibmm wrappers.
Changes:
- Use QT_NO_KEYWORDS because the identifier "signal" collides with some glibmm dependency
- Use Glib::RefPtr<> of gnucash objects everywhere.
- Use Glib::ustring and Glib::Date instead of qt types

The WeakPointer.hpp file is still used for gnc::Session, which is not
(yet) a GObject.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21506 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 20:34:55 +00:00
Christian Stimming e4094a69c5 [Cutecash] Remove separate Qt wrappers of engine objects by glibmm wrappers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21505 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 20:34:44 +00:00
Christian Stimming 0d41e00a15 [glibmm] Minor updates to the wrappers for cutecash preparation; clarify bool argument of Glib::wrap().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21504 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 20:34:31 +00:00
Christian Stimming 3743ed74db [Gtkmm] Add another predicate for the string_option of GncBook.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21487 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-24 20:41:28 +00:00
Christian Stimming 905e478531 [Gtkmm] [Cutecash] Unify the glibmm and Qt C++ wrappers of the engine even more.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21486 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-24 20:41:15 +00:00
Christian Stimming e08bea1336 [Cutecash] Prepare cutecash for integration of the glibmm wrappers of the engine objects.
This would be an excellent test case for those wrappers...

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21485 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-24 07:59:30 +00:00
Christian Stimming 5a2b27c233 [Gtkmm] For unittests we only need glibmm, not gtkmm.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21484 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-24 07:59:18 +00:00
Christian Stimming 0a2a3f2756 [Gtkmm] Add gnc::GncInstance as wrapper for QofInstance, to be used as a base class for the derived qof classes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21483 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-23 20:43:51 +00:00
Christian Stimming 034acec8d8 Gtkmm wrappers: Get first test case up and running.
The second argument to Glib::wrap was the important one. While at it,
I added a few more wrappers to gnc::Book and implemented their unittests.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21482 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-22 21:30:51 +00:00
Christian Stimming 3c31952bc7 [Cutecash] Rename get() member to gobj() to increase compatibility to future gtkmm wrappers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21481 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-22 20:10:08 +00:00
Christian Stimming 4684029cbd Add first unittest for glibmm C++ wrapper of QofBook.
Unfortunately, this reveals the C++ wrappers will only work if the GObject
system is used properly, that is, including ref() and unref() and such.
This is not what I'd expect throughout gnucash.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21431 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-17 20:10:56 +00:00
Christian Stimming c8ec0537bc Re-indentation of source code.
As usual, re-indentation was done using astyle-1.24 using the following options:

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

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21430 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-17 19:07:41 +00:00
Christian Stimming 4b6b6b90da I18n: Use ngettext for translation string with plural form.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21429 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-17 19:07:26 +00:00
Christian Stimming b32a0aa0e7 Let the "assign payment" feature choose customer or vendor payment, depending on whether the amount is positive or negative.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21401 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-08 20:30:28 +00:00
Christian Stimming 30d3cfc914 Try to get rid of CRIT trace messages by checking for owner validity first.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21390 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-08 09:20:20 +00:00
Christian Stimming 40000ee934 Fix failed assertion if there is no A/R or A/P account involved.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21389 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-08 09:20:07 +00:00
Christian Stimming 049b06e37a Documentation improvement of GncOwner functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21388 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-08 09:19:54 +00:00
Christian Stimming a64588c7fd Win32: Add missing linking of libgncmod-business-gnome against libgnc-gnome which is needed since r21383.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21387 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-08 08:46:28 +00:00
Christian Stimming d4f33a5867 Add right-click menu item "Assign payment" to assign a transaction as a payment.
Feature request as described on
https://gnucash.uservoice.com/forums/101223-feature-request/suggestions/1536285-reassociate-already-existing-transactions-with-a-b?ref=title

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21383 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-07 21:50:14 +00:00
Christian Stimming e0e564f234 Extend "Process Payment" dialog so that it accepts an existing transaction as well, and marks this as payment.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21382 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-07 21:49:56 +00:00
Christian Stimming 9ba96dd403 Win32 build: Make sure to distribute all of gwenhywfar's share directory.
In newer gwenhywfar versions there are more sub-directories here which are
required for the online banking setup GUI.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21378 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-07 10:00:34 +00:00
Christian Stimming 65b871611d Need to rename enum symbols to not conflict with those from gnc-split-reg.h.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21368 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-30 18:48:07 +00:00
Christian Stimming 588ccc145f Refactor gncOwnerApplyPayment() so that the second part is available as separate function gncOwnerAssignPaymentTxn().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21367 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-30 18:47:56 +00:00
Christian Stimming c8ecb4d937 Add some const where applicable.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21366 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-30 18:47:43 +00:00
Christian Stimming 7ca4a0bb26 I18n: Use ngettext for translation string with plural form.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21365 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-29 14:22:19 +00:00
Christian Stimming e84d64f303 Win32 build: Update version numbers of aqbanking, gwenhywfar, ktoblzcheck.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21361 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-29 10:06:11 +00:00
Christian Stimming bdd46d7c38 Glibmm: Add the final important engine objects as glibmm wrappers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21300 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-22 20:14:59 +00:00
Christian Stimming e2fbc55ad8 Glibmm: Add the common QofInstance methods by using an additional base class.
Not yet complete, but at least compiles fine.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21294 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-22 10:50:26 +00:00
Christian Stimming cd916aeb51 Add Glibmm C++ wrappers of GObject objects to the optional gtkmm module.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21293 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-22 10:50:12 +00:00
Christian Stimming c3f2b14470 Bug #658851: [Cutecash] Sort the dashboard from latest to earliest.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21256 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-13 18:49:27 +00:00
Christian Stimming b2e8c5d2de GSoC Cutecash project by Nitish Dodagatta (last half)
Summary of the project by the GSoC student, copied
from http://wiki.gnucash.org/wiki/GSoC2011#Student_Summaries :

A new user interface for Gnucash core using Qt/C++ was started by one
of the Gnucash developers in 2010. [1] The idea is to create a
lightweight user friendly UI, reusing the backend core API of
Gnucash. During the project, I created a widget to allow a user to add
two split transaction to/from different accounts. After that I worked
on adding an overview widget showing a list of recent transactions
entered. It consists of two report views containing income and
expense. This view also called as First Person Overview provides an
easy to browse list of transactions. The idea is to integrate common
handy features with these views. The present view lists four entries
for each transaction: date of the transaction, transaction
description, split account name and split amount. Each of the entries
are inside their own QWidget, so as to allow interactive features to
be coded on each of the entries.

The already existing code had some C++ wrappers to convert the return
values of C functions to Qt data types. I made use of them whenever
possible. And at some parts of the code I used the C functions
directly where it made things easier for me. The FPO consists of one
or more viewlets. A viewlet is nothing but a list of transactions, a
slightly minified version of General Journal, to easily browse
transactions sorted by date. The viewlet generator function works such
that there is no date entry or account name entry, if it is the same
as the previous (above) one. This information is then used by
ViewletView to generate the UI part. To make the views visually
appealing and readable, QStyleSheets are used which distinguishes the
various types of entries in the viewlet.

Overall, it was a rewarding experience, I learned a lot of new things,
common pitfalls, handy tips and tricks, and a better understanding of
the Gnucash core API . The project was observed only by myself and my
mentor. During the course I also generated windows builds for two of
my friends who were interested to have a look at the features
implemented. I received positive feedback from them and couple of
feature requests from them. Working on this project within GSoC was a
rewarding experience. I thank my mentor Christian Stimming for guiding
me along and giving very helpful advices and hints during the
summer. I definitely would like to continue contributing to Gnucash
community in future.

[1] http://wiki.gnucash.org/wiki/Cutecash

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21241 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-07 18:03:20 +00:00
Christian Stimming 3ac46f5572 GSoC Cutecash project by Nitish Dodagatta (first half)
- Use system icons, fallback icon theme included
 - Prototype of unified transaction entry widget

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21240 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-07 18:03:07 +00:00
Christian Stimming 898f07776d (cppcheck) Fix several memory leaks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21233 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-01 06:51:19 +00:00
Christian Stimming 7c1d4a91b3 (cppcheck) Fix mismatching allocation and deallocation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21232 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-01 06:51:06 +00:00
Christian Stimming df19c62b8d (cppcheck) Fix a possible memory leak: data
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21231 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-01 06:50:56 +00:00
Christian Stimming 62fa222c27 (cppcheck) Fix mismatching allocation and deallocation: namespace
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21230 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-01 06:50:45 +00:00
Christian Stimming bd57ef050a (cppcheck) Remove several redundant null checks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21229 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-01 06:50:32 +00:00
Christian Stimming 79a731c87d Include refactored ui related balance functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21218 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-25 07:57:55 +00:00
Christian Stimming ad1daba095 Remove Period.[hc] file also from cmake files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21206 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-22 07:12:37 +00:00
Christian Stimming 1961766c99 Re-indentation of source code.
As usual, re-indentation was done using astyle-1.24 using the following options:

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

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21205 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-22 07:10:56 +00:00
Christian Stimming b8fdfb834b (cppcheck) fix two possible memory leaks
Patch by Aurimas Fišeras.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21202 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-21 19:42:55 +00:00
Christian Stimming e256168765 (cppcheck) Fix "error: Memory leak: bufp"
Patch by Aurimas Fišeras.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21201 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-21 19:42:44 +00:00
Christian Stimming 8b3650e07f (cppcheck) Fix a possible memory leak
Patch by Aurimas Fišeras.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21200 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-21 19:42:34 +00:00
Christian Stimming 73e9f51253 (cppcheck) Remove redundant null check
Patch by Aurimas Fišeras.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21199 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-21 19:42:23 +00:00
Christian Stimming 4c643a3435 (cppcheck) Fix "error: Memory leak: gea"
Patch by Aurimas Fišeras.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21198 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-21 19:42:10 +00:00
Christian Stimming 6f1b6a5fcd (cppcheck) Fix "error: Memory leak: msg"
Patch by Aurimas Fišeras.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21197 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-21 19:42:00 +00:00
Christian Stimming 1f9daad76f (cppcheck) Fix "error: Mismatching allocation and deallocation: symbol"
Patch by Aurimas Fišeras.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21196 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-21 19:41:49 +00:00
Christian Stimming bd71091499 Minor documentation clarifications.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21128 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-08 07:00:05 +00:00
Christian Stimming 8c5f6ebf5d Revert r21121, "Fix a weird include", and improve documentation of that.
Note: The qofmath128 functions are used mostly here and almost
nowhere else. Hence, we inline the C code directly into here so
that the compiler can potentially inline the code as-is and speed
up the gnc-numeric.c functions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21127 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-08 06:59:54 +00:00
Christian Stimming 64418350b7 Clarify documentation of gnc_account_get_children() vs. xaccAccountGetSplitList().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20803 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-27 08:02:15 +00:00
Christian Stimming 378a153d16 [Cutecash] Add predicate of whether a file is open.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20802 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-27 07:23:59 +00:00
Christian Stimming dd3cdd66db [Cutecash] Set QCoreApplication properties used by QSettings in a single place, constructor.
Patch by Nitish Dodagatta.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20777 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-20 18:55:17 +00:00
Christian Stimming 41b9a40e77 [Win32 build] Update aqbanking versino to 5.0.10
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20754 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-12 19:54:06 +00:00
Christian Stimming a7d323bb50 Add some more doxygen comments for gnc_numeric.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20753 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-12 19:29:07 +00:00
Christian Stimming a1b404079c [win32 build] Update gwenhywfar version.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20752 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-11 19:26:56 +00:00
Christian Stimming d8945045a6 Cutecash: Add separate doxygen file to show the C++ code structure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20722 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-31 10:51:52 +00:00
Christian Stimming ad3f925b50 Bug #651329: Add some python convenience functions
Patch by Christoph Holtermann:

1) gnc_convenience.py adds some convenient functions.
2) quotes_historic.py uses find_account() from 1)
3) Small Bug removed : GetNthSplit() already returns a Split-Object because
that is returned by GetSplitList(). In this case it returns a nested
Split-Object.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20714 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-28 18:53:35 +00:00
Christian Stimming f3004e7c2c I18n: Minor string improvement so that the capitalization is unified in all similar translated strings.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20699 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-27 07:37:34 +00:00
Christian Stimming e1fc47463a Win32: Update aqbanking version
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20696 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-27 06:54:51 +00:00
Christian Stimming e782f4368c Improve python bindings: str_methods.py improved.
Patch by Christoph Holtermann:

str_methods.py
- added a flagging system to change the output of the __str__ methods
- added unicode and str-methods to invoice and entry

function_class.py
- added modified add_method and add_classmethods to implement the previous

gnucash_business.py
- add methods_return_instance_lists for method Invoice.GetEntries

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20695 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-27 06:39:27 +00:00
Christian Stimming dd28320120 Preserve selection around the call to gtk_editable_set_position.
Patch by Jim Paris:
This lets us drop the racy gnucash_sheet_select_data_cb, which fixes
problems with lost input.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20689 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-24 20:35:37 +00:00
Christian Stimming 95998ceed2 CMake: Add correct dependencies of generated swig.c files on all headers
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20688 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-24 11:01:58 +00:00
Christian Stimming cf6b102691 Fix makefile after file removal in r20669
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20676 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-23 19:15:44 +00:00
Christian Stimming a40d35b037 Bug #650757: Fix Easy & footer styles output wrong tags </btd> iso </b></td> preventing HTML 4.01 Transitional validation
Patch by Bert:

This patch removes the wrong </btd> tags and closes the center tag in the
footer and easy stylesheets.

Just like Bug #650163 (and related to bug #616611) the easy & footer
stylesheets:
*output </btd> tags instead of <b></td>
*are missing a </center> tag

preventing html validation.

This patch removes the intended </b> and makes a clean </td> out of the
necessary tags. The styles are set through css anyhow. Furthmore it adds the
closing </center> tag.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20675 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-23 19:14:31 +00:00
Christian Stimming 9fbeb730ea Bug #645221: Patch to show the headline as an h3 across all stylesheets
Patch by Bert:

The attached patch makes sure that the title fonts set through the options menu
behaves consistently across all style sheets.

More specifically, it patches the following style sheets:
*stylesheet-fancy
*stylesheet-footer
*stylesheet-easy

Since I don't know how to change the default values, this will change the
visual appearance until people alter the settings (e.g. move everything to
Sans, 10, bold).
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20674 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-23 19:14:20 +00:00
Christian Stimming 153182da66 Bug #620123: Patch to make account name a header cell, iso td in trial-balance
Patch by Bert.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20673 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-23 19:14:07 +00:00
Christian Stimming 51e2d50667 Bug #650598: Patches to allow scheduling of Nth Day of Month Transactions.
Patch by "Rich":

I have transactions that should be scheduled on the second Wednesday of every
month.  There is presently no way to do it.  I made changes and have tested
them.
This patch enhances the scheduled transaction feature to allow nth day of week
monthly entries. The weekend adjust spinner is ignored when an nth day of week
entry is scheduled.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20672 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-23 19:13:55 +00:00
Christian Stimming ba96a6f331 Win32: Update aqbanking5 version.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20671 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-21 20:16:57 +00:00
Christian Stimming bb18641d0c Win32: Fix compiler warnings about potentially uninitialized functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20657 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-18 18:52:32 +00:00
Christian Stimming cef7c42d93 Minor doxygen improvements: The important types Split, Transaction must be mentioned in the group heading.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20652 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-16 09:13:40 +00:00
Christian Stimming 175bfb3132 Bug #602052: Fix text search options with small revisions for usability
Patch by Leigh Honeywell:

Revised patch to change the search case insensitive to a checkbox

This should work better - it now defaults to off, and is captioned "Match case"
instead of "Case Insensitive?" which I think is clearer.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20649 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-15 19:28:26 +00:00
Christian Stimming be095393dc Bug #650241: Fix style for aging table in owner reports that has changed (after defining doctype)
Patch by Bert:

Prevent inheriting the parent tablestyle for aging table in owner-report

Bug #650139 & its patch in r20639
have some side-effects:
positive is that borders are shown for empty cell (#642222).

However, the aging table in the owner report now inherits the style from its
parent table, which means that all cells of the aging table are showing as
"centered-label-cell". This means:
*In the regular stylesheet: all text in the cells is bold
*In technicolor stylesheet: all cells have a yellow background

This patch removes the "centered-label-cell" class from the parent table cell
and shows the layout of the aging table to how it was before.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20648 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-15 19:28:16 +00:00
Christian Stimming eeb3250927 Bug #650163: Fix Technicolor style that outputs wrong tags <btd> instead of <b><td>
Patch by Bert:

The technicolor stylesheet outputs </btd> tags where what they actually meant
to do was </b></td>. This may render report outputs wrongly in different
browsers and prevents HTML validation.

The proposed patch removes the bold tags as well (for example for the total
rows) since the font and its weight are set in the options (and thus reflected
in the CSS style). There is no need for the report to set the bold face with
the <b> tag.

In addition, the attached patch also closed the <center> tag at the beginning
of the body (also preventing validation). Note that that this tag is deprecated
for newer version of html (but will pass HTML 4.01 Transitional).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20647 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-15 19:28:04 +00:00
Christian Stimming acac27d27a Bug #647532: Enter APR as interest rate in Loan Druid
Patch by Nick:

This patch allows the user to enter the APR for a loan rather than the simple
interest rate and then the druid will calculate the correct interest rate for
the scheduled transaction that it produces.

It includes a small change to the shed-xact.glade file which provides a
dropdown box to select the rate that has been entered and changes to
druid-loan.c which calculate the simple interest rate as the scheduled
transaction strings are generated.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20646 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-15 19:21:10 +00:00
Christian Stimming e93c103475 Bug #650139: Fix missing doctype preventing HTML 4.01 transitional validation
Patch by "Bert":

This patch fixes part of the missing doctype for most reports through
html-document.scm

Exported reports lack a document type, preventing HTML validation.

When exporting this may lead browsers to incorrectly read the reports generated
by GnuCash.

The attached patch aims for HTML 4.01 transitional validation of reports in the
long term and thus adds this doctype on top of the reports. While it is far
from perfect, 4.01 Trans looks like a good first target and can be read by most
(including older) browsers.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20639 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-13 20:17:50 +00:00