Move can_box to tui_gen_win_info
authorTom Tromey <tom@tromey.com>
Wed, 6 Nov 2019 00:12:04 +0000 (17:12 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 11 Dec 2019 22:49:00 +0000 (15:49 -0700)
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  <tom@tromey.com>

* tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
(struct tui_win_info) <can_box>: Update.

Change-Id: Idfa58af41341607932d3c39415f6a35ee9b5d3dc

gdb/ChangeLog
gdb/tui/tui-data.h

index 20d3321b51103fbd53b1c6306f4c54f527853816..88fa1c1d15c7d811d76fbc47739cdd36578abe53 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-11  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
+       (struct tui_win_info) <can_box>: Update.
+
 2019-12-11  Tom Tromey  <tom@tromey.com>
 
        * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
index d3b84b164c62d466857f53939ec1acd64abec06d..d441a381468801697750a7f58bac75854a82fd42 100644 (file)
@@ -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;
   }
This page took 0.030101 seconds and 4 git commands to generate.