Christian Stimming
dffacfefc7
Finish cmake build system for the C++ experiment.
...
To build this:
mkdir build-cpp
cd build-cpp
cmake ..
make
./src/gnc/cutecash
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18815 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 17:48:36 +00:00
Christian Stimming
6087cfd688
C++ experiment: Extend the AccountModel into a table with name and description.
...
Use QString everywhere as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18814 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 17:48:12 +00:00
Christian Stimming
4708f169ea
Win32: Add download of cmake, disabled by default.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18813 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 17:47:51 +00:00
Christian Stimming
d84edc52d8
MSVC compatibility: strftime() doesn't know "%T" here. Also, g_fopen doesn't work, but fopen does.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18812 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 17:47:28 +00:00
Geert Janssens
58680c35b8
Move gnc-filepath-utils and dependencies from engine to core-utils
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18811 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 16:32:54 +00:00
Geert Janssens
2e5c6f1cee
Typo fixes, as found by doxygen.log, patch by Jesse Weinstein
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18810 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 10:31:41 +00:00
Geert Janssens
ed33fc5226
Tweak to gnc-svnversion's bzr section, patch by Jesse Weinstein
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18809 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 09:53:57 +00:00
Phil Longstaff
4054482bf8
Use "template-account" property to get/set template account.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18808 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 00:58:28 +00:00
Phil Longstaff
2eaa8345a9
Add "template-account" to schedxaction as a gobject property.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18807 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 00:56:41 +00:00
Phil Longstaff
b4172691ea
Simplify handling of sx template_acct column.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18806 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 23:37:51 +00:00
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