Commit Graph

948 Commits

Author SHA1 Message Date
Alex Roitman
1790aef639 * src/GrampsDbBase.py (find_event_from_handle):
Add transaction argument


svn: r3463
2004-08-21 18:58:19 +00:00
Alex Roitman
a75338f737 * src/AddSpouse.py, src/ChooseParents.py, src/EditPerson.py,
src/EditPlace.py, src/EditSource.py, src/EventEdit.py,
src/FamilyView.py, src/GenericFilter.py,
src/Marriage.py, src/PedView.py, src/PeopleModel.py,
src/PlaceView.py, src/RelLib.py, src/SelectChild.py,
src/Sort.py, src/SourceView.py, src/SubstKeywords.py,
src/WriteGedcom.py, src/WriteXML.py, src/plugins/AncestorReport.py,
src/plugins/Ancestors.py, src/plugins/ChangeTypes.py,
src/plugins/DescendReport.py, src/plugins/DetDescendantReport.py,
src/plugins/EventCmp.py, src/plugins/FamilyGroup.py,
src/plugins/FanChart.py, src/plugins/FtmStyleAncestors.py,
src/plugins/FtmStyleDescendants.py, src/plugins/GraphViz.py,
src/plugins/IndivComplete.py, src/plugins/IndivSummary.py,
src/plugins/Merge.py, src/plugins/RelCalc.py, src/plugins/RelGraph.py,
src/plugins/Summary.py, src/plugins/TimeLine.py, src/plugins/Verify.py,
src/plugins/WebPage.py, src/plugins/WriteCD.py,
src/plugins/WritePkg.py, src/plugins/DetAncestralReport.py:
Use get_event_from_handle (not find_ ).


svn: r3462
2004-08-21 18:56:01 +00:00
Alex Roitman
55a76f77e1 * src/ReadGedcom.py (parse_record): Get objects from handles;
(handle_source): Refer to handle, not the object;
(parse_source): Use gramps id (not handle) to form the title.
* src/GrampsDbBase.py (get_person_from_handle): Typo;
(find_event_from_handle): Correctly create new event if not found.
* src/Sources.py (draw): Correctly sort, use gramps id when
displaying sources; (redraw): Use gramps id in the list view.


svn: r3461
2004-08-21 18:13:18 +00:00
Alex Roitman
4a41bfa1a0 * src/data/gramps.schemas: Add /apps/gramps/interface/size-checked key.
* src/GrampsCfg.py (get_screen_size_checked,
save_screen_size_checked): Add functions.
* src/gramps_main.py: Enable sidebar depending on the screen
if the screen size has not been checked yet.
* src/ChooseParents.py: Set the size request depending on the screen.
* src/Marriage.py: Set the size request depending on the screen.
* src/gramps.glade (marriageEditor): Unset the height request
for the event list.


svn: r3459
2004-08-21 04:33:55 +00:00
Don Allingham
3e5827b671 * src/gramps_main.py: update family display after EditPerson
* src/EditPerson.py: fix callback


svn: r3456
2004-08-21 03:36:00 +00:00
Alex Roitman
37b30dbc2c * src/plugins/Verify.py (on_apply_clicked): Append warnings
to errors instead of overwriting; determine actual dates of burial
and baptism; (get_year): Correctly compare calendar names.
* src/plugins/rel_it.py: removed translatable strings (should be
already italian).
* src/plugins/IndivComplete.py (_get_report_filters):
Set both ancestor and descendant filters to be inclusive.
* src/plugins/RelGraph.py (get_report_filters):
Set both ancestor and descendant filters to be inclusive.
* src/plugins/TimeLine.py (_get_report_filters):
Set both ancestor and descendant filters to be inclusive.
* src/plugins/WebPage.py (get_report_filters):
Set both ancestor and descendant filters to be inclusive.
* src/plugins/WriteFtree.py (__init__):
Set both ancestor and descendant filters to be inclusive.
* src/plugins/Ancestors.py (person_name): Use translated name type.


