/// class PD.Manage.Modules.Rules.RulesetsEditorToolbar
// using PD.Web.UI.Controls.ToolbarSegment

PD.Manage.Modules.Rules.RulesetsEditorToolbar =
PD.Web.UI.Controls.ToolbarSegment.extend({

    //===================================
    // EVENT HANDLERS
    //===================================

    onRegisterItems: function (e) {

        e.registerItem(new PD.Web.UI.Controls.CommandButton({
            commandId: "pd/rulesets-editor:rule-script/save"
        }));

        e.registerItem(new PD.Web.UI.Controls.ToggleButton({
            commandId: "pd/rulesets-editor:editor/indents/show"
        }));

        e.registerItem(new PD.Web.UI.Controls.ToggleButton({
            commandId: "pd/rulesets-editor:editor/invisibles/show"
        }));

        e.registerItem(new PD.Web.UI.Controls.ToggleButton({
            commandId: "pd/rulesets-editor:editor/line-numbers/show"
        }));

        e.registerItem(new PD.Web.UI.Controls.DropDownListTemplate({
            commandId: "pd/rulesets-editor:editor/font-size",
            items: [
                { text: "10 px", value: 10 },
                { text: "11 px", value: 11 },
                { text: "12 px", value: 12 },
                { text: "13 px", value: 13 },
                { text: "14 px", value: 14 },
                { text: "15 px", value: 15 },
                { text: "16 px", value: 16 },
                { text: "20 px", value: 20 },
                { text: "24 px", value: 24 },
                { text: "32 px", value: 32 }
            ]
        }));

    }

});