当前位置: 首页>>代码示例>>C#>>正文


C# Gtk.AppendColumn方法代码示例

本文整理汇总了C#中Gtk.AppendColumn方法的典型用法代码示例。如果您正苦于以下问题:C# Gtk.AppendColumn方法的具体用法?C# Gtk.AppendColumn怎么用?C# Gtk.AppendColumn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Gtk的用法示例。


在下文中一共展示了Gtk.AppendColumn方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ConstruirLista

 public static void ConstruirLista(ref Gtk.TreeView tvLista, ref Gtk.ListStore listaStore)
 {
     tvLista.AppendColumn ("ID", new Gtk.CellRendererText (), "markup", 			0);
     tvLista.AppendColumn ("Cantidad", new Gtk.CellRendererText (), "markup", 	1);
     tvLista.AppendColumn ("Descripcion", new Gtk.CellRendererText (), "markup", 2);
     tvLista.AppendColumn ("Precio", new Gtk.CellRendererText (), "markup", 		3);
     tvLista.Model = listaStore;
 }
开发者ID:vlad88sv,项目名称:RIFT,代码行数:8,代码来源:cafeteria.cs

示例2: TUploads

 public TUploads(Gtk.TreeView tvUploads, CInterfaceGateway in_krnGateway)
 {
     krnGateway = in_krnGateway;
     Gtk.TreeViewColumn tvc = new TreeViewColumn ("Name",new CellRendererText(),"text",0);
     tvUploads.AppendColumn (tvc);
     tvc.SortColumnId = 0;
     tvc = new TreeViewColumn ("File name",new CellRendererText(),"text",1);
     tvUploads.AppendColumn (tvc);
     tvc.SortColumnId = 1;
     tvc = new TreeViewColumn ("Speed",new CellRendererText(),"text",2);
     tvUploads.AppendColumn (tvc);
     tvc.SortColumnId = 2;
     tvc = new TreeViewColumn ("Position",new CellRendererText(),"text",3);
     tvUploads.AppendColumn (tvc);
     tvc.SortColumnId = 3;
     tvc = new TreeViewColumn ("Downloaded",new CellRendererText(),"text",4);
     tvUploads.AppendColumn (tvc);
     tvc.SortColumnId = 4;
     tvc = new TreeViewColumn ("Uploaded",new CellRendererText(),"text",5);
     tvUploads.AppendColumn (tvc);
     tvc.SortColumnId = 5;
     tvc = new TreeViewColumn ("Progress",new CellRendererText(),"text",6);
     tvUploads.AppendColumn (tvc);
     tvc.SortColumnId = 6;
     tvc = new TreeViewColumn ("Software",new CellRendererText(),"text",7);
     tvUploads.AppendColumn (tvc);
     tvc.SortColumnId = 7;
     tvc = new TreeViewColumn ("Version",new CellRendererText(),"text",8);
     tvUploads.AppendColumn (tvc);
     tvc.SortColumnId = 8;
 }
开发者ID:elnomade,项目名称:hathi,代码行数:31,代码来源:Uploads.cs

示例3: Checklist

    public Checklist(CheckovUI parent, Gtk.TreeView tree)
    {
        items = new List<Entry> ();
        listStore = new Gtk.ListStore (typeof(string), typeof(bool), typeof(string));

        this.parent = parent;

        tree.AppendColumn ("Item", new Gtk.CellRendererText (), "text", 0);
        tree.AppendColumn ("Complete", new Gtk.CellRendererToggle (), "active", 1);
        tree.AppendColumn ("Notes", new Gtk.CellRendererText (), "text", 2);

        tree.Model = listStore;
    }
开发者ID:blutack,项目名称:checkov,代码行数:13,代码来源:Checklist.cs

