void ShowDirectoryPathUI ()
{
if (labelPath != null)
return;
// We want to add the Path combo box right below the Scope
uint row = TableGetRowForItem (tableFindAndReplace, labelScope) + 1;
// DirectoryScope
labelPath = new Label {
LabelProp = GettextCatalog.GetString ("_Path:"),
UseUnderline = true,
Xalign = 0f
};
labelPath.Show ();
hboxPath = new HBox ();
comboboxentryPath = new ComboBoxEntry ();
comboboxentryPath.Destroyed += ComboboxentryPathDestroyed;
LoadHistory ("MonoDevelop.FindReplaceDialogs.PathHistory", comboboxentryPath);
comboboxentryPath.Show ();
hboxPath.PackStart (comboboxentryPath);
labelPath.MnemonicWidget = comboboxentryPath;
buttonBrowsePaths = new Button { Label = "..." };
buttonBrowsePaths.Clicked += ButtonBrowsePathsClicked;
buttonBrowsePaths.Show ();
hboxPath.PackStart (buttonBrowsePaths, false, false, 0);
hboxPath.Show ();
// Add the Directory Path row to the table
TableAddRow (tableFindAndReplace, row++, labelPath, hboxPath);
// Add a checkbox for searching the directory recursively...
checkbuttonRecursively = new CheckButton {
Label = GettextCatalog.GetString ("Re_cursively"),
Active = properties.Get ("SearchPathRecursively", true),
UseUnderline = true
};
checkbuttonRecursively.Destroyed += CheckbuttonRecursivelyDestroyed;
checkbuttonRecursively.Show ();
TableAddRow (tableFindAndReplace, row, null, checkbuttonRecursively);
}