Commit Graph

1965 Commits

Author SHA1 Message Date
Alex Roitman
c867ab1937 * src/GrampsDb/_GrampsBSDDB.py (_find_by_handle): delegate key
lookup to dbmap.db; (transaction_commit, transaction_begin):
Enable removing/rebuilding of the secondary index.
* src/GrampsDb/_ReadXML.py (LineParser): Improve first pass.


svn: r5861
2006-02-01 06:25:51 +00:00
Alex Roitman
b13d42d960 * src/GrampsDb/_GrampsDbBase.py (find_next_*_gramps_id): check
whether the key exists, do not read.
* src/GrampsDb/_GrampsBSDDB.py (find_next_*_gramps_id): Remove
methods, as there's no need to override ones the DbBase now.


svn: r5860
2006-01-31 20:39:25 +00:00
Don Allingham
3bb985186d * src/EditPerson.py: clean up building notebook pages
* src/DisplayTabs.py: support for drag-n-drop


svn: r5859
2006-01-31 15:13:54 +00:00
Alex Roitman
2c1d8b226c * src/GrampsDb/_GrampsBSDDB.py (get_gramps_ids): Move to
GrampsDbBase; (_get_obj_from_gramps_id,_find_from_handle): Only
read data if the key exists.
* src/GrampsDb/_GrampsDbBase.py (get_gramps_ids,has_gramps_id):
Add methods; (check_*_from_handle): Add methods that make sure
that object exists in the db, create as necessary, but do not read
if it exists; (_check_from_handle): Add lower-level method;
(_find_from_handle): Only read data if the key exists.
* src/GrampsDb/_GrampsInMemDB.py (get_gramps_ids): Move to
GrampsDbBase.
* src/GrampsDb/_ReadXML.py: Multiple improvements.


svn: r5858
2006-01-31 01:41:55 +00:00
Don Allingham
2c4f2b8225 * src/DdTargets.py: Add support for EventRef
* src/DisplayTabs.py: Drag and drop support in base class
* src/EditPerson.py: remove unused functions
* src/edit_person.glade: privacy flag change
* src/gramps.glade: add tooltip


svn: r5857
2006-01-30 05:01:21 +00:00
Alex Roitman
ed311ea2d2 * src/Exporter.py: Set initial person in case there's no active.
* src/ViewManager.py (find_initial_person): Remove method.
* src/GrampsDb/_GrampsDbBase.py (find_initial_person): Add method.


svn: r5856
2006-01-29 22:05:20 +00:00
Alex Roitman
79ae8c886f * src/GrampsDb/_WriteXML.py (write_place_obj): Always write ptitle.
* src/GrampsDb/_ReadXML.py: Prase file and ptitle tags.
* example/gramps/example.gramps: Update XML example.


svn: r5855
2006-01-29 21:39:36 +00:00
Don Allingham
dc1f60787c * src/DisplayTabs.py: hook up event ref editor
svn: r5854
2006-01-29 05:53:17 +00:00
Alex Roitman
8c39741dae * doc/grampsxml.dtd: Events preceed people.
* doc/grampsxml.rng: Events preceed people.
* src/GrampsDb/_WriteXML.py: Events preceed people.
* src/GrampsDb/_ReadXML.py: Parse old and new style events, old
witnesses, new eventrefs.


svn: r5853
2006-01-29 05:12:01 +00:00
Alex Roitman
dbdd8fe0e6 * src/GnomeMime.py: Import neede modules.
svn: r5852
2006-01-29 04:53:08 +00:00
Don Allingham
dfcdcab183 * src/DisplayTabs.py: add SourceRefModel, NameEmbedList,
AddrEmbedList
* src/EditPerson.py: Use new EmbedLists
* src/ViewManager.py: set max value on set_fraction
* src/edit_person.glade: remove old lists
* src/GrampsDb/_ReadGedcom.py: fix types


svn: r5850
2006-01-29 04:30:16 +00:00
Don Allingham
698ba24d11 * src/DisplayTabs.py: add SourceRefModel
* src/EditFamily.py: fix variable names


