379 Commits

Author SHA1 Message Date
Alex Roitman
374e117c17 Merge changes done in the TOOL_OPT branch as follows:
* src/Tool.py: Add to CVS: Generic tool interface.
* src/ArgHandler.py: Support command line mode for tools.
* src/PluginMgr.py: New tool registration scheme.
* src/Plugins.py: Convert to tool registration scheme.
* src/const.py.in: Add tool categories.
* src/plugins/ChangeTypes.py: Convert to new scheme.
* src/Options.py: Add to CVS: generic options interface.
* src/ReportOptions.py: Keep only report-specific option
handling.
* src/Makefile.am: Ship new files.

* src/plugins/Checkpoint.py: Minor improvements for the RCS.
* src/plugins/Makefile.am: Ship Checkpoint.py.


svn: r5220
2005-09-23 21:41:23 +00:00
Don Allingham
a1d64c63a7 * src/PeopleView.py: replace unique string with one already translated
* src/gramps_main.py: replace unique string with one already translated
* src/plugins/Ancestors.py: replace unique string with one already translated
* src/plugins/Eval.py: replace unique string with one already translated
* src/plugins/WriteCD.py: replace unique string with one already translated
* src/po/check_po: produce a sorted list of used text strings,
split strings better


svn: r5165
2005-09-01 22:24:39 +00:00
Don Allingham
8ceaac3136 * src/PedView.py: force an update of the cached person
* src/gramps_main.py: force an update of the cached person
objects; thxumbnails are always png images


svn: r5157
2005-08-31 18:50:35 +00:00
Martin Hawlisch
59162682c0 * src/SelectChild.py (on_save_child_clicke): Dont add the same person multiple times as child
* src/gramps_main.py (delete_person_response): Purge empty family after the last child of a single-spouse family was deleted.


svn: r5125
2005-08-25 21:05:44 +00:00
Alex Roitman
5eb6e7c97e * src/gramps_main.py (undo): Rebuild bookmarks menu on undo.
* src/plugins/ChangeNames.py: Add ProgressMeter.
* src/plugins/ChangeTypes.;y: Add ProgressMeter.
* src/plugins/Check.py: Mark translatable string.
* src/plugins/EventCmp.py: Add ProgressMeter.
* src/plugins/PatchNames.py: Add ProgressMeter.


svn: r5010
2005-08-03 22:17:10 +00:00
Alex Roitman
3816790b4f * src/Bookmarks.py: Convert from CList to ListModel and TreeView;
Remove Cancel and OK buttons, Add Close button; make all changes
immediate conforming to the HIG; (remove_people): Add method for
removing people outside bookmark editor (useful for connecting to
signals).
* src/gramps_main.py (on_remove_bookmark): Add handler for
removing deleted people; (__init__): Connect new handler to the
'person-delete' signal.


svn: r5007
2005-08-03 02:53:52 +00:00
Martin Hawlisch
a53db06f26 * src/gramps_main.py: Disable "add bookmark" menu entry on readonly database and only enable it in person/family/pedigree view.
svn: r5001
2005-08-02 14:37:10 +00:00
Martin Hawlisch
53fb61125b * src/gramps_main.py: Use gobject.timeout_add instead of gtk.
svn: r4994
2005-08-01 19:46:11 +00:00
Don Allingham
2335612283 NameDisplay enhancements
svn: r4969
2005-07-26 23:02:53 +00:00
Alex Roitman
cc38e20f1d * src/GenericFilter.py: Proper test for place in event-based
filters; (Rule.set_list): Add assertion to have the correct number
of arguments; (various): stop testing for number of arguments.
* src/AddSpouse.py (LikelyFilter): Add labels to the filter.
* src/ChooseParents.py (LikelyFilter): Add labels to the filter.
* src/SelectiChild.py (LikelyFilter): Add labesl to the filter.
* src/gramps_main.py (init_filters): Instantiate filters with
corrent number of arguments.


svn: r4925
2005-07-13 19:04:29 +00:00
Martin Hawlisch
d45d5a0afe * src/gramps_main.py: Add new filters
svn: r4904
2005-07-05 21:21:01 +00:00
Martin Hawlisch
3b925c2653 * src/gramps_main.py (on_merge_activate,on_fast_merge_activate): only merge if exactly two persons have been selected
svn: r4833
2005-06-16 10:44:25 +00:00
Don Allingham
2e7ad59d01 * src/PeopleModel.py: Improve rebuid times by using database cursor,
caching sort names, and replacing loops with map/lamba
* src/PeopleView.py: prevent goto_active_person reentrancy, use get_selected_objects
instead of selected_foreach, combine row_changed and set_dnd_target into the same
callback, rebuild only affected surname on person-update if pissible


