Exemplo n.º 1
0
    def __init__(self, model):
        ViewerController.__init__(self)

        self._model = model
        self._view = MapViewer()
        self._view.updateModel(model)

        MPLCoordinatesMixin.__init__(self)
Exemplo n.º 2
0
 def _openViewer(self, ctrl: ViewerController):
     extensions = getExtensionString(ctrl.viewer_config.file_types)
     files, _ = QFileDialog.getOpenFileNames(None, "Open File", "", extensions)
     if not files:
         return
     if ctrl.viewer_config.multi_file:
         viewer = ctrl.fromFile(files)
         self.content_ctrl.addViewerController(viewer)
         return
     for f in files:
         viewer = ctrl.fromFile(f)
         self.content_ctrl.addViewerController(viewer)
Exemplo n.º 3
0
def registerViewers():
    ctrls = ViewerController.__subclasses__()
    features.Provide(viewers_name, ctrls)
Exemplo n.º 4
0
    def __init__(self, model):
        ViewerController.__init__(self)

        self._model = model
        self._view = GingaViewer()
        self._view.updateModel(model)