Commit Graph
100 Commits
Author SHA1 Message Date
Christian Stimming d4dc045db7 [Win32 build] Disable git.exe package again, as it might collide with DLLs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21847 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-11 21:48:43 +00:00
Christian Stimming 06b8201bc8 Add dependency on qofbook.h for swig generated file.
Otherwise the old generated file complains about a missing declaration
from r21832.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21840 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-10 21:34:56 +00:00
Christian Stimming 7075a77fc0 Let the libgncmod-test-engine be built by the noinst target instead of check target.
This is needed to compile the backend/sql test target, which requires
this library to be built even if this isn't the "check" target.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21826 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-08 20:08:54 +00:00
Christian Stimming e0e4994ed1 [Win32 build] Let git.exe be downloaded and unpacked as well. We might start using it sooner or later.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21818 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-02 12:51:24 +00:00
Christian Stimming 3fcdf59adf 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@21816 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-01 20:36:46 +00:00
Christian Stimming fc268dba92 Read-only mode: More menu items grayed out: Close Book; Online Banking Setup.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21815 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-01 20:36:29 +00:00
Christian Stimming 3ad34bda49 [Cutecash] Remove removed files of r21799 also from CMake.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21814 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-01 19:49:28 +00:00
Christian Stimming f04b5c4443 [Win32 build] Update aqbanking version again.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21812 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-01 19:43:03 +00:00
Christian Stimming e067a30f2d Read-only mode: Add "Revert file" menu item so that a file that might got changed from someone else can easily be reloaded.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21810 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-31 16:32:12 +00:00
Christian Stimming 6f3b555946 Add keyboard shortcut in menu (similar to r21652) for a few more items.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21809 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-31 16:32:01 +00:00
Christian Stimming 29aa98e460 Read-only mode: Add "Read-only" checkbox when opening a file/database.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21807 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-31 10:41:44 +00:00
Christian Stimming 9ab50b259a Export-to-PDF: Make output file name configurable, at least through gconf keys.
One gconf setting for the output date format, and another one for the actual
output file name string.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21804 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-30 22:06:12 +00:00
Christian Stimming e707b1227c Read-only mode: When using qof_session_swap_data, don't swap the read_only flag but only the rest of the QofBook.
Otherwise the temporary new session during "Save As" is read-only where in reality
it shouldn't be (but the old session should).

