/// <summary>
        /// Constructor that a derived class can use to provide additional customizations</summary>
        /// <param name="commandService">ICommandService</param>
        /// <param name="controlHostService">IControlHostService</param>
        /// <param name="contextRegistry">IContextRegistry</param>
        /// <param name="curveEditingControl">CurveEditingControl to use</param>
        /// <param name="controlInfo">ControlInfo for CurveEditingControl</param>
        public CurveEditor(ICommandService commandService,
                           IControlHostService controlHostService,
                           IContextRegistry contextRegistry,
                           CurveEditingControl curveEditingControl,
                           ControlInfo controlInfo)
        {
            // The commandService parameter is currently unused
            // but kept for backwards compatibility & potential future use

            m_controlHostService = controlHostService;
            m_contextRegistry    = contextRegistry;
            m_curveEditorControl = curveEditingControl;
            m_controlInfo        = controlInfo;
        }
Example #2
0
        public CurveEditor(ICommandService commandService,
                           IControlHostService controlHostService,
                           IContextRegistry contextRegistry)
        {
            // The commandService parameter is currently unused
            // but kept for backwards compatibility & potential future use

            m_controlHostService = controlHostService;
            m_contextRegistry    = contextRegistry;

            m_curveEditorControl = new CurveEditingControl();
            m_controlInfo        = new ControlInfo(
                "Curve Editor".Localize(),
                "Edits selected object curves".Localize(),
                StandardControlGroup.Bottom);
        }
        public CurveEditor(ICommandService commandService,
                           IControlHostService controlHostService,
                           IContextRegistry contextRegistry)
        {
            // The commandService parameter is currently unused
            // but kept for backwards compatibility & potential future use

            m_controlHostService = controlHostService;
            m_contextRegistry    = contextRegistry;

            m_curveEditorControl = new CurveEditingControl();
            m_controlInfo        = new ControlInfo(
                "Curve Editor", //Is the ID in the layout. We'll localize DisplayName instead.
                "Edits selected object curves".Localize(),
                StandardControlGroup.Bottom)
            {
                DisplayName = "Curve Editor".Localize()
            };
        }