示例4: TComments

 public TComments(Gtk.TreeView tvComments, CInterfaceGateway in_krnGateway)
 {
     krnGateway = in_krnGateway;
     Gtk.TreeViewColumn tvc = new TreeViewColumn ("Name", new CellRendererText(),"text",0);
     tvComments.AppendColumn (tvc);
     tvc.SortColumnId = 0;
     tvc = new TreeViewColumn ("Rating", new CellRendererText(),"text",1);
     tvComments.AppendColumn (tvc);
     tvc.SortColumnId = 1;
     tvc = new TreeViewColumn ("Comment", new CellRendererText(),"text",2);
     tvComments.AppendColumn (tvc);
     tvc.SortColumnId = 2;
 }
开发者ID:elnomade,项目名称:hathi,代码行数:13,代码来源:Comments.cs

示例5: Initialize

		public void Initialize (Gtk.TreeView treeView)
		{
			TreeViewColumn column = new TreeViewColumn ();

			CellRendererToggle toggleRenderer = new CellRendererToggle ();
			toggleRenderer.Toggled += ToggleRendererToggled;
			column.PackStart (toggleRenderer, false);
			column.AddAttribute (toggleRenderer, "active", 0);

			var pixbufRenderer = new CellRendererPixbuf ();
			column.PackStart (pixbufRenderer, false);
			column.AddAttribute (pixbufRenderer, "pixbuf", 1);

			CellRendererText textRenderer = new CellRendererText ();
			column.PackStart (textRenderer, true);
			column.AddAttribute (textRenderer, "text", 2);
			column.Expand = true;

			treeView.AppendColumn (column);
			Ambience ambience = AmbienceService.GetAmbienceForFile (options.Document.FileName);
			foreach (IBaseMember member in GetValidMembers ()) {
				Store.AppendValues (false, ImageService.GetPixbuf (member.StockIcon, IconSize.Menu), ambience.GetString (member, member.MemberType == MonoDevelop.Projects.Dom.MemberType.Parameter ? OutputFlags.IncludeParameterName : OutputFlags.ClassBrowserEntries), member);
			}
			
			treeView.Model = store;
		}
开发者ID:yayanyang,项目名称:monodevelop,代码行数:26,代码来源:AbstractGenerateAction.cs

示例6: Initialize

		public void Initialize (Gtk.TreeView treeView)
		{
			TreeViewColumn column = new TreeViewColumn ();

			CellRendererToggle toggleRenderer = new CellRendererToggle ();
			toggleRenderer.Toggled += ToggleRendererToggled;
			column.PackStart (toggleRenderer, false);
			column.AddAttribute (toggleRenderer, "active", 0);

			var pixbufRenderer = new CellRendererPixbuf ();
			column.PackStart (pixbufRenderer, false);
			column.AddAttribute (pixbufRenderer, "pixbuf", 1);

			CellRendererText textRenderer = new CellRendererText ();
			column.PackStart (textRenderer, true);
			column.AddAttribute (textRenderer, "text", 2);
			column.Expand = true;

			treeView.AppendColumn (column);
			Ambience ambience = AmbienceService.GetAmbienceForFile (options.Document.FileName);
			foreach (object obj in GetValidMembers ()) {
				var member = obj as IEntity;
				if (member != null) {
					Store.AppendValues (false, ImageService.GetPixbuf (member.GetStockIcon (), IconSize.Menu), ambience.GetString (member, OutputFlags.ClassBrowserEntries), member);
					continue;
				}
				
				var variable = obj as IVariable;
				if (variable != null)
					Store.AppendValues (false, ImageService.GetPixbuf (variable.GetStockIcon (), IconSize.Menu), variable.Name, variable);
				
			}
			
			treeView.Model = store;
		}
开发者ID:gary-b,项目名称:monodevelop,代码行数:35,代码来源:AbstractGenerateAction.cs

