|
|
@ -2,7 +2,9 @@ |
|
|
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
|
|
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
|
|
|
|
|
|
|
|
|
|
|
using System; |
|
|
|
using System; |
|
|
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Windows.Forms; |
|
|
|
using System.Windows.Forms; |
|
|
|
|
|
|
|
|
|
|
|
using ICSharpCode.Core; |
|
|
|
using ICSharpCode.Core; |
|
|
|
using ICSharpCode.SharpDevelop.Gui; |
|
|
|
using ICSharpCode.SharpDevelop.Gui; |
|
|
|
|
|
|
|
|
|
|
@ -59,19 +61,23 @@ namespace ICSharpCode.SharpDevelop.BrowserDisplayBinding |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#warning Reimplement URL combo box
|
|
|
|
public class UrlComboBoxBuilder : IMenuItemBuilder |
|
|
|
/* |
|
|
|
|
|
|
|
public class UrlComboBox : AbstractComboBoxCommand |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
protected override void OnOwnerChanged(EventArgs e) |
|
|
|
public IEnumerable<object> BuildItems(Codon codon, object parameter) |
|
|
|
{ |
|
|
|
{ |
|
|
|
base.OnOwnerChanged(e); |
|
|
|
ToolStripComboBox toolbarItem = new ToolStripComboBox(); |
|
|
|
ToolBarComboBox toolbarItem = (ToolBarComboBox)base.ComboBox; |
|
|
|
ComboBox comboBox = toolbarItem.ComboBox; |
|
|
|
toolbarItem.ComboBox.Width *= 3; |
|
|
|
comboBox.Width *= 3; |
|
|
|
((HtmlViewPane)toolbarItem.Caller).SetUrlComboBox(toolbarItem.ComboBox); |
|
|
|
comboBox.DropDownStyle = ComboBoxStyle.DropDown; |
|
|
|
|
|
|
|
comboBox.Items.Clear(); |
|
|
|
|
|
|
|
foreach (string url in PropertyService.GetList<string>("Browser.URLBoxHistory")) |
|
|
|
|
|
|
|
comboBox.Items.Add(url); |
|
|
|
|
|
|
|
comboBox.AutoCompleteMode = AutoCompleteMode.Suggest; |
|
|
|
|
|
|
|
comboBox.AutoCompleteSource = AutoCompleteSource.HistoryList; |
|
|
|
|
|
|
|
((HtmlViewPane)parameter).SetUrlBox(comboBox); |
|
|
|
|
|
|
|
return new[] { toolbarItem }; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class NewWindow : AbstractCommand |
|
|
|
public class NewWindow : AbstractCommand |
|
|
|
{ |
|
|
|
{ |
|
|
|