protected virtual void SetView (PhotoImageView view) { if (controls != null) controls.Destroy (); controls = null; this.view = view; if (view == null) return; Widget w = CreateControls (); if (w != null) { #if false ControlOverlay c = new ControlOverlay (view); c.AutoHide = false; w.ShowAll (); c.Add (w); c.Visibility = ControlOverlay.VisibilityType.Full; controls = c; #else Window win = new Window (String.Format ("{0}", GetTitle ())); win.TransientFor = (Gtk.Window) view.Toplevel; win.Add (w); win.ShowAll (); win.DeleteEvent += delegate { Destroy (); }; controls = win; #endif } }
protected virtual void SetView(PhotoImageView view) { if (controls != null) { controls.Destroy(); } controls = null; this.view = view; if (view == null) { return; } Widget w = CreateControls(); if (w != null) { #if false ControlOverlay c = new ControlOverlay(view); c.AutoHide = false; w.ShowAll(); c.Add(w); c.Visibility = ControlOverlay.VisibilityType.Full; controls = c; #else Window win = new Window(String.Format("{0}", GetTitle())); win.TransientFor = (Gtk.Window)view.Toplevel; win.Add(w); win.ShowAll(); win.DeleteEvent += delegate { Destroy(); }; controls = win; #endif } }
public void AddSettingsGroup(PlayerSettingsGroup group) { gameplaySettingsOverlay.Add(group); }