new multiuser whiteboard icon and fixes for text object

This commit is contained in:
Chad Pilkey 2017-05-08 13:46:47 -04:00
parent 721495d460
commit f2bc898750
8 changed files with 29 additions and 8 deletions

View File

@ -231,7 +231,7 @@ DataGrid {
.whiteboardUndoButtonStyle, .whiteboardCircleButtonStyle, .whiteboardClearButtonStyle,
.whiteboardTriangleButtonStyle, .whiteboardTextButtonStyle, .whiteboardRectangleButtonStyle,
.whiteboardPanZoomButtonStyle, .whiteboardLineButtonStyle, .whiteboardScribbleButtonStyle,
.chatClearButtonStyle
.chatClearButtonStyle, .multiUserWhiteboardOnButtonStyle, .multiUserWhiteboardOffButtonStyle
{
textIndent: 0;
paddingLeft: 0;
@ -250,6 +250,16 @@ DataGrid {
fontSize: 12;
}
.multiUserWhiteboardOnButtonStyle
{
icon: Embed('assets/images/multiuserwhiteboardon.png');
}
.multiUserWhiteboardOffButtonStyle
{
icon: Embed('assets/images/multiuserwhiteboardoff.png');
}
.whiteboardUndoButtonStyle
{
icon: Embed('assets/images/undo.png');

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

View File

@ -242,10 +242,11 @@ package org.bigbluebutton.modules.whiteboard
_annotationsList.push(gobj);
}
}
/*
for (var ij:int = 0; ij < this._annotationsList.length; ij++){
redrawGraphic(this._annotationsList[ij] as GraphicObject, ij);
}
*/
}
}

View File

@ -96,10 +96,13 @@ package org.bigbluebutton.modules.whiteboard.business.shapes
}
public function redraw(parentWidth:Number, parentHeight:Number, zoom:Number):void {
_parentWidth = parentWidth;
_parentHeight = parentHeight;
_zoom = zoom;
makeGraphic();
// in some cases (like moving the window around) a redraw is called with identical information as previous values
if (_parentWidth != parentWidth || _parentHeight != parentHeight || _zoom != zoom) {
_parentWidth = parentWidth;
_parentHeight = parentHeight;
_zoom = zoom;
makeGraphic();
}
}
public function updateAnnotation(a:Annotation):void {

View File

@ -94,6 +94,10 @@ package org.bigbluebutton.modules.whiteboard.business.shapes {
_zoom = zoom;
_fontSize = _ao.fontSize;
if (_status == AnnotationStatus.DRAW_END) {
makeEditable(false);
}
makeGraphic();
}
@ -128,7 +132,7 @@ package org.bigbluebutton.modules.whiteboard.business.shapes {
if (!_editable) {
text = _ao.text;
textColor = _ao.textColor;
textColor = _ao.fontColor;
}
}

View File

@ -50,6 +50,9 @@ package org.bigbluebutton.modules.whiteboard.views {
}
public function newTextObject(tobj:TextObject):void {
if (_currentTextObject != null) {
canvasMouseDown();
}
_currentTextObject = tobj;
_whiteboardId = _whiteboardModel.getCurrentWhiteboardId();
_whiteboardCanvas.textToolbar.syncPropsWith(_currentTextObject);

View File

@ -374,5 +374,5 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
useHandCursor="true" value="2" showDataTip="true" snapInterval="1" dataTipOffset="0" labelOffset="0"
accessibilityName="{ResourceUtil.getInstance().getString('bbb.highlighter.toolbar.thickness.accessibilityName')}" />
<mx:Image source="{thin_icon}" horizontalAlign="center" width="30"/>
<mx:Button id="multiUserBtn" click="changeMultiUser()" label="{multiUser ? 'M' : 'P'}" />
<mx:Button id="multiUserBtn" click="changeMultiUser()" width="30" height="30" styleName="{multiUser ? 'multiUserWhiteboardOnButtonStyle' : 'multiUserWhiteboardOffButtonStyle'}"/>
</mx:VBox>