File indexing completed on 2025-01-05 04:25:24
0001 /* PhotoFlow - animated image viewer for mobile devices 0002 * 0003 * Copyright (C) 2008 Ariya Hidayat (ariya.hidayat@gmail.com) 0004 * Copyright (C) 2007 Ariya Hidayat (ariya.hidayat@gmail.com) 0005 * 0006 * This program is free software; you can redistribute it and/or 0007 * modify it under the terms of the GNU General Public License 0008 * as published by the Free Software Foundation; either 0009 * version 2 of the License, or (at your option) any later version. 0010 * 0011 * This library is distributed in the hope that it will be useful, 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0014 * General Public License for more details. 0015 * 0016 * You should have received a copy of the GNU General Public License 0017 * along with this library; see the file COPYING. If not, write to 0018 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0019 * Boston, MA 02110-1301, USA 0020 * 0021 */ 0022 0023 #ifndef PHOTO_BROWSER_H 0024 #define PHOTO_BROWSER_H 0025 0026 #include "pictureflow.h" 0027 #include "core/meta/forward_declarations.h" 0028 0029 class PhotoBrowser: public PictureFlow 0030 { 0031 Q_OBJECT 0032 0033 public: 0034 explicit PhotoBrowser(QWidget* parent = nullptr, bool enableOpenGL = false); 0035 virtual ~PhotoBrowser(); 0036 0037 void fillAlbums(Meta::AlbumList albums); 0038 public Q_SLOTS: 0039 void fastForward(); 0040 void fastBackward(); 0041 void skipToSlide(int iSlide); 0042 0043 private Q_SLOTS: 0044 void preload(); 0045 void updateImageData(); 0046 0047 private: 0048 class Private; 0049 Private *d; 0050 }; 0051 0052 #endif // PHOTO_BROWSER_H 0053