BioGTK  5.1.1
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images.
Loading...
Searching...
No Matches
BioGTK.Search Class Reference
Inheritance diagram for BioGTK.Search:

Static Public Member Functions

static Search Create ()
 

Protected Member Functions

 Search (Builder builder, IntPtr handle)
 

Constructor & Destructor Documentation

◆ Search()

BioGTK.Search.Search ( Builder  builder,
IntPtr  handle 
)
inlineprotected
37 : base(handle)
38 {
39 _builder = builder;
40 builder.Autoconnect(this);
41 App.ApplyStyles(this);
42
43 Gtk.TreeViewColumn coordCol = new Gtk.TreeViewColumn();
44 coordCol.Title = "Command";
45 Gtk.CellRendererText coordCell = new Gtk.CellRendererText();
46 coordCol.PackStart(coordCell, false);
47 treeView.AppendColumn(coordCol);
48 coordCol.AddAttribute(coordCell, "text", 0);
49
50 Gtk.TreeStore store = new Gtk.TreeStore(typeof(string));
51 foreach (ImageJ.Macro.Command s in ImageJ.Macro.Commands.Values)
52 {
53 Gtk.TreeIter iter = store.AppendValues(s.Name);
54 }
55 foreach (Scripting.Script s in Scripting.scripts.Values)
56 {
57 Gtk.TreeIter iter = store.AppendValues(s.name);
58 }
59 treeView.Model = store;
60 treeView.RowActivated += TreeView_RowActivated;
61 searchBox.Changed += SearchBox_Changed;
62 }

Member Function Documentation

◆ Create()

static Search BioGTK.Search.Create ( )
inlinestatic

It creates a new Search object, which is a Gtk.Window, and returns it

Returns
A new instance of the Search class.
31 {
32 Builder builder = new Builder(new FileStream(System.IO.Path.GetDirectoryName(Environment.ProcessPath) + "/" + "Glade/Search.glade", FileMode.Open));
33 return new Search(builder, builder.GetObject("search").Handle);
34 }
Search(Builder builder, IntPtr handle)
Definition Search.cs:37

The documentation for this class was generated from the following file: