At this point, the test creates a customer, saves it to an sqlite3 db, loads it and compares the original and the loaded customer. Will be expanded to test other business objects.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18966 57a11ea4-9604-0410-9ed3-97b8803252fd
1) Add routine gncCustomerEqual() which will do a deep comparison between two customers
2) Add routine gncAddressEqual() which will do a deep comparison between two addresses
3) Add more GncAddress gobject parameters for the remaining data items
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18965 57a11ea4-9604-0410-9ed3-97b8803252fd
1) Now that the various objects .c files can compare objects in different books, remove the duplicate copies.
2) Create a .la so that the business sql test code can use some common test infrastructure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18963 57a11ea4-9604-0410-9ed3-97b8803252fd
Without the svn:eol-style property, SVN checkouts on windows tend to appear
with varying line endings. The only possible way around this in svn is to
set the expected line endings as svn properties.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18959 57a11ea4-9604-0410-9ed3-97b8803252fd
Examples:
#if COMPILER(MSVC)
#if COMPILER(GCC)
#if ENABLE(NLS)
#if HAVE(PUTENV)
This platform.h file includes config.h, so that doesn't need to be included any more.
PLATFORM(X) is based on the definition of GNC_PLATFORM_X
COMPILER(X) is based on the definition of GNC_COMPILER_X. At this point, only COMPILER(GCC), COMPILER(MSVC), COMPILER(MSVC7) and COMPILER(MINGW) are determined.
HAVE(X) is based on HAVE_X from config.h
ENABLE(X) is based on ENABLE_X from config.h
USE(X) is based on GNC_USE_X from config.h
Having these determinations at a central point makes it easier to add new platforms and easier to conditionally compile based on them.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18957 57a11ea4-9604-0410-9ed3-97b8803252fd
Wrong gobject property name used when creating "username" property - sql backend couldn't read it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18950 57a11ea4-9604-0410-9ed3-97b8803252fd
Also, correctly set the document state to "clean" after saving.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18946 57a11ea4-9604-0410-9ed3-97b8803252fd
Odd that this affected only OSX, as the fix is clearly consistent with the GtkLabel "ellipsize" property documentation. (I.e., the packing "expand" property must be TRUE on notebook labels.)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18945 57a11ea4-9604-0410-9ed3-97b8803252fd
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
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
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
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
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
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
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
- 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
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
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