From a4d243b202868e040977570dc67a8c89637bec3e Mon Sep 17 00:00:00 2001 From: Ghazi Triki Date: Thu, 23 Jul 2015 13:02:32 +0100 Subject: [PATCH] Added TabIndexer class for automating tab indexation. --- .../org/bigbluebutton/common/TabIndexer.as | 114 ++++++++++++++++++ .../main/views/AudioSelectionWindow.mxml | 14 ++- .../main/views/CameraDisplaySettings.mxml | 22 ++-- .../main/views/FlashMicSettings.mxml | 30 ++--- .../main/views/LockSettings.mxml | 12 +- .../main/views/MainApplicationShell.mxml | 17 ++- .../bigbluebutton/main/views/MainToolbar.mxml | 37 +++--- .../main/views/ShortcutHelpWindow.mxml | 20 ++- .../modules/chat/views/AddChatTabBox.mxml | 14 +-- .../modules/chat/views/ChatBox.mxml | 16 +-- .../modules/chat/views/ChatView.mxml | 14 +-- .../modules/chat/views/ChatWindow.mxml | 14 +-- .../view/components/DesktopPublishWindow.mxml | 18 +-- .../view/components/DesktopViewWindow.mxml | 16 ++- .../layout/views/ToolbarComponent.mxml | 19 ++- .../present/ui/views/PresentationWindow.mxml | 41 +++---- .../whiteboard/views/WhiteboardToolbar.mxml | 17 +-- 17 files changed, 254 insertions(+), 181 deletions(-) create mode 100644 bigbluebutton-client/src/org/bigbluebutton/common/TabIndexer.as diff --git a/bigbluebutton-client/src/org/bigbluebutton/common/TabIndexer.as b/bigbluebutton-client/src/org/bigbluebutton/common/TabIndexer.as new file mode 100644 index 0000000000..fd2e8b9280 --- /dev/null +++ b/bigbluebutton-client/src/org/bigbluebutton/common/TabIndexer.as @@ -0,0 +1,114 @@ +/** + * BigBlueButton open source conferencing system - http://www.bigbluebutton.org/ + * + * Copyright (c) 2015 BigBlueButton Inc. and by respective authors (see below). + * + * This program is free software; you can redistribute it and/or modify it under the + * terms of the GNU Lesser General Public License as published by the Free Software + * Foundation; either version 3.0 of the License, or (at your option) any later + * version. + * + * BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A + * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License along + * with BigBlueButton; if not, see . + * + */ +package org.bigbluebutton.common +{ + import flash.events.Event; + import flash.events.EventDispatcher; + import mx.core.Container; + import mx.core.IMXMLObject; + import mx.core.UIComponent; + import mx.events.FlexEvent; + public class TabIndexer extends EventDispatcher implements IMXMLObject + { + private var _document:Container; + private var _id:String; + private var _ready:Boolean; + private var _startIndex:int; + private var _tabIndices:Array; + + /** + * @inheritDoc + */ + public function initialized(document:Object, id:String):void + { + _id=id; + _document=document as Container; + _document.addEventListener(FlexEvent.CREATION_COMPLETE, documentCreationCompleteHandler, false, 0, true); + } + + [Bindable(event="startIndexChange")] + /** + * tabIndex value of the first element. + */ + public function get startIndex():int + { + return _startIndex; + } + + public function set startIndex(value:int):void + { + if (_startIndex !== value) + { + _startIndex=value; + dispatchEvent(new Event("startIndexChange")); + indexTabs(); + } + } + + [Bindable(event="tabIndicesChange")] + /** + * An array containing tab indexable properties to index. Tab indexing will use array order. + */ + public function get tabIndices():Array + { + return _tabIndices; + } + + public function set tabIndices(value:Array):void + { + if (_tabIndices !== value) + { + _tabIndices=value; + dispatchEvent(new Event("tabIndicesChange")); + indexTabs(); + } + } + + /** + * Runs a tab indexation on document components contained in tabIndices Array. + */ + protected function indexTabs():void + { + if (_ready) + { + for (var i:int=0; i < tabIndices.length; i++) + { + if (_tabIndices[i - 1] != null) + { + UIComponent(_tabIndices[i - 1]).tabIndex=startIndex + i; + } + } + } + } + + /** + * + * Sets state to ready to index after the document creation is compelete and starts + * the first tab indexation. + * @param event CREATION_COMPLETE event of the document + * + */ + private function documentCreationCompleteHandler(event:FlexEvent):void + { + _document.removeEventListener(FlexEvent.CREATION_COMPLETE, documentCreationCompleteHandler, false); + _ready=true; + indexTabs(); + } + } +} diff --git a/bigbluebutton-client/src/org/bigbluebutton/main/views/AudioSelectionWindow.mxml b/bigbluebutton-client/src/org/bigbluebutton/main/views/AudioSelectionWindow.mxml index 6d6077c5f8..ff6114f314 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/main/views/AudioSelectionWindow.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/main/views/AudioSelectionWindow.mxml @@ -21,6 +21,7 @@ with BigBlueButton; if not, see . . private var phoneOptions:PhoneOptions = new PhoneOptions; - [Bindable] private var baseIndex:int = 1; - private function init():void { var conference:Conference = UserManager.getInstance().getConference(); @@ -109,10 +108,13 @@ with BigBlueButton; if not, see . } ]]> + + + @@ -121,14 +123,14 @@ with BigBlueButton; if not, see . - - @@ -140,6 +142,6 @@ with BigBlueButton; if not, see . + click="onCancelClicked()" styleName="micSettingsWindowPlaySoundButtonStyle" /> \ No newline at end of file diff --git a/bigbluebutton-client/src/org/bigbluebutton/main/views/CameraDisplaySettings.mxml b/bigbluebutton-client/src/org/bigbluebutton/main/views/CameraDisplaySettings.mxml index 56b6d0b3bc..d8e126ba41 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/main/views/CameraDisplaySettings.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/main/views/CameraDisplaySettings.mxml @@ -20,6 +20,7 @@ with BigBlueButton; if not, see . --> . private var selectedCam:int; private var aspectRatio:Number = 1; - [Bindable]private var baseIndex:int; - override public function move(x:Number, y:Number):void - { - return; - } + override public function move(x:Number, y:Number):void + { + return; + } private function onCreationComplete():void { tabIndex = 51; @@ -203,10 +203,12 @@ with BigBlueButton; if not, see . ]]> + + + styleName="webcamSettingsWindowTitleStyle" id="textArea"/> @@ -215,9 +217,9 @@ with BigBlueButton; if not, see . - + @@ -226,10 +228,10 @@ with BigBlueButton; if not, see . + label="{ResourceUtil.getInstance().getString('bbb.publishVideo.startPublishBtn.labelText')}"/> diff --git a/bigbluebutton-client/src/org/bigbluebutton/main/views/FlashMicSettings.mxml b/bigbluebutton-client/src/org/bigbluebutton/main/views/FlashMicSettings.mxml index 7f7e0a4d6d..fb7ec76b0a 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/main/views/FlashMicSettings.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/main/views/FlashMicSettings.mxml @@ -20,6 +20,7 @@ with BigBlueButton; if not, see . --> . [Bindable] private var cancelIcon:Class = images.cancel; [Bindable] private var microphoneList:Array; - [Bindable] private var baseIndex:int = 1; private var doingEchoTest:Boolean = false; private var my_nc:NetConnection; @@ -326,6 +326,9 @@ with BigBlueButton; if not, see . ]]> + + @@ -337,16 +340,16 @@ with BigBlueButton; if not, see . + toolTip=""/> + toolTip=""/> @@ -361,19 +364,18 @@ with BigBlueButton; if not, see . + mode="manual" visible="true" width="100%" height="27" trackHeight="25" verticalGap="-20"/> @@ -409,11 +411,11 @@ with BigBlueButton; if not, see . @@ -428,15 +430,13 @@ with BigBlueButton; if not, see . + toolTip="{ResourceUtil.getInstance().getString('bbb.micSettings.nextButton')}"/> + toolTip="{ResourceUtil.getInstance().getString('bbb.micSettings.playSound.toolTip')}"/> diff --git a/bigbluebutton-client/src/org/bigbluebutton/main/views/LockSettings.mxml b/bigbluebutton-client/src/org/bigbluebutton/main/views/LockSettings.mxml index 2c4aa7cbc9..cbec69caf6 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/main/views/LockSettings.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/main/views/LockSettings.mxml @@ -20,6 +20,7 @@ with BigBlueButton; if not, see . --> . [Bindable] private var cancelIcon:Class = images.cancel; - [Bindable] private var baseIndex:int = 1; - [Bindable] public var disableCam:Boolean = false; [Bindable] public var disableMic:Boolean = false; [Bindable] public var disablePubChat:Boolean = false; @@ -87,9 +86,12 @@ with BigBlueButton; if not, see . } ]]> + + + + id="titleText" width="100%" left="0"/> @@ -159,11 +161,11 @@ with BigBlueButton; if not, see . diff --git a/bigbluebutton-client/src/org/bigbluebutton/main/views/MainApplicationShell.mxml b/bigbluebutton-client/src/org/bigbluebutton/main/views/MainApplicationShell.mxml index 0361bb606e..4584639933 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/main/views/MainApplicationShell.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/main/views/MainApplicationShell.mxml @@ -27,10 +27,10 @@ with BigBlueButton; if not, see . xmlns:mate="http://mate.asfusion.com/" xmlns:maps="org.bigbluebutton.main.maps.*" xmlns:api="org.bigbluebutton.main.api.*" + xmlns:common="org.bigbluebutton.common.*" width="100%" height="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off" - creationComplete="initializeShell()" - xmlns:common="org.bigbluebutton.common.*"> + creationComplete="initializeShell()" > @@ -126,8 +126,6 @@ with BigBlueButton; if not, see . private var logoutWindow:LoggedOutWindow; private var connectionLostWindow:ConnectionLostWindow; - [Bindable] private var baseIndex:int = 100000; - // LIVE or PLAYBACK private var _mode:String = 'LIVE'; [Bindable] public var appVersion:String = ' '; @@ -568,7 +566,7 @@ with BigBlueButton; if not, see . private function handleAddToolbarComponent(event:ToolbarButtonEvent):void { if (event.location == ToolbarButtonEvent.BOTTOM_TOOLBAR) { - (event.button as UIComponent).tabIndex = baseIndex + addedBtns.numChildren + 10; + (event.button as UIComponent).tabIndex = tabIndexer.startIndex + addedBtns.numChildren + 10; addedBtns.addChild(event.button as UIComponent); //realignButtons(); } @@ -640,6 +638,9 @@ with BigBlueButton; if not, see . } ]]> + + . height="20" width="180" accessibilityName="{ResourceUtil.getInstance().getString('bbb.mainToolbar.langSelector')}" - styleName="languageSelectorStyle" - tabIndex="{baseIndex}"/> + styleName="languageSelectorStyle"/> . toolTip="{ResourceUtil.getInstance().getString('bbb.mainshell.logBtn.toolTip')}" id="logBtn" icon="{logs_icon}" - click="openLogWindow()" - tabIndex="{baseIndex+1}"/> + click="openLogWindow()"/> diff --git a/bigbluebutton-client/src/org/bigbluebutton/main/views/MainToolbar.mxml b/bigbluebutton-client/src/org/bigbluebutton/main/views/MainToolbar.mxml index 9363c1641a..aaae8c656e 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/main/views/MainToolbar.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/main/views/MainToolbar.mxml @@ -21,9 +21,10 @@ with BigBlueButton; if not, see . --> + xmlns:mate="http://mate.asfusion.com/" xmlns:common="org.bigbluebutton.common.*" + xmlns:views="org.bigbluebutton.main.views.*" + enabled="true" visible="{showToolbar}" + initialize="init()" creationComplete="onCreationComplete()"> @@ -72,7 +73,6 @@ with BigBlueButton; if not, see . [Bindable] private var showHelpBtn:Boolean = false; [Bindable] private var showToolbar:Boolean = false; [Bindable] public var toolbarOptions:LayoutOptions = new LayoutOptions(); - [Bindable] private var baseIndex:int; [Bindable] private var numButtons:int; /* @@ -90,7 +90,6 @@ with BigBlueButton; if not, see . AlertAccImpl.enableAccessibility(); } - baseIndex = 101; numButtons = 0; // Accessibility isn't active till a few second after the client starts to load so we need a delay @@ -250,7 +249,6 @@ with BigBlueButton; if not, see . for each (var button:UIComponent in addedBtns.getChildren()){ var toolbarComponent:IBbbToolbarComponent = button as IBbbToolbarComponent; - /*if (toolbarComponent.getAlignment() == ALIGN_LEFT){ addedBtns.setChildIndex(button, 0); //(addedBtns.getChildAt(0) as Button).tabIndex = 0; @@ -259,7 +257,7 @@ with BigBlueButton; if not, see . addedBtns.setChildIndex(button, addedBtns.numChildren - 1); //(addedBtns.getChildAt(0) as Button).tabIndex = addedBtns.numChildren - 1; }*/ - button.tabIndex = baseIndex + 5; + button.tabIndex = quickLinksIndexer.startIndex + 5; //for (var i:int = 0; i < addedBtns.numChildren; i++){ // (addedBtns.getChildAt(i) as Button).tabIndex = baseIndex + i; //} @@ -328,25 +326,30 @@ with BigBlueButton; if not, see . ]]> + + + + + height="22" styleName="quickWindowLinkStyle" /> + height="22" styleName="quickWindowLinkStyle" /> + height="22" styleName="quickWindowLinkStyle" /> + height="22" styleName="quickWindowLinkStyle" /> - + - + + toolTip="{ResourceUtil.getInstance().getString('bbb.mainToolbar.shortcutBtn.toolTip')}"/> + toolTip="{ResourceUtil.getInstance().getString('bbb.mainToolbar.logoutBtn.toolTip')}" right="10" click="confirmLogout()" height="22"/> diff --git a/bigbluebutton-client/src/org/bigbluebutton/main/views/ShortcutHelpWindow.mxml b/bigbluebutton-client/src/org/bigbluebutton/main/views/ShortcutHelpWindow.mxml index f0f0a61e31..6d74ecf992 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/main/views/ShortcutHelpWindow.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/main/views/ShortcutHelpWindow.mxml @@ -22,7 +22,8 @@ with BigBlueButton; if not, see . . [Bindable] private var shownKeys:ArrayCollection; - [Bindable] - private var baseIndex:int = 100; - private var modifier:String; private var globalModifier:String; @@ -100,11 +98,7 @@ with BigBlueButton; if not, see . private function onCreationComplete():void { localeChanged(); - titleBarOverlay.tabIndex = baseIndex; - - minimizeBtn.tabIndex = baseIndex + 1; - maximizeRestoreBtn.tabIndex = baseIndex + 2; - closeBtn.tabIndex = baseIndex + 3; + titleBarOverlay.tabIndex = headerIndexer.startIndex - 1; } private function populateModules():void{ @@ -268,10 +262,12 @@ with BigBlueButton; if not, see . ]]> + + + + change="changeArray()"> - + diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/AddChatTabBox.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/AddChatTabBox.mxml index 068ffa266a..1242e7beb1 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/AddChatTabBox.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/AddChatTabBox.mxml @@ -22,6 +22,7 @@ with BigBlueButton; if not, see . @@ -54,9 +55,6 @@ with BigBlueButton; if not, see . [Bindable] public var chatOptions:ChatOptions = new ChatOptions(); - [Bindable] - public var baseIndex:int; - private function onCreationComplete():void{ users = UserManager.getInstance().getConference().users; if (fontSizes.indexOf(chatOptions.fontSize) != -1) { @@ -119,21 +117,21 @@ with BigBlueButton; if not, see . ]]> - + + + + itemClick="openPrivateChat(event)" toolTip="{ResourceUtil.getInstance().getString('bbb.chat.usersList.toolTip')}"/> + selectedIndex="1" toolTip="{ResourceUtil.getInstance().getString('bbb.chat.cmbFontSize.toolTip')}" /> diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/ChatBox.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/ChatBox.mxml index 3affc31ea4..917e62866c 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/ChatBox.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/ChatBox.mxml @@ -22,8 +22,9 @@ with BigBlueButton; if not, see . @@ -143,9 +144,6 @@ with BigBlueButton; if not, see . private var indicatorNeeded:Boolean = false private var repeat:Boolean = false; - [Bindable] - public var baseIndex:int; - [Bindable] private var chatListHeight:Number = 100; @@ -669,11 +667,12 @@ with BigBlueButton; if not, see . + + @@ -682,19 +681,16 @@ with BigBlueButton; if not, see . + selectedColor="0x000000" dataProvider="{colorPickerColours}" swatchPanelStyleName="chatColorPickerStyle"/> diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/ChatView.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/ChatView.mxml index f71d7bb550..b4e605785f 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/ChatView.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/ChatView.mxml @@ -26,7 +26,7 @@ with BigBlueButton; if not, see . initialize="init()" xmlns:flexlib="http://code.google.com/p/flexlib/" width="100%" height="100%" xmlns:containers="flexlib.containers.*" - verticalScrollPolicy="off"> + verticalScrollPolicy="off" xmlns:common="org.bigbluebutton.common.*"> @@ -81,8 +81,6 @@ with BigBlueButton; if not, see . [Bindable] public var chatOptions:ChatOptions; - [Bindable] private var baseIndex:int; - private static const PUBLIC_TAB_NEW:String = ResourceUtil.getInstance().getString("bbb.accessibility.chat.chatView.publicTabNew"); private var publicWaiting:Boolean = false; private var publicFocus:Boolean = false; @@ -99,7 +97,6 @@ with BigBlueButton; if not, see . chatOptions = new ChatOptions(); noticeLabel = ResourceUtil.getInstance().getString('bbb.chat.chatTabs.accessibleNotice'); // Get the base tab index from config, and add four to make up for the min/max/close buttons and title overlay - baseIndex = chatOptions.getBaseIndex() + 4; } @@ -268,7 +265,7 @@ with BigBlueButton; if not, see . chatBox.id = chatWithUserID; chatBox.name = chatWithUserID; chatBox.chatWithUserID = chatWithUserID; - chatBox.baseIndex = baseIndex+10; + chatBox.tabIndexer.startIndex = tabIndexer.startIndex + 10; if (publicChat) { chatBox.label = PUBLIC_CHAT_USERNAME @@ -300,7 +297,7 @@ with BigBlueButton; if not, see . tabBox.label = OPTION_TAB_ID; tabBox.name = OPTION_TAB_ID; tabBox.chatOptions = chatOptions; - tabBox.baseIndex = baseIndex + 10; + tabBox.tabIndexer.startIndex = tabIndexer.startIndex + 10; tabBox.addEventListener(KeyboardEvent.KEY_DOWN, tabBox.accessibleClick); chatTabs.addChild(tabBox); @@ -364,9 +361,12 @@ with BigBlueButton; if not, see . ]]> + + + diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/ChatWindow.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/ChatWindow.mxml index a3e33189b3..40796982fd 100644 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/ChatWindow.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/ChatWindow.mxml @@ -25,7 +25,6 @@ with BigBlueButton; if not, see . xmlns:chat="org.bigbluebutton.modules.chat.views.components.*" showCloseButton="false" implements="org.bigbluebutton.common.IBbbModuleWindow" - initialize="init()" creationComplete="onCreationComplete()" xmlns:components="org.bigbluebutton.modules.chat.view.components.*" xmlns:mate="http://mate.asfusion.com/" @@ -61,11 +60,6 @@ with BigBlueButton; if not, see . private var dispState:String; [Bindable] public var chatOptions:ChatOptions; - [Bindable] private var baseIndex:int; - private function init():void{ - baseIndex = chatOptions.baseTabIndex; - } - public function getPrefferedPosition():String{ return chatOptions.position; } @@ -76,11 +70,11 @@ with BigBlueButton; if not, see . dispState = FlexGlobals.topLevelApplication.stage.displayState; hotkeyCapture(); - titleBarOverlay.tabIndex = baseIndex; + titleBarOverlay.tabIndex = chatOptions.baseTabIndex; - minimizeBtn.tabIndex = baseIndex+1; - maximizeRestoreBtn.tabIndex = baseIndex+2; - closeBtn.tabIndex = baseIndex+3; + minimizeBtn.tabIndex = chatOptions.baseTabIndex+1; + maximizeRestoreBtn.tabIndex = chatOptions.baseTabIndex+2; + closeBtn.tabIndex = chatOptions.baseTabIndex+3; resourcesChanged(); // update the window controls once they've been created } diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopPublishWindow.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopPublishWindow.mxml index f22cbcc4f8..18f9ca3aaf 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopPublishWindow.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopPublishWindow.mxml @@ -99,12 +99,10 @@ with BigBlueButton; if not, see . private var javaTimer:Timer; [Bindable] private var cursor:Sprite; - [Bindable] private var baseIndex:int; [Bindable] private var dsOptions:DeskshareOptions; private function init():void { dsOptions = new DeskshareOptions(); - baseIndex = dsOptions.baseTabIndex; } private function onCreationComplete():void { @@ -132,12 +130,8 @@ with BigBlueButton; if not, see . } resourcesChanged(); - titleBarOverlay.tabIndex = baseIndex; + titleBarOverlay.tabIndex = dsOptions.baseTabIndex; titleBarOverlay.focusEnabled = true; - - minimizeBtn.tabIndex = baseIndex+1; - maximizeRestoreBtn.tabIndex = baseIndex+2; - closeBtn.tabIndex = baseIndex+3; } private function remoteFocus(e:ShortcutEvent):void{ @@ -409,6 +403,9 @@ with BigBlueButton; if not, see . ]]> + + @@ -426,23 +423,20 @@ with BigBlueButton; if not, see . toolTip="{ResourceUtil.getInstance().getString('bbb.desktopPublish.fullscreen.tooltip')}" label="{ResourceUtil.getInstance().getString('bbb.desktopPublish.fullscreen.label')}" visible="true" - click="shareScreen(true)" - tabIndex="{baseIndex+4}"/> + click="shareScreen(true)" /> + click="stopSharing()" /> diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopViewWindow.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopViewWindow.mxml index d17a955645..782697a1a8 100644 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopViewWindow.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/view/components/DesktopViewWindow.mxml @@ -22,7 +22,8 @@ with BigBlueButton; if not, see . . private var savedY:Number; private var isMaximized:Boolean = false; - [Bindable] private var baseIndex:int; [Bindable] private var dsOptions:DeskshareOptions; private function init():void{ dsOptions = new DeskshareOptions(); - baseIndex = dsOptions.baseTabIndex; } private function onCreationComplete():void{ @@ -105,10 +104,7 @@ with BigBlueButton; if not, see . resourcesChanged(); - titleBarOverlay.tabIndex = baseIndex; - minimizeBtn.tabIndex = baseIndex+1; - maximizeRestoreBtn.tabIndex = baseIndex+2; - closeBtn.tabIndex = baseIndex+3; + titleBarOverlay.tabIndex = dsOptions.baseTabIndex; } private function onResizeEndEvent(event:MDIWindowEvent):void { @@ -308,6 +304,9 @@ with BigBlueButton; if not, see . ]]> + + + @@ -318,7 +317,6 @@ with BigBlueButton; if not, see . selected="false" height="90%" label="{btnActualSize.selected ? ResourceUtil.getInstance().getString('bbb.desktopView.fitToWindow') : ResourceUtil.getInstance().getString('bbb.desktopView.actualSize')}" - toolTip="{btnActualSize.selected ? ResourceUtil.getInstance().getString('bbb.desktopView.fitToWindow') : ResourceUtil.getInstance().getString('bbb.desktopView.actualSize')}" - tabIndex="{baseIndex+4}"/> + toolTip="{btnActualSize.selected ? ResourceUtil.getInstance().getString('bbb.desktopView.fitToWindow') : ResourceUtil.getInstance().getString('bbb.desktopView.actualSize')}"/> diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/layout/views/ToolbarComponent.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/layout/views/ToolbarComponent.mxml index 346e8537af..59dde95e8e 100644 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/layout/views/ToolbarComponent.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/layout/views/ToolbarComponent.mxml @@ -21,6 +21,7 @@ with BigBlueButton; if not, see . @@ -37,8 +38,6 @@ with BigBlueButton; if not, see . [Bindable] private var _enableEdit:Boolean = false; [Bindable] private var _visibleTools:Boolean = true; - [Bindable] private var baseIndex:int = 110000; - private function init():void { var evt:ViewInitializedEvent = new ViewInitializedEvent(); evt.canvas = getMdiCanvas(parent) as MDICanvas; @@ -76,25 +75,21 @@ with BigBlueButton; if not, see . ]]> - + + + + visible="{_enableEdit}"/> + visible="{_enableEdit}"/> + visible="{_enableEdit}"/> diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/PresentationWindow.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/PresentationWindow.mxml index 6df85952c3..f45847b9fa 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/PresentationWindow.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/PresentationWindow.mxml @@ -148,7 +148,6 @@ with BigBlueButton; if not, see . [Bindable] private var currentPresentation:String = ""; - [Bindable] private var baseIndex:int; [Bindable] private var presentOptions:PresentOptions; private var keyCombos:Object; @@ -159,7 +158,6 @@ with BigBlueButton; if not, see . private function init():void{ presentOptions = new PresentOptions(); - baseIndex = presentOptions.baseTabIndex;; } private function onCreationComplete():void{ @@ -175,13 +173,8 @@ with BigBlueButton; if not, see . this.addEventListener(MDIWindowEvent.RESIZE_END, onResizeEndEvent); resourcesChanged(); - titleBarOverlay.tabIndex = baseIndex; + titleBarOverlay.tabIndex = presentOptions.baseTabIndex; - minimizeBtn.tabIndex = baseIndex+1; - maximizeRestoreBtn.tabIndex = baseIndex+2; - closeBtn.tabIndex = baseIndex+3; - - slideView.slideLoader.tabIndex = baseIndex+4; hotkeyCapture(); //Necessary now because of module loading race conditions @@ -702,7 +695,7 @@ with BigBlueButton; if not, see . var pollXY:Point = pollStartBtn.localToGlobal(new Point(pollStartBtn.width + 2, pollStartBtn.height - pollMenu.height)); pollMenu.x = pollXY.x; pollMenu.y = pollXY.y; - } + } private function pollStartedHandler(e:PollStartedEvent):void { // the event for this doesn't exist yet @@ -762,51 +755,49 @@ with BigBlueButton; if not, see . private function pollShowResultHandler(e:PollShowResultEvent):void { setControlBarState("presenter"); - } + } ]]> + + + mouseUp="mouseDown = false" verticalScrollPolicy="off" horizontalScrollPolicy="off"/> + click="onUploadButtonClicked()"/> + click="onPollStartButtonClicked()"/> + toolTip="{ResourceUtil.getInstance().getString('bbb.presentation.backBtn.toolTip')}" click="gotoPreviousSlide()"/> + toolTip="{ResourceUtil.getInstance().getString('bbb.presentation.btnSlideNum.toolTip')}"/> + toolTip="{ResourceUtil.getInstance().getString('bbb.presentation.forwardBtn.toolTip')}" click="gotoNextSlide()"/> + accessibilityName="{ResourceUtil.getInstance().getString('bbb.presentation.slider')}"/> + click="onFitToPage(false)"/> + click="onFitToPage(true)"/> - + diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/views/WhiteboardToolbar.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/views/WhiteboardToolbar.mxml index 7eefe580a6..515a4afbea 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/views/WhiteboardToolbar.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/views/WhiteboardToolbar.mxml @@ -25,6 +25,7 @@ with BigBlueButton; if not, see . xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:view="org.bigbluebutton.modules.whiteboard.views.*" xmlns:wbBtns="org.bigbluebutton.modules.whiteboard.views.buttons.*" + xmlns:common="org.bigbluebutton.common.*" xmlns:mate="http://mate.asfusion.com/" creationComplete="onCreationComplete()" visible="{showWhiteboardToolbar}" @@ -115,7 +116,6 @@ with BigBlueButton; if not, see . [Bindable] private var grid_icon:Class = images.grid_icon; [Bindable] public var wbOptions:WhiteboardOptions; - [Bindable] private var baseIndex:int; [Bindable] private var showWhiteboardToolbar:Boolean = false; @@ -132,7 +132,6 @@ with BigBlueButton; if not, see . private function init():void{ wbOptions = new WhiteboardOptions(); - baseIndex = wbOptions.baseTabIndex; } private function onCreationComplete():void { @@ -340,39 +339,33 @@ with BigBlueButton; if not, see . ]]> + + @@ -391,7 +384,6 @@ with BigBlueButton; if not, see . @@ -400,7 +392,6 @@ with BigBlueButton; if not, see . toolTip="{ResourceUtil.getInstance().getString('bbb.highlighter.toolbar.thickness.accessibilityName')}" minimum="1" maximum="30" useHandCursor="true" value="2" showDataTip="true" snapInterval="1" dataTipOffset="0" labelOffset="0" - tabIndex="{baseIndex+10}" accessibilityName="{ResourceUtil.getInstance().getString('bbb.highlighter.toolbar.thickness.accessibilityName')}" />