[qo-modules-dev] [41] taskbutton alteration (changed class name to Ext.ux.button. TaskButton instead of Ext.ux.Taskbar.TaskButton

[ Thread Index | Date Index | More lists.tuxfamily.org/qo-modules-dev Archives ]


Revision: 41
Author:   mjlecomte
Date:     2008-12-03 21:05:40 +0100 (Wed, 03 Dec 2008)

Log Message:
-----------
taskbutton alteration (changed class name to Ext.ux.button.TaskButton instead of Ext.ux.Taskbar.TaskButton

Modified Paths:
--------------
    mickael/trunk/ext/v3.0.0-a1/learn/desktop/js/button/TaskButton.js
    mickael/trunk/ext/v3.0.0-a1/learn/desktop/js/toolbar/TaskBar.js
    mickael/trunk/ext/v3.0.0-a1/learn/desktop/js/view/Desktop.js
    mickael/trunk/ext/v3.0.0-a1/learn/desktop/js/view/View.js


Modified: mickael/trunk/ext/v3.0.0-a1/learn/desktop/js/button/TaskButton.js
===================================================================
--- mickael/trunk/ext/v3.0.0-a1/learn/desktop/js/button/TaskButton.js	2008-12-03 20:03:41 UTC (rev 40)
+++ mickael/trunk/ext/v3.0.0-a1/learn/desktop/js/button/TaskButton.js	2008-12-03 20:05:40 UTC (rev 41)
@@ -1,3 +1,5 @@
+Ext.ns('Ext.ux.button');
+
 /**
  * @class Ext.ux.button.TaskButton
  * @extends Ext.Button
@@ -6,7 +8,7 @@
     
     constructor: function (win) {
         this.win = win;
-        Ext.ux.TaskBar.TaskButton.superclass.constructor.call(this, {
+        Ext.ux.button.TaskButton.superclass.constructor.call(this, {
             iconCls: win.iconCls,
             id: win.id + '_TaskBarTaskButton',
             text: Ext.util.Format.ellipsis(win.title, 12),
@@ -24,7 +26,7 @@
     },
 
     onRender: function (ct, position) {
-        Ext.ux.TaskBar.TaskButton.superclass.onRender.apply(this, arguments);
+        Ext.ux.button.TaskButton.superclass.onRender.apply(this, arguments);
         var view = this.win.app.view
         // context menu to arrange windows
         var arrange = {

Modified: mickael/trunk/ext/v3.0.0-a1/learn/desktop/js/toolbar/TaskBar.js
===================================================================
--- mickael/trunk/ext/v3.0.0-a1/learn/desktop/js/toolbar/TaskBar.js	2008-12-03 20:03:41 UTC (rev 40)
+++ mickael/trunk/ext/v3.0.0-a1/learn/desktop/js/toolbar/TaskBar.js	2008-12-03 20:05:40 UTC (rev 41)
@@ -157,7 +157,7 @@
     },
     
     addTaskButton: function (win) {
-        var btn = new Ext.ux.TaskBar.TaskButton(win);
+        var btn = new Ext.ux.button.TaskButton(win);
         this.activeAppsPanel = Ext.getCmp('ux-taskbuttons-panel');
         this.activeAppsPanel.addButton(btn);
         this.activeAppsPanel.doLayout();

Modified: mickael/trunk/ext/v3.0.0-a1/learn/desktop/js/view/Desktop.js
===================================================================
--- mickael/trunk/ext/v3.0.0-a1/learn/desktop/js/view/Desktop.js	2008-12-03 20:03:41 UTC (rev 40)
+++ mickael/trunk/ext/v3.0.0-a1/learn/desktop/js/view/Desktop.js	2008-12-03 20:05:40 UTC (rev 41)
@@ -1,7 +1,7 @@
 Ext.ns('Ext.ux.gui');
 
 /**
- * <p>This GUI mimics a Windows OS desktop appliction.</p>
+ * <p>This implementation of {@link Ext.ux.View} mimics a Windows OS desktop appliction.</p>
  * @class Ext.ux.gui.Desktop
  * @extends Ext.ux.View
  */

Modified: mickael/trunk/ext/v3.0.0-a1/learn/desktop/js/view/View.js
===================================================================
--- mickael/trunk/ext/v3.0.0-a1/learn/desktop/js/view/View.js	2008-12-03 20:03:41 UTC (rev 40)
+++ mickael/trunk/ext/v3.0.0-a1/learn/desktop/js/view/View.js	2008-12-03 20:05:40 UTC (rev 41)
@@ -8,35 +8,29 @@
  */
 Ext.ux.View = Ext.extend(Ext.Viewport, {
 
-    monitorResize: true,
-
     /**
      * @cfg {Object} styles Configuration object for custom styling.  Sample:
      * <pre><code>
-	        styles: {
-	            "backgroundcolor": "575757",
-	            "fontcolor": "FFFFFF",
-	            "transparency": "100",
-	            "theme": {
-	                "id": "3",
-	                "name": "Vista Glass",
-	                "pathtofile": "..\/desktop\/resources\/themes\/xtheme-vistaglass\/css\/xtheme-vistaglass.css"},
-	                "wallpaper": {
-	                    "id": "11",
-	                    "name": "Blue Psychedelic",
-	                    // href of the new stylesheet to include
-	                    "pathtofile": "..\/desktop\/resources\/wallpapers\/blue-psychedelic.jpg"
-	                },
-	            "wallpaperposition":"tile"
-	        } // end of styles
+styles: {
+    "backgroundcolor": "575757",
+    "fontcolor": "FFFFFF",
+    "transparency": "100",
+    "theme": {
+        "id": "3",
+        "name": "Vista Glass",
+        "pathtofile": "..\/desktop\/resources\/themes\/xtheme-vistaglass\/css\/xtheme-vistaglass.css"},
+        "wallpaper": {
+            "id": "11",
+            "name": "Blue Psychedelic",
+            // href of the new stylesheet to include
+            "pathtofile": "..\/desktop\/resources\/wallpapers\/blue-psychedelic.jpg"
+        },
+    "wallpaperposition":"tile"
+} // end of styles
      * </code></pre>
      */
 
-    /* @private */
-    constructor: function (config) {
-        Ext.apply(this, config);
-        Ext.ux.View.superclass.constructor.call(this);
-    },
+    monitorResize: true,
 
     /* @private */
     initComponent : function () {


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/