GEPS008: Moved tag list editor

svn: r19796
This commit is contained in:
Nick Hall 2012-06-08 18:04:14 +00:00
parent 02832006ab
commit c6c2fb4611
6 changed files with 8 additions and 7 deletions

View File

@ -367,6 +367,7 @@ src/gui/editors/editprimary.py
src/gui/editors/editreporef.py src/gui/editors/editreporef.py
src/gui/editors/editrepository.py src/gui/editors/editrepository.py
src/gui/editors/editsource.py src/gui/editors/editsource.py
src/gui/editors/edittaglist.py
src/gui/editors/editurl.py src/gui/editors/editurl.py
# gui/editors/displaytabs - the GUI display tabs package # gui/editors/displaytabs - the GUI display tabs package
@ -473,7 +474,6 @@ src/gui/widgets/monitoredwidgets.py
src/gui/widgets/photo.py src/gui/widgets/photo.py
src/gui/widgets/progressdialog.py src/gui/widgets/progressdialog.py
src/gui/widgets/styledtexteditor.py src/gui/widgets/styledtexteditor.py
src/gui/widgets/tageditor.py
src/gui/widgets/undoableentry.py src/gui/widgets/undoableentry.py
src/gui/widgets/validatedmaskedentry.py src/gui/widgets/validatedmaskedentry.py

View File

@ -36,6 +36,7 @@ pkgpython_PYTHON = \
editreporef.py \ editreporef.py \
editsecondary.py \ editsecondary.py \
editsource.py \ editsource.py \
edittaglist.py \
editurl.py \ editurl.py \
objectentries.py objectentries.py

View File

@ -42,6 +42,7 @@ from editplace import EditPlace, DeletePlaceQuery
from editrepository import EditRepository, DeleteRepositoryQuery from editrepository import EditRepository, DeleteRepositoryQuery
from editreporef import EditRepoRef from editreporef import EditRepoRef
from editsource import EditSource, DeleteSrcQuery from editsource import EditSource, DeleteSrcQuery
from edittaglist import EditTagList
from editurl import EditUrl from editurl import EditUrl
from editlink import EditLink from editlink import EditLink

View File

@ -50,10 +50,10 @@ WIKI_HELP_SEC = _('manual|Tags')
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# TagEditor # EditTagList
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class TagEditor(ManagedWindow): class EditTagList(ManagedWindow):
""" """
Dialog to allow the user to edit a list of tags. Dialog to allow the user to edit a list of tags.
""" """

View File

@ -24,7 +24,6 @@ pkgpython_PYTHON = \
statusbar.py \ statusbar.py \
styledtextbuffer.py \ styledtextbuffer.py \
styledtexteditor.py \ styledtexteditor.py \
tageditor.py \
toolcomboentry.py \ toolcomboentry.py \
undoablebuffer.py \ undoablebuffer.py \
undoableentry.py \ undoableentry.py \

View File

@ -52,7 +52,6 @@ import pango
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gen.ggettext import gettext as _ from gen.ggettext import gettext as _
import AutoComp import AutoComp
from gui.widgets.tageditor import TagEditor
import gen.datehandler import gen.datehandler
from gen.lib.date import Date, NextYear from gen.lib.date import Date, NextYear
from gen.errors import ValidationError from gen.errors import ValidationError
@ -860,8 +859,9 @@ class MonitoredTagList(object):
if (event.type == gtk.gdk.BUTTON_PRESS or if (event.type == gtk.gdk.BUTTON_PRESS or
(event.type == gtk.gdk.KEY_PRESS and (event.type == gtk.gdk.KEY_PRESS and
event.keyval in (_RETURN, _KP_ENTER))): event.keyval in (_RETURN, _KP_ENTER))):
editor = TagEditor(self.tag_list, self.all_tags, from gui.editors import EditTagList
self.uistate, self.track) editor = EditTagList(self.tag_list, self.all_tags,
self.uistate, self.track)
if editor.return_list is not None: if editor.return_list is not None:
self.tag_list = editor.return_list self.tag_list = editor.return_list
self._display() self._display()