Inheritance: RibbonCollectionCapsule
        public void Initialize()
        {
            var tab = new RibbonTabCapsule("Tracker", Resources.TrackerText, ribbonRoot);
            RibbonGroupCapsule group;
            RibbonContainerCapsule container;
            RibbonButtonCapsule button;

            group = new RibbonGroupCapsule("Tracker", Resources.TrackerGroupText, tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            new TrackerLaunchButtonCapsule (group, RibbonButtonCapsule.ButtonSize.large);
            new TrackerGetEnvironmentButtonCapsule(group, RibbonButtonCapsule.ButtonSize.large);
            new TrackerGetRayButtonCapsule(group, RibbonButtonCapsule.ButtonSize.large);
        }
        public void Initialize()
        {
            var tab = new RibbonTabCapsule("CAM", Resources.TabText, ribbonRoot);
            RibbonGroupCapsule group;

            group = new RibbonGroupCapsule("ToolPath", Resources.ToolPathGroupText, tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            new FaceToolPathToolButtonCapsule(group, RibbonButtonCapsule.ButtonSize.large);
            new AnimationToolButtonCapsule(group, RibbonButtonCapsule.ButtonSize.large);

            foreach (PropertyDisplay property in FaceToolPathObject.Properties)
                Application.AddPropertyDisplay(property);
        }
        public void Initialize()
        {
            var tab = new RibbonTabCapsule("Utilities", Resources.UtilitiesText, ribbonRoot);
            RibbonButtonCapsule button;
            RibbonGroupCapsule group;

            group = new RibbonGroupCapsule("Thread", Resources.ThreadsGroupText, tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            button = new ThreadToolCapsule("Create", group, RibbonButtonCapsule.ButtonSize.large);

            group = new RibbonGroupCapsule("Shapes", Resources.ApiGrooveGroupText, tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            button = new ApiGrooveToolCapsule("ApiGroove", group, RibbonButtonCapsule.ButtonSize.large);

            group = new RibbonGroupCapsule("Spheres", Resources.DistributeGroupText, tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            button = new DistributeSpheresToolCapsule("Tool", group, RibbonButtonCapsule.ButtonSize.large);
        }
Esempio n. 4
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();
        }
Esempio n. 5
0
 public GearCalculationsLine3Capsule(string name, RibbonGroupCapsule group, RibbonCommandCapsule parent)
     : base(name, group, parent)
 {
 }
Esempio n. 6
0
 public GearCalculationsCapsule(string name, RibbonGroupCapsule group, RibbonCommandCapsule parent)
     : base(name, string.Empty, string.Empty, parent, 400)
 {
     GearCalculationsCapsule.group = group;
     this.Justification = LabelJustification.near;
 }
        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());
        }