Freeciv-3.1
|
#include <chatline.h>
Public Member Functions | |
chat_input (QWidget *parent=nullptr) | |
virtual void | chat_word_list_changed (const QStringList &cmplt_word_list) |
bool | event (QEvent *event) |
Private Slots | |
void | send () |
Additional Inherited Members | |
Private Types inherited from listener< chat_listener > | |
typedef chat_listener | type_t |
Private Member Functions inherited from chat_listener | |
chat_listener () | |
virtual void | chat_message_received (const QString &, const struct text_tag_list *) |
void | send_chat_message (const QString &message) |
int | position_in_history () |
QString | back_in_history () |
QString | forward_in_history () |
void | reset_history_position () |
QStringList | current_word_list () |
Private Member Functions inherited from listener< chat_listener > | |
listener () | |
virtual | ~listener () |
void | listen () |
Static Private Member Functions inherited from chat_listener | |
static void | update_word_list () |
Static Private Member Functions inherited from listener< chat_listener > | |
static void | invoke (_member_fct_ function) |
static void | invoke (_member_fct_ function, _arg1_t_ arg) |
static void | invoke (_member_fct_ function, _arg1_t_ arg1, _arg2_t_ arg2) |
Static Private Attributes inherited from chat_listener | |
static const int | HISTORY_END = -1 |
Definition at line 80 of file chatline.h.
|
explicit |
Constructor
Definition at line 216 of file chatline.cpp.
|
virtual |
Called whenever the completion word list changes.
Reimplemented from chat_listener.
Definition at line 236 of file chatline.cpp.
Referenced by chat_input().
bool chat_input::event | ( | QEvent * | event | ) |
Event handler for chat_input, used for history
Definition at line 253 of file chatline.cpp.
|
privateslot |
Sends the content of the input box
Definition at line 227 of file chatline.cpp.
Referenced by chat_input().