private void HideChildItem(Widget widget) { if (!(widget is DockItem)) { return; } DockItem item = widget as DockItem; item.HideItem(); }
void ShowToggledCb(object sender, ToggledArgs a) { TreeIter iter; if (itemsModel.GetIterFromString(out iter, a.Path)) { bool show = (bool)itemsModel.GetValue(iter, SHOW_COL); DockItem item = itemsModel.GetValue(iter, ITEM_COL) as DockItem; if (show) { item.HideItem(); } else { item.ShowItem(); } UpdateItemsModel(); } }
void AddPad(IPadContent content, string placement) { DockItem item = new DockItem (content.Id, content.Title, content.Icon, DockItemBehavior.Normal); Gtk.Label label = item.TabLabel as Gtk.Label; label.UseMarkup = true; if (content is Widget) item.Add (content.Control); else { CommandRouterContainer crc = new CommandRouterContainer (content.Control, content, true); crc.Show (); item.Add (crc); } item.Show (); item.HideItem (); content.TitleChanged += new EventHandler (UpdatePad); content.IconChanged += new EventHandler (UpdatePad); DockPad (item, placement); if (!activePadCollection.Contains (content)) activePadCollection.Add (content); }
private void CloseClicked(object o, EventArgs e) { item.HideItem(); }