/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */ 'use strict'; (function (module) { var _ = require('../External/underscore.js'), Enums = require('../Common/Enums.js'), Utils = require('../Common/Utils.js'), Globals = require('../Common/Globals.js'), AbstractSettings = require('./AbstractSettings.js') ; /** * @constructor * @extends AbstractSettings */ function SettingsScreen() { var RL = require('../Boots/RainLoopApp.js'), SettingsSystemDropDownViewModel = require('../ViewModels/SettingsSystemDropDownViewModel.js'), SettingsMenuViewModel = require('../ViewModels/SettingsMenuViewModel.js'), SettingsPaneViewModel = require('../ViewModels/SettingsPaneViewModel.js') ; AbstractSettings.call(this, [ SettingsSystemDropDownViewModel, SettingsMenuViewModel, SettingsPaneViewModel ]); Utils.initOnStartOrLangChange(function () { this.sSettingsTitle = Utils.i18n('TITLES/SETTINGS'); }, this, function () { RL.setTitle(this.sSettingsTitle); }); } _.extend(SettingsScreen.prototype, AbstractSettings.prototype); SettingsScreen.prototype.onShow = function () { var RL = require('../Boots/RainLoopApp.js'); RL.setTitle(this.sSettingsTitle); Globals.keyScope(Enums.KeyState.Settings); }; module.exports = SettingsScreen; }(module));