public ExtensionEditorWidget() { this.Build(); pixAddin = ImageService.GetPixbuf(MonoDevelop.Ide.Gui.Stock.Addin, IconSize.Menu); pixLocalAddin = ImageService.GetPixbuf("md-addinauthoring-current-addin", IconSize.Menu); pixExtensionPoint = ImageService.GetPixbuf("md-extension-point", IconSize.Menu); pixExtensionNode = ImageService.GetPixbuf("md-extension-node", IconSize.Menu); store = new TreeStore(typeof(string), typeof(string), typeof(Extension), typeof(ExtensionNodeDescription), typeof(Gdk.Pixbuf), typeof(bool), typeof(ExtensionPoint)); state = new TreeViewState(tree, 0); TreeViewColumn col = new TreeViewColumn(); CellRendererPixbuf cpix = new CellRendererPixbuf(); col.PackStart(cpix, false); col.AddAttribute(cpix, "pixbuf", ColIcon); col.AddAttribute(cpix, "visible", ColShowIcon); CellRendererExtension crt = new CellRendererExtension(); crt.Yalign = 0; col.PackStart(crt, true); col.AddAttribute(crt, "markup", ColLabel); tree.AppendColumn(col); tree.Model = store; tree.HeadersVisible = false; tree.Selection.Changed += OnSelectionChanged; IdeApp.ProjectOperations.EndBuild += OnEndBuild; }
public ExtensionEditorWidget() { this.Build(); pixAddin = ImageService.GetPixbuf (MonoDevelop.Ide.Gui.Stock.Addin, IconSize.Menu); pixLocalAddin = ImageService.GetPixbuf ("md-addinauthoring-current-addin", IconSize.Menu); pixExtensionPoint = ImageService.GetPixbuf ("md-extension-point", IconSize.Menu); pixExtensionNode = ImageService.GetPixbuf ("md-extension-node", IconSize.Menu); store = new TreeStore (typeof(string), typeof(string), typeof(Extension), typeof(ExtensionNodeDescription), typeof(Gdk.Pixbuf), typeof(bool), typeof(ExtensionPoint)); state = new TreeViewState (tree, 0); TreeViewColumn col = new TreeViewColumn (); CellRendererPixbuf cpix = new CellRendererPixbuf (); col.PackStart (cpix, false); col.AddAttribute (cpix, "pixbuf", ColIcon); col.AddAttribute (cpix, "visible", ColShowIcon); CellRendererExtension crt = new CellRendererExtension (); crt.Yalign = 0; col.PackStart (crt, true); col.AddAttribute (crt, "markup", ColLabel); tree.AppendColumn (col); tree.Model = store; tree.HeadersVisible = false; tree.Selection.Changed += OnSelectionChanged; IdeApp.ProjectOperations.EndBuild += OnEndBuild; }