public TileCanvasRenderContext(TileCanvas _canvas, Tile _tile) { canvas = _canvas; tileMain = _tile; canvas.CacheTile(tileMain); }
public TileCanvasRenderContext (TileCanvas _canvas, Tile _tile) { canvas = _canvas; tileMain = _tile; canvas.CacheTile (tileMain); }
private Gtk.Widget CreateContents () { Gtk.HBox entryLine = new HBox (false, 4); Gtk.Label words = new Gtk.Label (Catalog.GetString ("Search terms:")); entryLine.PackStart (words, false, false, 3); history = new Gtk.ListStore (new Type[] { typeof (string) }); Gtk.EntryCompletion comp = new Gtk.EntryCompletion (); comp.Model = history; comp.TextColumn = 0; entry = new Gtk.Entry (""); entry.Activated += new EventHandler (this.DoSearch); entry.Completion = comp; entryLine.PackStart (entry, true, true, 3); words = new Gtk.Label (""); entryLine.PackStart (words, false, false, 3); Gtk.ComboBox combo = FilterComboBox (); combo.Changed += new EventHandler (this.ChangeType); entryLine.PackStart (combo, false, false, 3); Gtk.HBox buttonContents = new HBox (false, 0); Gtk.Widget buttonImg = Beagle.Images.GetWidget ("icon-search.png"); buttonContents.PackStart (buttonImg, false, false, 1); Gtk.Label buttonLabel = new Gtk.Label (Catalog.GetString ("Find")); buttonContents.PackStart (buttonLabel, false, false, 1); Gtk.Button button = new Gtk.Button (); button.Add (buttonContents); button.Clicked += new EventHandler (this.DoSearch); entryLine.PackStart (button, false, false, 3); Gtk.Button clearButton = new Gtk.Button (); clearButton.Label = "Clear"; clearButton.Clicked += new EventHandler (this.ClearSearch); entryLine.PackStart (clearButton, false, false, 4); canvas = new TileCanvas (); canvas.Show (); HBox pager = new HBox (); page_label = new Label (); page_label.Show (); pager.PackStart (page_label, false, false, 3); forward_button = StockButton ("gtk-go-forward", Catalog.GetString ("Show More Results")); forward_button.Show (); forward_button.Clicked += new EventHandler (PageForwardHandler); pager.PackEnd (forward_button, false, false, 3); back_button = StockButton ("gtk-go-back", Catalog.GetString ("Show Previous Results")); back_button.Show (); back_button.Clicked += new EventHandler (PageBackHandler); pager.PackEnd (back_button, false, false, 3); pager.Show (); VBox contents = new VBox (false, 3); contents.PackStart (entryLine, false, true, 3); contents.PackStart (canvas, true, true, 3); contents.PackStart (pager, false, false, 3); entryLine.ShowAll (); canvas.ShowAll (); return contents; }