380 files = [] |
380 files = [] |
381 fullNames = [] |
381 fullNames = [] |
382 for itm in itmList: |
382 for itm in itmList: |
383 fn2 = itm.fileName() |
383 fn2 = itm.fileName() |
384 fullNames.append(fn2) |
384 fullNames.append(fn2) |
385 fn = fn2.replace(self.project.ppath+os.sep, '') |
385 fn = self.project.getRelativePath(fn2) |
386 files.append(fn) |
386 files.append(fn) |
387 |
387 |
388 dlg = DeleteFilesConfirmationDialog(self.parent(), |
388 dlg = DeleteFilesConfirmationDialog(self.parent(), |
389 self.trUtf8("Delete interfaces"), |
389 self.trUtf8("Delete interfaces"), |
390 self.trUtf8("Do you really want to delete these interfaces from" |
390 self.trUtf8("Do you really want to delete these interfaces from" |
510 Private method to compile an interface to python. |
510 Private method to compile an interface to python. |
511 """ |
511 """ |
512 if self.omniidl is not None: |
512 if self.omniidl is not None: |
513 itm = self.model().item(self.currentIndex()) |
513 itm = self.model().item(self.currentIndex()) |
514 fn2 = itm.fileName() |
514 fn2 = itm.fileName() |
515 fn = fn2.replace(self.project.ppath+os.sep, '') |
515 fn = self.project.getRelativePath(fn2) |
516 self.__compileIDL(fn) |
516 self.__compileIDL(fn) |
517 |
517 |
518 def __compileAllInterfaces(self): |
518 def __compileAllInterfaces(self): |
519 """ |
519 """ |
520 Private method to compile all interfaces to python. |
520 Private method to compile all interfaces to python. |
548 Private method to compile selected interfaces to python. |
548 Private method to compile selected interfaces to python. |
549 """ |
549 """ |
550 if self.omniidl is not None: |
550 if self.omniidl is not None: |
551 items = self.getSelectedItems() |
551 items = self.getSelectedItems() |
552 |
552 |
553 files = [itm.fileName().replace(self.project.ppath+os.sep, '') \ |
553 files = [self.project.getRelativePath(itm.fileName()) \ |
554 for itm in items] |
554 for itm in items] |
555 numIDLs = len(files) |
555 numIDLs = len(files) |
556 progress = QProgressDialog(self.trUtf8("Compiling interfaces..."), |
556 progress = QProgressDialog(self.trUtf8("Compiling interfaces..."), |
557 self.trUtf8("Abort"), 0, numIDLs, self) |
557 self.trUtf8("Abort"), 0, numIDLs, self) |
558 progress.setModal(True) |
558 progress.setModal(True) |