示例#1
0
        public void SelectWindow()
        {
            var window = tabControl.Toplevel as Gtk.Window;

            if (window != null)
            {
                if (window is DockWindow)
                {
                    DesktopService.GrabDesktopFocus(window);
                }

                                #if MAC
                AppKit.NSWindow nswindow = MonoDevelop.Components.Mac.GtkMacInterop.GetNSWindow(window);
                if (nswindow != null)
                {
                    nswindow.MakeFirstResponder(nswindow.ContentView);
                }
                                #endif
            }

            // The tab change must be done now to ensure that the content is created
            // before exiting this method.
            tabControl.CurrentTabIndex = tab.Index;

            // Focus the tab in the next iteration since presenting the window may take some time
            Application.Invoke(delegate {
                DockNotebook.ActiveNotebook = tabControl;
                DeepGrabFocus(this.ActiveViewContent.Control);
            });
        }
 void ReleaseDesignerOutlets()
 {
     if (Window != null) {
         Window.Dispose ();
         Window = null;
     }
 }
示例#3
0
        public void SelectWindow()
        {
            var window = tabControl.Toplevel as Gtk.Window;

            if (window != null)
            {
                if (window is DockWindow)
                {
                    DesktopService.GrabDesktopFocus(window);
                }

                // Focusing the main window so hide all the autohide pads
                workbench.DockFrame.MinimizeAllAutohidden();

                                #if MAC
                AppKit.NSWindow nswindow = MonoDevelop.Components.Mac.GtkMacInterop.GetNSWindow(window);
                if (nswindow != null)
                {
                    nswindow.MakeFirstResponder(nswindow.ContentView);
                    nswindow.MakeKeyAndOrderFront(nswindow);
                }
                                #endif
            }

            // The tab change must be done now to ensure that the content is created
            // before exiting this method.
            tabControl.CurrentTabIndex = tab.Index;
            // Focus the tab in the next iteration since presenting the window may take some time
            Application.Invoke((o, args) => {
                DockNotebook.ActiveNotebook = tabControl;
            });
            ScheduleContentGrabFocus();
        }
 void ReleaseDesignerOutlets()
 {
     if (Window != null)
     {
         Window.Dispose();
         Window = null;
     }
 }
		void ReleaseDesignerOutlets ()
		{
			if (scnView != null) {
				scnView.Dispose ();
				scnView = null;
			}

			if (window != null) {
				window.Dispose ();
				window = null;
			}
		}
		void ReleaseDesignerOutlets ()
		{
			if (GoMenu != null) {
				GoMenu.Dispose ();
				GoMenu = null;
			}

			if (MainWindow != null) {
				MainWindow.Dispose ();
				MainWindow = null;
			}
		}
