Commit Graph

18811 Commits

Author SHA1 Message Date
John Ralls
a840748409 [Gwenhywfar] Use the new getpassword API only on the gwen5 branch. 2017-10-31 14:31:00 -07:00
John Ralls
be44db2ef8 Provide for report/report-system/test/test-extras to be built before other tests. 2017-10-31 12:06:02 -07:00
John Ralls
cbd8764780 Ensure that report unit tests dependencies are built with target. 2017-10-31 10:59:12 -07:00
John Ralls
039dda5294 Merge J. Marino's cashflow-barchart updates into unstable. 2017-10-31 10:20:50 -07:00
Jose Marino
41ad89154f report-test: move add-to-load-path to build system
The unit test for cashflow-barchart.scm needs module stylesheets
to work, to render gnc-monetary objects correctly.
It makes sense to add the extra load-path needed by the module
in the build system instead of with code in the test file.

This is only needed when building with autotools. It seems cmake
builds don't need this.
2017-10-31 11:04:17 -06:00
John Ralls
49c70795c3 Remove X11 error handler
And with it the only direct X11 dependency.
2017-10-31 08:53:20 -07:00
Geert Janssens
f05761e636 Merge branch 'gtk3-update7' of https://github.com/Bob-IT/gnucash into unstable 2017-10-31 09:53:33 +01:00
Robert Fewell
641d56f346 Move the CSS files to a Gresource file
Move the source CSS files to the gnucash directory and load them from
a gresource file. As pseudo class 'insensative' is deprecated, add a
second main css file to be used after Gtk3.20
2017-10-30 20:11:38 +00:00
John Ralls
9669bd6b6c Release 2.7.1 2017-10-29 14:01:15 -07:00
John Ralls
09bcb515a1 Set relative path to icon file in Windows resource script.
No idea why this is necessary for tarball builds, but it is.
Also update the copyright date in the same file.
2017-10-29 13:59:51 -07:00
John Ralls
e959822817 Don't copy ChangeLog on a tarball build.
There's no reason to and besides it breaks in-source builds
because trying to copy onto itself raises an error.
2017-10-28 14:21:39 -07:00
John Ralls
b92a41b608 Pass a NULL parent to gnc_options_dialog_new_modal in assistant-hierarchy.
In this case the dialog isn't a dialog, it's a notebook page, so it
doesn't need to have a parent at creation.
2017-10-28 09:56:58 -07:00
John Ralls
d22b098dff Set a parent window for the options dialogs.
So they pop up centered on the GnuCash window instead of
on the wrong monitor.
2017-10-27 16:23:02 -07:00
Jose Marino
5ca2834bd0 cashflow-barchart: split option "show money in/out" into two separate ones
The report had two display options: one to control the display of
money in/out and another one to control the display of net flow.
In this commit we split the first option into two separate ones to
allow toggling the display of money in, out and net independently.
2017-10-27 15:27:41 -06:00
Jose Marino
44df91adca cashflow-barchart: delete unnecessary intermediate lists
These intermediate lists *-value-list hold the double values needed
by the barchart. We can easily create these lists on the fly,
there's no need to store them in a separate variable.

The same is done to include total values in the table, we can easily
append the total value on the fly.
2017-10-27 15:27:41 -06:00
Jose Marino
9cb8a3c87a cashflow-barchart: use direct gnc-monetary math instead of collectors
Operate between gnc-monetary objects instead of using collectors. The
resulting code is simpler and easier to read.
2017-10-27 15:27:36 -06:00
John Ralls
5157d8b50a Merge branch Christopher Lam's Transaction Report Improvements into unstable. 2017-10-27 12:06:52 -07:00
John Ralls
e64e73b655 Merge branch J. Marino's cashflow-barchart report into unstable. 2017-10-27 11:31:46 -07:00
John Ralls
115c0bf4a4 Merge Aaron Law's branch 'buildfix' to unstable. 2017-10-27 10:13:06 -07:00
John Ralls
04642fc42a [SQL] Check return of string_to_guid, bail if false. 2017-10-27 09:46:47 -07:00
John Ralls
d17c24b770 Bug 789298 - Prompt for file history update leads to crash during startup. 2017-10-27 09:46:47 -07:00
lmat
7a0d5a5735 Updating home directory to fix CI error messages 2017-10-27 11:57:06 -04:00
Christopher Lam
a9fab36040 transaction.scm upgrade complete
It now has account and transaction substring/regex matcher.
Verified working in 2.7.0
2017-10-27 17:33:38 +08:00
christopherlam
dfa25e8cbd refactor old is-filter-member to use srfi-1
This has better readability
2017-10-27 16:53:08 +08:00
christopherlam
cdb677633c improve split-remove-duplicates, combine filters
To use inbuilt list functions
2017-10-27 16:53:08 +08:00
christopherlam
3475a894f9 Regex is optional, and add transaction matcher
This commit will reinstate substring matcher, with optional regex matching.

Will also add a Transaction Matcher - will include splits whose description/notes/memo is substring/regex matched. Will be usable for #category matching, especially when backported to transaction.scm

