public iFolderViewGroup(string name, TreeModelFilter model, Entry searchEntry) { this.name = name; this.model = model; this.searchEntry = searchEntry; alreadyDisposed = false; items = new Hashtable(); selection = new iFolderViewGroupSelection(this); resizeTableTimeoutID = 0; rebuildTableTimeoutID = 0; currentWidth = 1; bFirstTableBuild = true; bVisibleWhenEmpty = true; emptyWidget = null; emptySearchWidget = null; searchTimeoutID = 0; searchEntry.Changed += new EventHandler(OnSearchEntryChanged); this.PackStart(CreateWidgets(), true, true, 0); this.Realized += new EventHandler(OnWidgetRealized); }
/// <summary> /// Event Handler for Selection Changed event /// </summary> private void SelectionChangedHandler(object o, EventArgs args) { //Debug.PrintLine("iFolderIconView.SelectionChangedHandler()"); iFolderViewGroupSelection gSelect = (iFolderViewGroupSelection)o; iFolderViewGroup group = gSelect.ViewGroup; // Deselect all other items from other groups foreach (iFolderViewGroup tempGroup in viewGroups) { if (group != tempGroup) { tempGroup.Selection.SelectionChanged -= new EventHandler(SelectionChangedHandler); tempGroup.Selection.UnselectAll(); tempGroup.Selection.SelectionChanged += new EventHandler(SelectionChangedHandler); } } if (SelectionChanged != null) { iFolderViewItem selectedItem = null; if (group.Selection.GetSelected(out selectedItem)) { currentSelection = selectedItem.Holder; SelectionChanged(selectedItem.Holder, EventArgs.Empty); } else { currentSelection = null; SelectionChanged(null, EventArgs.Empty); } } }
public iFolderViewGroup(string name, TreeModelFilter model) { iFolderViewGroup.CheckThread(); this.name = name; this.model = model; items = new Hashtable(); selection = new iFolderViewGroupSelection(this); resizeTableTimeoutID = 0; rebuildTableTimeoutID = 0; currentWidth = 1; bFirstTableBuild = true; bVisibleWhenEmpty = true; emptyWidget = null; this.PackStart(CreateWidgets(), true, true, 0); this.Realized += new EventHandler(OnWidgetRealized); }