Ticket #716: 716-v3.patch
File 716-v3.patch, 3.4 KB (added by , 19 years ago) |
---|
-
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/gallerysettings.cpp
8 8 #include <qimage.h> 9 9 10 10 #include "config.h" 11 #include "constants.h" 11 12 12 13 // General Settings 13 14 … … 21 22 return gc; 22 23 }; 23 24 25 static HostLineEdit *MythGalleryFileFilter(void) 26 { 27 HostLineEdit *gc = new HostLineEdit("GalleryFileFilter"); 28 gc->setLabel(QObject::tr("Filename Filter")); 29 gc->setValue(MEDIA_FILENAMES); 30 gc->setHelpText( 31 QObject::tr( 32 "Files which do not match any filter are " 33 "exluded from the gallery views. The " 34 "filters are case sensitive.")); 35 36 return gc; 37 }; 38 24 39 static HostCheckBox *MythGalleryThumbnailLocation() 25 40 { 26 41 HostCheckBox *gc = new HostCheckBox("GalleryThumbnailLocation"); … … 173 188 setUseLabel(false); 174 189 175 190 addChild(MythGalleryDir()); 191 addChild(MythGalleryFileFilter()); 176 192 addChild(MythGalleryThumbnailLocation()); 177 193 addChild(MythGallerySortOrder()); 178 194 addChild(MythGalleryImportDirs()); -
mythgallery/main.cpp
119 119 settings.load(); 120 120 settings.save(); 121 121 122 /* this shouldn't be needed because of the settings load/save above 123 if (gContext->GetSetting("GalleryFileFilter", "").isEmpty()) 124 gContext->SaveSetting("GalleryFileFilter", MEDIA_FILENAMES); 125 */ 126 122 127 setupKeys(); 123 128 124 129 return 0; -
mythgallery/thumbgenerator.cpp
200 200 { 201 201 QDir dir(fi.absFilePath()); 202 202 dir.setFilter(QDir::Files); 203 dir.setNameFilter(gContext->GetSetting("GalleryFileFilter")); 204 203 205 const QFileInfoList *list = dir.entryInfoList(); 204 206 if (!list) 205 207 return; -
mythgallery/galleryutil.cpp
156 156 if (thumbGen) 157 157 thumbGen->getThumbcacheDir(currDir); 158 158 159 d.setNameFilter( MEDIA_FILENAMES);159 d.setNameFilter(gContext->GetSetting("GalleryFileFilter")); 160 160 d.setSorting(sortorder); 161 161 162 162 d.setMatchAllDirs(true);