Commit Graph

12545 Commits

Author SHA1 Message Date
Phil Longstaff
c080f3a8bd GDate values weren't being properly fetched from objects to be saved in a database column if they were fetched as a gobject property.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18805 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 23:34:49 +00:00
Christian Stimming
dbb5d0ddda C++ experiment: Add first simple model/view widget for the loaded account list.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18804 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 21:50:49 +00:00
Phil Longstaff
3b4183839c Clean up account column in the lot table to specify that the guid is an account reference. Simplifies the code a bit, and makes future use of foreign keys easier.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18803 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 21:34:01 +00:00
Christian Stimming
91fd0d2f31 Bug #611140: Fix crash on Open Subaccounts (hopefully).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18802 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 20:59:58 +00:00
Christian Stimming
b71802aefd Some more C++ work. Opening an existing file works, even though nothing is visible so far.
The implementation of a scoped_ptr wrapper around a C object
uses the boost library, though, because writing our own
implementation of a scoped_ptr with custom deletion function
is too non-trivial and I rather re-use the boost::shared_ptr
here instead of making our own mistakes.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18801 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 20:47:31 +00:00
Christian Stimming
b7b34b87c9 Rename GNCBook into QofBook everywhere and remove separate header gnc-book.h.
The former was already #define'd on the latter, so its removal gets
rid of one level of indirection which makes function lookup easier.
Also, the macro (!) qof_book_get_slots was turned into a normal
function again because that's what functions are for (and otherwise
the additional declaration in engine.i would break).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18800 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 20:47:10 +00:00
Christian Stimming
44b63315df Decrease compiler warnings by removing unused variables.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18799 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 20:46:41 +00:00
Christian Stimming
f6bf61feb5 Reduce compiler warnings by replacing strerror() with g_strerror() and similar glib replacements.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18798 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 20:46:20 +00:00
Christian Stimming
04ffda604b Win32: Add more header includes where necessary to avoid using undeclared functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18797 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 20:45:58 +00:00
Christian Stimming
e1f8c70137 Comment out unimplemented function. Improve const-correctness.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18796 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 20:45:37 +00:00
Phil Longstaff
1077f321da If building for WIN32, use webkit_web_frame_print_full() so that a GtkPrintOperation object with the correct units can be used to prevent font size problems (see bug 591177). On other platforms, use webkit_web_frame_print() because some distros seem not to have webkit_web_frame_print_full() (and also don't have the font size problem so on those distros, we don't need to create our own GtkPrintOperation object).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18795 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 16:49:49 +00:00
Geert Janssens
46a3f05062 Include gtk/gtk.h instead of gtk/gtkclist.h as recommended by Gtk
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18794 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 11:14:12 +00:00
Geert Janssens
f220f915f7 Fix make dist
r18765 introduced test target test-resolve-url, but no source file test-resolve-url.c
Removed the target.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18793 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 10:03:52 +00:00
Geert Janssens
c554d73687 Bug #610321 - Compile errors with gtk-2.10.4: GTK_BUTTONBOX_CENTER undeclared
This commit applies a reworked version of the patch to remove the use of GHashTableIter
by Cristian Klein. Cristian's patch didn't apply cleanly to the current trunk.
I have made the necessary changes to make it apply (and hopefully do what
Cristian intended).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18792 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 22:38:29 +00:00
Christian Stimming
ef2f73dcb7 Re-indentation of source code, next batch: src/gnome-utils/*
This also strips trailing whitespaces from lines where they existed.
This 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@18791 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 21:42:11 +00:00
Christian Stimming
136ac8f6e1 Re-indentation of source code, next batch: src/register/*
This also strips trailing whitespaces from lines where they existed.
This 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@18790 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 21:41:39 +00:00
Christian Stimming
3cb8499445 Re-indentation of source code, next batch: src/business/*
This also strips trailing whitespaces from lines where they existed.
This 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@18789 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 21:41:05 +00:00
Christian Stimming
763e4c3d15 Re-indentation of source code, next batch: src/engine/*
This also strips trailing whitespaces from lines where they existed.
This 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@18788 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 21:40:28 +00:00
Christian Stimming
ce99c42871 Re-indentation of source code, next batch.
This also strips trailing whitespaces from lines where they existed.
This 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@18787 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 21:40:02 +00:00
Christian Stimming
b325f24c91 Replace and-let* in scheme script so that srfi-2 isn't needed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18786 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 21:23:52 +00:00
Christian Stimming
35887b2da8 Updated Farsi (Persian) translation by Mehdi Alidoost.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18785 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 21:04:29 +00:00
Christian Stimming
9691731f86 Replace one more g_list_append by g_list_prepend.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18784 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 20:59:32 +00:00
Christian Stimming
450f762002 Fix crash on opening the tax report, introduced by r18673.
Patch by Alex Aycinena.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18783 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 20:41:04 +00:00
Christian Stimming
68b8878ab5 More C++/Qt4 frontend work.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18782 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 20:22:23 +00:00
Christian Stimming
ed75831a88 Win32: Create the MSVC import library for libguile during install.sh.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18781 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 20:22:01 +00:00
Christian Stimming
3babeb9de7 Remove static current_session variable of libqof - we keep one in gnc-session.c already.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18780 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 20:21:37 +00:00
Geert Janssens
358670a0a2 Bug #611470 Add Japanese concepts guide into GnuCash installer, patch by Yasuaki Taniguchi
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18779 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 14:54:34 +00:00
Geert Janssens
d6c376cc93 Doxygen improvements, patch by Jesse Weinstein
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18778 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 12:00:28 +00:00
Phil Longstaff
bf2d2ea3e4 More changes where SQL backend uses gobject properties to load/save objects.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18777 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-01 19:08:00 +00:00
Christian Stimming
cfd3a5b33e Add example main window in C++ and Qt that links against gnucash-engine.
The example was based on Qt4's "application" example, but
the main window layout is done through the .ui file already.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18776 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-01 18:45:53 +00:00
Christian Stimming
b041e5dddf MSVC compatibility: Somehow fdopen() doesn't work during the trace file initialization. Use fopen() instead.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18775 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-01 18:45:32 +00:00
Christian Stimming
961539fc7c Win32 build: libguile needs minor tweaking for MSVC compatibility.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18774 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-01 18:45:11 +00:00
Christian Stimming
49658f362a MSVC compatibility: Fix r18748, r18761 by replacing strncasecmp() with strnicmp().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18773 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-01 18:44:49 +00:00
Christian Stimming
ce6381cca8 MSVC C++ compatibility: Rename the internal name of union _GUID because _GUID is a builtin keyword here.
This does not concern the typedef name, only the internal union name,
so it doesn't harm us.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18772 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-01 18:44:28 +00:00
Christian Stimming
24ad7391e1 C++ compatibility: namespace is a keyword, so don't use it as variable name.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18771 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-01 18:44:07 +00:00
Christian Stimming
261c65e2a2 C++ compatibility: export is a keyword, so don't use it as a member name.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18770 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-01 18:30:37 +00:00
Phil Longstaff
7b95d03929 Add support for passing a Timespec as a boxed GValue
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18769 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-01 18:04:33 +00:00
Phil Longstaff
f09fa9ae58 Fix test makefiles. Many tests now need to include other libraries because files have changed directories.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18768 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-01 18:03:51 +00:00
Phil Longstaff
b491220bf9 Add more gobject property definitions to GNCPrice, Transaction, SchedXaction and Split.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18767 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-01 16:46:49 +00:00
Phil Longstaff
45203aec4b More conversion to read/write objects from sql backend using gobject parameters
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18766 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-28 23:19:34 +00:00
John Ralls
1d6e7701ac Redo of the dot-gnucash fix (so that GNC_DOT_DIR actually works) fixing bug 610707, adding Doxygen comments for all functions in gnc-filepath-utils, and adding testing for xaccResolveURI and more tests for xaccResolveFilePath.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18765 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-28 22:53:02 +00:00
Phil Longstaff
fb971c2382 Start to add properties to business objects. Currently only 1 property per object, but this infrastructure will allow more generic importing of objects.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18764 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-28 19:15:46 +00:00
Phil Longstaff
dc65c95b77 Take advantage of the initial property definition for Transaction, Split, GNCPrice and SchedXaction by replacing custom access routines with gobject properties.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18763 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-28 17:36:49 +00:00
Phil Longstaff
181286c970 Add a few gobject properties to some engine object types. This adds more of the gobject infrastructure to Transaction, Split, SchedXaction and GNCPrice. Gobject properties provides a standardized interface to the engine objects which should allow standard and simplified read/write mechanisms. For the sql backend, for example, db columns can be mapped to properties. In a generalized csv importer, csv columns can be mapped to properties.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18762 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-28 17:35:53 +00:00
Christian Stimming
ce7f2889b9 Partly revert r18748, "Win32 compatibility": lib/libc directory doesn't have glib available.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18761 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-28 13:56:59 +00:00
Christian Stimming
6d9139bafa Add a "make indent" target, but watch out with using its result.
The "astyle" indent tool unfortunately behaves significantly different
in its different versions (1.22, 1.23, 1.24) even with identical
options. That is, the basic indentation is the same, but in a large
project such as ours, there are just too many special cases which
astyle doesn't get identical due to its bugfixes and new features.
Hence, please use the result of this target with great care, and
if in doubt, just use it for your own amusement but don't commit the
resulting changes. Thanks!

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18760 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-28 13:40:38 +00:00
Phil Longstaff
53d17d53aa Fix up some doxygen comments
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18759 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-28 13:18:40 +00:00
Phil Longstaff
46c071490b Don't include gnc-lot-p.h where not needed
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18758 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-28 13:13:27 +00:00
Christian Stimming
a0507641f4 Updated Japanese translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18757 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-28 13:04:35 +00:00
Christian Stimming
495aea766d Win32: Fix libbonoboui compiling.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18756 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 18:42:11 +00:00