Revision: 3698
Author:   seba.wagner
Date:     Sun Apr  3 04:04:06 2011
Log:      Default selection + add optional RSS Panel
http://code.google.com/p/openmeetings/source/detail?r=3698

Added:
/trunk/singlewebapp/WebContent/openmeetings/modules/conference/flexibleConferenceRoom/conferenceRoomSidebar_BACKUP.lzx /trunk/singlewebapp/WebContent/openmeetings/modules/dashboard/resources/rss_small.png
Deleted:
/trunk/singlewebapp/WebContent/openmeetings/modules/conference/flexibleConferenceRoom/conferenceRoomSidebar.lzx
Modified:
 /trunk/singlewebapp/WebContent/languages/portugues brazil.xml
 /trunk/singlewebapp/WebContent/openmeetings/modules/dashboard/library.lzx
/trunk/singlewebapp/WebContent/openmeetings/modules/dashboard/mainDashboard.lzx
 /trunk/singlewebapp/WebContent/openmeetings/modules/dashboard/rssPanel.lzx
/trunk/singlewebapp/src/app/org/openmeetings/app/installation/ImportInitvalues.java
 /trunk/singlewebapp/src/app/org/openmeetings/app/remote/MainService.java

=======================================
--- /dev/null
+++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/flexibleConferenceRoom/conferenceRoomSidebar_BACKUP.lzx Sun Apr 3 04:04:06 2011
@@ -0,0 +1,200 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<library>
+
+<class name="conferenceRoomSidebarTabButton" extends="view"
+          width="$once{ (parent.width-2)/2 }" height="36" y="0">
+
+       <attribute name="labelid" value="0" type="number" />
+
+       <attribute name="selected" value="false" type="boolean" />
+
+       <attribute name="currentIconRsc" value="" type="string"/>
+
+       <handler name="oninit">
+               if (this.selected) {
+                       parent.parent.doSelection(this);
+               }
+       </handler>
+
+       <handler name="onclick">
+               parent.parent.doSelection(this);
+       </handler>
+
+       <handler name="onmouseover">
+               if (!this.selected) {
+                       this._bg1.setAttribute("visibility","visible");
+               }
+       </handler>
+
+       <handler name="onmouseout">
+        this._bg1.setAttribute("visibility","hidden");
+    </handler>
+
+       <method name="select">
+               this.selected = true;
+               this._icon.setAttribute("opacity",1);
+        this._text.setAttribute("opacity",1);
+        this._bg1.setAttribute("visibility","hidden");
+               this._bg2.setAttribute("visibility","visible");
+               this._text.setAttribute("fontstyle","bold");
+               this._text.setAttribute("fgcolor","0xFFFFFF");
+       </method>
+
+    <method name="deselect">
+        this.selected = false;
+        this._icon.setAttribute("opacity",0.5);
+        this._text.setAttribute("opacity",0.5);
+        this._bg2.setAttribute("visibility","hidden");
+        this._text.setAttribute("fontstyle","plain");
+        this._text.setAttribute("fgcolor","0xFFFFFF");
+    </method>
+
+
+    <view name="_bg1" bgcolor="0xFFFFFF" width="$once{ parent.width }"
+ height="$once{ parent.height }" opacity="0.7" visibility="hidden"/>
+
+    <view name="_bg2" bgcolor="0xFFFFFF" width="$once{ parent.width }"
+ height="$once{ parent.height }" opacity="0.4" visibility="hidden"/>
+
+ <view x="4" y="6" name="_icon" resource="$once{ parent.currentIconRsc }" />
+
+    <labelText name="_text" x="28" fontsize="14" valign="middle"
+               fgcolor="0xFFFFFF" labelid="$once{ parent.labelid }" />
+
+</class>
+
+<class name="conferenceRoomSidebar" extends="view" width="280"
+          height="${ canvas.height - 28 }" y="0" clip="true">
+
+       <attribute name="selected" value="null" />
+
+       <attribute name="isOpen" value="true" type="boolean"/>
+
+       <method name="doSelection" args="itemRef">
+               <![CDATA[
+            if (this.selected != null) {
+               this.selected.deselect();
+            }
+
+            this.selected = itemRef;
+            this.selected.select();
+
+ if ($debug) Debug.write("this.selected.name ",this.selected.name);
+
+            if (this.selected.name == "userTabButton") {
+               if ($debug) Debug.write("-- userTabButton");
+               this._files.setAttribute("visibility","hidden");
+ this._videocontainer._participents.setAttribute("visibility","visible");
+            } else if (this.selected.name == "filesTabButton") {
+               if ($debug) Debug.write("-- filesTabButton");
+               this._files.setAttribute("visibility","visible");
+ this._videocontainer._participents.setAttribute("visibility","hidden");
+            }
+               ]]>
+       </method>
+
+       <method name="toggleStatus">
+               if (this.isOpen) {
+                       this._doClose.doStart();
+                       this.isOpen = false;
+                       this._minimizeSidebar._icon.setAttribute("frame",2);
+               } else {
+                       this._doOpen.doStart();
+            this.isOpen = true;
+            this._minimizeSidebar._icon.setAttribute("frame",1);
+               }
+       </method>
+
+       <view name="_head" width="$once{ parent.width-2 }" height="34">
+        <view width="${ parent.width }" height="$once{ parent.height }"
+              stretches="both" resource="presenter_thumb_rsc" >
+            <handler name="oninit">
+                <![CDATA[
+                    this.setTintRGB(canvas.basebgcolorizer,90);
+                ]]>
+            </handler>
+            <method name="setTintRGB" args="color, brightness">
+                <![CDATA[
+                    if (color != "" && color != null){
+
+                        if (brightness == null) { brightness = 0; }
+                        var rgb = color;
+                        var red=(rgb >> 16) & 0xFF;
+                        var green=(rgb >> 8) & 0xFF;
+                        var blue=rgb & 0xFF;
+
+ this.setColorTransform( { ra : red, ga : green, ba : blue, + rb : 0, gb : 0, bb : 0 } );
+
+                    }
+                ]]>
+            </method>
+        </view>
+
+ <conferenceRoomSidebarTabButton name="userTabButton" selected="true"
+                       currentIconRsc="users_tab_btn" x="0" labelid="613" />
+
+ <conferenceRoomSidebarTabButton name="filesTabButton" currentIconRsc="files_tab_btn"
+                               x="$once{ ((parent.width-2)/2)+2 }" labelid="614" 
/>
+
+       </view>
+
+       <uploadTab name="_files" y="36" width="$once{ parent.width-12 }"
+                          height="${ parent.height-36 }" visibility="hidden" />
+
+ <participents name="_videocontainer" y="36" userNewVideoContainer="true"
+                         width="$once{ parent.width-10 }" height="${ parent.height-36 
}" />
+
+    <view name="_minimizeSidebar" x="${ parent.width - 10 }" width="10"
+ bgcolor="$once{ canvas.baseMousecolorizer }" height="${ parent.height }">
+       <handler name="onclick">
+            parent.toggleStatus();
+        </handler>
+        <handler name="onmouseover">
+            this._bg1.setAttribute("visibility","visible");
+        </handler>
+        <handler name="onmouseout">
+            this._bg1.setAttribute("visibility","hidden");
+        </handler>
+
+        <view width="${ parent.width }" height="$once{ parent.height*1.4 }"
+              stretches="both" resource="presenter_thumb_rsc" >
+            <handler name="oninit">
+                <![CDATA[
+                    this.setTintRGB(canvas.basebgcolorizer,90);
+                ]]>
+            </handler>
+            <method name="setTintRGB" args="color, brightness">
+                <![CDATA[
+                    if (color != "" && color != null){
+
+                        if (brightness == null) { brightness = 0; }
+                        var rgb = color;
+                        var red=(rgb >> 16) & 0xFF;
+                        var green=(rgb >> 8) & 0xFF;
+                        var blue=rgb & 0xFF;
+
+ this.setColorTransform( { ra : red, ga : green, ba : blue, + rb : 0, gb : 0, bb : 0 } );
+
+                    }
+                ]]>
+            </method>
+        </view>
+
+        <view name="_bg1" bgcolor="0xFFFFFF" width="$once{ parent.width }"
+ height="$once{ parent.height }" opacity="0.7" visibility="hidden"/>
+
+        <view name="_icon" resource="sidebar_tab_btn"
+                 valign="middle" align="center" />
+    </view>
+
+    <animator name="_doOpen" attribute="width" to="$once{ parent.width }"
+                 duration="750" start="false" />
+
+    <animator name="_doClose" attribute="width" to="10"
+                 duration="750" start="false" />
+
+</class>
+
+</library>
=======================================
--- /dev/null   
+++ /trunk/singlewebapp/WebContent/openmeetings/modules/dashboard/resources/rss_small.png Sun Apr 3 04:04:06 2011
Binary file, no diff available.
=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/conference/flexibleConferenceRoom/conferenceRoomSidebar.lzx Mon Oct 12 03:58:23 2009
+++ /dev/null
@@ -1,200 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<library>
-
-<class name="conferenceRoomSidebarTabButton" extends="view"
-          width="$once{ (parent.width-2)/2 }" height="36" y="0">
-
-       <attribute name="labelid" value="0" type="number" />
-
-       <attribute name="selected" value="false" type="boolean" />
-
-       <attribute name="currentIconRsc" value="" type="string"/>
-
-       <handler name="oninit">
-               if (this.selected) {
-                       parent.parent.doSelection(this);
-               }
-       </handler>
-
-       <handler name="onclick">
-               parent.parent.doSelection(this);
-       </handler>
-
-       <handler name="onmouseover">
-               if (!this.selected) {
-                       this._bg1.setAttribute("visibility","visible");
-               }
-       </handler>
-
-       <handler name="onmouseout">
-        this._bg1.setAttribute("visibility","hidden");
-    </handler>
-
-       <method name="select">
-               this.selected = true;
-               this._icon.setAttribute("opacity",1);
-        this._text.setAttribute("opacity",1);
-        this._bg1.setAttribute("visibility","hidden");
-               this._bg2.setAttribute("visibility","visible");
-               this._text.setAttribute("fontstyle","bold");
-               this._text.setAttribute("fgcolor","0xFFFFFF");
-       </method>
-
-    <method name="deselect">
-        this.selected = false;
-        this._icon.setAttribute("opacity",0.5);
-        this._text.setAttribute("opacity",0.5);
-        this._bg2.setAttribute("visibility","hidden");
-        this._text.setAttribute("fontstyle","plain");
-        this._text.setAttribute("fgcolor","0xFFFFFF");
-    </method>
-
-
-    <view name="_bg1" bgcolor="0xFFFFFF" width="$once{ parent.width }"
- height="$once{ parent.height }" opacity="0.7" visibility="hidden"/>
-
-    <view name="_bg2" bgcolor="0xFFFFFF" width="$once{ parent.width }"
- height="$once{ parent.height }" opacity="0.4" visibility="hidden"/>
-
- <view x="4" y="6" name="_icon" resource="$once{ parent.currentIconRsc }" />
-
-    <labelText name="_text" x="28" fontsize="14" valign="middle"
-               fgcolor="0xFFFFFF" labelid="$once{ parent.labelid }" />
-
-</class>
-
-<class name="conferenceRoomSidebar" extends="view" width="280"
-          height="${ canvas.height - 28 }" y="0" clip="true">
-
-       <attribute name="selected" value="null" />
-
-       <attribute name="isOpen" value="true" type="boolean"/>
-
-       <method name="doSelection" args="itemRef">
-               <![CDATA[
-            if (this.selected != null) {
-               this.selected.deselect();
-            }
-
-            this.selected = itemRef;
-            this.selected.select();
-
- if ($debug) Debug.write("this.selected.name ",this.selected.name);
-
-            if (this.selected.name == "userTabButton") {
-               if ($debug) Debug.write("-- userTabButton");
-               this._files.setAttribute("visibility","hidden");
- this._videocontainer._participents.setAttribute("visibility","visible");
-            } else if (this.selected.name == "filesTabButton") {
-               if ($debug) Debug.write("-- filesTabButton");
-               this._files.setAttribute("visibility","visible");
- this._videocontainer._participents.setAttribute("visibility","hidden");
-            }
-               ]]>
-       </method>
-
-       <method name="toggleStatus">
-               if (this.isOpen) {
-                       this._doClose.doStart();
-                       this.isOpen = false;
-                       this._minimizeSidebar._icon.setAttribute("frame",2);
-               } else {
-                       this._doOpen.doStart();
-            this.isOpen = true;
-            this._minimizeSidebar._icon.setAttribute("frame",1);
-               }
-       </method>
-
-       <view name="_head" width="$once{ parent.width-2 }" height="34">
-        <view width="${ parent.width }" height="$once{ parent.height }"
-              stretches="both" resource="presenter_thumb_rsc" >
-            <handler name="oninit">
-                <![CDATA[
-                    this.setTintRGB(canvas.basebgcolorizer,90);
-                ]]>
-            </handler>
-            <method name="setTintRGB" args="color, brightness">
-                <![CDATA[
-                    if (color != "" && color != null){
-
-                        if (brightness == null) { brightness = 0; }
-                        var rgb = color;
-                        var red=(rgb >> 16) & 0xFF;
-                        var green=(rgb >> 8) & 0xFF;
-                        var blue=rgb & 0xFF;
-
- this.setColorTransform( { ra : red, ga : green, ba : blue, - rb : 0, gb : 0, bb : 0 } );
-
-                    }
-                ]]>
-            </method>
-        </view>
-
- <conferenceRoomSidebarTabButton name="userTabButton" selected="true"
-                       currentIconRsc="users_tab_btn" x="0" labelid="613" />
-
- <conferenceRoomSidebarTabButton name="filesTabButton" currentIconRsc="files_tab_btn"
-                               x="$once{ ((parent.width-2)/2)+2 }" labelid="614" 
/>
-
-       </view>
-
-       <uploadTab name="_files" y="36" width="$once{ parent.width-12 }"
-                          height="${ parent.height-36 }" visibility="hidden" />
-
- <participents name="_videocontainer" y="36" userNewVideoContainer="true"
-                         width="$once{ parent.width-10 }" height="${ parent.height-36 
}" />
-
-    <view name="_minimizeSidebar" x="${ parent.width - 10 }" width="10"
- bgcolor="$once{ canvas.baseMousecolorizer }" height="${ parent.height }">
-       <handler name="onclick">
-            parent.toggleStatus();
-        </handler>
-        <handler name="onmouseover">
-            this._bg1.setAttribute("visibility","visible");
-        </handler>
-        <handler name="onmouseout">
-            this._bg1.setAttribute("visibility","hidden");
-        </handler>
-
-        <view width="${ parent.width }" height="$once{ parent.height*1.4 }"
-              stretches="both" resource="presenter_thumb_rsc" >
-            <handler name="oninit">
-                <![CDATA[
-                    this.setTintRGB(canvas.basebgcolorizer,90);
-                ]]>
-            </handler>
-            <method name="setTintRGB" args="color, brightness">
-                <![CDATA[
-                    if (color != "" && color != null){
-
-                        if (brightness == null) { brightness = 0; }
-                        var rgb = color;
-                        var red=(rgb >> 16) & 0xFF;
-                        var green=(rgb >> 8) & 0xFF;
-                        var blue=rgb & 0xFF;
-
- this.setColorTransform( { ra : red, ga : green, ba : blue, - rb : 0, gb : 0, bb : 0 } );
-
-                    }
-                ]]>
-            </method>
-        </view>
-
-        <view name="_bg1" bgcolor="0xFFFFFF" width="$once{ parent.width }"
- height="$once{ parent.height }" opacity="0.7" visibility="hidden"/>
-
-        <view name="_icon" resource="sidebar_tab_btn"
-                 valign="middle" align="center" />
-    </view>
-
-    <animator name="_doOpen" attribute="width" to="$once{ parent.width }"
-                 duration="750" start="false" />
-
-    <animator name="_doClose" attribute="width" to="10"
-                 duration="750" start="false" />
-
-</class>
-
-</library>
=======================================
--- /trunk/singlewebapp/WebContent/languages/portugues brazil.xml Sat Apr 2 02:21:16 2011 +++ /trunk/singlewebapp/WebContent/languages/portugues brazil.xml Sun Apr 3 04:04:06 2011
@@ -939,31 +939,31 @@
     <value>Logout</value>
   </string>
   <string id="311" name="loginwindow">
