- minor cleanup

This commit is contained in:
Richard Alam 2014-07-28 09:47:50 -07:00
parent 97382ea49a
commit 65d8b0889c
4 changed files with 34 additions and 42 deletions

View File

@ -36,7 +36,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<![CDATA[
import mx.core.FlexGlobals;
import mx.managers.PopUpManager;
import org.bigbluebutton.common.LogUtil;
import org.bigbluebutton.core.BBB;
import org.bigbluebutton.modules.phone.events.UseFlashModeCommand;

View File

@ -25,7 +25,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<mx:Script>
<![CDATA[
import flexlib.mdi.containers.MDIWindow;
import mx.controls.Alert;
import mx.utils.ArrayUtil;
import org.bigbluebutton.common.IBbbModuleWindow;

View File

@ -40,9 +40,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<mx:Script>
<![CDATA[
import com.asfusion.mate.events.Dispatcher;
import mx.core.UIComponent;
import org.bigbluebutton.common.IBbbToolbarComponent;
import org.bigbluebutton.common.LogUtil;
import org.bigbluebutton.common.events.CloseWindowEvent;
@ -69,17 +67,12 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
public static const ALIGN_RIGHT:String ="ALIGN_RIGHT";
public static const ALIGN_LEFT:String = "ALIGN_LEFT";
[Bindable]
private var showHelpBtn:Boolean = false;
[Bindable]
private var showToolbar:Boolean = false;
[Bindable]
public var toolbarOptions:LayoutOptions = new LayoutOptions();
[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;
[Bindable]
private var baseIndex:int;
[Bindable]
private var numButtons:int;
/*
* Because of the de-centralized way buttons are added to the toolbar, there is a large gap between the tab indexes of the main buttons
* on the left and the tab indexes of the "other" items on the right (shortcut glossary, language slector, etc). This will make it more
@ -119,29 +112,30 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
}
}
private function checkAccessiblity(e:TimerEvent):void {
// remove the quick links if there's no screen reader active
if (!Accessibility.active) {
quickLinks.removeAllChildren();
}
}
private function onQuickLinkClicked(window:String):void {
var dispatcher:Dispatcher = new Dispatcher();
switch(window) {
case "users":
dispatcher.dispatchEvent(new ShortcutEvent(ShortcutEvent.FOCUS_USERS_WINDOW));
break;
case "webcams":
dispatcher.dispatchEvent(new ShortcutEvent(ShortcutEvent.FOCUS_VIDEO_WINDOW));
break;
case "presentation":
dispatcher.dispatchEvent(new ShortcutEvent(ShortcutEvent.FOCUS_PRESENTATION_WINDOW));
break;
case "chat":
dispatcher.dispatchEvent(new ShortcutEvent(ShortcutEvent.FOCUS_CHAT_WINDOW));
break;
}
}
private function checkAccessiblity(e:TimerEvent):void {
// remove the quick links if there's no screen reader active
if (!Accessibility.active) {
quickLinks.removeAllChildren();
}
}
private function onQuickLinkClicked(window:String):void {
var dispatcher:Dispatcher = new Dispatcher();
switch(window) {
case "users":
dispatcher.dispatchEvent(new ShortcutEvent(ShortcutEvent.FOCUS_USERS_WINDOW));
break;
case "webcams":
dispatcher.dispatchEvent(new ShortcutEvent(ShortcutEvent.FOCUS_VIDEO_WINDOW));
break;
case "presentation":
dispatcher.dispatchEvent(new ShortcutEvent(ShortcutEvent.FOCUS_PRESENTATION_WINDOW));
break;
case "chat":
dispatcher.dispatchEvent(new ShortcutEvent(ShortcutEvent.FOCUS_CHAT_WINDOW));
break;
}
}
public function displayToolbar():void{
toolbarOptions = new LayoutOptions();