Beispiel #1
0
 def connectJob(self, job):
     """Starts collecting the references of a started Job.
     
     Output already created by the Job is read and we start
     listening for new output.
     
     """
     # clear earlier set error marks
     docs = set([self.document()])
     for ref in self._refs.values():
         c = ref.cursor(False)
         if c:
             docs.add(c.document())
     for doc in docs:
         bookmarks.bookmarks(doc).clear("error")
     self._refs.clear()
     # take over history and connect
     for msg, type in job.history():
         self.slotJobOutput(msg, type)
     job.output.connect(self.slotJobOutput)
Beispiel #2
0
 def connectJob(self, job):
     """Starts collecting the references of a started Job.
     
     Output already created by the Job is read and we start
     listening for new output.
     
     """
     # do not collect errors for auto-engrave jobs if the user has disabled it
     if jobattributes.get(job).hidden and QSettings().value("log/hide_auto_engrave", False, bool):
         return
     # clear earlier set error marks
     docs = set([self.document()])
     for ref in self._refs.values():
         c = ref.cursor(False)
         if c:
             docs.add(c.document())
     for doc in docs:
         bookmarks.bookmarks(doc).clear("error")
     self._refs.clear()
     # take over history and connect
     for msg, type in job.history():
         self.slotJobOutput(msg, type)
     job.output.connect(self.slotJobOutput)
Beispiel #3
0
 def connectJob(self, job):
     """Starts collecting the references of a started Job.
     
     Output already created by the Job is read and we start
     listening for new output.
     
     """
     # do not collect errors for auto-engrave jobs if the user has disabled it
     if jobattributes.get(job).hidden and QSettings().value("log/hide_auto_engrave", False, bool):
         return
     # clear earlier set error marks
     docs = {self.document()}
     for ref in self._refs.values():
         c = ref.cursor(False)
         if c:
             docs.add(c.document())
     for doc in docs:
         bookmarks.bookmarks(doc).clear("error")
     self._refs.clear()
     # take over history and connect
     for msg, type in job.history():
         self.slotJobOutput(msg, type)
     job.output.connect(self.slotJobOutput)
Beispiel #4
0
 def connectJob(self, job):
     """Gives us the output from the Job (past and upcoming)."""
     for msg, type in job.history():
         self.write(msg, type)
     job.output.connect(self.write)
Beispiel #5
0
 def connectJob(self, job):
     """Gives us the output from the Job (past and upcoming)."""
     for msg, type in job.history():
         self.write(msg, type)
     job.output.connect(self.write)