diff options
Diffstat (limited to 'components/chatinput.hpp')
-rw-r--r-- | components/chatinput.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/components/chatinput.hpp b/components/chatinput.hpp new file mode 100644 index 0000000..a01b6ab --- /dev/null +++ b/components/chatinput.hpp @@ -0,0 +1,23 @@ +#pragma once +#include <gtkmm.h> + +class ChatInput : public Gtk::ScrolledWindow { +public: + ChatInput(); + + void InsertText(const Glib::ustring &text); + Glib::RefPtr<Gtk::TextBuffer> GetBuffer(); + bool ProcessKeyPress(GdkEventKey *event); + +private: + + Gtk::TextView m_textview; + +public: + typedef sigc::signal<void, Glib::ustring> type_signal_submit; + + type_signal_submit signal_submit(); + +private: + type_signal_submit m_signal_submit; +}; |