Rotate gdb/ChangeLog (start of New Year procedure)
[binutils-gdb.git] / gdb / tui / tui-command.h
blob6a276df72e73d38544d77b8958d7dbb6ba3d6ed3
1 /* Specific command window processing.
3 Copyright (C) 1998-2019 Free Software Foundation, Inc.
5 Contributed by Hewlett-Packard Company.
7 This file is part of GDB.
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
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
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.
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>. */
22 #ifndef TUI_TUI_COMMAND_H
23 #define TUI_TUI_COMMAND_H
25 #include "tui/tui-data.h"
27 /* The TUI command window. */
28 struct tui_cmd_window : public tui_win_info
30 tui_cmd_window ()
31 : tui_win_info (CMD_WIN)
35 DISABLE_COPY_AND_ASSIGN (tui_cmd_window);
37 int max_height () const override;
39 void refresh_window () override
43 const char *name () const override
45 return CMD_NAME;
48 bool can_scroll () const override
50 return false;
53 bool can_box () const override
55 return false;
58 void resize (int height, int width, int origin_x, int origin_y) override;
60 void make_visible (bool visible) override
62 /* The command window can't be made invisible. */
65 int start_line = 0;
67 protected:
69 void do_scroll_vertical (int num_to_scroll) override
73 void do_scroll_horizontal (int num_to_scroll) override
78 /* Refresh the command window. */
79 extern void tui_refresh_cmd_win (void);
81 #endif /* TUI_TUI_COMMAND_H */