示例7: TDownloads

 public TDownloads(Gtk.TreeView tvDownloads, CInterfaceGateway in_krnGateway)
 {
     krnGateway = in_krnGateway;
     Gtk.TreeViewColumn tvc = new TreeViewColumn ("File name",new CellRendererText(),"text",0);
     tvDownloads.AppendColumn (tvc);
     tvc.SortColumnId = 0;
     tvc = new TreeViewColumn ("Size",new CellRendererText(),"text",1);
     tvDownloads.AppendColumn (tvc);
     tvc.SortColumnId = 1;
     tvc = new TreeViewColumn ("Speed",new CellRendererText(),"text",2);
     tvDownloads.AppendColumn (tvc);
     tvc.SortColumnId = 2;
     tvc = new TreeViewColumn ("Completed",new CellRendererText(),"text",3);
     tvDownloads.AppendColumn (tvc);
     tvc.SortColumnId = 3;
     tvc = new TreeViewColumn ("Remaining",new CellRendererText(),"text",4);
     tvDownloads.AppendColumn (tvc);
     tvc.SortColumnId = 4;
     tvc = new TreeViewColumn ("Sources",new CellRendererText(),"text",5);
     tvDownloads.AppendColumn (tvc);
     tvc.SortColumnId = 5;
     tvc = new TreeViewColumn ("Useful S.",new CellRendererText(),"text",6);
     tvDownloads.AppendColumn (tvc);
     tvc.SortColumnId = 6;
     tvc = new TreeViewColumn ("Transfer",new CellRendererText(),"text",7);
     tvDownloads.AppendColumn (tvc);
     tvc.SortColumnId = 7;
     tvc = new TreeViewColumn ("Status",new CellRendererText(),"text",8);
     tvDownloads.AppendColumn (tvc);
     tvc.SortColumnId = 8;
     tvc = new TreeViewColumn ("Progress",new CellRendererText(),"text",9);
     tvDownloads.AppendColumn (tvc);
     tvc.SortColumnId = 9;
     tvc = new TreeViewColumn ("Priority",new CellRendererText(),"text",10);
     tvDownloads.AppendColumn (tvc);
     tvc.SortColumnId = 10;
     tvc = new TreeViewColumn ("Estimated",new CellRendererText(),"text",11);
     tvDownloads.AppendColumn (tvc);
     tvc.SortColumnId = 11;
 }
开发者ID:elnomade,项目名称:hathi,代码行数:40,代码来源:Downloads.cs

