#ifndef GALLERY_H #define GALLERY_H #include #include #include #include #include #include #include #include "mainwindow.h" #include "backend/sourcemanager.h" DWIDGET_USE_NAMESPACE class gallery : public QWidget { Q_OBJECT public: gallery(QList imageList); gallery(QList> imageList, MainWindow *parent); private: QLabel *imageView; int currentImage; void init(); void changeImage(int index); void changeLocalImage(int index); QList images; QList> banners; DIconButton *backButton; DIconButton *forwardButton; DSpinner *spinner; DPageIndicator *pageIndicator; MainWindow *mainwindow; bool eventFilter(QObject *object, QEvent *event); }; #endif // GALLERY_H