Ticket #716: mythgallery.10213.diff
File mythgallery.10213.diff, 4.0 KB (added by , 18 years ago) |
---|
-
mythgallery/i18n/mythgallery_es.ts
116 116 <translation>Este directorio tiene que existir y se necesita permiso de lectura.</translation> 117 117 </message> 118 118 <message> 119 <source>Filename Filter</source> 120 <translation>Filtro por nombre</translation> 121 </message> 122 <message> 123 <source>Exclude images not matching filter. Search is case sensitive. Example: HI_* LOW_* [0-9]* *.tiff</source> 124 <translation>Excluye ficheros que no complen el patron. Es sensible a mayusculas. Ejemplo: HI_* LOW_* [0-9]* *.tiff</translation> 125 </message> 126 <message> 119 127 <source>Paths to import images from</source> 120 128 <translation>Ruta desde donde se importan las imágenes</translation> 121 129 </message> -
mythgallery/mythgallery/gallerysettings.cpp
8 8 #include <qimage.h> 9 9 10 10 #include "config.h" 11 11 #include "constants.h" 12 12 // General Settings 13 13 14 14 static HostLineEdit *MythGalleryDir() … … 21 21 return gc; 22 22 }; 23 23 24 static HostLineEdit *MythGalleryFileFilter() 25 { 26 HostLineEdit *gc = new HostLineEdit("GalleryFileFilter"); 27 gc->setLabel(QObject::tr("Filename Filter")); 28 gc->setValue(MEDIA_FILENAMES); 29 gc->setHelpText(QObject::tr("Exclude images not matching filter. Search is case sensitive. Example: HI_* LOW_* [0-9]* *.tiff")); 30 return gc; 31 }; 32 24 33 static HostCheckBox *MythGalleryThumbnailLocation() 25 34 { 26 35 HostCheckBox *gc = new HostCheckBox("GalleryThumbnailLocation"); … … 160 169 setUseLabel(false); 161 170 162 171 addChild(MythGalleryDir()); 172 addChild(MythGalleryFileFilter()); 163 173 addChild(MythGalleryThumbnailLocation()); 164 174 addChild(MythGalleryImportDirs()); 165 175 addChild(MythGalleryMoviePlayerCmd()); -
mythgallery/mythgallery/iconview.cpp
118 118 m_isGallery = false; 119 119 m_showDevices = false; 120 120 m_currDevice = initialDevice; 121 122 //JC 170606: restore MEDIA_FILENAMES 123 if (!gContext->GetSetting("GalleryFileFilter") || gContext->GetSetting("GalleryFileFilter")=="") 124 gContext->SaveSetting("GalleryFileFilter", MEDIA_FILENAMES); 125 126 std::cerr << "FileFilter is " << gContext->GetSetting("GalleryFileFilter") << std::endl; 121 127 122 128 srand(time(NULL)); 123 129 -
mythgallery/mythgallery/thumbgenerator.cpp
200 200 { 201 201 QDir dir(fi.absFilePath()); 202 202 dir.setFilter(QDir::Files); 203 204 // JC 170606: Skip filenames not in GalleryFileFilter 205 dir.setNameFilter(gContext->GetSetting("GalleryFileFilter")); 206 203 207 const QFileInfoList *list = dir.entryInfoList(); 204 208 if (!list) 205 209 return; -
mythgallery/mythgallery/galleryutil.cpp
1 /* ============================================================1 /* ============================================================ 2 2 * File : exifutil.cpp 3 3 * Description : 4 4 * … … 156 156 if (thumbGen) 157 157 thumbGen->getThumbcacheDir(currDir); 158 158 159 d.setNameFilter(MEDIA_FILENAMES); 159 // JC 170606: Skip filenames not in GalleryFileFilter 160 d.setNameFilter(gContext->GetSetting("GalleryFileFilter")); 161 160 162 d.setSorting(QDir::Name | QDir::DirsFirst | QDir::IgnoreCase); 161 163 162 164 d.setMatchAllDirs(true);