Commit Graph
14220 Commits
Author SHA1 Message Date
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
Geert Janssens 7fa08b00ca Remove the deprecated optionmenu widget based convenience functions.
They are no longer used in the GnuCash code base.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21503 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 14:14:03 +00:00
Geert Janssens 3c809a4a2d Remove option menu dependency from business-options-gnome
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21502 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 14:13:54 +00:00
Geert Janssens ad2c2353c1 Whitespace cleanup in dialog-customer.glade
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21501 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 12:27:17 +00:00
Geert Janssens 11b5fff44a Convert vendor dialog to gtkbuilder
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21500 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 12:27:08 +00:00
Geert Janssens 3eacb2c3c8 Bug #420342 - remember register filter and ordering settings
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21499 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 12:26:58 +00:00
Geert Janssens 9cab3b7918 Remove some unused dialogs as spotted by Robert Fewell in bug #662864
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21498 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 12:26:49 +00:00
Geert Janssens 2a7b2b30d7 Some small whitespace fixes and comment improvements.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21497 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 12:26:38 +00:00
Geert Janssens 312b98ec6e Bug #662864 - Migrate Various dialogs to Builder from GladeXML
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21496 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 12:26:27 +00:00
Mike Alexander 9369eae6d7 Avoid double free of capital gains transactions when quitting
If an register is open on an account that has capital gains transactions
created by the lot scrubber when you quit Gnucash, a capital gains
transaction may be freed twice since it is freed when the associated
sale is freed and again when it is encountered on the list of
transactions to be freed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21495 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 03:22:41 +00:00
Geert Janssens 8ba2af23c6 Convert customer dialog to gtkbuilder
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21494 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-27 21:08:05 +00:00
Geert Janssens 6bee8b5bcf Add two more alternatives for the option-menu based dropdowns.
And improve the code efficiency a little bit.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21493 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-27 21:07:55 +00:00
Geert Janssens aac8fb2ccb Convert invoice.glade to gtkbuilder
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21492 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-27 18:33:10 +00:00
Geert Janssens 541ec1e497 Provide an alternative for the option menu based business
utility functions. GtkOptionMenu is deprecated.

The original functions remain available for now as they are still in
use.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21491 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-27 18:32:27 +00:00
Geert Janssens 8230904345 Bug #658992 - Changing the order of the balance sheet
Patch by Mark Haanen

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21490 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-25 13:26:51 +00:00
Geert Janssens 6e80601537 Bug #662477 - Desktop file not compliant with FreeDesktop spec and GNOME
goal
Patch by Sébastien Villemot

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21488 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-24 20:45:12 +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
Geert Janssens d71ac128a3 Rework owner payment code to work with credit notes as well as invoices
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21478 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-22 16:38:22 +00:00
Geert Janssens d554357786 Bug #655901 - Fix build with guile 2.0
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21464 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-19 21:14:03 +00:00
John Ralls dffd44139d Handle specifying a directory as a dataset file.
The file chooser dialog would return a directory if the user selected
one and clicked "Open"; then, or if the users specified a directory on
the command line, Gnucash would present the rather misleading error "No
backend found".

So, first, if the user selects a directory and clicks open, the chooser
will now open the directory for browsing, just as if she had
double-clicked on the directory name in the tree view.

Next, if a directory is presented to qof_session_begin it will detect
that and set ERR_BACKEND_BAD_URL, which gnc_post_file_open will detect
and re-present the file chooser, open to that directory. (To prevent
confusion, gnc_post_file_open will put up the error dialog for BAD_URL;
the new file chooser dialog will open after that's dismissed. Since
there are other possible causes of a BAD_URL, if the filename isn't a
directory the chooser will open to the registered default directory from
GConf.)

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21459 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-19 00:02:59 +00:00
Geert Janssens 43820fe81a Bug #661852 - Migrate Totd and file access dialog from GladeXML to
Builder
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21458 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-18 18:10:57 +00:00
Geert Janssens ac3f924152 Bug #661851 - Migrate Account and Owner glade files
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21457 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-18 18:10:45 +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
Geert Janssens 500882caf4 Bug #626970 - Crash when saving a transaction whose destination account
was deleted in the meantime
Improved fix
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21423 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-16 21:01:28 +00:00
Geert Janssens 14c60deb29 Bug #626970 - Crash when saving a transaction whose destination account
was deleted in the meantime
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21422 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-15 12:04:38 +00:00
Geert Janssens 7bc5e89950 Bug #420342 - remember register filter and ordering settings
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21421 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-14 17:45:45 +00:00
Geert Janssens 44169e28c5 Bug #661721 - Exposed Password
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21419 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-14 16:12:17 +00:00
Geert Janssens 5b487e03c8 Fix summary bar errors on invoices since commit 21411.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21418 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-14 14:58:03 +00:00
Geert Janssens 62e1b1ac57 Bug #661220 - Critical errors when closing down Gnucash
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21417 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-14 14:57:54 +00:00
Mike Evans 354e95362a Bug #650482 - Cant resize width of import columns when importing a CSV.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21416 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-12 08:02:15 +00:00
Geert Janssens b2959318c2 Bug #651522 - crash in query_free_compiled, gnc_query_list_reset_query
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21414 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-10 20:05:47 +00:00
Geert Janssens 825538a85e Assert that the invoice type is never an unknown type.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21412 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-10 15:31:21 +00:00
Geert Janssens 012ab52a07 Some const correctness improvements in owner and invoice functions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21411 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-10 12:34:58 +00:00
Geert Janssens e409352c65 Use "Nimbus" gtk theme on Windows.
A previous attempt failed to set this in the installer.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21408 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-09 21:06:40 +00:00
Geert Janssens 1452956461 Prepare internal post-to code to handle credit notes
At the same time clear up some confusing parameter names

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21407 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-09 21:06:31 +00:00
Geert Janssens 03db2c40b1 Rename an ambiguous parameter to avoid confusion.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21406 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-09 21:06:23 +00:00
Geert Janssens 4dd9edfb9e Add link to split in its account register to all payment lines on the
owner report.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21405 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-09 21:06:14 +00:00
Geert Janssens fa2338deb1 Prepare invoice search to handle both invoices and credit notes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21404 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-09 21:06:02 +00:00
John Ralls 1afcc0969d [Bug 644977] Add new Quicken Check 21 format
Thanks to Steve Holland <sholland@napervillegi.com>

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21403 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-09 21:05:52 +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
Mike Evans 01b4a86888 Bug #660875 - Make columns have minumum width in import dialog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21400 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-08 19:19:16 +00:00