Coverage for src/pySUMOQt/Widget/Widget : 74%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" 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.
"""
""" The main class representing a widget in the pySUMO GUI.
Methods:
- refresh: Refreshes the view of the current widget according to the IndexAbstractor.
"""
def getIndexAbstractor(cls):
""" Uses the IndexAbstractor to refresh the widget. """
pass
pass
pass
pass
pass
pass
pass
pass
pass
pass
pass
""" Class for Widgets which only has read-access to the Ontologies. This class should not be used directly, but extended. """
""" Initializes the RWidget. """
""" 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.
"""
""" Initializes the read/write widget """
""" 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. """
pass
ontology = self.getActiveOntology() if ontology in self.IA.ontologies: self.log.info('Saving Ontology: %s' % str(ontology)) ontology.save()
self.SyntaxController.redo(ontology) self.ontologyChanged.emit()
|