Ejemplo n.º 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));
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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);
		}
Ejemplo n.º 7
0
 /// <seealso cref="TreeView"/>
 public TreeViewColumn AppendColumn(string title, CellRenderer cellRenderer, CellLayoutDataFunc cellLayoutDataFunction)
 {
     return(treeview.AppendColumn(title, cellRenderer, cellLayoutDataFunction));
 }
Ejemplo n.º 8
0
		/// <seealso cref="TreeView"/>
		public TreeViewColumn AppendColumn (string title, CellRenderer cellRenderer, CellLayoutDataFunc cellLayoutDataFunction)
		{
			return treeview.AppendColumn (title, cellRenderer, cellLayoutDataFunction);
		}