-    <value>Visão Desktop</value>
+    <value>Forgotten your password?</value>
   </string>
   <string id="312" name="loginwindow">
-    <value>iniciar visão Desktop</value>
+    <value>Reset password</value>
   </string>
   <string id="313" name="loginwindow">
-    <value>Vídeo e Áudio</value>
+    <value>Using email address</value>
   </string>
   <string id="314" name="loginwindow">
-    <value>Chat</value>
+    <value>Using login</value>
   </string>
   <string id="315" name="loginwindow">
-    <value>Lousa</value>
+    <value>Your email address</value>
   </string>
   <string id="316" name="loginwindow">
-    <value>Moderação</value>
+    <value>Your login</value>
   </string>
   <string id="317" name="loginwindow">
-    <value>Arquivos</value>
+    <value>Send email with a reset link</value>
   </string>
   <string id="318" name="loginwindow">
-    <value>Usuários</value>
+ <value>No such email address was found. Make sure you entered the same email address you used to create your account.</value>
   </string>
   <string id="319" name="loginwindow">
-    <value>Conjuntos</value>
+    <value>Please enter either an email address or a username</value>
   </string>
   <string id="320" name="loginwindow">
     <value>Não existe usuário conectado com este nome</value>
=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/dashboard/library.lzx Sat Apr 2 02:21:16 2011 +++ /trunk/singlewebapp/WebContent/openmeetings/modules/dashboard/library.lzx Sun Apr 3 04:04:06 2011
@@ -9,6 +9,7 @@

