CreateOptionsUI() публичный Метод

public CreateOptionsUI ( ) : void
Результат void
Пример #1
0
        public void Initialize()
        {
            var tab = new RibbonTabCapsule("Unfold", Resources.TabText, ribbonRoot);
            RibbonGroupCapsule group;
            RibbonButtonCapsule button;

            group = new RibbonGroupCapsule("Unfold", Resources.UnfoldGroupText, tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            new UnfoldButtonCapsule(group, RibbonButtonCapsule.ButtonSize.large);

            var isBreakCapsule = new UnfoldBreakOptionsCapsule("IsBreak", tab);
            isBreakCapsule.CreateOptionsUI();

            group = new RibbonGroupCapsule("Tessellate", Resources.TessellateGroupText, tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            button = new TessellateButtonCapsule(group, RibbonButtonCapsule.ButtonSize.large);
            group.CreateOptionsUI();

            //		container = new RibbonContainerCapsule("Settings", group, RibbonCollectionCapsule.LayoutOrientation.vertical, false);
            //		new UnfoldWithCurvesButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            //		new UnfoldVerifyPlanarButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            //		container = new RibbonContainerCapsule("More", group, RibbonCollectionCapsule.LayoutOrientation.vertical, false);
            //		new MergeComponentBodiesButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            //		new ConvexHullButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            //		group.CreateOptionsUI();

            group = new RibbonGroupCapsule("Create", Resources.CreateGroupText, tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            new TessellateLoftButtonCapsule(group, RibbonButtonCapsule.ButtonSize.large);
            group.CreateOptionsUI();

            //	new TessellateFoldCornerButtonCapsule(group, RibbonButtonCapsule.ButtonSize.small);

            //group = new RibbonGroupCapsule("Dashes", Resources.DashesGroupText, tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            //container = new RibbonContainerCapsule("Buttons", group, RibbonCollectionCapsule.LayoutOrientation.vertical, false);
            //button = new DashesButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            //new DashChainButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            //new CopyCurvesButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            //group.CreateOptionsUI();
        }
        public void Initialize()
        {
            var tab = new RibbonTabCapsule("UnfoldMore", Resources.TabText, ribbonRoot);
            RibbonGroupCapsule group;
            RibbonContainerCapsule container;
            RibbonButtonCapsule button;

            group = new RibbonGroupCapsule("Tabs", Resources.TabsGroupText, tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            container = new RibbonContainerCapsule("Buttons", group, RibbonCollectionCapsule.LayoutOrientation.vertical, false);
            button = new EdgeTabButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            new OffsetEdgesButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            new MakeTabsButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            group.CreateOptionsUI();

            /*
            group = new RibbonGroupCapsule("Excel", Resources.ExcelGroupText, tab, RibbonCollectionCapsule.LayoutOrientation.vertical);
            new ExcelResetButtonCapsule(group, RibbonButtonCapsule.ButtonSize.small);
            new ExcelLengthButtonCapsule(group, RibbonButtonCapsule.ButtonSize.small);
            new ExcelAngleButtonCapsule(group, RibbonButtonCapsule.ButtonSize.small);
            */

            tab = new RibbonTabCapsule("Discrete", Resources.DiscreteTabText, ribbonRoot);
            group = new RibbonGroupCapsule("Procedural", Resources.ProceduralGroupText, tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            container = new RibbonContainerCapsule("Buttons", group, RibbonCollectionCapsule.LayoutOrientation.vertical, false);
            new CreateFigure8ButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            new CreateAnimateButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            container = new RibbonContainerCapsule("Tools", group, RibbonCollectionCapsule.LayoutOrientation.vertical, false);
            new LawsonToolButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            new LawsonRelaxButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            new CreateLawsonButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            group.CreateOptionsUI();
            container = new RibbonContainerCapsule("More", group, RibbonCollectionCapsule.LayoutOrientation.vertical, false);
            new LawsonCirclesButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);

            group = new RibbonGroupCapsule("Gyroid", Resources.GyroidGroupText, tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            container = new RibbonContainerCapsule("Tools", group, RibbonCollectionCapsule.LayoutOrientation.vertical, false);
            new GyroidRelaxButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            new BoyToolButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);

            new BrowseToolButtonCapsule(group, RibbonButtonCapsule.ButtonSize.large);

            group = new RibbonGroupCapsule("Quadrant", "Octant", tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            container = new RibbonContainerCapsule("0", group, RibbonCollectionCapsule.LayoutOrientation.vertical, false);
            new SelectQuadrant000ButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            new SelectQuadrant100ButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            new SelectQuadrant010ButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            new SelectQuadrant110ButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            container = new RibbonContainerCapsule("1", group, RibbonCollectionCapsule.LayoutOrientation.vertical, false);
            new SelectQuadrant001ButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            new SelectQuadrant101ButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            new SelectQuadrant011ButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);
            new SelectQuadrant111ButtonCapsule(container, RibbonButtonCapsule.ButtonSize.small);

            tab = new RibbonTabCapsule("Lenticular", Resources.Lenticular, ribbonRoot);
            group = new RibbonGroupCapsule("Lenticular", Resources.Lenticular, tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            new LenticularPlanarCommandCapsule(group, RibbonButtonCapsule.ButtonSize.large);
            new LenticularCylindricalCommandCapsule(group, RibbonButtonCapsule.ButtonSize.large);
            group.CreateOptionsUI();

            //		group = new RibbonGroupCapsule("Wilf", Resources.WilfGroupText, tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            //		new WilfButtonCapsule(group, RibbonButtonCapsule.ButtonSize.small);

            Application.AddFileHandler(new SvgFileSaveHandler());
            Application.AddFileHandler(new DxfFileSaveHandler());
        }