Revision: 3874
Author:   seba.wagner
Date:     Sun Jun 26 09:21:48 2011
Log: Fix: Add Cliparts tool and extend bounding box with possibility to rotate clipart after usage
http://code.google.com/p/openmeetings/source/detail?r=3874

Added:
/trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/helper/resources/bounding_item.fla /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/helper/resources/bounding_item.png /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/resources /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/resources/sub_menu.fla /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/resources/sub_menu.png /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/resources/sub_menu_top_grip.fla /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/resources/sub_menu_top_grip.swf /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/subMenuIconToolsToUpload.lzx
Deleted:
/trunk/singlewebapp/server/red5/webapps/openmeetings/public/cliparts/key_bindings.png /trunk/singlewebapp/server/red5/webapps/openmeetings/public/cliparts/kpresenter.png /trunk/singlewebapp/server/red5/webapps/openmeetings/public/cliparts/kservices.png /trunk/singlewebapp/server/red5/webapps/openmeetings/public/cliparts/mozilla-thunderbird.png /trunk/singlewebapp/server/red5/webapps/openmeetings/public/cliparts/mozilla.png /trunk/singlewebapp/server/red5/webapps/openmeetings/public/cliparts/noatun.png /trunk/singlewebapp/server/red5/webapps/openmeetings/public/cliparts/package.png
Modified:
/trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/helper/boundingBoxAll.lzx /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/helper/library.lzx /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/library.lzx /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/mainToolsPanel.lzx

