summaryrefslogtreecommitdiff
path: root/components/chatwindow.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-01-12 20:13:10 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2021-01-12 20:13:10 -0500
commit2d4edd7239d340ecfa8f7c0ce5c600dfa1a734e0 (patch)
treeb7b71d5e3844d9ed0ff4e00bf5977f926ac08844 /components/chatwindow.hpp
parent64e9e712a12050f2237186c7f752b37fc203cabb (diff)
downloadabaddon-portaudio-2d4edd7239d340ecfa8f7c0ce5c600dfa1a734e0.tar.gz
abaddon-portaudio-2d4edd7239d340ecfa8f7c0ce5c600dfa1a734e0.zip
pull out chat input into its own component, rename some stuff
Diffstat (limited to 'components/chatwindow.hpp')
-rw-r--r--components/chatwindow.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/chatwindow.hpp b/components/chatwindow.hpp
index c1740c4..38437da 100644
--- a/components/chatwindow.hpp
+++ b/components/chatwindow.hpp
@@ -6,6 +6,7 @@
#include "chatmessage.hpp"
#include "completer.hpp"
+class ChatInput;
class TypingIndicator;
class ChatWindow {
public:
@@ -34,8 +35,8 @@ protected:
Snowflake m_active_channel;
- bool on_key_press_event(GdkEventKey *e);
- void on_scroll_edge_overshot(Gtk::PositionType pos);
+ bool OnKeyPressEvent(GdkEventKey *e);
+ void OnScrollEdgeOvershot(Gtk::PositionType pos);
void ScrollToBottom();
bool m_should_scroll_to_bottom = true;
@@ -44,8 +45,7 @@ protected:
Gtk::ListBox *m_list;
Gtk::ScrolledWindow *m_scroll;
- Gtk::TextView *m_input;
- Gtk::ScrolledWindow *m_input_scroll;
+ ChatInput *m_input;
Completer m_completer;
TypingIndicator *m_typing_indicator;