Commit Graph
100 Commits
Author SHA1 Message Date
Robert Fewell b798a6cdbd Bug 516920 - Calendar Pop up disappears of the left side
The last change did not check for the left screen edge. This update
checks for the calendar pop up going over the left, right, and
bottom edges of the screen. The top should not be an issue.
2017-01-23 14:09:59 +01: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
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
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
Robert Fewell 921b5a9f3f Change all key accelerators to use <primary>
Change from using <control> to <primary> for part of key accelerator
definitions. This will map the accelerator to Command on OSX and to
Control for anything else
2016-09-27 21:16:32 +02:00
Robert Fewell 1615fe5bc0 Add find account to register2 to keep in sync 2016-09-27 21:16:32 +02:00
Robert Fewell a1f45958b3 Hide the radio buttons when searching full tree
When the dialogue is started from the menu bar, all accounts will be
searchable and so hide the 'Search from' radio buttons. These are only
displayed when the started from the context menu.
2016-09-27 21:16:32 +02:00
Robert Fewell 08c7140b12 Change from using icon-name to stock-id
Changed from using icon images as they are not installed on Windows.
2016-09-27 21:16:32 +02:00
Robert Fewell fa33f5d4d0 Change Find Account menu item to the Edit Menu 2016-09-27 21:16:32 +02:00
Robert Fewell 1a5f01290b Make sure the parent accounts are overridden
When the account is overridden, all the parents also need to be
overridden to allow the tree-model filter to show the tree-model leaf.
2016-09-27 21:16:32 +02:00
Robert Fewell 760e30f136 Change from using toggle cell renderer to pixbuf 2016-09-27 21:16:32 +02:00
Robert Fewell 3af55b0d8c Add columns for account not used and zero balances
For completeness add columns to indicate that accounts are not used or
have zero balances which may of been filtered.
2016-09-27 21:16:32 +02:00
Robert Fewell 7890970f29 Update to use the account tree filter override.
These changes allow the account to be selected in the account tree as
the filter is temporarily overridden.
2016-09-27 21:16:32 +02:00
Robert Fewell 5f6f0231ce Add account tree filter override
With this addition it is possible to jump to an account that would not
normally be shown in the tree. This is only valid for the session.
2016-09-27 21:16:32 +02:00
Robert Fewell a8770a4d26 Add option to find an account in list of accounts
This update adds the option to search for an account in an account list
and once selected it will jump to that account in the Account Treeview
or if it is a hidden account the account editor will open.
2016-09-27 21:16:32 +02:00
Robert Fewell f54fc2ff11 Add option to recn cell type to be read only
Use added read only option to make Associate cell read only
2016-09-13 20:57:14 +02:00
Robert Fewell 6450bb624a Make a distinction between file/link Association
Show a 'f' in the register for a file association and a 'w' for a link
2016-09-13 20:56:49 +02:00
Robert Fewell 382b031e3c Indicate an Association in the Register
Use the field below the reconcile and type entry on the transaction
lines to indicate a file/link association.
2016-09-13 20:56:24 +02:00
Robert Fewell 1684539263 Bug 762901 [PATCH] Fix saving Account Treeview sort order.
The default treeview sort order when created is the name column which
happens to be column 0. When saving the sort order, column 0 is checked
to see if it is the sort column and if it is the sort order is not saved

