Commit Graph

356 Commits

Author SHA1 Message Date
Martin Hawlisch
3a29a38b53 * src/gramps_main.py (column_order): add Repository View; (init_interface): Remove unneeded callback
svn: r4806
2005-06-08 15:37:44 +00:00
Alex Roitman
b67a0d0e00 * src/DisplayModels.py: Support for event view.
* src/EventEdit.py: Commit event on OK.
* src/GrampsDbBase.py: Event column order and event cursor.
* src/GrampsInMemDB.py: Event cursor.
* src/gramps.glade: Event View, rework buttons.
* src/gramps_main.py: Event View support.
* src/EventView.py: Add to CVS.
* src/Makefile.am: Ship EventView.


svn: r4797
2005-06-07 05:08:50 +00:00
Alex Roitman
9ee0f10127 Merge changes between 2.0.1 and 2.0.2 with the main trunk
svn: r4785
2005-06-05 04:01:56 +00:00
Alex Roitman
fed2cd87e6 Merge SOUR_REPO branch with main trunk
svn: r4712
2005-05-27 17:43:04 +00:00
Alex Roitman
d7ce524379 Merge from 2.0.1
svn: r4666
2005-05-24 13:08:06 +00:00
Alex Roitman
2a77676b36 Merge changes made in gramps20 into HEAD
svn: r4549
2005-05-11 14:04:47 +00:00
Don Allingham
09c961bf10 * src/gramps_main.py: fix beta warning dialog
svn: r4499
2005-05-07 02:41:08 +00:00
Martin Hawlisch
00ce9a19fa * src/gramps_main.py (__init__): Avoid TypeError in schema error message
svn: r4434
2005-04-27 18:30:57 +00:00
Alex Roitman
a7ca0ddf7f Merge changes made in gramps20 into HEAD
svn: r4431
2005-04-26 16:04:21 +00:00
Don Allingham
5c137d199c * src/AddrEdit.py: use new label scheme for tabs that uses an
icon to indicate used tabs
* src/AttrEdit.py: use new label scheme for tabs that uses an
icon to indicate used tabs
* src/NameEdit.py: use new label scheme for tabs
* src/Date.py: incorporate instance check form gramps20 branch
* src/EditPerson.py: add additional fields for name edit, handle
lds page better, adapt to new label scheme
* src/GrampsDbBase.py: fix typos
* src/GrampsGEDDB.py: fix undo handling
* src/GrampsInMemDB.py: fix undo handling
* src/GrampsXMLDB.py: fix undo handling
* src/PeopleView.py: don't reselect an already selected person
* src/Utils.py: new tab scheme
* src/edit_person.glade new tab scheme
* src/gramps_main.py: 1->True, 0->False replacements
* src/DbPrompter.py: bring up to date with gramps20 branch
* src/DisplayModels.py: bring up to date with gramps20 branch
* src/ReadGedcom.py: bring up to date with gramps20 branch
* src/Relationship.py: bring up to date with gramps20 branch


svn: r4406
2005-04-23 15:53:30 +00:00
Martin Hawlisch
915b6a4f51 * src/gramps_main.py: Removed canvas specific calls of the PedView
svn: r4380
2005-04-19 19:28:53 +00:00
Martin Hawlisch
c359826710 * 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
838ceb67bb * src/gramps_main.py: check for reentrancy into the undo handler
svn: r4359
2005-04-13 22:04:52 +00:00
Don Allingham
c987a9faff * 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
f70a65446a * 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
0b442d3721 * 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
0c112b11eb 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
d23b249b9d * 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
bda5b22484 * 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
d91a531b43 * 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
6f6f57e55d * 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
641f13da22 * 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
2f3cb14a98 * 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
0215ae6929 * 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
862ba59a2f * 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
1d6f8fba1d * 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
92d7132add * 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
Alex Roitman
c25d2162ed * src/gramps_main.py (undo_callback,redo_callback): Minor
improvements, (read_file): Always re-initialize Undo and Redo items
to insensitive blanks after new database load; (post_load): Set up
database's callbacks for Undo and Redo after load.
* src/gramps.glade: Make Redo label non-stock to allow label change.


svn: r4253
2005-03-29 19:47:59 +00:00
Alex Roitman
a1ede6bcfb * src/gramps_main.py (delete_person_response): Object/handle mixups,
remove unneeded commits.


