using Alchemy4Tridion.Plugins.GUI.Configuration;

namespace UsageReport.Config
{
    /// <summary>
    /// Represents a ribbon tool bar
    /// </summary>
    public class UsageReportRibbon : RibbonToolbarExtension
    {
        /// <summary>
        /// Constructor
        /// </summary>
        public UsageReportRibbon()
        {
            // The id of the element (overridden b/c the ascx in the Group property contains the Id)
            AssignId = "UsageReportRibbonToolbar";

            // The filename of the ascx user control that contains the button markup/controls.
            Group = "UsageReportGroup.ascx";
            GroupId = Constants.GroupIds.HomePage.ManageGroup;
            InsertBefore = "WhereUsedBtn";

            // The name of the extension.
            Name = PluginConstants.WebstoreName;

            // Which Page tab the extension will go on.
            PageId = "Reports";

            // Don't forget to add a dependency to the resource group that references the command set...
            Dependencies.Add<UsageReportResourceGroup>();

            // And apply it to a view.
            Apply.ToView(Constants.Views.DashboardView, "DashboardToolbar");
        }
    }
}