Commit Graph

21193 Commits

Author SHA1 Message Date
Geert Janssens
32a83678c9 RptCleanup - Install our guile api as a guile site module
This is similar to how our python code is installed as a python site module
2019-06-18 14:25:04 +02:00
Geert Janssens
8d24252860 RptCleanup - Internalize guile-json module
This is in preparation of the final guile restructuring step:
install gnucash scm files directly in guile's default site module directory.
Internalizing json is done to prevent an install clash with a potentially
system installed guile-json module.
2019-06-18 14:25:04 +02:00
Geert Janssens
53f59f7794 RptCleanup - Restructure installation of gnucash scm files
These files were installed fairly ad-hoc into the share/gnucash/scm directory making
it hard to get an idea of where each file comes from.
The files are now structured as follows:
- any scm file authored by gnucash should go in share/gnucash/scm/gnucash or below
- most scm modules will be directly in that directory
- each module that comes with support files will get a subdirectory named after the
  module's base name. For example next to engine.scm there will be directory
  named engine for all support files of the engine module
- scm files that are not modules, but are loaded by modules go into
  <module-dir>. For example gnc-utils.scm loads gnc-menu-extensions.scm
  so that file will be installed in gnc-utils/gnc-menu-extensions.scm
- the report system is our largest module and only part of the restructuring
  is done at this point. It will be refined further in future commits.

The same restructuring is also done for the compiled files.
2019-06-18 14:25:04 +02:00
Geert Janssens
cb50f7aaa0 RptCleanup - fold report/report-system into report
This moves a lot of files and all scm modules that get moved need to have their definition updated.
Aside of that, it also tweaks the install location of the report scm files that are not modules
(but instead included in report.scm).
Lastly, report-system.scm has been renamed to report.scm to match the gnc-module name.
This required a rename of the original report.scm (which is not a module). I chose to rename
that to report-core.scm as it's implementing the guts of the report system.

Still missing in this commit: some compatibility code to give users a warning when they try to
use the old scm module names.
2019-06-18 14:25:04 +02:00
Christopher Lam
7102b1d2f0 [html-chart] use gnc:html-js-include to import js
This fix url to file:/// for windows to render charts properly.
2019-06-18 18:40:56 +08:00
Christopher Lam
d90f843a1a [html-chart] use guid generator instead of random
guid is *guaranteed* to be unique, unlike random...
2019-06-18 18:30:14 +08:00
Christopher Lam
4b21244da8 [report] remove top-level flag no longer needed after 30ac2cf26 2019-06-16 10:46:01 +08:00
Christopher Lam
1ac6262a06 [net-charts] ensure grid is enabled in barchart
previously barcharts did not have grid, an odd omission
2019-06-16 10:45:47 +08:00
Christopher Lam
3b9233de3a [test-stress-options] ensure max is not called with empty list
some reports e.g. sample-graphs.scm may have no options; this commit
causes max to be called with at least 1 parameter (max 0) --> 0.
2019-06-16 10:45:34 +08:00
Geert Janssens
7306f2dda3 Always add srfi64-extras.scm to dist tarball
Even if the current machine doesn't have srfi-64 a machine
downloading the dist tarball may and hence could compile
and run the srfi-64 based tests.
2019-06-15 16:14:43 +02:00
Geert Janssens
91adf868f4 BuildSystem - drop load path for no longer existing build-config.scm 2019-06-14 16:21:43 +02:00
Geert Janssens
4e0571882e Sample Graphs report updates
- Add the report to the Examples menu
- Tweak strings and make them translatable
- Rename report to better match the report title
2019-06-14 13:58:55 +02:00
Geert Janssens
65df53deae Fix distcheck 2019-06-14 12:09:28 +02:00
John Ralls
354e868716 Move simple-obj.scm to import-export/qif-imp, the one place it's used. 2019-06-13 16:29:10 -07:00
Christopher Lam
a552d0d485 [test-graphing] upgraded 2019-06-13 19:15:43 +08:00
Christopher Lam
ddceb54736 [html-chart] ensure yAxis starts at $0.00
Ensuring $0 is included in chart is better.

