Commit Graph

102 Commits

Author SHA1 Message Date
Don Allingham
8592fa2cc9 * various: Add undo functionality
svn: r3065
2004-03-30 04:50:24 +00:00
Don Allingham
44c1b553db * src/gramps_main.py: remove unused functions, fix history
* src/FamilyView.py: improve reordering of children


svn: r3059
2004-03-25 15:05:56 +00:00
Alex Roitman
20db87b538 * src/EditPerson.py (draw_lds): Don't include main family twice.
svn: r3047
2004-03-22 23:59:37 +00:00
Don Allingham
4a7d9131aa Convert to new GenericTreeView models
svn: r3040
2004-03-22 04:41:35 +00:00
Don Allingham
fbb05c44eb * src/EditPerson.py: TreeView enhancements
* src/PeopleModel.py: TreeView enhancements
* src/PeopleView.py: TreeView enhancements
* src/gramps_main.py: TreeView enhancements


svn: r2984
2004-03-09 05:12:14 +00:00
Don Allingham
93542c93f5 * src/gramps_main.py: switch to DB as default, remove save option
* src/RelLib.py: setup DB environment better
* src/DbPrompter.py: handle save/open with new DBs


svn: r2924
2004-02-28 18:46:40 +00:00
Don Allingham
0c795ffa9f update
svn: r2912
2004-02-25 04:08:51 +00:00
Alex Roitman
bbe933fd73 Update
svn: r2910
2004-02-25 03:20:53 +00:00
Alex Roitman
09360cae89 * src/AddrEdit.py, src/AttrEdit.py, src/EditPerson.py,
src/EditSource.py, src/EventEdit.py, src/ImageSelect.py,
src/Marriage.py, src/NameEdit.py, src/NoteEdit.py,
src/Sources.py, src/UrlEdit.py, src/Witness.py:
Register windows opened for existing objects. Prevent editing
same object twice.


svn: r2905
2004-02-24 05:37:06 +00:00
Alex Roitman
8a52b650b2 * src/EditPerson.py: Rename photo into media.
* src/EditPlace.py: Rename photo into media.
* src/EditSource.py: Rename photo into media.
* src/ImageSelect.py: Rename photo into media.
* src/Marriage.py: Rename photo into media.


svn: r2896
2004-02-23 02:45:36 +00:00
Alex Roitman
15ceba32c7 Update
svn: r2889
2004-02-22 05:08:40 +00:00
Don Allingham
e2da222236 Additional Reference fixes
svn: r2888
2004-02-22 04:57:06 +00:00
Alex Roitman
71f8f5476b * src/EditPerson.py: Corrections.
* src/EditSource.py: Use parent class. Use windows menu.
* src/ImageSelect.py: Corrections.
* src/Sources.py: Corrections.
* src/gramps.glade: Add handlers.
* src/NoteEdit.py: Corrections.
* src/dialog.glade: Add handler.
* src/Witness.py: Corrections.
* src/RelLib.py: Include witnesses in comparing events.
* src/FamilyView.py: Pass parent on to child classes.
* src/AddSpouse.py: Pass parent on to EditPerson.
* src/ChooseParents.py: Pass parent on to EditPerson.
* src/gramps_main.py: Pass Gramps class to child classes.
* src/MergeData.py: Pass parent on to EditPerson.


svn: r2885
2004-02-21 06:40:44 +00:00
Don Allingham
e878549bfd First DB pass
svn: r2884
2004-02-21 06:11:59 +00:00
Alex Roitman
ed8497953e Update
svn: r2882
2004-02-20 03:57:54 +00:00
Alex Roitman
aee113137a Fixes
svn: r2880
2004-02-20 02:38:31 +00:00
Alex Roitman
aa9090e2c5 Update
svn: r2875
2004-02-20 00:52:24 +00:00
Alex Roitman
46b4b95371 Update
svn: r2873
2004-02-19 21:27:53 +00:00
Alex Roitman
87621141a1 Update
svn: r2872
2004-02-19 20:34:58 +00:00
Alex Roitman
ea5a7b5cbb Update
svn: r2871
2004-02-19 19:15:27 +00:00
Alex Roitman
83130e1889 * src/EditPerson.py: Use parent class. Add/remove itself from/to
the Windows menu.
* src/NameEdit.py: Make non-modal.
* src/gramps.glade: Add Windows menu.
* src/gramps_main.py: Get Windows menu and its submenu.
Pass Gramps class to the children -- first-class object editors.


