def need_save():
     from gui.vistrails_window import _app
     need_save_vt = False
     for t in self.tabWidgets:
         dim = t.getDimension()
         for r in xrange(dim[0]):
             for c in xrange(dim[1]):
                 info = t.getCellPipelineInfo(r,c)
                 if info:
                     locator = info[0]['locator']
                     view = _app.ensureVistrail(locator)
                     if view:
                         controller = view.get_controller()
                         if controller.changed:
                             need_save_vt = True
     return need_save_vt
 def need_save():
     from gui.vistrails_window import _app
     need_save_vt = False
     for t in self.tabWidgets:
         dim = t.getDimension()
         for r in xrange(dim[0]):
             for c in xrange(dim[1]):
                 info = t.getCellPipelineInfo(r, c)
                 if info:
                     locator = info[0]['locator']
                     view = _app.ensureVistrail(locator)
                     if view:
                         controller = view.get_controller()
                         if controller.changed:
                             need_save_vt = True
     return need_save_vt
Example #3
0
 def focusInEvent(self, event):
     if self.controller:
         if self.controller.locator:
             from gui.vistrails_window import _app
             _app.ensureVistrail(self.controller.locator)
 def focusInEvent(self, event):
     if self.controller:
         if self.controller.locator:
             from gui.vistrails_window import _app
             _app.ensureVistrail(self.controller.locator)