mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Added new class for dealing with all the comics' views. This way all the related code will be moved away from the library window controller.
This commit is contained in:
parent
1b5797b67c
commit
704408f704
@ -145,7 +145,8 @@ HEADERS += comic_flow.h \
|
||||
empty_special_list.h \
|
||||
empty_reading_list_widget.h \
|
||||
../common/scroll_management.h \
|
||||
../common/opengl_checker.h
|
||||
../common/opengl_checker.h \
|
||||
yacreader_comics_views_manager.h
|
||||
|
||||
!CONFIG(no_opengl) {
|
||||
CONFIG(legacy_gl_widget) {
|
||||
@ -215,7 +216,8 @@ SOURCES += comic_flow.cpp \
|
||||
empty_special_list.cpp \
|
||||
empty_reading_list_widget.cpp \
|
||||
../common/scroll_management.cpp \
|
||||
../common/opengl_checker.cpp
|
||||
../common/opengl_checker.cpp \
|
||||
yacreader_comics_views_manager.cpp
|
||||
|
||||
!CONFIG(no_opengl) {
|
||||
CONFIG(legacy_gl_widget) {
|
||||
|
6
YACReaderLibrary/yacreader_comics_views_manager.cpp
Normal file
6
YACReaderLibrary/yacreader_comics_views_manager.cpp
Normal file
@ -0,0 +1,6 @@
|
||||
#include "comics_views_manager.h"
|
||||
|
||||
ComicsViewsManager::ComicsViewsManager(QObject *parent) : QObject(parent)
|
||||
{
|
||||
|
||||
}
|
35
YACReaderLibrary/yacreader_comics_views_manager.h
Normal file
35
YACReaderLibrary/yacreader_comics_views_manager.h
Normal file
@ -0,0 +1,35 @@
|
||||
#ifndef YACREADERCOMICSVIEWSMANAGER_H
|
||||
#define YACREADERCOMICSVIEWSMANAGER_H
|
||||
|
||||
#include <QtWidgets>
|
||||
|
||||
class YACReaderComicsViewsManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderComicsViewsManager(QObject *parent = 0);
|
||||
|
||||
QWidget * containerWidget();
|
||||
|
||||
protected:
|
||||
QStackedWidget * comicsViewStack;
|
||||
|
||||
ComicsView * comicsView;
|
||||
ClassicComicsView * classicComicsView;
|
||||
GridComicsView * gridComicsView;
|
||||
|
||||
ComicsViewTransition * comicsViewTransition;
|
||||
|
||||
EmptyFolderWidget * emptyFolderWidget;
|
||||
EmptyLabelWidget * emptyLabelWidget;
|
||||
EmptySpecialListWidget * emptySpecialList;
|
||||
EmptyReadingListWidget * emptyReadingList;
|
||||
|
||||
NoSearchResultsWidget * noSearchResultsWidget;
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
};
|
||||
|
||||
#endif // COMICSVIEWSMANAGER_H
|
Loading…
x
Reference in New Issue
Block a user