548 files = [] |
548 files = [] |
549 fullNames = [] |
549 fullNames = [] |
550 for itm in itmList: |
550 for itm in itmList: |
551 fn2 = itm.fileName() |
551 fn2 = itm.fileName() |
552 fullNames.append(fn2) |
552 fullNames.append(fn2) |
553 fn = fn2.replace(self.project.ppath + os.sep, '') |
553 fn = self.project.getRelativePath(fn2) |
554 files.append(fn) |
554 files.append(fn) |
555 |
555 |
556 dlg = DeleteFilesConfirmationDialog(self.parent(), |
556 dlg = DeleteFilesConfirmationDialog(self.parent(), |
557 self.trUtf8("Delete forms"), |
557 self.trUtf8("Delete forms"), |
558 self.trUtf8("Do you really want to delete these forms from the project?"), |
558 self.trUtf8("Do you really want to delete these forms from the project?"), |
742 """ |
742 """ |
743 Private method to compile a form to a source file. |
743 Private method to compile a form to a source file. |
744 """ |
744 """ |
745 itm = self.model().item(self.currentIndex()) |
745 itm = self.model().item(self.currentIndex()) |
746 fn2 = itm.fileName() |
746 fn2 = itm.fileName() |
747 fn = fn2.replace(self.project.ppath + os.sep, '') |
747 fn = self.project.getRelativePath(fn2) |
748 if self.hooks["compileForm"] is not None: |
748 if self.hooks["compileForm"] is not None: |
749 self.hooks["compileForm"](fn) |
749 self.hooks["compileForm"](fn) |
750 else: |
750 else: |
751 self.__compileUI(fn) |
751 self.__compileUI(fn) |
752 |
752 |
784 def __compileSelectedForms(self): |
784 def __compileSelectedForms(self): |
785 """ |
785 """ |
786 Private method to compile selected forms to source files. |
786 Private method to compile selected forms to source files. |
787 """ |
787 """ |
788 items = self.getSelectedItems() |
788 items = self.getSelectedItems() |
789 files = [itm.fileName().replace(self.project.ppath + os.sep, '') \ |
789 files = [self.project.getRelativePath(itm.fileName()) \ |
790 for itm in items] |
790 for itm in items] |
791 |
791 |
792 if self.hooks["compileSelectedForms"] is not None: |
792 if self.hooks["compileSelectedForms"] is not None: |
793 self.hooks["compileSelectedForms"](files) |
793 self.hooks["compileSelectedForms"](files) |
794 else: |
794 else: |