Commit Graph

22913 Commits

Author SHA1 Message Date
Christian Gruber
53c294f9e8 Remove unnecessary type check 2020-06-15 22:57:13 +02:00
Christian Gruber
bb0088c43c Replace g_return_if_fail() and g_return_val_if_fail() by ASSERT_TRUE and EXPECT_TRUE 2020-06-15 22:57:13 +02:00
Christian Gruber
967cf0b430 Pass std::vector arguments by reference instead of by value 2020-06-15 22:57:12 +02:00
Christian Gruber
d084279891 State comment on unused GObject instance init function more precisely 2020-06-15 22:57:12 +02:00
Christian Gruber
67f63053fb Remove todo comments on replacement of std::vector by std::list
Replacing std::vector by std::list wouldn't have any advantage
2020-06-15 22:57:12 +02:00
Christian Gruber
a9d85e8f8e Use std::vector of const char* instead of std::string where meaningful
This avoids additional string allocation
2020-06-15 22:57:12 +02:00
John Ralls
6071202c0f Release GnuCash 3.905. 2020-06-14 12:43:48 -07:00
Robert Fewell
dcfe85ce11 Bug 797804 - Another misbehaving text cursor in register. 2020-06-14 13:48:36 +01:00
Robert Fewell
4ca52b2380 Error in trace file for Dialog Options
When the New Account Hierarchy Assistant is used, the book options are
added to the assistant as a notebook page and so will not have a parent
widget to be used when restoring the window size so test for parent
before using gnc_restore_window_size
2020-06-14 12:58:57 +01:00
Frank H. Ellenberger
1d055b6d24 L12N: merge recent gnucash.pot in po files
Current state: translated, fuzzy, untranslated messages.
ar: 4186, 917, 470
as: 4148, 947, 478
az: 111, 1374, 4088
bg: 3106, 1710, 757
brx: 4152, 943, 478
ca: 4308, 885, 380
cs: 2437, 2036, 1100
da: 3553, 1197, 823
de: 5324, 175, 74
doi: 2917, 1882, 774
el: 2928, 1582, 1063
en_GB: 2695, 1688, 1190
es: 4932, 481, 160
es_NI: 800, 3042, 1731
eu: 1514, 2651, 1408
fa: 2911, 984, 1678
fi: 2711, 140, 2722
fr: 3874, 1181, 518
gu: 2934, 1850, 789
he: 5315, 189, 69
hi: 4108, 987, 478
hr: 5315, 189, 69
hu: 2991, 1602, 980
it: 4122, 1016, 435
ja: 4611, 595, 367
kn: 4150, 945, 478
ko: 2268, 1912, 1393
kok: 4153, 942, 478
kok@latin: 4086, 1009, 478
ks: 4049, 1046, 478
lt: 3979, 1006, 588
lv: 4596, 723, 254
mai: 4126, 969, 478
mni: 4153, 942, 478
mni@bengali: 4153, 942, 478
mr: 4111, 982, 480
nb: 2584, 2075, 914
ne: 2411, 2151, 1011
nl: 4451, 777, 345
pl: 3456, 1618, 499
pt: 5095, 357, 121
pt_BR: 3712, 1406, 455
ro: 2693, 1975, 905
ru: 4381, 832, 360
rw: 193, 2972, 2408
sk: 2458, 1799, 1316
sr: 4335, 865, 373
sv: 2846, 811, 1916
ta: 4148, 947, 478
te: 4135, 960, 478
tr: 4313, 773, 487
uk: 5540, 17, 16
ur: 4118, 977, 478
vi: 2668, 2001, 904
zh_CN: 3052, 1758, 763
zh_TW: 2604, 1785, 1184
2020-06-13 21:00:50 +02:00
John Ralls
b126227aab Merge Chris Good's 'gnc-fq-dumpMas' into master. 2020-06-13 11:09:32 -07:00
Frank H. Ellenberger
e972860de3 Merge branch 'pr734' 2020-06-13 18:55:32 +02:00
Jannick
4cb634a2e6 de.po: fixes for the Account Import Assistant 2020-06-13 18:54:34 +02:00
Christopher Lam
be97891ee5 [html-utilities] fix gnc:html-render-options-changed
mishandling of reports without __general/report-list option. fix.
2020-06-14 00:12:38 +08:00
Christopher Lam
1bcffcd88d [html-utilities] gnc:html-render-options-changed shows subreports
This is useful for cli to show Multicolumn report with subreports.
e.g.

