* src/DdTargets.py: add support for data items in sources
* src/EventEdit.py: use DisplayTabs * src/gramps.glade: New EventEditor with display tabs * src/DisplayTabs.py: specify data _DND_TYPE, don't enable d-n-d if _DND_TYPE not defined svn: r5868
This commit is contained in:
@ -284,7 +284,8 @@ class EmbeddedList(ButtonTab):
|
||||
self.columns = []
|
||||
self.build_columns()
|
||||
|
||||
self._set_dnd()
|
||||
if self._DND_TYPE:
|
||||
self._set_dnd()
|
||||
|
||||
# build the initial data
|
||||
self.rebuild()
|
||||
@ -668,6 +669,7 @@ class SourceBackRefList(EmbeddedList):
|
||||
#-------------------------------------------------------------------------
|
||||
class DataEmbedList(EmbeddedList):
|
||||
|
||||
_DND_TYPE = DdTargets.DATA
|
||||
_column_names = [
|
||||
(_('Key'),0,150),
|
||||
(_('Value'),1,250),
|
||||
|
Reference in New Issue
Block a user