Пример #1
0
        public void DrawingTool(Image image, Play play, int stopTime)
        {
            DrawingTool dialog = new DrawingTool();

            dialog.Image = image.Value;
            if (play != null)
            {
                dialog.SetPlay(play, stopTime);
            }
            dialog.TransientFor = mainWindow as Gtk.Window;
            image.Dispose();
            dialog.Run();
            dialog.Destroy();
        }
Пример #2
0
        protected virtual void OnDrawFrame(int time)
        {
            Pixbuf      pixbuf = null;
            DrawingTool dialog = new DrawingTool();

            player.Pause();
            pixbuf = player.CurrentFrame;

            dialog.Image        = pixbuf;
            dialog.TransientFor = (Gtk.Window)player.Toplevel;
            if (selectedTimeNode != null)
            {
                dialog.SetPlay((selectedTimeNode as Play),
                               time);
            }
            pixbuf.Dispose();
            dialog.Run();
            dialog.Destroy();
        }
Пример #3
0
        public void DrawingTool(Image image, TimelineEvent play, FrameDrawing drawing,
                                CameraConfig camConfig, Project project)
        {
            DrawingTool dialog = new DrawingTool(mainWindow);

            dialog.TransientFor = mainWindow;

            Log.Information("Drawing tool");
            if (play == null)
            {
                dialog.LoadFrame(image, project);
            }
            else
            {
                dialog.LoadPlay(play, image, drawing, camConfig, project);
            }
            dialog.Show();
            dialog.Run();
            dialog.Destroy();
        }