Commit Graph

12832 Commits

Author SHA1 Message Date
Christian Stimming
449df116d8 Bug #612212: Provide a method to set the default budget
Patch by Jeff Kletsky.

(Cstim: Accepted even though string freeze is in effect because it was
submitted before the freeze. Also, the string additions are very minor.)

Summary of Changes:

* Initial story related to providing default budget control
  * Add a "Budgeting" tab to the book-level preferences dialog
  * Add a "Default Budget" selector to the "Budgeting" tab
  * Modify gnc_budget_get_default() to
    * Respect the new KVP, if present
    * Fall back to 2.2.x behavior, if not present
  * Modify gnc:make-budget-option
    * Reformatted for readability with additional comments
    * Default is now "#f" so that selected value is always saved
      Otherwise, if selection happened to be the current default
      and the default was later changed, the report would change
    * getter, setter, and generate-restore-form all now consistent
      * setter now always takes a budget object
      * generate-restore-form does not rely on "hack" in setter that
          previously allowed either a budget object or a GUID string
          This is a different fix for 603215 -- see Known Issues

* Provide translation support for "Trading Acccounts" (and "Budgeting")
  * Refactor #define names for consistency and extensibility
    * KVP_OPTION_PATH for consistency with Guile usage
    * OPTION_SECTION_blahblah
    * OPTION_NAME_blahblah
  * Modify qofbookslots.h to be "SWIG-aware"
  * Pick up qofbookslots.h in make-gnucash-potfiles.in and po/POTFILES.in

Known Issues:

* There is no selection (yet) for "Use default budget" so changing the
  default budget and reloading a report does not change the budget used

* setter is no more robust to "bad" values than in previous code

* Budget reports created with 2.3.x after r18528 (between 2.3.8 and
  2.3.9) may not load or re-render as they relied on the setter taking
  either a budget object or a GUID as a string This should not impact
  any 2.2.x users as nothing was saved under 2.2.x related to the
  default budget. This can be resolved through removing the option
  restore code in ~/.gnucash/saved-reports-2.4 and, if affected reports
  were open, in ~/.gnucash/books/<name_of_book>

* Budget reports prior to r18528 did not save budget selection (603215)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19123 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-06 09:01:46 +00:00
Christian Stimming
ced3775bbf Bug #586805: Fix errorneous abs() in csv import
Changes abs function to fabs in gnc-csv-model.c, to allow csv imports of values
less than $1.00.

Patch by James Raehl.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19122 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-06 08:36:59 +00:00
Christian Stimming
7d19c08d6e Bug #617660: Improving iso-4217-currencies
Patch by Frank H. Ellenberger

1. improve the header of fieldnames with annotations
2. sort by ISO code, because
   a. easier for non english people
   b. most tables in the internet have this sort order.
      So maintainance becomes easier.
3. inserting a Column local_symbol, because some people like to use it, e.g.
   https://bugzilla.gnome.org/show_bug.cgi?id=492417#c3
   But probably there is a better way to get this informations.
4. Review List:
   a. adding: CDF, GHS, ...
   b. outdated: AON->AOR->AOA, GWP->XOF, ...
   c. Typos like "fening".
   d. Alway use singular instead of a mixture.
5. add comments:
   a. outdated currencies prepared as in the header shown.
   b. for abbreviations.

Background is the thread starting with
https://lists.gnucash.org/pipermail/gnucash-devel/2009-October/026558.html

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19120 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-06 08:33:29 +00:00
Christian Stimming
f9b1b546b8 Follow-up to r19099: Remove qof's backend loading because there is no backend anymore.
Remove generated file qofla-dir.h. This is actually good progress because
it gets rid of yet another compiled-in path, which are a nuisance and
need to be replaced by runtime path lookup everywhere, if needed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19118 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-06 08:19:17 +00:00
Geert Janssens
fcdfc59e21 Remove qsf related code from windows installer script.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19114 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-06 07:44:11 +00:00
Cristian Marchi
1f45361668 Update of Chinese glossary by Tao Wang
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19111 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-05 18:40:43 +00:00
Cristian Marchi
e6cf158ce9 Update of Chinese translation by Tao Wang
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19110 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-05 18:38:50 +00:00
Geert Janssens
5453e5498a Rewrite assert_one_dir function to not crash on a native build machine
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19107 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-05 12:25:37 +00:00
Geert Janssens
d7cf97feb4 Improve the cross-compilation process.
- improve create_cross_mingw.sh's integration in defaults.sh and install.sh
- update README file

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19104 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-04 23:40:29 +00:00
Geert Janssens
b6bc2b4aee Remove QSF references from cutecash
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19103 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-04 23:03:15 +00:00
Geert Janssens
ebc1f49532 Remove some additional QSF references
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19102 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-04 22:51:54 +00:00
Geert Janssens
b4ebe56020 Improve test_for_mingw
- change test so that both tested programs must work, not only the exit code of the last one
- make it cross-compile compatible

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19101 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-04 22:40:19 +00:00
Geert Janssens
4a4190f261 Improve assert_one_dir
It now gives a different error message when no directory was found or when multiple directories were found

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19100 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-04 16:44:55 +00:00
Geert Janssens
70f08de64a Remove QSF
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19099 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-04 14:15:38 +00:00
Geert Janssens
36a9a2e592 Bug #617435 - webkitgtk+ cross build script, created by Yasuaki Taniguchi
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19098 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-04 09:45:50 +00:00
Geert Janssens
a5568448cf Bug #617558 - Header in register doesn't clear properly in double-line mode when switching from transaction to split, patch by Alex Aycinena
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19097 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-04 09:24:17 +00:00
Geert Janssens
8ca34d6f05 Remove forgotten debug statement
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19096 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-03 20:15:08 +00:00
Geert Janssens
7a6b2751b9 Add ./ to sourced files, so that they are found when cross-compiling.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19095 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-03 20:07:49 +00:00
Geert Janssens
a54561c9c8 Add (optional) destination file name parameter to wget_unpacked and smart_wget functions.
This parameter can be used to override the filename to be used for the downloaded package. If empty, the functions continue to work as before.

