aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/QuickMedia.hpp4
-rw-r--r--include/Text.hpp3
2 files changed, 6 insertions, 1 deletions
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp
index 497f202..c6cd7b5 100644
--- a/include/QuickMedia.hpp
+++ b/include/QuickMedia.hpp
@@ -87,6 +87,7 @@ namespace QuickMedia {
RoomData* get_current_chat_room();
void set_go_to_previous_page();
+ void set_pipe_selected_text(const std::string &text);
TaskResult run_task_with_loading_screen(std::function<bool()> callback);
@@ -94,6 +95,7 @@ namespace QuickMedia {
void manga_get_watch_history(const char *plugin_name, BodyItems &history_items);
void youtube_get_watch_history(BodyItems &history_items);
private:
+ void load_plugin_by_name(std::vector<Tab> &tabs, const char *start_dir);
void base_event_handler(sf::Event &event, PageType previous_page, Body *body, SearchBar *search_bar, bool handle_key_press = true, bool handle_searchbar = true);
void event_idle_handler(const sf::Event &event);
void idle_active_handler();
@@ -165,6 +167,7 @@ namespace QuickMedia {
std::string resources_root;
sf::Shader circle_mask_shader;
bool no_video = false;
+ bool force_no_video = false;
bool use_system_mpv_config = false;
UpscaleImageAction upscale_image_action = UpscaleImageAction::NO;
// TODO: Save this to config file when switching modes
@@ -184,5 +187,6 @@ namespace QuickMedia {
sf::Clock idle_timer;
bool idle = true;
bool low_cpu_mode = false;
+ std::string pipe_selected_text;
};
} \ No newline at end of file
diff --git a/include/Text.hpp b/include/Text.hpp
index c74607c..60d0db1 100644
--- a/include/Text.hpp
+++ b/include/Text.hpp
@@ -65,7 +65,7 @@ namespace QuickMedia
{
public:
Text(bool bold_font);
- Text(sf::String str, bool bold_font, unsigned int characterSize, float maxWidth);
+ Text(sf::String str, bool bold_font, unsigned int characterSize, float maxWidth, bool highlight_urls = false);
void setString(sf::String str);
const sf::String& getString() const;
@@ -148,6 +148,7 @@ namespace QuickMedia
bool dirtyText;
bool dirtyCaret;
bool editable;
+ bool highlight_urls;
CaretMoveDirection caretMoveDirection;
sf::FloatRect boundingBox;
int num_lines;