From c3819073118488ffef5482957758d65be8c33cec Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 13 Mar 2022 05:19:37 +0100 Subject: Attempt to fix video player focus, add keys to navigate to previous/next chapter in image scroll view --- include/ImageViewer.hpp | 4 +++- include/QuickMedia.hpp | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/ImageViewer.hpp b/include/ImageViewer.hpp index c1fb6ad..cb63229 100644 --- a/include/ImageViewer.hpp +++ b/include/ImageViewer.hpp @@ -41,7 +41,9 @@ namespace QuickMedia { enum class ImageViewerAction { NONE, RETURN, - SWITCH_TO_SINGLE_IMAGE_MODE + SWITCH_TO_SINGLE_IMAGE_MODE, + PREVIOUS_CHAPTER, + NEXT_CHAPTER }; class ImageViewer { diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index 1fda7a3..c1df4ed 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -134,8 +134,9 @@ namespace QuickMedia { void video_content_page(Page *parent_page, VideoPage *video_page, std::string video_title, bool download_if_streaming_fails, Body *parent_body, int play_index, int *parent_body_page = nullptr, const std::string &parent_page_search = ""); void save_manga_progress(MangaImagesPage *images_page, Json::Value &json_chapters, Json::Value &json_chapter, int &latest_read); // Returns -1 to go to previous chapter, 0 to stay on same chapter and 1 to go to next chapter - int image_page(MangaImagesPage *images_page, Body *chapters_body); - void image_continuous_page(MangaImagesPage *images_page); + int image_page(MangaImagesPage *images_page, Body *chapters_body, bool &continue_left_off); + // Returns -1 to go to previous chapter, 0 to stay on same chapter and 1 to go to next chapter + int image_continuous_page(MangaImagesPage *images_page); void image_board_thread_page(ImageBoardThreadPage *thread_page, Body *thread_body); void chat_login_page(); bool chat_page(MatrixChatPage *matrix_chat_page, RoomData *current_room); -- cgit v1.2.3