This makes "Save As" work correctly, but many UI elements don't get updated
to reflect the fact we've now got a read-write book again. (E.g., all open registers.)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21795 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-29 22:14:43 +00:00
Christian Stimming 0e604fe8f3 Revert r21789 - not needed as r21791 adds required include flags in a better way.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21793 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-29 21:36:35 +00:00
Christian Stimming f23f4cde55 [Win32 build] Enable libxslt to be built in a cross-compile environment.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21789 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-29 19:50:56 +00:00
Christian Stimming 84308c2142 [Win32 build] Another aqbanking version update.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21788 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-29 19:50:40 +00:00
Christian Stimming 3e26c7943f Update versions of gwenhywfar, aqbanking to most recent ones.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21786 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-28 21:42:15 +00:00
Christian Stimming 2d4d0d490d Fix crash due to non-initialized variable. (Why didn't gcc complain here...)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21784 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-28 21:11:53 +00:00
Christian Stimming 944ea0918a Move "Print to PDF" menu item of r21722 right next to the "Print" menu item in the file menu.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21783 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-28 21:11:42 +00:00
Christian Stimming ddd7f28648 Win32 build: Switch weekly build to daily one.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21761 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-20 08:04:00 +00:00
Christian Stimming 8ec43f39ec Add customer-specific memory of PDF-Export output directory. Makes exporting to PDF rather easy.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21758 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-19 22:25:56 +00:00
Christian Stimming 042b069d84 Minor code documentation improvement of the export-to-pdf feature.
* Only propose output folders that actually exist.
* If the jobname already contains a full filename path, use it as proposed
output path.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21757 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-19 22:25:45 +00:00
Christian Stimming 81271aa62b Added icon for "Export to PDF", copied from GNOME icons (license: GPL)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21756 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-19 22:25:34 +00:00
Christian Stimming e5119362e5 [Cutecash] Add needed include path.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21750 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-19 11:44:15 +00:00
Christian Stimming 1c6debfd8a [Cutecash] Update libxml2 include path lookup.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21749 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-19 11:37:36 +00:00
Christian Stimming 4aead6ae7d [Cutecash] Fix cmake after file removal.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21748 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-19 11:37:25 +00:00
Christian Stimming 6ebd6f1afe Fix typos in r21743.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21747 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-19 11:27:41 +00:00
Christian Stimming 4f7f700837 Fix typo in r21742.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21746 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-19 11:27:29 +00:00
Christian Stimming 7b08c8f345 Make sure to ask for an export-to-PDF output folder every time.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21723 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-12 22:03:45 +00:00
Christian Stimming c5b86dd183 Add "Export to PDF" menu item for reports.
gnc_html_print gets an extra boolean argument to choose the "Export as PDF" option.
The GtkPrintOperation expects a full file name in set_export_filename, though.
We obtain one by asking the user for it.

This action still needs a more suitable icon.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21722 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-12 21:53:14 +00:00
Christian Stimming f4c07c8278 Remember the printing setting after a Report print job
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21716 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-11 21:50:27 +00:00
Christian Stimming 8380d447d6 Make the report name for clicking "Print Invoice" a preference.
The implementation of a GtkComboBox in the preference is somewhat suboptimal
as the gconf key is the integer index in the combo box, but the needed key is
the (untranslated!) string of the report name. As a workaround, the list
of names exists twice, once in business-prefs.glade and once in gnc-plugin-business.c.
At least this works fine from the point of view of the user.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21715 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-11 20:59:48 +00:00
Christian Stimming ac707427f8 Implement setting the date for duplicating multiple invoices.
Along the way, the "dialog date" dialog accepts a GDate argument instead of
a time_t because the user enters a date, not a date-and-time.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21706 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-10 21:10:17 +00:00
Christian Stimming 6a26cc3b85 Add setter function for invoice Opening Date using GDate.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21705 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-10 21:10:05 +00:00
Christian Stimming bb3642e6cf Improve comments a bit: Add clarifications about which second of the day is returned.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21704 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-10 21:09:53 +00:00
Christian Stimming 98aeba26d4 Move dialog-dup-trans.c from ledger-core to gnome-utils.
Add gnc_dup_date_dialog() variant that can ask for a date without
the "num" field.

On pressing the Enter key, the widget closes but logs the following
warning:
 CRIT <Gtk> IA__gtk_widget_event: assertion `WIDGET_REALIZED_FOR_EVENT (widget, event)' failed
However, this problem already existed with the old code - the behaviour
and warning was unchanged by this commit.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21684 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-07 08:38:00 +00:00
Christian Stimming d189d28439 Minor variable name unification - let all invoice reports use gnc:pagename-general.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21682 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 21:25:09 +00:00
Christian Stimming ca56c1909a Prepare the "Print Invoice" scheme function to be given a report name.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21681 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 21:24:50 +00:00
Christian Stimming f338e3fe41 Win32 build: Minor version upgrade of aqbanking and ktoblzcheck.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21666 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-04 20:44:24 +00:00
Christian Stimming df09f174dd Read-only mode: Buttons in account tree window and owner tree window switch to insensitive.
Along the way, gnc_plugin_update_actions() shows a more detailed error
message if any of the action names do not result in an actual GtkAction,
e.g. because of a typo.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21638 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-28 21:44:46 +00:00
Christian Stimming fe3aa2e98f Read-only mode: Buttons in business result list are insensitive, accordingly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21637 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-28 21:44:34 +00:00
Christian Stimming e6d855000e Read-only mode: Business toolbar actions switch to insensitive.
Also, disable book auto-save if the book is read-only.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21636 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-28 21:44:21 +00:00
Christian Stimming 2a93b09e82 Add "Post" and "Print" buttons in invoice search window, both for single or multiple invoices.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21627 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-26 22:17:22 +00:00
Christian Stimming a5caa69df9 Enable the "Duplicate Invoice" button even for multiple selected items.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21623 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-23 19:05:56 +00:00
Christian Stimming 3179225cb2 Adapt cutecash / cmake build to r21605.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21608 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 12:00:46 +00:00
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