svn: r3454
2004-08-20 21:55:29 +00:00
Alex Roitman
fe4427adf8 * src/WriteGedcom.py (get_option_box): Make filters inclusive.
* src/plugins/merge.glade: Switch button order to comply with HIG.
* src/mergedata.glade: Switch button order to comply with HIG.
* src/plugins/RelGraph.py (get_default_basename): Add function.
* src/plugins/AncestorReport.py (write_report): Translate
string properly.
* src/EventEdit.py (update_event): Use transtable.
* src/EditPerson.py (on_event_add_clicked, on_edit_birth_clicked,
on_edit_death_clicked, on_event_update_clicked):
Pass TransTable to the event editor.
* src/Marriage.py (on_add_clicked, on_event_update_clicked):
Pass TransTable to the event editor.
* src/plugins/FtmStyleAncestors.py,
src/plugins/FtmStyleDescendants.py:
Remove extra space between vars in "%(.*_place)s %(.*_notes)s"
* src/plugins/verify.glade: Translate button label.
* src/plugins/IndivSummary.py: Proper handling of translation.
* src/docgen/OpenOfficeDoc.py (pt2cm): Add function;
(draw_text): Convert points to cm for the box width;
 Use self.string_width() method.
* src/BaseDoc.py (string_width): Add a method to compute width.
* src/docgen/LPRDoc.py (string_width): Override method.
* src/docgen/PdfDoc.py: Use self.string_width() method.
* src/docgen/SvgDrawDoc.py: Use self.string_width() method.
* src/plugins/AncestorChart2.py: Use self.doc.string_width() method.
* src/plugins/AncestorChart.py: Use self.doc.string_width() method.
* src/plugins/DesGraph.py: Use self.doc.string_width() method.
* src/plugins/FanChart.py: Use self.doc.string_width() method.
* src/plugins/TimeLine.py: Use self.doc.string_width() method.
* src/plugins/eval.glade: HIG compliance.


svn: r3453
2004-08-20 21:26:51 +00:00
Alex Roitman
0dd92d0a5c * src/plugins/rel_da.py: Convert to new interface. Add to CVS.
* src/plugins/rel_fi.py: Convert to new interface. Add to CVS.
* src/plugins/rel_fr.py: Convert to new interface. Add to CVS.
* src/plugins/rel_no.py: Convert to new interface. Add to CVS.
* src/plugins/rel_sv.py: Convert to new interface. Add to CVS.
* src/plugins/Makefile.am: Ship new files.
* src/Relationship.py (apply_filter): Keep gender info of all
member in the relationship chain, not just number of generations;
(is_spouse): correctly compare handles; (get_relationship_distance,
get_relationship, get_grandparents_string): correctly use apply_filter.
* src/plugins/rel_it.py (get_relationship): Correctly use apply_filter.
* src/plugins/rel_hu.py (get_relationship): Correctly use apply_filter.
* src/plugins/rel_de.py (is_spouse): Remove function;
(get_relationship): Correctly use apply_filter.
* src/plugins/rel_ru.py (is_spouse): Remove function;
(get_relationship): Correctly use apply_filter.


svn: r3452
2004-08-20 19:10:01 +00:00
Tim Waugh
a79457e20b 2004-08-20 Tim Waugh <twaugh@redhat.com>
* src/RelLib.py (Event.are_equal): Fixed comparison with None.


svn: r3451
2004-08-20 13:44:48 +00:00
Don Allingham
f741527b55 * src/plugins/RelCalc.py: use empty string instead of None
* src/EditPerson.py: pychecker fixes
* src/EditPlace.py: pychecker fixes
* src/EditSource.py: pychecker fixes
* src/GenericFilter.py: pychecker fixes
* src/GrampsCfg.py: pychecker fixes
* src/ImageSelect.py: pychecker fixes
* src/ListModel.py: pychecker fixes
* src/MediaView.py; pychecker fixes
* src/MergeData.py: pychecker fixes
* src/PedView.py: pychecker fixes
* src/PeopleView.py: pychecker fixes
* src/PlaceView.py: pychecker fixes
* src/Plugins.py: pychecker fixes
* src/RelImage.py: pychecker fixes
* src/Relationship.py: pychecker fixes


