[DE][PE] Remove hieroglyphs settings
This commit is contained in:
parent
8a5e21bc46
commit
a0b6f03c71
|
@ -435,10 +435,6 @@ define([
|
||||||
applySettings: function(menu) {
|
applySettings: function(menu) {
|
||||||
var value;
|
var value;
|
||||||
|
|
||||||
value = Common.localStorage.getBool("de-settings-inputmode");
|
|
||||||
Common.Utils.InternalSettings.set("de-settings-inputmode", value);
|
|
||||||
this.api.SetTextBoxInputMode(value);
|
|
||||||
|
|
||||||
var fast_coauth = Common.Utils.InternalSettings.get("de-settings-coauthmode");
|
var fast_coauth = Common.Utils.InternalSettings.get("de-settings-coauthmode");
|
||||||
/** coauthoring begin **/
|
/** coauthoring begin **/
|
||||||
if (this.mode.isEdit && !this.mode.isOffline && this.mode.canCoAuthoring ) {
|
if (this.mode.isEdit && !this.mode.isOffline && this.mode.canCoAuthoring ) {
|
||||||
|
|
|
@ -1224,10 +1224,6 @@ define([
|
||||||
appHeader.setDocumentCaption(me.api.asc_getDocumentName());
|
appHeader.setDocumentCaption(me.api.asc_getDocumentName());
|
||||||
me.updateWindowTitle(true);
|
me.updateWindowTitle(true);
|
||||||
|
|
||||||
value = Common.localStorage.getBool("de-settings-inputmode");
|
|
||||||
Common.Utils.InternalSettings.set("de-settings-inputmode", value);
|
|
||||||
me.api.SetTextBoxInputMode(value);
|
|
||||||
|
|
||||||
value = Common.localStorage.getBool("de-settings-show-alt-hints", Common.Utils.isMac ? false : true);
|
value = Common.localStorage.getBool("de-settings-show-alt-hints", Common.Utils.isMac ? false : true);
|
||||||
Common.Utils.InternalSettings.set("de-settings-show-alt-hints", value);
|
Common.Utils.InternalSettings.set("de-settings-show-alt-hints", value);
|
||||||
|
|
||||||
|
|
|
@ -338,9 +338,6 @@ define([
|
||||||
'<tr class="edit">',
|
'<tr class="edit">',
|
||||||
'<td colspan="2"><span id="fms-chb-align-guides"></span></td>',
|
'<td colspan="2"><span id="fms-chb-align-guides"></span></td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
'<tr class="edit">',
|
|
||||||
'<td colspan="2"><div id="fms-chb-input-mode"></div></td>',
|
|
||||||
'</tr>',
|
|
||||||
'<tr>',
|
'<tr>',
|
||||||
'<td colspan="2"><div id="fms-chb-use-alt-key"></div></td>',
|
'<td colspan="2"><div id="fms-chb-use-alt-key"></div></td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
|
@ -395,14 +392,6 @@ define([
|
||||||
var me = this;
|
var me = this;
|
||||||
var $markup = $(this.template({scope: this}));
|
var $markup = $(this.template({scope: this}));
|
||||||
|
|
||||||
this.chInputMode = new Common.UI.CheckBox({
|
|
||||||
el: $markup.findById('#fms-chb-input-mode'),
|
|
||||||
labelText: this.txtHieroglyphs,
|
|
||||||
dataHint: '2',
|
|
||||||
dataHintDirection: 'left',
|
|
||||||
dataHintOffset: 'small'
|
|
||||||
});
|
|
||||||
|
|
||||||
this.chUseAltKey = new Common.UI.CheckBox({
|
this.chUseAltKey = new Common.UI.CheckBox({
|
||||||
el: $markup.findById('#fms-chb-use-alt-key'),
|
el: $markup.findById('#fms-chb-use-alt-key'),
|
||||||
labelText: Common.Utils.isMac ? this.txtUseOptionKey : this.txtUseAltKey,
|
labelText: Common.Utils.isMac ? this.txtUseOptionKey : this.txtUseAltKey,
|
||||||
|
@ -788,8 +777,6 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
updateSettings: function() {
|
updateSettings: function() {
|
||||||
this.chInputMode.setValue(Common.Utils.InternalSettings.get("de-settings-inputmode"));
|
|
||||||
|
|
||||||
this.chUseAltKey.setValue(Common.Utils.InternalSettings.get("de-settings-show-alt-hints"));
|
this.chUseAltKey.setValue(Common.Utils.InternalSettings.get("de-settings-show-alt-hints"));
|
||||||
|
|
||||||
var value = Common.Utils.InternalSettings.get("de-settings-zoom");
|
var value = Common.Utils.InternalSettings.get("de-settings-zoom");
|
||||||
|
@ -873,7 +860,6 @@ define([
|
||||||
Common.UI.Themes.setTheme(this.cmbTheme.getValue());
|
Common.UI.Themes.setTheme(this.cmbTheme.getValue());
|
||||||
if (!this.chDarkMode.isDisabled() && (this.chDarkMode.isChecked() !== Common.UI.Themes.isContentThemeDark()))
|
if (!this.chDarkMode.isDisabled() && (this.chDarkMode.isChecked() !== Common.UI.Themes.isContentThemeDark()))
|
||||||
Common.UI.Themes.toggleContentTheme();
|
Common.UI.Themes.toggleContentTheme();
|
||||||
Common.localStorage.setItem("de-settings-inputmode", this.chInputMode.isChecked() ? 1 : 0);
|
|
||||||
Common.localStorage.setItem("de-settings-show-alt-hints", this.chUseAltKey.isChecked() ? 1 : 0);
|
Common.localStorage.setItem("de-settings-show-alt-hints", this.chUseAltKey.isChecked() ? 1 : 0);
|
||||||
Common.Utils.InternalSettings.set("de-settings-show-alt-hints", Common.localStorage.getBool("de-settings-show-alt-hints"));
|
Common.Utils.InternalSettings.set("de-settings-show-alt-hints", Common.localStorage.getBool("de-settings-show-alt-hints"));
|
||||||
Common.localStorage.setItem("de-settings-zoom", this.cmbZoom.getValue());
|
Common.localStorage.setItem("de-settings-zoom", this.cmbZoom.getValue());
|
||||||
|
|
|
@ -256,8 +256,6 @@ class MainController extends Component {
|
||||||
|
|
||||||
this.updateWindowTitle(true);
|
this.updateWindowTitle(true);
|
||||||
|
|
||||||
this.api.SetTextBoxInputMode(LocalStorage.getBool("de-settings-inputmode"));
|
|
||||||
|
|
||||||
value = LocalStorage.getBool("de-mobile-no-characters");
|
value = LocalStorage.getBool("de-mobile-no-characters");
|
||||||
appSettings.changeNoCharacters(value);
|
appSettings.changeNoCharacters(value);
|
||||||
this.api.put_ShowParaMarks(value);
|
this.api.put_ShowParaMarks(value);
|
||||||
|
|
|
@ -333,10 +333,6 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
applySettings: function(menu) {
|
applySettings: function(menu) {
|
||||||
var value = Common.localStorage.getBool("pe-settings-inputmode");
|
|
||||||
Common.Utils.InternalSettings.set("pe-settings-inputmode", value);
|
|
||||||
this.api.SetTextBoxInputMode(value);
|
|
||||||
|
|
||||||
var fast_coauth = Common.Utils.InternalSettings.get("pe-settings-coauthmode");
|
var fast_coauth = Common.Utils.InternalSettings.get("pe-settings-coauthmode");
|
||||||
/** coauthoring begin **/
|
/** coauthoring begin **/
|
||||||
if (this.mode.isEdit && !this.mode.isOffline && this.mode.canCoAuthoring) {
|
if (this.mode.isEdit && !this.mode.isOffline && this.mode.canCoAuthoring) {
|
||||||
|
@ -352,7 +348,7 @@ define([
|
||||||
}
|
}
|
||||||
/** coauthoring end **/
|
/** coauthoring end **/
|
||||||
|
|
||||||
value = Common.localStorage.getBool("pe-settings-cachemode", true);
|
var value = Common.localStorage.getBool("pe-settings-cachemode", true);
|
||||||
Common.Utils.InternalSettings.set("pe-settings-cachemode", value);
|
Common.Utils.InternalSettings.set("pe-settings-cachemode", value);
|
||||||
this.api.asc_setDefaultBlitMode(value);
|
this.api.asc_setDefaultBlitMode(value);
|
||||||
|
|
||||||
|
|
|
@ -849,10 +849,6 @@ define([
|
||||||
appHeader.setDocumentCaption( me.api.asc_getDocumentName() );
|
appHeader.setDocumentCaption( me.api.asc_getDocumentName() );
|
||||||
me.updateWindowTitle(true);
|
me.updateWindowTitle(true);
|
||||||
|
|
||||||
value = Common.localStorage.getBool("pe-settings-inputmode");
|
|
||||||
Common.Utils.InternalSettings.set("pe-settings-inputmode", value);
|
|
||||||
me.api.SetTextBoxInputMode(value);
|
|
||||||
|
|
||||||
value = Common.localStorage.getBool("pe-settings-show-alt-hints", Common.Utils.isMac ? false : true);
|
value = Common.localStorage.getBool("pe-settings-show-alt-hints", Common.Utils.isMac ? false : true);
|
||||||
Common.Utils.InternalSettings.set("pe-settings-show-alt-hints", value);
|
Common.Utils.InternalSettings.set("pe-settings-show-alt-hints", value);
|
||||||
|
|
||||||
|
|
|
@ -263,9 +263,6 @@ define([
|
||||||
'<tr class="edit">',
|
'<tr class="edit">',
|
||||||
'<td colspan="2"><span id="fms-chb-align-guides"></span></td>',
|
'<td colspan="2"><span id="fms-chb-align-guides"></span></td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
'<tr class="edit">',
|
|
||||||
'<td colspan="2"><div id="fms-chb-input-mode"></div></td>',
|
|
||||||
'</tr>',
|
|
||||||
'<tr>',
|
'<tr>',
|
||||||
'<td colspan="2"><div id="fms-chb-use-alt-key"></div></td>',
|
'<td colspan="2"><div id="fms-chb-use-alt-key"></div></td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
|
@ -344,14 +341,6 @@ define([
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
|
|
||||||
this.chInputMode = new Common.UI.CheckBox({
|
|
||||||
el: $markup.findById('#fms-chb-input-mode'),
|
|
||||||
labelText: this.txtHieroglyphs,
|
|
||||||
dataHint: '2',
|
|
||||||
dataHintDirection: 'left',
|
|
||||||
dataHintOffset: 'small'
|
|
||||||
});
|
|
||||||
|
|
||||||
this.chUseAltKey = new Common.UI.CheckBox({
|
this.chUseAltKey = new Common.UI.CheckBox({
|
||||||
el: $markup.findById('#fms-chb-use-alt-key'),
|
el: $markup.findById('#fms-chb-use-alt-key'),
|
||||||
labelText: Common.Utils.isMac ? this.txtUseOptionKey : this.txtUseAltKey,
|
labelText: Common.Utils.isMac ? this.txtUseOptionKey : this.txtUseAltKey,
|
||||||
|
@ -625,8 +614,6 @@ define([
|
||||||
this.chIgnoreNumbers.setValue(Common.Utils.InternalSettings.get("pe-spellcheck-ignore-numbers-words"));
|
this.chIgnoreNumbers.setValue(Common.Utils.InternalSettings.get("pe-spellcheck-ignore-numbers-words"));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.chInputMode.setValue(Common.Utils.InternalSettings.get("pe-settings-inputmode"));
|
|
||||||
|
|
||||||
this.chUseAltKey.setValue(Common.Utils.InternalSettings.get("pe-settings-show-alt-hints"));
|
this.chUseAltKey.setValue(Common.Utils.InternalSettings.get("pe-settings-show-alt-hints"));
|
||||||
|
|
||||||
var value = Common.Utils.InternalSettings.get("pe-settings-zoom");
|
var value = Common.Utils.InternalSettings.get("pe-settings-zoom");
|
||||||
|
@ -690,7 +677,6 @@ define([
|
||||||
Common.localStorage.setBool("pe-spellcheck-ignore-uppercase-words", this.chIgnoreUppercase.isChecked());
|
Common.localStorage.setBool("pe-spellcheck-ignore-uppercase-words", this.chIgnoreUppercase.isChecked());
|
||||||
Common.localStorage.setBool("pe-spellcheck-ignore-numbers-words", this.chIgnoreNumbers.isChecked());
|
Common.localStorage.setBool("pe-spellcheck-ignore-numbers-words", this.chIgnoreNumbers.isChecked());
|
||||||
}
|
}
|
||||||
Common.localStorage.setItem("pe-settings-inputmode", this.chInputMode.isChecked() ? 1 : 0);
|
|
||||||
Common.localStorage.setItem("pe-settings-show-alt-hints", this.chUseAltKey.isChecked() ? 1 : 0);
|
Common.localStorage.setItem("pe-settings-show-alt-hints", this.chUseAltKey.isChecked() ? 1 : 0);
|
||||||
Common.Utils.InternalSettings.set("pe-settings-show-alt-hints", Common.localStorage.getBool("pe-settings-show-alt-hints"));
|
Common.Utils.InternalSettings.set("pe-settings-show-alt-hints", Common.localStorage.getBool("pe-settings-show-alt-hints"));
|
||||||
Common.localStorage.setItem("pe-settings-zoom", this.cmbZoom.getValue());
|
Common.localStorage.setItem("pe-settings-zoom", this.cmbZoom.getValue());
|
||||||
|
|
|
@ -481,8 +481,6 @@ class MainController extends Component {
|
||||||
|
|
||||||
this.updateWindowTitle(true);
|
this.updateWindowTitle(true);
|
||||||
|
|
||||||
this.api.SetTextBoxInputMode(LocalStorage.getBool("pe-settings-inputmode"));
|
|
||||||
|
|
||||||
if (appOptions.isEdit && this.needToUpdateVersion) {
|
if (appOptions.isEdit && this.needToUpdateVersion) {
|
||||||
Common.Notifications.trigger('api:disconnect');
|
Common.Notifications.trigger('api:disconnect');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue