Exemplo n.º 1
0
        public void SaveInterfaceSettings()
        {
            this.config.windowWidth     = this.Width;
            this.config.windowHeight    = this.Height;
            this.config.windowState     = this.WindowState;
            this.config.mainSplitter    = this.splitContainer.SplitterDistance;
            this.config.sidebarSplitter = this.sidebarSplitContainer.SplitterDistance;
            this.config.sidebarMode     = this.sidebarMode;
            this.config.showStatusbar   = this.statusbarToolStripMenuItem.Checked;
            this.config.showSidebar     = this.sidebarToolStripMenuItem.Checked;
            this.config.showToolbar     = this.toolbarToolStripMenuItem.Checked;
            this.config.showConsole     = this.consoleToolStripMenuItem.Checked;
            this.config.showParameters  = this.scriptParametersToolStripMenuItem.Checked;
            this.config.wordWrap        = this.wordWrapToolStripMenuItem.Checked;
            this.config.fontSize        = (uint)this.editor.FontSize;
            this.config.wireframe       = this.wireframe.Checked;
            this.config.heightScale     = this.heightScale.Value;

            this.config.parameters = this.GetArgValues();

            this.SetupViewport();
        }
Exemplo n.º 2
0
        public void SetSidebarMode(SidebarMode mode)
        {
            this.sidebarMode = mode;

            if (mode == SidebarMode.Left)
            {
                this.leftToolStripMenuItem.Checked   = true;
                this.leftToolStripMenuItem.Checked   = true;
                this.rightToolStripMenuItem.Checked  = false;
                this.bottomToolStripMenuItem.Checked = false;

                this.splitContainer.Orientation        = Orientation.Vertical;
                this.splitContainer.RightToLeft        = RightToLeft.Yes;
                this.sidebarSplitContainer.Orientation = Orientation.Horizontal;
            }
            else if (mode == SidebarMode.Right)
            {
                this.leftToolStripMenuItem.Checked   = false;
                this.rightToolStripMenuItem.Checked  = true;
                this.bottomToolStripMenuItem.Checked = false;

                this.splitContainer.Orientation        = Orientation.Vertical;
                this.splitContainer.RightToLeft        = RightToLeft.No;
                this.sidebarSplitContainer.Orientation = Orientation.Horizontal;
            }
            else
            {
                this.leftToolStripMenuItem.Checked   = false;
                this.rightToolStripMenuItem.Checked  = false;
                this.bottomToolStripMenuItem.Checked = true;

                this.splitContainer.Orientation        = Orientation.Horizontal;
                this.splitContainer.RightToLeft        = RightToLeft.No;
                this.sidebarSplitContainer.Orientation = Orientation.Vertical;
            }
        }
Exemplo n.º 3
0
        public void SaveInterfaceSettings()
        {
            this.config.windowWidth = this.Width;
            this.config.windowHeight = this.Height;
            this.config.windowState = this.WindowState;
            this.config.mainSplitter = this.splitContainer.SplitterDistance;
            this.config.sidebarSplitter = this.sidebarSplitContainer.SplitterDistance;
            this.config.sidebarMode = this.sidebarMode;
            this.config.showStatusbar = this.statusbarToolStripMenuItem.Checked;
            this.config.showSidebar = this.sidebarToolStripMenuItem.Checked;
            this.config.showToolbar = this.toolbarToolStripMenuItem.Checked;
            this.config.showConsole = this.consoleToolStripMenuItem.Checked;
            this.config.showParameters = this.scriptParametersToolStripMenuItem.Checked;
            this.config.wordWrap = this.wordWrapToolStripMenuItem.Checked;
            this.config.fontSize = (uint) this.editor.FontSize;
            this.config.wireframe = this.wireframe.Checked;
            this.config.heightScale = this.heightScale.Value;

            this.config.parameters = this.GetArgValues();

            this.SetupViewport();
        }
Exemplo n.º 4
0
        public void SetSidebarMode(SidebarMode mode)
        {
            this.sidebarMode = mode;

            if (mode == SidebarMode.Left)
            {
                this.leftToolStripMenuItem.Checked = true;
                this.leftToolStripMenuItem.Checked = true;
                this.rightToolStripMenuItem.Checked = false;
                this.bottomToolStripMenuItem.Checked = false;

                this.splitContainer.Orientation = Orientation.Vertical;
                this.splitContainer.RightToLeft = RightToLeft.Yes;
                this.sidebarSplitContainer.Orientation = Orientation.Horizontal;
            }
            else if (mode == SidebarMode.Right)
            {
                this.leftToolStripMenuItem.Checked = false;
                this.rightToolStripMenuItem.Checked = true;
                this.bottomToolStripMenuItem.Checked = false;

                this.splitContainer.Orientation = Orientation.Vertical;
                this.splitContainer.RightToLeft = RightToLeft.No;
                this.sidebarSplitContainer.Orientation = Orientation.Horizontal;
            }
            else
            {
                this.leftToolStripMenuItem.Checked = false;
                this.rightToolStripMenuItem.Checked = false;
                this.bottomToolStripMenuItem.Checked = true;

                this.splitContainer.Orientation = Orientation.Horizontal;
                this.splitContainer.RightToLeft = RightToLeft.No;
                this.sidebarSplitContainer.Orientation = Orientation.Vertical;
            }
        }