Example #1
0
        static void OpenAddinManagerWindow()
        {
            if (!IdeApp.Workbench.RootWindow.Visible && WelcomePage.WelcomePageService.WelcomeWindow.nativeWidget is AppKit.NSWindow parentNsWindow)
            {
                var dlg = AddinManagerWindow.Create();

                EventHandler shownEvent = null;
                shownEvent = (s, e) => {
                    dlg.Shown -= shownEvent;
                    try {
                        var nativeWindow = Components.Mac.GtkMacInterop.GetNSWindow(dlg);
                        MessageService.CenterWindow(nativeWindow, parentNsWindow);
                        parentNsWindow.AddChildWindow(nativeWindow, AppKit.NSWindowOrderingMode.Above);
                    } catch (Exception ex) {
                        LoggingService.LogInternalError(ex);
                    }
                };

                dlg.Shown += shownEvent;
                try {
                    dlg.Run();
                } finally {
                    dlg.Destroy();
                }
            }
            else
            {
                AddinManagerWindow.Run(IdeApp.Workbench.RootWindow);
            }
        }
Example #2
0
 void OnUpdateClicked(object s, ButtonPressEventArgs args)
 {
     if (!args.Event.TriggersContextMenu() && args.Event.Button == 1)
     {
         HideAlert();
         AddinManagerWindow.Run(IdeApp.Workbench.RootWindow);
     }
 }
Example #3
0
 void OnUpdateClicked(object s, StatusBarIconClickedEventArgs args)
 {
     if (args.Button != Xwt.PointerButton.Right && args.Button == Xwt.PointerButton.Left)
     {
         HideAlert();
         AddinManagerWindow.Run(IdeApp.Workbench.RootWindow);
     }
 }
Example #4
0
        private void Activated(object sender, EventArgs e)
        {
            AddinManagerWindow.AllowInstall = false;

            AddinManagerWindow.Run(PintaCore.Chrome.MainWindow);

            //dlg.DeleteEvent += delegate { dlg.Destroy (); };
        }
    public static void ShowManager ()
    {
        IProgressMonitor m = Instance != null ? Instance.updateMonitor : null;
        if (m != null && !m.AsyncOperation.IsCompleted)
        {
            AggregatedProgressMonitor monitor = new AggregatedProgressMonitor (m);
            monitor.AddSlaveMonitor (new MessageDialogProgressMonitor (true, true, false));
            monitor.AsyncOperation.WaitForCompleted ();
        }
        HideAlert ();

        AddinManagerWindow.Run (IdeApp.Workbench.RootWindow);
    }
Example #6
0
        private void Activated(object sender, EventArgs e)
        {
            // TODO-GTK3 (addins)
#if false
            AddinManagerWindow.AllowInstall = true;

            AddinManagerWindow.Run(PintaCore.Chrome.MainWindow);
#else
            throw new NotImplementedException();
#endif

            //dlg.DeleteEvent += delegate { dlg.Destroy (); };
        }
Example #7
0
        public async static void ShowManager()
        {
            Task t = Instance != null ? Instance.currentTask : null;

            if (t != null && t.IsCompleted)
            {
                AggregatedProgressMonitor monitor = new AggregatedProgressMonitor(Instance.updateMonitor);
                monitor.AddSlaveMonitor(new MessageDialogProgressMonitor(true, true, false));
                await t;
            }
            HideAlert();

            AddinManagerWindow.Run(IdeApp.Workbench.RootWindow);
        }
        public static void Main(string[] args)
        {
            Application.Init();
            AddinManager.Initialize();

            AddinManagerWindow.AllowInstall = false;
            Gtk.Window win = new Gtk.Window(Gtk.WindowType.Toplevel);
//			win.Show ();

            AddinManagerWindow.Run(win);

            win.DeleteEvent += (o, evArgs) => Application.Quit();

            Application.Run();
        }
 public void Run()
 {
     AddinManagerWindow.Run(TextEditorApp.MainWindow);
 }
Example #10
0
 protected virtual void OnButton75Clicked(object sender, System.EventArgs e)
 {
     AddinManagerWindow.Run(this);
 }
 public int Run(string[] arguments)
 {
     Gtk.Application.Init();
     AddinManagerWindow.Run(null);
     return(0);
 }
Example #12
0
 public Task <int> Run(string[] arguments)
 {
     Gtk.Application.Init();
     AddinManagerWindow.Run(null);
     return(Task.FromResult(0));
 }
Example #13
0
 protected virtual void OnAddinManagerActivated(object sender, System.EventArgs e)
 {
     AddinManagerWindow.Run(this);
 }