{
    "type": "Ext.window.Window",
    "reference": {
        "name": "items",
        "type": "array"
    },
    "codeClass": null,
    "userConfig": {
        "bodyPadding": 10,
        "border": null,
        "closable": false,
        "container|align": "stretch",
        "designer|userAlias": "addRoleToRuleWindowAlias",
        "designer|userClassName": "addRoleToRuleWindowClass",
        "height": null,
        "icon": "../gfx/role_composite.png",
        "itemId": "addRoleToRuleWindow",
        "layout": "vbox",
        "minWidth": null,
        "modal": true,
        "title": "Add roles",
        "width": 596
    },
    "designerId": "4bbc561f-8aa4-480d-bcbe-2d593b34c245",
    "cn": [
        {
            "type": "Ext.container.Container",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "container|align": "stretch",
                "container|padding": null,
                "dock": null,
                "layout": "vbox",
                "layout|flex": 1
            },
            "designerId": "c1379ffe-e204-4d08-a2a4-900f149a415a",
            "cn": [
                {
                    "type": "Ext.toolbar.Toolbar",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "border": false,
                        "layout|flex": null,
                        "margin": null
                    },
                    "designerId": "36a8877e-2a8e-4ab7-98eb-828da31974c7",
                    "cn": [
                        {
                            "type": "Ext.form.field.Trigger",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "fieldLabel": "Role search ",
                                "itemId": "addToRuleSearchField",
                                "labelAlign": "right",
                                "labelSeparator": " ",
                                "labelWidth": 70,
                                "layout|flex": 1,
                                "triggerCls": "x-form-search-trigger"
                            },
                            "designerId": "319d9346-a012-44a2-88d9-157284b73c4d"
                        },
                        {
                            "type": "Ext.toolbar.Spacer",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": null
                            },
                            "designerId": "4c6ea5b1-7150-44b2-a175-c056a426af69"
                        },
                        {
                            "type": "Ext.toolbar.Spacer",
                            "reference": {
                                "name": "items",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "layout|flex": null
                            },
                            "designerId": "b689b9e2-dd45-4c11-90ad-5fbbed03d49d"
                        }
                    ]
                },
                {
                    "type": "Ext.toolbar.Spacer",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "height": 10,
                        "layout|flex": null
                    },
                    "designerId": "d8884075-2902-4d81-ab89-0f49cbe00dff"
                },
                {
                    "type": "Ext.tree.Panel",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "allowDeselect": true,
                        "border": null,
                        "frameHeader": null,
                        "header": false,
                        "height": 350,
                        "hideHeaders": false,
                        "itemId": "addRoleToRuleTreePanel",
                        "layout|flex": 1,
                        "store": "AddRoleToRuleTreeStore",
                        "title": "My Tree Grid Panel",
                        "width": 600
                    },
                    "designerId": "977589e3-e3d6-413a-8dec-d05abfb44288",
                    "isBuiltIn": true,
                    "iconCls": "icon-treegridpanel",
                    "autoName": "TreeGrid",
                    "cn": [
                        {
                            "type": "Ext.tree.View",
                            "reference": {
                                "name": "viewConfig",
                                "type": "object"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "itemId": "addRoleToRiskView",
                                "loadMask": [
                                    "true"
                                ],
                                "rootVisible": false
                            },
                            "designerId": "c2282ad4-55f8-415b-af1a-5299ff03e80d"
                        },
                        {
                            "type": "Ext.tree.Column",
                            "reference": {
                                "name": "columns",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "dataIndex": "technicalname",
                                "flex": 3,
                                "text": "Role"
                            },
                            "designerId": "89dd76f5-97f3-4313-aa0c-bdcf4b5d7df8"
                        },
                        {
                            "type": "Ext.grid.column.Column",
                            "reference": {
                                "name": "columns",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "align": null,
                                "dataIndex": "rolename",
                                "flex": 3,
                                "text": "Description"
                            },
                            "designerId": "fd5377fd-3aff-4481-a8ed-8b239999d3a6"
                        },
                        {
                            "type": "Ext.grid.column.Column",
                            "reference": {
                                "name": "columns",
                                "type": "array"
                            },
                            "codeClass": null,
                            "userConfig": {
                                "align": "right",
                                "dataIndex": "derivatives",
                                "text": "Derived roles"
                            },
                            "designerId": "969cf10c-f59e-41de-a900-5f844920c4d4"
                        },
                        {
                            "type": "Ext.selection.CheckboxModel",
                            "reference": {
                                "name": "selModel",
                                "type": "object"
                            },
                            "codeClass": "Ext.selection.CheckboxModel",
                            "userConfig": {
                                "checkOnly": true,
                                "toggleOnClick": false
                            },
                            "designerId": "ef443291-a472-4685-8115-35f4552d2192"
                        }
                    ]
                }
            ]
        },
        {
            "type": "Ext.toolbar.Spacer",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "height": 10,
                "layout|flex": null
            },
            "designerId": "b4beb002-8ba7-4745-87bb-f700ecc866cb"
        },
        {
            "type": "Ext.container.Container",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "container|align": "stretch",
                "dock": null,
                "layout": "hbox",
                "layout|flex": null,
                "margin": null
            },
            "designerId": "92c8ee49-e62f-4ba5-8317-6725de006d07",
            "cn": [
                {
                    "type": "Ext.button.Button",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "disabled": true,
                        "icon": "../gfx/add.png",
                        "itemId": "addToRuleAddButton",
                        "layout|flex": null,
                        "layout|margins": null,
                        "padding": "5 10 5 10",
                        "scale": "medium",
                        "text": "Add selected roles"
                    },
                    "designerId": "da1db553-fd93-40e5-bf80-5210fe887384"
                },
                {
                    "type": "Ext.toolbar.Spacer",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "layout|flex": 1
                    },
                    "designerId": "5aa011f7-4f49-4120-8f21-be7e5bc3be6f"
                },
                {
                    "type": "Ext.button.Button",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "disabled": true,
                        "icon": "../gfx/clear.png",
                        "itemId": "addToRuleClearButton",
                        "layout|flex": null,
                        "layout|margins": null,
                        "padding": "5 10 5 10",
                        "scale": "medium",
                        "text": "Clear selection"
                    },
                    "designerId": "95c333d3-863b-4757-93c4-d9cceb3e7ddf"
                },
                {
                    "type": "Ext.toolbar.Spacer",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "layout|flex": 1
                    },
                    "designerId": "1ed3e0f0-cdca-4528-84c0-446391dda7e5"
                },
                {
                    "type": "Ext.button.Button",
                    "reference": {
                        "name": "items",
                        "type": "array"
                    },
                    "codeClass": null,
                    "userConfig": {
                        "icon": "../gfx/done.png",
                        "itemId": "addToRuleCancelButton",
                        "layout|flex": null,
                        "layout|margins": null,
                        "padding": "5 10 5 10",
                        "scale": "medium",
                        "text": "Done"
                    },
                    "designerId": "9a1f1bd5-1554-47ea-9832-c27ed6bb4c2d"
                }
            ]
        }
    ]
}