summaryrefslogtreecommitdiff
path: root/src/components/chatinput.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/chatinput.hpp')
-rw-r--r--src/components/chatinput.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/chatinput.hpp b/src/components/chatinput.hpp
index bc6a45d..a3c9742 100644
--- a/src/components/chatinput.hpp
+++ b/src/components/chatinput.hpp
@@ -129,6 +129,7 @@ public:
ChatInput();
void InsertText(const Glib::ustring &text);
+ void Clear();
Glib::RefPtr<Gtk::TextBuffer> GetBuffer();
bool ProcessKeyPress(GdkEventKey *event);
void AddAttachment(const Glib::RefPtr<Gio::File> &file);
@@ -139,6 +140,11 @@ public:
void StartReplying();
void StopReplying();
+ void StartEditing(const Message &message);
+ void StopEditing();
+
+ bool IsEmpty();
+
private:
bool AddFileAsImageAttachment(const Glib::RefPtr<Gio::File> &file);
bool CanAttachFiles();
@@ -149,6 +155,8 @@ private:
Snowflake m_active_channel;
+ bool m_is_editing = false;
+
public:
using type_signal_submit = sigc::signal<bool, ChatSubmitParams>;
using type_signal_escape = sigc::signal<void>;