7bda32832e05aea8b86dcb9a3c9e5e301e6327db
[Packages/TYPO3.CMS.git] / typo3 / js / extjs / viewportConfiguration.js
1 /***************************************************************
2 * Copyright notice
3 *
4 * (c) 2010-2011 Stefan Galinski <stefan.galinski@gmail.com>
5 * All rights reserved
6 *
7 * This script is part of the TYPO3 project. The TYPO3 project is
8 * free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * The GNU General Public License can be found at
14 * http://www.gnu.org/copyleft/gpl.html.
15 * A copy is found in the textfile GPL.txt and important notices to the license
16 * from the author is found in LICENSE.txt distributed with these scripts.
17 *
18 *
19 * This script is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * This copyright notice MUST APPEAR in all copies of the script!
25 ***************************************************************/
26
27 Ext.ns('TYPO3');
28
29 /**
30 * The backend viewport configuration
31 *
32 * @author Stefan Galinski <stefan.galinski@gmail.com>
33 */
34 TYPO3.Viewport.configuration = {
35 layout: 'border',
36 id: 'typo3-viewport',
37 renderTo: Ext.getBody(),
38 border: false,
39 items: [
40 {
41 layout: 'absolute',
42 region: 'north',
43 id: 'typo3-topbar',
44 height: 42,
45 contentEl: 'typo3-top-container',
46 border: false
47 },
48 {
49 layout: 'fit',
50 region: 'west',
51 id: 'typo3-module-menu',
52 collapsible: false,
53 collapseMode: null,
54 floatable: true,
55 hideCollapseTool: true,
56 split: true,
57 useSplitTips: true,
58 splitTip: top.TYPO3.LLL.viewPort.tooltipModuleMenuSplit,
59 enableChildSplit: true,
60 border: false,
61 autoScroll: true
62 },
63 {
64 region: 'center',
65 layout: 'border',
66 border: false,
67 items: [
68 {
69 region: 'west',
70 layout: 'fit',
71 id: 'typo3-navigationContainer',
72 width: 300,
73 minWidth: 20,
74 floatable: true,
75 animCollapse: false,
76 split: true,
77 enableChildSplit: true,
78 collapsible: true,
79 collapseMode: 'mini',
80 useSplitTips: true,
81 collapsibleSplitTip: top.TYPO3.LLL.viewPort.tooltipNavigationContainerSplitDrag,
82 hideCollapseTool: true,
83 hidden: true,
84 border: false,
85 name: 'navigation',
86 autoScroll: true,
87 items: [
88 {
89 id: 'typo3-navigationIframe',
90 border: false,
91 hidden: true,
92 xtype: 'iframePanel',
93 name: 'navigation'
94 }
95 ]
96 },
97 {
98 region: 'center',
99 layout: 'border',
100 items: [
101 {
102 id: 'typo3-navigationDummy',
103 region: 'west',
104 layout: 'fit',
105 border: false,
106 hidden: true,
107 floatable: true,
108 xtime: 'iframePanel',
109 width: 5
110 },
111 {
112 id: 'typo3-contentContainer',
113 region: 'center',
114 anchor: '100% 100%',
115 border: false,
116 xtype: 'iframePanel',
117 name: 'content'
118 }
119 ]
120 },
121 {
122 region: 'south',
123 xtype: 'typo3DebugPanel',
124 collapsible: true,
125 collapseMode: 'mini',
126 collapsed: true,
127 hideCollapseTool: true,
128 animCollapse: false,
129 split: true,
130 useSplitTips: true,
131 collapsibleSplitTip: top.TYPO3.LLL.viewPort.tooltipDebugPanelSplitDrag,
132 autoScroll: true,
133 hidden: true,
134 height: 200,
135 id: 'typo3-debug-console',
136 border: false
137 }
138 ]
139 }
140 ]
141 };