Commit Graph

23075 Commits

Author SHA1 Message Date
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
John Ralls
15938d0790 Improve comments explaining exposed generators. 2020-06-08 13:14:20 -07:00
John Ralls
b84ad7ab7e Extract cash-flow-calc-money-in-out to its own module.
It's used by two reports so this simplifies the dependency graph.
2020-06-08 13:12:10 -07:00
John Ralls
8ec0b87600 Fix report dependencies that caused Xcode build failure. 2020-06-08 12:38:09 -07:00
Robert Fewell
cb69b806e7 Update Schedule Transaction Template dialog status bar
Copy the functions from gnc_main_window that updates the status bar
with the action tooltips to gnc_window so that both GncMainWindow and
GncEmbeddedWindow can use without duplicating code.
2020-06-08 17:16:23 +01:00
Robert Fewell
4fba473570 Add the Register width menu options to the Scheduled
Transaction Template dialog.
2020-06-08 16:57:02 +01:00
Christopher Lam
d281a3f270 Bug 797786: [balsheet-pnl] show trading-accounts if set 2020-06-08 22:37:00 +08:00
Christopher Lam
555e4dd34b Bug 797786: [balsheet-pnl] add liability&equity section in bs 2020-06-08 22:36:58 +08:00
Christopher Lam
b000d4114c Bug 797786: [balsheet-pnl] retained earnings include closing entries 2020-06-08 22:36:45 +08:00
Christopher Lam
fed4dfba6d [balance-sheet] hide trading-accounts if use-trading-accts? is unset 2020-06-08 22:36:45 +08:00
John Ralls
b5aeca94b6 Bug 797746 - [reports] German umlauts not escaped
Resume using libintl directly. Guile apparently passes gettext msgstrs
through scm_from_locale_string instead of scm_from_utf8_string.
2020-06-07 10:46:01 -07:00
John Ralls
55aadc0b1a Release 3.904 2020-06-07 09:55:00 -07:00
John Ralls
00427840d2 Update translations from the translation project.
Romanian, Ukrainian
2020-06-06 16:51:20 -07:00
Geert Janssens
310354d13f Drop superfluous check for threads library
This is already checked by our CMake configuration.
2020-06-07 00:12:54 +02:00
John Ralls
c09ef9eea0 One more misbehaving text cursor in register. 2020-06-06 15:09:13 -07:00
Christopher Lam
747ad96802 Merge branch 'master-cli-report-upgrades' #733 2020-06-06 19:27:00 +08:00
Christopher Lam
25e55cee82 [cli-reports] implement --report show 2020-06-06 19:25:52 +08:00
Christopher Lam
4d921c67c3 [cli-reports] implement --report list
Lists available reports.
2020-06-06 18:35:59 +08:00
Robert Fewell
f8fdb95ea3 Bug 797775 - Rate/Price displayed as fractional in CSV Export
Change the CSV transaction exporter to follow the Preference setting
of 'General->Force Prices to display as decimals'.
2020-06-06 11:15:08 +01:00
Robert Fewell
c02eef8bbe Bug 797774 - Bill/Invoice due reminder confusion on CN?
The Bill/Invoice due reminder has a column header of 'CN?' which was
unclear of meaning which is 'Is this xxx a Credit Note'. A tooltip
was suggested but a better fix is to change the column to display the
'Type' so you would see Bill, Invoice or 'Credit Note' just like you
see in the find dialog.
2020-06-06 10:14:50 +01:00
Robert Fewell
1e312d4a33 Add a tooltip for the 'C' column in the Chart of Accounts
Add a tooltip to the header for column 'C' of 'Account Color' to match
existing one character headings for 'Place Holder' and 'Hidden' columns.
2020-06-06 10:06:41 +01:00
Robert Fewell
9f97ce6c21 Fix g_signal_handler_disconnect: assertion in trace file
There is a difference in the way the sheet is closed between registers
and invoices. The gnc-date-cell-destroy is being called before the
gnc-item_edit_destroying for invoices and so when the item_edit tries
to do the signal disconnect on the popup_item it no longer exists.
Moving the gtk_widget_destroy before ledger_destroy fixes this.
2020-06-06 10:04:36 +01:00
John Ralls
e4e36e6843 Bug 797781 - Num Field Regression - characters in wrong order when typed. 2020-06-05 12:06:32 -07:00
John Ralls
cee479f4f4 Gnucash-sheet: Add debug statements for tracking selection. 2020-06-05 12:06:32 -07:00
Geert Janssens
153ee8871a Add first version of gnucash-cli manpage
Note manpages for both gnucash and gnucash-cli need revision.
They refer to outdated files and environment variables, and
some more recent command line options are missing.
2020-06-05 20:32:14 +02:00
Geert Janssens
769196fec6 First version of a gnucash-cli man page 2020-06-05 20:13:34 +02:00
Geert Janssens
cee52d4f91 Convert '--run-report' to '--report run' to accomodate for additonal report commands
Note this required the introduction of a '--name' parameter
for the report name to run. Without it the command line
would have to support a variable number of positional
parameters, depending on the context (quotes or report)
and that would complicate the parsing considerably.
2020-06-05 19:46:17 +02:00
Geert Janssens
451d38f6e8 Convert command line option '--add-price-quotes' to '--quotes get' 2020-06-05 18:44:07 +02:00
Geert Janssens
422dca54e1 Rework command line option parsing to store values directly in class member variables
The program options libary has a convenience binding for boost::optional
to indicate whether an option is set or not.
Use this to store options passed on the command line directly
in variables for later use. This avoids the need to refer to options
in several locations using a fixed string (like 'help', 'help-gtk', 'nofile',...)