svn: r3450
2004-08-20 12:11:56 +00:00
Tim Waugh
7a22617b52 2004-08-20 Tim Waugh <twaugh@redhat.com>
* src/plugins/RelCalc.py (__init__): Handle unknown birth dates.


svn: r3449
2004-08-20 11:58:06 +00:00
Tim Waugh
fad53895fe 2004-08-20 Tim Waugh <twaugh@redhat.com>
* src/Calendar.py (calendar_names): Fixed typo.


svn: r3448
2004-08-20 11:14:15 +00:00
Don Allingham
c38890095d * src/AutoComp.py: remove double display of data
* src/FamilyView.py: remove unused check
* src/GrampsBSDDB.py: search by gramps_id
* src/GrampsDbBase.py: search by gramps_id, unicode/str conversions
* src/Marriage.py: handle gramps_id editing
* src/ReadXML.py: fix handle/gramps_id on import
* src/plugins/RelCalc.py: display date instead of event handle
* src/Relationship.py: family handles working
* src/PeopleModel.py: comment out unused functions
* src/PeopleModel.py: simplify model interface
* src/AddSpouse.py: get_family_from_handle fixes
* src/EditPerson.py: get_family_from_handle fixes
* src/EditSource.py: get_family_from_handle fixes
* src/GraphLayout.py: get_family_from_handle fixes
* src/ImageSelect.py: get_family_from_handle fixes
* src/MediaView.py: get_family_from_handle fixes
* src/MergeData.py: get_family_from_handle fixes
* src/PlaceView.py: get_family_from_handle fixes
* src/ReadXML.py: get_family_from_handle fixes
* src/RelLib.py: get_family_from_handle fixes
* src/Relationship.py: get_family_from_handle fixes
* src/SelectChild.py: get_family_from_handle fixes
* src/SourceView.py: get_family_from_handle fixes
* src/SubstKeywords.py: get_family_from_handle fixes
* src/WriteXML.py: get_family_from_handle fixes
* src/gramps_main.py: get_family_from_handle fixes


svn: r3446
2004-08-20 02:20:06 +00:00
Don Allingham
bfc08ca83a * PeopleModel.py: simplify model interface
* EditPerson.py: get_family_from_handle fixes
* EditSource.py: get_family_from_handle fixes
* GraphLayout.py: get_family_from_handle fixes
* ImageSelect.py: get_family_from_handle fixes
* MediaView.py: get_family_from_handle fixes
* MergeData.py: get_family_from_handle fixes
* PlaceView.py: get_family_from_handle fixes
* ReadXML.py: get_family_from_handle fixes
* RelLib.py: get_family_from_handle fixes
* Relationship.py: get_family_from_handle fixes
* SelectChild.py: get_family_from_handle fixes
* SourceView.py: get_family_from_handle fixes
* SubstKeywords.py: get_family_from_handle fixes
* WriteXML.py: get_family_from_handle fixes
* gramps_main.py: get_family_from_handle fixes
* plugins/AncestorChart.py: get_family_from_handle fixes
* plugins/AncestorChart2.py: get_family_from_handle fixes
* plugins/AncestorReport.py: get_family_from_handle fixes
* plugins/Ancestors.py: get_family_from_handle fixes
* plugins/Check.py: get_family_from_handle fixes
* plugins/CountAncestors.py: get_family_from_handle fixes
* plugins/Desbrowser.py: get_family_from_handle fixes
* plugins/DescendReport.py: get_family_from_handle fixes
* plugins/DetAncestralReport.py: get_family_from_handle fixes
* plugins/DetDescendantReport.py: get_family_from_handle fixes
* plugins/FamilyGroup.py: get_family_from_handle fixes
* plugins/FanChart.py: get_family_from_handle fixes
* plugins/FtmStyleAncestors.py: get_family_from_handle fixes
* plugins/FtmStyleDescendants.py: get_family_from_handle fixes
* plugins/GraphViz.py: get_family_from_handle fixes
* plugins/IndivComplete.py: get_family_from_handle fixes
* plugins/IndivSummary.py: get_family_from_handle fixes
* plugins/Merge.py: get_family_from_handle fixes
* plugins/RelGraph.py: get_family_from_handle fixes
* plugins/Verify.py: get_family_from_handle fixes
* plugins/WebPage.py: get_family_from_handle fixes
* plugins/WriteCD.py: get_family_from_handle fixes
* plugins/WritePkg.py: get_family_from_handle fixes
* plugins/rel_de.py: get_family_from_handle fixes
* plugins/rel_hu.py: get_family_from_handle fixes
* plugins/rel_ru.py: get_family_from_handle fixes


