public int InsertColumn(int pos, string title, CellRenderer cell, CellLayoutDataFunc cell_data) { TreeViewColumn col = new TreeViewColumn(); col.Title = title; col.PackStart(cell, true); col.SetCellDataFunc(cell, cell_data); return(InsertColumn(col, pos)); }
public TreeViewColumn AppendColumn(string title, CellRenderer cell, CellLayoutDataFunc 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, CellLayoutDataFunc 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 DeviceView() : base() { HeadersVisible = false; pixbufLayoutFunc = new CellLayoutDataFunc (OnPixbufCellLayout); textLayoutFunc = new CellLayoutDataFunc (OnTextCellLayout); AppendColumn ("icon", new CellRendererPixbuf (), pixbufLayoutFunc); AppendColumn ("device", new CellRendererText (), textLayoutFunc); cdromPixbuf = IconThemeUtils.LoadIcon ("gnome-dev-cdrom", 24); hdPixbuf = IconThemeUtils.LoadIcon ("gnome-dev-harddisk", 24); ethernetPixbuf = IconThemeUtils.LoadIcon ("gnome-dev-ethernet", 24); floppyPixbuf = IconThemeUtils.LoadIcon ("gnome-dev-floppy", 24); }
public VMView(MainController controller) : base() { this.controller = controller; HeadersVisible = false; cellTextLayoutFunc = new CellLayoutDataFunc (OnCellTextLayout); cellPixbufLayoutFunc = new CellLayoutDataFunc (OnCellPixbufLayout); AppendColumn ("icon", new CellRendererPixbuf (), cellPixbufLayoutFunc); AppendColumn ("machines", new CellRendererText (), cellTextLayoutFunc); EnableModelDragDest (new TargetEntry[] { new TargetEntry ("text/uri-list", 0, 0) }, Gdk.DragAction.Copy | Gdk.DragAction.Default); EnableModelDragSource (Gdk.ModifierType.Button1Mask, new TargetEntry[] { new TargetEntry ("text/uri-list", 0, 0) }, Gdk.DragAction.Copy | Gdk.DragAction.Default); this.DragDataGet += OnDragDataGet; this.DragDataReceived += OnDragDataReceived; }
public int InsertColumn (int pos, string title, CellRenderer cell, CellLayoutDataFunc cell_data) { TreeViewColumn col = new TreeViewColumn (); col.Title = title; col.PackStart (cell, true); col.SetCellDataFunc (cell, cell_data); return InsertColumn (col, pos); }
/// <seealso cref="TreeView"/> public TreeViewColumn AppendColumn(string title, CellRenderer cellRenderer, CellLayoutDataFunc cellLayoutDataFunction) { return(treeview.AppendColumn(title, cellRenderer, cellLayoutDataFunction)); }
/// <seealso cref="TreeView"/> public TreeViewColumn AppendColumn (string title, CellRenderer cellRenderer, CellLayoutDataFunc cellLayoutDataFunction) { return treeview.AppendColumn (title, cellRenderer, cellLayoutDataFunction); }