diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-07-16 04:16:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-16 04:16:48 +0000 |
commit | 49bbc926e76147d2f380685d4635ebcdf2163f8f (patch) | |
tree | 740be513f52752cf25479bede9e8e2231bf0ffa6 /src/components/chatwindow.hpp | |
parent | 52a340e3666e4081b5f284c320404d06ac37b2f3 (diff) | |
parent | 52b52eb489caa64e6cea978f2c6917a55fa70979 (diff) | |
download | abaddon-portaudio-49bbc926e76147d2f380685d4635ebcdf2163f8f.tar.gz abaddon-portaudio-49bbc926e76147d2f380685d4635ebcdf2163f8f.zip |
Merge pull request #192 from uowuo/message-editing
Improve message editing
Diffstat (limited to 'src/components/chatwindow.hpp')
-rw-r--r-- | src/components/chatwindow.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/chatwindow.hpp b/src/components/chatwindow.hpp index e1bb57a..b3c9d41 100644 --- a/src/components/chatwindow.hpp +++ b/src/components/chatwindow.hpp @@ -37,6 +37,9 @@ public: void SetTopic(const std::string &text); void AddAttachment(const Glib::RefPtr<Gio::File> &file); + void StartEditing(Snowflake message_id); + void StopEditing(); + #ifdef WITH_LIBHANDY void OpenNewTab(Snowflake id); TabsState GetTabsState(); @@ -55,10 +58,14 @@ protected: void StartReplying(Snowflake message_id); void StopReplying(); + bool m_is_editing = false; + Snowflake m_editing_id; + Snowflake m_active_channel; bool OnInputSubmit(ChatSubmitParams data); + bool ProcessKeyEvent(GdkEventKey *e); bool OnKeyPressEvent(GdkEventKey *e); void OnScrollEdgeOvershot(Gtk::PositionType pos); |