Commit Graph

2822 Commits

Author SHA1 Message Date
Gerald Britton
07decce138 Tweaks
svn: r14143
2010-01-26 14:21:51 +00:00
Doug Blank
294f59bb7b If detached, force active
svn: r14142
2010-01-26 13:56:55 +00:00
Doug Blank
81bb97e2df Refinements on statusbar update; only updated when really necessary; fixed bug in updating when db is closed
svn: r14141
2010-01-26 13:38:05 +00:00
Doug Blank
e7c5d7a207 Start out dirty and not active; removed debugging stuff
svn: r14140
2010-01-26 13:04:01 +00:00
Doug Blank
cf4748ecaf Gramplets only update when active, detached, or forced
svn: r14138
2010-01-26 12:00:01 +00:00
Gerald Britton
8f0582df8a Use built-in functions to replace for loops:
Old code:

for x in y:
  f(x)

New Code:

map(f, y)

Also use defaultdict instead of simple dict when advantageous and use list comprehensions
instead of for loops where map() could be used but requires lambdas.


svn: r14135
2010-01-25 17:45:21 +00:00
Brian Matherly
c9cb7e60c9 Move GEDCOM date functions into libgedcom.
svn: r14125
2010-01-25 04:54:22 +00:00
Brian Matherly
cd30f4db2f Continued work on GEP008: move src/Mime to src/gen/mime.
svn: r14118
2010-01-24 20:17:14 +00:00
Doug Blank
09b0e50d41 Added est date modifier type (about, or after/before)
svn: r14117
2010-01-24 16:19:55 +00:00
Nick Hall
4a529d0c28 Fix selected handles for merge operations
svn: r14108
2010-01-23 15:31:50 +00:00
Gerald Britton
1f2469b09f Simplify with built-in functions where possible. e.g.
change [x for x in y if x] to filter(None, y)
change [f(x) for x in y] to map(f, x)
change [x for x in y] to list(y)

These changes reduce source code size and complexity and produce some minor performance gains

svn: r14104
2010-01-21 18:42:53 +00:00
Doug Blank
97c058af9b probably_alive and CalcEstDates now share same codebase; rewritten probably_alive
svn: r14102
2010-01-20 13:39:37 +00:00
Serge Noiraud
f06acae4b1 GeoView : issue 3497 adds filters.
javascript errors when switching between maps.


svn: r14100
2010-01-19 19:34:47 +00:00
Peter Landgren
418618d856 Better output of pre- and unformatted notes and of end notes references.
svn: r14098
2010-01-19 12:47:48 +00:00
Peter Landgren
e18dd1d560 Better output of pre- and unformatted notes and of end notes references.
svn: r14097
2010-01-19 12:47:17 +00:00
Gerald Britton
517a5e3c90 Tweaks and minor refactoring
svn: r14096
2010-01-18 20:14:59 +00:00
Jérôme Rapinat
659c51a011 2384: KinshipReport use hard to translate sentences (by Josip)
svn: r14094
2010-01-18 15:46:32 +00:00
Brian Matherly
f04880ec09 Move gettext, ngettext and sgettext calls into the new ggettext module. All of them return unicode all of the time.
svn: r14091
2010-01-18 04:42:17 +00:00
Doug Blank
943dbc97b4 Added a yield occasionaly in main
svn: r14083
2010-01-16 23:02:10 +00:00
Doug Blank
f446b66e34 Make main a generator
svn: r14082
2010-01-16 23:00:26 +00:00
Gary Burton
8e08e3199c Fix for tree model changes. See bug 3503
svn: r14081
2010-01-16 22:23:24 +00:00
Peter Landgren
98ad2bda38 Trying to fix Notes and end notes ref. It is better now, but still some more to do.
svn: r14079
2010-01-14 19:53:08 +00:00
Brian Matherly
47ea087ab6 Continued work on GEP008: Move contents of ansel_utf8.py into libgedcom.py since that is the only place it is used.
svn: r14075
2010-01-14 05:45:51 +00:00
Brian Matherly
d9a0ab8a90 Continued work on GEP008: Consolidate src/FilterEditor files into one file and move it to gui/filtereditor.py.
svn: r14074
2010-01-14 04:58:30 +00:00
Brian Matherly
c5f54d0cfc Continued work on GEP008: Move src/BasicUtils/_NameDisplay.py to src/gen/display.
svn: r14072
2010-01-14 04:08:04 +00:00
Peter Landgren
61360acb4e Fix of issue 2848.
svn: r14066
2010-01-13 18:47:34 +00:00
Peter Landgren
27dd026a97 Fix of issue 2848.
svn: r14064
2010-01-13 18:40:55 +00:00
Jérôme Rapinat
289e77ef8b typo
svn: r14062
2010-01-13 16:14:34 +00:00
Nick Hall
4a87cbbe61 Add Most Recently Used object functionality to Go menu
svn: r14061
2010-01-13 15:59:36 +00:00
Peter Landgren
334d0d6e2a Update after Brians rev 14053.
svn: r14056
2010-01-13 07:57:58 +00:00
Brian Matherly
4b1c61a6e7 Make in-law relationships easier to translate for the Kinship Report.
svn: r14053
2010-01-13 04:31:42 +00:00
Benny Malengier
61de0898af 1. remove leftover from using nodeid as iter
2. fix error in add on placetreeview: preset values with node.name of parents


