Example #1
0
        public static void Initialize()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            configGuiPath      = System.IO.Path.Combine(GetEntryDirectory(), ConfigGuiFileName);
            configGuiPanelPath = System.IO.Path.Combine(GetEntryDirectory(), ConfigGuiPanelFileName);
            configRecentPath   = System.IO.Path.Combine(GetEntryDirectory(), ConfigRecentFileName);
            configNetworkPath  = System.IO.Path.Combine(GetEntryDirectory(), ConfigNetworkFileName);

            Shortcuts.LoadShortcuts();
            Commands.Regist();
            LoadRecentConfig();

            Network = new Network();

            MainForm                         = new MainForm();
            AboutForm                        = new AboutForm();
            DockViewer                       = new DockViewer();
            DockViewerController             = new DockViewerController();
            DockViewPoint                    = new DockViewPoint();
            DockRecorder                     = new GUI.DockRecorder();
            DockNodeTreeView                 = new DockNodeTreeView();
            DockNodeCommonValues             = new GUI.DockNodeCommonValues();
            DockNodeLocationValues           = new GUI.DockNodeLocationValues();
            DockNodeRotationValues           = new GUI.DockNodeRotationValues();
            DockNodeScalingValues            = new GUI.DockNodeScaleValues();
            DockNodeLocationAbsValues        = new GUI.DockNodeLocationAbsValues();
            DockNodeGenerationLocationValues = new DockNodeGenerationLocationValues();
            DockNodeDepthValues              = new DockNodeDepthValues();
            DockNodeRendererCommonValues     = new GUI.DockNodeRendererCommonValues();
            DockNodeRendererCommonValues2    = new GUI.DockNodeRendererCommonValues2();
            DockNodeDrawingValues            = new GUI.DockNodeRendererValues();
            DockNodeSoundValues              = new GUI.DockNodeSoundValues();
            DockOption                       = new GUI.DockOption();
            DockGlobal                       = new GUI.DockGlobal();
            DockEffectBehavior               = new GUI.DockEffectBehavior();
            DockFCurves                      = new GUI.DockFCurves();
            DockCulling                      = new GUI.DockCulling();
            DockNetwork                      = new GUI.DockNetwork();
            DockFileViewer                   = new GUI.DockFileViewer();

            MainForm.Show();

            LoadConfig();

            DockViewer.ShowViewer();

            Core.MainForm = MainForm;
        }