* guid: 2f17ecb535f24a3a9f314bc5855569e5
General / Number of columns: 2.0
General / Report name: A saved-report based on nmulticolumn-view
General / Stylesheet: Easy
Embedded Report: Welcome to GnuCash
Embedded Report: Balance Sheet

* guid: d8ba4a2e89e8479ca9f6eccdeb164588
2020-06-13 23:51:35 +08:00
Christopher Lam
a107382bd7 [eguile] compact eguile processor
eradicate set! calls, inline strings, neater code. also fix
missing-regex message.
2020-06-13 23:11:32 +08:00
Christopher Lam
0a15909d5e [eguile-utilities] compact & simplify
instead of symbol->string, use string directly.
2020-06-13 23:11:32 +08:00
Christopher Lam
28df0c091d [balsheet-pnl] fix balsheet->networth barchart link
def0caa011 had error.
2020-06-13 23:11:32 +08:00
Christopher Lam
2eb9814604 [balsheet-pnl] use (ice-9 match) forms 2020-06-13 23:11:12 +08:00
Christopher Lam
38060b0258 [balsheet-pnl] value-collector doesn't need to ignore closing
The value-collector is only used to tally account balances for
asset&liability accounts. These accounts never have closing
entries. No need to test closing property.
2020-06-13 23:11:12 +08:00
Christopher Lam
78018d8f9c [trep-engine] don't create intermediate cells object
from cell-calculators (a list of column-info), the cells object (list
of column-data) was created unnecessarily. use cell-calculators
directly.
2020-06-13 23:11:12 +08:00
Christopher Lam
51d00fcbe5 [gnucash-cli] --report show/list outputs to stdout
and their error messages output to stderr
2020-06-13 16:33:20 +08:00
John Ralls
e5a14b8946 Can't set target link options until we've defined the target. 2020-06-12 23:22:27 +02:00
Geert Janssens
49e394e3bd Bug 797800 - [help screen items] clarification welcome
This fixes the presence of the 'input-file' command line option.
It's an implementation detail that wasn't meant to be listed in help.
The way to fix it is keeping two option_description variables. One
with all possible values to parse and one with only those to present
to the user
2020-06-12 17:43:40 +02:00
goodvibes2
f1ff45ecae Bug 796993 - Get Quotes: Err msg if Alpha Vantage API key needed
AlphaVantage API Key is needed for all currency quotes
and stock quotes with source 'alphavantage' or 'vanguard' or
multi sources that include 'alphavantage'.
Give an error message instead of failing with no reason.
2020-06-12 15:20:57 +10:00
goodvibes2
60da4bd7bf gnc-fq-dump: Err msg if AlphaVantage API Key is needed but missing
AlphaVantage API Key is needed for all currency quotes
and stock quotes with source 'alphavantage' or 'vanguard' or
multi sources that include 'alphavantage'
2020-06-12 15:11:53 +10:00
goodvibes2
ec08fc1d1a gnc-fq-dump: add examples to synopsis + remove tabs 2020-06-12 15:05:53 +10:00
Frank H. Ellenberger
7754f035c4 Merge branch 'maint' 2020-06-12 06:52:41 +02:00
Frank H. Ellenberger
9344e5a467 Merge remote-tracking branch 'origin/HEAD'
The usual reference conflicts in po files.
2020-06-12 02:39:05 +02:00
Frank H. Ellenberger
413483ae05 L12N:de 3. Update header 2020-06-12 01:29:26 +02:00
Frank H. Ellenberger
2ad6d168e7 L12N:de 2 Tagestips & 1 Tippfehler
5403 übersetzte Meldungen, 27 ungenaue Übersetzungen, 9 unübersetzte
Meldungen.
2020-06-12 01:22:20 +02:00
Frank H. Ellenberger
1618d86593 L12N:de 1.msgmerge
5401 übersetzte Meldungen, 27 ungenaue Übersetzungen, 11 unübersetzte
Meldungen.
2020-06-12 01:15:27 +02:00
Frank H. Ellenberger
c6c46c46f4 Fix a typo in my previous commit 2020-06-12 00:58:24 +02:00
Fred Bone
55ddb1add8 Bug 797799 - Add Tip of the Day for "Notes" field 2020-06-11 23:40:34 +02:00
Frank H. Ellenberger
d784a2fb51 Merge branch 'maint' 2020-06-11 12:58:40 +02:00
Frank H. Ellenberger
3bd3eecc00 I18N: Improve tooltip about double-line-mode
Suggestion by Adrien Monteleone
https://lists.gnucash.org/pipermail/gnucash-user/2020-June/091425.html
2020-06-11 12:36:48 +02:00
Geert Janssens
64bcd320bb Bug 797791 - [Windows] list of command line options after 'gnucash.exe --help'?
This commit makes gnucash-cli a console application on Windows which
means it's output will be redirected to the connected console.
This works both in cmd.exe and in powershell.