svn: r14051
2010-01-12 21:50:37 +00:00
Jérôme Rapinat
12a4c7bebf 1683 Untranslatable text in Relationship calculator window - was the last one still using old API
svn: r14046
2010-01-12 16:11:39 +00:00
Jérôme Rapinat
3ebe3def2f get rid of generation limitation (was 30)
svn: r14045
2010-01-12 14:53:00 +00:00
Jérôme Rapinat
90b902fda3 Do not need to translate DEBUG tools (name, description)
svn: r14043
2010-01-12 13:01:22 +00:00
Brian Matherly
4f2f5f8986 Add ngettext, sgettext, sngettext to libtranslate.
svn: r14042
2010-01-12 12:54:59 +00:00
Jérôme Rapinat
9ccdb167cd Do not need to translate variables
svn: r14041
2010-01-12 10:51:36 +00:00
Nick Hall
a4dcfa3fc3 Bug fixes for commit 14023
svn: r14037
2010-01-11 22:37:18 +00:00
Doug Blank
f15f18056b Some minor refinements
svn: r14034
2010-01-11 19:42:35 +00:00
Jérôme Rapinat
8c851f7506 1683 Untranslatable text in Relationship calculator window - keep level logic but avoid index out of range
svn: r14033
2010-01-11 17:11:13 +00:00
Doug Blank
44b940f07f 3511: Minor improvements on new 'Calculate Estimated dates' tool
svn: r14032
2010-01-11 16:31:22 +00:00
Serge Noiraud
aec92a4929 ODFDoc : issue 3439, 3440, 3461, 3462
svn: r14026
2010-01-11 08:11:50 +00:00
Brian Matherly
252ef6daee Continued work on GEP008: Move BasicUtils/UpdateCallback.py to gen/updatecallback.py.
svn: r14025
2010-01-10 20:21:10 +00:00
Benny Malengier
2a36355a8b fix goto_handle on row update
change placetreeview somewhat, further to discuss


svn: r14024
2010-01-10 20:11:18 +00:00
Nick Hall
b503fa2e25 Extend history functionality (back/forward) and active-changed signals to all primary objects
svn: r14023
2010-01-10 19:19:33 +00:00
Jérôme Rapinat
9b7d972c99 1683 Untranslatable text in Relationship calculator window - no crash on rel_xx tests - get working with current API (contribution by Andrew I Baznikin, lcc)
svn: r14021
2010-01-10 16:32:57 +00:00
Benny Malengier
2e65bfcce4 Extra keybinding/buttonbinding on treeviews for usability
Shift+enter and dblclick: expand group and children


