Commit 58f7c7481e5dd07a1d00f3cf04d14e8b49f15403

  • avatar
  • Sergey 'Jin' Bostandzhyan <jin @deve…per.digitalstrom.org>
  • Mon Aug 09 00:42:43 CEST 2010
Added scene 0, inc, dec to light control dialog
webroot/js/dss/dss-setup-interface/dSS/config/Config.js
(3 / 0)
  
1919};
2020
2121dSS.config.scenes = {
22 "DEC" : 11,
23 "INC" : 12,
2224 "MIN" : 13,
2325 "MAX" : 14,
2426 "STOP" : 15,
27 "T0_S0" : 0,
2528 "T0_S1" : 5,
2629 "T0_S2" : 17,
2730 "T0_S3" : 18,
webroot/js/dss/dss-setup-interface/dSS/scene/SceneWindowLight.js
(54 / 5)
  
2727 Ext.apply(this, {
2828 layout: 'fit',
2929 width: 370,
30 height: 220,
30 height: 250,
3131 resizable: false,
3232 iconCls: 'functionLightIcon',
3333 title: _("Control light"),
7171 xtype: 'panel',
7272 html: '',
7373 width: 25,
74 rowspan: 5,
74 rowspan: 7,
7575 bodyBorder: false,
7676 border: false,
7777 frame: false
119119 xtype: 'panel',
120120 html: '',
121121 width: 25,
122 rowspan: 5,
122 rowspan: 7,
123123 bodyBorder: false,
124124 border: false,
125125 frame: false
143143 xtype: 'button',
144144 layout: 'fit',
145145 width: 70,
146 text: _("Dim down"),
147 handler: function() {
148 dSS.util.callScene(config.dsid, dSS.config.scenes.DEC);
149 }
150 },
151 {
152 xtype: 'panel',
153 colspan: 2,
154 width: 140,
155 html: '',
156 bodyBorder: false,
157 border: false,
158 frame: false
159 },
160
161 {
162 xtype: 'button',
163 layout: 'fit',
164 width: 70,
165 text: _("Dim up"),
166 handler: function() {
167 dSS.util.callScene(config.dsid, dSS.config.scenes.INC);
168 }
169 },
170 {
171 xtype: 'panel',
172 bodyCfg: {
173 cls: 'x-window-body'
174 },
175 html: '',
176 height: 20,
177 colspan: 4,
178 bodyBorder: false,
179 border: false,
180 frame: false
181 },
182 {
183 xtype: 'button',
184 layout: 'fit',
185 width: 70,
146186 text: _("Scene") + " 1",
147187 handler: function() {
148188 dSS.util.callScene(config.dsid, dSS.config.scenes.T0_S1);
221221 cls: 'x-window-body'
222222 },
223223 html: '',
224 height: 15,
225 colspan: 6,
224 height: 5,
225 colspan: 4,
226226 bodyBorder: false,
227227 border: false,
228228 frame: false
229 },
230 {
231 xtype: 'button',
232 layout: 'fit',
233 width: 70,
234 text: _("Scene") + " 0",
235 handler: function() {
236 dSS.util.callScene(config.dsid, dSS.config.scenes.T0_S0);
237 }
229238 },
230239 {
231240 xtype: 'panel',