#include <galleryutil.h>
Static Public Member Functions | |
| static QStringList | GetImageFilter (void) |
| static QStringList | GetMovieFilter (void) |
| static QStringList | GetMediaFilter (void) |
| static bool | IsImage (const QString &filePath) |
| static bool | IsMovie (const QString &filePath) |
| static long | GetNaturalRotation (const unsigned char *buffer, int size) |
| static long | GetNaturalRotation (const QString &filePath) |
| static QString | GetCaption (const QString &filePath) |
| static bool | LoadDirectory (ThumbList &itemList, const QString &dir, const GalleryFilter &flt, bool recurse, ThumbHash *itemHash, ThumbGenerator *thumbGen) |
| static QSize | ScaleToDest (const QSize &sz, const QSize &dest, ScaleMax scaleMax) |
| static bool | CopyMove (const QFileInfo &src, QFileInfo &dst, bool move) |
| static bool | Copy (const QFileInfo &src, QFileInfo &dst) |
| static bool | Move (const QFileInfo &src, QFileInfo &dst) |
| static bool | Delete (const QFileInfo &file) |
| static bool | Rename (const QString &currDir, const QString &oldName, const QString &newName) |
| static void | PlayVideo (const QString &filename) |
Static Private Member Functions | |
| static bool | CopyDirectory (const QFileInfo src, QFileInfo &dst) |
| static bool | MoveDirectory (const QFileInfo src, QFileInfo &dst) |
| static bool | DeleteDirectory (const QFileInfo &dir) |
| static bool | RenameDirectory (const QString &currDir, const QString &oldName, const QString &newName) |
| static long | GetNaturalRotation (void *exifData) |
Definition at line 34 of file galleryutil.h.
| QStringList GalleryUtil::GetImageFilter | ( | void | ) | [static] |
Definition at line 54 of file galleryutil.cpp.
Referenced by GetMediaFilter(), and IsImage().
| QStringList GalleryUtil::GetMovieFilter | ( | void | ) | [static] |
Definition at line 72 of file galleryutil.cpp.
Referenced by GetMediaFilter(), and IsMovie().
| QStringList GalleryUtil::GetMediaFilter | ( | void | ) | [static] |
Definition at line 85 of file galleryutil.cpp.
Referenced by ChildCountThread::getChildCount(), and LoadDirectory().
| bool GalleryUtil::IsImage | ( | const QString & | filePath | ) | [static] |
Definition at line 92 of file galleryutil.cpp.
Referenced by LoadDirectory().
| bool GalleryUtil::IsMovie | ( | const QString & | filePath | ) | [static] |
Definition at line 109 of file galleryutil.cpp.
Referenced by GLSingleView::EffectKenBurns(), SingleView::Load(), GLSingleView::Load(), LoadDirectory(), ThumbGenerator::loadFile(), and ThumbGenerator::run().
| long GalleryUtil::GetNaturalRotation | ( | const unsigned char * | buffer, | |
| int | size | |||
| ) | [static] |
Definition at line 126 of file galleryutil.cpp.
Referenced by GetNaturalRotation(), ThumbItem::GetRotationAngle(), and DcrawHandler::loadThumbnail().
| long GalleryUtil::GetNaturalRotation | ( | const QString & | filePath | ) | [static] |
Definition at line 158 of file galleryutil.cpp.
| QString GalleryUtil::GetCaption | ( | const QString & | filePath | ) | [static] |
Definition at line 329 of file galleryutil.cpp.
Referenced by ThumbItem::InitCaption().
| bool GalleryUtil::LoadDirectory | ( | ThumbList & | itemList, | |
| const QString & | dir, | |||
| const GalleryFilter & | flt, | |||
| bool | recurse, | |||
| ThumbHash * | itemHash, | |||
| ThumbGenerator * | thumbGen | |||
| ) | [static] |
Definition at line 242 of file galleryutil.cpp.
Referenced by ImageView::ImageView().
| QSize GalleryUtil::ScaleToDest | ( | const QSize & | sz, | |
| const QSize & | dest, | |||
| ScaleMax | scaleMax | |||
| ) | [static] |
Definition at line 512 of file galleryutil.cpp.
Referenced by GLTexture::ScaleTo(), and SingleView::SetZoom().
| static bool GalleryUtil::CopyMove | ( | const QFileInfo & | src, | |
| QFileInfo & | dst, | |||
| bool | move | |||
| ) | [inline, static] |
Definition at line 54 of file galleryutil.h.
Referenced by FileCopyThread::run().
| bool GalleryUtil::Copy | ( | const QFileInfo & | src, | |
| QFileInfo & | dst | |||
| ) | [static] |
Definition at line 396 of file galleryutil.cpp.
Referenced by CopyDirectory(), and CopyMove().
| bool GalleryUtil::Move | ( | const QFileInfo & | src, | |
| QFileInfo & | dst | |||
| ) | [static] |
Definition at line 421 of file galleryutil.cpp.
Referenced by CopyMove(), and MoveDirectory().
| bool GalleryUtil::Delete | ( | const QFileInfo & | file | ) | [static] |
Definition at line 445 of file galleryutil.cpp.
Referenced by DeleteDirectory(), FileDelete(), SingleView::keyPressEvent(), and GLSingleView::keyPressEvent().
| bool GalleryUtil::Rename | ( | const QString & | currDir, | |
| const QString & | oldName, | |||
| const QString & | newName | |||
| ) | [static] |
Definition at line 463 of file galleryutil.cpp.
| void GalleryUtil::PlayVideo | ( | const QString & | filename | ) | [static] |
Definition at line 711 of file galleryutil.cpp.
Referenced by SingleView::paintEvent(), and GLSingleView::paintGL().
| bool GalleryUtil::CopyDirectory | ( | const QFileInfo | src, | |
| QFileInfo & | dst | |||
| ) | [static, private] |
Definition at line 568 of file galleryutil.cpp.
Referenced by Copy().
| bool GalleryUtil::MoveDirectory | ( | const QFileInfo | src, | |
| QFileInfo & | dst | |||
| ) | [static, private] |
Definition at line 599 of file galleryutil.cpp.
Referenced by Move().
| bool GalleryUtil::DeleteDirectory | ( | const QFileInfo & | dir | ) | [static, private] |
Definition at line 630 of file galleryutil.cpp.
Referenced by Delete().
| bool GalleryUtil::RenameDirectory | ( | const QString & | currDir, | |
| const QString & | oldName, | |||
| const QString & | newName | |||
| ) | [static, private] |
Definition at line 648 of file galleryutil.cpp.
Referenced by Rename().
| long GalleryUtil::GetNaturalRotation | ( | void * | exifData | ) | [static, private] |
Definition at line 193 of file galleryutil.cpp.
1.6.3