svn: r2870
2004-02-19 13:40:09 +00:00
Don Allingham
a91ba2c714 * src/RelLib.py: switch to event/event_ids
* src/WriteXML.py: switch to event/event_ids
* src/GrampsParser.py: switch to event/event_ids
* src/FamilyView.py: switch to event/event_ids
* src/EventEdit.py: switch to event/event_ids
* src/Marriage.py: switch to event/event_ids
* src/EventEdit.py: switch to event/event_ids
* src/PeopleView.py: switch to event/event_ids
* src/EditPerson.py: switch to event/event_ids


svn: r2869
2004-02-19 05:07:46 +00:00
Don Allingham
d890cdfcd7 * src/RelLib.py: fix syntax error
* src/EditPerson.py: fix reordering of children
*


svn: r2827
2004-02-15 01:57:07 +00:00
Don Allingham
015973462a Move from object references to IDs
svn: r2822
2004-02-14 05:40:30 +00:00
Alex Roitman
4b908898fb * src/gramps.glade: Define handler for the gallery's Edit button.
* src/EditSource.py: Connect callback to the gallery's Edit button.
* src/ImageSelect.py: Remember old photo list.
* src/EditPlace.py: Revert photos on Cancel.
* src/EditPerson.py: Revert photos on Cancel.
* src/Marriage.py: Revert photos on Cancel.


svn: r2783
2004-02-06 20:57:01 +00:00
Don Allingham
c4525d39d3 * src/const.py.in: handle new translation table class
* src/NameEdit.py.in: handle new translation table class
* src/EditPerson.py.in: handle new translation table class
* src/TransTable.py: new Translation table class
* src/GenericFilter.py: handle translated rule names
* src/plugins/FilterEditor.py: handle translated rule names


svn: r2679
2004-01-20 23:30:15 +00:00
Don Allingham
6068598e28 * src/EditPerson.py (EditPerson.__init__): use AutoCombo for name type
* src/edit_person.glade: allow a name type that is not in the list

* src/ImageSelect.py: make sure that description doesn't exceed the image
size
* src/MediaView.py: mark <local copy> for translation
* src/gramps.glade: eliminate fixed size for side panel, helps with translations.


svn: r2593
2004-01-07 04:58:51 +00:00
Don Allingham
e0855a56f3 * src/revision.glade: removed unused call (on_help_dbopen_clicked)
* src/gramps_main.py: don't add places twice after an edit of a person
* src/AddSpouse.py: don't add places twice after an edit of a person
* src/ChooseParents.py: don't add places twice after an edit of a person
* src/EditPerson.py: don't add places twice after an edit of a person
* src/FamilyView.py: don't add places twice after an edit of a person


svn: r2538
2003-12-17 18:38:02 +00:00
Alex Roitman
112addeef6 * src/Sources.py: Unicode conversion from gtk.TextView.
* src/Witness.py: Unicode conversion from gtk.TextView.
* src/Report.py: Unicode conversion from gtk.TextView.
* src/NameEdit.py: Unicode conversion from gtk.TextView.
* src/Marriage.py: Unicode conversion from gtk.TextView.
* src/ImageSelect.py: Unicode conversion from gtk.TextView.
* src/EventEdit.py: Unicode conversion from gtk.TextView.
* src/EditSource.py: Unicode conversion from gtk.TextView.
* src/EditPlace.py: Unicode conversion from gtk.TextView.
* src/EditPerson.py: Unicode conversion from gtk.TextView.
* src/AutoComp.py: Unicode conversion from gtk.TextView.
* src/AttrEdit.py: Unicode conversion from gtk.TextView.
* src/AddrEdit.py: Unicode conversion from gtk.TextView.
* src/plugins/BookReport.py: Unicode conversion from gtk.Entry
and gtk.TextView.
* src/plugins/ChangeTypes.py: Unicode conversion.
* src/plugins/EventCmp.py: Unicode conversion.
* src/plugins/FilterEditor.py: Unicode conversion.
* src/plugins/SimpleBookTitle.py: Unicode conversion.
* src/plugins/TimeLine.py: Unicode conversion.
* src/plugins/WebPage.py: Unicode conversion.
* src/plugins/WriteGedcom.py: Unicode conversion.
* src/plugins/WritePkg.py: Unicode conversion.
* src/plugins/eval.py: Unicode conversion.
* src/plugins/soundgen.py: Unicode conversion.


svn: r2536
2003-12-17 16:06:36 +00:00
Don Allingham
49512e683c * src/PlaceView.py: Make sure to add new place after edit
* src/AddMedia.py: unicode conversion from gtk.Entry
* src/AddSpouse.py: unicode conversion from gtk.Entry
* src/AddrEdit.py: unicode conversion from gtk.Entry
* src/AttrEdit.py: unicode conversion from gtk.Entry
* src/AutoComp.py: unicode conversion from gtk.Entry
* src/ChooseParents.py: unicode conversion from gtk.Entry
* src/DateEdit.py: unicode conversion from gtk.Entry
* src/EditPerson.py: unicode conversion from gtk.Entry
* src/EditPlace.py: unicode conversion from gtk.Entry
* src/EditSource.py: unicode conversion from gtk.Entry
* src/EventEdit.py: unicode conversion from gtk.Entry
* src/Find.py: unicode conversion from gtk.Entry
* src/GrampsCfg.py: unicode conversion from gtk.Entry
* src/ImageSelect.py: unicode conversion from gtk.Entry
* src/LocEdit.py: unicode conversion from gtk.Entry
* src/Marriage.py: unicode conversion from gtk.Entry
* src/MergeData.py: unicode conversion from gtk.Entry
* src/NameEdit.py: unicode conversion from gtk.Entry
* src/PeopleView.py: unicode conversion from gtk.Entry
* src/Report.py: unicode conversion from gtk.Entry
* src/SelectChild.py: unicode conversion from gtk.Entry
* src/Sources.py: unicode conversion from gtk.Entry
* src/StartupDialog.py: unicode conversion from gtk.Entry
* src/StyleEditor.py: unicode conversion from gtk.Entry
* src/UrlEdit.py: unicode conversion from gtk.Entry
* src/Utils.py: unicode conversion from gtk.Entry
* src/VersionControl.py: unicode conversion from gtk.Entry
* src/Witness.py: unicode conversion from gtk.Entry


svn: r2534
2003-12-17 05:23:16 +00:00
Alex Roitman
554c46acf4 * src/places.glade: Add format controls for notes.
* src/imagesel.glade: Add format controls for notes.
* src/EditPlace.py: Add note format support.
* src/ImageSelect.py: Add note format support.
* src/EditPerson.py: Clean up note format support.
* src/Marriage.py: Add note format support.


svn: r2526
2003-12-16 00:37:47 +00:00
Alex Roitman
7d779c25a8 * src/edit_person.glade: Add from file and Add from database buttons.
* src/EditPerson.py (__init__): Add handler for a new button.
* src/ImageSelect.py (Gallery.on_select_photo_clicked): Add function.
* src/marriage.glade: Add from file and Add from database buttons.
* src/Marriage.py (__init__): Add handler for a new button.
* src/gramps.glade (sourceEditor): Add from file and Add from database
buttons.
* src/EditSource.py (__init__): Add handler for a new button.
* src/places.glade: Add from file and Add from database buttons.
* src/EditPlace.py (__init__): Add handler for a new button.


svn: r2511
2003-12-12 05:36:38 +00:00
Alex Roitman
6561e87845 * src/edit_person.glade: Add notes format radiobuttons.
* src/EditPerson.py: Support format for the person's notes.
* src/RelLib.py: More support for the notes' format.


svn: r2496
2003-12-10 14:21:48 +00:00
Don Allingham
9ca94ff9db update
svn: r2480
2003-12-09 06:02:36 +00:00
Alex Roitman
0cb999d41e * src/edit_person.glade: Add completeness check button.
* src/RelLib.py (Person.setComplete, Person.getComplete): Add functions.
* src/WriteXML.py (write_id): Save completeness info.
* src/GrampsParser.py (GrampsParser.start_person,
GrampsImportParser.start_person, GrampsImportParser.start_family):
Parse completeness.
* src/EditPerson.py: Add support for completeness.


