136 Commits

Author SHA1 Message Date
Tim G L Lyons
9f29350da4 Fix bug that wasn't taking account of the fact that event references in Person and Family have attributes which themselves can have Citations.
* In Person, add event_ref_list to get_citation_child_list (therefore it is no longer needed in get_handle_referents)
* Similarly in Family, add event_ref_list to get_citation_child_list
* Enhance upgrade to add upgrade of event_ref_list for person and family
* Add has_citation_reference, replace_citation_references and remove_citation_references to EventRef
* Change name of remove_citation_refs to remove_citation_references to be consistent with has_citation_reference (singular) and replace_citation_references

Fix editcitation because it was displaying the wrong privacy button for sources.
Also remove FIXME for editcitation for db signal connect, because comment explains why it is not needed.


svn: r18469
2011-11-20 17:42:04 +00:00
Tim G L Lyons
7ebf8de20a Implement drag and drop for citations
svn: r18438
2011-11-12 22:34:18 +00:00
Tim G L Lyons
f8f510d5f1 Delete remove_source_references and replace_source_references as they are no longer needed.
Rename remove_citation to remove_citation_refs and make it apply to a citation_handle_list.
Updated tool/Check.py to change check_source_references into check_citation_references


svn: r18433
2011-11-11 17:12:43 +00:00
Tim G L Lyons
3adb1b7ffa Merged trunk r17888 through r18397 into geps023.
Conflicts resolved in:
    /data/grampsxml.dtd
    /data/grampsxml.rng
    /src/Filters/Rules/Repository/_MatchesNameSubstringOf.py
    /src/plugins/import/ImportXml.py
(Various property conflicts also resolved)

svn: r18405
2011-11-05 19:07:58 +00:00
Tim G L Lyons
4169661302 Update uses of get_source_referents to handle citations:
* implement new Utils get_source_and_citation_referents
* Update sourceview.py and citationtreeview.py to use it
* Fix editsource.py, where deletion of a source object was not properly dealing with all possible citations
* Update mediaobj.py which still had a remnant of a source_list
* fix _HasTextMatchingSubstringOf filter to deal with text in both sources and citations

svn: r18394
2011-11-01 11:10:18 +00:00
Nick Hall
594bc9257f 5321: Tidy up code for the children tab in the family editor
svn: r18372
2011-10-25 21:31:32 +00:00
Jérôme Rapinat
effbde51a8 5310 5314: missing tags and date fields
svn: r18367
2011-10-24 10:26:09 +00:00
Paul Franklin
ba60ec4c07 missing or malformed SVN "Id" line
svn: r18361
2011-10-23 03:13:50 +00:00
Doug Blank
fd04480052 5266: Christening dates displayed as Birth dates in Family editor
svn: r18349
2011-10-18 21:10:35 +00:00
Jérôme Rapinat
dcf5fe856f 3145: improve image subsection, bug with filtered objects (patch by Robert Cheramy)
svn: r18341
2011-10-17 14:20:53 +00:00
Paul Franklin
331c135235 5128: Python files with no SVN "Id" property (& added MIME text/plain if none)
svn: r18338
2011-10-16 20:21:22 +00:00
John Ralls
59e8941495 Fix typo in src/gui/editors/displaytabs/Makefile.am
svn: r18240
2011-10-02 21:26:06 +00:00
Jérôme Rapinat
9ec57d9bec 3145: Improve image subsection selection; patch for gtk < 2.22 (by Robert Cheramy)
svn: r18239
2011-10-02 08:06:40 +00:00
Jérôme Rapinat
af1f95dbd7 3145: Improve image subsection selection (contribution by Robert Cheramy)
svn: r18212
2011-09-27 06:28:27 +00:00
Tim G L Lyons
a906c98439 Clean-up Sources and Citations views:
* Add icon for citations view
* disable old sourceview
* change citationtreeview to be Sources navigation view
* citationlistview is now the Citations view
* merge libcitationview into citationlistview and citationtreeview, and corrected and rationalised
* remove libcitationview
* corrected initialisation of source_handle in Citation.py
* fixes for preventing same source being edited twice
    - fixed blockedtext in citationembededlist
    - override build_window_key in editcitation.py

