From 08c7cc837379ae4f085a6cc0d44a8b58bdb5a030 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 10 Mar 2012 07:29:20 +0100 Subject: Slide show Implement slide show in Pictureviewer2. Slide over all available files and wrap around when reaching the end of the list. Also added some more artwork. --- pictureswidget.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pictureswidget.h') diff --git a/pictureswidget.h b/pictureswidget.h index f473140..3f2c41f 100644 --- a/pictureswidget.h +++ b/pictureswidget.h @@ -64,12 +64,14 @@ class PictureView : public QTreeView { PicFilesModel *filesModel() { return mModel; } QSortFilterProxyModel *proxy() { return mProxy; } void setPV(PictureViewer2 *pv) { mPV = pv; } + PictureViewer2 *PV() { return mPV; } public slots: void mappingChanged(int mapping); void deletePics(); void refresh(); void setPVData(int replace = false); + void setPVAll(); protected: virtual void hideEvent(QHideEvent *); @@ -107,6 +109,7 @@ class PicFilesModel : public SmTreeModel { Qt::ItemFlags flags(const QModelIndex &) const { return Qt::ItemIsEnabled | Qt::ItemIsSelectable; } QVariant data(const QModelIndex &index, int role) const; QList dataList(const QModelIndex &idx) const; + QList > allFiles() const; void removeFiles(const QList &files); bool changeMappings(const QList &fileIds, const QList &mappingIds); @@ -120,6 +123,7 @@ class PicFilesModel : public SmTreeModel { QSqlQuery *mCurMappingIdsQ; QSqlQuery *mDeleteMappingsQ; QSqlQuery *mAddMappingsQ; + QSqlQuery *mAllFilesQ; QString mCurMappingIdsQS; int mMappingId; QList mCurMappingsIds; -- cgit v1.2.3-70-g09d2