svn: r4750
2005-06-01 18:02:53 +00:00
Martin Hawlisch
d77174143d * src/ArgHandler.py (handle_args) Exit if opening a file failed
* src/Errors.py: New exception type "FileVersionError"
* src/GrampsDbBase.py (version_supported): New method
* src/GrampsBSDDB.py (version_supported): New method
* src/gramps_main.py (read_file) catch FileVersionError; (post_load): only load if version_supported()
* src/ReadGrdb.py (importData): only load if version_supported()


svn: r4734
2005-05-30 15:19:04 +00:00
Martin Hawlisch
01e6dedae9 * src/gramps_main.py (read_file): Optimize exception handling of load_database errors.
* src/ArgHandler.py (auto_save_load): Return actual status of read_file instead of always 1. This will now open the select database dialog on autoload errors.


svn: r4730
2005-05-28 19:29:29 +00:00
Martin Hawlisch
d120265624 * src/gramps_main.py (change_active_person): Dont change to the current active person again.
* src/FamilyView.py (drag_data_received): Allow reordering of childs when they were not correctly ordered before.


svn: r4725
2005-05-28 06:21:37 +00:00
Don Allingham
9273ca6886 Exit on DBError for now
svn: r4661
2005-05-23 21:25:16 +00:00
Don Allingham
1e81e32965 Catch db.DBError
svn: r4660
2005-05-23 21:08:29 +00:00
Don Allingham
59d4cfa35e Added additional BSDDB exception case
svn: r4658
2005-05-23 20:31:56 +00:00
Alex Roitman
ec654be45e * src/gramps_main.py (read_file): Remove set_resizable() calls.
* src/ReadGedcom.py (parse_person_object,parse_family_object):
Always add media references/objects, even if the files are not found
(keep the warnings); set the note for the media references.


svn: r4647
2005-05-20 21:27:03 +00:00
Alex Roitman
0927aac3b8 * src/gramps_main.py (open_example): Add example database funciton.
svn: r4625
2005-05-19 02:49:24 +00:00
Alex Roitman
f14c71c726 * src/GenericFilter.py: Change filter rule names to make them consistent.
* src/gramps_main.py: Change filter names to make them consistent.


svn: r4609
2005-05-17 22:15:32 +00:00
Martin Hawlisch
864e8bb7d4 * src/GenericFilter.py (ParamFilter.apply): Set parameter list before prepare (solves crash in full text search)
* src/gramps_main.py: Enable full text search filters again


svn: r4571
2005-05-12 15:03:17 +00:00
Don Allingham
4ae013652b * src/gramps_main.py: define progress bar callback, remove problem
filters


svn: r4545
2005-05-11 03:24:45 +00:00
Don Allingham
eafdceff00 * src/DbPrompter.py: add callback for progressbar
* src/GrampsXMLDB.py: pass callback task
* src/ReadXML.py: handle progress callback, fix placeobj error
* src/gramps_main.py: define progress bar callback


svn: r4544
2005-05-11 02:35:50 +00:00
Alex Roitman
d4dfdd4c2d * src/gramps_main.py: Use new welcome key for the welcome dialog.
svn: r4538
2005-05-10 20:04:59 +00:00
Don Allingham
023f9a37e6 * src/gramps.glade: new scrollable message dialog
* src/gramps_main.py: add new upgrading information message
* src/template.po: new translatable string


svn: r4528
2005-05-10 04:48:49 +00:00
Don Allingham
aa56da2c05 * src/WriteGedcom.py: fix adopted relationship generation
svn: r4515
2005-05-09 03:55:09 +00:00
Martin Hawlisch
48be6c8a75 * src/gramps_main.py (undo): Block signals during undo to make it MUCH faster when undoing larger imports or plugin runs
svn: r4494
2005-05-06 16:46:58 +00:00
Don Allingham
2010054577 * src/gramps_main.py: remove beta warning, handle OSError
on config open


