950 from .FindFileWidget import FindFileWidget |
950 from .FindFileWidget import FindFileWidget |
951 self.__findFileWidget = FindFileWidget(self.project, self) |
951 self.__findFileWidget = FindFileWidget(self.project, self) |
952 self.__findFileWidget.sourceFile.connect( |
952 self.__findFileWidget.sourceFile.connect( |
953 self.viewmanager.openSourceFile) |
953 self.viewmanager.openSourceFile) |
954 self.__findFileWidget.designerFile.connect(self.__designer) |
954 self.__findFileWidget.designerFile.connect(self.__designer) |
|
955 self.__findFileWidget.linguistFile.connect(self.__linguist) |
|
956 self.__findFileWidget.trpreview.connect(self.__TRPreviewer) |
|
957 self.__findFileWidget.pixmapFile.connect(self.__showPixmap) |
|
958 self.__findFileWidget.svgFile.connect(self.__showSvg) |
|
959 self.__findFileWidget.umlFile.connect(self.__showUml) |
955 |
960 |
956 # Create the find location (file) widget |
961 # Create the find location (file) widget |
957 from .FindLocationWidget import FindLocationWidget |
962 from .FindLocationWidget import FindLocationWidget |
958 self.__findLocationWidget = FindLocationWidget(self.project, self) |
963 self.__findLocationWidget = FindLocationWidget(self.project, self) |
959 self.__findLocationWidget.sourceFile.connect( |
964 self.__findLocationWidget.sourceFile.connect( |
960 self.viewmanager.openSourceFile) |
965 self.viewmanager.openSourceFile) |
961 self.__findLocationWidget.designerFile.connect(self.__designer) |
966 self.__findLocationWidget.designerFile.connect(self.__designer) |
|
967 self.__findLocationWidget.linguistFile.connect(self.__linguist) |
|
968 self.__findLocationWidget.trpreview.connect(self.__TRPreviewer) |
|
969 self.__findLocationWidget.pixmapFile.connect(self.__showPixmap) |
|
970 self.__findLocationWidget.svgFile.connect(self.__showSvg) |
|
971 self.__findLocationWidget.umlFile.connect(self.__showUml) |
962 |
972 |
963 # Create the VCS Status widget |
973 # Create the VCS Status widget |
964 from VCS.StatusWidget import StatusWidget |
974 from VCS.StatusWidget import StatusWidget |
965 self.__vcsStatusWidget = StatusWidget( |
975 self.__vcsStatusWidget = StatusWidget( |
966 self.project, self.viewmanager, self) |
976 self.project, self.viewmanager, self) |
5468 '<p>Could not start UI Previewer.<br>' |
5478 '<p>Could not start UI Previewer.<br>' |
5469 'Ensure that it is available as <b>{0}</b>.</p>' |
5479 'Ensure that it is available as <b>{0}</b>.</p>' |
5470 ).format(viewer)) |
5480 ).format(viewer)) |
5471 |
5481 |
5472 @pyqtSlot() |
5482 @pyqtSlot() |
5473 @pyqtSlot(str) |
5483 @pyqtSlot(list) |
5474 @pyqtSlot(str, bool) |
5484 @pyqtSlot(list, bool) |
5475 def __TRPreviewer(self, fileNames=None, ignore=False): |
5485 def __TRPreviewer(self, fileNames=None, ignore=False): |
5476 """ |
5486 """ |
5477 Private slot to start the Translation Previewer executable. |
5487 Private slot to start the Translation Previewer executable. |
5478 |
5488 |
5479 @param fileNames filenames of forms and/or translations to be previewed |
5489 @param fileNames filenames of forms and/or translations to be previewed |