svn: r5849
2006-01-28 20:38:03 +00:00
Don Allingham
01041620c5 * src/GrampsDb/_GrampsBSDDB.py: qualify strxfrm
svn: r5848
2006-01-28 19:32:09 +00:00
Alex Roitman
52ba278ea1 * src/GrampsDb/_GrampsBSDDB.py: Typos.
* src/GrampsDb/_WriteXML.py: Minor corrections.
* doc/grampsxml.rng: Updates.
* example/gramps/example.gramps: New XML example.


svn: r5847
2006-01-28 04:23:37 +00:00
Alex Roitman
6104ff1053 * doc/grampsxml.rng: Update to reflect new XML.
svn: r5846
2006-01-28 01:05:04 +00:00
Alex Roitman
d5c04162a2 * doc/grampsxml.dtd: Update to reflect new XML.
* src/GrampsDb/_ReadGedcom.py (parse_repo_ref_caln): Properly set
media type.
* src/GrampsDb/_WriteXML.py: More XML updates.


svn: r5845
2006-01-28 00:43:27 +00:00
Alex Roitman
9b90eeb365 * src/GrampsDb/_ReadGedcom.py: Typo.
* src/GrampsDb/_GrampsBSDDB.py: Correct duplicate event IDs on upgrade.
* src/GrampsDb/_WriteXML.py: More XML updates.


svn: r5844
2006-01-27 20:38:33 +00:00
Don Allingham
3b1f96013a * src/GrampsDb/_ReadGedcomp.py: preselect gramps ids for events
svn: r5843
2006-01-27 18:53:22 +00:00
Alex Roitman
25c2210169 * src/GrampsDb/_ConstXML.py: More XML export fixes.
* src/GrampsDb/_GrampsBSDDB.py: More XML export fixes.
* src/GrampsDb/_GrampsDbBase.py: More XML export fixes.
* src/GrampsDb/_GrampsInMemDB.py: More XML export fixes.
* src/GrampsDb/_WriteXML.py: More XML export fixes.


svn: r5842
2006-01-27 06:54:35 +00:00
Don Allingham
e71ae9e24e * src/GrampsDb/_ReadGedcom.py: fix repeated translation call
svn: r5841
2006-01-27 05:01:48 +00:00
Alex Roitman
bad0627976 * src/GrampsDb/_WriteXML.py: Handle some of new XML.
svn: r5840
2006-01-27 02:13:17 +00:00
Alex Roitman
607d14e942 * src/GrampsDb/_ConstXML.py: Add new file.
* src/GrampsDb/Makefile.am: Ship new file.
* src/GrampsDb/_GrampsBSDDB.py: Convert family and parent family
relations from integer to tuple on upgrade.
* src/GrampsDb/_WriteGedcom.py: Convert from tuple to string.


svn: r5839
2006-01-26 22:58:49 +00:00
Don Allingham
33360a9a7f * src/DisplayModels.py: optimization
* src/DisplayTabs.py: improved docs
* src/ViewManger.py: remove import_tool_callback


svn: r5838
2006-01-26 22:31:34 +00:00
Alex Roitman
f958ac04cf 'generic' for the namespace argument; Remove unneeded import.
svn: r5837
2006-01-26 19:49:40 +00:00
Alex Roitman
df11430fc2 * src/GenericFilters.py (get_filters): Use default value of
'generic' for the namespace argument.


svn: r5836
2006-01-26 19:47:42 +00:00
Alex Roitman
5152e29d9c * src/GrampsDb/_GrampsBSDDB.py: Add proper upgrade path from
within load.


svn: r5833
2006-01-25 21:06:23 +00:00
Don Allingham
3f1c047124 * src/DisplayTabs.py: use idle_loop to load data for source
backreferences
* src/EditSource.py: close the BackReferences tab to turn off the
idle loop if still active
* src/GrampsDb/_GrampsBSDDB.py: close secondary indexes before primary


svn: r5829
2006-01-25 17:59:22 +00:00
Don Allingham
086b1f5e17 * src/DisplayTabs.py: SourceRef tab
* src/EditSource.py: New source ref dialog
* src/grampsl.glade: New source ref dialog
* src/GrampsDb/_GedTokens.py: repository tokens
* src/GrampsDb/_ReadGedcom.py: repository support


svn: r5828
2006-01-25 05:07:10 +00:00
Alex Roitman
4f5f5df408 * src/GrampsDb/_GrampsBSDDB.py (load): Set max locks and objects
to 25000; Add DB_RECOVER flag to the environment.