svn: r14019
2010-01-10 12:20:13 +00:00
Jérôme Rapinat
1946440fc2 1683 Untranslatable text in Relationship calculator window - no crash on rel_xx tests - get working with current API (contribution by Andrew I Baznikin)
svn: r14018
2010-01-10 10:03:59 +00:00
Jérôme Rapinat
5d3dc7e037 1683 Untranslatable text in Relationship calculator window - no crash on rel_xx tests - get working with current API (contribution by Andrew I Baznikin)
svn: r14017
2010-01-10 09:12:33 +00:00
Doug Blank
4093c1060c Now searches spouse, and their familes, for evidence
svn: r14015
2010-01-10 07:45:10 +00:00
Doug Blank
2d60b8763a Enhanced Calculate Estimated Dates tool
svn: r14014
2010-01-10 04:06:44 +00:00
Gerald Britton
2b12f3df07 Use defaultdict type where possible for minor performance gain and source code simplification
svn: r14011
2010-01-09 19:54:32 +00:00
Gerald Britton
721f97459e Fix duplicate object ids in glade files
svn: r14009
2010-01-09 19:39:43 +00:00
Jérôme Rapinat
f56402cf37 3473: To dynamicaly change calendar option on the Gramps session
svn: r14008
2010-01-09 17:51:58 +00:00
Doug Blank
36fa65944d Removed unneeded imports
svn: r14006
2010-01-09 17:12:45 +00:00
Benny Malengier
0ec49507ed Renable enter to expand nodes on the treeviews
svn: r14005
2010-01-09 16:16:52 +00:00
Doug Blank
bfa7687058 Fixed code that gave warning: GtkWarning: gtk_box_pack: assertion 'child->parent == NULL' failed
svn: r14003
2010-01-09 13:40:40 +00:00
Benny Malengier
de2d669763 3275: PageView reworking, changes by B. Malengier and N.Hall
Specifically: improve new treeview by using a linked list implementation so 
 iters can be quickly iterated over
Also: progressdialog on long personview loads.


svn: r14002
2010-01-09 11:10:32 +00:00
Doug Blank
debfc3dd78 Fixed issue of not re-docking gramplet from whence it came (reported by Rob); refined some code
svn: r13999
2010-01-08 20:06:51 +00:00
Jérôme Rapinat
2f7f7ac5f8 pylint
svn: r13998
2010-01-08 16:10:54 +00:00
Serge Noiraud
e346c68fb1 GeoView : issue 3472; using date format preference.
svn: r13992
2010-01-07 22:02:38 +00:00
Serge Noiraud
da41542da6 ODFDoc : issue 3440; only remove fo:max-height.
svn: r13989
2010-01-07 20:40:24 +00:00
Peter Landgren
ed34d4f62f Fix of issue 3507.
svn: r13986
2010-01-07 14:39:53 +00:00
Doug Blank
3664fbb913 Added on_delete_event signal handler to surpress RuntimeWarning: missing handler
svn: r13983
2010-01-07 14:10:26 +00:00
Jérôme Rapinat
83d7448c1a 2846: build tree basic on arithmetics - uncomment lines (ezegzda)
svn: r13982
2010-01-07 10:52:41 +00:00
Brian Matherly
7aec8904ea Remove gen.db.iterator.py - it is not used.
svn: r13979
2010-01-06 04:44:09 +00:00
Jérôme Rapinat
d2876c8318 pylint
svn: r13976
2010-01-05 19:15:51 +00:00
Jérôme Rapinat
9ae34b4ba8 pylint
svn: r13975
2010-01-05 18:07:09 +00:00
Jérôme Rapinat
7001690176 1683 Untranslatable text in Relationship calculator window - no crash on rel_xx tests (contribution by Andrew I Baznikin)
svn: r13973
2010-01-05 15:58:01 +00:00
Jérôme Rapinat
4acca6c7af pylint
svn: r13972
2010-01-05 14:37:10 +00:00
Jérôme Rapinat
d72aa5ae71 2855 2762 1683 enable tests on rel_xx (pass with sucess)
svn: r13971
2010-01-05 13:42:23 +00:00
Peter Landgren
3de66d1b62 Fix of issue 3495.
svn: r13965
2010-01-03 11:31:19 +00:00
Nick Hall
6ae29de4f0 2563: Add signals for all objects when active object changes
svn: r13960
2010-01-02 23:01:43 +00:00
Doug Blank
fc25778390 3491: [Gramplet] AgeOnDate Gramplet ignores Probably_alive variable
svn: r13956
2010-01-01 21:28:05 +00:00
Nick Hall
c43f162b2f Preparation to extend navigation to all object types
svn: r13955
2010-01-01 19:55:09 +00:00
Doug Blank
0f78f5c918 Refined right-click popup menus on placeviews
svn: r13954
2010-01-01 18:59:58 +00:00
Doug Blank
eba1c9d264 A simple, conservative probably_alive
svn: r13951
2010-01-01 15:11:00 +00:00
Jérôme Rapinat
7aef74eaca 3485: A better message for date validator on AgeOnDate Gramplet.
svn: r13950
2010-01-01 08:43:29 +00:00
Doug Blank
6cdb8a9406 Add signal for media-changed, and test on mediaview
svn: r13949
2009-12-31 17:03:04 +00:00
Doug Blank
205b3beadd Enabled Quickviews on all list views; enabled References Quickview for all views
svn: r13947
2009-12-31 14:59:44 +00:00
Brian Matherly
4838650df4 Move _GedcomParse.py to src/plugins/lib/libgedcom.py. Remove GrampsDbUtils.
svn: r13940
2009-12-29 19:20:16 +00:00
Jérôme Rapinat
bbdf6d80cc 3485: A better message for date validator on AgeOnDate Gramplet.
svn: r13939
2009-12-29 16:56:27 +00:00
Brian Matherly
c7b595210f Move GedcomStageOne.py into GedcomParse.py.
svn: r13936
2009-12-29 05:37:20 +00:00
Doug Blank
42ed2c3295 Added fields to Person to reduce queries; should be able to add/edit people and names tomorrow
svn: r13934
2009-12-29 03:22:03 +00:00
Brian Matherly
f12196cf80 Merge GedcomInfo.py and GedcomLex.py into GedcomParse.py.
svn: r13930
2009-12-28 05:07:21 +00:00
Jérôme Rapinat
bf944b0de3 2385: drawreports and multiple calendars
svn: r13925
2009-12-27 11:09:58 +00:00
Nick Hall
5422931318 Allow nodes with handles at higher levels in the tree
svn: r13921
2009-12-26 19:42:22 +00:00
Benny Malengier
e8042007ff init list before use
svn: r13920
2009-12-26 10:05:25 +00:00
Benny Malengier
862d1446d0 Fix two things in nar web:
1/fix bug that not scaled images are not printed out on webpage
  2/remove annoying warning dialogs on every missing images, and 
    replace it by one warning dialog at the end of the report