Example #2
0
        public static void AssignDockWindowIntoDefaultPosition()
        {
            CheckDockWindowClosed();

            if (DockViewerController == null)
            {
                DockViewerController = new DockViewerController();
            }
            if (DockViewPoint == null)
            {
                DockViewPoint = new DockViewPoint();
            }
            if (DockRecorder == null)
            {
                DockRecorder = new DockRecorder();
            }
            if (DockNodeTreeView == null)
            {
                DockNodeTreeView = new DockNodeTreeView();
            }
            if (DockNodeCommonValues == null)
            {
                DockNodeCommonValues = new GUI.DockNodeCommonValues();
            }
            if (DockNodeLocationValues == null)
            {
                DockNodeLocationValues = new GUI.DockNodeLocationValues();
            }
            if (DockNodeRotationValues == null)
            {
                DockNodeRotationValues = new GUI.DockNodeRotationValues();
            }
            if (DockNodeScalingValues == null)
            {
                DockNodeScalingValues = new GUI.DockNodeScaleValues();
            }
            if (DockNodeLocationAbsValues == null)
            {
                DockNodeLocationAbsValues = new GUI.DockNodeLocationAbsValues();
            }
            if (DockNodeGenerationLocationValues == null)
            {
                DockNodeGenerationLocationValues = new DockNodeGenerationLocationValues();
            }
            if (DockNodeRendererCommonValues == null)
            {
                DockNodeRendererCommonValues = new DockNodeRendererCommonValues();
            }
            if (DockNodeDrawingValues == null)
            {
                DockNodeDrawingValues = new GUI.DockNodeRendererValues();
            }
            if (DockNodeSoundValues == null)
            {
                DockNodeSoundValues = new GUI.DockNodeSoundValues();
            }
            if (DockOption == null)
            {
                DockOption = new GUI.DockOption();
            }
            if (DockEffectBehavior == null)
            {
                DockEffectBehavior = new DockEffectBehavior();
            }
            if (DockFCurves == null)
            {
                DockFCurves = new GUI.DockFCurves();
            }
            if (DockCulling == null)
            {
                DockCulling = new DockCulling();
            }
            if (DockNetwork == null)
            {
                DockNetwork = new GUI.DockNetwork();
            }

            var rec    = Screen.PrimaryScreen.Bounds;
            int _width = rec.Width;

            if (_width <= 1024)
            {
                MainForm.Panel.SuspendLayout(true);

                MainForm.Panel.DockRightPortion  = 0.5f;
                MainForm.Panel.DockBottomPortion = 0.2f;

                DockViewer.Show(MainForm.Panel, DockState.Document);
                DockViewerController.Show(MainForm.Panel, DockState.DockBottom);

                DockNodeTreeView.Show(MainForm.Panel, DockState.DockRight);

                DockNodeLocationValues.Show(DockNodeTreeView.Pane, DockAlignment.Right, 0.65);

                DockNodeDrawingValues.Show(MainForm.Panel);
                DockNodeDrawingValues.DockTo(DockNodeLocationValues.Pane, DockStyle.Right, 0);

                DockNodeRotationValues.Show(MainForm.Panel);
                DockNodeRotationValues.DockTo(DockNodeLocationValues.Pane, DockStyle.Bottom, 0);

                DockNodeScalingValues.Show(MainForm.Panel);
                DockNodeScalingValues.DockTo(DockNodeRotationValues.Pane, DockStyle.Bottom, 0);

                DockNodeCommonValues.Show(DockNodeTreeView.Pane, DockAlignment.Bottom, 0.75);

                DockNodeRendererCommonValues.Show(MainForm.Panel);
                DockNodeRendererCommonValues.DockTo(DockNodeDrawingValues.Pane, DockStyle.Fill, 1);

                DockNodeSoundValues.Show(MainForm.Panel);
                DockNodeSoundValues.DockTo(DockNodeDrawingValues.Pane, DockStyle.Fill, 1);

                MainForm.Panel.ResumeLayout(true, true);
            }
            else if (_width <= 1600)
            {
                MainForm.Panel.SuspendLayout(true);

                MainForm.Panel.DockRightPortion  = 0.5f;
                MainForm.Panel.DockBottomPortion = 0.2f;

                DockViewer.Show(MainForm.Panel, DockState.Document);
                DockViewerController.Show(MainForm.Panel, DockState.DockBottom);

                DockNodeTreeView.Show(MainForm.Panel, DockState.DockRight);

                DockNodeLocationValues.Show(DockNodeTreeView.Pane, DockAlignment.Right, 0.65);

                DockNodeDrawingValues.Show(MainForm.Panel);
                DockNodeDrawingValues.DockTo(DockNodeLocationValues.Pane, DockStyle.Right, 0);

                DockNodeRotationValues.Show(MainForm.Panel);
                DockNodeRotationValues.DockTo(DockNodeLocationValues.Pane, DockStyle.Bottom, 0);

                DockNodeScalingValues.Show(MainForm.Panel);
                DockNodeScalingValues.DockTo(DockNodeRotationValues.Pane, DockStyle.Bottom, 0);

                DockNodeCommonValues.Show(DockNodeTreeView.Pane, DockAlignment.Bottom, 0.75);

                DockNodeRendererCommonValues.Show(MainForm.Panel);
                DockNodeRendererCommonValues.DockTo(DockNodeDrawingValues.Pane, DockStyle.Fill, 1);

                DockNodeSoundValues.Show(MainForm.Panel);
                DockNodeSoundValues.DockTo(DockNodeDrawingValues.Pane, DockStyle.Fill, 1);

                MainForm.Panel.ResumeLayout(true, true);
            }
            else
            {
                MainForm.Panel.SuspendLayout(true);

                MainForm.Panel.DockRightPortion  = 0.5f;
                MainForm.Panel.DockBottomPortion = 0.15f;

                DockViewer.Show(MainForm.Panel, DockState.Document);
                DockViewerController.Show(MainForm.Panel, DockState.DockBottom);

                DockNodeTreeView.Show(MainForm.Panel, DockState.DockRight);

                DockNodeLocationValues.Show(DockNodeTreeView.Pane, DockAlignment.Right, 0.65);

                DockNodeDrawingValues.Show(MainForm.Panel);
                DockNodeDrawingValues.DockTo(DockNodeLocationValues.Pane, DockStyle.Right, 0);

                DockNodeRotationValues.Show(MainForm.Panel);
                DockNodeRotationValues.DockTo(DockNodeLocationValues.Pane, DockStyle.Bottom, 0);

                DockNodeScalingValues.Show(MainForm.Panel);
                DockNodeScalingValues.DockTo(DockNodeRotationValues.Pane, DockStyle.Bottom, 0);

                DockNodeCommonValues.Show(DockNodeTreeView.Pane, DockAlignment.Bottom, 0.75);

                DockNodeRendererCommonValues.Show(MainForm.Panel);
                DockNodeRendererCommonValues.DockTo(DockNodeDrawingValues.Pane, DockStyle.Fill, 1);

                DockNodeSoundValues.Show(MainForm.Panel);
                DockNodeSoundValues.DockTo(DockNodeDrawingValues.Pane, DockStyle.Fill, 1);

                MainForm.Panel.ResumeLayout(true, true);
            }
        }