示例#7
0
        void ReleaseDesignerOutlets()
        {
            if (MainWindow != null)
            {
                MainWindow.Dispose();
                MainWindow = null;
            }

            if (GoMenu != null)
            {
                GoMenu.Dispose();
                GoMenu = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (scnView != null)
            {
                scnView.Dispose();
                scnView = null;
            }

            if (window != null)
            {
                window.Dispose();
                window = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (statusToolbarItem != null)
            {
                statusToolbarItem.Dispose();
                statusToolbarItem = null;
            }

            if (window != null)
            {
                window.Dispose();
                window = null;
            }
        }
		void ReleaseDesignerOutlets ()
		{
			if (TrackingView != null) {
				TrackingView.Dispose ();
				TrackingView = null;
			}

			if (TheLabel != null) {
				TheLabel.Dispose ();
				TheLabel = null;
			}

			if (window != null) {
				window.Dispose ();
				window = null;
			}
		}
        void ReleaseDesignerOutlets()
        {
            if (TrackingView != null)
            {
                TrackingView.Dispose();
                TrackingView = null;
            }

            if (TheLabel != null)
            {
                TheLabel.Dispose();
                TheLabel = null;
            }

            if (window != null)
            {
                window.Dispose();
                window = null;
            }
        }
示例#12
0
        void ReleaseDesignerOutlets()
        {
            if (_mainContentView != null)
            {
                _mainContentView.Dispose();
                _mainContentView = null;
            }

            if (_sidebarOutlineView != null)
            {
                _sidebarOutlineView.Dispose();
                _sidebarOutlineView = null;
            }

            if (window != null)
            {
                window.Dispose();
                window = null;
            }
        }
示例#13
0
        public void SelectWindow()
        {
            var window = tabControl.Toplevel as Gtk.Window;

            if (window != null)
            {
                if (window is DockWindow)
                {
                    IdeServices.DesktopService.GrabDesktopFocus(window);
                }

                // Focusing the main window so hide all the autohide pads
                workbench.DockFrame.MinimizeAllAutohidden();

#if MAC
                AppKit.NSWindow nswindow = MonoDevelop.Components.Mac.GtkMacInterop.GetNSWindow(window);
                if (nswindow != null)
                {
                    // Don't change the first responder if the current one is already a child of the content view
                    if (!(nswindow.FirstResponder is AppKit.NSView view) || !view.IsDescendantOf(nswindow.ContentView))
                    {
                        nswindow.MakeFirstResponder(nswindow.ContentView);
                    }
                    nswindow.MakeKeyAndOrderFront(nswindow);
                }
#endif
            }

            // The tab change must be done now to ensure that the content is created
            // before exiting this method.
            tabControl.CurrentTabIndex = tab.Index;

            // Focus the tab in the next iteration since presenting the window may take some time
            Application.Invoke((o, args) => {
                DockNotebook.ActiveNotebook = tabControl;
                if (view != null)
                {
                    view.Load().Ignore();
                }
            });
        }
示例#14
0
 public virtual override System.Threading.Tasks.Task <AppKit.NSModalResponse> BeginSheetAsync(AppKit.NSWindow Window)
 {
     throw new NotImplementedException();
 }
示例#15
0
 public override nint RunSheetModal(AppKit.NSWindow window, AppKit.NSApplication application)
 {
     throw new NotImplementedException();
 }
示例#16
0
 public override void BeginSheetForResponse(AppKit.NSWindow window, Action <nint> onEnded)
 {
 }
示例#17
0
 public override void BeginSheet(AppKit.NSWindow window, Action onEnded)
 {
 }
示例#18
0
 public override void BeginSheet(AppKit.NSWindow window)
 {
 }
示例#19
0
 public virtual override void BeginSheet(AppKit.NSWindow window, Foundation.NSObject modalDelegate, ObjCRuntime.Selector didEndSelector, IntPtr contextInfo)
 {
 }
示例#20
0
 public virtual override void BeginSheet(AppKit.NSWindow Window, Action <AppKit.NSModalResponse> handler)
 {
 }
        void ReleaseDesignerOutlets()
        {
            if (btnAddCdda != null)
            {
                btnAddCdda.Dispose();
                btnAddCdda = null;
            }

            if (btnAdvanced != null)
            {
                btnAdvanced.Dispose();
                btnAdvanced = null;
            }

            if (btnBrowseData != null)
            {
                btnBrowseData.Dispose();
                btnBrowseData = null;
            }

            if (btnBrowseIpBin != null)
            {
                btnBrowseIpBin.Dispose();
                btnBrowseIpBin = null;
            }

            if (btnBrowseOutput != null)
            {
                btnBrowseOutput.Dispose();
                btnBrowseOutput = null;
            }

            if (btnCreate != null)
            {
                btnCreate.Dispose();
                btnCreate = null;
            }

            if (btnDown != null)
            {
                btnDown.Dispose();
                btnDown = null;
            }

            if (btnRemoveCdda != null)
            {
                btnRemoveCdda.Dispose();
                btnRemoveCdda = null;
            }

            if (btnUp != null)
            {
                btnUp.Dispose();
                btnUp = null;
            }

            if (chkRawMode != null)
            {
                chkRawMode.Dispose();
                chkRawMode = null;
            }

            if (chkTruncateMode != null)
            {
                chkTruncateMode.Dispose();
                chkTruncateMode = null;
            }

            if (pbProgress != null)
            {
                pbProgress.Dispose();
                pbProgress = null;
            }

            if (tblCdda != null)
            {
                tblCdda.Dispose();
                tblCdda = null;
            }

            if (txtApplicationId != null)
            {
                txtApplicationId.Dispose();
                txtApplicationId = null;
            }

            if (txtData != null)
            {
                txtData.Dispose();
                txtData = null;
            }

            if (txtDataPreparer != null)
            {
                txtDataPreparer.Dispose();
                txtDataPreparer = null;
            }

            if (txtIpBin != null)
            {
                txtIpBin.Dispose();
                txtIpBin = null;
            }

            if (txtOutput != null)
            {
                txtOutput.Dispose();
                txtOutput = null;
            }

            if (txtPublisherId != null)
            {
                txtPublisherId.Dispose();
                txtPublisherId = null;
            }

            if (txtResult != null)
            {
                txtResult.Dispose();
                txtResult = null;
            }

            if (txtSystemId != null)
            {
                txtSystemId.Dispose();
                txtSystemId = null;
            }

            if (txtVolSetId != null)
            {
                txtVolSetId.Dispose();
                txtVolSetId = null;
            }

            if (txtVolumeId != null)
            {
                txtVolumeId.Dispose();
                txtVolumeId = null;
            }

            if (winAdvanced != null)
            {
                winAdvanced.Dispose();
                winAdvanced = null;
            }

            if (winFinished != null)
            {
                winFinished.Dispose();
                winFinished = null;
            }
        }