svn: r13913
2009-12-25 11:44:20 +00:00
Brian Matherly
06b3d7dc1f Fix Misnamed DbMixin
svn: r13910
2009-12-24 20:14:15 +00:00
Serge Noiraud
9aabed5c4f GeoView : issue 3472
svn: r13909
2009-12-24 17:21:55 +00:00
Serge Noiraud
cd7f3b8a29 GeoView : Replacement for openstreetmap and google map button by one provider
toglebutton. This is to minimize the space used by the buttons now
          we have the new "Add place" and "Link place" buttons.


svn: r13908
2009-12-24 15:55:01 +00:00
Serge Noiraud
ab2f9b9d19 GeoView : Entrybox completion now works when entering "tab"
We can erase the text with the place list label at the left of the entrybox.
          Performance : comment the sort to reduce display time.


svn: r13906
2009-12-24 12:18:18 +00:00
Rob G. Healey
c96e7a579a Some cleanup work, and changed get_marriage_event() to use the extended eventtype.py
svn: r13904
2009-12-24 07:55:26 +00:00
Gary Burton
864a4692a9 Another instance where we need to pass str latitude and longitude to EditPlace
svn: r13903
2009-12-23 23:02:26 +00:00
Serge Noiraud
3106784c22 GeoView : EditPlace crash with real instead of string.
svn: r13902
2009-12-23 21:32:01 +00:00
Doug Blank
8c26c5ad64 3302: Detailed Descendant Report fallback for child-list birth/death strings and fixed a typo baptized -> baptised
svn: r13899
2009-12-23 20:16:16 +00:00
Doug Blank
302781a6b3 Event types know how to abbreviate themselves
svn: r13898
2009-12-23 19:35:18 +00:00
Gary Burton
2de02b5899 Add an existing place to a map
svn: r13896
2009-12-23 18:20:44 +00:00
Doug Blank
61e3237d5a Constructors don't return things; renderer gets set in constructor
svn: r13895
2009-12-23 17:57:54 +00:00
Doug Blank
ab3dfe1415 3465: Create a new hierarchy of base classes for gramps cor databases (read, write) and add methods
svn: r13894
2009-12-23 15:55:58 +00:00
Serge Noiraud
361b99cee6 GeoView : Add Nick to the contributors.
Force the zoom to be locked when adding places.


