def __plain_view_handler__(self):
     filesnames = self.__table__.model().getSelectedFiles()
     dialog = FilesPreviewDialog(normalize_filenames(filesnames), self)
     dialog.exec_()
 def __getObjectName__(self, file_specification):
     return normalize_filenames(file_specification.pathname,
                                file_specification.filename)
Example #3
0
def showFilesPreviewDialog(filespaths, parent=None):
    if filespaths == None or len(filespaths) == 0:
        InformationWindow(message="No files selected !")
    else:
        dialog = FilesPreviewDialog(normalize_filenames(filespaths), parent)
        dialog.exec_()