svn: r18211
2011-09-26 19:53:18 +00:00
Nick Hall
6004f5ee22 5112: Fix error when moving empty surname row
svn: r18102
2011-09-02 20:10:13 +00:00
Tim G L Lyons
bb854ec772 Modifications as suggested by Nick Hall:
* Remove inheritance of Citation from RefBase, using source_handle filed instead (similar to  the way Family objects store mother and father handles) (also use the set_ and get_reference_handle functions more consistently)
* Use get_citation_list instead of get_citation_references (more consistent with the way notes are handled)

svn: r18100
2011-09-02 10:40:53 +00:00
Tim G L Lyons
29cc4ee6e9 * various updates to CitationView, CitationEmbedView and CitationEditor to take account of Rev 17973 for two different object types in selectors
* updates to citationviews to support all the functionality (add source etc.) provided by sourceview (including different tooltips for tree view and list view)
* moved registration of citationtreeview into view.grp.py
* removed citationtreeview.grp.py module
* fixed update to citation when note is deleted
* fixed update to citation when media object is deleted
* re-enabled edit button in sourcebackreflist
* improved date display in mergecitation
* changed default note type for citation notes
* changed backref in citation editor to CitationBackRefList
* fixed removal of citation handles from the list in primary objects when a citation is deleted
* fixes for pylint

svn: r18095
2011-09-01 18:13:42 +00:00
Tim G L Lyons
5a3cef062c * Implemented merge Citation
* Updated merge Sources
* Implemented undo-redo for citations (revision 18069 had only added citations to the undo-redo list, not acted on that types of element)
* Fixed embedded lists for some of the object type editors that were done in Rev 18069
* Modified EditCitation so the source parameter is optional
* Added svn properties for all /src/Merge/merge*.py modules
* Added support for EditCitation from backreflist.py

svn: r18085
2011-08-30 10:40:30 +00:00
Michiel Nauta
319db30436 5151: Latin American surname guessing fails
svn: r18083
2011-08-29 19:06:20 +00:00
Tim G L Lyons
d3dcbb1c12 Implemented database upgrade for all eligible remaining object types.
Added Citations to undo-redo feature.
Moved Citation view within navigation pane to below Sources.
Removed useless edit button from sourcebackreflist.
Fixed default bottombar gramplets for citations. 

svn: r18069
2011-08-26 23:18:11 +00:00
Tim G L Lyons
165625715d Various enhancements:
* Modified Event object to include references to Citations
* Implemented database upgrade for Events (upgrade for Media had already been done)
* Enhanced database upgrade to do backlinks
* Modified Media object to remove sourceref
* Implemented citations bottombar gramplet
* Some minor fixes and improvements

svn: r18054
2011-08-23 16:54:03 +00:00
Nick Hall
e26c5325e0 New citation editor
svn: r17983
2011-08-01 22:49:19 +00:00
Tim G L Lyons
f9df3503b2 Added svn properties and improved some code layout (mainly long lines).
svn: r17977
2011-07-29 10:31:41 +00:00
Nick Hall
6df8226f11 Add width and height configuration settings
svn: r17961
2011-07-24 23:38:49 +00:00
Tim G L Lyons
9ff46d9eab Initial prototype.
* Changed database to introduce Citations
* Introduced new Citation Primary object and CitationBase (equivalent to CitationRef) child object
* Implemented CitationTreeModel and CitationListModel
* Implemented CitationTreeView and CitationListView for new citation views in the navigator
* Implemented EditCitation which is used both for the citation views in the navigator and for the citations of an object
* Implemented the CitationEmbedList to display the citations of an object
* Modified the bottom bar gramplets to support citations
* Implemented the citation selector.
* Modified Media object to include references to Citations
* Initial work on deleting citations


svn: r17960
2011-07-24 18:30:28 +00:00
Nick Hall
f34d60ad9d 5055: Issue warning when attempting to edit media reference when media object is already being edited
svn: r17873
2011-06-30 20:41:15 +00:00
Gary Burton
ae30ba66ad Improve alignment of gallery objects and their text labels
svn: r17721
2011-06-08 19:51:58 +00:00
Nick Hall
da70c79983 4881: Use the thumbnailer to display the image
svn: r17381
2011-05-02 18:51:33 +00:00
Nick Hall
03a93790c0 4880: Ensure image rectangle is updated when editing a media reference from the gallery
svn: r17378
2011-05-02 18:42:51 +00:00
Michiel Nauta
0e40cc3fee 4047: Cannot modify a mother on a family editor without father
svn: r17219
2011-04-23 08:53:25 +00:00
Nick Hall
50486bb909 3649: Relative media paths used when creating new media objetcs by drag-and-drop
svn: r17087
2011-04-09 16:25:35 +00:00
Vassilii Khachaturov
4a03503c98 4796: 'Primary' string needs l10n context
CR: Benny
* Created two strings with l10n context instead of the old one,
'Role|Primary' and 'Name|Primary'.
* While testing, GUI started showing the context when not localized, fixed
that with appropriate sgettext instead of gettext in surnametab.py.
* While at it, changed also changed 'Family' in the Role context to 'Role|Family'.
* ru.po: major translations in the area of name and name formats.
The new Primary[...] and Patronymic[...] concept along with Notpatronymic
still don't fit well when translated :-(