svn: r13890
2009-12-23 10:08:16 +00:00
Serge Noiraud
a8e5f3acf9 GeoView : add signal when places are added. thanks nick.
svn: r13889
2009-12-23 07:06:44 +00:00
Rob G. Healey
c00ffbcf14 Remove references to import pyexiv2, and fixed RepositoryTypes.
svn: r13887
2009-12-22 22:00:24 +00:00
Gary Burton
db22a53da8 Add a new place to Gramps using latitude and longitude from GeoView
svn: r13886
2009-12-22 20:50:45 +00:00
Serge Noiraud
cd6843635e GeoView: issue 3312.
svn: r13885
2009-12-22 19:37:21 +00:00
Nick Hall
feb13b4a79 Better error message when gramplet fails to load
svn: r13884
2009-12-22 15:48:03 +00:00
Doug Blank
699dcb13fe Fixed svn Id property
svn: r13881
2009-12-21 13:43:50 +00:00
Doug Blank
5a087bb88f svn propset svn:keywords Id
svn: r13880
2009-12-21 13:03:08 +00:00
Rob G. Healey
603e20d36d Added to files that were missing it.
svn: r13879
2009-12-21 07:58:08 +00:00
Rob G. Healey
35b2dee97a Added to *.gpr.py files and WebCal. Updated EventList and add _find_death_date().
svn: r13878
2009-12-21 07:44:25 +00:00
Doug Blank
3a8b4d7e40 Moved fallback functions from Db to gen.utils
svn: r13876
2009-12-21 05:58:55 +00:00
Doug Blank
872e971fd3 gen.lib and gen.utils are independent; removed gen.utils.dbutils --- moved db methods to gen.db.base
svn: r13872
2009-12-21 04:18:31 +00:00
Serge Noiraud
a17ae4c484 GeoView : issue 3312 : erase entrybox and years interval.
svn: r13868
2009-12-21 00:01:32 +00:00
Serge Noiraud
06f3521239 ODFdoc : issues 3439, 3440, 3461 and 3462.
svn: r13867
2009-12-20 23:51:18 +00:00
Brian Matherly
814d721f68 Remove QuestionDialog dependency from gen. The database now raises exceptions and the GUI generates the question dialog.
svn: r13865
2009-12-20 22:44:32 +00:00
Doug Blank
f4ca61c117 Take advantage of refactored functionality in EventType and EventRoleType
svn: r13861
2009-12-20 22:21:00 +00:00
Doug Blank
f76d9c9aad Added try/except to exif tag import
svn: r13854
2009-12-20 02:32:01 +00:00
Gary Burton
4392fa3120 Fix wrong calls to get_type
svn: r13852
2009-12-19 16:08:44 +00:00
Serge Noiraud
74752f1360 GeoView : Added some corrections for issue 3312
When we switch between databases, if no info exist for the current view,
          don't try to load the page.


svn: r13844
2009-12-18 07:36:20 +00:00
Doug Blank
383cf27b8b Fix to prevent duplicate tags
svn: r13842
2009-12-18 03:55:59 +00:00
Serge Noiraud
3ee5c908f9 Geography : unable to display geoview when only mozilla is present.
svn: r13840
2009-12-17 20:14:00 +00:00
Serge Noiraud
0598c178ec htmlrenderer : use vars() instead of inline dictionary.
svn: r13839
2009-12-17 18:30:30 +00:00
Rob G. Healey
9971a4f1a2 Removed Exif tags completely from NarrativeWeb.
svn: r13836
2009-12-17 14:59:00 +00:00
Rob G. Healey
1191bb227d Fixed the sorting in class EventListPage. Changed elements in stylesheet.
svn: r13835
2009-12-17 07:22:29 +00:00
Serge Noiraud
bd961672c8 htmlrenderer : The prefs.js was created twice.
We didn't use the locale language.
               Adding var args to the gerald's modifications.


