public void SetPListContainer (PObjectContainer container) { 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, container)) { 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 (container); //capture section for closure var s = section; container.Changed += delegate { expander.Visible = s.CheckVisible (container); }; } } Show (); }
public void SetPListContainer(PObjectContainer container) { 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, container)) { 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(container); //capture section for closure var s = section; container.Changed += delegate { expander.Visible = s.CheckVisible(container); }; } } Show(); }
public void AddExpander (MacExpander expander) { content.PackStart (expander, false, false, 0); }
public ExpanderHeader(MacExpander container) { this.container = container; Events |= EventMask.AllEventsMask; }
public ExpanderHeader (MacExpander container) { this.container = container; Events |= EventMask.AllEventsMask; }
public void AddExpander(MacExpander expander) { content.PackStart(expander, false, false, 0); }