本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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++);
}
示例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++);
}
示例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++);
}
示例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++);
}
示例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);
}
示例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++);
}
示例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++);
}
示例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++);
}