svn: r5827
2006-01-25 00:03:31 +00:00
Don Allingham
c0aeb95246 * src/DisplayModels.py: Fix column handling for repositories
* src/RepositoryView.py: Columns for repositories
* src/GrampsDb/_GrampsDbBase.py: default columns settings for repositories
* src/GrampsDb/_ReadGedcom.py: Import repository information
* src/RelLib/_Event.py: check Event type values


svn: r5826
2006-01-24 21:09:34 +00:00
Don Allingham
e4e6e2e7de * src/DisplayTabs.py: Add source ref model/tab
* src/PeopleModel.py: specify handle column
* src/PersonView.py: fix selection column
* src/EditFamily.py: remove icon in father/mother column, add source tab


svn: r5825
2006-01-24 04:13:21 +00:00
Don Allingham
d2092f04d7 * src/DisplayState.py: Warning log handler, add timeout handler
svn: r5824
2006-01-23 22:36:34 +00:00
Don Allingham
4b01a84b63 * src/DisplayState.py: Warning log handler
* src/EditFamily.py: remove icon in father/mother column
* src/EditPerson.py: remove commented out code
* src/GrampsWidgets.py: add WarnButton
* src/ViewManager.py: use WarnButton in the status bar
* src/GrampsDb/_GedTokens.py: Add HEAD
* src/GrampsDb/_ReadGedcom.py: New min-lexical analyzer


svn: r5823
2006-01-23 21:48:34 +00:00
Don Allingham
e67691eba7 * src/DisplayState.py: add info button
* src/ViewManager.py: add info button
* src/GrampsWidgets.py: add optional size to icon button


svn: r5822
2006-01-23 04:09:20 +00:00
Don Allingham
b275006372 * src/GrampsDb/_ReadGedcom.py: fix event handling, fix skip_record
svn: r5821
2006-01-23 01:55:29 +00:00
Don Allingham
5a04ba7350 * src/Makefile.am: remove PeopleView.py
* src/PeopleView.py: removed, replaced by PersonView
* src/PersonView.py: set ellipsize property
* src/GrampsDb/_ReadGedcom.py: fix event handling


svn: r5820
2006-01-23 01:27:46 +00:00
Don Allingham
ecd05e4e79 * src/PeopleModel.py: fix sorting of subnames
* src/Utils.py: fix GEDCOM mappings
* src/GrampsDb/_ReadGedcom.py:  More updates, bring up to the new RelLib


svn: r5816
2006-01-22 02:06:46 +00:00
Alex Roitman
61a061e930 * src/ViewManager.py (pulse_progressbar): Print percentage text;
Set cursor to WATCH on open and import.


svn: r5815
2006-01-21 20:55:06 +00:00
Don Allingham
72afadb1ff * src/PageView.py: remove debug statements
* src/ViewManager.py: check for existing action group before removing


svn: r5814
2006-01-21 05:05:25 +00:00
Alex Roitman
868b662213 * src/GrampsDb/_GrampsDbBase.py: Move _update_reference_map into
_commite_base.
* src/GrampsDb/_GrampsBSDDB.py: Move _update_reference_map into
_commite_base.


svn: r5811
2006-01-20 21:52:26 +00:00
Don Allingham
ee7ad60fa8 * src/GenericFilter.py: implement short-circuit if only rule is
Everyone
* src/NameDisplay.py: optimization
* src/PeopleModel.py: optimization of data building


svn: r5810
2006-01-20 21:43:40 +00:00
Don Allingham
6df41590dd * src/GrampsDb/_GrampsBSDDB.py: remove function call in find_surname
svn: r5809
2006-01-20 20:23:38 +00:00
Alex Roitman
d03d8273a9 * src/GrampsDb/_GrampsBSDDB.py (transaction_begin,
transaction_commit): disable secondary index removal/rebuilding
due to bugs in bsddb; (_update_reference_map): explicitly check
for addition versus update.


svn: r5808
2006-01-20 19:23:42 +00:00
Don Allingham
c7a48305fd * src/PageView.py: add ellipsize, better dirty/clean management,
set fixed column width and fixed height
* src/GrampsDb/_GrampsDbBase.py: handle default column sizes


