mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -04:00
Fix problems with missing safety checks in Render::fillBuffer and pdfcomic
This commit is contained in:
55
YACReaderLibrary/yacreader_navigation_controller.h
Normal file
55
YACReaderLibrary/yacreader_navigation_controller.h
Normal file
@ -0,0 +1,55 @@
|
||||
#ifndef YACREADER_NAVIGATION_CONTROLLER_H
|
||||
#define YACREADER_NAVIGATION_CONTROLLER_H
|
||||
|
||||
#include <QObject>
|
||||
class LibraryWindow;
|
||||
class YACReaderLibrarySourceContainer;
|
||||
class YACReaderComicsViewsManager;
|
||||
|
||||
class YACReaderNavigationController : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
explicit YACReaderNavigationController(LibraryWindow * parent, YACReaderComicsViewsManager * comicsViewsManager);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
//info origins
|
||||
//folders view
|
||||
void selectedFolder(const QModelIndex & mi);
|
||||
void reselectCurrentFolder();
|
||||
//reading lists
|
||||
void selectedList(const QModelIndex & mi);
|
||||
void reselectCurrentList();
|
||||
|
||||
void reselectCurrentSource();
|
||||
|
||||
//history navigation
|
||||
void selectedIndexFromHistory(const YACReaderLibrarySourceContainer &sourceContainer);
|
||||
void loadIndexFromHistory(const YACReaderLibrarySourceContainer &sourceContainer);
|
||||
//empty subfolder
|
||||
void selectSubfolder(const QModelIndex &sourceMI, int child);
|
||||
|
||||
void loadEmptyFolderInfo(const QModelIndex & modelIndex);
|
||||
|
||||
void loadFolderInfo(const QModelIndex & modelIndex);
|
||||
void loadListInfo(const QModelIndex & modelIndex);
|
||||
void loadSpecialListInfo(const QModelIndex & modelIndex);
|
||||
void loadLabelInfo(const QModelIndex & modelIndex);
|
||||
void loadReadingListInfo(const QModelIndex & modelIndex);
|
||||
|
||||
void loadPreviousStatus();
|
||||
|
||||
private:
|
||||
|
||||
void setupConnections();
|
||||
LibraryWindow * libraryWindow;
|
||||
YACReaderComicsViewsManager * comicsViewsManager;
|
||||
|
||||
//convenience methods
|
||||
qulonglong folderModelIndexToID(const QModelIndex & mi);
|
||||
};
|
||||
|
||||
#endif // YACREADER_NAVIGATION_CONTROLLER_H
|
Reference in New Issue
Block a user