svn: r16986
2011-03-30 14:43:34 +00:00
Michiel Nauta
47a64d2864 4794: Error adding new repository via source dialog
svn: r16973
2011-03-29 17:42:05 +00:00
Vassilii Khachaturov
db634e8a19 minor docstring update
svn: r16781
2011-03-08 06:44:35 +00:00
Michiel Nauta
a7906886af undo revision 16673
svn: r16742
2011-03-02 11:31:57 +00:00
Benny Malengier
752d594571 4198: Person view does not remove a row correctly when two people are merged.
This patch improves on the context changes:
 * avoid use of transaction_xx methods
 * force an abort in case of unclean transaction

Backward compatibility is broken to achieve this.


svn: r16680
2011-02-20 10:52:06 +00:00
Michiel Nauta
756bd836a0 4657: The "sort as" name is ignored
svn: r16673
2011-02-19 14:06:21 +00:00
Michiel Nauta
1231b1cac8 4590: Error on access of LDS editor when sealed to family has been removed.
svn: r16592
2011-02-09 16:03:52 +00:00
Jérôme Rapinat
c67d02847b 4326: typos (by PaulFranklin); part I
svn: r16543
2011-02-02 18:33:16 +00:00
Benny Malengier
6d596ad987 4198: Person view does not remove a row correctly when two people are merged.
This is a major patch by Michael Nauta. It means all writes happen immediately to bsddb, and the bsddb 
rollback is used on a crash. Transaction is no longer used to store changes and do them on commit.
Undo database is set on end. 
At the same time with statement is used throughout for transactions
At the same time, the original bug in merge code should be fixed
Still some issues, that will be ironed out


svn: r16523
2011-01-31 21:54:58 +00:00
Gary Burton
375b843abb Make create_buttons method protected rather than private because it is overridden by BackRefList class. Bug #4576
svn: r16506
2011-01-30 16:43:36 +00:00
Gerald Britton
cc5b37c8bc Remove unneeded line continuations and tidy up
svn: r16481
2011-01-26 20:10:22 +00:00
Serge Noiraud
bfa5309cd7 src/gui/editors/displaytabs/Makefile.am : typo : MOSTLYcLEANFILES instead of MOSTLYCLEANFILES
svn: r16480
2011-01-26 19:45:55 +00:00
Gary Burton
4136785746 Remove the need to explicitly call _set_size(). This was due to the multisurname tab size request and reference occurring in _local_init causing the window height to be sized to accomodate the tab. Moving this code to _post_init allows the window to size correctly accordinging to the height settings stored in gramps.ini
svn: r16470
2011-01-25 17:56:40 +00:00
Benny Malengier
c2e353a72b 4383: Error while attempt to edit family
2521: Problem with erroneous birth date in using the family editor.
We show validation error on date > next year, and don't crash on large year anymore



svn: r16468
2011-01-25 12:45:49 +00:00
Benny Malengier
18bb7615c3 same as previous commit, allow bsddb3 use
svn: r16447
2011-01-23 21:27:34 +00:00
Benny Malengier
92f3ec3dfe Make sure surnames are saved in a way that makes sense:
* no empty surnames if more than one
 * one primary surname
Clean up whitespace


svn: r16444
2011-01-22 19:55:59 +00:00
Benny Malengier
a877138bcb Mult surname interface changes:
* buttons on line of label
 * configurable height surname table


svn: r16435
2011-01-22 15:07:29 +00:00
Doug Blank
938498cb37 Added workaround to allow EditPerson window to be smaller than 500 px
svn: r16206
2010-11-18 12:38:38 +00:00