mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Add current/next comic view to GridView.
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
|
||||
#include <QModelIndex>
|
||||
|
||||
#include "comic_db.h"
|
||||
|
||||
|
||||
class QAbstractListModel;
|
||||
@ -17,7 +18,6 @@ class YACReaderComicsSelectionHelper;
|
||||
class YACReaderComicInfoHelper;
|
||||
|
||||
|
||||
|
||||
class GridComicsView : public ComicsView
|
||||
{
|
||||
Q_OBJECT
|
||||
@ -36,12 +36,14 @@ public:
|
||||
void enableFilterMode(bool enabled);
|
||||
QSize sizeHint();
|
||||
QByteArray getMimeDataFromSelection();
|
||||
void updateCurrentComicView();
|
||||
|
||||
public slots:
|
||||
//ComicsView
|
||||
void setShowMarks(bool show);
|
||||
void selectAll();
|
||||
void selectIndex(int index);
|
||||
void triggerOpenCurrentComic();
|
||||
|
||||
void updateBackgroundConfig();
|
||||
|
||||
@ -68,6 +70,13 @@ protected slots:
|
||||
|
||||
void dummyUpdater(); //TODO remove this
|
||||
|
||||
void setCurrentComicIfNeeded();
|
||||
|
||||
void resetScroll();
|
||||
|
||||
signals:
|
||||
void onScrollToOrigin();
|
||||
|
||||
private:
|
||||
QSettings * settings;
|
||||
QToolBar * toolbar;
|
||||
@ -79,9 +88,13 @@ private:
|
||||
QAction * showInfoAction;
|
||||
QAction * showInfoSeparatorAction;
|
||||
|
||||
boolean filterEnabled;
|
||||
|
||||
YACReaderComicsSelectionHelper * selectionHelper;
|
||||
YACReaderComicInfoHelper * comicInfoHelper;
|
||||
|
||||
ComicDB currentComic;
|
||||
|
||||
bool dummy;
|
||||
void closeEvent ( QCloseEvent * event );
|
||||
void createCoverSizeSliderWidget();
|
||||
|
Reference in New Issue
Block a user