mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-19 20:11:59 +03:00
pull out chat input into its own component, rename some stuff
This commit is contained in:
23
components/chatinput.hpp
Normal file
23
components/chatinput.hpp
Normal file
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user