Exemple #1
0
        public SelectTool()
        {
            Usage  = ToolUsage.Both;
            _tools = new List <TransformationTool>
            {
                new ResizeTool(),
                new RotateTool(),
                new SkewTool()
            };
            _widgets = new List <Widget>();

            _sidebarPanel = new SelectToolSidebarPanel();
            _sidebarPanel.ChangeTransformationTool += (sender, type) =>
            {
                var tool = _tools.FirstOrDefault(x => x.GetType() == type);
                if (tool != null)
                {
                    SetCurrentTool(tool);
                }
            };
            _sidebarPanel.ToggleShow3DWidgets += (sender, show) =>
            {
                Sledge.Settings.Select.Show3DSelectionWidgets = show;
                SetCurrentTool(_currentTool);
            };
        }
Exemple #2
0
        public SelectTool()
        {
            Usage = ToolUsage.Both;
            _tools = new List<TransformationTool>
                         {
                             new ResizeTool(),
                             new RotateTool(),
                             new SkewTool()
                         };
            _widgets = new List<Widget>();

            _sidebarPanel = new SelectToolSidebarPanel();
            _sidebarPanel.ChangeTransformationTool += (sender, type) =>
            {
                var tool = _tools.FirstOrDefault(x => x.GetType() == type);
                if (tool != null) SetCurrentTool(tool);
            };
            _sidebarPanel.ToggleShow3DWidgets += (sender, show) =>
            {
                Sledge.Settings.Select.Show3DSelectionWidgets = show;
                SetCurrentTool(_currentTool);
            };
        }