<panel>
	<!-- stretch everything to the sides of the dialog -->
	<layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="0"/>

	<!-- make dialog moveable -->
	<attachment class="moveable_attachment"/>
	
	<!-- arrange items vertically, with text at top -->
	<layout class="arrange_vertical_attachment" alignment="top" gap="8"/>

	<!-- centre dialog in parent -->
	<layout class="centre_in_parent_attachment" alignment="all"/>

	<!-- fit the height of the dialog to the height of its components -->
	<layout class="fit_children_attachment" alignment="vertical, fill" gap="8"/>

	<!-- contents -->
	<widget class="text" id="text" auto_size="vertical"/>

	<!-- edit box -->
	<widget class="edit_box" id="edit" afoc="true" auto_size="vertical"/>

	<!-- spacer -->
	<container height="4"/>
	
	<!-- buttons -->
	<container id="btns" file="editbox buttons"/>
</panel>