#include <galleryutil.h>
Definition at line 27 of file galleryutil.h.
Static Public Member Functions | |
| static bool | isImage (const char *filePath) |
| static bool | isMovie (const char *filePath) |
| static long | GetNaturalRotation (const char *filePath) |
| static QString | GetCaption (const QString &filePath) |
| static bool | LoadDirectory (ThumbList &itemList, const QString &dir, int sortorder, bool recurse, ThumbDict *itemDict, ThumbGenerator *thumbGen) |
| static QSize | ScaleToDest (const QSize &sz, const QSize &dest, bool 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 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) |
| bool GalleryUtil::isImage | ( | const char * | filePath | ) | [static] |
Definition at line 46 of file galleryutil.cpp.
| bool GalleryUtil::isMovie | ( | const char * | filePath | ) | [static] |
Definition at line 52 of file galleryutil.cpp.
Referenced by SingleView::Load(), GLSingleView::Load(), and ThumbGenerator::loadFile().
| long GalleryUtil::GetNaturalRotation | ( | const char * | filePath | ) | [static] |
| QString GalleryUtil::GetCaption | ( | const QString & | filePath | ) | [static] |
Definition at line 219 of file galleryutil.cpp.
Referenced by ThumbItem::InitCaption(), and SingleView::paintEvent().
| bool GalleryUtil::LoadDirectory | ( | ThumbList & | itemList, | |
| const QString & | dir, | |||
| int | sortorder, | |||
| bool | recurse, | |||
| ThumbDict * | itemDict, | |||
| ThumbGenerator * | thumbGen | |||
| ) | [static] |
Definition at line 140 of file galleryutil.cpp.
Referenced by ImageView::ImageView(), and IconView::LoadDirectory().
| QSize GalleryUtil::ScaleToDest | ( | const QSize & | sz, | |
| const QSize & | dest, | |||
| bool | scaleMax | |||
| ) | [static] |
Definition at line 400 of file galleryutil.cpp.
Referenced by GLTexture::ScaleTo(), and SingleView::SetZoom().
| bool GalleryUtil::Copy | ( | const QFileInfo & | src, | |
| QFileInfo & | dst | |||
| ) | [static] |
| bool GalleryUtil::Move | ( | const QFileInfo & | src, | |
| QFileInfo & | dst | |||
| ) | [static] |
| bool GalleryUtil::Delete | ( | const QFileInfo & | file | ) | [static] |
Definition at line 333 of file galleryutil.cpp.
Referenced by DeleteDirectory(), FileDelete(), IconView::HandleDeleteCurrent(), IconView::HandleDeleteMarked(), SingleView::keyPressEvent(), and GLSingleView::keyPressEvent().
| bool GalleryUtil::Rename | ( | const QString & | currDir, | |
| const QString & | oldName, | |||
| const QString & | newName | |||
| ) | [static] |
| bool GalleryUtil::CopyDirectory | ( | const QFileInfo | src, | |
| QFileInfo & | dst | |||
| ) | [static, private] |
| bool GalleryUtil::MoveDirectory | ( | const QFileInfo | src, | |
| QFileInfo & | dst | |||
| ) | [static, private] |
| bool GalleryUtil::DeleteDirectory | ( | const QFileInfo & | dir | ) | [static, private] |
| bool GalleryUtil::RenameDirectory | ( | const QString & | currDir, | |
| const QString & | oldName, | |||
| const QString & | newName | |||
| ) | [static, private] |
1.5.5