public TreeViewColumn AppendColumn(string title, CellRenderer cell, TreeCellDataFunc cell_data) { Gtk.TreeViewColumn col = new Gtk.TreeViewColumn(); col.Title = title; col.PackStart(cell, true); col.SetCellDataFunc(cell, cell_data); AppendColumn(col); return(col); }
public TreeViewColumn AppendColumn(string title, CellRenderer cell, TreeCellDataFunc cell_data) { Gtk.TreeViewColumn col = new Gtk.TreeViewColumn (); col.Title = title; col.PackStart (cell, true); col.SetCellDataFunc (cell, cell_data); AppendColumn (col); return col; }
protected void AddTextColumn(string name, TreeCellDataFunc tcdf, EditedHandler eh) { CellRendererText renderer = new CellRendererText(); if (eh != null) { renderer.Editable = true; renderer.Edited += eh; } AddColumn(name, renderer, tcdf); }
protected void AddToggleColumn(string name, TreeCellDataFunc tcdf, ToggledHandler th) { CellRendererToggle renderer = new CellRendererToggle(); if (th != null) { renderer.Toggled += th; renderer.Toggled += CheckImport; // @TODO might need a refactor } AddColumn(name, renderer, tcdf); }
protected void AddColumn(string name, CellRenderer renderer, TreeCellDataFunc tcdf) { var column = new TreeViewColumn(); column.Title = name; column.PackStart(renderer, true); column.Resizable = true; column.SetCellDataFunc(renderer, new TreeCellDataFunc(tcdf)); importView.AppendColumn(column); }
void AddColumn(string title, CellRenderer cellRenderer, TreeCellDataFunc func, Array attributes) { var column = new TreeViewColumn(title, cellRenderer, attributes); if (func != null) { column.SetCellDataFunc(cellRenderer, func); } column.Clickable = true; column.Title = title; tasksTreeView.AppendColumn(column); }
public static TreeViewColumn CreateTreeViewColumn (string title, int width, CellRenderer cell, TreeCellDataFunc dataFunction) { cell.Xalign = 0.5f; cell.Yalign = 0; TreeViewColumn column = new TreeViewColumn(); column.Alignment = 0.5f; column.Title = title; if (width != -1) { column.FixedWidth = width; column.Sizing = TreeViewColumnSizing.Fixed; } column.Resizable = true; column.PackStart(cell, true); column.SetCellDataFunc(cell, dataFunction); return column; }
public SortColumn(string title, TreeCellDataFunc cell_data, TreeView tree) : base() { this.tree = tree; CellRendererText cell = new CellRendererText (); this.PackStart (cell, true); this.SetCellDataFunc (cell, cell_data); this.Title = title; this.Resizable = true; this.Clickable = true; this.Reorderable = true; this.FixedWidth = 150; this.Spacing = 5; this.Sizing = TreeViewColumnSizing.Fixed; this.Clicked += column_clicked; }
private void AddColumn(TreeView treeView, int index, string title, bool display = true, TreeCellDataFunc cellData = null) { var column = new TreeViewColumn(); column.Title = title; if (display) { var renderer = new CellRendererText(); column.PackStart(renderer, true); column.AddAttribute(renderer, "text", index); if (cellData != null) { column.SetCellDataFunc(renderer, cellData); } } treeView.AppendColumn(column); }
internal static TreeViewColumn CreateColumn( string label, int fixedWidth, TreeCellDataFunc renderFunc) { TreeViewColumn result = new TreeViewColumn() { Title = label, Sizing = TreeViewColumnSizing.Fixed, FixedWidth = fixedWidth, Resizable = true, Reorderable = false, SortIndicator = false }; CellRendererText cell = new CellRendererText(); result.PackStart(cell, true); result.SetCellDataFunc(cell, renderFunc); return(result); }
static TreeViewColumn CreateColumn(TreeView view, string title, CellRenderer cell, TreeCellDataFunc dataFunc, int sortOrderId) { //var col = view.AppendColumn(title, cell, dataFunc); var col = new TreeViewColumn() { Resizable = true, Clickable = true, Title = title, SortColumnId = sortOrderId }; col.PackStart(cell, true); view.AppendColumn(col); col.SetCellDataFunc(cell, dataFunc); return(col); }
static TreeViewColumn CreateColumn(TreeView view, string title, CellRenderer cell, TreeCellDataFunc dataFunc, int sortOrderId) { var col = view.AppendColumn(title, cell, dataFunc); col.Sizing = TreeViewColumnSizing.GrowOnly; return(col); }
/// <seealso cref="TreeView"/> public TreeViewColumn AppendColumn(string title, CellRenderer cellRenderer, TreeCellDataFunc treeCellDataFunction) { return(treeview.AppendColumn(title, cellRenderer, treeCellDataFunction)); }
//columnId used to identify which column was clicked later, hacky solution TreeViewColumn GetEntriesTreeViewColumn(string title, string columnID, int sortColumnId, TreeCellDataFunc treeCellDataFunc, EditedHandler editHandler = null) { TreeViewColumn column = new TreeViewColumn (); column.Expand = true; column.SortIndicator = true; column.SortColumnId = sortColumnId; column.Sizing = TreeViewColumnSizing.Fixed; column.Resizable = true; column.Title = GettextCatalog.GetString (title); column.Data.Add ("columnID", columnID); CellRendererText textCell = new CellRendererText (); //cell.Ellipsize = Pango.EllipsizeMode.End; textCell.WrapMode = Pango.WrapMode.Word; textCell.Editable = true; if (editHandler == null) textCell.EditingStarted += DeferEditing; else textCell.Edited += editHandler; var p = Gtk.IconTheme.Default.LoadIcon ("gtk-zoom-in", 16, (IconLookupFlags) 0); CellRendererButton zoomCell = new CellRendererButton (p); zoomCell.Clicked += OnZoomCellClick; zoomCell.Data.Add ("columnID", columnID); column.AddNotification ("width", OnColumnWidthChanged); column.PackStart (zoomCell, false); column.PackStart (textCell, true); column.SetCellDataFunc (textCell, treeCellDataFunc); return column; }
public static TreeViewColumn CreateTreeViewColumn(string title, int width, CellRenderer cell, TreeCellDataFunc dataFunction) { cell.Xalign = 0.5f; cell.Yalign = 0; TreeViewColumn column = new TreeViewColumn(); column.Alignment = 0.5f; column.Title = title; if (width != -1) { column.FixedWidth = width; column.Sizing = TreeViewColumnSizing.Fixed; } column.Resizable = true; column.PackStart(cell, true); column.SetCellDataFunc(cell, dataFunction); return(column); }
void AddColumn(string title, CellRenderer cellRenderer, TreeCellDataFunc func, Array attributes) { var column = new TreeViewColumn (title, cellRenderer, attributes); if (func != null) { column.SetCellDataFunc (cellRenderer, func); } column.Clickable = true; column.Title = title; tasksTreeView.AppendColumn (column); }
/// <seealso cref="TreeView"/> public TreeViewColumn AppendColumn (string title, CellRenderer cellRenderer, TreeCellDataFunc treeCellDataFunction) { return treeview.AppendColumn (title, cellRenderer, treeCellDataFunction); }