Changed to check for the column not being 'name' and then save the order
2016-09-04 17:08:27 +02:00
Robert Fewell 258d994e2c Change Transaction Association Dialog
Update dialog to reflect the use of relative paths by the addition of a
toggle column indicating such.
2016-08-20 16:07:46 -07:00
Robert Fewell 6f70e08bdf Add check for path being relative.
If the preference "assoc-head" is set and file path is a sub directory
then only this part is saved to the transaction making the full path
portable. Paths outside of "assoc-head" will be saved in full. There is
also a test to make sure the URI passed to the open call has a valid
scheme otherwise the windows version will crash.
2016-08-20 16:07:46 -07:00
Robert Fewell 47953c9b73 Add Preference path head for Trans. Associations
Add a preference for setting the path head for Transaction Associations
based on a GtkFileChooserButton. An additional button is used to clear
this setting when required.
2016-08-20 16:07:46 -07:00
Robert Fewell 531f0f3c37 Add sort button for Associations 2016-08-20 16:07:46 -07:00
Robert Fewell a860643922 Transaction Association List Dialog
This new dialog creates a list view of transaction associations and
allows them to be checked to see if they are still available and be able
to jump to the corresponding transaction in the register or open the
associated entry.
2016-08-20 16:07:46 -07:00
Robert Fewell 5f75f106ee Add option to recn cell type to be read only
Use added read only option to make Associate cell read only
2016-08-20 16:07:46 -07:00
Robert Fewell 57666b43ba Make a distinction between file/link Association
Show a 'f' in the register for a file association and a 'w' for a link
2016-08-20 16:07:45 -07:00
Robert Fewell 5bb53c044a Indicate an Association in the Register
Use the field below the reconcile and type entry on the transaction
lines to indicate a file/link association.
2016-08-20 16:07:45 -07:00
Robert Fewell 8f9d1dcf39 Change associate file/link to show existing entry
Currently there is no way of knowing what the existing association is
and so what dialog to use. Changed the file dialog to use existing uri
along with a label in case the uri does not exist and populated the
entry in the link dialog with the existing uri.

