[PE] Move ListSettingsDialog to common
This commit is contained in:
parent
c3022dd826
commit
ce0b312049
|
@ -39,14 +39,17 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (Common === undefined)
|
||||||
|
var Common = {};
|
||||||
|
|
||||||
define([
|
define([
|
||||||
'common/main/lib/component/Window',
|
'../component/Window',
|
||||||
'common/main/lib/component/MetricSpinner',
|
'common/main/lib/component/MetricSpinner',
|
||||||
'common/main/lib/component/ThemeColorPalette',
|
'common/main/lib/component/ThemeColorPalette',
|
||||||
'common/main/lib/component/ColorButton'
|
'common/main/lib/component/ColorButton'
|
||||||
], function () { 'use strict';
|
], function () { 'use strict';
|
||||||
|
|
||||||
PE.Views.ListSettingsDialog = Common.UI.Window.extend(_.extend({
|
Common.Views.ListSettingsDialog = Common.UI.Window.extend(_.extend({
|
||||||
options: {
|
options: {
|
||||||
type: 0, // 0 - markers, 1 - numbers
|
type: 0, // 0 - markers, 1 - numbers
|
||||||
width: 230,
|
width: 230,
|
||||||
|
@ -235,5 +238,5 @@ define([
|
||||||
txtOfText: '% of text',
|
txtOfText: '% of text',
|
||||||
textNewColor: 'Add New Custom Color',
|
textNewColor: 'Add New Custom Color',
|
||||||
txtStart: 'Start at'
|
txtStart: 'Start at'
|
||||||
}, PE.Views.ListSettingsDialog || {}))
|
}, Common.Views.ListSettingsDialog || {}))
|
||||||
});
|
});
|
|
@ -48,6 +48,7 @@ define([
|
||||||
'common/main/lib/view/ImageFromUrlDialog',
|
'common/main/lib/view/ImageFromUrlDialog',
|
||||||
'common/main/lib/view/InsertTableDialog',
|
'common/main/lib/view/InsertTableDialog',
|
||||||
'common/main/lib/view/SelectFileDlg',
|
'common/main/lib/view/SelectFileDlg',
|
||||||
|
'common/main/lib/view/ListSettingsDialog',
|
||||||
'common/main/lib/util/define',
|
'common/main/lib/util/define',
|
||||||
'presentationeditor/main/app/collection/SlideThemes',
|
'presentationeditor/main/app/collection/SlideThemes',
|
||||||
'presentationeditor/main/app/view/Toolbar',
|
'presentationeditor/main/app/view/Toolbar',
|
||||||
|
@ -55,8 +56,7 @@ define([
|
||||||
'presentationeditor/main/app/view/HeaderFooterDialog',
|
'presentationeditor/main/app/view/HeaderFooterDialog',
|
||||||
'presentationeditor/main/app/view/HyperlinkSettingsDialog',
|
'presentationeditor/main/app/view/HyperlinkSettingsDialog',
|
||||||
'presentationeditor/main/app/view/SlideSizeSettings',
|
'presentationeditor/main/app/view/SlideSizeSettings',
|
||||||
'presentationeditor/main/app/view/SlideshowSettings',
|
'presentationeditor/main/app/view/SlideshowSettings'
|
||||||
'presentationeditor/main/app/view/ListSettingsDialog'
|
|
||||||
], function () { 'use strict';
|
], function () { 'use strict';
|
||||||
|
|
||||||
PE.Controllers.Toolbar = Backbone.Controller.extend(_.extend({
|
PE.Controllers.Toolbar = Backbone.Controller.extend(_.extend({
|
||||||
|
@ -1111,7 +1111,7 @@ define([
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (props) {
|
if (props) {
|
||||||
(new PE.Views.ListSettingsDialog({
|
(new Common.Views.ListSettingsDialog({
|
||||||
props: props,
|
props: props,
|
||||||
type: type,
|
type: type,
|
||||||
handler: function(result, value) {
|
handler: function(result, value) {
|
||||||
|
|
|
@ -108,6 +108,12 @@
|
||||||
"Common.Views.InsertTableDialog.txtTitle": "Table Size",
|
"Common.Views.InsertTableDialog.txtTitle": "Table Size",
|
||||||
"Common.Views.InsertTableDialog.txtTitleSplit": "Split Cell",
|
"Common.Views.InsertTableDialog.txtTitleSplit": "Split Cell",
|
||||||
"Common.Views.LanguageDialog.labelSelect": "Select document language",
|
"Common.Views.LanguageDialog.labelSelect": "Select document language",
|
||||||
|
"Common.Views.ListSettingsDialog.textNewColor": "Add New Custom Color",
|
||||||
|
"Common.Views.ListSettingsDialog.txtColor": "Color",
|
||||||
|
"Common.Views.ListSettingsDialog.txtOfText": "% of text",
|
||||||
|
"Common.Views.ListSettingsDialog.txtSize": "Size",
|
||||||
|
"Common.Views.ListSettingsDialog.txtStart": "Start at",
|
||||||
|
"Common.Views.ListSettingsDialog.txtTitle": "List Settings",
|
||||||
"Common.Views.OpenDialog.closeButtonText": "Close File",
|
"Common.Views.OpenDialog.closeButtonText": "Close File",
|
||||||
"Common.Views.OpenDialog.txtEncoding": "Encoding ",
|
"Common.Views.OpenDialog.txtEncoding": "Encoding ",
|
||||||
"Common.Views.OpenDialog.txtIncorrectPwd": "Password is incorrect.",
|
"Common.Views.OpenDialog.txtIncorrectPwd": "Password is incorrect.",
|
||||||
|
@ -1286,12 +1292,6 @@
|
||||||
"PE.Views.LeftMenu.tipTitles": "Titles",
|
"PE.Views.LeftMenu.tipTitles": "Titles",
|
||||||
"PE.Views.LeftMenu.txtDeveloper": "DEVELOPER MODE",
|
"PE.Views.LeftMenu.txtDeveloper": "DEVELOPER MODE",
|
||||||
"PE.Views.LeftMenu.txtTrial": "TRIAL MODE",
|
"PE.Views.LeftMenu.txtTrial": "TRIAL MODE",
|
||||||
"PE.Views.ListSettingsDialog.textNewColor": "Add New Custom Color",
|
|
||||||
"PE.Views.ListSettingsDialog.txtColor": "Color",
|
|
||||||
"PE.Views.ListSettingsDialog.txtOfText": "% of text",
|
|
||||||
"PE.Views.ListSettingsDialog.txtSize": "Size",
|
|
||||||
"PE.Views.ListSettingsDialog.txtStart": "Start at",
|
|
||||||
"PE.Views.ListSettingsDialog.txtTitle": "List Settings",
|
|
||||||
"PE.Views.ParagraphSettings.strLineHeight": "Line Spacing",
|
"PE.Views.ParagraphSettings.strLineHeight": "Line Spacing",
|
||||||
"PE.Views.ParagraphSettings.strParagraphSpacing": "Paragraph Spacing",
|
"PE.Views.ParagraphSettings.strParagraphSpacing": "Paragraph Spacing",
|
||||||
"PE.Views.ParagraphSettings.strSpacingAfter": "After",
|
"PE.Views.ParagraphSettings.strSpacingAfter": "After",
|
||||||
|
|
|
@ -108,6 +108,11 @@
|
||||||
"Common.Views.InsertTableDialog.txtTitle": "Размер таблицы",
|
"Common.Views.InsertTableDialog.txtTitle": "Размер таблицы",
|
||||||
"Common.Views.InsertTableDialog.txtTitleSplit": "Разделить ячейку",
|
"Common.Views.InsertTableDialog.txtTitleSplit": "Разделить ячейку",
|
||||||
"Common.Views.LanguageDialog.labelSelect": "Выбрать язык документа",
|
"Common.Views.LanguageDialog.labelSelect": "Выбрать язык документа",
|
||||||
|
"Common.Views.ListSettingsDialog.textNewColor": "Пользовательский цвет",
|
||||||
|
"Common.Views.ListSettingsDialog.txtColor": "Цвет",
|
||||||
|
"Common.Views.ListSettingsDialog.txtOfText": "% текста",
|
||||||
|
"Common.Views.ListSettingsDialog.txtSize": "Размер",
|
||||||
|
"Common.Views.ListSettingsDialog.txtTitle": "Параметры списка",
|
||||||
"Common.Views.OpenDialog.closeButtonText": "Закрыть файл",
|
"Common.Views.OpenDialog.closeButtonText": "Закрыть файл",
|
||||||
"Common.Views.OpenDialog.txtEncoding": "Кодировка",
|
"Common.Views.OpenDialog.txtEncoding": "Кодировка",
|
||||||
"Common.Views.OpenDialog.txtIncorrectPwd": "Указан неверный пароль.",
|
"Common.Views.OpenDialog.txtIncorrectPwd": "Указан неверный пароль.",
|
||||||
|
@ -1285,11 +1290,6 @@
|
||||||
"PE.Views.LeftMenu.tipTitles": "Заголовки",
|
"PE.Views.LeftMenu.tipTitles": "Заголовки",
|
||||||
"PE.Views.LeftMenu.txtDeveloper": "РЕЖИМ РАЗРАБОТЧИКА",
|
"PE.Views.LeftMenu.txtDeveloper": "РЕЖИМ РАЗРАБОТЧИКА",
|
||||||
"PE.Views.LeftMenu.txtTrial": "ПРОБНЫЙ РЕЖИМ",
|
"PE.Views.LeftMenu.txtTrial": "ПРОБНЫЙ РЕЖИМ",
|
||||||
"PE.Views.ListSettingsDialog.textNewColor": "Пользовательский цвет",
|
|
||||||
"PE.Views.ListSettingsDialog.txtColor": "Цвет",
|
|
||||||
"PE.Views.ListSettingsDialog.txtOfText": "% текста",
|
|
||||||
"PE.Views.ListSettingsDialog.txtSize": "Размер",
|
|
||||||
"PE.Views.ListSettingsDialog.txtTitle": "Параметры списка",
|
|
||||||
"PE.Views.ParagraphSettings.strLineHeight": "Междустрочный интервал",
|
"PE.Views.ParagraphSettings.strLineHeight": "Междустрочный интервал",
|
||||||
"PE.Views.ParagraphSettings.strParagraphSpacing": "Интервал между абзацами",
|
"PE.Views.ParagraphSettings.strParagraphSpacing": "Интервал между абзацами",
|
||||||
"PE.Views.ParagraphSettings.strSpacingAfter": "После",
|
"PE.Views.ParagraphSettings.strSpacingAfter": "После",
|
||||||
|
|
Loading…
Reference in a new issue