Esempio n. 1
0
        public UserInterface()
        {
            // 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 Setup();
            EventLog   = new EventLog();
            About      = new About();
            Bubbles    = new Bubbles();
            StatusIcon = new StatusIcon();
            Note       = new Note();

            SparkleShare.Controller.UIHasLoaded();
        }
Esempio n. 2
0
        public UserInterface()
        {
            SparkleShare.Controller.Invoke(() => {
                NSApplication.SharedApplication.ApplicationIconImage = NSImage.ImageNamed("sparkleshare-app.icns");

                Setup      = new Setup();
                EventLog   = new EventLog();
                About      = new About();
                Note       = new Note();
                Bubbles    = new Bubbles();
                StatusIcon = new StatusIcon();
            });

            SparkleShare.Controller.UIHasLoaded();
        }
Esempio n. 3
0
        public UserInterface()
        {
            SparkleShare.Controller.Invoke (() => {
                NSApplication.SharedApplication.ApplicationIconImage = NSImage.ImageNamed ("sparkleshare-app.icns");

                Setup      = new Setup ();
                EventLog   = new EventLog ();
                About      = new About ();
                Note       = new Note ();
                Bubbles    = new Bubbles ();
                StatusIcon = new StatusIcon ();
            });

            SparkleShare.Controller.UIHasLoaded ();
        }
Esempio n. 4
0
        void ApplicationActivatedDelegate(object sender, EventArgs args)
        {
            if (application.Windows.Length > 0)
            {
                bool has_visible_windows = false;

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

                if (!has_visible_windows)
                {
                    SparkleShare.Controller.HandleReopen();
                }

                return;
            }

            if (IconTheme.Default != null)
            {
                IconTheme.Default.AppendSearchPath(Path.Combine(UserInterface.AssetsPath, "icons"));
            }

            Setup      = new Setup();
            EventLog   = new EventLog();
            About      = new About();
            Bubbles    = new Bubbles();
            StatusIcon = new StatusIcon();
            Note       = new Note();

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

            DetectTextColors();

            SparkleShare.Controller.UIHasLoaded();
        }
Esempio n. 5
0
        void ApplicationActivatedDelegate(object sender, EventArgs args)
        {
            if (application.Windows.Length > 0)
            {
                bool has_visible_windows = false;

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

                if (!has_visible_windows)
                {
                    SparkleShare.Controller.HandleReopen();
                }

                return;
            }

            Setup      = new Setup();
            EventLog   = new EventLog();
            About      = new About();
            Bubbles    = new Bubbles();
            StatusIcon = new StatusIcon();
            Note       = new Note();

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

            SparkleShare.Controller.UIHasLoaded();
        }