svn: r2430
2003-12-03 03:49:39 +00:00
Alex Roitman
b1a31deb0f * src/preferences.glade: Add Help button.
* src/GrampsCfg.py (on_propertybox_help): Add function.
* src/imagesel.glade: Add Help buttons.
* src/ImageSelect.py (ImageSelect.on_help_imagesel_clicked,
GlobalMediaProperties.on_help_clicked): Add functions.
* src/AddMedia.py (on_help_imagesel_clicked): Add function.
* doc/gramps-manual/C/usage.xml: Update.
* doc/gramps-manual/C/keybind.xml: Update.
* src/AddSpouse.py: Call yelp with sect2 argument.
* src/AddrEdit.py: Likewise.
* src/AttrEdit.py: Likewise.
* src/ChooseParents.py: Likewise.
* src/EditPerson.py: Likewise.
* src/EditPlace.py: Likewise.
* src/EditSource.py: Likewise.
* src/EventEdit.py: Likewise.
* src/Marriage.py: Likewise.
* src/NameEdit.py: Likewise.
* src/SelectChild.py: Likewise.
* src/Sources.py: Likewise.


svn: r2420
2003-12-02 04:27:23 +00:00
Alex Roitman
69270a29f8 * src/gramps.glade: Add Help buttons to dialogs.
* src/AddSpouse.py (on_spouse_help_clicked): Add function.
* src/SelectChild.py (on_child_help_clicked): Add function.
* src/Marriage.py (on_help_clicked): Add function.
* src/EditPerson.py (on_help_clicked): Add function.
* src/marriage.glade: Add Help button to a dialog.
* src/edit_person.glade: Add Help button to a dialog.
* src/dialog.glade: Add Help buttons to dialogs.
* src/AddrEdit.py (on_help_clicked): Add function.
* src/AttrEdit.py (on_help_clicked): Add function.
* src/EventEdit.py (on_help_clicked): Add function.


svn: r2347
2003-11-18 04:26:06 +00:00
Don Allingham
b8247fb0e2 * src/EditPerson.py: handle LDS status setting properly
* src/RelLib.py: use LDS status for equality comparison


svn: r2344
2003-11-17 00:41:32 +00:00
Don Allingham
2adcb8b8c7 * src/EditPerson.py: Fixed typo
svn: r2340
2003-11-14 22:50:03 +00:00
Alex Roitman
b5e029e27e * src/EditPerson.py: Fix LDS tab label behavior.
* src/Marriage.py: Fix LDS tab label behavior. Fix get_place for LDS (was
using Utils.get_place_from_list which uses deprecated gtk.List and does not
work).


svn: r2336
2003-11-13 21:44:09 +00:00
Alex Roitman
385c80dcd2 * src/Utils.py (bold_label, unbold label): Add functions.
* src/EditPerson.py (bold_label, unbold label): Remove functions;
Call them from Utils in every instance.
* src/ImageSelect.py (Gallery.load_images): Change label upon load.
* src/Sources.py (SourceTab.redraw): Change label upon redraw.
* src/AddrEdit.py (__init__): Find sources label from XML;
(on_switch_page): Add function.
* src/AttrEdit.py (__init__): Find sources label from XML;
(on_switch_page): Add function.
* src/dialog.glade: Set meaningful label ids, remove bold markup.
* src/EditPlace.py (__init__): Find soucre label from XML.
* src/places.glade: Set meaningful label ids, remove bold markup.
* src/Marriage.py (__init__): Find soucre label from XML;
(on_switch_page): Add function.
* src/marriage.glade: Set meaningful label ids, remove bold markup.
* src/EditSource.py (__init__): Find soucre label from XML.
* src/gramps.glade: Set meaningful label ids, remove bold markup.
* src/EventEdit.py: (__init__): Find soucre label from XML;
(on_switch_page): Add function.
* src/Witness.py (WitnessTab.redraw): Change label upon redraw.
* src/NameEdit.py: (__init__): Find soucre label from XML;
(on_switch_page): Add function.


svn: r2327
2003-11-12 18:45:07 +00:00
Alex Roitman
8420160fb4 Update
svn: r2325
2003-11-11 00:38:24 +00:00
Alex Roitman
5eb64234ee * src/edit_person.glade: Set meaningful ids for all tab labels.
* src/EditPerson.py (__init__): Find labels from XML, call
bold_label() if contents is not empty;
(bold_label, unbold label): Add functions;
(redraw_*): Call bold_label or unbold_label based on contents.


svn: r2324
2003-11-11 00:32:28 +00:00
Alex Roitman
874bee1f7c * src/edit_person.glade: Set meaningful id for the Notes tab label.
* src/EditPerson.py (__init__): Find notes_label from XML, call
chane_notes() if note is not empty; (change_notes): Add function.


