aboutsummaryrefslogtreecommitdiff
path: root/include/QuickMedia.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-19 16:13:55 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-19 16:13:55 +0200
commit5465c09cd108e37720dbad139de98bdcf5dfe8bf (patch)
tree47db7d4a488bca6711fe9a8cbc47f53a74f3fc67 /include/QuickMedia.hpp
parent7f0bdeddb79c308ab082a124441f1d69d665dbfc (diff)
Move tab code to separate class, fix upload time missing for certain manga plugins, fix touch room click messed up
Diffstat (limited to 'include/QuickMedia.hpp')
-rw-r--r--include/QuickMedia.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp
index 9729c4b..bd3b316 100644
--- a/include/QuickMedia.hpp
+++ b/include/QuickMedia.hpp
@@ -29,6 +29,7 @@ namespace QuickMedia {
class RoomData;
class MatrixChatPage;
class VideoPage;
+ class Tabs;
enum class ImageViewMode {
SINGLE,
@@ -103,7 +104,7 @@ namespace QuickMedia {
void event_idle_handler(const sf::Event &event);
void idle_active_handler();
void update_idle_state();
- void page_loop_render(sf::RenderWindow &window, std::vector<Tab> &tabs, int selected_tab, TabAssociatedData &tab_associated_data, const Json::Value *json_chapters);
+ void page_loop_render(sf::RenderWindow &window, std::vector<Tab> &tabs, int selected_tab, TabAssociatedData &tab_associated_data, const Json::Value *json_chapters, Tabs &ui_tabs);
using PageLoopSubmitHandler = std::function<void(const std::vector<Tab> &new_tabs)>;
void page_loop(std::vector<Tab> &tabs, int start_tab_index = 0, PageLoopSubmitHandler after_submit_handler = nullptr);
void video_content_page(Page *parent_page, VideoPage *video_page, std::string video_title, bool download_if_streaming_fails, BodyItems &next_play_items, int play_index, int *parent_body_page = nullptr, const std::string &parent_page_search = "");
@@ -181,8 +182,6 @@ namespace QuickMedia {
bool fit_image_to_window = false;
RoomData *current_chat_room = nullptr;
bool go_to_previous_page = false;
- sf::RoundedRectangleShape tab_background;
- sf::RectangleShape tab_shade;
sf::Text tab_text;
sf::Vertex gradient_points[4];
sf::Vector2f body_pos;