示例#1
0
        public MainWindow() :
            base("LongoMatch")
        {
            this.Build();

            projectType = ProjectType.None;

            timeline = new TimeLineWidget();
            downbox.PackStart(timeline, true, true, 0);

            guTimeline = new GameUnitsTimelineWidget();
            downbox.PackStart(guTimeline, true, true, 0);

            player.SetLogo(System.IO.Path.Combine(Config.ImagesDir(), "background.png"));
            player.LogoMode = true;
            player.Tick    += OnTick;

            capturer.Visible          = false;
            capturer.Logo             = System.IO.Path.Combine(Config.ImagesDir(), "background.png");
            capturer.CaptureFinished += (sender, e) => { CloseCaptureProject(); };

            buttonswidget.Mode      = TagMode.Predifined;
            localPlayersList.Team   = Team.LOCAL;
            visitorPlayersList.Team = Team.VISITOR;

            ConnectSignals();
            ConnectMenuSignals();
        }
示例#2
0
        public MainWindow(IGUIToolkit guiToolkit)
            : base("LongoMatch")
        {
            this.Build();

            this.guiToolKit = guiToolkit;

            projectType = ProjectType.None;

            timeline = new TimeLineWidget();
            downbox.PackStart(timeline, true, true, 0);

            guTimeline = new GameUnitsTimelineWidget ();
            downbox.PackStart(guTimeline, true, true, 0);

            player.SetLogo(System.IO.Path.Combine(Config.ImagesDir(),"background.png"));
            player.LogoMode = true;
            player.Tick += OnTick;
            player.Detach += (sender, e) => DetachPlayer(true);

            capturer.Visible = false;
            capturer.Logo = System.IO.Path.Combine(Config.ImagesDir(),"background.png");
            capturer.CaptureFinished += (sender, e) => {CloseCaptureProject();};

            buttonswidget.Mode = TagMode.Predifined;
            localPlayersList.Team = Team.LOCAL;
            visitorPlayersList.Team = Team.VISITOR;

            ConnectSignals();
            ConnectMenuSignals();

            if (!Config.useGameUnits)
                GameUnitsViewAction.Visible = false;
        }
示例#3
0
        public MainWindow(IGUIToolkit guiToolkit) :
            base(Constants.SOFTWARE_NAME)
        {
            Screen screen;

            this.Build();
            Title = Constants.SOFTWARE_NAME;

            this.guiToolKit = guiToolkit;

            projectType = ProjectType.None;

            timeline = new TimeLineWidget();
            downbox.PackStart(timeline, true, true, 0);

            guTimeline = new GameUnitsTimelineWidget();
            downbox.PackStart(guTimeline, true, true, 0);

            TagSubcategoriesAction.Active = !Config.FastTagging;

            playercapturer.Mode = PlayerCapturerBin.PlayerOperationMode.Player;
            playercapturer.SetLogo(System.IO.Path.Combine(Config.ImagesDir, "background.png"));
            playercapturer.LogoMode = true;
            playercapturer.Tick    += OnTick;
            playercapturer.Detach  += DetachPlayer;

            playercapturer.Logo             = System.IO.Path.Combine(Config.ImagesDir, "background.png");
            playercapturer.CaptureFinished += (sender, e) => { CloseCaptureProject(); };

            buttonswidget.Mode = TagMode.Predifined;
            ConnectSignals();
            ConnectMenuSignals();

            if (!Config.UseGameUnits)
            {
                GameUnitsViewAction.Visible = false;
            }

            MenuItem parent = ImportProjectActionMenu;

            parent.Submenu = new Menu();
            AddImportEntry(Catalog.GetString("Import file project"), "ImportFileProject",
                           Constants.PROJECT_NAME + " (" + Constants.PROJECT_EXT + ")",
                           "*" + Constants.PROJECT_EXT, Project.Import,
                           false);
            screen = Display.Default.DefaultScreen;
            this.Resize(screen.Width * 80 / 100, screen.Height * 80 / 100);
            postagger.SetMode(false);
        }