Commit Graph
100 Commits
Author SHA1 Message Date
Christian Stimming e30a3414d2 Updated Dutch translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19023 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-15 07:04:21 +00:00
Christian Stimming 72790cbaeb Updated Dutch translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19021 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-12 21:25:35 +00:00
Christian Stimming a5a476ebca Cutecash: Add install and packaging rules.
Running "make package" will produce a binary package.
Running "make package_source" will produce a source package.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19020 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-12 19:21:14 +00:00
Christian Stimming 08c36773ec Win/MSVC compatibility: Replace g_* file operations by the direct calls into the MSVC runtime.
This tries to avoid a collision between glib's C runtime vs.
the one that is used by MSVC (and hence also Qt) by using
file access only through MSVC's one.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19019 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-12 19:20:54 +00:00
Christian Stimming 1fe98a2904 Updated Dutch translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19014 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-10 20:37:38 +00:00
Christian Stimming 04552dd13d Change the iso-4217 generator script to accept the srcdir as cmdline argument instead of an env variable.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19013 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-10 19:44:02 +00:00
Christian Stimming aa0c80f38e Win32: Add mingw cutecash build to the install.sh script, enabled by WITH_CUTECASH=yes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19012 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-10 19:33:25 +00:00
Christian Stimming 92bd65c114 Updated Dutch translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19006 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-08 07:23:40 +00:00
Christian Stimming 749b7cb7c8 Update German translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19004 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-06 13:24:54 +00:00
Christian Stimming 33c2e6d1d5 Merge po templates with latest string changes (mostly the removal of taxtxf.scm from translation)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19003 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-06 13:22:56 +00:00
Christian Stimming 8f63d34bbd I18n: Remove strings of the US tax report from translation because this report makes sense only in English.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19002 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-06 12:59:12 +00:00
Christian Stimming 56e0a53e28 Updated Danish translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18988 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-02 18:45:08 +00:00
Christian Stimming 8410ef5a1e Fix missing printf format string
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18987 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-01 16:20:39 +00:00
Christian Stimming 1c8830180a Cutecash: Slightly decrease debug output verbosity.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18985 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-31 19:43:43 +00:00
Christian Stimming 17e795560d MSVC: Add creation of MSVC import library of libdbi.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18983 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-30 20:00:12 +00:00
Christian Stimming d155edeeb5 Fix CMake for building the dbi backend.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18982 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-30 19:59:50 +00:00
Christian Stimming c6e5d407e3 Cutecash: Fix missing #ifdefs for dbi calls.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18973 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-28 10:46:10 +00:00
Christian Stimming bc411c57db Code cleanup in binreloc: Remove unused init_lib function. Add possibility to set the looked-up exe path from somewhere else.
Remove symbol mangling because r18940 already added the gnc_* prefix,
hence the symbol names are unique to gnucash anyway.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18972 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-27 22:08:17 +00:00
Christian Stimming 50163126ea Re-indentation of source code (sql parts).
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

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18971 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-27 21:02:18 +00:00
Christian Stimming 88d3b83579 Re-indentation of source code.
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@18970 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-27 21:01:56 +00:00
Christian Stimming a322015eb8 Rename the type GUID into GncGUID because on Windows, the system headers have a type GUID which clashes with ours.
Note that only the type was renamed, but not any enums or function names.
Hence, the scheme wrappers should be unchanged completely (hopefully).

