~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/wui/game_chat_panel.h

  • Committer: The Widelands Bunnybot
  • Date: 2023-08-26 14:47:30 UTC
  • Revision ID: bunnybot@widelands.org-20230826144730-e95bd1g04nwirbl8
'src/ui_fsmenu/main.cc' was automatically formatted.

(by bunnybot)
20ed7405cfe0298d9903dc093e1e59575ea6367e

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "ui_basic/multilinetextarea.h"
28
28
#include "ui_basic/textinput.h"
29
29
 
 
30
// Global input histories
 
31
extern UI::EditBoxHistory g_chat_sent_history;
 
32
extern UI::EditBoxHistory g_script_console_history;
 
33
const std::string kChatSentHistoryFile = "sent_messages_history";
 
34
const std::string kScriptConsoleHistoryFile = "script_console_history";
 
35
 
30
36
/**
31
37
 * Provides a panel that contains chat message scrollbar and a chat message
32
38
 * entry field.
39
45
                      uint32_t w,
40
46
                      uint32_t h,
41
47
                      ChatProvider&,
 
48
                      UI::EditBoxHistory*,
42
49
                      UI::PanelStyle style);
43
50
 
44
51
        // Signal is called when a message has been sent by the user.
55
62
        }
56
63
 
57
64
        bool handle_key(bool down, SDL_Keysym code) override;
 
65
        bool handle_textinput(const std::string& text) override;
58
66
        bool handle_mousepress(uint8_t btn, int32_t x, int32_t y) override;
59
67
        void focus_edit();
60
68
        void unfocus_edit();