In addition drop a number of obsolete class member variables.
They were leftovers from the conversion to c++ and no longer used.
2020-06-05 18:16:25 +02:00
Christopher Lam
d14e2cced7 [cli-reports] modify to open session readonly
Reverts 658241d3b because now READONLY session will not delete lock
file. Because reports don't (and shouldn't) modify data. allows
reports to be run on files open in another session.
2020-06-05 21:01:49 +08:00
Robert Fewell
d4e90132d9 Fix a missing mode == in 'Replace the three bool parameters
to qof_session_begin to an enum'.
2020-06-05 11:10:16 +01:00
John Ralls
b8d514e157 Don't try to unlock the GncDbiSqlConnection when it was connected read-only.
If it's locked it's not *our* lock.
2020-06-04 14:07:28 -07:00
John Ralls
6a1cb5eecd Replace the three bool parameters to qof_session_begin to an enum.
For clarity. In so doing found the backend behavior a bit inconsistent
so it's modified to do what the enum values indicate.

In the course of changing the various calls I found some implementation
errors in the back end and corrected them.
2020-06-04 14:07:28 -07:00
John Ralls
c73a1bd475 Extract function template drop_database. 2020-06-04 14:07:28 -07:00
John Ralls
a320035f42 QofSession, QofBackend: Change book_id to uri.
It's more descriptive and less likely to be confused with the book:id value
in XML files that is the book's GUID.
Also changed the QofSessionImpl::begin new_uri parameter from std::string to
const char*. There's no point in allocating a string just to call
new_uri.c_str() all over the place.
2020-06-04 14:07:28 -07:00
John Ralls
65e2639de4 Delete QOF_STDOUT.
Apparently a hack for the long-gone QSF backend.
2020-06-04 14:07:28 -07:00
Christopher Lam
0281ef2fc5 Bug 797739 - Tweak Transaction Report Column Defaults
Tweaks to Transaction Report defaults:

* Account Name: false
* Full Account Name: false
* Other Account Name: true
* Amount: double

Also tweak test-transaction which assumed previous defaults.
2020-06-03 19:19:10 +08:00
Yuri Chornoivan
1467f33275 I18N: Fix typo Exsiting -> Existing 2020-06-02 17:50:22 +02:00
John Ralls
54859eaf5b Add scm-core-utils as dependency of scm-engine-1.
Fixes build failure reported on gnucash-devel.
2020-06-01 13:43:28 -07:00
John Ralls
ff8075569e Include gnucash-windows-locale.c in the dist. 2020-06-01 09:35:15 -07:00