2007-02-12 Don Allingham <don@gramps-project.org>
* src/GrampsDbUtils/_GedcomParse.py: cleanup svn: r8104
This commit is contained in:
parent
e543bef596
commit
1d7e22bcca
@ -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>
|
2007-02-12 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/plugins/AncestorChart2.py: Fix title color
|
* src/plugins/AncestorChart2.py: Fix title color
|
||||||
* src/plugins/DescendChart.py: Fix title color
|
* src/plugins/DescendChart.py: Fix title color
|
||||||
|
@ -382,5 +382,21 @@ class PlaceBookmarks(ListBookmarks) :
|
|||||||
def connect_signals(self):
|
def connect_signals(self):
|
||||||
self.dbstate.db.connect('place-delete', self.remove_handles)
|
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):
|
def make_callback(n,f):
|
||||||
return lambda x: f(n)
|
return lambda x: f(n)
|
||||||
|
@ -36,6 +36,7 @@ from _PlaceView import PlaceView
|
|||||||
from _MediaView import MediaView
|
from _MediaView import MediaView
|
||||||
#from _MapView import MapView
|
#from _MapView import MapView
|
||||||
from _RepositoryView import RepositoryView
|
from _RepositoryView import RepositoryView
|
||||||
|
from _NoteView import NoteView
|
||||||
|
|
||||||
def get_views():
|
def get_views():
|
||||||
"""
|
"""
|
||||||
@ -51,5 +52,6 @@ def get_views():
|
|||||||
PlaceView,
|
PlaceView,
|
||||||
MediaView,
|
MediaView,
|
||||||
#MapView,
|
#MapView,
|
||||||
RepositoryView
|
RepositoryView,
|
||||||
|
NoteView,
|
||||||
]
|
]
|
||||||
|
@ -11,6 +11,7 @@ pkgdata_PYTHON = \
|
|||||||
_PeopleModel.py \
|
_PeopleModel.py \
|
||||||
_PlaceModel.py \
|
_PlaceModel.py \
|
||||||
_RepositoryModel.py \
|
_RepositoryModel.py \
|
||||||
|
_NoteModel.py \
|
||||||
_SourceModel.py
|
_SourceModel.py
|
||||||
|
|
||||||
pkgpyexecdir = @pkgpyexecdir@/DisplayModels
|
pkgpyexecdir = @pkgpyexecdir@/DisplayModels
|
||||||
|
@ -26,3 +26,4 @@ from _SourceModel import SourceModel
|
|||||||
from _PlaceModel import PlaceModel
|
from _PlaceModel import PlaceModel
|
||||||
from _MediaModel import MediaModel
|
from _MediaModel import MediaModel
|
||||||
from _RepositoryModel import RepositoryModel
|
from _RepositoryModel import RepositoryModel
|
||||||
|
from _NoteModel import NoteModel
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -649,7 +649,6 @@ class ViewManager:
|
|||||||
old_win.close()
|
old_win.close()
|
||||||
PluginStatus.PluginStatus(self.state,self.uistate, [])
|
PluginStatus.PluginStatus(self.state,self.uistate, [])
|
||||||
|
|
||||||
|
|
||||||
def about(self, obj):
|
def about(self, obj):
|
||||||
about = gtk.AboutDialog()
|
about = gtk.AboutDialog()
|
||||||
about.set_name(const.program_name)
|
about.set_name(const.program_name)
|
||||||
@ -841,6 +840,7 @@ class ViewManager:
|
|||||||
if len(self.pages) > 0:
|
if len(self.pages) > 0:
|
||||||
self.active_page = self.pages[num]
|
self.active_page = self.pages[num]
|
||||||
self.active_page.set_active()
|
self.active_page.set_active()
|
||||||
|
print 'Save', num
|
||||||
Config.set(Config.LAST_VIEW,num)
|
Config.set(Config.LAST_VIEW,num)
|
||||||
Config.sync()
|
Config.sync()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user