<resource name="icon_btn_chat_dashboard" src="resources/internet-group-chat2.png" /> <resource name="icon_btn_rooms_conference" src="resources/network-transmit-receive2.png" /> + <resource name="icon_btn_rss_conference" src="resources/rss_small.png" />

        <include href="infosPanel.lzx" />
        <include href="profilesPanel.lzx" />
=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/dashboard/mainDashboard.lzx Sat Apr 2 02:21:16 2011 +++ /trunk/singlewebapp/WebContent/openmeetings/modules/dashboard/mainDashboard.lzx Sun Apr 3 04:04:06 2011
@@ -26,9 +26,101 @@

     <handler name="oninit">
         //this.getRssFeeds.doCall();
+        this.getDashboardConfiguration.doCall();
         _mainScrollBar.setAttribute("visibility","hidden");
     </handler>

+ <netRemoteCallHib name="getDashboardConfiguration" funcname="xmlcrm.getDashboardConfiguration"
+                                 remotecontext="$once{ canvas.thishib }" >
+ <netparam><method name="getValue">return canvas.sessionId;</method></netparam>
+        <handler name="ondata" args="value">
+            <![CDATA[
+ if ($debug) Debug.write("getDashboardConfiguration: ", value);
+                parent.parseConfiguration(value);
+            ]]>
+        </handler>
+    </netRemoteCallHib>
+
+    <method name="parseConfiguration" args="cfManagementList">
+       <![CDATA[
+
+          var tCountVisibleTabs = 0;
+          for (var i=0;i<cfManagementList.length;i++) {
+
+                  var tConfigurationObj = cfManagementList[i];
+
+                  switch (tConfigurationObj.conf_key) {
+                          case "dashboard.show.myrooms":
+                              if (Number(tConfigurationObj.conf_value) == 1) {
+                            tCountVisibleTabs++;
+                              } else {
+ this._bottomArea._tabbar.myRoomsTabButton.setAttribute("visibility","hidden");
+                              }
+                              break;
+                          case "dashboard.show.rssfeed":
+                              if (Number(tConfigurationObj.conf_value) == 1) {
+                            tCountVisibleTabs++;
+                            this.getRssFeeds.doCall();
+                       } else {
+ this._bottomArea._tabbar.rssFeed1TabButton.setAttribute("visibility","hidden");
+                       }
+                       break;
+                   case "dashboard.show.chat":
+                       if (Number(tConfigurationObj.conf_value) == 1) {
+                            tCountVisibleTabs++;
+                       } else {
+ this._bottomArea._tabbar.chatTabButton.setAttribute("visibility","hidden");
+                       }
+                       break;
+                   default:
+ if ($debug) Debug.write("Unkown Tab Key ",tConfigurationObj.conf_key);
+                       break;
+                  }
+
+          }
+
+          var tFoundVisibleDefaultTab = false;
+          for (var i=0;i<cfManagementList.length;i++) {
+
+               var tConfigurationObj = cfManagementList[i];
+
+               if (tConfigurationObj.conf_key == "default.dashboard.tab") {
+
+                   var tIndexNumber = Number(tConfigurationObj.conf_value);
+ var tObj = this._bottomArea._tabbar.subviews[tIndexNumber];
+
+ if ($debug) Debug.write("tIndexNumber| tObj",tIndexNumber,tObj);
+
+                   if (tObj && tObj.visible) {
+                          tFoundVisibleDefaultTab = true;
+                       tObj.onclick.sendEvent(null);
+                   }
+
+               }
+
+           }
+
+ if ($debug) Debug.write("tFoundVisibleDefaultTab| tCountVisibleTabs",tFoundVisibleDefaultTab,tCountVisibleTabs);
+
+           if (!tFoundVisibleDefaultTab && tCountVisibleTabs>0) {
+
+ for (var i=0;i<this._bottomArea._tabbar.subviews.length;i++) {
+
+                          var tObj = this._bottomArea._tabbar.subviews[i];
+ if ($debug) Debug.write("tObj && tObj.visible",tObj,tObj.visible);
+
+                          if (tObj && tObj.visible) {
+                       tObj.onclick.sendEvent(null);
+                       break;
+                   }
+                  }
+           }
+
+          this._bottomArea.setAttribute("visibility","visible");
+
+       ]]>
+    </method>
+
     <handler name="ontabcontentleave">
        canvas._overallchatcontent = null;
        _mainScrollBar.setAttribute("visibility","visible");
