/// class PD.Manage.Modules.ResourceEditorToolbar
// using PD.Web.UI.Controls.ToolbarSegment

PD.Manage.Modules.Resources.ResourceEditorToolbar =
PD.Web.UI.Controls.ToolbarSegment.extend({

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

    onRegisterItems: function (e) {

        e.registerItem(new PD.Web.UI.Controls.CommandButton({
            commandId: "pd/resource-editor:resources/file/save"
        }));

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

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

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

        e.registerItem(new PD.Web.UI.Controls.DropDownListTemplate({
            commandId: "pd/resource-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 }
            ]
        }));

    }

});