void ShowReplaceUI ()
{
if (replaceMode)
return;
labelReplace = new Label { Text = GettextCatalog.GetString ("_Replace:"), Xalign = 0f, UseUnderline = true };
comboboxentryReplace = new ComboBoxEntry ();
LoadHistory ("MonoDevelop.FindReplaceDialogs.ReplaceHistory", comboboxentryReplace);
comboboxentryReplace.Show ();
labelReplace.Show ();
TableAddRow (tableFindAndReplace, 1, labelReplace, comboboxentryReplace);
buttonReplace = new Button () {
Label = "gtk-find-and-replace",
UseUnderline = true,
CanDefault = true,
UseStock = true,
};
// Note: We override the stock label text instead of using SetButtonIcon() because the
// theme may override whether or not the icons are shown. Using SetButtonIcon() would
// break the theme by forcing icons even if the theme says "no".
OverrideStockLabel (buttonReplace, GettextCatalog.GetString ("R_eplace"));
buttonReplace.Clicked += HandleReplaceClicked;
buttonReplace.Show ();
AddActionWidget (buttonReplace, 0);
buttonReplace.GrabDefault ();
replaceMode = true;
Requisition req = SizeRequest ();
Resize (req.Width, req.Height);
}