@@ -40,8 +132,8 @@
         <handler name="ondata" args="value">
                <![CDATA[
                 Debug.write("getRssFeeds: ",value);
-                parent.feed1.feed.outputRSS(value.feed1);
-                parent.feed2.feed.outputRSS(value.feed2);
+                parent._bottomArea._boxes.feed1.outputRSS(value.feed2);
+                //parent.feed2.feed.outputRSS(value.feed2);
             ]]>
         </handler>
     </netRemoteCallHib>
@@ -59,7 +151,7 @@
      -->

<guiPresenter name="_bottomArea" resizeable="false" y="240" x="10" closable="true" labelid="1304"
-            width="${ canvas.width-20 }" height="${ canvas.height-360 }"
+ width="${ canvas.width-20 }" height="${ canvas.height-360 }" visibility="hidden"
             isdragable="false" minimizable="false" maximizable="false" >

        <attribute name="refObjItem" value="null" />
@@ -73,52 +165,64 @@
             if (this.refObjItem.name == "myRoomsTabButton"){
this._boxes.myMeetings.setAttribute("visibility","visible"); this._boxes._overallchat.setAttribute("visibility","hidden");
+                this._boxes.feed1.setAttribute("visibility","hidden");
             } else if (this.refObjItem.name == "chatTabButton"){
                 this._boxes.myMeetings.setAttribute("visibility","hidden");
this._boxes._overallchat.setAttribute("visibility","visible");
-            }
+                this._boxes.feed1.setAttribute("visibility","hidden");
+            } else if (this.refObjItem.name == "rssFeed1TabButton"){
+                this._boxes.myMeetings.setAttribute("visibility","hidden");
+ this._boxes._overallchat.setAttribute("visibility","hidden");
+                this._boxes.feed1.setAttribute("visibility","visible");
+            }
+

             this.refObjItem.select();
         </method>