示例8: createTreeView

 protected void createTreeView(Gtk.TreeView tv)
 {
     tv.HeadersVisible=true;
     int count = 0;
     tv.AppendColumn ( Catalog.GetString ("Session name"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString ("Place"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString ("Date\n"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString ("Jumps\nsimple"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString ("Jumps\nreactive"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString ("Races\nsimple"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString ("Races\ninterval"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString ("Reaction\ntime"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString ("Pulses"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString ("MultiChronopic"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString ("Encoder sets"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString ("Encoder repetitions"), new CellRendererText(), "text", count++);
 }
开发者ID:GNOME,项目名称:chronojump,代码行数:17,代码来源:person.cs

示例9: createTreeView

    protected override void createTreeView(Gtk.TreeView tv)
    {
        tv.HeadersVisible=true;
        int count = 0;

        tv.AppendColumn ( Catalog.GetString ("Name"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Distance"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Description"), new CellRendererText(), "text", count++);
    }
开发者ID:GNOME,项目名称:chronojump,代码行数:9,代码来源:run.cs

示例10: createTreeView

    private void createTreeView(Gtk.TreeView tv)
    {
        tv.HeadersVisible=true;
        int count = 0;

        tv.AppendColumn ( Catalog.GetString ("Number"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Name"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Place"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Date"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Comments"), new CellRendererText(), "text", count++);
    }
开发者ID:GNOME,项目名称:chronojump,代码行数:11,代码来源:session.cs

示例11: createTreeView

    protected override void createTreeView(Gtk.TreeView tv)
    {
        tv.HeadersVisible=true;
        int count = 0;

        tv.AppendColumn ( Catalog.GetString ("Name"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Limited by"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Limited value"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Start inside"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Extra weight"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Description"), new CellRendererText(), "text", count++);
    }
开发者ID:GNOME,项目名称:chronojump,代码行数:12,代码来源:jump.cs

示例12: AddTreeViewColumn

		private void AddTreeViewColumn (Gtk.TreeView treeView, int i, string name, bool toggle)
		{
			Gtk.TreeViewColumn col = new Gtk.TreeViewColumn ();
			col.Title = name;
			treeView.AppendColumn (col);
			Gtk.CellRenderer cell;
			if (toggle)
				cell = new Gtk.CellRendererToggle ();
			else
				cell = new Gtk.CellRendererText ();
			col.PackStart (cell, true);
			col.AddAttribute (cell, "text", i);
		}
开发者ID:mono,项目名称:uia2atk,代码行数:13,代码来源:GtkForm.cs

示例13: createTreeView

    private void createTreeView(Gtk.TreeView tv)
    {
        tv.HeadersVisible=true;
        int count = 0;

        tv.AppendColumn ( Catalog.GetString ("Number"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Name"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Place"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Date"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Persons"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Sport"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Speciallity"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Level"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Jumps simple"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Jumps reactive"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Runs simple"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Runs interval"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Reaction time"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Pulses"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("MultiChronopic"), new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString ("Comments"), new CellRendererText(), "text", count++);
    }
开发者ID:dineshkummarc,项目名称:chronojump,代码行数:22,代码来源:session.cs

示例14: createTreeView

 private void createTreeView(Gtk.TreeView tv)
 {
     tv.HeadersVisible=true;
     int count = 0;
     tv.AppendColumn ( Catalog.GetString("Type"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString("Subtype"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString("Apply to"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString("Session/s"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString("Show jumps"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString("Show sex"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString("Checked rows"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString("Graph Options"), new CellRendererText(), "text", count++);
     tv.AppendColumn ( Catalog.GetString("Comment"), new CellRendererText(), "text", count++);
 }
开发者ID:GNOME,项目名称:chronojump,代码行数:14,代码来源:report.cs

示例15: createTreeViewWithCheckboxes

    protected void createTreeViewWithCheckboxes(Gtk.TreeView tv)
    {
        tv.HeadersVisible=true;
        int count = 0;
        tv.AppendColumn ( Catalog.GetString("ID"), new CellRendererText(), "text", count++);
        tv.AppendColumn (
                Catalog.GetString("Simple") + " " +
                Catalog.GetString("or") + " " +
                Catalog.GetString("Reactive")
                , new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString("Type"), new CellRendererText(), "text", count++);
        tv.AppendColumn (
                Catalog.GetString("TF")
                /*
                + "\n" +
                Catalog.GetString("TF") + "(" +
                Catalog.GetString("AVG") + ")"
                */
                , new CellRendererText(), "text", count++);
        tv.AppendColumn (
                Catalog.GetString("TC")
                /*
                + "\n" +
                Catalog.GetString("TC") + "(" +
                Catalog.GetString("AVG") + ")"
                */
                , new CellRendererText(), "text", count++);
        tv.AppendColumn ( Catalog.GetString("Old weight"), new CellRendererText(), "text", count++);

        CellRendererToggle crt = new CellRendererToggle();
        crt.Visible = true;
        crt.Activatable = true;
        crt.Active = true;
        crt.Toggled += ItemToggled1;

        TreeViewColumn column = new TreeViewColumn ("", crt, "active", count);
        column.Clickable = true;
        tv.InsertColumn (column, count++);

        tv.AppendColumn ( Catalog.GetString("New weight\noption 1"), new CellRendererText(), "text", count++);

        CellRendererToggle crt2 = new CellRendererToggle();
        crt2.Visible = true;
        crt2.Activatable = true;
        crt2.Active = true;
        crt2.Toggled += ItemToggled2;

        column = new TreeViewColumn ("", crt2, "active", count);
        column.Clickable = true;
        tv.InsertColumn (column, count++);

        tv.AppendColumn ( Catalog.GetString("New weight\noption 2"), new CellRendererText(), "text", count++);
    }
开发者ID:GNOME,项目名称:chronojump,代码行数:53,代码来源:convertWeight.cs


注:本文中的Gtk.AppendColumn方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。