#include <thumbgenerator.h>
Public Member Functions | |
| ThumbGenerator (QObject *parent, int w, int h) | |
| ~ThumbGenerator () | |
| void | setSize (int w, int h) |
| void | setDirectory (const QString &directory, bool isGallery=false) |
| void | addFile (const QString &fileName) |
| void | cancel () |
Static Public Member Functions | |
| static QString | getThumbcacheDir (const QString &inDir) |
Protected Member Functions | |
| void | run () |
| Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead. | |
Private Member Functions | |
| bool | moreWork () |
| bool | checkGalleryDir (const QFileInfo &fi) |
| bool | checkGalleryFile (const QFileInfo &fi) |
| void | loadDir (QImage &image, const QFileInfo &fi) |
| void | loadFile (QImage &image, const QFileInfo &fi) |
Private Attributes | |
| QObject * | m_parent |
| QString | m_directory |
| bool | m_isGallery |
| QStringList | m_fileList |
| QMutex | m_mutex |
| int | m_width |
| int | m_height |
| bool | m_cancel |
Definition at line 50 of file thumbgenerator.h.
| ThumbGenerator::ThumbGenerator | ( | QObject * | parent, | |
| int | w, | |||
| int | h | |||
| ) |
Definition at line 59 of file thumbgenerator.cpp.
| ThumbGenerator::~ThumbGenerator | ( | ) |
Definition at line 65 of file thumbgenerator.cpp.
| void ThumbGenerator::setSize | ( | int | w, | |
| int | h | |||
| ) |
Definition at line 71 of file thumbgenerator.cpp.
| void ThumbGenerator::setDirectory | ( | const QString & | directory, | |
| bool | isGallery = false | |||
| ) |
Definition at line 77 of file thumbgenerator.cpp.
Referenced by GalleryUtil::LoadDirectory().
| void ThumbGenerator::addFile | ( | const QString & | fileName | ) |
Definition at line 85 of file thumbgenerator.cpp.
Referenced by GalleryUtil::LoadDirectory().
| void ThumbGenerator::cancel | ( | ) |
Definition at line 94 of file thumbgenerator.cpp.
Referenced by GalleryUtil::LoadDirectory(), and ~ThumbGenerator().
| QString ThumbGenerator::getThumbcacheDir | ( | const QString & | inDir | ) | [static] |
Definition at line 379 of file thumbgenerator.cpp.
Referenced by ImageView::GetScreenShot(), GalleryUtil::LoadDirectory(), and run().
| void ThumbGenerator::run | ( | void | ) | [protected, virtual] |
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
Reimplemented from MThread.
Definition at line 102 of file thumbgenerator.cpp.
| bool ThumbGenerator::moreWork | ( | ) | [private] |
Definition at line 192 of file thumbgenerator.cpp.
Referenced by run().
| bool ThumbGenerator::checkGalleryDir | ( | const QFileInfo & | fi | ) | [private] |
Definition at line 201 of file thumbgenerator.cpp.
Referenced by run().
| bool ThumbGenerator::checkGalleryFile | ( | const QFileInfo & | fi | ) | [private] |
Definition at line 219 of file thumbgenerator.cpp.
Referenced by run().
| void ThumbGenerator::loadDir | ( | QImage & | image, | |
| const QFileInfo & | fi | |||
| ) | [private] |
Definition at line 240 of file thumbgenerator.cpp.
Referenced by run().
| void ThumbGenerator::loadFile | ( | QImage & | image, | |
| const QFileInfo & | fi | |||
| ) | [private] |
Definition at line 282 of file thumbgenerator.cpp.
QObject* ThumbGenerator::m_parent [private] |
Definition at line 76 of file thumbgenerator.h.
Referenced by run().
QString ThumbGenerator::m_directory [private] |
Definition at line 77 of file thumbgenerator.h.
Referenced by run(), and setDirectory().
bool ThumbGenerator::m_isGallery [private] |
Definition at line 78 of file thumbgenerator.h.
Referenced by run(), and setDirectory().
QStringList ThumbGenerator::m_fileList [private] |
Definition at line 79 of file thumbgenerator.h.
Referenced by addFile(), cancel(), moreWork(), and run().
QMutex ThumbGenerator::m_mutex [private] |
Definition at line 80 of file thumbgenerator.h.
Referenced by addFile(), cancel(), moreWork(), run(), and setDirectory().
int ThumbGenerator::m_width [private] |
Definition at line 81 of file thumbgenerator.h.
Referenced by loadFile(), run(), and setSize().
int ThumbGenerator::m_height [private] |
Definition at line 82 of file thumbgenerator.h.
Referenced by loadFile(), run(), and setSize().
bool ThumbGenerator::m_cancel [private] |
Definition at line 83 of file thumbgenerator.h.
1.6.3