If beginAtZero is #t, the yAxis will span $0 -> maximum. If
beginAtZero is #f, the chart yAxis will span minimum -> maximum
y-values, which led to bars with minimum amounts being effectively
hidden from view because its height corresponded with the minimum
amount.
2019-06-13 19:15:43 +08:00
Christopher Lam
e1228c76a5 [report] refactor gnc:define-report clearer logic 2019-06-13 19:15:43 +08:00
Christopher Lam
0cdb770f5e [taxtxf] fix copy-n-paste error
101f840255 had copy&paste error, fix function names
2019-06-13 19:15:43 +08:00
Geert Janssens
30ac2cf266 Remove guile functions that were marked as deprecated in gnucash the 3.x series 2019-06-12 16:55:53 +02:00
Geert Janssens
306964797b Bug 773198 - Move several reports to Example directory/menu 2019-06-12 15:38:36 +02:00
Geert Janssens
3d150de16f Bump minimum Gtk version to 3.18 2019-06-12 15:17:29 +02:00
Geert Janssens
c1324304ca Use Ubuntu 16.04 as oldest testbed on travis
This needed a few tweaks to the docker file worth mentioning:
- tzdata is not installed by default, resulting in test-gnc-timezone to fail
- there were a couple of debconf warnings
  * missing apt-utils package => added it to the list
  * no interactive terminal for autoremove => forced non-interactive mode
- in addition I have made building the docker file more verbose in order
  to catch such issues more easily in the future. If this turns out to be
  too distracting I can undo that part again.
2019-06-12 15:17:29 +02:00
Geert Janssens
d3e03ff662 Drop code to migrate preferences from gconf to gsettings
This change was introduced in 2.6. Anyone wishing to migrate from 2.4 to 4 should
first pass via 2.6 and/or 3 anyway so this code will never be used again for 4.x
2019-06-12 15:17:25 +02:00
Geert Janssens
8aa696223b Always add share/scm to GUILE_LOAD_PATH
Any scm file that will be built may need access to other scheme files that may have
been linked into that directory. As it was only scm files that would be linked
themselves would also be built with the search path set, causing other linked files
not to be found for an scm file that doesn't add a link for itself.
2019-06-12 15:16:30 +02:00
John Ralls
9ec5eab714 Merge branch 'maint' 2019-06-09 12:43:12 -07:00
John Ralls
59f9b7786d Don't test gnc:html-string-sanitize on emoji if guile doesn't understand them.
Fixes test failures on guile 2.0.13 where SRFI64 is available but
Unicode is broken.
2019-06-09 12:34:53 -07:00
Robert Fewell
aa3e46a60f Enable the shadow type for the notes scroll window
On the budget options dialogue, the notes field is not visible so
enable the shadow type for the scroll window to get an outline.
2019-06-08 15:00:52 +01:00
Robert Fewell
4796956d84 Stop error when adding commodity
Change the function gnc_tree_view_commodity_select_commodity to just
return when there is no commodity to stop error being logged.
2019-06-08 15:00:52 +01:00
Robert Fewell
7b6134ad5c Follow up on some changes to Aqbanking Dialogue
This commit changes the buttons to use names and enables the
translation of these so they are the same as the rest of the
application. Also added some missing underline settings and the
mnemonic widget they are pointing to.
2019-06-08 15:00:46 +01:00
Robert Fewell
c3794d1907 Changes to the default layout for glade files
With glade version 3.22.1, the default settings and layouts were
changed so this commit applies them so going forward they should not
be highlighted.
2019-06-08 14:41:58 +01:00
Robert Fewell
21e87d6086 Bug 797266 - Missing translation settings
These glade files were missing the setting to enable translations on
various widgets so it has been set.
2019-06-08 14:39:17 +01:00
Robert Fewell
fd3a8c3211 Remove some white space from import-main-matcher.c
Remove some white space and insert a space at the end
of some function names.
2019-06-08 13:54:46 +01:00
Robert Fewell
0a1a28be16 Readd the fix for the date/amount sorting for import main matcher 2019-06-07 16:47:22 +01:00
Geert Janssens
520f350a99 Readd byte-order-mark (BOM) to windows README files
Without this mark the inno setup install won't recognize these files as UTF-8
2019-06-07 16:57:22 +02:00
Christopher Lam
9752daa88c [i18n] fix translator comments to be visible to gettext
Part of Bug 797270 - Budget Chart report - translation of header and
dates

