LAYOUT(IDEFindReplaceLayout, 748, 52)
	ITEM(Upp::WithDropChoice<Upp::EditString>, find, LeftPosZ(4, 152).TopPosZ(4, 19))
	ITEM(Upp::Button, prev, LeftPosZ(156, 20).TopPosZ(4, 19))
	ITEM(Upp::Button, next, LeftPosZ(176, 20).TopPosZ(4, 19))
	ITEM(Upp::Option, wholeword, SetLabel(t_("&Whole word")).LeftPosZ(252, 88).TopPosZ(4, 19))
	ITEM(Upp::Option, wildcards, SetLabel(t_("Wild&cards")).LeftPosZ(344, 72).TopPosZ(4, 19))
	ITEM(Upp::Option, ignorecase, SetLabel(t_("&Ignore case")).LeftPosZ(420, 80).TopPosZ(4, 19))
	ITEM(Upp::Option, regexp, SetLabel(t_("RegExp")).LeftPosZ(504, 80).TopPosZ(4, 19))
	ITEM(Upp::Option, incremental, SetLabel(t_("Incremental")).LeftPosZ(564, 92).TopPosZ(4, 19))
	ITEM(Upp::Option, incremental_from_cursor, SetLabel(t_("From cursor")).LeftPosZ(648, 92).TopPosZ(4, 19))
	ITEM(Upp::Button, close, RightPosZ(0, 20).TopPosZ(4, 19))
	ITEM(Upp::WithDropChoice<Upp::EditString>, replace, LeftPosZ(4, 152).TopPosZ(28, 19))
	ITEM(Upp::Button, amend, LeftPosZ(156, 20).TopPosZ(28, 19))
	ITEM(Upp::Button, amend_all, SetLabel(t_("All")).LeftPosZ(180, 44).TopPosZ(28, 19))
	ITEM(Upp::Button, find_all, SetLabel(t_("All")).LeftPosZ(200, 44).TopPosZ(4, 19))
	ITEM(Upp::Button, amend_rest, SetLabel(t_("Rest")).LeftPosZ(228, 52).TopPosZ(28, 19))
	ITEM(Upp::Option, samecase, SetLabel(t_("Mimic case")).LeftPosZ(284, 108).TopPosZ(28, 19))
	ITEM(Upp::Switch, mode, SetLabel(t_("Replace\nRemove lines without pattern\nRemove line with pattern")).LeftPosZ(0, 408).TopPosZ(64, 16))
	ITEM(Upp::Label, find_lbl, SetLabel(t_("Find")).LeftPosZ(0, 48).TopPosZ(84, 19))
	ITEM(Upp::Label, replace_lbl, SetLabel(t_("Replace")).LeftPosZ(52, 48).TopPosZ(84, 19))
END_LAYOUT

LAYOUT(BlockReplaceLayout, 408, 136)
	ITEM(Upp::WithDropChoice<Upp::EditString>, find, HSizePosZ(56, 8).TopPosZ(4, 19))
	ITEM(Upp::WithDropChoice<Upp::EditString>, replace, HSizePosZ(56, 8).TopPosZ(48, 19))
	ITEM(Upp::Option, wholeword, SetLabel(t_("&Whole word")).LeftPosZ(8, 84).BottomPosZ(40, 20))
	ITEM(Upp::Option, wildcards, SetLabel(t_("Wild&cards")).LeftPosZ(96, 72).BottomPosZ(40, 20))
	ITEM(Upp::Option, ignorecase, SetLabel(t_("&Ignore case")).LeftPosZ(172, 84).BottomPosZ(40, 20))
	ITEM(Upp::Option, samecase, SetLabel(t_("Mimic case")).LeftPosZ(260, 80).BottomPosZ(40, 20))
	ITEM(Upp::Option, regexp, SetLabel(t_("RegEx")).LeftPosZ(344, 64).BottomPosZ(40, 20))
	ITEM(Upp::Button, next, SetLabel(t_("Replace")).RightPosZ(80, 76).BottomPosZ(8, 24))
	ITEM(Upp::Button, close, SetLabel(t_("Cancel")).RightPosZ(8, 64).BottomPosZ(8, 24))
	ITEM(Upp::Switch, mode, SetLabel(t_("Replace\nRemove lines without pattern\nRemove lines with pattern")).LeftPosZ(8, 396).TopPosZ(28, 16))
	ITEM(Upp::Label, find_lbl, SetLabel(t_("Find")).LeftPosZ(8, 48).TopPosZ(4, 19))
	ITEM(Upp::Label, replace_lbl, SetLabel(t_("Replace")).LeftPosZ(8, 48).TopPosZ(48, 19))
END_LAYOUT

