Commit Graph

22926 Commits

Author SHA1 Message Date
Christian Gruber
861a2482fe Add a comment on using empty ctor for mock classes derived from GObjects 2020-07-10 23:03:01 +02:00
Christian Gruber
3d92d53917 Rename all class methods using snake_case instead of camelCase 2020-07-09 22:03:05 +02:00
Christian Gruber
1fa90a5429 Cleanup some comments 2020-07-09 22:00:18 +02:00
Christian Gruber
af3353a1da Correct comments on fake functions of the test application 2020-07-09 22:00:18 +02:00
Christian Gruber
1e2236afdc Use typed queries 2020-07-09 22:00:18 +02:00
Christian Gruber
fa82a8bcce Replace query factory by a query pool
Query factory was implemented using a public global variable
qof_query_factory.

Furthermore a query pool is easier to handle than a factory, since the
whole management can be hidden from the user.
2020-07-09 22:00:14 +02:00
Christian Gruber
2639cdefdf Remove unnecessary inclusion of qofquery-p.h 2020-07-09 21:58:48 +02:00
Christian Gruber
841111e37e Rename class QofMockQuery to QofFakeQuery 2020-07-09 21:58:48 +02:00
Christian Gruber
bbfc30d70b Rename gmock-qofquery to fake-qofquery 2020-07-09 21:58:48 +02:00
Christian Gruber
8425af784e Check pointer to preferences backend before using it 2020-07-09 21:58:48 +02:00
Christian Gruber
766f88c02d Replace singleton class MockPrefsBackend by an ordinary class 2020-07-09 21:58:42 +02:00
Christian Gruber
8ac640d5fa Fix typo 2020-06-15 22:57:13 +02:00
Christian Gruber
610bbda23f Add glib-object.h to includes 2020-06-15 22:57:13 +02:00
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