Example #3
0
        public static void Initialize()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            configGuiPath = System.IO.Path.Combine(GetEntryDirectory(), ConfigGuiFileName);
            configGuiPanelPath = System.IO.Path.Combine(GetEntryDirectory(), ConfigGuiPanelFileName);
            configRecentPath = System.IO.Path.Combine(GetEntryDirectory(), ConfigRecentFileName);
            configNetworkPath = System.IO.Path.Combine(GetEntryDirectory(), ConfigNetworkFileName);

            Shortcuts.LoadShortcuts();
            Commands.Regist();
            LoadRecentConfig();

            Network = new Network();

            MainForm = new MainForm();
            AboutForm = new AboutForm();
            DockViewer = new DockViewer();
            DockViewerController = new DockViewerController();
            DockViewPoint = new DockViewPoint();
            DockRecorder = new GUI.DockRecorder();
            DockNodeTreeView = new DockNodeTreeView();
            DockNodeCommonValues = new GUI.DockNodeCommonValues();
            DockNodeLocationValues = new GUI.DockNodeLocationValues();
            DockNodeRotationValues = new GUI.DockNodeRotationValues();
            DockNodeScalingValues = new GUI.DockNodeScaleValues();
            DockNodeLocationAbsValues = new GUI.DockNodeLocationAbsValues();
            DockNodeGenerationLocationValues = new DockNodeGenerationLocationValues();
            DockNodeRendererCommonValues = new GUI.DockNodeRendererCommonValues();
            DockNodeDrawingValues = new GUI.DockNodeRendererValues();
            DockNodeSoundValues = new GUI.DockNodeSoundValues();
            DockOption = new GUI.DockOption();
            DockEffectBehavior = new GUI.DockEffectBehavior();
            DockFCurves = new GUI.DockFCurves();
            DockCulling = new GUI.DockCulling();
            DockNetwork = new GUI.DockNetwork();

            MainForm.Show();

            LoadConfig();

            DockViewer.ShowViewer();

            Core.MainForm = MainForm;
        }
