/**
 *    Copyright 2006 - 2011 Opera Software ASA
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 *
 **/


var cls = window.cls || ( window.cls = {} );

cls.RuntimesView = function(id, name, container_class)
{
  this.init(id, name, container_class);
}
cls.RuntimesView.prototype = ViewBase;
new cls.RuntimesView('runtimes', ui_strings.M_VIEW_LABEL_SCRIPTS, 'scroll runtimes');

// settings are bound to a view, currently
new Settings
(
  // id
  'runtimes', 
  // kel-value map
  {
    'selected-window': '',
    'reload-runtime-automatically': false
  }, 
  // key-label map
  {
    'reload-runtime-automatically': ui_strings.S_SWITCH_RELOAD_SCRIPTS_AUTOMATICALLY
  },
  // settings map
  {
    checkboxes:
    [
      'reload-runtime-automatically'
    ]
  },
  null,
  "script"
);