svn: r4481
2005-05-04 03:50:44 +00:00
Martin Hawlisch
08c1a4865b * src/gramps_main.py: Disable fast merge on a readonly db
* src/plugins/Check.py: Disable on readonly db
* src/plugins/TestcaseGenerator.py: Disable on readonly db


svn: r4457
2005-05-02 21:20:08 +00:00
Martin Hawlisch
b5c63cf625 * src/gramps_main.py (__init__): Avoid TypeError in schema error message
svn: r4433
2005-04-27 18:28:45 +00:00
Don Allingham
398338bda8 update
svn: r4421
2005-04-25 02:30:28 +00:00
Alex Roitman
f530e27275 * configure.in: Add Finnish back to installed languages
* src/po/fi.po: Make translations more consistent + some fixes
* src/ReportUtils.py (died_str): Typo.
* src/plugins/DetDescendantReport.py (add_user_options): Typos.
* src/plugins/DetAncestralReport.py (add_user_options): Typos.
* src/gramps_main.py (on_home_clicked): Typo.
* src/rule.glade: Translate label.
* src/po/fi.po: Add to gramps20 branch.
* src/po/template.po: Update translation template.
* src/po/ru.po: Translation update.


svn: r4420
2005-04-24 21:01:31 +00:00
Martin Hawlisch
79af9bdb0c * src/gramps_main.py (undo): Dont emit "database-changed"
* src/plugins/plugins/TestcaseGenerator.py: Added option to generate a new transaction for every change on the database. Useful for UNDO and signal testing.


svn: r4361
2005-04-14 13:18:20 +00:00
Don Allingham
2059945bc6 * src/gramps_main.py: check for reentrancy into the undo handler
svn: r4359
2005-04-13 22:04:52 +00:00
Don Allingham
4736f4ece9 * src/ChooseParents.py: pychecker changes
* src/DdTargets.py: pychecker changes
* src/FamilyView.py: pychecker changes
* src/GrampsCfg.py: pychecker changes
* src/MergeData.py: pychecker changes
* src/MergePeople.py: pychecker changes
* src/NameEdit.py: pychecker changes
* src/NoteEdit.py: pychecker changes
* src/RelLib.py: pychecker changes
* src/gramps_main.py: pychecker changes


svn: r4327
2005-04-09 03:11:03 +00:00
Don Allingham
02171a00af * src/GrampsDbBase.py: correctly handle signals when undoing a
delete operation
* src/PeopleView.py: remove unused signal
* src/gramps_main.py: handle history mechanism with new signal scheme,
avoiding the double active-changed when selecting an element


svn: r4326
2005-04-09 00:31:39 +00:00
Martin Hawlisch
571ff74418 * src/gramps_main.py: Added "Invert" checkbox for person filter; Fix "active-changed" signals to not cause Tracebacks.
* src/gramps.glade: Added "Invert" checkbox for person filter
* src/PeopleView.py (build_tree): Pass Invert state for Filter to PeopleModel
* src/PeopleModel.py: Enable invertation of filter result


svn: r4323
2005-04-08 10:49:26 +00:00
Richard Taylor
6f25f47897 2005-04-07 Richard Taylor <rjt-gramps@thegrindstone.me.uk>
* src/gramps_main.py: correct type signature for 'active-changed' signal.
	* src/GrampsDBCallback.py: improve the error reporting.


svn: r4318
2005-04-07 08:18:43 +00:00
Don Allingham
46fe87842a * src/FamilyView.py: keep track of local person during update, connect
active-changed signal
* src/gramps_main.py: keep track of active-changed, use local person


svn: r4317
2005-04-07 02:30:07 +00:00
Don Allingham
c538477ffe * src/FamilyView.py: keep track of local person during update
* src/PedView.py: update database pointer when database changed, update
active person
* src/gramps_main.py: keep track of active-changed


svn: r4316
2005-04-07 00:51:26 +00:00
Martin Hawlisch
ad39f6be25 * src/gramps.glade: People View: Add label for filter text input field.
* src/GenericFilter.py (ProbablyAlive): Add check for input parameter, (HasSourceOf): get handle only once, removed unused code.
* src/gramps_main.py: Show label for filter input field.


