Commit Graph

12561 Commits

Author SHA1 Message Date
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
Geert Janssens
1c3889b359 Cosmetic: Remove duplicate include of gnc-engine.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18735 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 15:26:23 +00:00
Geert Janssens
a3145975e5 Remove trailing whitespace
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18734 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 15:25:43 +00:00
Geert Janssens
ea6cc51d8a Minor doxygen change and lots or trailing whitespace removed
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18733 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 14:09:26 +00:00
Phil Longstaff
3879cda645 Revert r18713 (reopen 605802 "Input of Japanese characters".
This commit had 2 problems:
1) when entering an account name, the account separator would no longer accept at the current level of the account tree and move to the next level
2) <SHIFT>+ and <SHIFT>- in a date field would not change the field by 1 week.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18732 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 13:39:49 +00:00
Geert Janssens
bae8f044e0 Remove GNOME_PRINT_{CFLAGS,LIBS} from the Makefile templates
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18731 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 13:07:08 +00:00
Geert Janssens
33623feab3 Spelling errors and trailing whitespace removal
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18730 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 12:14:39 +00:00
Geert Janssens
0d3bcf3eaf Remove reference to gnome print in the comments
GnuCash no longer uses gnome print. It has been replaced with gtk print.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18729 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 12:05:42 +00:00
Geert Janssens
9fa51e0c8d Remove two more popt references in support files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18728 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 11:45:25 +00:00
Geert Janssens
7bd5535140 Remove popt requirement from configure
GnuCash doesn't use it.
At the same time, I removed a check that has been commented out
since the beginning of the revision history (somewhere in 2007).
This check tested for the presence of popt.h to then run some
libtool changes. As I said this whole block has been commented
out since the beginning of time, so I considered it to be obsolete,
more even so now that the popt requirement has been removed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18727 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 11:36:37 +00:00
Geert Janssens
c299f2444b Remove popt references
- popt has been replaced with the GOption infrastructure.
So there's no need to include the popt.h file.
- Also rewritten the comment that was elaborating on popt
vs GOption
- Finally removed the loglevel option (which was excluded from
the compile anyway) that still referred to popt.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18726 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 20:51:15 +00:00
Geert Janssens
13e0eef469 Fix minor spelling errors
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18725 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 20:47:47 +00:00
Phil Longstaff
cd0b4fe145 When creating lists of database objects, use g_list_prepend() rather than g_list_append(). There may be cases where the list order is significant and thus needs to be reversed, but that is not true in these cases. This provides a large improvement in database loading performance.
Analysis and basis patch supplied by Donald Allen.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18724 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 20:11:22 +00:00
Geert Janssens
61937bc3dd Update documentation references to Active Perl (5.8->5.10)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18723 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 19:53:37 +00:00
Geert Janssens
56f6f2c82a Remove redundant entries in EXTRA_DIST
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18722 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 19:49:28 +00:00