Commit Graph
17593 Commits
Author SHA1 Message Date
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 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
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 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
Robert Fewell a56f031d45 Fix check printing custom preference value
The scheme option is 'date-format-user' so corrected here.
2016-11-16 19:22:21 +00:00
Robert Fewell a67b4922c2 Correct the default options if default invalid
The default value should be a list and have set the default to the new
"No Fancy Date Format" option.
2016-11-16 19:20:15 +00:00
Robert Fewell 5ce8878764 Add an unset option to date-format
Added an option of "No Fancy Date Format" to date-format so it can be
the default. In this position, the format returned is that of what ever
the preference date is set to.
2016-11-16 19:13:50 +00:00
Robert Fewell d56c3d3ac8 Added a default currency to the currency option
This was causing an error when the dialog options was raised.
2016-11-15 15:59:44 +00:00
Robert Fewell 12562bcc0c Add plot size option for future compatibility
This is really just a copy of the number-range-option with some tests
for the saved value being a pair which is used in later versions. If the
pair is a pixel setting, then that value will be used, otherwise the
default value is used. Should any report get saved, the saved values
will be over written in the old format.
2016-11-15 15:24:38 +00:00
Robert Fewell da0b3b5131 Fix warning from glib when saving reports.
Glib complains about an already initialised pointer, there is no need
to initialise when used with gtk_tree_model_get_value.
2016-11-15 12:12:30 +00:00
Robert Fewell 74091fbcfa Change report resizing when not in view
When you have reports open but they are not selected, resizing the
window does not always resize the hidden report views properly. Use
the expose call back so the reports are reloaded on expose event.
2016-11-15 12:05:13 +00:00
Robert Fewell 372b3cc822 Forgot to add the png file to previous commit 2016-11-15 12:03:55 +00:00
Robert Fewell 371222cb6a Add an image for the report tab
There was an entry in plugin-page-report about a missing image for the
report tab so have created one and added it.
2016-11-15 11:29:37 +00:00
Robert Fewell 49014f4714 Change the reload to include using web_view_reload
In the resize call backs, use the webkit view reload function instead of
recreating the report.
2016-11-15 11:27:51 +00:00
Robert Fewell 891dcbc339 Track visibility of the view scroll bars
When the scroll bars show they can affect the chart so force a reload
when they show.
2016-11-15 11:18:44 +00:00
Robert Fewell 51277bcd81 Add progress bar updates for reload / Update
Added progress bar updates for refresh/reload button press and also for
when the options change. Created a new function to set progress bar
height from previous commit to be used for above changes.
2016-11-15 11:16:36 +00:00
Robert Fewell 12994ca6e7 Add call back to track page size changes
Add call back to track size-allocate events for the webkit view. Also
commented out expose event as that may not be required.
2016-11-15 11:15:23 +00:00
Robert Fewell 62e449f37b Stop the progress bar changing height
When the report is run and the progress bar is updated, the height
changes and then changes back forcing the webkit view to change height
and ultimately use the wrong value.
2016-11-15 11:09:43 +00:00
Robert Fewell 1b2f89e194 Add idle function to load report
The reason for webkit not using the full report area is that this area
has not been realized when the report is created and so webkit does not
know the correct size. By using the idle function, the page is created
and realized before loading the report with the added advantage the
progress bar updates on the blank report page.
2016-11-15 11:07:42 +00:00
Robert Fewell d7648a2ba7 Remove macros/as-scrub-include.m4 from makefile
This has already been removed in previous commit.
2016-11-15 10:44:14 +00:00
John Ralls 2c01bfba13 Move gnc_sql_save_commodity to GncSqlBackend, with some restructuring. 2016-11-13 17:21:06 -08:00
John Ralls b683878a25 Remove gnc-backend-sql.h and gnc-backend-sql.cpp.
Having removed all of their code to somewhere else.
2016-11-13 15:17:09 -08:00
John Ralls 00950e9724 Move 3 utility functions from gnc-backend-sql to gnc-sql-column-table-entry.
gnc_sql_load_object, gnc_sql_load_guid, and gnc_sql_append_guids_to_sql.
2016-11-13 14:52:03 -08:00
John Ralls b838c1ebf3 Move gnc_sql_do_db_operation and gnc_sql_object_is_it_in_db into GncSqlBackend. 2016-11-13 12:49:45 -08:00