svn: r4252
2005-03-29 16:41:40 +00:00
Alex Roitman
d49a70b3f1 * src/MergeData.py: Files for places and sources.
* src/PlaceView.py (build_context_menu): Typo.
* src/SourceView.py (__init__,build_tree): Allow multiple,
selections; (merge): Add placeholder method (borrowed from places,
needs work.
* src/gramps_main.py (on_views_switch_page): Enable merge button;
(on_merge_activate): Call merge for sources.


svn: r4244
2005-03-28 04:22:09 +00:00
Alex Roitman
fbd8c05dd8 * src/gramps_main.py (tool_callback): Typo.
* src/QuestionDialog.py: Use gramps icon.
* src/plugins/EventCmp.py: HIG; single instance; help.
* src/plugins/eventcmp.glade: HIG; help.
* src/plugins/Desbrowser.py: HIG, help, rebuild model after edit.
* src/plugins/desbrowse.glade: help, info label.
* src/plugins/PatchNames.py: HIG, help, single instance.
* src/plugins/patchnames.glade: HIG, help.
* src/plugins/Merge.py: HIG, help, single instance.
* src/plugins/merge.glade: HIG, help.
* src/plugins/ChangeNames.py: HIG, help, single instance.


svn: r4230
2005-03-24 06:22:25 +00:00
Don Allingham
cbbe978559 * src/EventEdit.py: disable OK button if event type is an empty string
* src/gramps_main.py: fix merge callback


svn: r4226
2005-03-23 22:01:22 +00:00
Don Allingham
11dd72bb27 * src/GrampsDbBase.py: handle new column
* src/PeopleModel.py: add cause of death field
* src/PeopleView.py: add cause of death field
* src/gramps.glade: add scratchpad button
* src/gramps_main.py: add scratchpad button press callback
* src/plugins/ScratchPad.py: call alternate dialog
* src/plugins/scratchpad.glade: provide alternate dialog based
on gtk.Dialog that implements the help button.


svn: r4213
2005-03-19 23:44:01 +00:00
Martin Hawlisch
4cee5528a5 * src/GrampsGconfKeys.py (get_bool,get_int,get_string): Raise exception when default value could not be get from gconf schema
* src/const.py.in: Add custom exception "ErrorSchemaInvalid"
* src/GrampsMime.py (mime_type_is_defined): New method that returns True/False
* src/gramps_main.py (__init__) Catch "ErrorSchemaInvalid" exception and check for installed MIME-type. Show error because installation is incomplete.


svn: r4200
2005-03-17 19:28:00 +00:00
Martin Hawlisch
a30cffdb9d * src/GenericFilter.py (HasTextMatchingSubstringOf): add checkboxes for case and regexp matching; (HasTextMatchingRegexpOf)
Added wrapper to use regexp matching in HasTextMatchingSubstringOf
* src/gramps_main.py: Add new regular expression filter
* src/plugins/FilterEditor.py (EditRule:__init__): Treat params of new filter as boolean.
* TODO: Add parameter definition of Filter Rules to the filter itself, so it can be removed from the filter editor and used by
PeopleView.


svn: r4193
2005-03-16 14:13:33 +00:00
Alex Roitman
337dfdd99e * src/GenericFilter.py (HasTextMatchingSubstringOf):
Rename FullTextSearch as well as its descriptions.
* src/gramps_main.py: Change string for filter menu.
* src/plugins/FilterEditor.py (EditRule.__init__): Hide window while
drawing.
* src/DateEdit.py (DateEditorDialog.__init__): Hide window while
drawing.


svn: r4186
2005-03-15 16:26:30 +00:00
Martin Hawlisch
40611a11f1 * src/GenericFilter.py (FullTextSearch): Added new filter thad provides
a full-text search thru (nearly) all attributes and linked objexts of a person.
* src/gramps_main.py: add the new filter to the menu.
* src/RelLib.py (Event,Source): fix get_text_data_child_list() to correct
attributes of the class; (Family): fix get_sourcref_child_list().


svn: r4183
2005-03-15 12:56:14 +00:00
Don Allingham
cc849000a7 * src/gramps_main.py: use new GRAMPS homepage
svn: r4180
2005-03-14 23:30:26 +00:00
Martin Hawlisch
a40629dbbc * src/GenericFilter.py (Rule,GenericFilter): New methods prepare() and
reset(), that are called before/after a filter is applied, to properly
support query caches; (IsWitness): new filter;
(RelationshipPathBetween,IsDescendantOf,IsLessThanNthGenerationDescendantOf,
IsMoreThanNthGenerationDescendantOf,IsChildOfFilterMatch,IsSiblingOfFilterMatch,
IsAncestorOf,IsAncestorOfFilterMatch,IsLessThanNthGenerationAncestorOf,
IsMoreThanNthGenerationAncestorOf,IsParentOfFilterMatch,HasCommonAncestorWith):
use prepare() and reset() to create a proper query cache. Currently the
cache was only created once after object creation and never updated.
* src/gramps_main.py: Add new filters to the menu.


svn: r4171
2005-03-13 19:49:38 +00:00
Alex Roitman
5a55d247df * src/Utils.py (get_media_referents): Add function;
Add generic data recovery message.
* src/gramps_main.py (delete_person_clicked): Use generic data recovery
message.
* src/SourceView.py (on_delete_clicked): Use generic data recovery
message.
* src/EditSource.py (display_references): Change list headings.
* src/MediaView.py (on_delete_clicked): Use new mediaref detector;
Use generic data recovery message; (delete_objectmis-object_used):
Remove functions.
* src/ImageSelect.py (GlobalMediaProperties.display_ref): Use new
sourceref detection; (DeleteMediaQuery__init__): Accept object handle
and lists; (DeleteMediaQuery.query_response): Use new mediaref removal.


svn: r4161
2005-03-12 00:44:11 +00:00
Martin Hawlisch
33245ae20c * src/GenericFilter.py (PersonWithIncompleteEvent,
FamilyWithIncompleteEvent, ProbablyAlive,PeoplePrivate):
Add filter rules.
* src/gramps_main.py (init_filters): Add new filters to the menu.


svn: r4159
2005-03-11 20:53:53 +00:00
Alex Roitman
eac22b2ff8 * src/GenericFilter.py (IsBookmarked,IncompleteNames,
HaveAltFamilies,HavePhotos,HaveChildren,NeverMarried,
MultipleMarriages,NoBirthdate): Add filter rules.
* src/gramps_main.py (init_filters): Add new filters to the menu.


svn: r4156
2005-03-10 19:01:00 +00:00
Don Allingham
9ad57e1c2f * src/EditPerson.py: call new_after_edit instead of update_after_edit
for new people.


svn: r4151
2005-03-10 01:02:09 +00:00
Alex Roitman
7cd4156a6b * src/plugins/FilterEditor.py (on_delete_event,close_filter_editor):
Update filter ComboBox in the main window.
* src/gramps_main.py (init_filters): Clear layout before rebuilding.


svn: r4140
2005-03-09 01:08:49 +00:00
Alex Roitman
734753c196 * src/gramps_main.py (post_load): Upgrade even if no callback.
svn: r4127
2005-03-07 13:49:14 +00:00
Don Allingham
bf94c0f844 * src/ChooseParents.py: use integers instead of strings for
relationship types
* src/PedView.py: use integers instead of strings for
relationship types
* src/ReadGedcom.py: use integers instead of strings for
relationship types
* src/ReadXML.py: use integers instead of strings for
relationship types
* src/RelLib.py: use integers instead of strings for
relationship types
* src/SelectChild.py: use integers instead of strings for
relationship types
* src/WriteXML.py: use integers instead of strings for
relationship types
* src/const.py.in: use integers instead of strings for
relationship types
* src/gramps_main.py: call database update function
* src/GrampsBSDDB.py: add database upgrade function
* src/GrampsDbBase.py: add database upgrade function


svn: r4113
2005-03-03 05:33:22 +00:00
Don Allingham
ca2f90e4d0 * src/AddrEdit.py: update main source list after source addition
* src/AttrEdit.py: update main source list after source addition
* src/EditPerson.py: update main source list after source addition
and place addition
* src/EventEdit.py: update main source list after source addition
and place addition
* src/FamilyView.py: update main source list after source addition
* src/Marriage.py: update main source list after source addition
* src/NameEdit.py: update main source list after source addition
* src/Sources.py: update main source list after source addition
* src/gramps_main.py: update main source list after source addition
* src/const.py.in: new constants


svn: r4099
2005-02-27 05:51:59 +00:00
Don Allingham
2de4da703c * src/gramps_main.py: update places and sources after edit
svn: r4098
2005-02-26 05:19:38 +00:00
Alex Roitman
4c2ea76b9f * src/gramps_main.py (undo_callback): Enable underscore in a label.
* src/NameDisplay (display_name): Return empty string for None.
* src/NameEdit.py (__init__): Compare displayed name with empty string,
(update_group_as): Only query grouping for existing name.


svn: r4093
2005-02-25 17:06:04 +00:00
Don Allingham
bb494c5931 update
svn: r4087
2005-02-24 04:46:45 +00:00