Now supports adding subtitles

Allows to cancel a job

Allows to burn de image

Show a progress bar when copying a file

When adding a subtitles file, shows the last path used

Fixed the progress bar for the number of jobs to do
This commit is contained in:
Sergio Costas 2014-08-04 12:33:25 +02:00
parent 4cc1bee474
commit 64a33e1c74
24 changed files with 495 additions and 35 deletions

View file

@ -31,13 +31,22 @@ class file_copy(devede.executor.executor):
self.text = _("Copying file %(X)s") % {"X": os.path.basename(input_path)}
self.command_var=[]
self.command_var.append("cp")
self.command_var.append("copy_files_verbose.py")
self.command_var.append(input_path)
self.command_var.append(output_path)
self.use_pulse_mode = True
def process_stdout(self,data):
if (data == None) or (len(data) == 0):
return
if (data[0].startswith("Copied ")):
pos = data[0].find("%")
if (pos == -1):
return
p = float(data[0][7:pos])
self.progress_bar[1].set_fraction(p/ 100.0)
self.progress_bar[1].set_text("%.1f%%" % (p))
return
def process_stderr(self,data):