Commit Graph

12775 Commits

Author SHA1 Message Date
Christian Stimming
19c86d924a Updated Japanese translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18943 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-21 19:43:56 +00:00
John Ralls
efe2d63a96 Forgot to delete a diagnostic in 18941
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18942 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-21 19:13:35 +00:00
Christian Stimming
e637921dc7 Cutecash: Implement account selection in new transaction correctly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18941 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-21 09:37:59 +00:00
John Ralls
bab6eb9072 Fixup binreloc, which wasn't working correctly on OSX
Most changes are to rename the functions named gbr_* to gnc_gbr_*, so
that our modified binreloc (to provide mac bundle support) doesn't
collide with binreloc implementations in other libraries. (The instant
case was in libenchant.)

Also moved the IGE_MAC_CFLAGS and IGE_MAC_LIBS lines from
engine/Makefile.am to core-utils/Makefile.am. This was missed when
binreloc was moved.

And last, there was a minor error in the original OSX binreloc patch:
At line 68, #elif MAC_INTEGRATION should be (and now is) #elif defined
MAC_INTEGRATION.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18940 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-21 00:40:24 +00:00
Christian Stimming
14f810a0ca Enable editing of the "other" account of a transaction.
Register Account and our other types in the QMetaType system
so that QVariant can hold it and pass it between the model,
view, and delegate. Implement AccountSelectionDelegate that
presents a QComboBox editor widget for account selection.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18939 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-20 22:33:59 +00:00
Christian Stimming
ad0ddae5e6 Cutecash: Implement entering new transactions in the register.
Only the account selection is still missing.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18935 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-19 22:01:56 +00:00
Christian Stimming
8e5379f352 Bug #610675: Re-apply r18918, and now with the account color.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18934 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-19 17:50:36 +00:00
Christian Stimming
0fe240caac Bug #610675: Re-apply r18918, but only the tooltip fixing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18933 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-19 17:50:16 +00:00
Christian Stimming
07135180b7 Bug #610675: Re-apply r18918 but with the relevant event_box not visible on Windows.
This patch contains only the changed widget order (no color yet).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18932 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-19 17:49:54 +00:00
Derek Atkins
b45b80962f Make sure we include glade headers (#613326)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18931 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-19 15:42:55 +00:00
Christian Stimming
4b4fed8b4c Cutecash: Add empty line for entering a new transaction in the register. Doesn't yet store data, though.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18929 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-18 22:07:02 +00:00
Christian Stimming
a58c3c0690 Cutecash: Introduce separate base class GncInstance for QofInstance methods.
This is the base class for Account, Book, Commodity, Split, Transaction.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18928 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-18 22:06:42 +00:00
Christian Stimming
07d25ab17b Cutecash: Add deletion of rows/transactions (through "Cut"). With Undo. Hee Hee.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18927 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-17 21:28:51 +00:00
Christian Stimming
4e3be7b89c Cutecash: Fix file loading, saving, and save-as. Works fine now.
Also, use the new GDate setter/getter for the transaction time.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18926 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-17 19:24:01 +00:00
Christian Stimming
59be2dc692 Add getter/setter for transaction posted-date as a GDate.
In addition to the known timespec, the date is also stored
as a kvp_value of TYPE_GDATE so that we know afterwards this
date has really been set as a date.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18925 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-17 19:23:40 +00:00
Christian Stimming
0b7b3cf6a1 Add a GDate kvp_value type including conversions from and to all sorts of thingys.
Also, removed the default: switch clauses when handling a
kvp_value so that the compiler will already complain about
unhandled enum values.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18924 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-17 19:23:20 +00:00
Geert Janssens
4ae6bada57 Fix Windows installer doc to have perl >= 5.8 instead of 5.10
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18923 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-17 10:54:35 +00:00
Christian Stimming
2e146b734a Cutecash: Add separate Cmd class for setting the amount/value.
Setting the amount in the register now works.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18922 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-16 19:48:42 +00:00
Phil Longstaff
f170735fbf Update revision to 2.3.11
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18919 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-16 11:19:09 +00:00
Phil Longstaff
8c2cef351c Revert r18881/18884/18885 (bug #610675 - Register Tabs Do Not Display Since Nightly Build r18685)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18918 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-16 09:33:09 +00:00
Phil Longstaff
a27a56ef1b Remove test-load-module from tests
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18917 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-16 09:28:35 +00:00
Phil Longstaff
147ad7d07b Fix Makefile.am handling of gncla-dir.h so that it will be removed so that 'make distcheck' will pass
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18916 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-16 09:27:08 +00:00
Phil Longstaff
a3eff8fc18 Update POTFILES.in based on new source files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18915 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-16 09:25:29 +00:00
Geert Janssens
883d71cdb4 Fix guint32 vs gint32 in gnc-uri-utils test.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18914 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-15 20:06:18 +00:00
Christian Stimming
19ca6a75c1 Cutecash: Add Commodity wrapper. Use gnc-exp-parser for numbers.
- Allow amounts to be edited.
 - Let the date column be handled by the QDate delegate with a QDateEdit widget

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18913 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-15 18:39:21 +00:00
Christian Stimming
d3c970ac97 Add event registration and handling from the qof_event_handlers.
This way, the split view is updated correctly even on undo/redo.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18912 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-15 18:38:26 +00:00
Phil Longstaff
82d0a8b88a Partial fix for #611014 - CSV import crashes
Bug #611014 mentions a problem where after setting the columns, clicking OK and selecting a target account, the Date column is lost.  This is because of a difference in behaviour on windows and linux.  The code attaches to the "edited" signal of the renderer.  On linux, this signal is emitted when a new combo box item is selected.  On windows, the combo box needs to be selected and focus lost before the signal is emitted.  This is changed to the "changed" signal of the renderer which acts as expected on both platforms.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18911 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-15 16:10:26 +00:00
Phil Longstaff
447dc5e6a8 Bug #140400 - Crash when deleting an account that is still in use by the business features
Add a dialog which contains a list of objects referring to the account and an explanation that these need to be deleted or have the account reference modified.

Note: I'm no UI designer.  This is functional, but if anybody wants to pretty it up, go ahead.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18910 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-15 14:49:39 +00:00
Geert Janssens
4810a47d66 Bug #536108 - After cancelling "save as", user is not prompted 2nd time
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18909 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-15 09:01:50 +00:00
Christian Stimming
ab1b493e2e Revert r18869, "Move gnc-ui-util.[hc] and gnc-euro.[hc] from app-utils to engine"
Those files indeed belong better into app-utils; the app-utils defines
several not-yet-GUI parts of gnucash, like many conversions from and to
strings (more than those in these two files), so these files are well
suited in here.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18908 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-14 21:10:26 +00:00
Christian Stimming
5265d4d070 MSVC compatiblity: Fix include files in MSVC. Replace QSTRCMP by g_strcmp0 on MSVC.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18907 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-14 21:02:13 +00:00
Christian Stimming
4426e3931f Improve non-gnome UI compatiblity: app-utils can compile without gtk as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18906 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-14 21:01:52 +00:00
Christian Stimming
eba463bb30 Add src/calculation and src/app-utils to cmake build system.
app-utils is needed for the conversion from and to string
for gnc_numeric, date, and other values.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18905 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-14 21:01:32 +00:00
Geert Janssens
08c0fb3fa0 Fix missing color in qif-import account copy, patch by Tom Van Braeckel
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18904 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-14 13:43:52 +00:00
Geert Janssens
1ea246dfaa Bug #507351 Terms not defined prior to use
This commit changes the text in the accounts druid to explain what a placeholder account is, together with some additional improvements in the wording of that page.

Since this increases the amount of text, the width of the label has been modified as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18903 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-14 13:33:50 +00:00
Phil Longstaff
0006aafc1b Fix Bug 590570 - When deleting more than one report in sequence the program crashes
Delete the custom report backup file before renaming the current custom report file.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18902 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-13 23:01:17 +00:00
Geert Janssens
9857442168 Complete unit tests for gnc-uri-utils api and fix bug found by running the tests.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18901 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-13 15:48:09 +00:00
Geert Janssens
f099591e31 More doxygen.log-prompted typo fixes, patch by Jesse Weinstein
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18900 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-13 13:16:02 +00:00
Phil Longstaff
1e5a8ac128 Fix Bug 611346 - Crash in Saved Reports dialog if you select Delete button with no report selected
Test for no report selected before trying to use the selected report guid.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18899 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-13 12:02:02 +00:00
Geert Janssens
3bd815f74e Fix typo in previous commit
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18898 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-12 22:43:47 +00:00
Geert Janssens
3acea4eb53 Add first test for the gnc-uri-utils api.
This test verifies gnc_uri_get_components.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18897 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-12 22:39:48 +00:00
Geert Janssens
85795f8ca6 Bug #364358 - Import dialog unreadable with dark colored gtk theme (with solution)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18896 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-12 21:38:43 +00:00
Geert Janssens
510f9ac555 Replace Income Tax Options with Tax Report Options. Patch by J. Alex Aycinena.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18895 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-12 10:20:50 +00:00
Phil Longstaff
ae562ac78e Implement the object reference infrastructure routines to allow a list of business objects referring to a specific other object (e.g. an account) to be determined. This will help fix bug 140400 because the account delete code can now determine a list of business (or other) objects which have references to that account, and prevent the account from being deleted while references still exist.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18894 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-12 10:16:16 +00:00
Phil Longstaff
a7cf1dc37a Add some new gobject-related infrastructure so that when deleting an object, it can be determined if there are other objects with references to that object (bug 140400).
Some routines are normal routines, and some routines use the gobject structure to allow different implementations by different object types.

Per-instance routine: gboolean qof_instance_refers_to_object(QofInstance* A, QofInstance* B) - returns TRUE/FALSE whether object A contains a reference to object B.
Normal routine: GList* qof_instance_get_referring_object_list_from_collection(QofCollection* c, QofInstance* B) - Calls qof_instance_refers_to_object() for each object in the collection, and returns a list of the objects which contain a reference to B.
Per-instance routine: GList* qof_instance_get_typed_referring_object_list(QofInstance* A, QofInstance* B) - returns a list of all objects of the same type as A which contain a reference to B.  Being per-instance allows an object to use knowledge to avoid scanning cases where there are no references (e.g. billterms do not contain references to splits), or a scan is not needed (references from splits to an account can be determined using xaccAccountGetSplitList()).  This routine can do a scan by calling qof_instnace_get_referring_object_list_from_collection().
Normal routine: qof_instance_get_referring_object_list(QofInstance* A) - For all collections in the book, gets an instance and calls its qof_instance_get_typed_referring_object_list() routine, concatenating all of the returned lists.  This is the routine that external code can call to get a list of all objects with references to an object A.  The list must be freed by the caller but the contents must not.
Per-instance routine: gchar* qof_instance_get_display_name(QofInstance* A) - returns a string which can identify object A to the user.  This could be used to display a list of the objects returned by qof_instance_get_referring_object_list() ("Invoice 0004 for customer C") so that the user can modify those objects to remove the references.  Note that this is going to require internationalization, which has not been implemented yet.  If not overridden by the object class, the default string is "Object <type> <address>" e.g. "Object gncCustomer 0x12345678".


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18893 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-12 10:14:27 +00:00
Christian Stimming
4212c0c786 Cutecash: Enable entering of more cells in register. Some code cleanup. Add class documentation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18890 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-11 21:59:45 +00:00
Christian Stimming
81ec044f82 Enable editing of the "Description" column in the split list view - WITH UNDO!
The Qt Undo framework is almost like magic. We just have to create a
command object instead of directly manipulating the value, and suddenly
the undo/redo just works. This is fun!

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18889 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-10 21:40:58 +00:00
Christian Stimming
0a2d901f71 Updated Japanese translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18888 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-10 19:38:03 +00:00
Christian Stimming
0f09fc5e32 Cutecash: Add QUndoStack to implement all editing through the Command pattern and make it undoable.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18887 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-10 17:51:12 +00:00
Christian Stimming
4bb186ef14 Cutecash: Enable closing and re-opening the different tab views.
Also, change many main window slots to make use of the auto-connection
feature because it makes the slot intention much easier to read.

Also, note how we store the Tab position, title, isEnabled state
in dynamically allocated properties in the Tab widget itself -
this is a rather cool feature of QObject here (see reallyRemoveTab()
and viewOrHideTab()).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18886 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-10 17:50:51 +00:00