Inheritance: SpaceClaim.AddInLibrary.RibbonBooleanGroupCapsule
Exemplo n.º 1
0
        public void Initialize()
        {
            var tab = new RibbonTabCapsule("Gear", Resources.TabText, ribbonRoot);
            RibbonButtonCapsule button;

            RibbonGroupCapsule basicGroup = new GearGroupCapsule("Create", tab);
            button = new GearButtonCapsule("Spur", basicGroup, RibbonButtonCapsule.ButtonSize.large);
            basicGroup.CreateOptionsUI();

            var isHelicalCapsule = new GearIsHelicalCapsule("IsHelical", tab);
            isHelicalCapsule.CreateOptionsUI();

            var isBevelCapsule = new GearIsBevelCapsule("IsBevel", tab);
            isBevelCapsule.CreateOptionsUI();

            var isScrewCapsule = new GearIsScrewCapsule("IsScrew", tab);
            isScrewCapsule.CreateOptionsUI();

            var isHypoidCapsule = new GearIsHypoidCapsule("IsHypoid", tab);
            isHypoidCapsule.CreateOptionsUI();

            var calculationsContainerCapsule = new GearCalculationsContainerCapsule("CalculationsContainer", tab);
            labels.Add(new GearCalculationsLine1Capsule("Line1", basicGroup, calculationsContainerCapsule));
            labels.Add(new GearCalculationsLine2Capsule("Line2", basicGroup, calculationsContainerCapsule));
            labels.Add(new GearCalculationsLine3Capsule("Line3", basicGroup, calculationsContainerCapsule));

            //		RibbonGroupCapsule extraGroup = new RibbonGroupCapsule("Extras", "Extras", tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            //		new MobiusButtonCapsule("mobiusbutton", extraGroup, RibbonButtonCapsule.ButtonSize.large);
        }
Exemplo n.º 2
0
        public void Initialize()
        {
            var tab = new RibbonTabCapsule("Gear", Resources.TabText, ribbonRoot);
            RibbonButtonCapsule button;

            RibbonGroupCapsule basicGroup = new GearGroupCapsule("Create", tab);

            button = new GearButtonCapsule("Spur", basicGroup, RibbonButtonCapsule.ButtonSize.large);
            basicGroup.CreateOptionsUI();

            var isHelicalCapsule = new GearIsHelicalCapsule("IsHelical", tab);

            isHelicalCapsule.CreateOptionsUI();

            var isBevelCapsule = new GearIsBevelCapsule("IsBevel", tab);

            isBevelCapsule.CreateOptionsUI();

            var isScrewCapsule = new GearIsScrewCapsule("IsScrew", tab);

            isScrewCapsule.CreateOptionsUI();

            var isHypoidCapsule = new GearIsHypoidCapsule("IsHypoid", tab);

            isHypoidCapsule.CreateOptionsUI();

            var calculationsContainerCapsule = new GearCalculationsContainerCapsule("CalculationsContainer", tab);

            labels.Add(new GearCalculationsLine1Capsule("Line1", basicGroup, calculationsContainerCapsule));
            labels.Add(new GearCalculationsLine2Capsule("Line2", basicGroup, calculationsContainerCapsule));
            labels.Add(new GearCalculationsLine3Capsule("Line3", basicGroup, calculationsContainerCapsule));

            //		RibbonGroupCapsule extraGroup = new RibbonGroupCapsule("Extras", "Extras", tab, RibbonCollectionCapsule.LayoutOrientation.horizontal);
            //		new MobiusButtonCapsule("mobiusbutton", extraGroup, RibbonButtonCapsule.ButtonSize.large);
        }