19 #ifndef PREVIEWIMAGE_H
20 #define PREVIEWIMAGE_H
22 #include <QAbstractListModel>
27 #include <QModelIndex>
30 #include <QStringList>
33 #include "scribusdoc.h"
70 bool createPreviewIcon (
const QImage &image,
int size );
80 QFileInfo fileInformation;
86 bool previewImageLoading;
88 bool previewIconCreated;
104 void createPreviewImagesList (
const QStringList& imageFiles );
108 void clearPreviewImagesList();
111 bool toRemove (
bool a,
bool b );
113 void filterFileName (
const QString &fileName,
bool invert );
115 void filterFileSize ( qint64 fileSize,
bool smallerThan );
117 void filterFileType (
const QStringList &types,
bool invert );
119 void filterFileModified (
const QDateTime &modified,
bool smallerThan );
121 void filterResolution ( qint64 resolution,
bool smallerThan );
123 void filterTag (
const QStringList &tags,
bool invert );
132 void sortPreviewImages (
const int sort );
135 QList<previewImage *> previewImagesList;
152 void createDefaultIcon (
int size );
154 void setModelItemsList (
const QList<previewImage *> &previewImagesList );
156 void clearModelItemsList();
159 QVariant data (
const QModelIndex &index,
int role = Qt::DisplayRole )
const;
161 Qt::ItemFlags flags (
const QModelIndex &index )
const;
163 int rowCount (
const QModelIndex &parent )
const;
165 QMimeData *mimeData (
const QModelIndexList &indexes )
const;
166 QStringList mimeTypes()
const;
169 QList<previewImage *> modelItemsList;
179 void processLoadedImage (
int row,
const QImage image,
ImageInformation* imgInfo,
int tpId );
180 void processImageLoadError (
int row,
int tpId,
int errorcode );
192 #endif // PREVIEWIMAGE_H
Definition: previewimage.h:97
Definition: previewimage.h:140
Definition: usertaskstructs.h:15
the Document Class
Definition: scribusdoc.h:90
Definition: collection.h:29
Definition: previewimage.h:59
Definition: pageitem.h:92
Definition: picturebrowser.h:97