Example #4
0
        public static void AssignDockWindowIntoDefaultPosition()
        {
            CheckDockWindowClosed();

            if (DockViewerController == null) DockViewerController = new DockViewerController();
            if (DockViewPoint == null) DockViewPoint = new DockViewPoint();
            if (DockRecorder == null) DockRecorder = new DockRecorder();
            if (DockNodeTreeView == null) DockNodeTreeView = new DockNodeTreeView();
            if (DockNodeCommonValues == null) DockNodeCommonValues = new GUI.DockNodeCommonValues();
            if (DockNodeLocationValues == null) DockNodeLocationValues = new GUI.DockNodeLocationValues();
            if (DockNodeRotationValues == null) DockNodeRotationValues = new GUI.DockNodeRotationValues();
            if (DockNodeScalingValues == null) DockNodeScalingValues = new GUI.DockNodeScaleValues();
            if (DockNodeLocationAbsValues == null) DockNodeLocationAbsValues = new GUI.DockNodeLocationAbsValues();
            if (DockNodeGenerationLocationValues == null) DockNodeGenerationLocationValues = new DockNodeGenerationLocationValues();
            if (DockNodeRendererCommonValues == null) DockNodeRendererCommonValues = new DockNodeRendererCommonValues();
            if (DockNodeDrawingValues == null) DockNodeDrawingValues = new GUI.DockNodeRendererValues();
            if (DockNodeSoundValues == null) DockNodeSoundValues = new GUI.DockNodeSoundValues();
            if (DockOption == null) DockOption = new GUI.DockOption();
            if (DockEffectBehavior == null) DockEffectBehavior = new DockEffectBehavior();
            if (DockFCurves == null) DockFCurves = new GUI.DockFCurves();
            if (DockCulling == null) DockCulling = new DockCulling();
            if (DockNetwork == null) DockNetwork = new GUI.DockNetwork();

            var rec = Screen.PrimaryScreen.Bounds;
            int _width = rec.Width;

            if (_width <= 1024)
            {
                MainForm.Panel.SuspendLayout(true);

                MainForm.Panel.DockRightPortion = 0.5f;
                MainForm.Panel.DockBottomPortion = 0.2f;

                DockViewer.Show(MainForm.Panel, DockState.Document);
                DockViewerController.Show(MainForm.Panel, DockState.DockBottom);

                DockNodeTreeView.Show(MainForm.Panel, DockState.DockRight);

                DockNodeLocationValues.Show(DockNodeTreeView.Pane, DockAlignment.Right, 0.65);

                DockNodeDrawingValues.Show(MainForm.Panel);
                DockNodeDrawingValues.DockTo(DockNodeLocationValues.Pane, DockStyle.Right, 0);

                DockNodeRotationValues.Show(MainForm.Panel);
                DockNodeRotationValues.DockTo(DockNodeLocationValues.Pane, DockStyle.Bottom, 0);

                DockNodeScalingValues.Show(MainForm.Panel);
                DockNodeScalingValues.DockTo(DockNodeRotationValues.Pane, DockStyle.Bottom, 0);

                DockNodeCommonValues.Show(DockNodeTreeView.Pane, DockAlignment.Bottom, 0.75);

                DockNodeRendererCommonValues.Show(MainForm.Panel);
                DockNodeRendererCommonValues.DockTo(DockNodeDrawingValues.Pane, DockStyle.Fill, 1);

                DockNodeSoundValues.Show(MainForm.Panel);
                DockNodeSoundValues.DockTo(DockNodeDrawingValues.Pane, DockStyle.Fill, 1);

                MainForm.Panel.ResumeLayout(true, true);
            }
            else if (_width <= 1600)
            {
                MainForm.Panel.SuspendLayout(true);

                MainForm.Panel.DockRightPortion = 0.5f;
                MainForm.Panel.DockBottomPortion = 0.2f;

                DockViewer.Show(MainForm.Panel, DockState.Document);
                DockViewerController.Show(MainForm.Panel, DockState.DockBottom);

                DockNodeTreeView.Show(MainForm.Panel, DockState.DockRight);

                DockNodeLocationValues.Show(DockNodeTreeView.Pane, DockAlignment.Right, 0.65);

                DockNodeDrawingValues.Show(MainForm.Panel);
                DockNodeDrawingValues.DockTo(DockNodeLocationValues.Pane, DockStyle.Right, 0);

                DockNodeRotationValues.Show(MainForm.Panel);
                DockNodeRotationValues.DockTo(DockNodeLocationValues.Pane, DockStyle.Bottom, 0);

                DockNodeScalingValues.Show(MainForm.Panel);
                DockNodeScalingValues.DockTo(DockNodeRotationValues.Pane, DockStyle.Bottom, 0);

                DockNodeCommonValues.Show(DockNodeTreeView.Pane, DockAlignment.Bottom, 0.75);

                DockNodeRendererCommonValues.Show(MainForm.Panel);
                DockNodeRendererCommonValues.DockTo(DockNodeDrawingValues.Pane, DockStyle.Fill, 1);

                DockNodeSoundValues.Show(MainForm.Panel);
                DockNodeSoundValues.DockTo(DockNodeDrawingValues.Pane, DockStyle.Fill, 1);

                MainForm.Panel.ResumeLayout(true, true);
            }
            else
            {
                MainForm.Panel.SuspendLayout(true);

                MainForm.Panel.DockRightPortion = 0.5f;
                MainForm.Panel.DockBottomPortion = 0.15f;

                DockViewer.Show(MainForm.Panel, DockState.Document);
                DockViewerController.Show(MainForm.Panel, DockState.DockBottom);

                DockNodeTreeView.Show(MainForm.Panel, DockState.DockRight);

                DockNodeLocationValues.Show(DockNodeTreeView.Pane, DockAlignment.Right, 0.65);

                DockNodeDrawingValues.Show(MainForm.Panel);
                DockNodeDrawingValues.DockTo(DockNodeLocationValues.Pane, DockStyle.Right, 0);

                DockNodeRotationValues.Show(MainForm.Panel);
                DockNodeRotationValues.DockTo(DockNodeLocationValues.Pane, DockStyle.Bottom, 0);

                DockNodeScalingValues.Show(MainForm.Panel);
                DockNodeScalingValues.DockTo(DockNodeRotationValues.Pane, DockStyle.Bottom, 0);

                DockNodeCommonValues.Show(DockNodeTreeView.Pane, DockAlignment.Bottom, 0.75);

                DockNodeRendererCommonValues.Show(MainForm.Panel);
                DockNodeRendererCommonValues.DockTo(DockNodeDrawingValues.Pane, DockStyle.Fill, 1);

                DockNodeSoundValues.Show(MainForm.Panel);
                DockNodeSoundValues.DockTo(DockNodeDrawingValues.Pane, DockStyle.Fill, 1);

                MainForm.Panel.ResumeLayout(true, true);
            }
        }