Commit Graph

14200 Commits

Author SHA1 Message Date
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
John Ralls
4c6d5a178c Update Mac customizations for gtk-mac-integration-1.0.0
Mac integration has had a name and api change from
ige-mac-integration as part of migration from Sourceforge to
Gnome.

Also, gtk_osxapplication_add_app_menu_item() has been replaced
with gtk_osxapplication_insert_menu_item(),
gtk_osxapplication_add_app_menu_group() has been removed (just
insert a separator where you want it), and  gtk_osxapplication
path functions had been deprecated in favor of quartz-application
equivalents; those deprecated convenience macros were removed in
1.0.0

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21398 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-08 19:14:01 +00:00
Geert Janssens
414c92669e Update POTFILES.in after last commit
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21397 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-08 17:00:49 +00:00
Geert Janssens
6afe287764 Bug #661218 - Migrate New user, progress and user pass dialogs to
Builder
from GladeXML
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21396 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-08 16:59:29 +00:00
Geert Janssens
6f139ef38f Introduce credit_note flag in invoice object
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21395 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-08 16:59:19 +00:00
Geert Janssens
1537986a8d Use GncInvoiceType in query for bills due reminder
At the same time, prepare for credit notes.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21394 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-08 16:59:10 +00:00
Geert Janssens
1546e8204c Introduce GncInvoiceType enum and start using it instead of the char based Invoice Type.
This also puts a first structure in place to add credit notes later on.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21393 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-08 16:59:01 +00:00
Geert Janssens
fda7e72c89 Small improvements to the hierarchy assistant:
* Set a default height to the assistant so it gets rid of one of the
scroll bars and make the currency drop down larger to show all text.
* Also make the assistant window stay on top as when it is started from
the new user dialog, the main save window used to hide the assistant
window and could confuse the user
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21392 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-08 13:33:34 +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
Geert Janssens
6edb5d4d0d Add more debugging info in an effort to find the cause of bug #510720
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21381 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-07 12:21:41 +00:00
Geert Janssens
ccd00fc548 Bug #553432 - Status line of edit invoice page mixes invoice currency
amount with default currency symbol
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21379 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-07 10:16:31 +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
Geert Janssens
ba89a190b7 Bug #365928 - Jobs do not stick in Expense Vouchers
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21376 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-06 20:19:06 +00:00
John Ralls
d896abaf4a Add gnucash-setup-env-osx.in to EXTRA_DIST so that it will be in the
tarball.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21373 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-04 23:37:36 +00:00
Geert Janssens
ea7aa8eb2d Bug #660369 - Migrate Report dialogs to Builder from GladeXML
Patch by Robert Fewell with minor tweaks

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21372 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-03 19:17:35 +00:00
Geert Janssens
cd1d55faa5 Ignore some autogenerated files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21371 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-03 18:15:57 +00:00