VulpesOS/gaia/apps/keyboard/js/settings/general_settings_view.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

49 lines
1.4 KiB
JavaScript
Executable file

'use strict';
/* global SettingsView, BaseView,
SoundFeedbackSettings, VibrationFeedbackSettings, IMEngineSettings */
(function(exports) {
var GeneralSettingsGroupView = function GeneralSettingsGroupView(app) {
BaseView.apply(this);
this.app = app;
};
GeneralSettingsGroupView.prototype = Object.create(BaseView.prototype);
GeneralSettingsGroupView.prototype.CONTAINER_ID = 'general-settings';
GeneralSettingsGroupView.prototype.start = function() {
BaseView.prototype.start.call(this);
this.childViews.soundFeedbackSettings =
new SettingsView(this.app, this.container, SoundFeedbackSettings);
this.childViews.soundFeedbackSettings.start();
this.childViews.vibrationFeedbackSettings =
new SettingsView(this.app, this.container, VibrationFeedbackSettings);
this.childViews.vibrationFeedbackSettings.start();
this.childViews.imEngineSettings =
new SettingsView(this.app, this.container, IMEngineSettings);
this.childViews.imEngineSettings.start();
};
GeneralSettingsGroupView.prototype.stop = function() {
BaseView.prototype.stop.call(this);
this.childViews.soundFeedbackSettings.stop();
delete this.childViews.soundFeedbackSettings;
this.childViews.vibrationFeedbackSettings.stop();
delete this.childViews.vibrationFeedbackSettings;
this.childViews.imEngineSettings.stop();
delete this.childViews.imEngineSettings;
};
exports.GeneralSettingsGroupView = GeneralSettingsGroupView;
})(window);