svn: r5807
2006-01-20 18:18:03 +00:00
Richard Taylor
9ed1b57ce5 added automake stuff
svn: r5806
2006-01-20 16:39:58 +00:00
Richard Taylor
1e82885901 added header to Objectselector
svn: r5805
2006-01-20 16:31:25 +00:00
Richard Taylor
e6b645cd2b integrated object selector into edit family
svn: r5804
2006-01-20 10:30:35 +00:00
Don Allingham
24e095c818 * src/DisplayModels.py: use dirty flag to only draw when requested
* src/PageView.py: use dirty flag to only draw when requested
* src/PeopleView.py: use dirty flag to only draw when requested
* src/PeopleModel.py: provide simple caching
* src/ViewManager.py: control dirty flags


svn: r5803
2006-01-20 05:33:38 +00:00
Richard Taylor
37239cd822 working filters in Person view
svn: r5802
2006-01-19 21:13:00 +00:00
Alex Roitman
6d46005a71 * src/plugins/ChangeNames.py (on_ok_clicked): Properly set batch
transaction.
* src/GrampsDb/_GrampsDbBase.py (transaction_begin): Add batch
argument; (set_batch): Remove method.


svn: r5800
2006-01-19 18:18:55 +00:00
Richard Taylor
568ba555b1 ground work for filters
svn: r5799
2006-01-19 16:52:29 +00:00
Alex Roitman
679d900a66 * src/GrampsDb/_GrampsBSDDB.py (transaction_begin): Disconnect
unneeded secondary indices; (transaction_commit): Create new
secondary indices to replace the ones removed.


svn: r5798
2006-01-19 16:30:45 +00:00
Richard Taylor
b8bf7b79dc added new button for person view.
svn: r5797
2006-01-19 16:03:09 +00:00
Alex Roitman
85451fb764 * src/GrampsDb/_ReadGrdb.py (importData): Properly set batch
transaction.
* src/plugins/Check.py: Properly set batch transaction.
* src/plugins/ImportGeneWeb.py: Properly set batch transaction.
* src/plugins/ImportvCard.py: Properly set batch transaction.
* src/plugins/TestCaseGenerator.py: Properly set batch transaction.


svn: r5796
2006-01-19 04:30:40 +00:00
Don Allingham
2c2bcaf04f * src/GrampsDb/_ReadGedcom.py: fix MARNM
svn: r5795
2006-01-19 04:25:36 +00:00
Alex Roitman
5b0cd6fe27 * src/GrampsDb/_ReadXML.py (parse): Properly set batch transaction.
svn: r5794
2006-01-19 04:18:12 +00:00
Don Allingham
f7585d2e1c * src/GrampsWidgets.py: edit label for column header
svn: r5792
2006-01-19 02:06:27 +00:00
Don Allingham
d3e381faca * src/EditFamily.py: monitor for changed people and update if needed,
CellRendererCombo for child relations


svn: r5791
2006-01-18 22:33:27 +00:00
Alex Roitman
8fbe67e6b0 * src/GrampsDb/_GrampsBSDDB.py: upgrade from gramps20.
svn: r5790
2006-01-18 22:02:24 +00:00
Alex Roitman
e22e5cf09a * src/GrampsDb/_GrampsBSDDB.py (rebuild_secondary): Proper
rebuild; convert surnames secondary index to DUPSORTed BTREE.


svn: r5789
2006-01-18 21:00:02 +00:00
Alex Roitman
f8ee1159db * src/GrampsDb/_GrampsBSDDB.py (rebuild_secondary): Proper rebuild.
svn: r5788
2006-01-18 20:37:15 +00:00
Don Allingham
6f89860046 * src/DisplayTabs.py: mediatab improvements
* src/EditFamily.py: monitor for changed people and update if needed.


svn: r5787
2006-01-18 19:36:23 +00:00
Alex Roitman
a2674e2607 * src/GrampsDb/_GrampsBSDDB.py (load): Use BTREE for
reference_map; sort reference_map_referenced_map index.
* src/GrampsDb/_ReadGedcom.py (parse_record): Restore add def_src.


svn: r5786
2006-01-18 16:51:06 +00:00
Don Allingham
6daee532d9 * src/DbPrompter.py: removed
* src/gramps.glade: delete unused stuff


svn: r5785
2006-01-18 05:16:10 +00:00
Don Allingham
4c669cba0d * src/ViewManger.py: progressbar callbacks
* src/GrampsDb/_GrampsBSDDB.py: progressbar callbacks
* src/GrampsDb/_GrampsGEDDB.py: progressbar callbacks
* src/GrampsDb/_ReadXML.py: progressbar callbacks
* src/GrampsDb/_ReadGedcom.py: progressbar callbacks


svn: r5783
2006-01-18 04:08:28 +00:00
Alex Roitman
37ee69aabe * src/GrampsDb/_ReadGedcom.py (parse_record): Do not add def_src
to person/family. Need to optimize the performance first.


svn: r5782
2006-01-17 21:50:39 +00:00
Alex Roitman
fdf1118e27 * src/GrampsDb/_GrampsDbBase.py: Set batch transaction property in
the constructor.
* src/GrampsDb/_GrampsBSDDB.py: Back to durable transactions, set
TXN_NOSYNC flag only on batch transactions.


svn: r5781
2006-01-17 21:17:14 +00:00
Richard Taylor
f7a15cf601 make ref update optional
svn: r5780
2006-01-17 21:10:20 +00:00
Alex Roitman
a01b665403 * src/GrampsDb/_GrampsDbBase.py (redo): Properly abort redo action
when no redo is available.


svn: r5778
2006-01-17 19:43:23 +00:00
Martin Hawlisch
7b1a104e2f * src/EventView.py (ui_definition): Add filter menu entry
* src/FamilyList.py (ui_definition): Add filter menu entry
* src/PlaceView.py (ui_definition): Add filter menu entry
* src/RepositoryView.py (ui_definition): Add filter menu entry
* src/SourceView.py (ui_definition): Add filter menu entry
* src/GenericFilter.py: Adding generic filter widget to be used in all list views; Custom filter rules now get prefixed by primary object type
* src/PageView.py: Add filter control to all list views
* src/PersonView.py: Filter handling moved to GenericFiler


svn: r5777
2006-01-17 15:11:15 +00:00
Richard Taylor
69388f8f2a UI improvements
svn: r5775
2006-01-17 14:54:46 +00:00
Richard Taylor
e41bf2831e selection and preview of person and family
svn: r5774
2006-01-17 13:43:29 +00:00
Richard Taylor
c6329f948c basic object selection now working
svn: r5773
2006-01-17 08:38:34 +00:00
Don Allingham
06731ccf4f * src/AddMedia.py: glade path
* src/AddrEdit.py: glade path
* src/AttrEdit.py: glade path
* src/DateEdit.py: glade path
* src/EventEdit.py: glade path
* src/GrampsCfg.py: glade path
* src/ImageSelect.py: glade path
* src/Sources.py: glade path
* src/StyleEditor.py: glade path
* src/const.py.in: glade path
* src/Marriage.py: glade path
* src/unlocked.png: added
* src/GrampsDb/_ReadGedcom.py: optimize UI updates, add test code


svn: r5772
2006-01-17 05:03:30 +00:00
Don Allingham
a88ebca896 * src/gramps.glade: remove lock border
* src/GrampsDb/_ReadGedcom.py: optimize UI updates


svn: r5769
2006-01-17 03:25:39 +00:00
Alex Roitman
c13b57ca18 transaction; set db.DB_TXN_NOSYNC flag on an environment;
Remove lock limits; set db.DB_LOG_AUTOREMOVE flag; add checkpoints
on: open, batch transaction start and end; close.
* src/GrampsDb/_GrampsDbBase.py (change_database, no_database):
close existing db before changing to the new one.


svn: r5768
2006-01-16 22:49:49 +00:00
Alex Roitman
cc83b089cf * src/ViewManager: Remov unused code.
* src/GrampsDb/_GrampsBSDDB.py: Do small txn during batch
transaction; set db.DB_TXN_NOSYNC flag on an environment.


svn: r5767
2006-01-16 22:07:24 +00:00
Martin Hawlisch
f9b6172435 * src/PedView.py: Edit on doublecklick; only right click gives optionsmenu; Colors similar to tango icons
svn: r5766
2006-01-16 21:53:56 +00:00
Don Allingham
1070ca5c17 * src/gramps.glade: reposition add/delete buttons, remove separator
between parents and relationship info