This new option will be used for cross compilation.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19094 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-03 19:50:12 +00:00
Geert Janssens
7561a9e3a9 Windows build script improvements
- make sure pexports is available before guile is built
- test for pexports availability when compiling libdbi (to fix crosscompilation)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19093 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-02 23:18:04 +00:00
Geert Janssens
64d45d987a Update zh_CN translation, patch by Tao Wang
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19088 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-01 22:09:26 +00:00
Geert Janssens
cbfc5b8e02 Fix some typos
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19087 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-01 19:48:48 +00:00
Cristian Marchi
8311f6c3fd Update of Italian translation by Cristian Marchi
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19086 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-30 19:16:38 +00:00
Geert Janssens
5d95bb042d zh_CN translation of gnucash glossary file, patch by Tao Wang
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19085 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-29 15:56:31 +00:00
Geert Janssens
0563b4f573 Updated zh_CN translation of accounts, patch by Tao Wang
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19084 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-29 15:44:26 +00:00
Phil Longstaff
6166264b6f Change default report stylesheet from "Default" to "Default CSS"
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19083 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-28 17:48:49 +00:00
Geert Janssens
88cfa51921 Bug #617072 - Update create_cross_mingw.sh, patch by Yasuaki Taniguchi
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19082 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-28 13:54:45 +00:00
Geert Janssens
8c4e116d54 Bug #554936 - 'configure.in' files should be renamed 'configure.ac'
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19081 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-28 13:43:45 +00:00
Geert Janssens
c5227fe013 Bug #616696 - Development version warning string should not include hardcode version.
Third revision.
- Stable Version changed into Stable Series (easier to track automatically)
- Modified motd code to deal with replacement strings
- Changed DEVELOPMENT release tip to separate the Stable Series number from the translatable string.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19080 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-28 13:23:27 +00:00
Christian Stimming
8edb4f839b Bug #615168: Don't define hash-fold for guile 2.x
Patch by Andy Wingo.

* src/scm/main.scm (hash-fold): Only do the conditional hash-fold dance
  if we don't have guile 2.0. (Definitions in expression context are
  actually invalid Scheme, but older Guiles are more permissive.)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19079 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-27 20:46:46 +00:00
Christian Stimming
1ac44f0b8f Bug #615168: scm_c_string_length is the proper spelling now
Patch by Andy Wingo.

Fix up a couple uses of scm_i_string_length, and add a back-compat shim
for earlier versions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19078 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-27 20:46:25 +00:00
Geert Janssens
3ac9526ac8 Bug #616696 - Development version warning string should not include hardcode version.
* Improve on the previous fix: really display stable version in tooltip, not current version.
* Also revert change of "What's new in GnuCash 2.0" because that's the title actually found
  in the help manual.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19077 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-27 19:41:07 +00:00