Also strings are defined centrally which will aid localization and reduce typos.
2017-10-27 16:53:08 +08:00
Christopher Lam
885272a150 Enhance transaction.scm account filter to regex
This commit will enhance the account fullname filter to full regex matching capabilities. Will allow complex account fullname queries e.g. 'Car|Flights'
2017-10-27 16:53:08 +08:00
christopherlam
d077400ba8 Enhance account filter to a regex
This commit will enhance the account fullname filter to full regex matching capabilities. Will allow complex account fullname queries e.g. "Car|Flights|Travel"
2017-10-27 16:53:08 +08:00
christopherlam
b74c0bedfd Amend some strings for improved visibility
Enhance visibility of total-sales and total-purchases (all caps) and amend input/output tax accounts display.
2017-10-27 16:53:08 +08:00
christopherlam
51a0a55e43 Change critical code to pure FP
The function split-adder is the most crucial code  in this report. This commit changes it to pure functional programming.
2017-10-27 16:53:08 +08:00
John Ralls
77ab04100c Bug 789297 - Account Tax Related Information - 2.7.0 is not backwards compatible 2017-10-26 16:23:44 -07:00
John Ralls
82dec9a231 Fix NEWS errors reported by Chris Lam 2017-10-26 15:51:18 -07:00
Geert Janssens
1a8cf021d2 Add GNUCASH_BUILD_ID cmake/configure variable which allows packagers to define their own
For example distros may want to set the version of their package source (rpm, dpkg,...) rather than
our git id.
2017-10-26 22:48:50 +02:00
Geert Janssens
67ae241075 Use alternative revision retrieval if git describe is failing
This happens primarily on Travis. It looks like the shallow clone it makes is missing
tags. So if git describe fails, fall back to only the short commit hash (as we used to do
previously everywhere).
2017-10-26 22:48:50 +02:00
Geert Janssens
998f1185c1 Improve about dialog layout and contents
The main changes are
- group version and build information together
- increase size of application icon and name
- A more complete copyright notice (including 'Copyright' and 'GnuCash')

The default gtk provided about dialog widget won't allow for much more customization than that...

Note the build info has been condensed and is now based on 'git describe' which
returns a very concise, yet complete description of a commit starting from
the last tag that precedes it. This info will also be used anywhere else the build info
was displayed from now on, simplifying translations as well.
2017-10-26 22:48:50 +02:00
John Ralls
4be826055a Revert "Partial fix to exception crashes on Windows."
This reverts commit 4746054635.
a300384 is the correct fix for this problem.
2017-10-26 13:08:36 -07:00
John Ralls
a300304354 Fix Windows crash-on-throw.
Thanks to https://stackoverflow.com/questions/46688200/mixing-c-and-c-causing-exceptions-to-terminate
2017-10-26 12:38:50 -07:00
John Ralls
4746054635 Partial fix to exception crashes on Windows.
There seems to be more than one problem that causes the exception handler ("catch") to
get lost on Windows:
* Throwing from a constructor called from a member function of another object of the same
class. That's fixed here for the GncNumeric string constructor, but there's at least one other
instance I'm still working on in GncNumeric::to_decimal.
* Hidden memory allocation in a stack-allocated object like std::string, std::istringstream,
or boost::smatch: The throw causes the object to go out of scope which calls its destructor
and in that case the catch reference is either lost or never compiled in.

This change ifdefs out the creation of detailed exception messages on Windows to avoid
the destruction of the std::istringstream and its attached std::string, creates a series of
helper functions to ensure that the boost::smatch is in a non-throwing scope, and puts the
computed values directly into the member variables instead of delegating the construction
to a temporary and then copying out the values. The last item is more correct anyway, as
C++ constructor delegation is supposed to happen in the member initialization part rather
than the function body.
With these changes the exceptions from the GncNumeric string constructor are handled
correctly.
2017-10-26 11:33:50 -07:00
Geert Janssens
df8ceadb63 Fix building from dist tarball with python bindings enabled 2017-10-26 14:05:17 +02:00
Geert Janssens
7cb59aafe8 Fix disabling src docs build on Windows
As it was written it also prevented building source docs on other platforms, causing
cmake warnings and a failed dist build.
2017-10-26 14:05:17 +02:00
Geert Janssens
1238b9d8cd Prevent gcc from searching config.h in the current directory
This will avoid a ninja-build from picking up a config.h generated by the autotools build
(in the root build directory). Picking up the wrong config.h may lead to all kinds of
subtle issues if the autotools run was done with different options than the cmake run.
2017-10-26 14:05:17 +02:00
Geert Janssens
67d011b86f Add gnucash.1 man page as proper dependency for dist
This file is now generated using CONFIGURE_FILE, so cmake will pick it
up as a generated file and do proper dependency resolution based on it.
2017-10-26 14:05:17 +02:00
Carwyn Nelson
7b1d298bc6 Little refactor of account.c 2017-10-25 09:43:13 +02:00
Geert Janssens
444eb1c28e Improve gnc_numeric_boxed_copy_func based on discussion in PR#145
In essence
- guard against nullptr dereferencing
- free returned values
2017-10-23 23:05:49 +02:00
Bob-IT
53ef0c5be9 Save button active on every load
The gnc_numeric numval was being set with a valid numeric and hence was always different to the parsed amount.
2017-10-23 23:05:49 +02:00
John Ralls
70a37a24ae Don't build design docs on Windows.
To avoid requiring texinfo.
2017-10-22 11:51:48 -07:00
John Ralls
7b44e280e8 Add fixed bugs for 2.7.0 to NEWS. 2017-10-20 15:37:06 -07:00
fell
c19f851c29 Add a bunch of translator comments and a few accelerators to glade files 2017-10-20 20:55:15 +02:00
Geert Janssens
b83be1b8c6 Remove configure option --enable-locale-specific-tax and make gnucash always behave as if it was set 2017-10-20 20:50:33 +02:00
fell
90bbeac078 Add a bunch of translator comments to C files 2017-10-20 20:20:20 +02:00