33
33
using MonoDevelop.DesignerSupport;
34
34
using MonoDevelop.Core;
35
using MonoDevelop.Core.Gui;
35
36
using MonoDevelop.Core.Gui.ProgressMonitoring;
36
37
using MonoDevelop.Components;
37
38
using MonoDevelop.Ide.Gui;
59
60
public ComponentSelectorDialog (IToolboxConsumer currentConsumer)
61
using (IProgressMonitor monitor = new MessageDialogProgressMonitor (true, false, false, true)) {
62
using (IProgressMonitor monitor = new MessageDialogProgressMonitor (true, true, false, true)) {
62
63
index = DesignerSupport.Service.ToolboxService.GetComponentIndex (monitor);
157
158
while (store.IterNext (ref it));
160
it = store.AppendValues (false, co.Category, "", "", "", null, null, false, (int)Pango.Weight.Bold);
161
store.AppendValues (it, currentItems.ContainsKey (co), co.Label, "", ifile.Name, ifile.Location, img, co, true, (int)Pango.Weight.Normal);
161
it = store.AppendValues (false, co.Category, string.Empty, string.Empty, string.Empty, null, null, false, (int)Pango.Weight.Bold);
162
store.AppendValues (it, currentItems.ContainsKey (co), co.Name, string.Empty, ifile.Name, ifile.Location, img, co, true, (int)Pango.Weight.Normal);
164
store.AppendValues (currentItems.ContainsKey (co), co.Label, "", ifile.Name, ifile.Location, img, co, true, (int)Pango.Weight.Normal);
165
store.AppendValues (currentItems.ContainsKey (co), co.Name, string.Empty, ifile.Name, ifile.Location, img, co, true, (int)Pango.Weight.Normal);
167
168
protected virtual void OnComboTypeChanged (object sender, System.EventArgs e)
217
218
currentItems.Add (it, it);
220
IdeApp.Services.MessageService.ShowWarning (GettextCatalog.GetString ("The file '{0}' does not contain any component.", s));
221
MessageService.ShowWarning (GettextCatalog.GetString ("The file '{0}' does not contain any component.", s));