svn: r3443
2004-08-19 21:35:16 +00:00
Tim Waugh
2f7713e586 2004-08-19 Tim Waugh <twaugh@redhat.com>
* src/RelLib.py (probably_alive): Use get_family_from_handle instead
        of find_family_from_handle.


svn: r3441
2004-08-19 17:07:37 +00:00
Tim Waugh
3fa7d9d620 2004-08-19 Tim Waugh <twaugh@redhat.com>
* src/WriteGedcom.py (get_persons_sources): Remove extra calls to
        get_handle() to prevent traceback.


svn: r3440
2004-08-19 17:04:55 +00:00
Don Allingham
d9a18f1aa8 * src/DisplayModels.py: simplify internal iter handling.
Move to a single list instead of multiple dictionaries.


svn: r3439
2004-08-19 16:49:16 +00:00
Tim Waugh
376924ab95 2004-08-19 Tim Waugh <twaugh@redhat.com>
* src/gramps_main.py (import_tool_callback): Set home person.


svn: r3438
2004-08-19 16:35:07 +00:00
Don Allingham
f163c5628e * src/ChooseParents.py: use get_family_from_handle instead
of find_family_from_handle


svn: r3437
2004-08-19 16:00:40 +00:00
Don Allingham
369424d4a1 * src/EditPerson.py: fix None gramps_id for new person
* src/PeopleModel.py: add sort_name back in


svn: r3435
2004-08-19 03:44:10 +00:00
Alex Roitman
ec9ab8a6d9 * configure.in: Check for pygtk instead of pygtk-dev.
* src/accent.py: Replace unknown chars with "?".


svn: r3434
2004-08-19 03:33:11 +00:00
Don Allingham
44870279d4 * src/accent.py: provide sorting on i18n characters without
accents
* src/Makefile.am: add accent.py to list


svn: r3433
2004-08-19 02:37:35 +00:00
Alex Roitman
7d338c8a43 Update
svn: r3431
2004-08-18 04:48:23 +00:00
Don Allingham
ec9723a390 * src/RelImage.py: remove PIL
* src/Imgmanip.py: remove PIL
* src/MediaView.py: remove PIL
* src/accent.py: support of unaccenting characters for comparison,
and sorting
* src/RelLib.py: build sort name using unaccented version
* src/PeopleView.py: get bold working again
* src/PeopleModel.py: sort using unaccented characters


svn: r3428
2004-08-18 03:55:55 +00:00
Tim Waugh
baa5ec71f4 2004-08-17 Tim Waugh <twaugh@redhat.com>
* src/FamilyView.py (spouse_changed): Update display.


svn: r3418
2004-08-17 16:58:34 +00:00
Tim Waugh
97bb9eebd2 2004-08-16 Tim Waugh <twaugh@redhat.com>
* src/gramps_main.py (__init__): Update display after initialization.
        This fixes a display problem when family view is the default.


