old_contents: """ Abstracts all Widgets of the pySUMO GUI.
  
  This module contains:
  
  - Widget: The main widget representation in the GUI.
  - RWidget: The class of widgets which only have access to the IndexAbstractor and therefore cannot modify the Ontologies.
  - RWWidget: The class of widgets which have access to the SyntaxController and the IndexAbstractor.
  
  """
  from PySide.QtCore import QObject
  from pysumo.indexabstractor import IndexAbstractor
  from pysumo.syntaxcontroller import SyntaxController
  
  
  class Widget(QObject):
      IA = None
      """ The main class representing a widget in the pySUMO GUI.
  
      Methods:
  
      - refresh: Refreshes the view of the current widget according to the IndexAbstractor.
  
      """
  
      def __init__(self, mainwindow):
          super(Widget, self).__init__()
          self.mw = mainwindow
          """ Initializes the Widget object. """
  
      def getIndexAbstractor(self):
          if self.IA == None:
              self.IA = IndexAbstractor()
          return self.IA
  
      def refresh(self):
          """ Uses the IndexAbstractor to refresh the widget. """
  
      def getWidget(self):
          pass
  
  
  class RWidget(Widget):
  
      """ Class for Widgets which only has read-access to the Ontologies. This
      class should not be used directly, but extended.
      """
  
      def __init__(self, mainwindow):
          """ Initializes the RWidget. """
          super(RWidget, self).__init__(mainwindow)
  
  
  class RWWidget(Widget):
  
      """ Class for Widgets which have modify-access to the Ontologies. This
      class should not be used directly, but extended.
  
      Methods:
  
      - commit: Commits the modifications on the ontology and notifies the others widgets of changes.
  
      """
  
      def __init__(self, mainwindow):
          """ Initializes the read/write widget """
          super(RWWidget, self).__init__(mainwindow)
          self.SyntaxController = SyntaxController(self.getIndexAbstractor())
  
      def commit(self):
          """ Commits modifications to the ontology to the SyntaxController, and
          if successful updates the IndexAbstractor and notifies all other
          widgets that the Ontology has been modified. """
  
new_contents: """ Abstracts all Widgets of the pySUMO GUI.
  
  This module contains:
  
  - Widget: The main widget representation in the GUI.
  - RWidget: The class of widgets which only have access to the IndexAbstractor and therefore cannot modify the Ontologies.
  - RWWidget: The class of widgets which have access to the SyntaxController and the IndexAbstractor.
  
  """
  from PySide.QtCore import QObject
  from pysumo.indexabstractor import IndexAbstractor
  from pysumo.syntaxcontroller import SyntaxController
  
  
  class Widget(QObject):
      """ The main class representing a widget in the pySUMO GUI.
  
      Methods:
  
      - refresh: Refreshes the view of the current widget according to the IndexAbstractor.
  
      """
      IA = IndexAbstractor()
  
      def __init__(self, mainwindow):
          super(Widget, self).__init__()
          self.mw = mainwindow
          """ Initializes the Widget object. """
  
      @classmethod
      def getIndexAbstractor(cls):
          return cls.IA
  
      def refresh(self):
          """ Uses the IndexAbstractor to refresh the widget. """
  
      def getWidget(self):
          pass
  
  
  class RWidget(Widget):
  
      """ Class for Widgets which only has read-access to the Ontologies. This
      class should not be used directly, but extended.
      """
  
      def __init__(self, mainwindow):
          """ Initializes the RWidget. """
          super(RWidget, self).__init__(mainwindow)
  
  
  class RWWidget(Widget):
  
      """ Class for Widgets which have modify-access to the Ontologies. This
      class should not be used directly, but extended.
  
      Methods:
  
      - commit: Commits the modifications on the ontology and notifies the others widgets of changes.
  
      """
      SyntaxController = SyntaxController(Widget.getIndexAbstractor())
  
      def __init__(self, mainwindow):
          """ Initializes the read/write widget """
          super(RWWidget, self).__init__(mainwindow)
  
      def commit(self):
          """ Commits modifications to the ontology to the SyntaxController, and
          if successful updates the IndexAbstractor and notifies all other
          widgets that the Ontology has been modified. """
  
subject: Set IndexAbstractor in class definition()