aboutsummaryrefslogtreecommitdiff
path: root/setup.com
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-10-07 18:03:02 -0600
committerTom Tromey <tom@tromey.com>2019-12-11 15:49:01 -0700
commit389e7ddbc2b08bd5cac8c8f44a03e93609fd43d1 (patch)
treeec0e670d8caa28b67bccb1673e19041993200223 /setup.com
parentfb3184d8ee941e75d61b3d9ce8fcf7028c8877b8 (diff)
downloadgdb-389e7ddbc2b08bd5cac8c8f44a03e93609fd43d1.zip
gdb-389e7ddbc2b08bd5cac8c8f44a03e93609fd43d1.tar.gz
gdb-389e7ddbc2b08bd5cac8c8f44a03e93609fd43d1.tar.bz2
Introduce new layout code
This introduces a new approach to window layout for the TUI. The idea behind this code is that a layout should be specified in a declarative way, and then be applied by generic code that does not need to know the specifics of every possible layout. This patch itself does not change any behavior, because the new layout engine isn't yet connected to anything. That is, this merely introduces the implementation. This generic approach makes the code more maintainable. It also enables some future changes: * New window types are simpler to add; * User-specified layouts are possible; and * Horizontal layouts are more attainable gdb/ChangeLog 2019-12-11 Tom Tromey <tom@tromey.com> * tui/tui-layout.h (class tui_layout_base) (class tui_layout_window, class tui_layout_split): New. * tui/tui-layout.c (tui_get_window_by_name) (tui_layout_window::clone, tui_layout_window::apply) (tui_layout_window::get_sizes, tui_layout_window::add_split) (tui_layout_split::add_window, tui_layout_split::clone) (tui_layout_split::get_sizes) (tui_layout_split::set_weights_from_heights) (tui_layout_split::adjust_size, tui_layout_split::apply): New functions. (tui_layout_split::add_split, tui_layout_split::add_split) (tui_layout_split::set_weights_from_heights) (tui_layout_split::set_weights_from_heights): New functions. Change-Id: I3a4cae666327b617d862aaa356f8179f945c6a4e
Diffstat (limited to 'setup.com')
0 files changed, 0 insertions, 0 deletions