aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Body.hpp1
-rw-r--r--include/QuickMedia.hpp1
-rw-r--r--include/SearchBar.hpp10
3 files changed, 1 insertions, 11 deletions
diff --git a/include/Body.hpp b/include/Body.hpp
index b44a386..23439ec 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -69,7 +69,6 @@ namespace QuickMedia {
void append_item(std::shared_ptr<BodyItem> body_item);
void append_items(BodyItems new_items);
void insert_item(std::shared_ptr<BodyItem> body_item, int index);
- void move_items_to(Body *other_body);
void move_item(size_t src_index, size_t dst_index);
// Returns the inserted position
size_t insert_item_by_timestamp(std::shared_ptr<BodyItem> body_item);
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp
index 4399c3d..71e4797 100644
--- a/include/QuickMedia.hpp
+++ b/include/QuickMedia.hpp
@@ -68,6 +68,7 @@ namespace QuickMedia {
bool typing = false;
bool fetching_next_page_running = false;
bool fetching_next_page_failed = false;
+ bool search_suggestion_submitted = false;
int fetched_page = 0;
sf::Text search_result_text;
AsyncTask<FetchResult> fetch_future;
diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp
index 027f534..a888ffb 100644
--- a/include/SearchBar.hpp
+++ b/include/SearchBar.hpp
@@ -18,7 +18,6 @@ namespace QuickMedia {
using TextUpdateCallback = std::function<void(const std::string &text)>;
using TextSubmitCallback = std::function<void(const std::string &text)>;
using TextBeginTypingCallback = std::function<void()>;
- using AutocompleteRequestCallback = std::function<void(const std::string &text)>;
class SearchBar {
public:
@@ -29,9 +28,6 @@ namespace QuickMedia {
void onWindowResize(const sf::Vector2f &window_size);
void clear();
void append_text(const std::string &text_to_add);
- bool is_cursor_at_start_of_line() const;
- void set_to_autocomplete();
- void set_autocomplete_text(const std::string &text);
void set_position(sf::Vector2f pos);
void set_editable(bool editable);
@@ -45,9 +41,7 @@ namespace QuickMedia {
TextUpdateCallback onTextUpdateCallback;
TextSubmitCallback onTextSubmitCallback;
TextBeginTypingCallback onTextBeginTypingCallback;
- AutocompleteRequestCallback onAutocompleteRequestCallback;
int text_autosearch_delay;
- int autocomplete_search_delay;
bool caret_visible;
float padding_top = 0.0f;
@@ -55,11 +49,8 @@ namespace QuickMedia {
float padding_x = 10.0f;
private:
void onTextEntered(sf::Uint32 codepoint);
- void clear_autocomplete_if_text_not_substring();
- void clear_autocomplete_if_last_char_not_substr();
private:
sf::Text text;
- sf::Text autocomplete_text;
RoundedRectangle background;
sf::RectangleShape shade;
sf::RectangleShape caret;
@@ -67,7 +58,6 @@ namespace QuickMedia {
std::string placeholder_str;
bool show_placeholder;
bool updated_search;
- bool updated_autocomplete;
bool draw_logo;
bool needs_update;
bool input_masked;