public CombineEntryConfigurationsPanelWidget(MultiConfigItemOptionsDialog dlg) { Build (); configData = dlg.ConfigurationData; store = new TreeStore (typeof(object), typeof(string)); configsList.Model = store; configsList.HeadersVisible = true; store.SetSortColumnId (1, SortType.Ascending); TreeViewColumn col = new TreeViewColumn (); CellRendererText sr = new CellRendererText (); col.PackStart (sr, true); col.AddAttribute (sr, "text", 1); col.Title = GettextCatalog.GetString ("Configuration"); col.SortColumnId = 1; configsList.AppendColumn (col); foreach (ItemConfiguration cc in configData.Configurations) store.AppendValues (cc, cc.Id); addButton.Clicked += new EventHandler (OnAddConfiguration); removeButton.Clicked += new EventHandler (OnRemoveConfiguration); renameButton.Clicked += new EventHandler (OnRenameConfiguration); copyButton.Clicked += new EventHandler (OnCopyConfiguration); }
public CombineConfigurationPanelWidget (MultiConfigItemOptionsDialog parentDialog) { Build (); this.parentDialog = parentDialog; store = new ListStore (typeof(object), typeof(string), typeof(bool)); configsList.Model = store; configsList.HeadersVisible = true; TreeViewColumn col = new TreeViewColumn (); CellRendererText sr = new CellRendererText (); col.PackStart (sr, true); col.Expand = true; col.AddAttribute (sr, "text", 1); col.Title = GettextCatalog.GetString ("Solution Item"); configsList.AppendColumn (col); col.SortColumnId = 1; CellRendererToggle tt = new CellRendererToggle (); tt.Activatable = true; tt.Toggled += new ToggledHandler (OnBuildToggled); configsList.AppendColumn (GettextCatalog.GetString ("Build"), tt, "active", 2); CellRendererComboBox comboCell = new CellRendererComboBox (); comboCell.Changed += new ComboSelectionChangedHandler (OnConfigSelectionChanged); configsList.AppendColumn (GettextCatalog.GetString ("Configuration"), comboCell, new TreeCellDataFunc (OnSetConfigurationsData)); store.SetSortColumnId (1, SortType.Ascending); }
public override void Initialize (OptionsDialog dialog, object dataObject) { base.Initialize (dialog, dataObject); this.dialog = dialog as MultiConfigItemOptionsDialog; if (this.dialog == null) throw new System.InvalidOperationException ("MultiConfigItemOptionsPanel can only be used in options dialogs of type MultiConfigItemOptionsDialog. Panel type: " + GetType ()); this.dialog.ConfigurationData.ConfigurationsChanged += OnConfigurationsChanged; }
public override void Initialize(OptionsDialog dialog, object dataObject) { base.Initialize(dialog, dataObject); this.dialog = dialog as MultiConfigItemOptionsDialog; if (this.dialog == null) { throw new System.InvalidOperationException("MultiConfigItemOptionsPanel can only be used in options dialogs of type MultiConfigItemOptionsDialog. Panel type: " + GetType()); } this.dialog.ConfigurationData.ConfigurationsChanged += OnConfigurationsChanged; }