Commit bab0bfc3 authored by Maxim Kadushkin's avatar Maxim Kadushkin

hints moved in delayed load

parent b4cc1401
...@@ -101,80 +101,70 @@ define([ ...@@ -101,80 +101,70 @@ define([
this.btnNewDocument = new Common.UI.Button({ this.btnNewDocument = new Common.UI.Button({
id : 'id-toolbar-btn-newdocument', id : 'id-toolbar-btn-newdocument',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-newdocument', iconCls : 'btn-newdocument'
hint : this.tipNewDocument
}); });
this.toolbarControls.push(this.btnNewDocument); this.toolbarControls.push(this.btnNewDocument);
this.btnOpenDocument = new Common.UI.Button({ this.btnOpenDocument = new Common.UI.Button({
id : 'id-toolbar-btn-opendocument', id : 'id-toolbar-btn-opendocument',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-opendocument', iconCls : 'btn-opendocument'
hint : this.tipOpenDocument
}); });
this.toolbarControls.push(this.btnOpenDocument); this.toolbarControls.push(this.btnOpenDocument);
this.btnPrint = new Common.UI.Button({ this.btnPrint = new Common.UI.Button({
id : 'id-toolbar-btn-print', id : 'id-toolbar-btn-print',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-print no-mask', iconCls : 'btn-print no-mask'
hint : this.tipPrint + Common.Utils.String.platformKey('Ctrl+P')
}); });
this.toolbarControls.push(this.btnPrint); this.toolbarControls.push(this.btnPrint);
this.btnSave = new Common.UI.Button({ this.btnSave = new Common.UI.Button({
id : 'id-toolbar-btn-save', id : 'id-toolbar-btn-save',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'no-mask ' + this.btnSaveCls, iconCls : 'no-mask ' + this.btnSaveCls
hint : this.btnSaveTip
}); });
this.toolbarControls.push(this.btnSave); this.toolbarControls.push(this.btnSave);
this.btnUndo = new Common.UI.Button({ this.btnUndo = new Common.UI.Button({
id : 'id-toolbar-btn-undo', id : 'id-toolbar-btn-undo',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-undo', iconCls : 'btn-undo'
hint : this.tipUndo + Common.Utils.String.platformKey('Ctrl+Z')
}); });
this.toolbarControls.push(this.btnUndo); this.toolbarControls.push(this.btnUndo);
this.btnRedo = new Common.UI.Button({ this.btnRedo = new Common.UI.Button({
id : 'id-toolbar-btn-redo', id : 'id-toolbar-btn-redo',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-redo', iconCls : 'btn-redo'
hint : this.tipRedo + Common.Utils.String.platformKey('Ctrl+Y')
}); });
this.toolbarControls.push(this.btnRedo); this.toolbarControls.push(this.btnRedo);
this.btnCopy = new Common.UI.Button({ this.btnCopy = new Common.UI.Button({
id : 'id-toolbar-btn-copy', id : 'id-toolbar-btn-copy',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-copy', iconCls : 'btn-copy'
hint : this.tipCopy + Common.Utils.String.platformKey('Ctrl+C')
}); });
this.toolbarControls.push(this.btnCopy); this.toolbarControls.push(this.btnCopy);
this.btnPaste = new Common.UI.Button({ this.btnPaste = new Common.UI.Button({
id : 'id-toolbar-btn-paste', id : 'id-toolbar-btn-paste',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-paste', iconCls : 'btn-paste'
hint : this.tipPaste + Common.Utils.String.platformKey('Ctrl+V')
}); });
this.paragraphControls.push(this.btnPaste); this.paragraphControls.push(this.btnPaste);
this.btnIncFontSize = new Common.UI.Button({ this.btnIncFontSize = new Common.UI.Button({
id : 'id-toolbar-btn-incfont', id : 'id-toolbar-btn-incfont',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-incfont', iconCls : 'btn-incfont'
hint : this.tipIncFont + Common.Utils.String.platformKey('Ctrl+]')
}); });
this.paragraphControls.push(this.btnIncFontSize); this.paragraphControls.push(this.btnIncFontSize);
this.btnDecFontSize = new Common.UI.Button({ this.btnDecFontSize = new Common.UI.Button({
id : 'id-toolbar-btn-decfont', id : 'id-toolbar-btn-decfont',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-decfont', iconCls : 'btn-decfont'
hint : this.tipDecFont + Common.Utils.String.platformKey('Ctrl+[')
}); });
this.paragraphControls.push(this.btnDecFontSize); this.paragraphControls.push(this.btnDecFontSize);
...@@ -182,7 +172,6 @@ define([ ...@@ -182,7 +172,6 @@ define([
id : 'id-toolbar-btn-bold', id : 'id-toolbar-btn-bold',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-bold', iconCls : 'btn-bold',
hint : this.textBold + Common.Utils.String.platformKey('Ctrl+B'),
enableToggle: true enableToggle: true
}); });
this.paragraphControls.push(this.btnBold); this.paragraphControls.push(this.btnBold);
...@@ -191,7 +180,6 @@ define([ ...@@ -191,7 +180,6 @@ define([
id : 'id-toolbar-btn-italic', id : 'id-toolbar-btn-italic',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-italic', iconCls : 'btn-italic',
hint : this.textItalic + Common.Utils.String.platformKey('Ctrl+I'),
enableToggle: true enableToggle: true
}); });
this.paragraphControls.push(this.btnItalic); this.paragraphControls.push(this.btnItalic);
...@@ -200,7 +188,6 @@ define([ ...@@ -200,7 +188,6 @@ define([
id : 'id-toolbar-btn-underline', id : 'id-toolbar-btn-underline',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-underline', iconCls : 'btn-underline',
hint : this.textUnderline + Common.Utils.String.platformKey('Ctrl+U'),
enableToggle: true enableToggle: true
}); });
this.paragraphControls.push(this.btnUnderline); this.paragraphControls.push(this.btnUnderline);
...@@ -209,7 +196,6 @@ define([ ...@@ -209,7 +196,6 @@ define([
id : 'id-toolbar-btn-strikeout', id : 'id-toolbar-btn-strikeout',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-strikeout', iconCls : 'btn-strikeout',
hint : this.textStrikeout,
enableToggle: true enableToggle: true
}); });
this.paragraphControls.push(this.btnStrikeout); this.paragraphControls.push(this.btnStrikeout);
...@@ -218,7 +204,6 @@ define([ ...@@ -218,7 +204,6 @@ define([
id : 'id-toolbar-btn-superscript', id : 'id-toolbar-btn-superscript',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-superscript', iconCls : 'btn-superscript',
hint : this.textSuperscript,
enableToggle: true, enableToggle: true,
toggleGroup : 'superscriptGroup' toggleGroup : 'superscriptGroup'
}); });
...@@ -228,7 +213,6 @@ define([ ...@@ -228,7 +213,6 @@ define([
id : 'id-toolbar-btn-subscript', id : 'id-toolbar-btn-subscript',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-subscript', iconCls : 'btn-subscript',
hint : this.textSubscript,
enableToggle: true, enableToggle: true,
toggleGroup : 'superscriptGroup' toggleGroup : 'superscriptGroup'
}); });
...@@ -238,7 +222,6 @@ define([ ...@@ -238,7 +222,6 @@ define([
id : 'id-toolbar-btn-highlight', id : 'id-toolbar-btn-highlight',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-highlight', iconCls : 'btn-highlight',
hint : this.tipHighlightColor,
enableToggle: true, enableToggle: true,
allowDepress: true, allowDepress: true,
split : true, split : true,
...@@ -261,7 +244,6 @@ define([ ...@@ -261,7 +244,6 @@ define([
id : 'id-toolbar-btn-fontcolor', id : 'id-toolbar-btn-fontcolor',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-fontcolor', iconCls : 'btn-fontcolor',
hint : this.tipFontColor,
split : true, split : true,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
items: [ items: [
...@@ -282,7 +264,6 @@ define([ ...@@ -282,7 +264,6 @@ define([
id : 'id-toolbar-btn-paracolor', id : 'id-toolbar-btn-paracolor',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-paracolor', iconCls : 'btn-paracolor',
hint : this.tipPrColor,
split : true, split : true,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
items: [ items: [
...@@ -298,7 +279,6 @@ define([ ...@@ -298,7 +279,6 @@ define([
id : 'id-toolbar-btn-align-left', id : 'id-toolbar-btn-align-left',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-align-left', iconCls : 'btn-align-left',
hint : this.tipAlignLeft + Common.Utils.String.platformKey('Ctrl+L'),
enableToggle: true, enableToggle: true,
allowDepress: false, allowDepress: false,
toggleGroup : 'alignGroup' toggleGroup : 'alignGroup'
...@@ -309,7 +289,6 @@ define([ ...@@ -309,7 +289,6 @@ define([
id : 'id-toolbar-btn-align-center', id : 'id-toolbar-btn-align-center',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-align-center', iconCls : 'btn-align-center',
hint : this.tipAlignCenter + Common.Utils.String.platformKey('Ctrl+E'),
enableToggle: true, enableToggle: true,
allowDepress: false, allowDepress: false,
toggleGroup : 'alignGroup' toggleGroup : 'alignGroup'
...@@ -320,7 +299,6 @@ define([ ...@@ -320,7 +299,6 @@ define([
id : 'id-toolbar-btn-align-right', id : 'id-toolbar-btn-align-right',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-align-right', iconCls : 'btn-align-right',
hint : this.tipAlignRight + Common.Utils.String.platformKey('Ctrl+R'),
enableToggle: true, enableToggle: true,
allowDepress: false, allowDepress: false,
toggleGroup : 'alignGroup' toggleGroup : 'alignGroup'
...@@ -331,7 +309,6 @@ define([ ...@@ -331,7 +309,6 @@ define([
id : 'id-toolbar-btn-align-just', id : 'id-toolbar-btn-align-just',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-align-just', iconCls : 'btn-align-just',
hint : this.tipAlignJust + Common.Utils.String.platformKey('Ctrl+J'),
enableToggle: true, enableToggle: true,
allowDepress: false, allowDepress: false,
toggleGroup: 'alignGroup' toggleGroup: 'alignGroup'
...@@ -342,7 +319,6 @@ define([ ...@@ -342,7 +319,6 @@ define([
id : 'id-toolbar-btn-halign', id : 'id-toolbar-btn-halign',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-align-left', iconCls : 'btn-align-left',
hint : this.tipHAligh,
icls : 'btn-align-left', icls : 'btn-align-left',
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
cls: 'ppm-toolbar', cls: 'ppm-toolbar',
...@@ -388,16 +364,14 @@ define([ ...@@ -388,16 +364,14 @@ define([
this.btnDecLeftOffset = new Common.UI.Button({ this.btnDecLeftOffset = new Common.UI.Button({
id : 'id-toolbar-btn-decoffset', id : 'id-toolbar-btn-decoffset',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-decoffset', iconCls : 'btn-decoffset'
hint : this.tipDecPrLeft + Common.Utils.String.platformKey('Ctrl+Shift+M')
}); });
this.paragraphControls.push(this.btnDecLeftOffset); this.paragraphControls.push(this.btnDecLeftOffset);
this.btnIncLeftOffset = new Common.UI.Button({ this.btnIncLeftOffset = new Common.UI.Button({
id : 'id-toolbar-btn-incoffset', id : 'id-toolbar-btn-incoffset',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-incoffset', iconCls : 'btn-incoffset'
hint : this.tipIncPrLeft + Common.Utils.String.platformKey('Ctrl+M')
}); });
this.paragraphControls.push(this.btnIncLeftOffset); this.paragraphControls.push(this.btnIncLeftOffset);
...@@ -405,7 +379,6 @@ define([ ...@@ -405,7 +379,6 @@ define([
id : 'id-toolbar-btn-linespace', id : 'id-toolbar-btn-linespace',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-linespace', iconCls : 'btn-linespace',
hint : this.tipLineSpace,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
style: 'min-width: 60px;', style: 'min-width: 60px;',
items: [ items: [
...@@ -424,7 +397,6 @@ define([ ...@@ -424,7 +397,6 @@ define([
id : 'id-toolbar-btn-hidenchars', id : 'id-toolbar-btn-hidenchars',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-hidenchars', iconCls : 'btn-hidenchars',
hint : this.tipShowHiddenChars,
enableToggle: true, enableToggle: true,
split : true, split : true,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
...@@ -441,7 +413,6 @@ define([ ...@@ -441,7 +413,6 @@ define([
id : 'id-toolbar-btn-markers', id : 'id-toolbar-btn-markers',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-setmarkers', iconCls : 'btn-setmarkers',
hint : this.tipMarkers,
enableToggle: true, enableToggle: true,
toggleGroup : 'markersGroup', toggleGroup : 'markersGroup',
split : true, split : true,
...@@ -458,7 +429,6 @@ define([ ...@@ -458,7 +429,6 @@ define([
id : 'id-toolbar-btn-numbering', id : 'id-toolbar-btn-numbering',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-numbering', iconCls : 'btn-numbering',
hint : this.tipNumbers,
enableToggle: true, enableToggle: true,
toggleGroup : 'markersGroup', toggleGroup : 'markersGroup',
split : true, split : true,
...@@ -475,7 +445,6 @@ define([ ...@@ -475,7 +445,6 @@ define([
id : 'id-toolbar-btn-multilevels', id : 'id-toolbar-btn-multilevels',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-multilevels', iconCls : 'btn-multilevels',
hint : this.tipMultilevels,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
items: [ items: [
{ template: _.template('<div id="id-toolbar-menu-multilevels" class="menu-markers" style="width: 165px; margin: 0 5px;"></div>') } { template: _.template('<div id="id-toolbar-menu-multilevels" class="menu-markers" style="width: 165px; margin: 0 5px;"></div>') }
...@@ -489,7 +458,6 @@ define([ ...@@ -489,7 +458,6 @@ define([
id : 'id-toolbar-btn-inserttable', id : 'id-toolbar-btn-inserttable',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-inserttable', iconCls : 'btn-inserttable',
hint : this.tipInsertTable,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
items: [ items: [
{ template: _.template('<div id="id-toolbar-menu-tablepicker" class="dimension-picker" style="margin: 5px 10px;"></div>') }, { template: _.template('<div id="id-toolbar-menu-tablepicker" class="dimension-picker" style="margin: 5px 10px;"></div>') },
...@@ -503,7 +471,6 @@ define([ ...@@ -503,7 +471,6 @@ define([
id : 'id-toolbar-btn-insertimage', id : 'id-toolbar-btn-insertimage',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-insertimage', iconCls : 'btn-insertimage',
hint : this.tipInsertImage,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
items: [ items: [
{ caption: this.mniImageFromFile, value: 'file' }, { caption: this.mniImageFromFile, value: 'file' },
...@@ -517,7 +484,6 @@ define([ ...@@ -517,7 +484,6 @@ define([
id : 'id-toolbar-btn-insertchart', id : 'id-toolbar-btn-insertchart',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-insertchart', iconCls : 'btn-insertchart',
hint : this.tipInsertChart,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
style: 'width: 560px;', style: 'width: 560px;',
items: [ items: [
...@@ -531,7 +497,6 @@ define([ ...@@ -531,7 +497,6 @@ define([
id : 'id-toolbar-btn-inserttext', id : 'id-toolbar-btn-inserttext',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-text', iconCls : 'btn-text',
hint : this.tipInsertText,
enableToggle: true, enableToggle: true,
split : true, split : true,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
...@@ -557,7 +522,6 @@ define([ ...@@ -557,7 +522,6 @@ define([
id : 'id-toolbar-btn-pagebreak', id : 'id-toolbar-btn-pagebreak',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-pagebreak', iconCls : 'btn-pagebreak',
hint : this.tipPageBreak,
split : true, split : true,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
items : [ items : [
...@@ -584,8 +548,7 @@ define([ ...@@ -584,8 +548,7 @@ define([
this.btnInsertHyperlink = new Common.UI.Button({ this.btnInsertHyperlink = new Common.UI.Button({
id : 'id-toolbar-btn-inserthyperlink', id : 'id-toolbar-btn-inserthyperlink',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-inserthyperlink', iconCls : 'btn-inserthyperlink'
hint : this.tipInsertHyperlink + Common.Utils.String.platformKey('Ctrl+K')
}); });
this.paragraphControls.push(this.btnInsertHyperlink); this.paragraphControls.push(this.btnInsertHyperlink);
...@@ -593,7 +556,6 @@ define([ ...@@ -593,7 +556,6 @@ define([
id : 'id-toolbar-btn-editheader', id : 'id-toolbar-btn-editheader',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-editheader', iconCls : 'btn-editheader',
hint : this.tipEditHeader,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
items: [ items: [
{ caption: this.mniEditHeader, value: 'header' }, { caption: this.mniEditHeader, value: 'header' },
...@@ -622,7 +584,6 @@ define([ ...@@ -622,7 +584,6 @@ define([
id : 'id-toolbar-btn-insertshape', id : 'id-toolbar-btn-insertshape',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-insertshape', iconCls : 'btn-insertshape',
hint : this.tipInsertShape,
enableToggle: true, enableToggle: true,
menu : new Common.UI.Menu({cls: 'menu-shapes'}) menu : new Common.UI.Menu({cls: 'menu-shapes'})
}); });
...@@ -632,7 +593,6 @@ define([ ...@@ -632,7 +593,6 @@ define([
id : 'id-toolbar-btn-insertequation', id : 'id-toolbar-btn-insertequation',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-insertequation', iconCls : 'btn-insertequation',
hint : this.tipInsertEquation,
split : true, split : true,
menu : new Common.UI.Menu({cls: 'menu-shapes'}) menu : new Common.UI.Menu({cls: 'menu-shapes'})
}); });
...@@ -642,7 +602,6 @@ define([ ...@@ -642,7 +602,6 @@ define([
id : 'id-toolbar-btn-dropcap', id : 'id-toolbar-btn-dropcap',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-dropcap', iconCls : 'btn-dropcap',
hint : this.tipDropCap,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
cls: 'ppm-toolbar', cls: 'ppm-toolbar',
items: [ items: [
...@@ -660,7 +619,6 @@ define([ ...@@ -660,7 +619,6 @@ define([
id : 'id-toolbar-btn-columns', id : 'id-toolbar-btn-columns',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-columns', iconCls : 'btn-columns',
hint : this.tipColumns,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
cls: 'ppm-toolbar', cls: 'ppm-toolbar',
items: [ items: [
...@@ -678,7 +636,6 @@ define([ ...@@ -678,7 +636,6 @@ define([
id : 'id-toolbar-btn-pageorient', id : 'id-toolbar-btn-pageorient',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-pageorient', iconCls : 'btn-pageorient',
hint : this.tipPageOrient,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
cls: 'ppm-toolbar', cls: 'ppm-toolbar',
items: [ items: [
...@@ -702,7 +659,6 @@ define([ ...@@ -702,7 +659,6 @@ define([
id : 'id-toolbar-btn-pagemargins', id : 'id-toolbar-btn-pagemargins',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-pagemargins', iconCls : 'btn-pagemargins',
hint : this.tipPageMargins,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
items: [ items: [
{ caption: this.textMarginsLast, checkable: true, template: pageMarginsTemplate, toggleGroup: 'menuPageMargins'}, //top,left,bottom,right { caption: this.textMarginsLast, checkable: true, template: pageMarginsTemplate, toggleGroup: 'menuPageMargins'}, //top,left,bottom,right
...@@ -726,7 +682,6 @@ define([ ...@@ -726,7 +682,6 @@ define([
id : 'id-toolbar-btn-pagesize', id : 'id-toolbar-btn-pagesize',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-pagesize', iconCls : 'btn-pagesize',
hint : this.tipPageSize,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
items: [ items: [
{ caption: 'US Letter', subtitle: '21,59cm x 27,94cm', template: pageSizeTemplate, checkable: true, toggleGroup: 'menuPageSize', value: [215.9, 279.4] }, { caption: 'US Letter', subtitle: '21,59cm x 27,94cm', template: pageSizeTemplate, checkable: true, toggleGroup: 'menuPageSize', value: [215.9, 279.4] },
...@@ -752,8 +707,7 @@ define([ ...@@ -752,8 +707,7 @@ define([
this.btnClearStyle = new Common.UI.Button({ this.btnClearStyle = new Common.UI.Button({
id : 'id-toolbar-btn-clearstyle', id : 'id-toolbar-btn-clearstyle',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-clearstyle', iconCls : 'btn-clearstyle'
hint : this.tipClearStyle
}); });
this.toolbarControls.push(this.btnClearStyle); this.toolbarControls.push(this.btnClearStyle);
...@@ -761,7 +715,6 @@ define([ ...@@ -761,7 +715,6 @@ define([
id : 'id-toolbar-btn-copystyle', id : 'id-toolbar-btn-copystyle',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-copystyle', iconCls : 'btn-copystyle',
hint : this.tipCopyStyle + Common.Utils.String.platformKey('Ctrl+Shift+C'),
enableToggle: true enableToggle: true
}); });
this.toolbarControls.push(this.btnCopyStyle); this.toolbarControls.push(this.btnCopyStyle);
...@@ -770,7 +723,6 @@ define([ ...@@ -770,7 +723,6 @@ define([
id : 'id-toolbar-btn-colorschemas', id : 'id-toolbar-btn-colorschemas',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-colorschemas', iconCls : 'btn-colorschemas',
hint : this.tipColorSchemas,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
items: [], items: [],
maxHeight : 600, maxHeight : 600,
...@@ -806,15 +758,13 @@ define([ ...@@ -806,15 +758,13 @@ define([
this.btnMailRecepients= new Common.UI.Button({ this.btnMailRecepients= new Common.UI.Button({
id : 'id-toolbar-btn-mailrecepients', id : 'id-toolbar-btn-mailrecepients',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-mailrecepients', iconCls : 'btn-mailrecepients'
hint : this.tipMailRecepients
}); });
this.btnHide = new Common.UI.Button({ this.btnHide = new Common.UI.Button({
id : 'id-toolbar-btn-hidebars', id : 'id-toolbar-btn-hidebars',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-hidebars no-mask', iconCls : 'btn-hidebars no-mask',
hint : this.tipViewSettings,
menu : new Common.UI.Menu({ menu : new Common.UI.Menu({
cls: 'pull-right', cls: 'pull-right',
style: 'min-width: 180px;', style: 'min-width: 180px;',
...@@ -875,8 +825,7 @@ define([ ...@@ -875,8 +825,7 @@ define([
this.btnAdvSettings = new Common.UI.Button({ this.btnAdvSettings = new Common.UI.Button({
id : 'id-toolbar-btn-settings', id : 'id-toolbar-btn-settings',
cls : 'btn-toolbar', cls : 'btn-toolbar',
iconCls : 'btn-settings no-mask', iconCls : 'btn-settings no-mask'
hint : this.tipAdvSettings
}); });
this.toolbarControls.push(this.btnAdvSettings); this.toolbarControls.push(this.btnAdvSettings);
...@@ -1387,6 +1336,56 @@ define([ ...@@ -1387,6 +1336,56 @@ define([
this.updateMetricUnit(); this.updateMetricUnit();
} }
this.btnNewDocument.updateHint(this.tipNewDocument);
this.btnOpenDocument.updateHint(this.tipOpenDocument);
this.btnPrint.updateHint(this.tipPrint + Common.Utils.String.platformKey('Ctrl+P'));
this.btnSave.updateHint(this.btnSaveTip);
this.btnUndo.updateHint(this.tipUndo + Common.Utils.String.platformKey('Ctrl+Z'));
this.btnRedo.updateHint(this.tipRedo + Common.Utils.String.platformKey('Ctrl+Y'));
this.btnCopy.updateHint(this.tipCopy + Common.Utils.String.platformKey('Ctrl+C'));
this.btnPaste.updateHint(this.tipPaste + Common.Utils.String.platformKey('Ctrl+V'));
this.btnIncFontSize.updateHint(this.tipIncFont + Common.Utils.String.platformKey('Ctrl+]'));
this.btnDecFontSize.updateHint(this.tipDecFont + Common.Utils.String.platformKey('Ctrl+['));
this.btnBold.updateHint(this.textBold + Common.Utils.String.platformKey('Ctrl+B'));
this.btnItalic.updateHint(this.textItalic + Common.Utils.String.platformKey('Ctrl+I'));
this.btnUnderline.updateHint(this.textUnderline + Common.Utils.String.platformKey('Ctrl+U'));
this.btnStrikeout.updateHint(this.textStrikeout);
this.btnSuperscript.updateHint(this.textSuperscript);
this.btnSubscript.updateHint(this.textSubscript);
this.btnHighlightColor.updateHint(this.tipHighlightColor);
this.btnFontColor.updateHint(this.tipFontColor);
this.btnParagraphColor.updateHint(this.tipPrColor);
this.btnAlignLeft.updateHint(this.tipAlignLeft + Common.Utils.String.platformKey('Ctrl+L'));
this.btnAlignCenter.updateHint(this.tipAlignCenter + Common.Utils.String.platformKey('Ctrl+E'));
this.btnAlignRight.updateHint(this.tipAlignRight + Common.Utils.String.platformKey('Ctrl+R'));
this.btnAlignJust.updateHint(this.tipAlignJust + Common.Utils.String.platformKey('Ctrl+J'));
this.btnHorizontalAlign.updateHint(this.tipHAligh);
this.btnDecLeftOffset.updateHint(this.tipDecPrLeft + Common.Utils.String.platformKey('Ctrl+Shift+M'));
this.btnIncLeftOffset.updateHint(this.tipIncPrLeft + Common.Utils.String.platformKey('Ctrl+M'));
this.btnLineSpace.updateHint(this.tipLineSpace);
this.btnShowHidenChars.updateHint(this.tipShowHiddenChars);
this.btnMarkers.updateHint(this.tipMarkers);
this.btnNumbers.updateHint(this.tipNumbers);
this.btnMultilevels.updateHint(this.tipMultilevels);
this.btnInsertTable.updateHint(this.tipInsertTable);
this.btnInsertImage.updateHint(this.tipInsertImage);
this.btnInsertChart.updateHint(this.tipInsertChart);
this.btnInsertText.updateHint(this.tipInsertText);
this.btnInsertPageBreak.updateHint(this.tipPageBreak);
this.btnInsertHyperlink.updateHint(this.tipInsertHyperlink + Common.Utils.String.platformKey('Ctrl+K'));
this.btnEditHeader.updateHint(this.tipEditHeader);
this.btnInsertShape.updateHint(this.tipInsertShape);
this.btnInsertEquation.updateHint(this.tipInsertEquation);
this.btnDropCap.updateHint(this.tipDropCap);
this.btnColumns.updateHint(this.tipColumns);
this.btnPageOrient.updateHint(this.tipPageOrient);
this.btnPageSize.updateHint(this.tipPageSize);
this.btnClearStyle.updateHint(this.tipClearStyle);
this.btnCopyStyle.updateHint(this.tipCopyStyle + Common.Utils.String.platformKey('Ctrl+Shift+C'));
this.btnColorSchemas.updateHint(this.tipColorSchemas);
this.btnMailRecepients.updateHint(this.tipMailRecepients);
this.btnHide.updateHint(this.tipViewSettings);
this.btnAdvSettings.updateHint(this.tipAdvSettings);
}, },
updateMetricUnit: function() { updateMetricUnit: function() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment