binutils-gdb/gdb/doc
Tom Tromey 7c043ba695 Add horizontal splitting to TUI layout
This changes the TUI layout engine to add horizontal splitting.  Now,
windows can be side-by-side.

A horizontal split is defined using the "-horizontal" parameter to
"tui new-layout".

This also adds the first "winheight" test to the test suite.  One open
question is whether we want a new "winwidth" command, now that
horizontal layouts are possible.  This is easily done using the
generic layout code.

gdb/ChangeLog
2020-02-22  Tom Tromey  <tom@tromey.com>

	PR tui/17850:
	* tui/tui-win.c (tui_gen_win_info::max_width): New method.
	* tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
	"height" argument.
	(class tui_layout_window) <get_sizes>: Likewise.
	(class tui_layout_split) <tui_layout_split>: Add "vertical"
	argument.
	<get_sizes>: Add "height" argument.
	<m_vertical>: New field.
	* tui/tui-layout.c (tui_layout_split::clone): Update.
	(tui_layout_split::get_sizes): Add "height" argument.
	(tui_layout_split::adjust_size, tui_layout_split::apply): Update.
	(tui_new_layout_command): Parse "-horizontal".
	(_initialize_tui_layout): Update help string.
	(tui_layout_split::specification): Add "-horizontal" when needed.
	* tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
	argument.
	* tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
	New methods.

gdb/doc/ChangeLog
2020-02-22  Tom Tromey  <tom@tromey.com>

	PR tui/17850:
	* gdb.texinfo (TUI Commands): Document horizontal layouts.

gdb/testsuite/ChangeLog
2020-02-22  Tom Tromey  <tom@tromey.com>

	PR tui/17850:
	* gdb.tui/new-layout.exp: Add horizontal layout and winheight
	tests.

Change-Id: I38b35e504f34698578af86686be03c0fefd954ae
2020-02-22 11:48:33 -07:00
..
.gitignore
a4rc.sed
agentexpr.texi Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
all-cfg.texi Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
annotate.texinfo Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
ChangeLog Add horizontal splitting to TUI layout 2020-02-22 11:48:33 -07:00
doxy-index.in Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
Doxyfile-base.in Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
Doxyfile-gdb-api.in Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
Doxyfile-gdb-xref.in Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
Doxyfile-gdbserver.in Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
fdl.texi
filter-for-doxygen
filter-params.pl
gdb.texinfo Add horizontal splitting to TUI layout 2020-02-22 11:48:33 -07:00
gpl.texi
guile.texi Multi-target: NEWS and user manual 2020-01-10 20:06:15 +00:00
lpsrc.sed
Makefile.in Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
psrc.sed
python.texi Multi-target: NEWS and user manual 2020-01-10 20:06:15 +00:00
refcard.tex Update copyright year in gdbarch.sh doc/gdb.texinfo and doc/refcard.tex 2020-01-01 10:37:10 +04:00
stabs.texinfo Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
stack_frame.eps
stack_frame.pdf
stack_frame.png
stack_frame.svg
stack_frame.txt