using System;
using System.Collections.Generic;
using System.Text;
using DevComponents.DotNetBar.Ribbon;
namespace DevComponents.DotNetBar.Metro
{
    internal class MetroQatCustomizeDialog : MetroForm
    {
        private QatCustomizePanel qatCustomizePanel1;
        internal ButtonX buttonOK;
        internal ButtonX buttonCancel;
        /// 
        /// Required designer variable.
        /// 
        private System.ComponentModel.IContainer components = null;
        /// 
        /// Clean up any resources being used.
        /// 
        /// true if managed resources should be disposed; otherwise, false.
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
        #region Windows Form Designer generated code
        /// 
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// 
        private void InitializeComponent()
        {
            this.qatCustomizePanel1 = new DevComponents.DotNetBar.Ribbon.QatCustomizePanel();
            this.buttonOK = new DevComponents.DotNetBar.ButtonX();
            this.buttonCancel = new DevComponents.DotNetBar.ButtonX();
            this.SuspendLayout();
            // 
            // qatCustomizePanel1
            // 
            this.qatCustomizePanel1.BackColor = System.Drawing.Color.Transparent;
            this.qatCustomizePanel1.Location = new System.Drawing.Point(0, 0);
            this.qatCustomizePanel1.Name = "qatCustomizePanel1";
            this.qatCustomizePanel1.Size = new System.Drawing.Size(444, 298);
            this.qatCustomizePanel1.TabIndex = 0;
            // 
            // buttonOK
            // 
            this.buttonOK.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
            this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.buttonOK.Location = new System.Drawing.Point(285, 297);
            this.buttonOK.Name = "buttonOK";
            this.buttonOK.Size = new System.Drawing.Size(73, 21);
            this.buttonOK.TabIndex = 1;
            this.buttonOK.Text = "OK";
            // 
            // buttonCancel
            // 
            this.buttonCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
            this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.buttonCancel.Location = new System.Drawing.Point(364, 297);
            this.buttonCancel.Name = "buttonCancel";
            this.buttonCancel.Size = new System.Drawing.Size(73, 21);
            this.buttonCancel.TabIndex = 2;
            this.buttonCancel.Text = "Cancel";
            // 
            // QatCustomizeDialog
            // 
            this.ClientSize = new System.Drawing.Size(445, 324);
            this.Controls.Add(this.buttonCancel);
            this.Controls.Add(this.buttonOK);
            this.Controls.Add(this.qatCustomizePanel1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.ShowInTaskbar = false;
            this.Name = "QatCustomizeDialog";
            this.Text = "Customize";
            this.ResumeLayout(false);
        }
        #endregion
        public MetroQatCustomizeDialog()
        {
            InitializeComponent();
        }
        /// 
        /// Loads the items for the customization from MetroTab control. Registered MetroToolbar controls are enumerated and items
        /// are added if they have CanCustomize=true.
        /// 
        /// MetroTab control that holds references to known MetroToolbars.
        public void LoadItems(MetroShell tab)
        {
            qatCustomizePanel1.LoadItems(tab);
        }
        /// 
        /// Gets reference to the internal Quick Access Toolbar Customization panel.
        /// 
        public QatCustomizePanel QatCustomizePanel
        {
            get { return qatCustomizePanel1; }
        }
    }
}