protected override Area GetCellRedrawArea(int cellX, int cellY, double x, double y, int width, IViewModel viewModel) { if (viewModel is EventTypeTimelineVM) { return(PlaysCellRenderer.ShouldRedraw(cellX, cellY, y, width, viewModel)); } return(null); }
protected override void SetCellViewModel(CellRenderer cell, TreeIter iter, IViewModel vm) { PlaysCellRenderer renderer = (cell as PlaysCellRenderer); renderer.Item = vm; renderer.Project = Project.Model; renderer.Count = Model.IterNChildren(iter); }
void RenderElement(TreeViewColumn column, CellRenderer cell, TreeModel model, TreeIter iter) { var item = model.GetValue(iter, 0); PlaysCellRenderer c = cell as PlaysCellRenderer; c.Item = item; c.Count = model.IterNChildren(iter); }
protected override void RenderPlaylist(TreeViewColumn column, CellRenderer cell, TreeModel model, TreeIter iter) { var item = model.GetValue(iter, 0); PlaysCellRenderer c = cell as PlaysCellRenderer; c.Item = item; c.Count = model.IterNChildren(iter); }
public PlayListTreeView() { HeadersVisible = false; EnableGridLines = TreeViewGridLines.None; EnableTreeLines = false; ShowExpanders = false; TreeViewColumn custColumn = new TreeViewColumn (); CellRenderer cr = new PlaysCellRenderer (); custColumn.PackStart (cr, true); custColumn.SetCellDataFunc (cr, RenderElement); AppendColumn (custColumn); }
public PlayListTreeView() { HeadersVisible = false; EnableGridLines = TreeViewGridLines.None; EnableTreeLines = false; ShowExpanders = false; TreeViewColumn custColumn = new TreeViewColumn(); CellRenderer cr = new PlaysCellRenderer(); custColumn.PackStart(cr, true); custColumn.SetCellDataFunc(cr, RenderElement); AppendColumn(custColumn); }
public ListTreeViewBase() { Selection.Mode = SelectionMode.Multiple; Selection.SelectFunction = SelectFunction; RowActivated += new RowActivatedHandler (OnTreeviewRowActivated); HeadersVisible = false; ShowExpanders = false; TreeViewColumn custColumn = new TreeViewColumn (); CellRenderer cr = new PlaysCellRenderer (); custColumn.PackStart (cr, true); custColumn.SetCellDataFunc (cr, RenderElement); playsMenu = new PlaysMenu (); playsMenu.EditPlayEvent += HandleEditPlayEvent; AppendColumn (custColumn); }
public ListTreeViewBase() { Selection.Mode = SelectionMode.Multiple; Selection.SelectFunction = SelectFunction; RowActivated += new RowActivatedHandler(OnTreeviewRowActivated); HeadersVisible = false; ShowExpanders = false; TreeViewColumn custColumn = new TreeViewColumn(); CellRenderer cr = new PlaysCellRenderer(); custColumn.PackStart(cr, true); custColumn.SetCellDataFunc(cr, RenderElement); playsMenu = new SportsPlaysMenu(); playsMenu.EditPlayEvent += HandleEditPlayEvent; AppendColumn(custColumn); }
protected override bool ProcessViewModelClicked(IViewModel viewModel, int x, int y, int cellWidth, Gdk.ModifierType state) { if (viewModel is EventTypeTimelineVM && state.HasFlag(Gdk.ModifierType.None)) { var vm = (EventTypeTimelineVM)viewModel; if (vm.Model is SubstitutionEventType) { return(false); } if (PlaysCellRenderer.ClickedPlayButton(x, y, cellWidth)) { vm.LoadEventType(); pathClicked = null; return(true); } } return(false); }
protected override void CreateViews() { CellRenderer descCell = new PlaysCellRenderer(); AppendColumn(null, descCell, RenderPlaylist); }