Commit | Line | Data |
---|---|---|
f377b406 | 1 | /* Specific command window processing. |
b0a30fce | 2 | |
b811d2c2 | 3 | Copyright (C) 1998-2020 Free Software Foundation, Inc. |
b0a30fce | 4 | |
f377b406 SC |
5 | Contributed by Hewlett-Packard Company. |
6 | ||
7 | This file is part of GDB. | |
8 | ||
9 | This program is free software; you can redistribute it and/or modify | |
10 | it under the terms of the GNU General Public License as published by | |
a9762ec7 | 11 | the Free Software Foundation; either version 3 of the License, or |
f377b406 SC |
12 | (at your option) any later version. |
13 | ||
14 | This program is distributed in the hope that it will be useful, | |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | GNU General Public License for more details. | |
18 | ||
19 | You should have received a copy of the GNU General Public License | |
a9762ec7 | 20 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
f377b406 | 21 | |
1a5c2598 TT |
22 | #ifndef TUI_TUI_COMMAND_H |
23 | #define TUI_TUI_COMMAND_H | |
c906108c | 24 | |
ce38393b TT |
25 | #include "tui/tui-data.h" |
26 | ||
27 | /* The TUI command window. */ | |
28 | struct tui_cmd_window : public tui_win_info | |
29 | { | |
fdb01f0c | 30 | tui_cmd_window () = default; |
ce38393b TT |
31 | |
32 | DISABLE_COPY_AND_ASSIGN (tui_cmd_window); | |
33 | ||
ce38393b TT |
34 | int max_height () const override; |
35 | ||
36 | void refresh_window () override | |
37 | { | |
38 | } | |
39 | ||
40 | const char *name () const override | |
41 | { | |
42 | return CMD_NAME; | |
43 | } | |
44 | ||
45 | bool can_scroll () const override | |
46 | { | |
47 | return false; | |
48 | } | |
49 | ||
65962b20 TT |
50 | bool can_box () const override |
51 | { | |
52 | return false; | |
53 | } | |
54 | ||
db502012 TT |
55 | void resize (int height, int width, int origin_x, int origin_y) override; |
56 | ||
57 | void make_visible (bool visible) override | |
58 | { | |
59 | /* The command window can't be made invisible. */ | |
60 | } | |
61 | ||
ce38393b TT |
62 | int start_line = 0; |
63 | ||
64 | protected: | |
65 | ||
66 | void do_scroll_vertical (int num_to_scroll) override | |
67 | { | |
68 | } | |
69 | ||
70 | void do_scroll_horizontal (int num_to_scroll) override | |
71 | { | |
72 | } | |
ce38393b TT |
73 | }; |
74 | ||
518be979 DE |
75 | /* Refresh the command window. */ |
76 | extern void tui_refresh_cmd_win (void); | |
77 | ||
1a5c2598 | 78 | #endif /* TUI_TUI_COMMAND_H */ |