Discussed at http://lists.gnucash.org/pipermail/gnucash-devel/2010-March/027679.html

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18969 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-27 21:01:21 +00:00
Christian Stimming 932eeb766d Cutecash: Compile & link SQL backend as well (but there is no GUI for this yet)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18968 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-27 20:27:10 +00:00
Christian Stimming d5742f24fc Cutecash: Fix memory leak of missing cleanup of RecentFileMenu object.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18967 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-27 10:24:07 +00:00
Christian Stimming b53205e903 Set some more line-ending style properties.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18961 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-24 19:28:20 +00:00
Christian Stimming fd0a7c2469 Set some more line-ending style properties.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18960 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-24 19:23:58 +00:00
Christian Stimming c172bc7ee4 Set the desired line-ending style to the correct value on the server side.
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
2010-03-24 19:18:08 +00:00
Christian Stimming 2a3d00c24f MSVC compatibility: MSVC must not use g_fopen because it uses a different C runtime than the rest of (MSVC) file-handling functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18955 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-22 21:15:15 +00:00
Christian Stimming dfc294652d MSVC compatibility: Always initialize all members of the QofObject struct.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18954 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-22 21:14:38 +00:00
Christian Stimming ccaad41e0f Cutecash: Add more event handler to the account windows so that they will be deleted upon book closing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18947 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-21 21:38:33 +00:00
Christian Stimming b0116c16a8 Cutecash: Code cleanup. Avoid crashes when undoing adding of new transactions by not deleting the tmp transaction object.
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
2010-03-21 21:37:50 +00:00
Christian Stimming bf7cc0097e I18n: Mark forgotten string for translation. Pointed out by Yasuaki Taniguch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18944 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-21 19:47:39 +00:00
Christian Stimming 19c86d924a Updated Japanese translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18943 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-21 19:43:56 +00:00
Christian Stimming e637921dc7 Cutecash: Implement account selection in new transaction correctly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18941 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-21 09:37:59 +00:00
Christian Stimming 14f810a0ca Enable editing of the "other" account of a transaction.
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
2010-03-20 22:33:59 +00:00
Christian Stimming ad0ddae5e6 Cutecash: Implement entering new transactions in the register.
Only the account selection is still missing.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18935 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-19 22:01:56 +00:00
Christian Stimming 8e5379f352 Bug #610675: Re-apply r18918, and now with the account color.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18934 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-19 17:50:36 +00:00
Christian Stimming 0fe240caac Bug #610675: Re-apply r18918, but only the tooltip fixing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18933 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-19 17:50:16 +00:00
Christian Stimming 07135180b7 Bug #610675: Re-apply r18918 but with the relevant event_box not visible on Windows.
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
2010-03-19 17:49:54 +00:00
Christian Stimming 4b4fed8b4c Cutecash: Add empty line for entering a new transaction in the register. Doesn't yet store data, though.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18929 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-18 22:07:02 +00:00
Christian Stimming a58c3c0690 Cutecash: Introduce separate base class GncInstance for QofInstance methods.
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
2010-03-18 22:06:42 +00:00
Christian Stimming 07d25ab17b Cutecash: Add deletion of rows/transactions (through "Cut"). With Undo. Hee Hee.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18927 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-17 21:28:51 +00:00
Christian Stimming 4e3be7b89c Cutecash: Fix file loading, saving, and save-as. Works fine now.
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
2010-03-17 19:24:01 +00:00
Christian Stimming 59be2dc692 Add getter/setter for transaction posted-date as a GDate.
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
2010-03-17 19:23:40 +00:00
Christian Stimming 0b7b3cf6a1 Add a GDate kvp_value type including conversions from and to all sorts of thingys.
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
2010-03-17 19:23:20 +00:00
Christian Stimming 2e146b734a Cutecash: Add separate Cmd class for setting the amount/value.
Setting the amount in the register now works.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18922 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-16 19:48:42 +00:00
Christian Stimming 19ca6a75c1 Cutecash: Add Commodity wrapper. Use gnc-exp-parser for numbers.
- 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
2010-03-15 18:39:21 +00:00
Christian Stimming d3c970ac97 Add event registration and handling from the qof_event_handlers.
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
2010-03-15 18:38:26 +00:00
Christian Stimming ab1b493e2e Revert r18869, "Move gnc-ui-util.[hc] and gnc-euro.[hc] from app-utils to engine"
Those files indeed belong better into app-utils; the app-utils defines
several not-yet-GUI parts of gnucash, like many conversions from and to
strings (more than those in these two files), so these files are well
suited in here.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18908 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-14 21:10:26 +00:00
Christian Stimming 5265d4d070 MSVC compatiblity: Fix include files in MSVC. Replace QSTRCMP by g_strcmp0 on MSVC.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18907 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-14 21:02:13 +00:00
Christian Stimming 4426e3931f Improve non-gnome UI compatiblity: app-utils can compile without gtk as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18906 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-14 21:01:52 +00:00
Christian Stimming eba463bb30 Add src/calculation and src/app-utils to cmake build system.
app-utils is needed for the conversion from and to string
for gnc_numeric, date, and other values.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18905 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-14 21:01:32 +00:00
Christian Stimming 4212c0c786 Cutecash: Enable entering of more cells in register. Some code cleanup. Add class documentation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18890 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-11 21:59:45 +00:00
Christian Stimming 81ec044f82 Enable editing of the "Description" column in the split list view - WITH UNDO!
The Qt Undo framework is almost like magic. We just have to create a
command object instead of directly manipulating the value, and suddenly
the undo/redo just works. This is fun!

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18889 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-10 21:40:58 +00:00
Christian Stimming 0a2d901f71 Updated Japanese translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18888 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-10 19:38:03 +00:00
Christian Stimming 0f09fc5e32 Cutecash: Add QUndoStack to implement all editing through the Command pattern and make it undoable.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18887 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-10 17:51:12 +00:00
Christian Stimming 4bb186ef14 Cutecash: Enable closing and re-opening the different tab views.
Also, change many main window slots to make use of the auto-connection
feature because it makes the slot intention much easier to read.

