상속: RibbonCommandCapsule
예제 #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);
        }
        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);
        }
예제 #4
0
        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);
        }
예제 #5
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();
        }
예제 #6
0
 public GearIsScrewCapsule(string name, RibbonTabCapsule parent)
     : base(name, Resources.IsScrewText, Resources.IsScrewText, parent)
 {
     RibbonBooleanGroupCapsule.BooleanGroupCapsules[Resources.IsScrewText].IsEnabledCommandBoolean.Value = Settings.Default.IsScrew;
     Values[Resources.ScrewAngleText] = new RibbonCommandValue(Settings.Default.ScrewAngle);
     Values[Resources.ScrewAngleBiasText] = new RibbonCommandValue(Settings.Default.ScrewAngleOffset);
 }
예제 #7
0
 public GearIsHypoidCapsule(string name, RibbonTabCapsule parent)
     : base(name, Resources.IsHypoidText, Resources.IsHypoidText, parent)
 {
     RibbonBooleanGroupCapsule.BooleanGroupCapsules[Resources.IsHypoidText].IsEnabledCommandBoolean.Value = Settings.Default.IsHypoid;
     Values[Resources.HypoidAngleText] = new RibbonCommandValue(Settings.Default.HypoidAngle);
     Values[Resources.HypoidOffsetText] = new RibbonCommandValue(Settings.Default.HypoidOffset);
 }
예제 #8
0
 public GearIsBevelCapsule(string name, RibbonTabCapsule parent)
     : base(name, Resources.IsBevelText, Resources.IsBevelText, parent)
 {
     RibbonBooleanGroupCapsule.BooleanGroupCapsules[Resources.IsBevelText].IsEnabledCommandBoolean.Value = Settings.Default.IsBevel;
     Values[Resources.BevelAngleText] = new RibbonCommandValue(Settings.Default.BevelAngle);
     Values[Resources.BevelKneeRatioText] = new RibbonCommandValue(Settings.Default.BevelKneeRatio);
 }
예제 #9
0
        public GearGroupCapsule(string name, RibbonTabCapsule parent)
            : base(name, Resources.CreateGroupText, parent, LayoutOrientation.horizontal)
        {
            Values[Resources.NumberOfTeethLText] = new RibbonCommandValue(Settings.Default.NumberOfTeethL);
            Values[Resources.NumberOfTeethRText] = new RibbonCommandValue(Settings.Default.NumberOfTeethR);
            Values[Resources.PressureAngleText] = new RibbonCommandValue(Settings.Default.PressureAngleDegrees);
            Values[Resources.ModuleText] = new RibbonCommandValue(Settings.Default.Module * Window.ActiveWindow.Units.Length.ConversionFactor);
            Values[Resources.DedendumClearanceText] = new RibbonCommandValue(Settings.Default.DedendumClearance);
            Values[Resources.DepthText] = new RibbonCommandValue(Settings.Default.Depth * Window.ActiveWindow.Units.Length.ConversionFactor);

            Booleans[Resources.UseTrochoidalText] = new RibbonCommandBoolean(Settings.Default.UseTrochoidalInterferenceRemoval);
            Booleans[Resources.AddDedendumClearance] = new RibbonCommandBoolean(Settings.Default.AddDedendumClearace);
        }
예제 #10
0
 public GearCalculationsContainerCapsule(string name, RibbonTabCapsule parent)
     : base(name, "Calculations", parent, LayoutOrientation.vertical)
 {
     this.Spacing = 6;
 }
예제 #11
0
 public ThreadsGroupCapsule(string name, RibbonTabCapsule parent)
     : base(name, Resources.ThreadsGroupText, parent, LayoutOrientation.horizontal)
 {
     Values[Resources.ThreadPitch] = new RibbonCommandValue(Settings.Default.Pitch);
     Values[Resources.ThreadAngle] = new RibbonCommandValue(Settings.Default.Angle);
     Booleans[Resources.IsImperial] = new RibbonCommandBoolean(Settings.Default.IsImperial);
     Booleans[Resources.ThreadIsInternal] = new RibbonCommandBoolean(Settings.Default.IsInternal);
 }
 public RibbonGroupCapsule(string name, string text, RibbonTabCapsule parent, LayoutOrientation layoutOrientation)
     : base(name, text, parent, layoutOrientation)
 {
 }
        public RibbonBooleanGroupCapsule(string name, string text, string booleanText, RibbonTabCapsule parent)
            : base(name, text, parent, LayoutOrientation.vertical)
        {
            booleanGroupCapsules[text] = this;
            Values = new Dictionary<string, RibbonCommandValue>();
            Booleans = new Dictionary<string, RibbonCommandBoolean>();

            this.text = text;
            this.booleanText = text;
            IsEnabledCommandBoolean = new RibbonCommandBoolean(false);
        }
예제 #14
0
        public RibbonBooleanGroupCapsule(string name, string text, string booleanText, RibbonTabCapsule parent)
            : base(name, text, parent, LayoutOrientation.vertical)
        {
            booleanGroupCapsules[text] = this;
            Values   = new Dictionary <string, RibbonCommandValue>();
            Booleans = new Dictionary <string, RibbonCommandBoolean>();

            this.text               = text;
            this.booleanText        = text;
            IsEnabledCommandBoolean = new RibbonCommandBoolean(false);
        }
예제 #15
0
 public RibbonGroupCapsule(string name, string text, RibbonTabCapsule parent, LayoutOrientation layoutOrientation)
     : base(name, text, parent, layoutOrientation)
 {
 }
        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());
        }