)
add_subdirectory(ps)
-add_subdirectory(raw)
if(TAGLIB_FOUND AND FLAC++_FOUND)
add_subdirectory(audio)
+++ /dev/null
-project(rawthumbnail)
-
-## includes and linking
-include_directories(${KEXIV2_INCLUDE_DIR} ${KDCRAW_INCLUDE_DIR})
-
-
-#sources
-set(rawthumbnail_SRCS rawcreator.cpp)
-kde4_add_plugin(rawthumbnail ${rawthumbnail_SRCS})
-
-
-## includes and linking
-target_link_libraries(rawthumbnail
- ${KDE4_KIO_LIBS}
- ${KDE4_KDCRAW_LIBS}
- ${KDE4_KEXIV2_LIBS}
- ${KDE4_KDECORE_LIBS}
- ${QT_QTGUI_LIBRARY}
-)
-
-## install the plugin
-install(TARGETS rawthumbnail DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
-install(FILES rawthumbnail.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
-
-
+++ /dev/null
-/**
- Copyright (C) 2008 Unai Garro <ugarro@gmail.com>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
- USA
-**/
-
-#include "rawcreator.h"
-
-#include <QImage>
-
-#include <libkdcraw/kdcraw.h>
-#include <libkexiv2/kexiv2.h>
-#include <kdemacros.h>
-
-extern "C"
-{
- KDE_EXPORT ThumbCreator *new_creator()
- {
- return new RAWCreator;
- }
-}
-
-RAWCreator::RAWCreator()
-{
-}
-
-RAWCreator::~RAWCreator()
-{
-}
-
-bool RAWCreator::create(const QString &path, int width, int height, QImage &img)
-{
- //load the image into the QByteArray
- QByteArray data;
- bool loaded=KDcrawIface::KDcraw::loadEmbeddedPreview(data,path);
-
- if (loaded)
- {
-
- //Load the image into a QImage
- QImage preview;
- if (!preview.loadFromData(data) || preview.isNull())
- return false;
-
- //And its EXIF info
- KExiv2Iface::KExiv2 exiv;
- if (exiv.loadFromData(data))
- {
- //We managed reading the EXIF info, rotate the image
- //according to the EXIF orientation flag
- exiv.rotateExifQImage(preview, exiv.getImageOrientation());
- }
-
- //Scale the image as requested by the thumbnailer
- img=preview.scaled(width,height,Qt::KeepAspectRatio);
-
- }
- return loaded;
-}
-
-ThumbCreator::Flags RAWCreator::flags() const
-{
- return (Flags)(0);
-}
+++ /dev/null
-/**
- Copyright (C) 2008 Unai Garro <ugarro@gmail.com>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
- USA
-**/
-
-#ifndef RAWCREATOR_H
-#define RAWCREATOR_H
-
-#include <kio/thumbcreator.h>
-
-class RAWCreator : public ThumbCreator
-{
-public:
- RAWCreator();
- virtual ~RAWCreator();
- virtual bool create(const QString &path, int width, int height, QImage &img);
- virtual Flags flags() const;
-};
-
-#endif
+++ /dev/null
-[Desktop Entry]
-Type=Service
-Name=RAW Photo Camera Files
-Name[ar]=ملفات الخامة RAW لآلة التصوير
-Name[bg]=Снимки RAW от фотоапарат
-Name[bs]=Sirove datoteke s kamere
-Name[ca]=Fitxers RAW de càmera de fotos
-Name[ca@valencia]=Fitxers RAW de càmera de fotos
-Name[cs]=RAW soubory z fotoaparátu
-Name[da]=Kamera-filer i RAW-foto
-Name[de]=RAW-Fotokamera-Dateien
-Name[el]=RAW αρχεία φωτογραφιών
-Name[en_GB]=RAW Photo Camera Files
-Name[es]=Archivos RAW de cámara fotográfica
-Name[et]=Kaamera toorfailid
-Name[eu]=RAW argazki kamera-fitxategiak
-Name[fi]=RAW-kuvakameratiedostot
-Name[fr]=Fichiers « RAW » d'appareil photo numérique
-Name[ga]=Comhaid Cheamara RAW
-Name[gl]=Ficheiros RAW de cámara de fotos
-Name[hr]=Fotografske datoteke RAW
-Name[hu]=RAW-fájlok
-Name[ia]=Files de photo camera RAW
-Name[is]=RAW myndavélaskrár
-Name[it]=File grezzi fotocamera
-Name[ja]=カメラの RAW ファイル
-Name[kk]=Камераның RAW ('шикі') файлдары
-Name[km]=ឯកសាររូបថតរបស់ម៉ាស៊ីនថតដើម
-Name[ko]=RAW 사진 카메라 파일
-Name[lt]=Fotoaparato RAW failai
-Name[lv]=RAW fotogrāfiju faili
-Name[mr]=RAW फोटो कॅमेरा फाईल्स
-Name[nb]=RAW foto kamerafiler
-Name[nds]=RAW-Fotokamera-Dateien
-Name[nl]=Bestanden met RAW-camera-afbeelding
-Name[pa]=RAW ਫੋਟੋ ਕੈਮਰਾ ਫਾਇਲਾਂ
-Name[pl]=Pliki RAW z aparatów cyfrowych
-Name[pt]=Ficheiros de Máquinas Fotográficas RAW
-Name[pt_BR]=Arquivos RAW de câmeras fotográficas
-Name[ro]=Fișiere fotografice brute
-Name[ru]=Цифровые негативы (RAW)
-Name[si]=RAW පිංතූර කැමරා ගොනු
-Name[sk]=RAW súbory z digitálneho fotoaparátu
-Name[sl]=Surove datoteke s fotoaparata
-Name[sr]=Сирови фајлови с фотоапарата
-Name[sr@ijekavian]=Сирови фајлови с фотоапарата
-Name[sr@ijekavianlatin]=Sirovi fajlovi s fotoaparata
-Name[sr@latin]=Sirovi fajlovi s fotoaparata
-Name[sv]=Obehandlade kamerafiler
-Name[tr]=RAW Fotoğraf Makinesi Dosyaları
-Name[ug]=RAW سۈرەت كامېرا ھۆججىتى
-Name[uk]=Файли цифрових негативів
-Name[x-test]=xxRAW Photo Camera Filesxx
-Name[zh_CN]=RAW 照片相机文件
-Name[zh_TW]=原始相機檔
-X-KDE-ServiceTypes=ThumbCreator
-X-KDE-PluginInfo-EnabledByDefault=true
-# image/x-dcraw is the subclass for all "raw" image formats, so no need to list them all
-MimeType=image/x-dcraw;
-X-KDE-Library=rawthumbnail
-CacheThumbnail=true