mirror of
				https://github.com/YACReader/yacreader
				synced 2025-10-31 00:04:26 -04:00 
			
		
		
		
	Added new comics view class oriented to showing comics metadata.
This commit is contained in:
		| @ -146,7 +146,8 @@ HEADERS += comic_flow.h \ | |||||||
|     empty_reading_list_widget.h \ |     empty_reading_list_widget.h \ | ||||||
|     ../common/scroll_management.h \ |     ../common/scroll_management.h \ | ||||||
|     ../common/opengl_checker.h \ |     ../common/opengl_checker.h \ | ||||||
|     yacreader_comics_views_manager.h |     yacreader_comics_views_manager.h \ | ||||||
|  |     info_comics_view.h | ||||||
|  |  | ||||||
| !CONFIG(no_opengl) { | !CONFIG(no_opengl) { | ||||||
|     CONFIG(legacy_gl_widget) { |     CONFIG(legacy_gl_widget) { | ||||||
| @ -217,7 +218,8 @@ SOURCES += comic_flow.cpp \ | |||||||
|     empty_reading_list_widget.cpp \ |     empty_reading_list_widget.cpp \ | ||||||
|     ../common/scroll_management.cpp \ |     ../common/scroll_management.cpp \ | ||||||
|     ../common/opengl_checker.cpp \ |     ../common/opengl_checker.cpp \ | ||||||
|     yacreader_comics_views_manager.cpp |     yacreader_comics_views_manager.cpp \ | ||||||
|  |     info_comics_view.cpp | ||||||
|  |  | ||||||
| !CONFIG(no_opengl) { | !CONFIG(no_opengl) { | ||||||
|     CONFIG(legacy_gl_widget) { |     CONFIG(legacy_gl_widget) { | ||||||
|  | |||||||
							
								
								
									
										72
									
								
								YACReaderLibrary/info_comics_view.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										72
									
								
								YACReaderLibrary/info_comics_view.cpp
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,72 @@ | |||||||
|  | #include "info_comics_view.h" | ||||||
|  |  | ||||||
|  | InfoComicsView::InfoComicsView(QWidget *parent) | ||||||
|  |     :ComicsView(parent) | ||||||
|  | { | ||||||
|  |     int FIXME; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void InfoComicsView::setToolBar(QToolBar *toolBar) | ||||||
|  | { | ||||||
|  |     int FIXME; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void InfoComicsView::setModel(ComicModel *model) | ||||||
|  | { | ||||||
|  |     int FIXME; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void InfoComicsView::setCurrentIndex(const QModelIndex &index) | ||||||
|  | { | ||||||
|  |     int FIXME; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | QModelIndex InfoComicsView::currentIndex() | ||||||
|  | { | ||||||
|  |     int FIXME; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | QItemSelectionModel *InfoComicsView::selectionModel() | ||||||
|  | { | ||||||
|  |     int FIXME; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void InfoComicsView::scrollTo(const QModelIndex &mi, QAbstractItemView::ScrollHint hint) | ||||||
|  | { | ||||||
|  |     int FIXME; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void InfoComicsView::toFullScreen() | ||||||
|  | { | ||||||
|  |     int FIXME; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void InfoComicsView::toNormal() | ||||||
|  | { | ||||||
|  |     int FIXME; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void InfoComicsView::updateConfig(QSettings *settings) | ||||||
|  | { | ||||||
|  |     int FIXME; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void InfoComicsView::enableFilterMode(bool enabled) | ||||||
|  | { | ||||||
|  |     int FIXME; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void InfoComicsView::selectIndex(int index) | ||||||
|  | { | ||||||
|  |     int FIXME; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void InfoComicsView::setShowMarks(bool show) | ||||||
|  | { | ||||||
|  |     int FIXME; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | void InfoComicsView::selectAll() | ||||||
|  | { | ||||||
|  |     int FIXME; | ||||||
|  | } | ||||||
							
								
								
									
										30
									
								
								YACReaderLibrary/info_comics_view.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								YACReaderLibrary/info_comics_view.h
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,30 @@ | |||||||
|  | #ifndef INFOCOMICSVIEW_H | ||||||
|  | #define INFOCOMICSVIEW_H | ||||||
|  |  | ||||||
|  | #include "comics_view.h" | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class InfoComicsView : public ComicsView | ||||||
|  | { | ||||||
|  |     Q_OBJECT | ||||||
|  | public: | ||||||
|  |     explicit InfoComicsView(QWidget *parent = 0); | ||||||
|  |     void setToolBar(QToolBar * toolBar); | ||||||
|  |     void setModel(ComicModel *model); | ||||||
|  |     void setCurrentIndex(const QModelIndex &index); | ||||||
|  |     QModelIndex currentIndex(); | ||||||
|  |     QItemSelectionModel * selectionModel(); | ||||||
|  |     void scrollTo(const QModelIndex & mi, QAbstractItemView::ScrollHint hint ); | ||||||
|  |     void toFullScreen(); | ||||||
|  |     void toNormal(); | ||||||
|  |     void updateConfig(QSettings * settings); | ||||||
|  |     void enableFilterMode(bool enabled); | ||||||
|  |     void selectIndex(int index); | ||||||
|  |  | ||||||
|  | public slots: | ||||||
|  |     void setShowMarks(bool show); | ||||||
|  |     void selectAll(); | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | #endif // INFOCOMICSVIEW_H | ||||||
		Reference in New Issue
	
	Block a user