![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <chatline.h>
Inheritance diagram for chat_input:
Collaboration diagram for chat_input:Public Member Functions | |
| chat_input (QWidget *parent=nullptr) | |
| Constructor. More... | |
Protected Member Functions | |
| bool | event (QEvent *event) override |
| Event handler for chat_input, used for history. More... | |
| void | focusInEvent (QFocusEvent *event) override |
| Event handler for chat_input, used for history. More... | |
Private Slots | |
| void | send () |
| Sends the content of the input box. More... | |
Private Member Functions | |
| void | update_completion () |
| Called whenever the completion word list changes. More... | |
Private Member Functions inherited from chat_listener | |
| chat_listener () | |
| Constructor. More... | |
| virtual void | chat_message_received (const QString &, const struct text_tag_list *) |
| Called whenever a message is received. More... | |
| void | send_chat_message (const QString &message) |
| Sends commands to server, but first searches for custom keys, if it finds then it makes custom action. More... | |
| QString | back_in_history () |
| Goes back one position in history, and returns the message at the new position. More... | |
| QString | forward_in_history () |
| Goes forward one position in history, and returns the message at the new position. More... | |
| void | reset_history_position () |
| Go to the end of the history. More... | |
Private Member Functions inherited from listener< chat_listener > | |
| listener () | |
| virtual | ~listener () |
| void | listen () |
Additional Inherited Members | |
Private Types inherited from listener< chat_listener > | |
| typedef chat_listener | type_t |
Static Private Member Functions inherited from listener< chat_listener > | |
| static void | invoke (_member_fct_ function, _args_ &&...args) |
Static Private Attributes inherited from chat_listener | |
| static const int | HISTORY_END = -1 |
Definition at line 62 of file chatline.h.
|
explicit |
Constructor.
Definition at line 169 of file chatline.cpp.
|
overrideprotected |
Event handler for chat_input, used for history.
Definition at line 314 of file chatline.cpp.
Referenced by focusInEvent().
|
overrideprotected |
Event handler for chat_input, used for history.
Definition at line 333 of file chatline.cpp.
|
privateslot |
Sends the content of the input box.
Definition at line 178 of file chatline.cpp.
Referenced by chat_input().
|
private |
Called whenever the completion word list changes.
Definition at line 187 of file chatline.cpp.
Referenced by focusInEvent().