public PListEditorWidget (IPlistEditingHandler handler, Project proj, PDictionary plist) { var summaryScrolledWindow = new PListEditorSection (); AppendPage (summaryScrolledWindow, new Label (GettextCatalog.GetString ("Summary"))); var advancedScrolledWindow = new PListEditorSection (); AppendPage (advancedScrolledWindow, new Label (GettextCatalog.GetString ("Advanced"))); foreach (var section in handler.GetSections (proj, plist)) { var expander = new MacExpander () { ContentLabel = section.Name, Expandable = true, }; expander.SetWidget (section.Widget); if (section.IsAdvanced) { advancedScrolledWindow.AddExpander (expander); } else { summaryScrolledWindow.AddExpander (expander); } if (section.CheckVisible != null) { expander.Visible = section.CheckVisible (plist); //capture section for closure var s = section; plist.Changed += delegate { expander.Visible = s.CheckVisible (plist); }; } } Show (); }
public PListEditorViewContent (IPlistEditingHandler handler, Project proj) { if (handler != null) { widget = new PListEditorWidget (handler, proj); } else { widget = new CustomPropertiesWidget (); } }
public PListEditorViewContent(IPlistEditingHandler handler, Project proj) { if (handler != null) { widget = new PListEditorWidget(handler, proj); } else { widget = new CustomPropertiesWidget(); } }
public PListEditorViewContent (IPlistEditingHandler handler, Project proj) { if (handler != null) { widget = new PListEditorWidget (handler, proj); control = (Gtk.Widget) widget; } else { widget = new CustomPropertiesWidget (); var csw = new MonoDevelop.Components.CompactScrolledWindow (); csw.Show (); csw.AddWithViewport ((Gtk.Widget)widget); control = csw; } }
public PListEditorViewContent(IPlistEditingHandler handler, Project proj) { if (handler != null) { widget = new PListEditorWidget(handler, proj); control = (Gtk.Widget)widget; } else { widget = new CustomPropertiesWidget(); var csw = new MonoDevelop.Components.CompactScrolledWindow(); csw.Show(); csw.AddWithViewport((Gtk.Widget)widget); control = csw; } }
public IViewContent CreateContent(FilePath fileName, string mimeType, Project ownerProject) { IPlistEditingHandler handler = null; if (ownerProject != null && fileName != null) { var pf = ownerProject.GetProjectFile(fileName); var virtualPath = pf.ProjectVirtualPath; var handlers = Mono.Addins.AddinManager.GetExtensionObjects <IPlistEditingHandler> (EXT_PATH); foreach (var h in handlers) { if (h.CanHandle(ownerProject, virtualPath)) { handler = h; break; } } } return(new PListEditorViewContent(handler, ownerProject)); }
public PListEditorWidget (IPlistEditingHandler handler, Project proj) { this.handler = handler; this.proj = proj; }
public PListEditorWidget(IPlistEditingHandler handler, Project proj) { this.handler = handler; this.proj = proj; }