Commit Graph

12875 Commits

Author SHA1 Message Date
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
Christian Stimming
1ddcb88d0c MSVC compatibility: Microsoft doesn't have C99 "designated initializers".
Those were introduced in r17724, bug#539957, but apparently this
C99 is not supported by MSVC and won't be for some time to come.
Hence, for MSVC we need the workaround to define a macro that will
shadow the member names. However, the initialization itself works
fine and non-MSVC code is unchanged, so I think we can live with that.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18755 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 18:41:49 +00:00
Christian Stimming
9d6160cfd4 MSVC compatiblity: Struct initialization doesn't work as expected.
Somehow, the struct initialization containing a gnc_numeric
doesn't work. As an exception, we hand-initialize that member
afterwards.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18754 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 18:41:28 +00:00
Christian Stimming
1383ccae9e MSVC compatiblity: open() flags and S_ISDIR doesn't exist on MSVC.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18753 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 18:41:07 +00:00
Christian Stimming
ea5fb548c5 MSVC compatiblity: Use a char* pointer for the memcpy() input argument.
This is required by MSVC because we do some pointer arithmetic
in the memcpy() argument, but in order to do this, MSVC wants to
know the pointed-to type of the pointer because pointer arithmetic
increases the pointer not by a number a bytes but a number of
sizeof(type). MSVC thinks for void* it doesn't count bytes. We
achieve the desired effect by using a char* pointer so that bytes
are counted.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18752 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 18:40:46 +00:00
Christian Stimming
1e7ecef77f MSVC compatiblity: Add defines for functions/types which are available under different names in MSVC.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18751 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 18:40:23 +00:00
Christian Stimming
3008b34922 MSVC compatiblity: Array initialization in MSVC requires a constant, not a variable.
That is, gcc accepts a constant variable in many cases now, but
MSVC doesn't accept it. So it must be turned into an old preprocessor
define.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18750 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 18:40:00 +00:00
Christian Stimming
1973bc3e27 MSVC compatibility: Remove forward declaration of static array by reordering the function that uses it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18749 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 18:39:39 +00:00
Christian Stimming
f101adee5c Win32 compatibility: Use glib wrappers of non-usual POSIX functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18748 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 18:39:15 +00:00
Christian Stimming
e346345fc4 More header include compatibility: Watch out for HAVE_UNISTD_H.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18747 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 18:38:52 +00:00
Christian Stimming
59f780f575 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@18746 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 16:32:01 +00:00
Phil Longstaff
a3ca714396 Convert GNCLot to use more gobject features. Removes all direct access to lot object fields, which are now accessed through functions or property names (for backend sql load).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18745 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 15:54:20 +00:00
Phil Longstaff
5066daa770 Modify POTFILES.in to handle source files moved to a new directory
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18744 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 15:51:35 +00:00
Christian Stimming
3236b3c93c Also build backend/xml in cmake.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18743 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 11:37:14 +00:00
Phil Longstaff
5c5b031c5d Bug 605802: Can't input Japanese characters at an account register window on windows with SCIM, IIIMF and XIM
Latest patch by Yasuaki Taniguchi to fix two problems 1) Can't use account separator char when entering account name in a split, and 2) Can't use <SHIFT>+ and <SHIFT>- to go forward/backward a week.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18742 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 02:03:38 +00:00
John Ralls
5f8890e675 Reverted 18699
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18741 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-26 21:56:50 +00:00
Geert Janssens
bcd9b42872 Clarify required steps to setup windows build environment.
The mingw website has changed quite a lot since the README
was written and some of the url's used in it were confusing.
I have changed the url's to point to the actual packages
on sourceforge (current at the time of this writing)
and added some extra details where I had trouble understanding
the actions to perform.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18740 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-26 21:28:27 +00:00
Geert Janssens
3df2b83519 Doxygen fixes
- Have this file show up under module "Utility Functions"
- Normalize the function descriptions (some were not in doxygen format)
- Add a global file description
- rename parameter 'file' to 'filename' for better consistency (note
  this required an internal parameter to be renamed from filename to
  new_filename)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18739 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-26 15:05:23 +00:00
Christian Stimming
82b8b99c9d More minor MSVC code fixes.
However, this code doesn't compile with MSVC9.0 for a few reasons:

1. libguile.h comes with its own scmconfig.h which contains HAVE_STDINT_H
whereas MSVC doesn't have that. This is stupid guile which doesn't accept
the fact that the user uses a different compiler than how they compiled guile.

2. Some initializations are not supported: Account.c:3312 etc.

3. The C99 "designated initializers" of e.g. Account.c:4661 ff. (r17724,
bug#539957) are not supported by MSVC9.0 - this is the hardest problem
of these all.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18738 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 17:42:43 +00:00
Christian Stimming
69dc9107ff Make CMake system more complete so that it builds on win32/mingw.
Also, add a test executable to check that we got all the
library dependencies.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18737 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 17:42:21 +00:00
Christian Stimming
a75e6bd547 More CMake work: Build swig wrappers correctly. Build gnc-module.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18736 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 17:42:00 +00:00