2007-02-12 Don Allingham <don@gramps-project.org>

* src/GrampsDbUtils/_GedcomParse.py: cleanup



svn: r8104
This commit is contained in:
Don Allingham 2007-02-13 06:01:16 +00:00
parent e543bef596
commit 1d7e22bcca
7 changed files with 667 additions and 233 deletions

View File

@ -1,3 +1,6 @@
2007-02-12 Don Allingham <don@gramps-project.org>
* src/GrampsDbUtils/_GedcomParse.py: cleanup
2007-02-12 Brian Matherly <brian@gramps-project.org>
* src/plugins/AncestorChart2.py: Fix title color
* src/plugins/DescendChart.py: Fix title color

View File

@ -382,5 +382,21 @@ class PlaceBookmarks(ListBookmarks) :
def connect_signals(self):
self.dbstate.db.connect('place-delete', self.remove_handles)
class NoteBookmarks(ListBookmarks) :
"Handle the bookmarks interface for Gramps"
def __init__(self,dbstate,uistate,bookmarks, goto_handle):
ListBookmarks.__init__(self, dbstate, uistate, bookmarks,
goto_handle)
def make_label(self,handle):
#obj = self.dbstate.db.get_place_from_handle(handle)
#name = obj.get_title()
return "<Place Holder>" #("%s [%s]" % (name, obj.gramps_id), obj)
def connect_signals(self):
pass
#self.dbstate.db.connect('place-delete', self.remove_handles)
def make_callback(n,f):
return lambda x: f(n)

View File

@ -36,6 +36,7 @@ from _PlaceView import PlaceView
from _MediaView import MediaView
#from _MapView import MapView
from _RepositoryView import RepositoryView
from _NoteView import NoteView
def get_views():
"""
@ -51,5 +52,6 @@ def get_views():
PlaceView,
MediaView,
#MapView,
RepositoryView
RepositoryView,
NoteView,
]

View File

@ -11,6 +11,7 @@ pkgdata_PYTHON = \
_PeopleModel.py \
_PlaceModel.py \
_RepositoryModel.py \
_NoteModel.py \
_SourceModel.py
pkgpyexecdir = @pkgpyexecdir@/DisplayModels

View File

@ -26,3 +26,4 @@ from _SourceModel import SourceModel
from _PlaceModel import PlaceModel
from _MediaModel import MediaModel
from _RepositoryModel import RepositoryModel
from _NoteModel import NoteModel

File diff suppressed because it is too large Load Diff

View File

@ -649,7 +649,6 @@ class ViewManager:
old_win.close()
PluginStatus.PluginStatus(self.state,self.uistate, [])
def about(self, obj):
about = gtk.AboutDialog()
about.set_name(const.program_name)
@ -841,6 +840,7 @@ class ViewManager:
if len(self.pages) > 0:
self.active_page = self.pages[num]
self.active_page.set_active()
print 'Save', num
Config.set(Config.LAST_VIEW,num)
Config.sync()