From 40e0f8f5d8c3e480f01a2d71b6a493247adcb77f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 21 Sep 2020 03:49:17 +0200 Subject: Initial matrix support --- include/Body.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/Body.hpp') diff --git a/include/Body.hpp b/include/Body.hpp index 3dfbeaa..0bea3c2 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -21,8 +21,19 @@ namespace QuickMedia { dirty = true; } + void append_title(std::string str) { + title += str; + dirty = true; + } + void set_description(std::string new_description) { description = std::move(new_description); + dirty_description = true; + } + + void append_description(std::string str) { + description += str; + dirty_description = true; } const std::string& get_title() const { return title; } @@ -35,6 +46,7 @@ namespace QuickMedia { std::string author; bool visible; bool dirty; + bool dirty_description; std::unique_ptr title_text; std::unique_ptr description_text; // Used by image boards for example. The elements are indices to other body items @@ -62,6 +74,7 @@ namespace QuickMedia { void select_first_item(); void reset_selected(); void clear_items(); + void append_items(BodyItems new_items); void clear_thumbnails(); BodyItem* get_selected() const; -- cgit v1.2.3