svn: r3409
2004-08-16 13:31:35 +00:00
Tim Waugh
a5068998c3 2004-08-16 Tim Waugh <twaugh@redhat.com>
* src/RelLib.py: Fixed typo.


svn: r3408
2004-08-16 13:28:41 +00:00
Tim Waugh
27b4664b42 2004-08-16 Tim Waugh <twaugh@redhat.com>
* gramps.spec.in, gramps-mdk.spec.in: Fixed.


svn: r3404
2004-08-16 11:12:22 +00:00
Tim Waugh
24eaecfc66 2004-08-16 Tim Waugh <twaugh@redhat.com>
* src/data/gramps.desktop: Fixed.


svn: r3403
2004-08-16 11:11:15 +00:00
Tim Waugh
c1a1ecfd7d 2004-08-16 Tim Waugh <twaugh@redhat.com>
* src/data/Makefile.am: Fix 'distcheck' as much as possible.


svn: r3402
2004-08-16 09:32:07 +00:00
Tim Waugh
33ce8339d9 2004-08-15 Tim Waugh <twaugh@redhat.com>
* src/data/Makefile.am: Make 'distcheck' get further.


svn: r3398
2004-08-15 21:31:28 +00:00
Tim Waugh
9282bf8407 2004-08-15 Tim Waugh <twaugh@redhat.com>
* src/Makefile.am: Removed src/Find.py.


svn: r3395
2004-08-15 19:46:02 +00:00
Don Allingham
3a9130f5ad * various: Updated cleaned up API
svn: r3388
2004-08-13 04:34:07 +00:00
Don Allingham
49a98dba83 * src/GenericFilter.py: fixed find/get_family_from_handle
* src/WriteGedcom.py: fixed find/get_family_from_handle


svn: r3375
2004-08-11 17:00:38 +00:00
Don Allingham
90de8501ff * src/AddrEdit.py: setCountry -> set_country
* src/RelLib.py: Add concept of PrimaryObject
* src/GrampsDbBase.py: add local constants
* src/ReadGedcom.py: support new API


svn: r3374
2004-08-11 16:22:36 +00:00
Tim Waugh
f1dad71117 2004-08-11 Tim Waugh <twaugh@redhat.com>
* src/GrampsDbBase.py: Fixed some missed str()s.


svn: r3373
2004-08-11 16:12:08 +00:00
Alex Roitman
7a8aade876 * src/Makefile.am: Ship new files: GrampsDbBase.py, GrampsXMLDB.py,
and GrampsGEDDB.py.


