* src/RelLib/_Note.py: import const from MarkupText module
	* src/MarkupText.py: use actions instead of widgets on the interface;
	new helper functions
	* src/Editors/_EditNote.py: move widgets out to glade; implement new
	MarkupText buffer interface; use uimanager/toolbar for formatting
	* src/glade/gramps.glade: edit_note update



svn: r8292
This commit is contained in:
Zsolt Foldvari
2007-03-13 20:31:50 +00:00
parent 7593dbfe69
commit 63e344754f
5 changed files with 196 additions and 206 deletions

View File

@ -40,6 +40,7 @@ import re
#-------------------------------------------------------------------------
from _BasicPrimaryObject import BasicPrimaryObject
from _NoteType import NoteType
from MarkupText import ROOT_START_TAG, LEN_ROOT_START_TAG
#-------------------------------------------------------------------------
#
@ -114,7 +115,7 @@ class Note(BasicPrimaryObject):
"""
text = self.text
if not markup and text[0:8] == '<gramps>':
if not markup and text[0:LEN_ROOT_START_TAG] == ROOT_START_TAG:
text = self.delete_tags(text)
return text