<commit_before>/*!
Cloud4all Preferences Management Tools

Copyright 2013 OCAD University
Copyright 2013 CERTH/HIT

Licensed under the New BSD license. You may not use this file except in
compliance with this License.

You may obtain a copy of the License at
https://github.com/GPII/prefsEditors/LICENSE.txt
*/

/*global fluid, jQuery, gpii*/
/*jslint white: true, onevar: true, funcinvoke: true, forvar: true, undef: true, newcap: true, nomen: true, regexp: true, plusplus: true, bitwise: true, maxerr: 50, indent: 4 */

(function ($, fluid) {

    fluid.defaults("gpii.panel.increaseSizePMT", {
        gradeNames: ["gpii.panel.increaseSizePCP", "autoInit"],
        events: {
            onShowMagnifierExtraAdjusters: null,
            onHideMagnifierExtraAdjusters: null
        },
        listeners: {
            "afterRender.bindEventPreferenceSwitchMagnifierExtra": {
                "this": "{that}.dom.preferenceSwitchMagnifierExtra",
                "method": "change",
                "args": ["{that}.toggleMagnifierExtraAdjustersInstant"]
            },
            "onShowMagnifierExtraAdjusters.show": {
                "this": "{that}.dom.magnifierExtraAdjusters",
                "method": "slideDown",
                "args": ["{arguments}.0"]
            },
            "onHideMagnifierExtraAdjusters.hide": {
                "this": "{that}.dom.magnifierExtraAdjusters",
                "method": "slideUp",
                "args": ["{arguments}.0"]
            },
            "onShowMagnifierExtraAdjusters.setLessText": {
                "this": "{that}.dom.magnifierMoreLess",
                "method": "text",
                "args": ["{that}.stringBundle.less"]
            },
            "onHideMagnifierExtraAdjusters.setMoreText": {
                "this": "{that}.dom.magnifierMoreLess",
                "method": "text",
                "args": ["{that}.stringBundle.more"]
            },
            "afterRender.restoreMagnifierExtraAdjusters": {
                listener: "{that}.toggleMagnifierExtraAdjustersInstant"
            }
        },
        invokers: {
            toggleMagnifierExtraAdjustersInstant: {
                "funcName": "gpii.panel.increaseSizePMT.toggleMagnifierExtraAdjusters",
                "args": [
                    "{that}.model.magnifierExtraAdjustersEnabledSwitch",
                    "{that}.events.onShowMagnifierExtraAdjusters.fire",
                    "{that}.events.onHideMagnifierExtraAdjusters.fire",
                    0
                ],
                dynamic: true
            },
            toggleMagnifierExtraAdjusters: {
                "funcName": "gpii.panel.increaseSizePMT.toggleMagnifierExtraAdjusters",
                "args": [
                    "{that}.model.magnifierExtraAdjustersEnabledSwitch",
                    "{that}.events.onShowMagnifierExtraAdjusters.fire",
                    "{that}.events.onHideMagnifierExtraAdjusters.fire"
                ],
                dynamic: true
            }
        },
        model: {
            magnifierExtraAdjustersEnabledSwitch: false
        },
        selectors: {
            magnifierExtraAdjusters: ".gpiic-magnifier-hidden",
            // This is in a sub-panel. Is that bad?
            preferenceSwitchMagnifierExtra: ".gpiic-magnifier-preferenceSwitchExtra",
            magnifierMoreLess: ".gpiic-magnifier-moreLess"
        },
        selectorsToIgnore: ["magnifierExtraAdjusters"],
        protoTree: {
            // duplicate entries in protoTree; it does not merge.<commit_msg>GPII-365: Removed comment that does not apply anymore.<commit_after>/*!
Cloud4all Preferences Management Tools

Copyright 2013 OCAD University
Copyright 2013 CERTH/HIT

Licensed under the New BSD license. You may not use this file except in
compliance with this License.

You may obtain a copy of the License at
https://github.com/GPII/prefsEditors/LICENSE.txt
*/

/*global fluid, jQuery, gpii*/
/*jslint white: true, onevar: true, funcinvoke: true, forvar: true, undef: true, newcap: true, nomen: true, regexp: true, plusplus: true, bitwise: true, maxerr: 50, indent: 4 */

(function ($, fluid) {

    fluid.defaults("gpii.panel.increaseSizePMT", {
        gradeNames: ["gpii.panel.increaseSizePCP", "autoInit"],
        events: {
            onShowMagnifierExtraAdjusters: null,
            onHideMagnifierExtraAdjusters: null
        },
        listeners: {
            "afterRender.bindEventPreferenceSwitchMagnifierExtra": {
                "this": "{that}.dom.preferenceSwitchMagnifierExtra",
                "method": "change",
                "args": ["{that}.toggleMagnifierExtraAdjustersInstant"]
            },
            "onShowMagnifierExtraAdjusters.show": {
                "this": "{that}.dom.magnifierExtraAdjusters",
                "method": "slideDown",
                "args": ["{arguments}.0"]
            },
            "onHideMagnifierExtraAdjusters.hide": {
                "this": "{that}.dom.magnifierExtraAdjusters",
                "method": "slideUp",
                "args": ["{arguments}.0"]
            },
            "onShowMagnifierExtraAdjusters.setLessText": {
                "this": "{that}.dom.magnifierMoreLess",
                "method": "text",
                "args": ["{that}.stringBundle.less"]
            },
            "onHideMagnifierExtraAdjusters.setMoreText": {
                "this": "{that}.dom.magnifierMoreLess",
                "method": "text",
                "args": ["{that}.stringBundle.more"]
            },
            "afterRender.restoreMagnifierExtraAdjusters": {
                listener: "{that}.toggleMagnifierExtraAdjustersInstant"
            }
        },
        invokers: {
            toggleMagnifierExtraAdjustersInstant: {
                "funcName": "gpii.panel.increaseSizePMT.toggleMagnifierExtraAdjusters",
                "args": [
                    "{that}.model.magnifierExtraAdjustersEnabledSwitch",
                    "{that}.events.onShowMagnifierExtraAdjusters.fire",
                    "{that}.events.onHideMagnifierExtraAdjusters.fire",
                    0
                ],
                dynamic: true
            },
            toggleMagnifierExtraAdjusters: {
                "funcName": "gpii.panel.increaseSizePMT.toggleMagnifierExtraAdjusters",
                "args": [
                    "{that}.model.magnifierExtraAdjustersEnabledSwitch",
                    "{that}.events.onShowMagnifierExtraAdjusters.fire",
                    "{that}.events.onHideMagnifierExtraAdjusters.fire"
                ],
                dynamic: true
            }
        },
        model: {
            magnifierExtraAdjustersEnabledSwitch: false
        },
        selectors: {
            magnifierExtraAdjusters: ".gpiic-magnifier-hidden",
            preferenceSwitchMagnifierExtra: ".gpiic-magnifier-preferenceSwitchExtra",
            magnifierMoreLess: ".gpiic-magnifier-moreLess"
        },
        selectorsToIgnore: ["magnifierExtraAdjusters"],
        protoTree: {
            // duplicate entries in protoTree; it does not merge.
{'fraction_non_alphanumeric': 0.11294649159960468, 'fraction_numerical': 0.004659042778483694, 'mean_word_length': 1.935764608371322, 'pattern_counts': {'":': 50, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2223674', 'n_tokens_mistral': 1997, 'n_tokens_neox': 1848, 'n_words': 334}