svn: r13829
2009-12-16 22:09:26 +00:00
Gerald Britton
0caa05e44f Tweak to improve readability and reduce dcalls to write method
svn: r13825
2009-12-16 16:56:45 +00:00
Doug Blank
2a047ab65e Sort events by alphabetical type name
svn: r13823
2009-12-16 12:04:48 +00:00
Rob G. Healey
b060d4189d Removed Editors and Sekectors directories to allow ./autogen.sh to complete. Fixed attribute type so it is translated. Made option visible, but greyed out if the library is not installed by suggestion from Doug Blank. See feature request 3449.
svn: r13819
2009-12-16 03:02:08 +00:00
Serge Noiraud
82d7e93a7c GeoView : Better initialization.
Avoid to create the same page several times.
          Don't create the start page twice now we have Web and Geography views.


svn: r13817
2009-12-15 23:43:00 +00:00
Doug Blank
49bd78481a Removed as now unneeded with Django-supported interface
svn: r13815
2009-12-15 17:32:24 +00:00
Doug Blank
896e157183 Renamed Same Given Name duplicate name
svn: r13814
2009-12-15 17:14:20 +00:00
Doug Blank
d05e98cbf6 Removed as now unneeded with Django-supported interface
svn: r13813
2009-12-15 17:11:05 +00:00
Doug Blank
c10493e0ad Moved to gramps-addons
svn: r13812
2009-12-15 16:59:18 +00:00
Doug Blank
cfec1b2092 Cleanup treestyle to work across gramps versions
svn: r13810
2009-12-15 16:46:40 +00:00
Doug Blank
cb721e6ad3 Moved DeepConnections.py HeadlineNewsGramplet.py NoteGramplet.py PythonGramplet.py to gramps-addons
svn: r13808
2009-12-15 15:19:49 +00:00
Brian Matherly
bbe2b6da0c move src/Editors/* to src/gui/editors as part of GEP008
svn: r13807
2009-12-15 05:56:12 +00:00
Brian Matherly
baa13df670 Move src/Selectors to src/gui/selectors. Rename files to lower case in conformance with the Gramps coding style.
svn: r13806
2009-12-15 03:45:09 +00:00
Rob G. Healey
224c8c1ffc Fixed error causing crash as per Nick Hall. Corrected tags on libhtmlconst and WebCal.
svn: r13805
2009-12-15 02:50:46 +00:00
Gerald Britton
04a15c8647 tweaks
svn: r13804
2009-12-14 18:32:46 +00:00
Rob G. Healey
c94c9c588e Cleanup work on attributes and a comment on sort_event_types() in NarrativeWeb. Clean up work on calendar_build() in WebCal.
svn: r13796
2009-12-14 08:47:01 +00:00
Rob G. Healey
73a8acc7bc Removed debugging code in NarrativeWeb. Adjusted elements in MediaListPage.
svn: r13794
2009-12-14 07:04:37 +00:00
Rob G. Healey
e72257b3f5 Cleaned up class MediaListPage and added mime type to the MediaListPage.
svn: r13793
2009-12-14 06:18:33 +00:00
Rob G. Healey
97f8091467 Fix bug report #3276. Link to temp.png should be document.png. Thanks jerome for finding it.
svn: r13792
2009-12-14 06:15:59 +00:00
Brian Matherly
0001133eb8 move src/widgets/* to src/gui/widgets as part of GEP008
svn: r13791
2009-12-14 03:20:19 +00:00
Brian Matherly
ec81292e52 Add translated language and country strings to the report transation option.
svn: r13790
2009-12-13 21:16:58 +00:00
Jérôme Rapinat
01c743e6c7 1683: Untranslatable text in Relationship calculator window
svn: r13784
2009-12-13 14:40:26 +00:00
Jérôme Rapinat
b02a7cb4c6 2385: Fan chart and multiple calendars
svn: r13783
2009-12-13 14:22:57 +00:00
Peter Landgren
3edb3a88bc Fixed one wrong gettext call and deleted one unnecessary statement.
svn: r13782
2009-12-13 14:07:24 +00:00
Doug Blank
1206598620 Sorts event by ID, date
svn: r13779
2009-12-13 01:04:09 +00:00