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/editrepository.py
src/gui/editors/editsource.py
src/gui/editors/edittaglist.py
src/gui/editors/editurl.py
# 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/progressdialog.py
src/gui/widgets/styledtexteditor.py
src/gui/widgets/tageditor.py
src/gui/widgets/undoableentry.py
src/gui/widgets/validatedmaskedentry.py

View File

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

View File

@ -42,6 +42,7 @@ from editplace import EditPlace, DeletePlaceQuery
from editrepository import EditRepository, DeleteRepositoryQuery
from editreporef import EditRepoRef
from editsource import EditSource, DeleteSrcQuery
from edittaglist import EditTagList
from editurl import EditUrl
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.
"""

View File

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

View File

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