svn: r3372
2004-08-11 05:06:28 +00:00
Don Allingham
93c5dbebcd * src/RelLib.py: rework of the API
* src/*.py: rework of the api


svn: r3371
2004-08-11 03:42:38 +00:00
Don Allingham
082907d675 * various: change try_to_find_*_from_handle to
get_*_from_handle


svn: r3355
2004-08-07 05:16:57 +00:00
Don Allingham
0843d5033a * src/AutoComp.py: switch over entirely to ComboBox for
autocompletion
* src/GenericFilter.py: support ComboBox
* src/TransTable.py: sort items on getting keys
* src/plugins/FilterEditor.py: support ComboBox
* src/plugins/SoundGen.py: support ComboBox
* src/plugins/soundex.glade: support ComboBox


svn: r3346
2004-08-06 03:08:27 +00:00
Don Allingham
e2122c9d67 * src/AttrEdit.py: use ComboBox
* src/NameEdit.py: use ComboBox
* src/gramps.glade: use ComboBox
* src/plugins/ChangeTypes.py: use ComboBox
* src/plugins/changetype.glade: use ComboBox


svn: r3333
2004-08-05 04:14:21 +00:00
Don Allingham
1f7594cfee * src/WriteXML.py: always write the default location for a place
* src/EditPerson.py: don't for write of multimedia objects if
not edited
* src/ImageSelect.py: don't for write of multimedia objects if
not edited
* src/AutoComp.py: build ListStore for ComboBox and Entry
* src/AddSpouse.py: use ComboBox
* src/Marriage.py: use ComboBox
* src/gramps.glade: Switch from gtk.Combo to gtk.ComboBox and
gtk.ComboxEntry
* src/EventEdit.py: handle autocompletion
* src/RelLib.py: remove cPickle import
* src/GrampsDbBase.py: fix has_handle functions


svn: r3325
2004-08-04 04:53:29 +00:00
Don Allingham
4be4ae9e76 * src/WriteGedcom.py: move up from plugins directory
* src/ReadGedcom.py: move up from plugins directory
* src/gedcomimport.glade: move up from plugins directory
* src/gedcomexport.glade: move up from plugins directory


svn: r3310
2004-08-01 21:38:50 +00:00
Don Allingham
eda23b8ecc * src/AddSpouse.py: fix gender selection
* src/DbPrompter.py: support other DB formats
* src/GrampsBSDDB.py: BSDDB format, derived from GrampsDbBase
* src/GrampsDbBase.py: base class for database classes
* src/GrampsGEDDB.py: GEDCOM format, derived from GrampsDbBase
* src/GrampsXMLDB.py: XML format, derived from GrampsDbBase
* src/PeopleModel.py: handle rebuilds better
* src/RelLib.py: use try_to_find_person_from_handle
* src/WriteXML.py: use gramps ids instead of handles
* src/const.py.in: handle family relations correctly
* src/gramps_main.py: remove prefix settings
* src/data/gnome-mime-application-x-gramps-xml.png: new icon
* src/data/gramps.applications: support for x-gramps-xml
* src/data/gramps.keys: support for x-gramps-xml
* src/data/gramps.mime: support for x-gramps-xml
* src/data/gramps.schemas: added event format
* src/data/gramps.xml: support for x-gramps-xml
* src/plugins/ReadGedcom.py: start of GEDDB support
* src/plugins/WriteGedcom.py: start of GEDDB support


svn: r3306
2004-08-01 04:21:31 +00:00
Don Allingham
1cd90a8bb0 * src/const.py.in: fix relationship types
svn: r3303
2004-07-31 03:51:34 +00:00
Don Allingham
74917677ad * src/GrampsBSDDB.py: broke out support for database class to
make it easier to support multiple backends in the future
* src/RelLib.py: broke out support for database class to
make it easier to support multiple backends in the future
* src/AddSpouse.py: better support for gay unions
* src/ChooseParents.py: better support for gay unions
* src/FamilyView.py: better support for gay unions
* src/Marriage.py: better support for gay unions
* src/ReadXML.py: better support for gay unions
* src/gramps.glade: better support for gay unions
* src/gramps_main.py: better support for gay unions
* src/Check.py: better support for gay unions
* src/ReadGedcom.py: better support for gay unions


svn: r3302
2004-07-30 18:56:49 +00:00
Alex Roitman
e74691df11 * src/GrampsCfg.py: Remove unneeded id_edit widget.
* src/gramps.glade: Manually switch toolbar items from
to ToolButtons to buttons to work around libglade bug. Remove
unused id_edit widget and the label.
* src/mergedata.glade: Switch button order to comply with HIG.
* src/plugins/merge.glade: Switch button order to comply with HIG.


svn: r3294
2004-07-29 04:40:09 +00:00
Alex Roitman
be8ec8fd9d * src/data/Makefile.am: Uninstall everything that we install.
svn: r3291
2004-07-28 23:38:34 +00:00
Don Allingham
95e62181d3 * src/RelLib.py, etc.: convert get_id to get_handle
svn: r3290
2004-07-28 02:29:07 +00:00
Alex Roitman
01c169c0f4 * src/data/Makefile.am: Use HUP instead of default SIGTERM.
svn: r3284
2004-07-26 21:30:05 +00:00