Inheritance: MonoMac.AppKit.NSWindow
示例#1
0
        public SparkleUI ()
        {
            if (Environment.OSVersion.Version.Major < 14)
                FontName = "Lucida Grande";

            Program.Controller.Invoke (() => {
                if (Environment.OSVersion.Version.Major >= 14) {
                    NSWorkspace.SharedWorkspace.SetIconforFile (
                        NSImage.ImageNamed ("sparkleshare-folder-yosemite.icns"),
                        Program.Controller.FoldersPath, 0);

                } else {
                    NSWorkspace.SharedWorkspace.SetIconforFile (
                        NSImage.ImageNamed ("sparkleshare-folder.icns"),
                        Program.Controller.FoldersPath, 0);
                }

                NSApplication.SharedApplication.ApplicationIconImage = NSImage.ImageNamed ("sparkleshare-app.icns");
    
                Setup      = new SparkleSetup ();
                EventLog   = new SparkleEventLog ();
                About      = new SparkleAbout ();
                Note       = new SparkleNote ();
                Bubbles    = new SparkleBubbles ();
                StatusIcon = new SparkleStatusIcon ();
            });

            Program.Controller.UIHasLoaded ();
        }
示例#2
0
        public SparkleUI()
        {
            if (Environment.OSVersion.Version.Major < 14)
            {
                FontName = "Lucida Grande";
            }

            Program.Controller.Invoke(() => {
                if (Environment.OSVersion.Version.Major >= 14)
                {
                    NSWorkspace.SharedWorkspace.SetIconforFile(
                        NSImage.ImageNamed("sparkleshare-folder-yosemite.icns"),
                        Program.Controller.FoldersPath, 0);
                }
                else
                {
                    NSWorkspace.SharedWorkspace.SetIconforFile(
                        NSImage.ImageNamed("sparkleshare-folder.icns"),
                        Program.Controller.FoldersPath, 0);
                }

                NSApplication.SharedApplication.ApplicationIconImage = NSImage.ImageNamed("sparkleshare-app.icns");

                Setup      = new SparkleSetup();
                EventLog   = new SparkleEventLog();
                About      = new SparkleAbout();
                Note       = new SparkleNote();
                Bubbles    = new SparkleBubbles();
                StatusIcon = new SparkleStatusIcon();
            });

            Program.Controller.UIHasLoaded();
        }
示例#3
0
        public SparkleUI()
        {
            // FIXME: The second time windows are shown, the windows
            // don't have the smooth ease in animation, but appear abruptly.
            // The ease out animation always seems to work
            Setup      = new SparkleSetup();
            EventLog   = new SparkleEventLogWindow();
            About      = new SparkleAbout();
            Bubbles    = new SparkleBubbles();
            StatusIcon = new SparkleStatusIcon();
            Note       = new SparkleNote();

            SparkleShare.Controller.UIHasLoaded();
        }
示例#4
0
        public SparkleUI()
        {
            // FIXME: The second time windows are shown, the windows
            // don't have the smooth ease in animation, but appear abruptly.
            // The ease out animation always seems to work
            Setup       = new SparkleSetup ();
            EventLog    = new SparkleEventLogWindow();
            About       = new SparkleAbout ();
            Bubbles     = new SparkleBubbles ();
            StatusIcon  = new SparkleStatusIcon ();
            Note        = new SparkleNote ();

            SparkleShare.Controller.UIHasLoaded ();
        }
示例#5
0
        private void ApplicationActivatedDelegate(object sender, EventArgs args)
        {
            if (this.application.Windows.Length > 0)
            {
                bool has_visible_windows = false;

                foreach (Window window in this.application.Windows)
                {
                    if (window.Visible)
                    {
                        window.Present();
                        has_visible_windows = true;
                    }
                }

                if (!has_visible_windows)
                {
                    Program.Controller.HandleReopen();
                }
            }
            else
            {
                Setup      = new SparkleSetup();
                EventLog   = new SparkleEventLog();
                About      = new SparkleAbout();
                Bubbles    = new SparkleBubbles();
                StatusIcon = new SparkleStatusIcon();
                Note       = new SparkleNote();

                Setup.Application    = this.application;
                EventLog.Application = this.application;
                About.Application    = this.application;

                Program.Controller.UIHasLoaded();
            }
        }