58 void set_player_names (const StringList& names); |
58 void set_player_names (const StringList& names); |
59 void need_refresh(); |
59 void need_refresh(); |
60 void tab_complete (const String& part, String complete); |
60 void tab_complete (const String& part, String complete); |
61 RCONSession* get_session() { return &Session; } |
61 RCONSession* get_session() { return &Session; } |
62 void handle_command(const String& input); |
62 void handle_command(const String& input); |
|
63 void disconnected(); |
63 |
64 |
64 void vprint (const char* fmtstr, va_list args); |
65 void vprint (const char* fmtstr, va_list args); |
65 void __cdecl print (const char* fmtstr, ...); |
66 void __cdecl print (const char* fmtstr, ...); |
66 void __cdecl print_warning (const char* fmtstr, ...); |
67 void __cdecl print_warning (const char* fmtstr, ...); |
67 void __cdecl print_error (const char* fmtstr, ...); |
68 void __cdecl print_error (const char* fmtstr, ...); |
79 struct { char ch; int x; } CursorCharacter; |
80 struct { char ch; int x; } CursorCharacter; |
80 Vector<ColoredLine> OutputLines; |
81 Vector<ColoredLine> OutputLines; |
81 int OutputScroll; |
82 int OutputScroll; |
82 String Title; |
83 String Title; |
83 InputState CurrentInputState; |
84 InputState CurrentInputState; |
84 std::function<void (void)> DisconnectConfirmFunction; |
85 std::function<void(bool)> DisconnectConfirmFunction; |
85 IPAddress CurrentAddress; |
86 IPAddress CurrentAddress; |
86 String StatusBarText; |
87 String StatusBarText; |
87 StringList PlayerNames; |
88 StringList PlayerNames; |
88 String PasteBuffer; |
89 String PasteBuffer; |
89 RCONSession Session; |
90 RCONSession Session; |
90 |
91 |
91 void render_titlebar(); |
92 void render_titlebar(); |
92 void safe_disconnect (std::function<void()> afterwards); |
93 void safe_disconnect (std::function<void(bool)> afterwards); |
93 int render_colorline (int y, int x0, int width, const ColoredLine& line, bool allowWrap); |
94 int render_colorline (int y, int x0, int width, const ColoredLine& line, bool allowWrap); |
94 int nicklist_width(); |
95 int nicklist_width(); |
95 void render_output(); |
96 void render_output(); |
96 void render_nicklist(); |
97 void render_nicklist(); |
97 void render_input(); |
98 void render_input(); |
106 void set_input_state (InputState newstate); |
107 void set_input_state (InputState newstate); |
107 void print_to_console (String message); |
108 void print_to_console (String message); |
108 void yank (int a, int b); |
109 void yank (int a, int b); |
109 int find_previous_word(); |
110 int find_previous_word(); |
110 int find_next_word(); |
111 int find_next_word(); |
|
112 void reset_title(); |
111 }; |
113 }; |
112 |
114 |
113 END_ZFC_NAMESPACE |
115 END_ZFC_NAMESPACE |