* src/DisplayTabs/__init__.py: add note backref
	* src/glade/gramps.glade: add notebook to note editor to show backref
	* src/DisplayTabs/_NoteTab.py: import editnote in method to avoid import loop
	* src/Editors/_EditNote.py: add notetab of backreferences
	* src/DisplayTabs/_NoteBackRefList.py: note backreferences list
	* src/DisplayTabs/Makefile.am: new backref file
	* po/POTFILES.in: new backref file


svn: r9209
This commit is contained in:
Benny Malengier
2007-10-18 21:52:08 +00:00
parent f050646e31
commit 0f2327429e
8 changed files with 389 additions and 279 deletions

View File

@@ -46,6 +46,7 @@ import Config
import GrampsDisplay
import MarkupText
from _EditPrimary import EditPrimary
from DisplayTabs import NoteBackRefList
from GrampsWidgets import *
from gen.lib import Note
@@ -185,7 +186,25 @@ class EditNote(EditPrimary):
self.define_ok_button(self.top.get_widget('ok'),self.save)
self.define_cancel_button(self.top.get_widget('cancel'))
self.define_help_button(self.top.get_widget('help'), '')
def _create_tabbed_pages(self):
"""
Creates the notebook tabs and inserts them into the main
window.
"""
notebook = self.top.get_widget("note_notebook")
self.backref_tab = self._add_tab(
notebook,
NoteBackRefList(self.dbstate, self.uistate, self.track,
self.dbstate.db.find_backlink_handles(
self.obj.handle))
)
self._setup_notebook_tabs( notebook)
notebook.show_all()
def build_interface(self):
FORMAT_TOOLBAR = '''
<ui>