Commit Graph
100 Commits
Author SHA1 Message Date
Paul Culley 2974f82aad bug 9445; fix XML export of notes so lead/trail spaces are preserved (#379) 2017-05-05 15:29:15 +10:00
Paul Culley db8b95cf2d bug 9564; fix exception on Event filter editor (#377)
for 'Events occurring on a particular day of the week' filter
2017-04-30 12:27:48 +10:00
Paul Culley fd4795e957 bug 8128; Fix 'print...' dialogs for missing transient parent (#372)
Requires adding uistate to the docgen basedoc and all files that
override the init
2017-04-15 11:22:54 +10:00
prculley 3b5fcae948 bug 9998 partial fix for Note editor Toolbar overflow icons missing
Bug Affects Windows only.
Adds text labels to icons which will only appear in the overflow
dropdown menu when dialog is too narrow.  Icons still don't show
due to Gtk bug on Windows, but at least user sees the text labels.
2017-03-31 12:23:23 -05:00
prculley 916232a6ef Bug 8128; for color chooser dialogs; fixed transient parent
for styledtexteditor and Family Lines Graph, Family Colors option
2017-03-31 11:53:10 -05:00
prculley b865556ddd Fix Merge test for complex families 2017-03-02 14:37:51 -06:00
prculley 97bf1cb406 Bug 9973; fix remove unused objects tool to use place name not title
original 'title' field is often blank now...
2017-03-02 18:54:48 +00:00
prculley 3901e7dd4c Fix unodoableentry for international characters
Gtk has some parameters in bytes, some in characters; they cannot
be combined.
2017-02-28 23:11:04 +00:00
prculley 9116148587 Fix addon manager to reload updated plugins so they are recognized 2017-02-28 08:37:14 -06:00
prculley 5b51f3dcc9 Fix Addon manager to recognize newly installed addons immediately 2017-02-28 08:37:14 -06:00
prculley 28850728af Fix ToolComboEntry for Gtk method not supported on older Gtk 2017-02-25 08:41:01 -06:00
prculley a948feb60e bug 9920; fix for multiline Titles in Source view
Source view is set up for single line rows, multi-line Titles
cause problems for Gtk (sometimes many unrelated rows get doubled
in height).
2017-02-21 11:41:40 -06:00
prculley 4226bc9d45 Fix Gedcom import for improper creation of error message note
The improper note could overwrite another note, due to overlapping
GIDs.
2017-02-21 09:13:16 -06:00
prculley 5fe0a4df46 bug 9954; fix Gedcom import for empty FAMC line 2017-02-20 16:13:10 -06:00
prculley a50675f7ac Fix Gtk deprecations 2017-02-11 07:54:21 -06:00
prculley 064ec90db0 Fix Glade file loading to avoid loading and leaving extra toplevels
Also deals with problems caused by fix; sometimes do need to load
some other toplevel objects.
In some cases, it was easier to remove unused toplevel objects from
glade files.
2017-02-09 16:06:23 -06:00
prculley 0c9953bb1a Fix import gedcom glade file to remove unused toplevel object 2017-02-09 16:06:19 -06:00
prculley 2da74564a3 fix owner editor to properly destroy glade object 2017-02-09 16:06:18 -06:00
prculley 0307c10244 Fix reports papermenu to properly destroy glade objects 2017-02-08 16:23:15 -06:00
prculley ef647b0680 Remove unused glade files 2017-02-08 16:23:14 -06:00
prculley f034a2b8c7 Fix dbman so RCS checkin window has correct transient parent 2017-02-08 14:58:16 -06:00
prculley 8f86906e8a Fix POTFILES.in for removed dummydb.gpr.py 2017-02-08 12:06:28 -06:00
prculley 71cc974639 pylint on patchnames 2017-02-07 18:20:42 -06:00
prculley e8c6ad2542 Fix 'Extract Info from names' tool; unclosed window, bad parent
Gtk deprecation warnings, and add window size/position config.
2017-02-07 18:20:40 -06:00
prculley 40176eeaaf bug 9934; fix error when 'Manage Family Tree' is closed via ESC
or the dialog close 'x' in top left
2017-02-07 11:23:23 -06:00
prculley 076d75eba4 Add progress indication to long running reports 2017-02-03 18:05:08 -06:00
prculley 705ae9075d Fix TreeBaseModel so that filters have correct transient parent 2017-02-03 18:04:17 -06:00
prculley 79888ec6ea Add progress indication for filters with long 'prepare' times
And fix DeepRelationshipPathBetween for more accurate progress
And fix IsSiblingOfFilterMatch for HandleError
2017-02-03 18:00:18 -06:00
prculley ae960f79d4 bug 9927; fix UndoableEntry for pygobject bug
This is a workaround for
https://bugzilla.gnome.org/show_bug.cgi?id=644927
What is happening, is that our UndoableEntry class is connecting
to the 'insert-text' event, which uses one of the 'in-out'
parameters for the position of the cursor in the buffer. The very
fact of the connect to the event causes the issue, not something
Gramps is doing wrong.
2017-02-02 14:33:48 -06:00
prculley 5ca82248d3 Add tests for new Person HasSoundexName, and old HasNameOf rules 2017-02-02 10:16:59 -06:00
prculley ec6343e00c A new Soundex filter for matching 'name' with people using Soundex 2017-02-02 10:16:57 -06:00
prculley 267a762262 Fix CSV export options for new parameters 2017-01-28 10:49:49 -06:00
prculley a879144cc7 Add Progen import test files 2017-01-25 17:35:52 -06:00
prculley 86263712a9 Fix Progen import for several issues
- Files not closed
- Note text set to 'list' instead of 'str' types
- Address structure elements set to 'None' instead of ''
- Long text strings losing characters and getting corrupted
2017-01-25 17:35:50 -06:00
prculley d3279c1382 Fix Progen import to use 'Status Bar' progress indicator 2017-01-25 17:35:47 -06:00
prculley 42f2ac04e9 Fix test utility; more console output and make user directories
Console output sows even if an exception occurs
Make user directories if not present
2017-01-25 13:57:53 -06:00
prculley cde65a53a6 Improve Addon management performance 2017-01-25 13:57:52 -06:00
Paul Culley 8739412351 Merge branch 'master' into exportgedcom 2017-01-24 07:57:01 -06:00
prculley 3ac49dcb2c bug 9886; fix citation tree view quick report right click
Another HandleError issue;  Also, the Quick report that started was
actually the wrong one, due to a typo in the quickview.gpr.py.

I also rediscovered the bug 6352; and its relationship to quickreports.
2017-01-18 09:47:33 -06:00
prculley 1b01e9d74e Fix Check&Repair 'Cross table duplicates' Progress parent 2017-01-17 12:14:11 -06:00
prculley ffdef3276c bug 9898: fix Merge Place has wrong label 2017-01-17 11:27:42 -06:00
prculley efcdcd7434 Fix ManagedWindow _present method name (incorrectly named __present) 2017-01-17 10:59:15 -06:00
prculley e7e1976222 Add set_text method to updatecallback to allow progress text changes 2017-01-17 10:33:55 -06:00
prculley 8fa6fad67a Fix Gedcom export to have a more detailed progress indication 2017-01-17 10:31:23 -06:00
prculley a937d151af fix export assistant to show textual progress steps and first step 2017-01-17 08:51:29 -06:00
prculley a860a9d80b Fix export assistant, proper parent for popup progress and dialog 2017-01-17 08:49:21 -06:00
prculley 99b7fc8815 Fix updatecallback to show first progress step 2017-01-17 08:42:22 -06:00
prculley 04b7888817 change __rebuild_search to use status bar progress 2017-01-16 23:21:05 +00:00
prculley 2574202a46 add uistate to models 2017-01-16 23:21:05 +00:00
prculley e24faddabb bug 9876; fix for two progress bars occupy the same space
Moves the popup progress on tree views with filters to the main
window status bar.
2017-01-16 23:21:04 +00:00
prculley 52846b8e68 bug 9877; fix performace with people tree view and some filters
When using deep relationship filters on the person tree view with a
large tree, the tree redraw can take a long time (hours).  The
DeepRelationshipPathBetween 'prepare' method was getting called for
every person in the preceding filter. And that it also ran through
every person in the db within the prepare method.  Resulting in time
as a square function of number of people.

Change view code so that 'prepare' method is called once, and 'apply'
method is called once with list of handles to scan, rather than both
called once per handle.
2017-01-16 23:14:05 +00:00
prculley 659329c879 Fixes ManagedWindow for a modal window with another modal elsewhere
During Gramps startup, it is possible to start two modal dialogs;
the 'Family Trees' and the 'Update Addons' (when preferences is set
to check on startup).  Both are modal.
This upgrades the Window manager and ManagedWindow to support this
case.  If this occurs, then the most recent modal window is left
that way, a previous modal window is temporarily downgraded to
non-modal, and the newest window is set 'transient' for the previous
modal window, even if it was not the parent.
This means that there can be only one modal window, and it is always
on top and active.
2017-01-16 15:12:33 +00:00
prculley 56fa449de8 upgrade Update Addons to ManagedWindow
This change was initiated to correct status bar and popup dialogs
that were coming up in the wrong place under Windows.
Upgrade to Managedwindow allows for size/position config, correct
popup of subordinate dialogs, and better window management in
relation to other dialogs.
The Glade change allows the transient parent function to work.
Note that UpdateAddons remains a modal dialog.
2017-01-16 15:12:33 +00:00
prculley 8f494a683f Remove unused ManagedWindow modal_call method
This was used only once in AddMedia, which has been upgraded to use
the ManagedWindow "modal=" parameter on init instead.
2017-01-12 10:57:57 -06:00
prculley 8f79b0adbb Fix AddMedia to use updated ManagedWindow modal parameter
This was the only Gramps code to use the old ManagedWindow
modal_call method.
2017-01-12 10:54:52 -06:00
prculley 3b049b5da1 bug 9854; fix Merge Family; Error dialog hidden behind Merge Dialog
While performing a Merge Family that results in an error, the Error
dialog appears as normally initially.

However, if the user switches to another application and back, the
Error dialog can disappear (it is under the Merge dialog in the UI).
The mouse cannot clear this up (although the keyboard 'enter' or
'Esc' keys will be directed to the Error dialog and close everything.
2017-01-10 20:21:38 +00:00
prculley f46350d595 bug 8128; fix progress meters for transient parent 2017-01-10 15:22:46 +00:00
prculley 813361179f bug 9875; fix up export dialog to show progress bar
Originally the progress bar and associated text was shown on the
summary page, but it was never seen since it was shown during the
Gtk assistant 'prepare' stage, before the page was shown.
2017-01-09 21:41:54 +00:00
prculley 1a6db46ffa bug9873; fix Check & Repair for dbapi 2017-01-09 21:35:21 +00:00
prculley ba7eff6e67 bug 8128; Fix common error/warn dialogs to deal with modal parent
Unmanaged dialogs are often called for errors, warnings, info etc.
On Windows, If called from a modal parent window, they can be a bit
confusing, since the parent window appears to still be active.  This
fix makes the parent window non-modal for the duration of the dialog,
and then returns it to its original state.
2017-01-09 20:59:38 +00:00
prculley cea4d15d7d bug 9855; fix db undo/redo operation to delay signal emission
Certain multiple commit transactions can leave the db in an inconsistent
state in between commits.  If signals are emitted at each commit, GUI
elements can see the inconsistent state and report errors.  This fix
delays the signal emission until all the commits are complete, presuming
that the db is consistent before and after the complete transaction.
2017-01-09 20:38:32 +00:00
prculley b7155b47ed Fix the debug module (profiling code) for current python libraries 2017-01-05 21:31:10 +00:00
prculley b06c101a8a Fix test_exports to ignore changes in Gedcom Copyright year 2017-01-01 17:24:41 +00:00
prculley 7406c6ecf4 bug 9872: fix Windows issue; Book dialogs don't stay on top
They are pushed to background if background window tooltip appears.
Also, The book list display was not popping up above the dialog
(no transient parent).
2016-12-31 14:31:13 -06:00
prculley 3bca0e8184 Add call to ManagedWindow.close() to dbman
This is an update to "bug 8128; Fix 'Info' popup from Manage Family
Trees' dialog for parent"
2016-12-31 14:29:55 +00:00
prculley f92903b1f7 bug 9854; Error dialog can become hidden behind merge dialog 2016-12-29 19:35:45 +00:00
prculley 34d6ddada0 Bug 7928; Make merging people with complex families more friendly
If families are complex, skip the family merge with a warning message
rather than abort the persons merge
2016-12-29 19:35:27 +00:00
prculley a09d5471cf bug 8128; Fix 'Info' popup from Manage Family Trees' dialog for parent 2016-12-29 19:06:48 +00:00
prculley 01b7490c8c bug 8128; Fix transient parent for popup 'Gramps Warnings' 2016-12-28 09:06:37 -06:00
prculley 1590f8c000 bug 9856; fix popup ProgressMonitor to find a parent for set_transient_for 2016-12-27 10:36:20 -06:00
prculley 1a09304335 bug 9856; fix selected person not updated if changed in people list view 2016-12-26 08:18:32 -06:00
prculley cf839a195b Fix dialogs for Gtk deprecations 2016-12-24 09:02:57 -06:00
prculley 4498ee32df Fix some Gtk deprecations in Plugin Manager 2016-12-24 09:02:57 -06:00
prculley f25fb1415b Fix the Gobject deprecation (convert to GLib) in interactivesearchbox 2016-12-24 09:02:57 -06:00
prculley dd151a3990 fix some Gtk deprecations in textbufdoc (used by QuickReports etc.) 2016-12-24 09:02:57 -06:00
prculley defcda7981 bug 9235: Shrink size of Break Lock (and other QuestionDialogs) 2016-12-22 19:46:04 +00:00
prculley 2359633198 bug 8333; fix merge issue with Person Tree View 2016-12-22 18:34:17 +00:00
prculley b71b4e9c7f bug 9844; fix QuickReports for Cairo crash when no objects found 2016-12-20 19:36:49 +00:00
prculley 55edefd4b8 bug 9842; fix lineage quickreport when started from person with no parent 2016-12-20 19:31:30 +00:00
prculley ce884b6578 bug 9478; fix quick search exception when nothing in searched list 2016-12-20 19:10:57 +00:00
prculley 90b8145693 bug 9831: Fix HandleError when using finddupes tool to merge 2016-12-20 17:47:53 +00:00
prculley 1e8ab3ec69 bug 9286; fix styledtext editing of LINK with URL as Visible element 2016-12-18 17:56:55 +00:00
prculley a5ed1086d8 bug 9285; fix detection of URLs in Styled text editor 2016-12-18 17:42:04 +00:00
prculley 9bf5144e70 bug 9470; Don't allow selecton of Active or Home person until actually commited 2016-12-17 17:03:57 -06:00
prculley 9c92bb8551 bug 8510 fix for special characters in Family Tree names 2016-12-17 19:30:44 +00:00
Paul Culley e584704e7b Update Merge tests to actually run
So this was a lot of work...

Updated to use lxml, steep learning curve for someone who never examined XML before...

The merge test code needed some updates because it was last used with an older version of the Gramps XML.

Found another bug in the mergefamilyquery code when test started running; another nonetype issue.

Found another bug in the mergepersonquery code when test started running; another nonetype issue.

Couldn't get the subprocess stuff to work right, so changed code to just call Gramps with capture, similar to export_tests. This in turn required that importxml and exportxml be slightly changed to support StringIO redirection of stdin and stdout.

And test_util needed a change to allow stdout to accept an unencoded stream, so I added an option to use BytesIO for this test as well.

Added some code to save input, result, and expected data to files in Gramps temp directory for debugging whenever an error occurred. Easier to use my editor in diff mode than look at the outputs.
2016-12-06 11:17:54 +11:00
Paul Culley 983d787322 Change travis.yml to provide lxml dependencies 2016-12-06 11:00:45 +11:00
prculley 72bcfc5cd6 bugs 9768 and 9778, nonetype error when merging events or families 2016-12-01 11:24:24 -06:00
prculley e94696ecf0 bug 9811; Relative media path incorrectly calculated for Windows 2016-12-01 10:40:06 -06:00
prculley 3fe7d20799 Fix trailing whitespace again 2016-11-17 10:28:40 -06:00
prculley 894ce3aca5 Fix trailing whitespace and remove old code comment 2016-11-16 10:26:02 -06:00
prculley 5ff0b3f977 Fix translation confusion on 'View' noun/verb 2016-11-15 09:38:39 -06:00
prculley 15ca5e6d4c remove excess space in front of right-click menus in embedded lists 2016-11-14 09:12:11 -06:00
prculley bd142c0744 bug 9787; fix right-click menus crash caused by PR268 2016-11-14 08:46:38 -06:00
prculley def6b3fd07 #---- lines back to normal 2016-11-11 18:19:08 -06:00
prculley d4cb0c3d7c pylint cleanup 2016-11-11 18:19:08 -06:00
prculley 5f794c0570 update db/base.py with better docstring, new methods etc. 2016-11-11 18:19:08 -06:00
prculley 4120c5a1bc fix name_displayer.add_name_format so it won't create duplicates 2016-11-09 13:42:12 -06:00
prculley 00aa25258e bug 9771; Remove icons from various right-click and other menus 2016-11-08 09:43:36 -06:00
prculley 4e80f42425 Remove Icon setup, since this is covered in glade file via another commit 2016-11-02 11:29:13 -05:00