svn: r5765
2006-01-16 21:10:53 +00:00
Don Allingham
f895c54481 * src/gramps.glade: reposition add/delete buttons
svn: r5764
2006-01-16 20:49:59 +00:00
Richard Taylor
cea14516a8 refactored object frame in object selector
svn: r5760
2006-01-16 13:32:59 +00:00
Don Allingham
5bd4665b21 * src/DisplayTabs.py: add button control class
* src/EditFamily.py: add icons


svn: r5755
2006-01-15 04:49:13 +00:00
Don Allingham
b84af7731f * src/DisplayTabs.py: fix double click
* src/EditFamily.py: fix double click
* src/GrampsWidgets.py: add SimpleButton
* src/ToolTips.py: Family tool tip


svn: r5754
2006-01-15 01:26:47 +00:00
Richard Taylor
5b8a5e4154 futher development of ObjectSelector
svn: r5753
2006-01-14 22:21:56 +00:00
Don Allingham
84394c8805 * src/DisplayTabs.py: fix scrolled window
* src/EditFamily.py: delete button
* src/gramps.glade: clean up the window.


svn: r5752
2006-01-14 18:02:07 +00:00
Don Allingham
8f43528b12 * src/const.py.in: remove unused variables
* src/gramps.glade: remove unused dialogs


svn: r5751
2006-01-14 05:27:48 +00:00
Don Allingham
0e48f23eb2 * src/DisplayTabs.py: Move event list
* src/EditFamily.py: add editing of people, add relationship type
* src/EventEdit.py: move event list
* src/FamilyView.py: remove common widgets
* src/gramps.glade: EditFamily changes
* src/GrampsWidgets.py: Common widgets


svn: r5749
2006-01-13 22:28:54 +00:00
Alex Roitman
58d66f6708 * src/ViewManager.py: Proper label change for Undo/Redo.
svn: r5748
2006-01-13 20:53:10 +00:00
Richard Taylor
244e17066a added int edit
svn: r5747
2006-01-13 20:10:56 +00:00
Martin Hawlisch
586422eef0 * src/PedView.py: Use the same font as used in the gtk style
svn: r5745
2006-01-13 16:41:42 +00:00
Richard Taylor
2892a0e464 layout improvements
svn: r5744
2006-01-13 15:28:23 +00:00
Don Allingham
480bacfa5d * src/DisplayTabs.py: sub tabs for edit dialogs
* src/EditFamily.py: family editor integration
* src/gramps.glade: family editor changes


svn: r5732
2006-01-13 00:45:22 +00:00
Alex Roitman
f16b7b1ec3 Update
svn: r5731
2006-01-12 23:39:54 +00:00
Alex Roitman
bc05ec703a Cut long lines
svn: r5730
2006-01-12 23:34:33 +00:00
Richard Taylor
ab51961c95 initial outline of object selector
svn: r5729
2006-01-12 22:09:42 +00:00
Alex Roitman
f213a120a4 * src/ViewManager.py: Connect undo handler to the menu item.
* src/GrampsDb/_GrampsBSDDB.py: Place reference_map under
transaction management.
* src/GrampsDb/_GrampsDbBase.py: reference_map changes.


svn: r5728
2006-01-12 22:02:58 +00:00
Alex Roitman
c01010fc81 * src/Assistant.py: Many changes.
* src/Exporter.py: Work with new Assistant.
* src/StartupDialog.py: Work with new Assistant.
* src/GrampsLogger/_ErrorReportAssistant.py: Work with new Assistant.
* src/gedcomexport.glade, src/gedcomimport.glade: Move to GrampsDb.


svn: r5725
2006-01-12 06:09:14 +00:00
Don Allingham
696797281c * src/FamilyList.py: call family editor
* src/StartupDialog.py: pwm in try/except
* src/gramps.py: don't fail on missing SIG_CHILD


svn: r5724
2006-01-12 05:40:44 +00:00
Don Allingham
d0905989e8 * src/EditPerson.py: removed unused variable
* src/EditFamily.py: start of the family editor
* src/FamilyView.py: call family editor
* src/gramps.glade: family editor changes


svn: r5718
2006-01-12 00:06:33 +00:00
Martin Hawlisch
312696477f * src/PedView.py: Now using cairo :-) Changed menu handling
svn: r5714
2006-01-11 14:41:07 +00:00