summaryrefslogtreecommitdiff
path: root/src/components/chatwindow.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-07-15 01:02:35 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2023-07-15 01:02:35 -0400
commit00524cefa29e80f0a9a80fd77bb6e1f4da024f65 (patch)
tree60096a087d1a858cdfaf242a9523b52be4d37de8 /src/components/chatwindow.hpp
parent52a340e3666e4081b5f284c320404d06ac37b2f3 (diff)
downloadabaddon-portaudio-00524cefa29e80f0a9a80fd77bb6e1f4da024f65.tar.gz
abaddon-portaudio-00524cefa29e80f0a9a80fd77bb6e1f4da024f65.zip
make editing inline, add up arrow shortcut
Diffstat (limited to 'src/components/chatwindow.hpp')
-rw-r--r--src/components/chatwindow.hpp7
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);