Geert Janssens
7be168dd80 Add .log extension to qof_log filename while creating the temporary file.
This will only be visible on Windows. On all other platforms the logfile is
successfully renamed to the requested name.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19076 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-27 15:23:05 +00:00
Geert Janssens
57a37b9005 Bug #615317 - Windows installer requires Qt libraries
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19075 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-27 12:12:21 +00:00
Geert Janssens
519fea0230 Add missing libmysql.def to tarball
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19074 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-27 11:04:06 +00:00
Geert Janssens
24f0cf01ab Bug #616696 - Development version warning string should not include hardcode version.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19073 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-26 17:41:24 +00:00
Phil Longstaff
0bfdf60156 Fix #616606 - Add <meta> line indicating utf8 encoding so that non-latin chars show correctly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19072 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-25 19:13:36 +00:00
Geert Janssens
2406f64eaf Enable environment file on Windows (only direct install, not via ISS installer)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19071 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-24 16:26:06 +00:00
Geert Janssens
bdd19bea77 Write makefile rule to create gnucash-icon.ico.
This rule isn't called by default though. It uses image-magick to
add several png images of different size and bitdepth together.
Current ico has:
16x16,8-bit
22x22,8-bit
24x24,8-bit
32x32,32-bit
48x48,32-bit
64x64,32-bit
96x96,32-bit
128x128,32-bit
256x256,32-bit

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19070 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-23 22:32:06 +00:00
Christian Stimming
abe7442d02 I18n: Fix erroneous message.
This (tooltip) string is blatantly wrong, so we need to fix it regardless
of string freeze.

Spotted by Mark Haanen.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19069 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-23 21:19:49 +00:00
Christian Stimming
30194b9d42 I18n fix: Mark forgotten strings for translation.
These are allowed regardless of string freeze because the strings are already
in the program and are untranslated so far. So marking them for translation
will only improve the situation but not introduce new strings into the
program in general.

Spotted by Mark Haanen.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19068 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-23 21:19:28 +00:00
Christian Stimming
b3524ebb39 Bug #615168: Make sure that printf is available whereever it is used
So, the right thing is for each file to be in its own module. Barring
that it's tough to see what the environment is in a given module. So to
be safe, everywhere there's a printf, make sure the (gnucash printf)
module is duly included.

Patch by Andy Wingo.

Conflicts:

	src/business/business-reports/easy-invoice.scm
	src/business/business-reports/fancy-invoice.scm
	src/business/business-reports/invoice.scm
	src/business/business-reports/job-report.scm
	src/report/standard-reports/budget-income-statement.scm
	src/report/standard-reports/income-statement.scm
	src/report/standard-reports/trial-balance.scm

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19067 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-23 21:19:05 +00:00
Christian Stimming
e68434cb03 Bug #615168: Fix a number of scheme syntax errors
This kind of error is detected "eagerly" in Guile 2.0.

Patch by Andy Wingo.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19066 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-23 21:07:13 +00:00
Christian Stimming
89e88ac983 Bug #615168: Fix bogus gnc:safe-strcmp definition
Patch by Andy Wingo.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19065 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-23 21:02:30 +00:00
Christian Stimming
1f45659dbd Bug #615168: Fixup one last simple-format bit
src/engine/iso-currencies-to-c did the same simple-format dance that is
now unnecessary.

Patch by Andy Wingo.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19064 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-23 21:02:09 +00:00
Christian Stimming
4e32243362 Bug #615168: Replace calls to simple-format with calls to format
Guile 1.6 and up always provides simple-format, and defines it as a
restricted subset of the full format, so there's no harm in using the
construct's proper name.

Patch by Andy Wingo.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19063 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-23 21:01:48 +00:00
Christian Stimming
a52ca41d02 Bug #615168: Pull in printf from slib, change all code to use it.
There is a new module, (gnucash printf).

Patch by Andy Wingo.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19062 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-23 21:01:23 +00:00
Christian Stimming
2f9ec4381f Cutecash: Adapt to removed icon file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19061 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-23 21:00:58 +00:00
Christian Stimming
8e3b75e4a9 Bug #616093: Notes are not editable in scheduled transaction edit window
Patch by James Raehl:

The Notes field is not visible or editable.

This appears to be a deliberate choice, as can be seen in line 1308 of
gnome/dialog-sx-editor.c routine schedXact_editor_create_ledger.  I disagree.
Since Notes are not copied to the newly-created scheduled transaction, there is
no way for the user to copy Notes to the model, nor to modify the Notes.  This
makes the partial fix in r16652 for bug 500427 kind of pointless.

This patch reverses that decision.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19060 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-23 20:10:58 +00:00
Christian Stimming
81527bfcfd Bug #615912: Update gnc_quote_source from FQ 1.11 to 1.17 and enhance user_name
Patch by Frank H. Ellenberger.

Because many sources were listet as unknown, I tried to sort them in.
Because normal users don't know all englisch abbreviations of far continents,
I tried to use better understandable descriptions and added country codes.

Caveeats:
1. The HU methods were not quite clear to me, so I added only one.
2. The Currencies methods seems to fetch lists of currencies,
 something what we don't need here; correct me, if I am wrong.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19059 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-23 20:10:35 +00:00