Previously, the translator comments were on the same line and were not
processed into .po clues -- this commit fixes it.
2019-06-07 21:20:22 +08:00
Christopher Lam
d7f0f5da63 Bug 797270 - Budget Chart report - translation of header and dates
Enable translation of header.

Dates are already localised in this report.
2019-06-07 09:07:18 +08:00
Geert Janssens
e210af23f6 Fix list REMOVE_ITEM command 2019-06-06 21:00:06 +02:00
Geert Janssens
fae3312389 RptCleanup - integrate report-gnome into gnome 2019-06-06 18:54:07 +02:00
Geert Janssens
598c374c92 Fix distcheck for chartjs 2019-06-06 18:54:07 +02:00
Geert Janssens
15a35e6a3b Housekeeping - replace plenty of http links with https
There are more, but these are most common ones.
There are also a number of urls that don't behave well when https, so those are skipped
At some point I have also started marking non-working URLs as [DEAD LINK], though
that's not a full coverage.
2019-06-06 15:52:30 +02:00
Geert Janssens
fd6ce1612b Readd the Export To Pdf function for Webkit1 based builds 2019-06-05 17:38:29 +02:00
David Cousens
5f51fc5406 ImportMatcherMultiSelect
Mods to import-main-matcher.c and dialog-import.glade to implement multi-selection of transactions to import and assignment of a single transfer account to the selection

Silence Deprecation Warning

Added conditional replacement of gtk_menu_popup in import-main-matcher.c and reapplied changes to treeview to current version of dialog-import.glade from maint branch.

ImportMatcherMultiSelect #497  Fixes

fixed GTK deprecation selection to use GTK_CHECK_VERSION, deleted g-list-free(l..., , added check for  a selection before popping
ImportMatcherMultiSelect #497 GTKFix

Fix to mixup of deprecated and replacement GTK function for popup menu
 Open ImportMatcherMultiSelect #497 Delet g_list_free..
2019-06-05 15:20:35 +02:00
Robert Fewell
cc12fcf322 Add new function named similar to remove class function
The existing function name to add CSS classes for style contexts was
not correct so add a new function gnc_widget_style_context_add_class
named similar to remove function and use it for the existing
'gnc-class-highlight'. Change old function to use this new one with the
old one being removed in master.
2019-06-04 10:44:14 +01:00
Robert Fewell
a22ad2e0b8 Bug 797246 - Cleared Balance Remains Red After Turning Positive
When changing the negative numbers to red a CSS class is added to set
the colour but it is not removed when changing the number becomes
positive. Add function to remove a CSS class if present and use in the
gnc_set_label_color function.
2019-06-04 10:43:47 +01:00
Christopher Lam
fc3579fca1 [balance-forecast] upgraded 2019-06-04 06:57:47 +08:00
Christopher Lam
70eadbaf22 [budget-barchart] use gnc-account-get-current-depth 2019-06-04 06:57:47 +08:00
Christopher Lam
a323b25067 [budget-barchart] allow budget-period selection
This commit changes report to choose start/end budget periods instead
of start/end dates for reporting.
2019-06-04 06:57:47 +08:00
Christopher Lam
f7ff85b8c3 [budget-barchart] upgraded 2019-06-04 06:57:47 +08:00
Christopher Lam
cb978aad0d [price-scatter] upgraded 2019-06-04 06:57:47 +08:00
Christopher Lam
9b8057e573 [daily-reports] upgraded 2019-06-04 06:57:47 +08:00