=======================================
--- /dev/null   
+++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/helper/resources/bounding_item.fla Sun Jun 26 09:21:48 2011
Binary file, no diff available.
=======================================
--- /dev/null
+++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/helper/resources/bounding_item.png Sun Jun 26 09:21:48 2011
@@ -0,0 +1,12 @@
+‰PNG
+ + +IHDR àw=ø *IDATH‰í”½J A +?ͪi– *ˆ© ÁNð ,m ÷ ’TÖÖ> ¥¥X­
+}ÀTVë ,ÄÎT® j³š0 4ÄŸb #ñNVI%{Ê3gΙŸ{/äø÷˜È ) 5@
+p p4Ž€- dsNQžþbozÐH› Áç +(á ŽW å™áUÓ‡ÊEÂõó*БL&E{åÕ9XþÙ
+À÷`oI£¼ºã   ¾Jea‡ Y×^˜Ÿ‚§WMü˜ <•tƒ€5ßmþ     « ¤e)@  ¼ Q/ÿ yÉf=B' DÄ&[€ÕE¿
+ i¤mZ]·y« '©Õ  ª¨CïíŽÓ‡ ] ]
+VÄ v/á¾_ Τ€Q \ B¶ ùVU± ÃÛ&¶z®\ YfÑ:v$è . öqtpŽ
+ãÃ;A F ‹f N    IEND®B`‚
=======================================
--- /dev/null   
+++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/resources/sub_menu.fla Sun Jun 26 09:21:48 2011
Binary file, no diff available.
=======================================
--- /dev/null
+++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/resources/sub_menu.png Sun Jun 26 09:21:48 2011
@@ -0,0 +1,7 @@
+‰PNG
+ + +IHDR + + 2Ͻ MIDAT •c` 6`d``Ðg``  n Œqž á? |ž ¦ Ÿ á= +úèÆÛcQT Ë-ùHŠö p7Ã|¨3ä )ä‡:ƒ< È á³ȩ̂ IEND®B`‚
=======================================
--- /dev/null   
+++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/resources/sub_menu_top_grip.fla Sun Jun 26 09:21:48 2011
Binary file, no diff available.
=======================================
--- /dev/null
+++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/resources/sub_menu_top_grip.swf Sun Jun 26 09:21:48 2011
@@ -0,0 +1,3 @@
+CWS xœ+`àúÀÀÀÏÀÀÃÈàÌôÿÿÿý¬a Œ ~ f†3gÎ0¤o~ 6ë ƒ‚¨ “áGÕõzªA² ì 0¤O}`>xùù^W§ÿ{ Ù0H¥´ ûä8¹¬ðÁz¶× + mllL@£ +€6 IÚ)M
=======================================
--- /dev/null
+++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/subMenuIconToolsToUpload.lzx Sun Jun 26 09:21:48 2011
@@ -0,0 +1,186 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<library>
+
+<class name="miniIconSmybolExtraIcons" extends="view" width="22" height="22">
+
+       <attribute name="modi" value="" type="string"/>
+
+       <handler name="onclick">
+               parent.parent.parent.sendNewIcon(this);
+       </handler>
+
+       <handler name="ondblclick">
+               parent.parent.parent.sendNewIcon(this);
+               parent.parent.parent.chooseSelect();
+       </handler>
+
+       <labelTooltip text="$once{ parent.modi }" />
+
+</class>
+
+<class name="subMenuIconToolsToUpload" extends="guiPresenter" labelid="1335" isdragable="false"
+    minimizable="false" maximizable="false" fullToolBar="true"
+    resizeable="false" width="280" height="200" >
+
+       <attribute name="currentSelected" value="null" />
+       <attribute name="refToolbar" value="null" />
+
+       <handler name="oninit">
+               lz.ModeManager.makeModal(this);
+       </handler>
+
+    <handler name="onclose">
+       lz.ModeManager.release(this);
+    </handler>
+
+    <!--- @keywords private -->
+    <method name="passModeEvent" args="eventStr,view" >
+        <![CDATA[
+           if ( eventStr == "onmousedown"  ){
+               if ( view != null ) {
+                  if ( !view.childOf(this) ) {
+                       this.close();
+                  }
+               } else {
+                   this.close();
+               }
+           }
+           if (view && view.childOf(this)) {
+               if (view[ eventStr ]) {
+                   view[ eventStr ].sendEvent( view );
+               }
+               return false;
+           }
+          return true;
+       ]]>
+    </method>
+
+    <method name="sendNewIcon" args="refObj">
+       if ($debug) Debug.write("sendNewIcon :: ",refObj.modi);
+       this.currentSelected = refObj;
+
+ var imageurl = 'http://'+canvas.rtmphostlocal+':'+canvas.red5httpport+canvas.httpRootKey + +'public/cliparts/thumb/'+refObj.modi;
+
+        if ($debug) Debug.write("this.refToolbar :: ",this.refToolbar);
+
+       this.refToolbar._rscIcon.setSource(imageurl);
+
+       this.refToolbar.parent.parent.parent.setSelection(this.refToolbar);
+
+       canvas._drawarea.currentClipArtRessourceName = refObj.modi;
+
+       this.close();
+    </method>
+
+    <method name="chooseSelect">
+       if ($debug) Debug.write("chooseSelect :: ",this.currentSelected);
+       this.close();
+    </method>
+
+    <view resource="sub_menu_top_grip_colored_rsc" y="-14">
+       <!--
+       <handler name="oninit">
+                <![CDATA[
+                    this.setTintRGB(canvas.basebgcolorizer,0);
+                ]]>
+            </handler>
+            <method name="setTintRGB" args="color, brightness">
+                <![CDATA[
+                    if (color != "" && color != null){
+
+                        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>
+             -->
+            <!--
+       <handler name="oninit">
+               this.setTint(canvas.basebgcolorizer); //this,
+       </handler>
+        -->
+    </view>
+
+ <view y="22" width="$once{ parent.width }" clip="true" showhandcursor="false"
+         height="$once{ parent.height - 23 }" clickable="true">
+
+       <view width="$once{ parent.width-14 }">
+
+               <handler name="oninit">
+                       this.getClipArtIcons.doCall();
+               </handler>
+
+               <!--
+               getClipArtIcons()
+                -->
+ <netRemoteCallHib name="getClipArtIcons" funcname="whiteboardservice.getClipArtIcons"
+                remotecontext="$once{ canvas.thishib }" >
+                <handler name="ondata" args="value">
+                    <![CDATA[
+ //The onResult-Handler will be called be the rtmpconnection + //if ($debug) Debug.write("############## getClipArtIcons : ",value);
+                        parent.loadIconThumbs(value);
+                    ]]>
+                </handler>
+            </netRemoteCallHib>
+
+            <method name="loadIconThumbs" args="list">
+               <![CDATA[
+
+ var imageurl = 'http://'+canvas.rtmphostlocal+':'+canvas.red5httpport+canvas.httpRootKey
+                                        +'public/cliparts/thumb/';
+
+                    //if ($debug) Debug.write("imageurl :: ",imageurl);
+
+                    for (var i=0;i<list.length;i++) {
+
+ //if ($debug) Debug.write("list[i].indexOf() ",list[i],list[i].indexOf("."));
+
+                       if (list[i].indexOf(".") > 1 ) {
+
+                            var iconresourceName = imageurl + list[i];
+
+                            new lz.miniIconSmybolExtraIcons(this,{
+                                          modi:list[i],
+                                          resource:iconresourceName
+                                      });
+
+                       }
+
+                    }
+
+                ]]>
+            </method>
+
+               <wrappinglayout axis="x" spacing="2" 
xinset="2"></wrappinglayout>
+
+       </view>
+
+       <vscrollbar />
+    </view>
+
+    <!--
+ <simpleLabelButton labelid="1072" width="150" x="4" y="$once{ parent.height-22 }">
+        <handler name="onclick">
+            if ($debug) Debug.write("Upload More");
+        </handler>
+    </simpleLabelButton>
+
+ <simpleLabelButton labelid="1073" width="120" x="158" y="$once{ parent.height-22 }">
+        <handler name="onclick">
+            if ($debug) Debug.write("Upload More");
+            parent.chooseSelect();
+        </handler>
+    </simpleLabelButton>
+     -->
+
+</class>
+
+</library>
=======================================
--- /trunk/singlewebapp/server/red5/webapps/openmeetings/public/cliparts/key_bindings.png Thu Apr 28 05:52:33 2011
+++ /dev/null   
Binary file, no diff available.
=======================================
--- /trunk/singlewebapp/server/red5/webapps/openmeetings/public/cliparts/kpresenter.png Thu Apr 28 05:52:33 2011
+++ /dev/null   
Binary file, no diff available.
=======================================
--- /trunk/singlewebapp/server/red5/webapps/openmeetings/public/cliparts/kservices.png Thu Apr 28 05:52:33 2011
+++ /dev/null   
Binary file, no diff available.
=======================================
--- /trunk/singlewebapp/server/red5/webapps/openmeetings/public/cliparts/mozilla-thunderbird.png Thu Apr 28 05:52:33 2011
+++ /dev/null   
Binary file, no diff available.
=======================================
--- /trunk/singlewebapp/server/red5/webapps/openmeetings/public/cliparts/mozilla.png Thu Apr 28 05:52:33 2011
+++ /dev/null   
Binary file, no diff available.
=======================================
--- /trunk/singlewebapp/server/red5/webapps/openmeetings/public/cliparts/noatun.png Thu Apr 28 05:52:33 2011
+++ /dev/null   
Binary file, no diff available.
=======================================
--- /trunk/singlewebapp/server/red5/webapps/openmeetings/public/cliparts/package.png Thu Apr 28 05:52:33 2011
+++ /dev/null   
Binary file, no diff available.
=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/helper/boundingBoxAll.lzx Mon Jun 13 07:52:13 2011 +++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/helper/boundingBoxAll.lzx Sun Jun 26 09:21:48 2011
@@ -10,9 +10,50 @@

     this is the selection Box for all Whiteboard Objects
  -->
-
-<class name="boundingBoxAll" extends="view"
-        >
+
+<class name="boundingBoxAllRotationMarger" extends="view"
+          width="24" height="24" resource="bounding_item_rsc">
+
+       <attribute name="dragStarted" value="false" type="boolean"/>
+
+       <handler name="onmouseover">
+        lz.Cursor.setCursorGlobal("arrow_draw_panel_cursor");
+    </handler>
+    <handler name="onmouseout">
+        lz.Cursor.unlock();
+    </handler>
+
+    <handler name="onx" args="x">
+       this.doMoveDragPoint();
+    </handler>
+    <handler name="ony" args="y">
+        this.doMoveDragPoint();
+    </handler>
+
+    <method name="doMoveDragPoint">
+       if (!this.dragStarted) {
+               return;
+       }
+       parent.doMoveDragPoint(this.x+12,this.y+12);
+    </method>
+
+    <handler name="onmousedown">
+       this.dragStarted = true;
+       parent.doStartDragPoint();
+        this.dragger.apply();
+    </handler>
+    <handler name="onmouseup">
+       this.dragStarted = false;
+        this.dragger.remove();
+        parent.endDrawClipArtDrag();
+        lz.Cursor.unlock();
+    </handler>
+
+    <dragstate name="dragger" />
+
+</class>
+
+<class name="boundingBoxAll" extends="view" >

 <!--
        <method name="removeIt">
@@ -20,7 +61,7 @@
        </method>
  -->
        <method name="removeIt">
-               if ($debug) Debug.write("removeIt +**********",this.isinited);
+               //Debug.write("removeIt +**********",this.isinited);
                this.whiteboardRef.setAttribute('boundingIsActive',false);
                if (this.rs) this.rs.remove();
                if (this.dragger) this.dragger.remove();
@@ -106,7 +147,16 @@

                        } else if (this.objRef.name.indexOf('swf') >= 0) {
                 this.setAttribute("innerInsetScrollbars",16);
-            }
+            } else if (this.objRef.name.indexOf('clipart') >= 0) {
+               this.canBeResized = false;
+
+               new lz.boundingBoxAllRotationMarger(this,{
+                              x:this.objRef.clipart.clipArtEndx-12,
+                              y:this.objRef.clipart.clipArtEndy-12
+                               });
+
+            }
+

this.whiteboardRef.parent.parent._propertyPanel.loadPanelByBoundingBox(this.whiteboardRef,this.objRef);

@@ -114,6 +164,20 @@
                ]]>
        </handler>

+       <method name="doStartDragPoint">
+ this.whiteboardRef.setStartPoint(this.objRef.clipart.x+this.x,this.objRef.clipart.y+this.y);
+       </method>
+
+       <method name="doMoveDragPoint" args="x,y">
+ this.whiteboardRef.trackDrawClipArtDraw(this.x+x,this.y+y,this.objRef.clipart);
+       </method>
+
+       <method name="endDrawClipArtDrag">
+        this.whiteboardRef.endDrawClipArtDrag(this.objRef);
+        this.whiteboardRef.reselectShowObjectBounds(this.objRef.name);
+    </method>
+
+
        <!--
Do update the Selection-Box, in case another Moderator or User has moved the Object
           while you have it in focus
@@ -171,22 +235,22 @@
     </handler>

     <handler name="onx">
-       if(this.doHandlerUpdates){
-
-               var tx = this.getAttributeRelative('x',objRef);
+        if(this.doHandlerUpdates){
+
+            var tx = this.getAttributeRelative('x',objRef);

             if(this.objRef.parent.isSnapToGrid){
tx = Math.round(tx/this.objRef.parent.gridWidth)*this.objRef.parent.gridWidth; this.setAttribute("x",Math.round(this.x/this.objRef.parent.gridWidth)*this.objRef.parent.gridWidth)
             }
-
-               this.objRef.setAttribute('x',tx);
-       }
+
+            this.objRef.setAttribute('x',tx);
+        }
     </handler>

     <handler name="ony">
-       if(this.doHandlerUpdates){
-
+        if(this.doHandlerUpdates){
+
             var ty = this.getAttributeRelative('y',objRef);

             if(this.objRef.parent.isSnapToGrid){
@@ -194,8 +258,8 @@
this.setAttribute("y",Math.round(this.y/this.objRef.parent.gridWidth)*this.objRef.parent.gridWidth)
             }

-               this.objRef.setAttribute('y',ty);
-       }
+            this.objRef.setAttribute('y',ty);
+        }
     </handler>

        <method name="setStartValues">
@@ -270,7 +334,6 @@
                if (this.objRef.typeOfObject == 'swf'){
                    if (canvas.ismoderator || canvas.isAllowedToDraw) {
//if ($debug) Debug.write("-- setCurrentMouseWheelObject --",this.objRef._scrollstv);
-                    //FIXME: This is disabled for now
                     //setCurrentMouseWheelObject(this.objRef._scrollstv);
                 }
                }
@@ -340,7 +403,8 @@
                                        x="${ 
parent.width-this.width-parent.innerInsetScrollbars }" >
                <handler name="onclick">
                        //Debug.write("this.parent.objRef.name: 
",this.parent.objRef.name);
-                       parent.__LZRemoveItem(null);
+                       
//this.parent.whiteboardRef.deleteItemByName(this.parent.objRef.name);
+                       parent.__LZRemoveItem(this.parent.objRef);
                </handler>
        </baseChooseIcon>

@@ -392,16 +456,17 @@
     </view>
      -->

-       <view resource="_boundingBoxPointerTL" x="0" y="0" />
- <view resource="_boundingBoxPointerTR" x="${ parent.width-this.width }" y="0" />
-       <view name="_gripperResize" visibility="visible"
- resource="_boundingBoxPointerUR" x="${ parent.width-this.width }" y="${ parent.height-this.height }" - onmousedown="parent._applyResizestateFromThis()" onmouseup="parent._removeResizestateFromThis()" >
-               <labelTooltip labelid="252" />
-       </view>
-       <view name="_gripperNoResize" visibility="hidden"
- resource="_boundingBoxPointerURNoGripper" x="${ parent.width-this.width }" y="${ parent.height-this.height }" /> - <view resource="_boundingBoxPointerUL" x="0" y="${ parent.height-this.height }" />
+    <view resource="_boundingBoxPointerTL" x="0" y="0" />
+ <view resource="_boundingBoxPointerTR" x="${ parent.width-this.width }" y="0" />
+    <view name="_gripperResize" visibility="visible"
+ resource="_boundingBoxPointerUR" x="${ parent.width-this.width }" y="${ parent.height-this.height }" + onmousedown="parent._applyResizestateFromThis()" onmouseup="parent._removeResizestateFromThis()" >
+        <labelTooltip labelid="252" />
+    </view>
+    <view name="_gripperNoResize" visibility="hidden"
+ resource="_boundingBoxPointerURNoGripper" x="${ parent.width-this.width }" y="${ parent.height-this.height }" /> + <view resource="_boundingBoxPointerUL" x="0" y="${ parent.height-this.height }" />
+

 </class>

=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/helper/library.lzx Mon Oct 12 03:58:23 2009 +++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/helper/library.lzx Sun Jun 26 09:21:48 2011
@@ -1,5 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <library>
+
+       <resource name="bounding_item_rsc" src="resources/bounding_item.png" />

     <include href="dragView.lzx" />
     <include href="boundingBoxAll.lzx" />
=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/library.lzx Mon Oct 12 03:58:23 2009 +++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/library.lzx Sun Jun 26 09:21:48 2011
@@ -1,5 +1,11 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <library>
+
+ <resource name="sub_menu_tools_panel_rsc" src="resources/sub_menu.png" /> + <resource name="sub_menu_top_grip_colored_rsc" src="resources/sub_menu_top_grip.swf" />
+
        <include href="mainToolsPanelItem.lzx" />
        <include href="mainToolsPanel.lzx" />
+       <include href="subMenuIconToolsToUpload.lzx" />
+
 </library>
=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/mainToolsPanel.lzx Wed Jun 8 06:05:06 2011 +++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/panels/maintoolspanel/mainToolsPanel.lzx Sun Jun 26 09:21:48 2011
@@ -3,12 +3,13 @@

<class name="verticalMenuIconBar" extends="view" y="22" x="4" clickable="true">
        <simplelayout axis="y" spacing="2" />
- <mainToolsPanelItem name="plain" modi="plainConfirm" labelid="69" resourceItem="plain" setSelectionToItem="false" /> + <mainToolsPanelItem name="plain" modi="plain" labelid="69" resourceItem="plain" setSelectionToItem="false" /> <mainToolsPanelItem name="plainSlide" modi="plainSlide" labelid="1005" resourceItem="plainSlides" setSelectionToItem="false" />
+
        <!--
<mainToolsPanelItem name="drag" modi="drag" labelid="1113" resourceItem="arrow_draw_panel_tool_cursor" />
         -->
-       <!-- -->
+
<mainToolsPanelItem name="saveobj" modi="saveobj" labelid="197" resourceItem="saveobj" setSelectionToItem="false" />

        <mainToolsHPanelSeperator>
@@ -33,16 +34,47 @@
<mainToolsPanelItem name="rectangle" modi="rectangle" labelid="77" resourceItem="rectangle" /> <mainToolsPanelItem name="ellipse" modi="ellipse" labelid="78" resourceItem="ellipse" /> <mainToolsPanelItem name="drawarrow" modi="drawarrow" labelid="79" resourceItem="drawarrowicon_rsc" />
+
+    <mainToolsPanelItem name="clipart" modi="clipart" labelid="1323" >
+
+        <handler name="oninit">
+            this._bgIcon.setAttribute("visibility","hidden");
+ var imageurl = 'http://'+canvas.rtmphostlocal+':'+canvas.red5httpport+canvas.httpRootKey
+                                            +'public/cliparts/thumb/'
+ +canvas._drawarea.currentClipArtRessourceName;
+
+            this._rscIcon.setSource(imageurl);
+        </handler>
+
+        <!--
+ <view x="$once{ parent.x_insetResource }" y="$once{ parent.x_insetResource }"
+              height="18" width="18" stretches="both" name="_bgIconIcon" />
+         -->
+
+        <view resource="sub_menu_tools_panel_rsc"
+ x="$once{ parent.width - 10 }" y="$once{ parent.height - 10 }">
+            <handler name="onclick">
+                if ($debug) Debug.write("Show Sub Menu");
+                new lz.subMenuIconToolsToUpload(canvas,{
+ x:this.getAttributeRelative("x",canvas) - 2, + y:this.getAttributeRelative("y",canvas) + 22,
+                                refToolbar:parent
+                            });
+            </handler>
+            <labelTooltip labelid="1335" />
+        </view>
+
+    </mainToolsPanelItem>
+
 </class>

<class name="horizontalMenuIconBar" extends="view" y="22" x="4" clickable="true">
        <simplelayout axis="x" spacing="2" />
- <mainToolsPanelItem name="plain" modi="plainConfirm" labelid="69" resourceItem="plain" setSelectionToItem="false" /> + <mainToolsPanelItem name="plain" modi="plain" labelid="69" resourceItem="plain" setSelectionToItem="false" /> <mainToolsPanelItem name="plainSlide" modi="plainSlide" labelid="1005" resourceItem="plainSlides" setSelectionToItem="false" />
        <!--
<mainToolsPanelItem name="drag" modi="drag" labelid="1113" resourceItem="arrow_draw_panel_tool_cursor" />
-        -->
-       <!-- -->
+     -->
<mainToolsPanelItem name="saveobj" modi="saveobj" labelid="197" resourceItem="saveobj" setSelectionToItem="false" />

        <mainToolsVPanelSeperator>
@@ -67,11 +99,39 @@
<mainToolsPanelItem name="rectangle" modi="rectangle" labelid="77" resourceItem="rectangle" /> <mainToolsPanelItem name="ellipse" modi="ellipse" labelid="78" resourceItem="ellipse" /> <mainToolsPanelItem name="drawarrow" modi="drawarrow" labelid="79" resourceItem="drawarrowicon_rsc" />
+       <mainToolsPanelItem name="clipart" modi="clipart" labelid="1323" >
+
+        <handler name="oninit">
+               this._bgIcon.setAttribute("visibility","hidden");
+ var imageurl = 'http://'+canvas.rtmphostlocal+':'+canvas.red5httpport+canvas.httpRootKey
+                                            +'public/cliparts/thumb/'
+ +canvas._drawarea.currentClipArtRessourceName;
+
+            this._rscIcon.setSource(imageurl);
+        </handler>
+
+ <view x="$once{ parent.x_insetResource }" y="$once{ parent.x_insetResource }"
+              height="18" width="18" stretches="both" name="_bgIconIcon" />
+
+        <view resource="sub_menu_tools_panel_rsc"
+ x="$once{ parent.width - 10 }" y="$once{ parent.height - 10 }">
+            <handler name="onclick">
+                if ($debug) Debug.write("Show Sub Menu");
+                new lz.subMenuIconToolsToUpload(canvas,{
+ x:this.getAttributeRelative("x",canvas) - 2, + y:this.getAttributeRelative("y",canvas) + 22,
+                                refToolbar:parent
+                            });
+            </handler>
+            <labelTooltip labelid="1335" />
+        </view>
+
+    </mainToolsPanelItem>
 </class>

-
+
 <class name="mainToolsTopPanel" extends="baseTopPanel"
-          width="394" height="33" title="" docking="true"
+          width="420" height="33" title="" docking="true"
           activationClassBounding="mainToolsLeftPanel"
           activationVClassBounding="mainToolsTopPanel"
           leftClassPanel="mainToolsLeftPanel"
@@ -79,7 +139,7 @@
           bottomClassPanel="mainToolsTopPanel"
           rightClassPanel="mainToolsLeftPanel"
           verticalClassActive="true"
-          hWidth="33" hHeight="394">
+          hWidth="33" hHeight="420">

     <method name="updateToolSelection" args="modi">
        <![CDATA[
@@ -102,7 +162,7 @@
 </class>

 <class name="mainToolsLeftPanel" extends="baseLeftPanel"
-          width="33" height="394" title="" docking="true"
+          width="33" height="420" title="" docking="true"
           activationClassBounding="mainToolsLeftPanel"
           activationVClassBounding="mainToolsTopPanel"
           topClassPanel="mainToolsTopPanel"
@@ -110,7 +170,7 @@
           leftClassPanel="mainToolsLeftPanel"
           rightClassPanel="mainToolsLeftPanel"
           verticalClassActive="false"
-          vWidth="394" vHeight="33">
+          vWidth="420" vHeight="33">

     <method name="updateToolSelection" args="modi">
         <![CDATA[
@@ -176,7 +236,7 @@
     <verticalMenuIconBarPointer x="2" y="20" />
 </class>

-
+<!--
 <class name="mainToolsVPanel" extends="basePanel"
           width="348" height="50" title="" docking="true"
           activationClassBounding="mainToolsPanel"
@@ -204,6 +264,7 @@

        <verticalMenuIconBar name="_tools" />
 </class>
+ -->

        <!--
<drawChooseModirPlain y="4" name="b3" modi="plain" resourceN="plain" labelid="69" />

--
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