svn: r2321
2003-11-09 23:14:18 +00:00
Don Allingham
b67e68f304 * src/gramps_main.py: pychecker cleanup
* src/PeopleView.py: pychecker cleanup
* src/PeopleStore.py: pychecker cleanup
* src/EditPerson.py: pychecker cleanup
* src/QuickAdd.py: remove file
* src/SelectChild.py: Remove ability to add new person, since a separate
function for this already exists.
* src/gramps.glade: remvoe add button from select child dialog
* src/Makefile.am: remove QuickAdd.py
* src/intl.py: remove
* src/intl.c: remove
* src/TextDoc.py: remove
* src/DrawDoc.py: remove


svn: r2293
2003-10-30 04:17:05 +00:00
Don Allingham
0785137dcb * src/RelLib.py: Person and Family now inherit from SourceNote
* src/EditPerson.py: Added source tab to apply generic sources
to a person
* src/Marriage.py: Added source tab to apply generic sources
to a person, add "complete" flag
* src/WriteXML.py: Store source information for Family and Person,
store complete flag for Family
* src/GrampsParser.py: Parse source information for Family and
Person, read complete flag for Famiy


svn: r2289
2003-10-29 05:04:43 +00:00
Alex Roitman
f7158aa398 * src/SourceView.py: Correct behavior for right-click popup menu.
* src/EditPerson.py: Likewise.
* src/FamilyView.py: Likewise.
* src/ImageSelect.py: Likewise.
* src/PedView.py: Likewise.
* src/PlaceView.py: Likewise.
* src/plugins/BookReport.py: Likewise.
* src/PeopleView.py: Likewise.


svn: r2270
2003-10-20 02:47:03 +00:00
Don Allingham
fee585d80c * src/RelLib.py : support for capitalized name formats
* src/EditPerson.py: eliminate capitilzing names, instead rely on
the display formats
* src/Utils.py: new display formats for names
* src/GrampsCfg.py: eliminate name only option in status line,
add support for capitalized name formats
* src/preferences.glade : eliminate name only option in status line,
drop capitalize in favor of expanded name format


svn: r2238
2003-10-12 04:26:00 +00:00
Don Allingham
7047da9ffa update
svn: r2152
2003-09-20 19:56:27 +00:00
Alex Roitman
1021a5ef65 * src/SourceView.py (button_press,on_add_clicked,on_delete_clicked,
on_edit_clicked): Pass parent window to the child dialog.
* src/Sources.py (add_src_clicked): Likewise.
* src/EditSource.py (__init__): Add optional parent_window argument.
Make dialog modal and transient for its parent.
* src/gramps.glade (sourceEditor dialog): Delete unneeded handlers
for buttons.
* src/QuestionDialog.py (SaveDialog,QuestionDialog,OptionDialog,
ErrorDialog,WarningDialog,MissingMediaDialog): Set transient status
if parent is given.
* src/EventEdit.py (__init__): Make dialog modal and transient for
its parent.
* src/Witness.py: Make WittnessEditor dialog modal and transient for
its parent. Call SelectPerson with itself as a parent.
* src/SelectPerson.py (__init__): Make dialog transient for its parent.
* src/imagesel.glade: Define proper responses and delete unneeded handlers
for buttons. Make gtkFileEntry modal.
* src/dialog.glade (all dialogs): Define proper responses for buttons.
* src/EditPerson.py (on_add_aka_clicked, on_aka_update_clicked):
Call NameEdit with itself as a parent; (on_add_attr_clicked,
on_update_attr_clicked): Call AttributeEditor with itself as a parent;
(on_add_addr_clicked,on_update_addr_clicked): Call AddressEditor with
itself as a parent; (on_add_url_clicked,on_update_url_clicked): Call
UrlEditor with itself as a parent; (on_name_note_clicked,
on_ldsbap_note_clicked,on_ldsendow_note_clicked,
on_ldsseal_note_clicked): Call NoteEditor with itself as a parent.
* src/NameEdit.py (__init__): Make dialog modal and transient for
its parent.
* src/AttrEdit.py (__init__): Likewise.
* src/AddrEdit.py (__init__): Likewise.
* src/UrlEdit.py (__init__): Likewise.
* src/NoteEdit.py (__init__): Likewise.


svn: r2131
2003-09-15 04:11:30 +00:00