Also, note how we store the Tab position, title, isEnabled state
in dynamically allocated properties in the Tab widget itself -
this is a rather cool feature of QObject here (see reallyRemoveTab()
and viewOrHideTab()).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18886 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-10 17:50:51 +00:00
Christian Stimming cec36eea50 Cutecash: Add Recent-File menu.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18882 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-09 21:53:43 +00:00
Christian Stimming c3f2cb1189 Remove some unused variables.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18877 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-08 18:49:08 +00:00
Christian Stimming 1efdb1a6c6 Win32/MSVC compatiblity
- Replace trunc() by floor()
 - Provide a round() workaround implementation for MSVC
 - Use g_strcasecmp instead of the libc one
 - Add include for libc replacements

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18876 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-08 18:48:44 +00:00
Christian Stimming c2ac86abb6 Cutecash: Enable tab moving and other UI features of Qt.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18875 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-08 18:48:24 +00:00
Christian Stimming 95fa70fec6 Cutecash: Add Timespec conversion to QDateTime. Add display of transaction date in register tabs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18874 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-08 18:48:03 +00:00
Christian Stimming e42a405785 Some more const-correctness in engine functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18873 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-07 21:28:15 +00:00
Christian Stimming c6065b0afa Cutecash: Display account balance in tree and split amount in account register.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18872 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-07 21:27:55 +00:00
Christian Stimming 190f7bac1a Cutecash: Add gnc::Numeric wrapper for gnc_numeric.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18871 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-07 21:27:38 +00:00
Christian Stimming 0055b6f2f8 Move gnc-ui-util.[hc] and gnc-euro.[hc] from app-utils to engine because they don't depend on gtk but are important additions for the engine types.
In particular, the formatting of a gnc_numeric is defined there.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18869 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-07 20:30:08 +00:00
Christian Stimming cad5dc6214 Implement a table widget with the list of the splits of one account, and open this if an account in the tree is double-clicked.
Date and values/amounts can follow next, once those types are suitably
wrapped into C++ as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18868 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-07 17:51:37 +00:00
Christian Stimming 63fc328029 Add implementation of Gregorian - Jalali converter code.
Copied from http://www.farsiweb.ir/wiki/Iranian_calendar

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18867 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-07 13:51:54 +00:00
Christian Stimming 4f2d9bb34c Cutecash: Add progress bar during loading the file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18866 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-07 13:36:11 +00:00
Christian Stimming 7cd0515ffb MSVC compatiblity: snprintf is required to have a prefixing underscore.
Also, more symbols of libguile/gc.h need explicit declspec on MSVC.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18864 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-07 13:06:03 +00:00
Christian Stimming 9eff25ed38 Add variant of gnc_engine_init which is suitable for statically the linked-in library.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18863 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-07 12:54:33 +00:00
Christian Stimming c1c706c0ef Implement the account list data model as a specialization of the account tree model.
This is helpful in order to understand Qt's Model/View structure, so both
(list and tree) are still available.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18862 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-07 11:21:26 +00:00
Christian Stimming 657e58a5c4 Cutecash: Fix guile version number query. Patch by Herbert Thoma.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18861 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-06 21:42:39 +00:00
Christian Stimming 3b23787cbb Updated Japanese translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18860 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-06 21:38:28 +00:00
Christian Stimming 2e40a324b3 Cutecash: Add a tree view of the accounts.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18854 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-06 14:32:05 +00:00
Christian Stimming e290144aa8 Updated Persian (Farsi) translation by Mehdi Alidoost.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18853 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-06 11:09:24 +00:00
Christian Stimming 5396817936 MSVC compatiblity: Replace QOF_BOOK_LOOKUP_ENTITY macro by a RETURN_ENTITY macro and add inline functions for lookup.
MSVC doesn't accept the syntax with an inlined block,
x = ({ foo; bar; value;}). Hence, this is being replaced
by actual function definitions, and the body of those functions
is defined by the new macro.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18851 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-06 11:01:37 +00:00
Christian Stimming 3b44812c29 Delete unused variables.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18850 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-06 11:01:16 +00:00
Christian Stimming 31fe219109 Cutecash: Fix CMakeLists for change in guile lookup, r18846
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18849 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-06 11:00:54 +00:00
Christian Stimming d6a0ecd174 Cutecash: Remove QSharedPointer because manual delete is sufficient.
Also, the QSharedPointer cannot be used for bookkeeping of a C pointer
to any gnucash object because it refuses to work if it doesn't know the
actual struct definition, which in gnucash is always private. The
boost::shared_ptr would work without (by the custom deleter argument in the
constructor), but QSharedPointer doesn't (the custom deleter is accepted
only in addition to the known storage size, not alternatively), so it is
pointless here.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18847 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-05 20:46:35 +00:00
Christian Stimming 650b6ffa10 Cutecash: Add version check for guile and define HAVE_GUILE18 if appropriate.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18846 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-05 20:41:40 +00:00
Christian Stimming 18f663de25 Adapt cutecash to r18842.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18845 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-05 20:32:13 +00:00
Christian Stimming c6e43486f8 Cutecash: Fix extern "C" usage: Must not enclose system includes, supposedly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18844 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-05 20:31:51 +00:00
Christian Stimming 57f38d14ea Cutecash: Allow older glib versions as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18843 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-05 20:31:31 +00:00
Christian Stimming a007db0301 Make business backend initialization functions accessible when statically linking
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18841 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-05 19:57:25 +00:00
Christian Stimming 8b646bb485 MSVC compatibility: Disable "C99 designated initializers" by a compiler-dependent macro
Same as r18755.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18840 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-05 19:57:04 +00:00
Christian Stimming 249a8c5612 Cutecash: Add business-core including business-core/xml into the executable.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18839 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-05 19:56:43 +00:00
Christian Stimming 52af11d179 Make the backend initialization functions accessible when statically linking
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18838 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-05 19:56:12 +00:00
Christian Stimming 3aac125c18 Add copyright notices in cutecash source code files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18825 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 21:44:38 +00:00
Christian Stimming c804244c17 Cutecash: Copy some more icons into the program. Add a clickable hyperlink.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18822 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 21:05:58 +00:00
Christian Stimming f5f17c227e Note the moved files in POTFILES.in.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18820 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 20:28:17 +00:00
Christian Stimming 0df2d5f8d5 Remove C executable from cmake as it is no longer necessary.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18819 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 20:04:35 +00:00
Christian Stimming 1bf6bd2e38 Add missing link library after r18811.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18818 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 20:04:15 +00:00
Christian Stimming 2d045b67ae Adapt cmake to the file move in r18811.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18817 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 19:50:45 +00:00
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
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
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