openmeetings-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Susheel Jalali <Susheel.Jal...@Coscend.com>
Subject Re: How to Create new tools and New Toolbar for whiteboard
Date Wed, 06 Jan 2016 19:42:26 GMT
Dear OpenMeetings Developers,

We are seeking your guidance on two issues we are facing, in adding new 
Tools to the existing Toolbar of whiteboard.

1.  Icon is not properly appearing as expected.
2.  Size of bounding box, which contains all the Tools, is not flexibly 
adjusting itself to accommodate the new Tool icon square.

Here are the details:
----------------------
We  have added a new square view for a tool icon to existing Toolbar, 
but we are facing two issues:
1. Its icon is not appearing properly, even though we have created a 
thumbnail version of it using ImageMagick.  It has been placed in the 
resources directory as a PNG file:
~/WebContent/src/modules/conference/whiteboard/panels/maintoolspanel/resources

This directory contains the icon for "submenu" of cliparts Tool, but not 
the other icons like letter, paint, line_rsc, uline_rsc.
Where are those stored and how are they displayed.  Similar process we 
would follow for this new Tool icon.

As advised to focus on this file mainToolsPanel.lzx, We have added our 
Tool just before the Clipart tool, in class "horizontalMenuIconBar":

    <mainToolsPanelItem name="BTool" modi="BTool" labelid="2100" >

     <view x="$once{ parent.x_insetResource }" y="$once{ 
parent.x_insetResource }"
               height="18" width="18" stretches="both" 
name="_bgBToolIcon"   >
       <view resource="BTool_rsc"
           x="$once{ parent.width - 10 }" y="$once{  parent.height - 10 }">
       </view>
     <handler name="onclick">
          // Action call for this Tool, which is working the way we 
expect, after clicking on the square space of this Tool
          //  It is a call to an existing method of whiteboard, to 
display an image on it.
     </handler>
    <labelTooltip labelid="2100" />
   </view>
  </mainToolsPanelItem>

The Tooltip is also displayed as expected.

2.  Where can we increase the size of the bounding box of the Toolbar, 
as it is not automatically adjusting itself?  The clipart icon view is 
getting pushed out of the Toolbar, towards the right, due to insertion 
of the new Tool before it.  Is there a way to make the bounding box 
self-adjusting ?

Sincerely,

Susheel Jalali

Coscend Communications Solutions

www.Coscend.com <http://www.coscend.com/>

----------------------------------------------------------------

CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail 
Messages from Coscend Communications Solutions' posted 
at:http://www.Coscend.com/Terms_and_Conditions.html


On 12/29/15 09:41, Susheel Jalali wrote:
>
> Dear Maxim,
>
> Thank you forguiding us to the file below thathelped understandhow the 
> classes <horizontalMenuIconBar>, <mainToolsPanel> for Toolbar and 
> <mainToolsPanelItem> for the Tools, are defined and used to compose 
> the class: <mainToolsTopPanel>, which is instantiated infile: 
> fixedFileExplorerWhiteBoard.lzx.
>
> File: 
> /openmeetings-flash/src/main/swf/modules/conference/whiteboard/panels/maintoolspanel/mainToolsPanel.lzx
>
> Could you please provide some additional insights into toolbar?
>
> (1) to better understand this feature, we would like to first adda new 
> Tool, <mainToolsPanelItem> in existing toolbar (horizontalMenuIconBar) 
> .  Will the following method work?
>
>   1.   Add its instance with new name, in mainToolsPanel
>
> 2.   Add its icon image as a resourceItem and a new LabelID,
>
> 3.   Set its selection via "onmouseup" event
>
>   4.   Should we add an onclick handler to call any other method e.g. 
> canvas._drawarea.parent.parent.clearAreaAndAddImage, or is there any 
> other way advised for that?  In existing Tools, only Cliparts has such 
> a handler.
>
> (2) Are there any pointers to better understandthe relationships and 
> responsibilities of all the classes defined in this file, including 
> key classthatinstantiates a Toolbar in the Whiteboardand thatcontains 
> an instance of <horizontalMenuIconBar> named "_tools": <mainToolsTopPanel>
>
> It seems there are few sets of classes which work together in case of 
> vertically aligned bar/pointer, and another set of classes in the 
> scenario where a developer instantiates the horizontally aligned 
> menubar/ pointer.
>
> (3)Is it designed so that one can have the toolbar either as a 
> vertical one or a horizontal one, since we use the same name "_tools" 
> for both ?
>
> Sincerely,
>
> Susheel Jalali
>
> Coscend Communications Solutions
>
> www.Coscend.com <http://www.coscend.com/>
>
> ----------------------------------------------------------------
>
> CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail 
> Messages from Coscend Communications Solutions' posted 
> at:http://www.Coscend.com/Terms_and_Conditions.html
>
> -------- Original Message --------
>
> Subject: Re: How to Create new tools and New Toolbar for whiteboard
>
> From: Maxim Solodovnik <solomax666@gmail.com>
>
> Date: Wed, December 23, 2015 12:13 am
>
> To: dev <dev@openmeetings.apache.org <mailto:dev@openmeetings.apache.org>>
>
> Cc: "IT@Coscend.com <mailto:IT@Coscend.com>" <IT@coscend.com 
> <mailto:IT@coscend.com>>
>
> please check
>
> /openmeetings-flash/src/main/swf/modules/conference/whiteboard/panels/maintoolspanel/mainToolsPanel.lzx
>
> On Wed, Dec 23, 2015 at 4:17 AM, Susheel Jalali 
> <Susheel.Jalali@coscend.com <mailto:Susheel.Jalali@coscend.com>>
>
> wrote:
>
> > Dear OpenMeetings Developers,
>
> >
>
> > We are seeking your guidance regarding an enhancement to whiteboard in
>
> > conference room.
>
> >
>
> > We wish to add new tool to the existing toolbar, and also create a new
>
> > Toolbar for a set of new Tools.
>
> >
>
> > What are the file(s) and examples to focus on for understanding the
>
> > container and the tool items being added for the above objectives.
>
> >
>
> > --
>
> >
>
> > Sincerely,
>
> >
>
> > Susheel Jalali
>
> > Coscend Communications Solutions
>
> >www.Coscend.com<http://www.Coscend.com>
>
> > ----------------------------------------------------------------
>
> >
>
> > CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail
>
> > Messages from Coscend Communications Solutions' posted at:
>
> >http://www.Coscend.com/Terms_and_Conditions.html
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message