Example #1
0
        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));
        }
Example #2
0
        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);
        }
Example #3
0
        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;
        }
Example #4
0
        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);
        }
Example #5
0
        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;
        }
Example #6
0
		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);
		}
Example #7
0
 /// <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);
		}