public static void Show (ObjectValue val, Control widget, Gdk.Rectangle previewButtonArea)
		{
			DestroyWindow ();
			wnd = new PreviewVisualizerWindow (val, widget);
			wnd.ShowPopup (widget, previewButtonArea, PopupPosition.Left);
			wnd.Destroyed += HandleDestroyed;
			OnWindowShown (EventArgs.Empty);
		}
Esempio n. 2
0
 public static void DestroyWindow()
 {
     if (wnd != null)
     {
         wnd.Destroy();
         wnd = null;
     }
 }
Esempio n. 3
0
 public static void Show(ObjectValue val, Control widget, Gdk.Rectangle previewButtonArea)
 {
     DestroyWindow();
     wnd = new PreviewVisualizerWindow(val, widget);
     wnd.ShowPopup(widget, previewButtonArea, PopupPosition.Left);
     wnd.Destroyed += HandleDestroyed;
     OnWindowShown(EventArgs.Empty);
 }
 public static void DestroyWindow()
 {
     if (wnd != null)
     {
         wnd.FocusOutEvent -= HandleFocusOutEvent;
         wnd.Destroyed     -= HandleDestroyed;
         wnd.Destroy();
         wnd = null;
     }
 }
 public static void Show(ObjectValue val, Control widget, Gdk.Rectangle previewButtonArea)
 {
     DestroyWindow();
     wnd = new PreviewVisualizerWindow(val, widget);
     IdeApp.CommandService.RegisterTopWindow(wnd);
     wnd.ShowPopup(widget, previewButtonArea, PopupPosition.Left);
     wnd.FocusOutEvent += HandleFocusOutEvent;
     wnd.Destroyed     += HandleDestroyed;
     OnWindowShown(EventArgs.Empty);
 }
		public static void DestroyWindow ()
		{
			if (wnd != null) {
				wnd.Destroy ();
				wnd = null;
			}
		}
		static void HandleDestroyed (object sender, EventArgs e)
		{
			wnd = null;
			OnWindowClosed (EventArgs.Empty);
		}
Esempio n. 8
0
 static void HandleDestroyed(object sender, EventArgs e)
 {
     wnd = null;
     OnWindowClosed(EventArgs.Empty);
 }