Return-Path: X-Original-To: apmail-openmeetings-dev-archive@www.apache.org Delivered-To: apmail-openmeetings-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E924A18A8C for ; Thu, 7 Jan 2016 12:23:28 +0000 (UTC) Received: (qmail 23452 invoked by uid 500); 7 Jan 2016 12:23:28 -0000 Delivered-To: apmail-openmeetings-dev-archive@openmeetings.apache.org Received: (qmail 23426 invoked by uid 500); 7 Jan 2016 12:23:28 -0000 Mailing-List: contact dev-help@openmeetings.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openmeetings.apache.org Delivered-To: mailing list dev@openmeetings.apache.org Received: (qmail 23414 invoked by uid 99); 7 Jan 2016 12:23:28 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jan 2016 12:23:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id F119C180495 for ; Thu, 7 Jan 2016 12:23:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.13 X-Spam-Level: *** X-Spam-Status: No, score=3.13 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id alsYGdy04YBV for ; Thu, 7 Jan 2016 12:23:21 +0000 (UTC) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 8551D439FC for ; Thu, 7 Jan 2016 12:23:20 +0000 (UTC) Received: by mail-pa0-f42.google.com with SMTP id uo6so239472628pac.1 for ; Thu, 07 Jan 2016 04:23:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2b9xXSfOmJpmo0cRFGrJ/nSBv6eOHRe1oMfyTL1/qRw=; b=iVhmygte/UeAext5wprfceBi6YFW3jjlPX3yP419mpPywLle50beJHMg2BvtFdRNJi b47kV0gmBfVBugr8S00nfyHeuZLJZGQrwN9Ta3vWLIrsv800hou9XIxO/JYbHkNoCiWH JMKfnKkEVdw5Qre7WQK3c4ydkDkCl0y0io/WWXKIKJPOIwqo/T3KNjHQOSCNmhC2PEkN QT3146YvFSih9GE88oBWbVdg67WQV9JxkZLNMGX/mZ9BJgi9Xta/FICLMtkbV1lVa9LL ZurjcV4w2FW77HUNmVeEyMkqb752cC01ed3UrCl0hk5hrq0L9incr+ZdDigfIwwW2r1o 2A3w== MIME-Version: 1.0 X-Received: by 10.66.255.97 with SMTP id ap1mr15463803pad.135.1452169399869; Thu, 07 Jan 2016 04:23:19 -0800 (PST) Received: by 10.66.229.8 with HTTP; Thu, 7 Jan 2016 04:23:19 -0800 (PST) In-Reply-To: <568D6E22.6000404@Coscend.com> References: <56820802.9010101@Coscend.com> <568D6E22.6000404@Coscend.com> Date: Thu, 7 Jan 2016 18:23:19 +0600 Message-ID: Subject: Re: How to Create new tools and New Toolbar for whiteboard From: Maxim Solodovnik To: dev Cc: "IT@Coscend.com" Content-Type: multipart/alternative; boundary=047d7b15af893baa1a0528bd8979 --047d7b15af893baa1a0528bd8979 Content-Type: text/plain; charset=UTF-8 mainToolsTopPanel has fixed width, you need to increase this to display icon you need to specify resourceItem for mainToolsPanelItem, I guess :) On Thu, Jan 7, 2016 at 1:42 AM, Susheel Jalali wrote: > 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": > > > > height="18" width="18" stretches="both" name="_bgBToolIcon" > > > x="$once{ parent.width - 10 }" y="$once{ parent.height - 10 }"> > > > // 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. > > > > > > 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 > > ---------------------------------------------------------------- > > 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 , for Toolbar and >> for the Tools, are defined and used to compose the >> class: , 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, 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 named "_tools": >> >> 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 >> >> ---------------------------------------------------------------- >> >> 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 >> >> Date: Wed, December 23, 2015 12:13 am >> >> To: dev > >> >> >> Cc: "IT@Coscend.com " > 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 > >> >> 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 >> >> > ---------------------------------------------------------------- >> >> > >> >> > CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail >> >> > Messages from Coscend Communications Solutions' posted at: >> >> >http://www.Coscend.com/Terms_and_Conditions.html >> >> > -- WBR Maxim aka solomax --047d7b15af893baa1a0528bd8979--