-
- <view name="_tabbar" x="1" y="1" width="${ parent.width-2 }" height="36" >
-
-               <view width="${ parent.width }" height="$once{ parent.height }"
-              stretches="both" resource="presenter_thumb_rsc" >
-                <handler name="oninit">
-                    <![CDATA[
-                        this.setTintRGB(canvas.basebgcolorizer,90);
-                    ]]>
-                </handler>
-                <method name="setTintRGB" args="color, brightness">
-                    <![CDATA[
-                        if (color != "" && color != null){
-
-                            if (brightness == null) { brightness = 0; }
-                            var rgb = color;
-                            var red=(rgb >> 16) & 0xFF;
-                            var green=(rgb >> 8) & 0xFF;
-                            var blue=rgb & 0xFF;
-
- this.setColorTransform( { ra : red, ga : green, ba : blue, - rb : 0, gb : 0, bb : 0 } );
-
-                        }
-                    ]]>
-                </method>
-            </view>
-
- <conferenceRoomSidebarTabButton name="myRoomsTabButton" selected="true" height="$once{ parent.height }" - currentIconRsc="icon_btn_rooms_conference" x="0" labelid="1305" width="${ (parent.width-2)/2 }"/>
-
- <conferenceRoomSidebarTabButton name="chatTabButton" width="${ (parent.width-2)/2 }" height="$once{ parent.height }" - x="$once{ ((parent.width)/2)+2 }" currentIconRsc="icon_btn_chat_dashboard" labelid="443" />
-
+
+ <view width="${ parent.width-2 }" x="1" y="1" height="$once{ parent._tabbar.height }"
+          stretches="both" resource="presenter_thumb_rsc" >
+            <handler name="oninit">
+                <![CDATA[
+                    this.setTintRGB(canvas.basebgcolorizer,90);
+                ]]>
+            </handler>
+            <method name="setTintRGB" args="color, brightness">
+                <![CDATA[
+                    if (color != "" && color != null){
+
+                        if (brightness == null) { brightness = 0; }
+                        var rgb = color;
+                        var red=(rgb >> 16) & 0xFF;
+                        var green=(rgb >> 8) & 0xFF;
+                        var blue=rgb & 0xFF;
+
+ this.setColorTransform( { ra : red, ga : green, ba : blue, + rb : 0, gb : 0, bb : 0 } );
+
+                    }
+                ]]>
+            </method>
+        </view>
+
+ <view name="_tabbar" x="1" y="1" width="${ parent.width-2 }" height="36"
+                 layout="axis:x;spacing:2">
+
+ <conferenceRoomSidebarTabButton name="myRoomsTabButton" height="$once{ parent.height }" + currentIconRsc="icon_btn_rooms_conference" labelid="1305" width="${ (parent.width-4)/3 }"
+                    />
+
+ <conferenceRoomSidebarTabButton name="chatTabButton" width="${ (parent.width-4)/3 }" height="$once{ parent.height }" + currentIconRsc="icon_btn_chat_dashboard" labelid="443" />
+
+ <conferenceRoomSidebarTabButton name="rssFeed1TabButton" width="${ (parent.width-4)/3 }" height="$once{ parent.height }" + currentIconRsc="icon_btn_rss_conference" labelid="277" />
+
         </view>

<view name="_boxes" height="${ parent.height-44 }" width="${ parent.width }" y="43">

- <view name="myMeetings" height="${ parent.height }" width="${ parent.width }" > + <view name="myMeetings" height="${ parent.height }" width="${ parent.width }" visibility="hidden" >

                 <!-- Declared conference rooms list -->
                 <view y="2" height="${ parent.height-4 }">
@@ -201,6 +305,13 @@

             <overAllChat name="_overallchat" visibility="hidden" />

+ <rssBox name="feed1" visibility="hidden" width="${ parent.width }"
+                            height="${ parent.height }" y="0" x="0" />
+
+               <!--
+            <rssPanel name="feed2" x="420" y="230" visibility="hidden" />
+                -->
+
        </view>


=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/dashboard/rssPanel.lzx Mon Oct 12 03:58:23 2009 +++ /trunk/singlewebapp/WebContent/openmeetings/modules/dashboard/rssPanel.lzx Sun Apr 3 04:04:06 2011
@@ -38,7 +38,7 @@
         this.inner.outputRSS(value);
     </method>
     <view name="inner" clip="true" bgcolor="0xFFFFFF"
- x="1" y="1" width="$once{ parent.width-2 }" height="$once{ parent.height-2 }"> + x="1" y="1" width="${ parent.width-2 }" height="${ parent.height-2 }">
         <method name="outputRSS" args="value">
             <![CDATA[
                 var t = new Array();
@@ -53,7 +53,7 @@
                 }
             ]]>
         </method>
