Inheritance: AnimatedBox
        public UserJobTileHost()
            : base(0.0f, 0.0f, 1.0f, 1.0f)
        {
            ThreadAssist.AssertInMainThread ();
            LeftPadding = 4;

            box = new AnimatedVBox ();
            box.StartPadding = 8;
            box.Spacing = 8;

            Add (box);
            ShowAll ();

            if (ServiceManager.Contains<JobScheduler> ()) {
                JobScheduler job_manager = ServiceManager.Get<JobScheduler> ();
                job_manager.JobAdded += OnJobAdded;
                job_manager.JobRemoved += OnJobRemoved;
            }

            if (ApplicationContext.CommandLine.Contains ("test-user-job")) {
                int fish;
                if (!Int32.TryParse (ApplicationContext.CommandLine["test-user-job"], out fish)) {
                    fish = 5;
                }
                TestUserJob.SpawnLikeFish (fish);
            }
        }
Beispiel #2
0
        public AnimatedVBoxTestModule()
            : base("Animated VBox")
        {
            AnimatedVBox vbox = new AnimatedVBox ();
            Add (vbox);

            tile = BuildWidget ("Example destroyed");
            tile2 = BuildWidget ("Example removed");

            vbox.PackEnd (tile, 3000, Hyena.Gui.Theatrics.Easing.QuadraticOut);
            vbox.PackEnd (tile2, 3000, Hyena.Gui.Theatrics.Easing.QuadraticOut);
            ShowAll ();

            timeout_id = GLib.Timeout.AddSeconds (5, delegate {
                tile.Destroy ();
                vbox.Remove (tile2);
                return false;
            });
        }
Beispiel #3
0
        public AnimatedVBoxTestModule() : base("Animated VBox")
        {
            AnimatedVBox vbox = new AnimatedVBox();

            Add(vbox);

            tile  = BuildWidget("Example destroyed");
            tile2 = BuildWidget("Example removed");

            vbox.PackEnd(tile, 3000, Hyena.Gui.Theatrics.Easing.QuadraticOut);
            vbox.PackEnd(tile2, 3000, Hyena.Gui.Theatrics.Easing.QuadraticOut);
            ShowAll();

            timeout_id = GLib.Timeout.AddSeconds(5, delegate {
                tile.Destroy();
                vbox.Remove(tile2);
                return(false);
            });
        }