From 1431937bee66d6a36c377156d07856f6e469e552 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 5 Nov 2019 17:12:04 -0700 Subject: [PATCH] Move can_box to tui_gen_win_info This moves the can_box method to tui_gen_win_info, so that it will be available on the tui_locator_window class. This will be used in a subsequent patch. gdb/ChangeLog 2019-12-11 Tom Tromey * tui/tui-data.h (struct tui_gen_win_info) : New method. (struct tui_win_info) : Update. Change-Id: Idfa58af41341607932d3c39415f6a35ee9b5d3dc --- gdb/ChangeLog | 5 +++++ gdb/tui/tui-data.h | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 20d3321b51..88fa1c1d15 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-12-11 Tom Tromey + + * tui/tui-data.h (struct tui_gen_win_info) : New method. + (struct tui_win_info) : Update. + 2019-12-11 Tom Tromey * tui/tui-stack.h (struct tui_locator_window) : New diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index d3b84b164c..d441a38146 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -85,6 +85,12 @@ public: /* Compute the maximum height of this window. */ virtual int max_height () const = 0; + /* Return true if this window can be boxed. */ + virtual bool can_box () const + { + return false; + } + /* Resize this window. The parameters are used to set the window's size and position. */ virtual void resize (int height, int width, @@ -203,7 +209,7 @@ public: return true; } - virtual bool can_box () const + bool can_box () const override { return true; }