Also added a test for when entry is cleared and also being NULL to
control menu sensitivity and also added a remove button to clear entry
2016-08-20 16:07:45 -07:00
Robert Fewell d7a77a3a5f Update Transaction unit test date internal
Update this test to use strftime so the format can be specified as ctime
was using a space in front of the month number. Also add a '\n' to the
end of msg2 as the PINFO in Transaction.c line 1940 has one.
2016-05-08 16:58:19 -07:00
Robert Fewell fab69c29a8 Date format using strftime under windows.
strftime under windows does not support the %e or %P flags so change
them to %d and %p respectively.
2016-05-05 16:23:52 +01:00
Robert Fewell e81494756e Gnucash on Windows will not start.
in the TimeZoneProvider function load_windows_classic_tz make_pair
should of used max_year as the first parameter.
2016-05-05 16:19:11 +01:00
Robert Fewell d54ccee532 Add Bayesian Conversion to Guid unit test
Added a test case for Bayesian mapping conversion from using the account
full name to using the account guid when storing the mapping entry
2016-03-19 15:52:09 +01:00
Robert Fewell 5f7fcf6ad7 Update Unit tests for import_map
Change import_map tests to reflect change to use the account guid.
2016-03-19 15:52:07 +01:00
Robert Fewell de8e2db3b2 Change look_for_old_mapping to return NULL
look_for_old_mapping should return NULL when we find an existing
map_account
2016-03-13 10:33:54 +01:00
Robert Fewell a4be710fdd Rename some function to better reflect there use
Change some function names to better reflect there use and change
look_for_old_mapping to return map_account and use this to see if we
need to convert entry
2016-03-13 10:33:53 +01:00
Robert Fewell 99d0b03e0f Remove unnecessary use of g_strdup of full_name
Remove the unnecessary use of g_strdup on full_name and access it
directly
2016-03-13 10:33:51 +01:00
Robert Fewell b714df4c8c Change some functions to reduce code duplication
and move feature setting to where KVP is actually
set
2016-03-13 10:33:50 +01:00
Robert Fewell 80e20256ad Add feature flag to prevent versions older than 2.6.12 from opening the data file. 2016-03-13 10:33:49 +01:00
Robert Fewell 213db2de52 Use GncImapInfo instead of struct imap_info where
it makes sense to.
2016-03-13 10:33:47 +01:00
Robert Fewell 427d62e805 Change when an existing entry exists we add it to
the converted entry
2016-03-13 10:33:45 +01:00
Robert Fewell f8090fa78e Improve old separator recognition by looking for
the longest top level entry that matches the
prefix. Also test for valid map account so we are
not wasting time trying to convert a valid
full_name.
2016-03-13 10:33:43 +01:00
Robert Fewell 4e2e45e871 Modify gnc_account_imap_convert_bayes to run only
once by setting a KVP Book entry and then testing
2016-03-13 10:33:42 +01:00
Robert Fewell cc132ce947 Add Bayesian conversion to end of file open 2016-03-13 10:33:40 +01:00
Robert Fewell c709d50246 Check for existing guid entries and update 2016-03-13 10:33:38 +01:00
Robert Fewell dae07facf0 Create function to change Bayesian entries based
on full account name to that of the account guid
2016-03-13 10:33:36 +01:00
Robert Fewell 57a0b46b41 Modify Imap helper function to find map account by
guid
2016-03-13 10:33:35 +01:00
Robert Fewell 82585bd8c4 Rename account_name to account_guid to reflect
change of use and remove newlines from PINFO lines
2016-03-13 10:33:33 +01:00
Robert Fewell fd23354528 Change Bayes functions to use guid account string
instead of full account name in kvp path
2016-03-13 10:33:31 +01:00
Robert Fewell 7003a56171 Make gnucash 2.7+ rerun bayesian data conversion whenever needed
Whenever recent 2.6.x versions of gnucash store bayesian data
in the old format (full account name based), gnucash 2.7+
should perform a conversion the the new format (guid based)
on subsequent opening of the file.
2016-03-10 12:13:13 +01:00
Robert Fewell 1806515122 Allow matching accounts to be found also by their GUID
which will be used in newer versions. The
default behaviour is still to create new entries
under the account fullname.
2016-03-10 12:12:32 +01:00
Robert Fewell 712d340bf4 Introduce GUID_BAYES feature flag
This will be set by future versions of gnucash (2.7+) when
they save bayesian data using GUID's instead of full
account names. The flag will prevent older versions
(2.6.11 and older) from opening data files with such data.
2016-03-10 12:12:30 +01:00
Robert Fewell a8c8debb0a New functions to simplify delete and filter parts 2016-01-11 12:23:23 -08:00
Robert Fewell a90b10b15e Add Filter option to tree store 2016-01-11 12:23:23 -08:00
Robert Fewell f17f047a68 Change list store into a tree store 2016-01-11 12:23:23 -08:00
Robert Fewell 1bb8778989 Some more name changes 2016-01-11 12:23:22 -08:00
Robert Fewell 43e122ca9c Rename some functions and structures based on imap 2016-01-11 12:23:22 -08:00
Robert Fewell 8a536d4152 Rename probability to count. 2016-01-11 12:23:22 -08:00
Robert Fewell 83f2a35e77 Rename files and functions based on bayes to imap 2016-01-11 12:23:22 -08:00
Robert Fewell 87dc25d65c Use Glib G_GINT64_FORMAT to specify correct format
string for gint64 values.
2016-01-11 12:23:22 -08:00
Robert Fewell 035bc761aa Moved all KVP handling to Account.c, Added two
main functions that return a Glist of kvp_info
for Bayesian and Non Bayesian entries. Also added
a get and delete function based on kvp path.
2016-01-11 12:21:30 -08:00
Robert Fewell 82013f73a3 Reduce code duplication for non Bayesian
information.
2016-01-11 12:21:30 -08:00
Robert Fewell 9c9dff4f84 Cosmetic changes. 2016-01-11 12:21:30 -08:00
Robert Fewell 1cfd8e7980 Add the remove option. 2016-01-11 12:21:29 -08:00
Robert Fewell 54290cd5f4 Hide the probability column where appropriate. 2016-01-11 12:21:29 -08:00
Robert Fewell 96edb94f67 Get Bayesian values, needed to change Qof function
as values are stored under FRAME,FRAME,VALUE so
changed to test for a FRAME and returns NULL.
2016-01-11 12:21:29 -08:00
Robert Fewell 837e068392 Get Non Bayesian and Online ID information 2016-01-11 12:21:29 -08:00
Robert Fewell 2e4c957d00 Add Basic framework for Bayesian editor dialog 2016-01-11 12:21:29 -08:00