Example #1
0
        public RecordingManager(IScriptManager ScriptManager, ISettingsManager SettingsManager, ICroppingManager CroppingManager, IAssetManager AssetManager, IProfiler Profiler,
                                IFeatureDetectorFactory FeatureDetectorFactory, IInputCallbacks InputCallbacks)
        {
            this.ScriptManager          = ScriptManager;
            this.SettingsManager        = SettingsManager;
            this.CroppingManager        = CroppingManager;
            this.AssetManager           = AssetManager;
            this.Profiler               = Profiler;
            this.FeatureDetectorFactory = FeatureDetectorFactory;
            this.InputCallbacks         = InputCallbacks;

            InputCallbacks.InputEvent += OnInputEvent;
        }
Example #2
0
        public MouseRobot(IScriptManager ScriptManager, ITestRunner TestRunner, IRecordingManager RecordingManager, IRuntimeSettings RuntimeSettings,
                          IScreenStateThread ScreenStateThread, IFeatureDetectionThread FeatureDetectionThread, ISettingsManager SettingsManager,
                          IInputCallbacks InputCallbacks, IPluginLoader PluginLoader, IStatusManager StatusManager)
        {
            this.ScriptManager          = ScriptManager;
            this.TestRunner             = TestRunner;
            this.RecordingManager       = RecordingManager;
            this.RuntimeSettings        = RuntimeSettings;
            this.ScreenStateThread      = ScreenStateThread;
            this.FeatureDetectionThread = FeatureDetectionThread;
            this.SettingsManager        = SettingsManager;
            this.InputCallbacks         = InputCallbacks;
            this.PluginLoader           = PluginLoader;
            this.StatusManager          = StatusManager;

            ScriptManager.NewScript();
            TestRunner.TestRunEnd += OnScriptFinished;
        }
Example #3
0
        public MainForm(IUnityContainer Container, IMouseRobot MouseRobot, IScreenPaintForm ScreenPaintForm, IFeatureDetectionThread FeatureDetectionThread, ISettingsManager SettingsManager,
                        IScriptManager ScriptManager, IAssetManager AssetManager, IHierarchyWindow HierarchyWindow, IPropertiesWindow PropertiesWindow, IScreenPreviewWindow ScreenPreviewWindow,
                        IAssetsWindow AssetsWindow, IProfilerWindow ProfilerWindow, IInspectorWindow InspectorWindow, IScreenStateThread ScreenStateThread, IInputCallbacks InputCallbacks,
                        IProjectSelectionDialog ProjectSelectionDialog, IConsoleWindow ConsoleWindow, IStatusManager StatusManager, ITestFixtureManager TestFixtureManager,
                        ITestRunnerWindow TestRunnerWindow, ITestRunner TestRunner)
        {
            this.Container = Container;

            this.MouseRobot             = MouseRobot;
            this.ScreenPaintForm        = ScreenPaintForm;
            this.FeatureDetectionThread = FeatureDetectionThread;
            this.SettingsManager        = SettingsManager;
            this.ScriptManager          = ScriptManager;
            this.AssetManager           = AssetManager;
            this.ScreenStateThread      = ScreenStateThread;
            this.InputCallbacks         = InputCallbacks;
            this.StatusManager          = StatusManager;
            this.TestFixtureManager     = TestFixtureManager;
            this.TestRunner             = TestRunner;

            this.m_HierarchyWindow     = HierarchyWindow;
            this.m_PropertiesWindow    = PropertiesWindow;
            this.m_ScreenPreviewWindow = ScreenPreviewWindow;
            this.m_AssetsWindow        = AssetsWindow;
            this.m_ProfilerWindow      = ProfilerWindow;
            this.m_InspectorWindow     = InspectorWindow;
            this.m_ConsoleWindow       = ConsoleWindow;
            this.m_TestRunnerWindow    = TestRunnerWindow;

            this.ProjectSelectionDialog = ProjectSelectionDialog;

            MouseRobot.AsyncOperationOnUI = AsyncOperationManager.CreateOperation(null);

            InitializeComponent();
            AutoScaleMode    = AutoScaleMode.Dpi;
            this.WindowState = FormWindowState.Maximized;

            //ShowSplashScreen(2000);

            ((Form)ScreenPaintForm).Owner = this;

            PutLayoutWindowsInArray();
            SetWindowTheme(this.vS2015DarkTheme1, emptyLayout: true);

            DockLayout.Windows = m_Windows;
            DockLayout.Restore(m_DockPanel);

            visualStudioToolStripExtender.DefaultRenderer = new ToolStripProfessionalRenderer();

            actionOnRec.SelectedIndex  = 2;
            actionOnPlay.SelectedIndex = 2;

            InputCallbacks.InputEvent += OnInputEvent;

            m_AssetsWindow.AssetSelected         += OnAssetSelected;
            m_HierarchyWindow.OnSelectionChanged += ShowSelectedObjectInInspector;

            MouseRobot.RecordingStateChanged     += OnRecordingStateChanged;
            MouseRobot.PlayingStateChanged       += OnPlayingStateChanged;
            MouseRobot.VisualizationStateChanged += OnVisualizationStateChanged;

            StatusManager.StatusUpdated += OnStatusUpdated;

            TestFixtureManager.FixtureAdded   += OnFixtureAdded;
            TestFixtureManager.FixtureRemoved += OnFixtureRemoved;

            this.Activated += (x, y) => AssetManager.Refresh();

            ((Form)ScreenPaintForm).Show();
        }