2007-02-25 Don Allingham <don@gramps-project.org>
* src/DataViews/__init__.py: Add NoteView * src/DataViews/_NoteView.py: Added * src/Config/_GrampsConfigKeys.py: Added new keys to handle note dialog width * src/Editors/__init__.py: Add _EditNote.py * src/Editors/_EditNote.py: Added * src/DisplayTabs/_NoteTab.py: Updated to the new list format * src/GrampsWidgets.py: Add checkbox support * src/glade/gramps.glade: Added edit_note * data/gramps.schemas.in: new keys svn: r8240
This commit is contained in:
@@ -48,6 +48,7 @@ import Config
|
||||
from DdTargets import DdTargets
|
||||
from QuestionDialog import QuestionDialog, ErrorDialog
|
||||
from Filters.SideBar import NoteSidebarFilter
|
||||
from Editors import EditNote
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -109,9 +110,6 @@ class NoteView(PageView.ListView):
|
||||
self.add_action('FilterEdit', None, _('Note Filter Editor'),
|
||||
callback=self.filter_editor,)
|
||||
|
||||
# def drag_info(self):
|
||||
# return DdTargets.PLACE_LINK
|
||||
|
||||
def column_editor(self, obj):
|
||||
pass
|
||||
# import ColumnOrder
|
||||
@@ -168,16 +166,14 @@ class NoteView(PageView.ListView):
|
||||
|
||||
def on_double_click(self, obj, event):
|
||||
handle = self.first_selected()
|
||||
note = self.dbstate.db.get_note_from_handle(handle)
|
||||
note = RelLib.Note()
|
||||
try:
|
||||
#EditPlace(self.dbstate, self.uistate, [], place)
|
||||
print handle
|
||||
EditNote(self.dbstate, self.uistate, [], note)
|
||||
except Errors.WindowActiveError:
|
||||
pass
|
||||
|
||||
def add(self, obj):
|
||||
try:
|
||||
#EditPlace(self.dbstate, self.uistate, [], RelLib.Place())
|
||||
pass
|
||||
except Errors.WindowActiveError:
|
||||
pass
|
||||
@@ -226,8 +222,7 @@ class NoteView(PageView.ListView):
|
||||
for handle in mlist:
|
||||
note = self.dbstate.db.get_note_from_handle(handle)
|
||||
try:
|
||||
#EditPlace(self.dbstate, self.uistate, [], place)
|
||||
print handle
|
||||
EditNote(self.dbstate, self.uistate, [], note)
|
||||
except Errors.WindowActiveError:
|
||||
pass
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ from _EventView import EventView
|
||||
from _SourceView import SourceView
|
||||
from _PlaceView import PlaceView
|
||||
from _MediaView import MediaView
|
||||
#from _MapView import MapView
|
||||
from _RepositoryView import RepositoryView
|
||||
from _NoteView import NoteView
|
||||
|
||||
|
||||
Reference in New Issue
Block a user