gnucash itself remains a Windows GUI application and hence won't output
to console. To capture its output one needs to start it from cmd.exe
(not powershell!) as follows
'path-to-gnucash.exe' >'file-for-stdout' 2>'file-for-stderr'

'file-for-stdout' and 'file-for-stderr' are the names file two arbitrary
files the user has write access to. They don't have to exist beforehand.

Note 'file-for-stderr' can be set to '&1' (without the single quotes)
to redirect everything on stderr to wherever stdout goes.
2020-06-11 11:55:25 +02:00
Geert Janssens
2d9938b577 Revert "Make gnucash-cli a console application on Windows"
This reverts commit 85f26b6e30.
2020-06-11 11:55:17 +02:00
Geert Janssens
85f26b6e30 Make gnucash-cli a console application on Windows 2020-06-11 11:50:28 +02:00
Frank H. Ellenberger
222b34a08b doxygen: PERL_PATH has become obsolete in 1.8.0 (25-02-2012)
https://github.com/doxygen/doxygen/commit/6d1535c
2020-06-11 09:57:26 +02:00
Frank H. Ellenberger
5766ae4bc8 tip_of_the_day.c: Revert unintended change from commit 0cfb40e 2020-06-11 08:29:42 +02:00
Robert Fewell
cfc6a6e8ef Bug 797531 - Improve jumps to filtered registers
Currently if a jump to a filtered register is made, this could be from
a report, other register, reconcile window and transaction associations
and the destination split is not shown the jump will end up at the last
active cell. This could be confusing so add a test for the destination
split being visible and warn the user with an option to temporarily
clear the filter.
2020-06-10 13:35:22 +01:00
Geert Janssens
f749f136ce Drop unused boost::locale::generator instantiations
We now have one single case in gnc-locale-utils and all code
uses gnc_get_boost_locale to get the proper locale.
2020-06-09 23:10:43 +02:00
Geert Janssens
69a04be353 Fix translations using boost::locale::translate
This requires a std::locale generated from a boost::locale::generator
The examples already in our code base used the wrong message_path while
creating the generator and as a result our message catalogs weren't found.

As with the std::locale I have added code to create a locale via
boost::locale only once instead of having each c++ file redo the work.

This code expects a message_path to set for the boost generator.
An earlier attempt queried for this path directly from within
gnc-locale-utils using gnc_get_locale_dir (from gnc-path.h).

That however broke several c++ tests depending on gnc_locale_utils as those
then also needed to be linked against gnc-path.o. I couldn't get the linker
to do this properly so I worked around it for now by splitting the boost_locale
functionality in two steps:
- an initializer step that takes the messages_path as a string and will
  generate the locale
- a getter to get the locale.

The initializer should only be run once, and before the getter is called.
It won't hurt though if the initializer is called more often.
If the getter is called before the initializer it will still
generate a std::locale but without setting a messages_path. It will then
also log a warning explaining translations may not be properly found.
2020-06-09 22:58:06 +02:00
Christopher Lam
b311cc868d Revert guid-dance "balance-sheet/income-statement{-pnl}: swap guids"
This reverts commit 5fb8d3dcdf.

Because Multicolumn Balance Sheet is not ready yet.
2020-06-09 23:07:26 +08:00
Robert Fewell
75cc9b3087 Add some top / bottom margin to the existing association label 2020-06-09 16:05:37 +01:00
Robert Fewell
46655996b6 Bug 797790 - Set the default folder for Associations
When there is no association set, if the file option is chosen set the
default folder for the file chooser to that of the path head preference.
2020-06-09 16:05:37 +01:00
Christopher Lam
240cbbe8e8 [test-cash-flow] include new dependency cash-flow-calc
fixes travis failure
2020-06-09 22:43:36 +08:00
Christopher Lam
8f60a6c617 Bug 797786: [balsheet-pnl] balance sheet includes closing entries
this commit ensures balance-sheet balances do not ignore closing
entries. ensures equity section includes closing balances from
profit&loss. an addendum to b000d4114
2020-06-09 22:33:58 +08:00
Mike Alexander
5660fde36a Don't reference undefined variable if price is not set. 2020-06-09 02:10:25 -04:00