svn: /web/doc-editor/trunk/js/ui/component/ EditorConf.js

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Mon, 22 Mar 2010 21:42:27 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=296641

Log:
cleanUp options name according to all changes ; activate the errors panel option for EN user

Changed paths:
    U   web/doc-editor/trunk/js/ui/component/EditorConf.js
svn-diffs-296641.txt (text/x-diff, 12.7 KB)
Modified: web/doc-editor/trunk/js/ui/component/EditorConf.js
===================================================================
--- web/doc-editor/trunk/js/ui/component/EditorConf.js	2010-03-22 21:41:31 UTC (rev 296640)
+++ web/doc-editor/trunk/js/ui/component/EditorConf.js	2010-03-22 21:42:27 UTC (rev 296641)
@@ -17,6 +17,7 @@
 // EditorConf Win-Menu items definition for EN
 ui.component._EditorConf.menuDefEn = [
     ['1', 'card1', _('Main')],
+    ['4', 'card4', _('Module "Files with Error"')],
     ['6', 'card6', _('Module "All files"')],
     ['7', 'card7', _('Module "Pending Patch"')]
 ];
@@ -177,15 +178,15 @@
                     }]
                 }, {
                     xtype      : 'fieldset',
-                    title      : _('On save lang file'),
+                    title      : _('On save file'),
                     iconCls    : 'iconSaveFile',
                     autoHeight : true,
                     defaults   : { hideLabel: true },
                     defaultType: 'radio',
                     items      : [{
                         autoHeight : true,
-                        name       : 'onSaveLangFile',
-                        checked    : (PhDOE.userConf.onSaveLangFile === "ask-me") ? true : false,
+                        name       : 'onSaveFile',
+                        checked    : (PhDOE.userConf.onSaveFile === "ask-me") ? true : false,
                         boxLabel   : _('Ask me if I want to check for error before saving the file'),
                         inputValue : 'ask-me',
                         listeners  : {
@@ -193,7 +194,7 @@
                             {
                                 if (field.checked) {
                                     new ui.task.UpdateConfTask({
-                                        item  : 'onSaveLangFile',
+                                        item  : 'onSaveFile',
                                         value : field.getRawValue()
                                     });
                                 }
@@ -201,8 +202,8 @@
                         }
                     }, {
                         autoHeight : true,
-                        name       : 'onSaveLangFile',
-                        checked    : (PhDOE.userConf.onSaveLangFile === "always") ? true : false,
+                        name       : 'onSaveFile',
+                        checked    : (PhDOE.userConf.onSaveFile === "always") ? true : false,
                         boxLabel   : _('Always check for error before saving the file'),
                         inputValue : 'always',
                         listeners  : {
@@ -210,7 +211,7 @@
                             {
                                 if (field.checked) {
                                     new ui.task.UpdateConfTask({
-                                        item  : 'onSaveLangFile',
+                                        item  : 'onSaveFile',
                                         value : field.getRawValue()
                                     });
                                 }
@@ -218,8 +219,8 @@
                         }
                     }, {
                         autoHeight : true,
-                        name       : 'onSaveLangFile',
-                        checked    : (PhDOE.userConf.onSaveLangFile === "never") ? true : false,
+                        name       : 'onSaveFile',
+                        checked    : (PhDOE.userConf.onSaveFile === "never") ? true : false,
                         boxLabel   : _('Never check for error before saving the file'),
                         inputValue : 'never',
                         listeners  : {
@@ -227,7 +228,7 @@
                             {
                                 if (field.checked) {
                                     new ui.task.UpdateConfTask({
-                                        item  : 'onSaveLangFile',
+                                        item  : 'onSaveFile',
                                         value : field.getRawValue()
                                     });
                                 }
@@ -660,6 +661,7 @@
                 title   : _('Menu'),
                 iconCls : 'iconMenu',
                 items   : [{
+                    hidden      : ( PhDOE.userLang === 'en' ),
                     xtype       : 'fieldset',
                     title       : _('Error type'),
                     iconCls     : 'iconFilesError',
@@ -705,24 +707,50 @@
                     }]
                 }, {
                     xtype       : 'fieldset',
-                    title       : _('VCS Log'),
-                    iconCls     : 'iconVCSLog',
+                    title       : _('Tools'),
+                    iconCls     : 'iconConf',
                     defaults    : { hideLabel: true },
                     defaultType : 'checkbox',
                     items       : [{
-                        name       : 'errorDisplayLog',
-                        checked    : PhDOE.userConf.errorDisplayLog,
+                        name       : 'errorLogLoadData',
+                        checked    : PhDOE.userConf.errorLogLoadData,
                         boxLabel   : _('Automatically load the log when displaying the file'),
                         listeners : {
                             check : function(field)
                             {
                                 new ui.task.UpdateConfTask({
-                                    item  : 'errorDisplayLog',
+                                    item  : 'errorLogLoadData',
                                     value : field.getValue()
                                 });
                             }
                         }
                     }, {
+                        name       : 'errorEntitiesLoadData',
+                        checked    : PhDOE.userConf.errorEntitiesLoadData,
+                        boxLabel   : _('Automatically load entities data when displaying the file'),
+                        listeners : {
+                            check : function(field)
+                            {
+                                new ui.task.UpdateConfTask({
+                                    item  : 'errorEntitiesLoadData',
+                                    value : field.getValue()
+                                });
+                            }
+                        }
+                    }, {
+                        name       : 'errorAcronymsLoadData',
+                        checked    : PhDOE.userConf.errorAcronymsLoadData,
+                        boxLabel   : _('Automatically load acronyms data when displaying the file'),
+                        listeners : {
+                            check : function(field)
+                            {
+                                new ui.task.UpdateConfTask({
+                                    item  : 'errorAcronymsLoadData',
+                                    value : field.getValue()
+                                });
+                            }
+                        }
+                    }, {
                         xtype          : 'fieldset',
                         checkboxToggle : true,
                         collapsed      : !PhDOE.userConf.errorDisplaylogPanel,
@@ -825,6 +853,7 @@
                     defaults    : { hideLabel: true },
                     defaultType : 'checkbox',
                     items       : [{
+                        hidden      : ( PhDOE.userLang === 'en' ),
                         name        : 'errorSpellCheckEn',
                         checked     : PhDOE.userConf.errorSpellCheckEn,
                         boxLabel    : String.format(_('Enable spellChecking for the <b>{0}</b> file'), 'EN'),
@@ -1051,8 +1080,8 @@
                 iconCls : 'iconUI',
                 items   : [{
                     xtype       : 'fieldset',
-                    title       : _('VCS Log'),
-                    iconCls     : 'iconVCSLog',
+                    title       : _('Tools'),
+                    iconCls     : 'iconConf',
                     defaults    : { hideLabel: true },
                     defaultType : 'checkbox',
                     items       : [{
@@ -1069,55 +1098,6 @@
                             }
                         }
                     }, {
-                        xtype          : 'fieldset',
-                        checkboxToggle : true,
-                        collapsed      : !PhDOE.userConf.allFilesDisplaylogPanel,
-                        title          : _('Start with the panel open'),
-                        listeners      : {
-                            collapse : function()
-                            {
-                                new ui.task.UpdateConfTask({
-                                    item  : 'allFilesDisplaylogPanel',
-                                    value : false
-                                });
-                            },
-                            expand : function()
-                            {
-                                new ui.task.UpdateConfTask({
-                                    item  : 'allFilesDisplaylogPanel',
-                                    value : true
-                                });
-                            }
-                        },
-                        items: [{
-                            xtype      : 'spinnerfield',
-                            width      : 60,
-                            name       : 'allFilesDisplaylogPanelWidth',
-                            value      : PhDOE.userConf.allFilesDisplaylogPanelWidth || 375,
-                            fieldLabel : _('Panel width'),
-                            minValue   : 0,
-                            maxValue   : 10000,
-                            accelerate : true,
-                            enableKeyEvents : true,
-                            listeners  : {
-                                keyup : function()
-                                {
-                                    ui.component._EditorConf.CommitChange.delay(1000, null, this);
-                                },
-                                spin : function()
-                                {
-                                    ui.component._EditorConf.CommitChange.delay(1000, null, this);
-                                }
-                            }
-                        }]
-                    }]
-                },{
-                    xtype       : 'fieldset',
-                    title       : _('Entities & acronyms'),
-                    iconCls     : 'iconVCSLog',
-                    defaults    : { hideLabel: true },
-                    defaultType : 'checkbox',
-                    items       : [{
                         name       : 'allFilesEntitiesLoadData',
                         checked    : PhDOE.userConf.allFilesEntitiesLoadData,
                         boxLabel   : _('Automatically load entities data when displaying the file'),
@@ -1146,20 +1126,20 @@
                     }, {
                         xtype          : 'fieldset',
                         checkboxToggle : true,
-                        collapsed      : !PhDOE.userConf.allFilesEntitiesAcronymsPanel,
+                        collapsed      : !PhDOE.userConf.allFilesDisplaylogPanel,
                         title          : _('Start with the panel open'),
                         listeners      : {
                             collapse : function()
                             {
                                 new ui.task.UpdateConfTask({
-                                    item  : 'allFilesEntitiesAcronymsPanel',
+                                    item  : 'allFilesDisplaylogPanel',
                                     value : false
                                 });
                             },
                             expand : function()
                             {
                                 new ui.task.UpdateConfTask({
-                                    item  : 'allFilesEntitiesAcronymsPanel',
+                                    item  : 'allFilesDisplaylogPanel',
                                     value : true
                                 });
                             }
@@ -1167,8 +1147,8 @@
                         items: [{
                             xtype      : 'spinnerfield',
                             width      : 60,
-                            name       : 'allFilesEntitiesAcronymsPanelWidth',
-                            value      : PhDOE.userConf.allFilesEntitiesAcronymsPanelWidth || 375,
+                            name       : 'allFilesDisplaylogPanelWidth',
+                            value      : PhDOE.userConf.allFilesDisplaylogPanelWidth || 375,
                             fieldLabel : _('Panel width'),
                             minValue   : 0,
                             maxValue   : 10000,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.