svn: r4313
2005-04-06 20:26:15 +00:00
Martin Hawlisch
5b44756832 * src/gramps_main.py (post_load): Emit "database-changed" signal instead of calling change_db().
* src/PedView.py: Connect to "database-changed" signal and handle person-update signals to redraw the view.
* src/FamilyView.py (__init__) connect to database-changed signal, dont call change_cb because on initialisation there is no real database. (change_db): use database parameter supplied by signal emission.
* src/PeopleView.py (__init__) dont connect the signals, this will be done by change_db, (change_db): Use supplied database.
* src/SourceView.py (__init__): dont call change_cb because on initialisation there is no real database and this will be done by the signal.


svn: r4304
2005-04-06 09:40:41 +00:00
Don Allingham
0dbc5c0341 * src/GrampsBSDDB.py: remove transaction.batch in favor of signal suppression
* src/GrampsDbBase.py: remove transaction.batch in favor of signal suppression
* src/GrampsInMemDB.py: remove transaction.batch in favor of signal suppression
* src/ReadGedcom.py: fix relation typo, enable/disable signals around import
* src/ReadXML.py: enable/disable signals around import
* src/gramps_main.py: disable signals before undo and exit


svn: r4295
2005-04-04 23:52:46 +00:00
Don Allingham
17bbd11d07 * src/FamilyView.py: commit family properly
* src/PedView.py: change_active_person typo
* src/PeopleView.py: don't change active person with updated
* src/SelectChild.py: Fix callbacks
* src/gramps_main.py: load active family on change


svn: r4289
2005-04-04 03:59:42 +00:00
Don Allingham
8126f34ec9 * src/ArgHandler.py: Make sure all databases are closed before
creating a new one.
* src/DisplayModels.py: Calculate new nodes properly after a
node has be deleted. The node hasn't been removed from the database
yet.
* src/EditPerson.py: Add check for unknown gender before closing
* src/EditSource.py: Remove unnecessary updates
* src/GrampsBSDDB.py: check for open in close()
* src/GrampsDbBase.py: spelling error
* src/MediaView.py: connect to database-changed
* src/PedView.py: remove unused update function
* src/PeopleView.py: connect to database-changed
* src/PlaceView.py: connect to database-changed
* src/SourceView.py: connect to database-changed, remove unnecessary
callback
* src/gramps_main.py: add database-changed signal


svn: r4288
2005-04-04 01:11:50 +00:00
Don Allingham
19fe252c4c * src/AddSpouse.py: new database callback scheme. This scheme
provides a registration mechanism to signal interested objects
when database commits occur. The eliminates most of all callback
functions tied to interface windows.
* src/AddrEdit.py: new database callback scheme
* src/AttrEdit.py: new database callback scheme
* src/ChooseParents.py: new database callback scheme
* src/EditPerson.py: new database callback scheme
* src/EditPlace.py: new database callback scheme
* src/EditSource.py: new database callback scheme
* src/EventEdit.py: new database callback scheme
* src/FamilyView.py: new database callback scheme
* src/GrampsBSDDB.py: new database callback scheme
* src/GrampsDbBase.py: new database callback scheme
* src/GrampsInMemDB.py: new database callback scheme
* src/Marriage.py: new database callback scheme
* src/NameEdit.py: new database callback scheme
* src/PeopleView.py: new database callback scheme
* src/PlaceView.py: new database callback scheme
* src/ReadGedcom.py: new database callback scheme
* src/ReadXML.py: new database callback scheme
* src/SourceView.py: new database callback scheme
* src/Sources.py: new database callback scheme
* src/gramps_main.py: new database callback scheme


svn: r4267
2005-04-01 05:33:22 +00:00
Don Allingham
b2de2eaa67 * src/MergePeople.py: provide more date in compare window, fix event
merging for families. Copy alternate names.
* src/plugins/Merge.py: support for new merge technique
* src/PeopleView.py: divide rebuild_data into two functions
* src/PeopleModel.py: clean up insertion functions
* src/gramps_main.py: remove unused code


svn: r4261
2005-03-31 04:30:44 +00:00
Don Allingham
9d2dffcc9d * src/ReadXML.py: handle date object on names
* src/gramps.glade: add menu items for merging
* src/MergePeople.py: new person merge
* src/gramps_main.py: merge handling callbacks
* src/mergedata.glade: updated interface for merging

* src/SourceView.py: connect SourceView.merge into the multiple
selection mechanism


svn: r4254
2005-03-30 01:45:14 +00:00