old_contents: #-------------------------------------------------------------------------------
  #
  #  Copyright (c) 2008, Enthought, Inc.
  #  All rights reserved.
  #
  #  This software is provided without warranty under the terms of the BSD
  #  license included in enthought/LICENSE.txt and may be redistributed only
  #  under the conditions described in the aforementioned license.  The license
  #  is also available online at http://www.enthought.com/licenses/BSD.txt
  #
  #  Thanks for using Enthought open source!
  #
  #  Author: Bryce Hendrix
  #  Date:   08/06/2008
  #
  #-------------------------------------------------------------------------------
  
  """ Traits UI 'display only' image editor.
  """
  
  #-------------------------------------------------------------------------------
  #  Imports:
  #-------------------------------------------------------------------------------
  from enthought.traits.api import Instance, Int
  from enthought.traits.ui.wx.editor import Editor
  from enthought.traits.ui.wx.basic_editor_factory import BasicEditorFactory
      
  
  from enthought.savage.svg.document import SVGDocument
  
  # FIXME: programatically figure out which backend to use
  from wx_render_panel import RenderPanel
  
  #-------------------------------------------------------------------------------
  #  '_SVGEditor' class:
  #-------------------------------------------------------------------------------
                                 
  class _SVGEditor ( Editor ):
      """ Traits UI 'display only' image editor.
      """
      
      scrollable = True
      
      #---------------------------------------------------------------------------
      #  Finishes initializing the editor by creating the underlying toolkit
      #  widget:
      #---------------------------------------------------------------------------
          
      def init ( self, parent ):
          """ Finishes initializing the editor by creating the underlying toolkit
              widget.
          """
          document = self.value
           
          self.control = RenderPanel( parent, document=document)
                          
      #---------------------------------------------------------------------------
      #  Updates the editor when the object trait changes external to the editor:
      #---------------------------------------------------------------------------
  
      def update_editor ( self ):
          """ Updates the editor when the object trait changes externally to the
              editor.
          """
          if self.control.document != self.value:
              self.control.document = self.value
              self.control.Refresh()
                      
  #-------------------------------------------------------------------------------
  #  Create the editor factory object:
  #-------------------------------------------------------------------------------
  
  # wxPython editor factory for svg editors:
  class SVGEditor ( BasicEditorFactory ):
      
      # The editor class to be created:
      klass = _SVGEditor
  
new_contents: #-------------------------------------------------------------------------------
  #
  #  Copyright (c) 2008, Enthought, Inc.
  #  All rights reserved.
  #
  #  This software is provided without warranty under the terms of the BSD
  #  license included in enthought/LICENSE.txt and may be redistributed only
  #  under the conditions described in the aforementioned license.  The license
  #  is also available online at http://www.enthought.com/licenses/BSD.txt
  #
  #  Thanks for using Enthought open source!
  #
  #  Author: Bryce Hendrix
  #  Date:   08/06/2008
  #
  #-------------------------------------------------------------------------------
  
  """ Traits UI 'display only' image editor.
  """
  
  #-------------------------------------------------------------------------------
  #  Imports:
  #-------------------------------------------------------------------------------
  from enthought.traits.api import Instance, Int
  from enthought.traits.ui.wx.editor import Editor
  from enthought.traits.ui.basic_editor_factory import BasicEditorFactory
      
  
  from enthought.savage.svg.document import SVGDocument
  
  # FIXME: programatically figure out which backend to use
  from wx_render_panel import RenderPanel
  
  #-------------------------------------------------------------------------------
  #  '_SVGEditor' class:
  #-------------------------------------------------------------------------------
                                 
  class _SVGEditor ( Editor ):
      """ Traits UI 'display only' image editor.
      """
      
      scrollable = True
      
      #---------------------------------------------------------------------------
      #  Finishes initializing the editor by creating the underlying toolkit
      #  widget:
      #---------------------------------------------------------------------------
          
      def init ( self, parent ):
          """ Finishes initializing the editor by creating the underlying toolkit
              widget.
          """
          document = self.value
           
          self.control = RenderPanel( parent, document=document)
                          
      #---------------------------------------------------------------------------
      #  Updates the editor when the object trait changes external to the editor:
      #---------------------------------------------------------------------------
  
      def update_editor ( self ):
          """ Updates the editor when the object trait changes externally to the
              editor.
          """
          if self.control.document != self.value:
              self.control.document = self.value
              self.control.Refresh()
                      
  #-------------------------------------------------------------------------------
  #  Create the editor factory object:
  #-------------------------------------------------------------------------------
  
  # wxPython editor factory for svg editors:
  class SVGEditor ( BasicEditorFactory ):
      
      # The editor class to be created:
      klass = _SVGEditor
  
subject: Remove imports of BasicEditorFactory from enthought.traits.ui.wx (to reflect changes in the WX backend package).