Пример #1
0
        /*!
         * \brief
         *  Add the given WidgetLookFeel.
         *
         * \note
         *  If the WidgetLookFeel specification uses a name that already exists within the system, it is not an error;
         *  the previous definition is overwritten by the new data.  An entry will appear in the log each time any
         *  look & feel component is overwritten.
         *
         * \param look
         *
         *
         * \return
         *  Nothing.
         */
        /// <summary>
        ///
        /// </summary>
        /// <param name="look">
        /// WidgetLookFeel object to be added to the system.  NB: The WidgetLookFeel is copied, no change of ownership of the
        /// input object occurrs.
        /// </param>
        /// <remarks>
        /// If the WidgetLookFeel specification uses a name that already exists within the system, it is not an error;
        /// the previous definition is overwritten by the new data.  An entry will appear in the log each time any
        /// look & feel component is overwritten.
        /// </remarks>
        public void AddWidgetLook(WidgetLookFeel look)
        {
            if (IsWidgetLookAvailable(look.GetName()))
            {
                System.GetSingleton().Logger
                .LogEvent("WidgetLookManager.AddWidgetLook - Widget look and feel '" + look.GetName() +
                          "' already exists.  Replacing previous definition.");
            }

            d_widgetLooks[look.GetName()] = look;
        }
Пример #2
0
 private void Swap(WidgetLookFeel other)
 {
     throw new NotImplementedException();
 }