summaryrefslogtreecommitdiff
path: root/src/components/chatinput.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-07-17 21:37:24 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2023-07-17 21:37:24 -0400
commitd04e101800c451c4963a530b7cf745666105cec4 (patch)
treed73fdf97b00d8f40d8888de762574a424df435eb /src/components/chatinput.hpp
parent0f3814586e3949d1a7fc15bfc2aff2b99d4975a8 (diff)
parent857e94af3817932b78963873fb5621ae3c4596f7 (diff)
downloadabaddon-portaudio-d04e101800c451c4963a530b7cf745666105cec4.tar.gz
abaddon-portaudio-d04e101800c451c4963a530b7cf745666105cec4.zip
Merge branch 'master' into rnnoise
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>;