- <view name="content" layout="axis:y" bgcolor="$once{ canvas.basebgcolorizer }" width="$once{ parent.width-14 }" /> + <view name="content" layout="axis:y" bgcolor="$once{ canvas.basebgcolorizer }" width="${ parent.width-14 }" />
         <vscrollbar name="_scrollbar" />
     </view>
 </class>
=======================================
--- /trunk/singlewebapp/src/app/org/openmeetings/app/installation/ImportInitvalues.java Sat Apr 2 02:21:16 2011 +++ /trunk/singlewebapp/src/app/org/openmeetings/app/installation/ImportInitvalues.java Sun Apr 3 04:04:06 2011
@@ -428,11 +428,17 @@
                                "0", null, "Default selection in ScreenSharing 
Quality");

Configurationmanagement.getInstance().addConfByKey(3, "default.dashboard.tab",
-                               "1", null, "Default selection in Dashboard tabs as 
tab-index-id");
+                               "0", null, "Default selection in Dashboard tabs as 
tab-index-id");

Configurationmanagement.getInstance().addConfByKey(3, "dashboard.show.myrooms",
                                "1", null, "Show My Rooms Tab");

+ Configurationmanagement.getInstance().addConfByKey(3, "dashboard.show.chat",
+                               "1", null, "Show Chat Tab");
+
+ Configurationmanagement.getInstance().addConfByKey(3, "dashboard.show.rssfeed",
+                               "0", null, "Show RSS Tab");
+
        }

        public void loadDefaultRooms() {
=======================================
--- /trunk/singlewebapp/src/app/org/openmeetings/app/remote/MainService.java Thu Mar 24 06:33:46 2011 +++ /trunk/singlewebapp/src/app/org/openmeetings/app/remote/MainService.java Sun Apr 3 04:04:06 2011
@@ -923,6 +923,27 @@
                // TODO Auto-generated method stub
                log.debug("[resultReceived]"+arg0);
        }
+
+       public List<Configuration> getDashboardConfiguration(String SID) {
+               try {
+                       Long users_id = 
Sessionmanagement.getInstance().checkSession(SID);
+ Long user_level = Usermanagement.getInstance().getUserLevelByID(users_id);
+               if 
(AuthLevelmanagement.getInstance().checkUserLevel(user_level)){
+
+ List<Configuration> cfManagementList = new LinkedList<Configuration>();
+
+ cfManagementList.add(Configurationmanagement.getInstance().getConfKey(3L, "dashboard.show.chat")); + cfManagementList.add(Configurationmanagement.getInstance().getConfKey(3L, "dashboard.show.myrooms")); + cfManagementList.add(Configurationmanagement.getInstance().getConfKey(3L, "dashboard.show.rssfeed")); + cfManagementList.add(Configurationmanagement.getInstance().getConfKey(3L, "default.dashboard.tab"));
+
+                       return cfManagementList;
+               }
+       } catch (Exception err) {
+                       log.error("[getDashboardConfiguration]",err);
+               }
+               return null;
+       }


     /*

--
You received this message because you are subscribed to the Google Groups 
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/openmeetings-dev?hl=en.

Reply via email to