Commit Graph

17613 Commits

Author SHA1 Message Date
Geert Janssens
85e9c64b13 Drop DOCTYPE header altogether.
It makes the jqplot charts behave poorly. And looking at current
websites on the net, most don't specify this header any more.
2016-12-09 12:32:48 +01:00
John Ralls
1f30e2dacb Merge branch 'maint' 2016-12-06 16:26:25 -08:00
Ryan Tucker
57e7ba869d fix missing chmod +x in configure.ac 2016-12-06 15:30:38 -08:00
Robert Fewell
5c6383e426 Update the saved reports to 2.8 and old to 2.4 2016-12-06 10:38:25 +01:00
Robert Fewell
ac5fb71369 Missing comma in tm answers structure 2016-12-06 10:38:24 +01:00
Robert Fewell
ad07d2e33f Fix error when closing application
There are errors when closing the application to do with gnc_uri when
trying to create a filename from an empty book_id value to update the
page title. Added a test for empty book_id as well as it being null.
2016-12-06 10:38:23 +01:00
Robert Fewell
7f4b656815 Use new options-fancy-date to retrieve date format
Use the new function so we do not need to test for valid format
2016-12-06 10:38:22 +01:00
Robert Fewell
354694b744 Update the Fancy Date Format
When the format is set to unset, the kvp data will now be removed and
added a function to retrieve the 'Fancy Date Format' and test for it
being valid, if not retrieve the preference date format.
2016-12-06 10:38:20 +01:00
Robert Fewell
03a11451bd Add the ability to delete a path from options
There is a requirement to delete the "Fancy Date Format" book KVP data
when set to unset. This was not possible as is as it would delete all
the 'Business' options. This is still possible by passing a null list.
2016-12-06 10:38:19 +01:00
Robert Fewell
7d927cb830 Add missing liststore to preference list 2016-12-06 10:38:18 +01:00
Robert Fewell
1295e00b94 Change daily-reports.scm to use new plot size 2016-12-06 10:38:17 +01:00
Robert Fewell
66023fe08e Change price-scatter.scm to use new plot size
Change price-scatter.scm to use new html-scatter.scm for new plot size
2016-12-06 10:38:16 +01:00
Robert Fewell
70ed816449 Change net-linechart.scm to use the new plot size 2016-12-06 10:38:15 +01:00
Robert Fewell
e98b5632a0 Change net-barchart.scm to use new plot size 2016-12-06 10:38:14 +01:00
Robert Fewell
bd3ed1e59a Fix general-ledger.scm
An option had changed in the transaction report that this one uses.
2016-12-06 10:38:13 +01:00
Robert Fewell
d02245267f Change average-balance.scm to use new plot sizes 2016-12-06 10:38:13 +01:00
Robert Fewell
b060520859 Change account-piecharts and html-piechart
Change account-piecharts.scm to use the modified htm-piechart.scm that
now can use plot size percentages.
2016-12-06 10:38:12 +01:00
Robert Fewell
211b3ab10e Fix account-piechart.scm for guile 1.8.x 2016-12-06 10:38:11 +01:00
Robert Fewell
7f0c912f93 Budget Chart changes
There was no display option but the file indicated that there might be
so created one and added the plot size to it.
2016-12-06 10:38:09 +01:00
Robert Fewell
9e7f10d2c0 Update category-barchart to reflect changes
Update category-barchart.scm to use new pair for plot width and height
setting default to be both 100% of view. Also updated html-barchart.scm
and html-linechart.scm to use these new values.
2016-12-06 10:38:09 +01:00
Robert Fewell
1f8c413d3f Change plot-size-option to use a pair
This change allows the use of pair to specify plot sizes. They can be a
fixed pixel amount or a percentage.
2016-12-06 10:38:07 +01:00
John Ralls
f382695345 Bug 775567 - Importing QIF file from PayPal crashes GnuCash 2.6.14 on Windows XP service pack 3
Guile-1.8 doesn't know about BOM so check for one and strip it if it's there.
2016-12-04 12:36:07 -08:00
John Ralls
755c42a087 Prevent crash when there's an error loading a qif import file. 2016-12-04 12:36:07 -08:00
John Ralls
4e2b2049fc Stop saving all of the currencies in xml files.
Regression from making KVP private.
2016-12-03 12:39:12 -08:00
Geert Janssens
8214e526a7 Fix double registration of backends
This caused all business objects to be saved twice,
breaking at least the xml data files upon saving.
2016-12-03 17:33:12 +01:00
John Ralls
9d75378953 Fix xml save crash.
Actually two problems; first, save_may_clobber_data returned the reverse
of what it should have and second, the backend's m_book (which pointed
to the old book) wasn't nulled so there was a mismatch at save time
preventing the save from taking place. Then, when quitting GnuCash, the
cleanup found the old m_book pointer and tried to use it, causing a
memory protection crash.
2016-12-02 14:42:46 -08:00
Robert Fewell
27f529e76a Bug 516920 Scheduled trasaction calendar popup off screen
If calendar is close to the right screen edge, the pop up can go of screen. Added
test for pop up going off screen.
2016-11-30 18:43:33 +01:00
Geert Janssens
c5198be90c Fix compiler warning about misleading indentation 2016-11-30 16:30:53 +01:00
John Ralls
e592e00e10 Third interim merge of 'c++-backend' 2016-11-28 12:26:26 -08:00
John Ralls
abb66016bc Convert QofBackend to a C++ class and the backend class hierarchy into C++.
Getting rid of all of the casting and different flavors of backend pointers
and adopting the C++ member-function calling conventions.
2016-11-28 12:03:49 -08:00
John Ralls
06af7d794f Remove need for gnc_dbi_safe_sync_all to be a friend of GncDbiSqlConnection.
Adds GncDbiSqlConnection::drop_indexes, changes GncDbiSqlConnection::table_operation
to use a regex-filtered table list from the DbiConn, and converts TableOpType
to a C++ enum.
2016-11-28 12:03:49 -08:00
John Ralls
46ce3f3745 Rename qofbackend-p.h and qofbackend.cpp
To qof-backend.hpp and qof-backend.cpp respectively, to reflect that they
implement the QofBackend class (which won’t be a class until a future commit).
2016-11-28 12:03:48 -08:00
John Ralls
eace625007 Extract class GncXmlBackend from gnc-backend-xml.cpp to gnu-xml-backend.cpp. 2016-11-28 12:03:48 -08:00
John Ralls
90a9520415 Change struct FileBackend to class XmlBackend and rename all variables.
For consistency and clarity: all XmlBackend* are xml_be, all QofBackend*
are qof_be.
2016-11-28 12:03:48 -08:00
John Ralls
526834037c Remove tabs from io-gncxml-v2.h. 2016-11-28 12:03:48 -08:00
Geert Janssens
e38fd5b5e5 Fix report html header
We lost a required escaped quote in commit 4a60e4906 'Fix type in HTML header.'
2016-11-28 10:33:56 +01:00
Geert Janssens
dd4b8a104d Fix hard-coded reference to saved-reports-x.y file
Instead split the string in a formatter string with one parameter. This avoids
the need to remember to update the string and its translations
each time the saved-report's file format is bumped.
2016-11-24 20:26:40 +01:00
Geert Janssens
e4bb9b70f8 Merge branch 'maint' 2016-11-24 14:19:50 +01:00
John Ralls
427d46719e Fix another missing include <algorithm>.
Required by gcc-6.2.
2016-11-18 16:46:50 -08:00
John Ralls
a7225780d6 Add brackets around array instantion inside initializer list.
See https://llvm.org/bugs/show_bug.cgi?id=21629 and
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25137 for the excrutiating
details. Seems easier to just do what the compiler wants than to screw
around with pragmas or disabling the warning.
2016-11-18 14:30:29 -08:00
John Ralls
f6a0e20aed Remove EXTRA_DIST reference to as-scrub-includes.m4.
File itself was removed in b905c4a.
2016-11-18 14:30:29 -08:00
John Ralls
fff486c208 Remove std::move call that defeats RVO. 2016-11-18 14:30:29 -08:00
John Ralls
05049676cb Sync POTFILES.in with files added and removed by c++-backend. 2016-11-18 14:30:29 -08:00
John Ralls
105ec1e4f3 Fix bad time format.
Good catch by Mathew Forbis.
2016-11-17 20:34:51 -08:00
John Ralls
1774de79fe Fix Travis build errors. 2016-11-17 17:08:36 -08:00
John Ralls
0f506276ff Second interim merge of c++-backend.
This is about as far as I can go on the SQL/DBI backend without changes
to QofBackend, QofQuery, QofInstance, and the engine classes. The XML
backend needs the same OO treatment before that's possible, so that's
the next stage.
2016-11-17 15:38:08 -08:00
John Ralls
d73c9bef05 Remove two unnecessary local variable declarations. 2016-11-17 15:34:04 -08:00
John Ralls
3afe27ec45 Convert foo_needing_parents to std::vector and its loops to std::remove_if.
Fixing incorrect implementation in gnc-bill-term-sql and gnc-tax-table-sql,
where there was no test for the parent actually having been loaded.
Also #ifdef-out the starting balances part of GncSqlAccountBackend::load_all
and move its variable decls inside the ifdef as auto.
2016-11-17 15:34:04 -08:00
John Ralls
b847601ebe Replace GStrings with std::strings. 2016-11-17 15:34:03 -08:00
Robert Fewell
bc33d564a8 Changed the default value for date format
Set the default value to the new 'No Fancy Date Format'.
2016-11-16 19:23:58 +00:00