Code improvement.
This commit is contained in:
parent
cfd290e196
commit
4fc4e177b7
@ -73,7 +73,7 @@
|
|||||||
padding: 22.50;
|
padding: 22.50;
|
||||||
}
|
}
|
||||||
|
|
||||||
main|ExitView, main|DisconnectView, main|UserInactivityView {
|
main|ExitView, main|DisconnectView, main|UserInactivityPopUp {
|
||||||
gap: 22.50;
|
gap: 22.50;
|
||||||
padding: 22.50;
|
padding: 22.50;
|
||||||
}
|
}
|
||||||
@ -121,9 +121,6 @@
|
|||||||
main|MobilePopUp {
|
main|MobilePopUp {
|
||||||
cornerRadius: 6.00;
|
cornerRadius: 6.00;
|
||||||
fontSize: 16.50;
|
fontSize: 16.50;
|
||||||
}
|
|
||||||
|
|
||||||
main|MobilePopUp {
|
|
||||||
padding: 9.00;
|
padding: 9.00;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@
|
|||||||
padding: 11.250;
|
padding: 11.250;
|
||||||
}
|
}
|
||||||
|
|
||||||
main|ExitView, main|DisconnectView, main|UserInactivityView {
|
main|ExitView, main|DisconnectView, main|UserInactivityPopUp {
|
||||||
gap: 11.250;
|
gap: 11.250;
|
||||||
padding: 11.250;
|
padding: 11.250;
|
||||||
}
|
}
|
||||||
@ -121,9 +121,6 @@
|
|||||||
main|MobilePopUp {
|
main|MobilePopUp {
|
||||||
cornerRadius: 3.000;
|
cornerRadius: 3.000;
|
||||||
fontSize: 8.250;
|
fontSize: 8.250;
|
||||||
}
|
|
||||||
|
|
||||||
main|MobilePopUp {
|
|
||||||
padding: 4.500;
|
padding: 4.500;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@
|
|||||||
padding: 15.0;
|
padding: 15.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
main|ExitView, main|DisconnectView, main|UserInactivityView {
|
main|ExitView, main|DisconnectView, main|UserInactivityPopUp {
|
||||||
gap: 15.0;
|
gap: 15.0;
|
||||||
padding: 15.0;
|
padding: 15.0;
|
||||||
}
|
}
|
||||||
@ -121,9 +121,6 @@
|
|||||||
main|MobilePopUp {
|
main|MobilePopUp {
|
||||||
cornerRadius: 4.0;
|
cornerRadius: 4.0;
|
||||||
fontSize: 11.0;
|
fontSize: 11.0;
|
||||||
}
|
|
||||||
|
|
||||||
main|MobilePopUp {
|
|
||||||
padding: 6.0;
|
padding: 6.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
padding: 30;
|
padding: 30;
|
||||||
}
|
}
|
||||||
|
|
||||||
main|ExitView, main|DisconnectView, main|UserInactivityView {
|
main|ExitView, main|DisconnectView, main|UserInactivityPopUp {
|
||||||
gap : 30;
|
gap : 30;
|
||||||
padding : 30;
|
padding : 30;
|
||||||
}
|
}
|
||||||
@ -109,9 +109,6 @@
|
|||||||
main|MobilePopUp {
|
main|MobilePopUp {
|
||||||
cornerRadius : 8;
|
cornerRadius : 8;
|
||||||
fontSize : 22;
|
fontSize : 22;
|
||||||
}
|
|
||||||
|
|
||||||
main|MobilePopUp {
|
|
||||||
padding : 12;
|
padding : 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@
|
|||||||
padding: 45.0;
|
padding: 45.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
main|ExitView, main|DisconnectView, main|UserInactivityView {
|
main|ExitView, main|DisconnectView, main|UserInactivityPopUp {
|
||||||
gap: 45.0;
|
gap: 45.0;
|
||||||
padding: 45.0;
|
padding: 45.0;
|
||||||
}
|
}
|
||||||
@ -121,9 +121,6 @@
|
|||||||
main|MobilePopUp {
|
main|MobilePopUp {
|
||||||
cornerRadius: 12.0;
|
cornerRadius: 12.0;
|
||||||
fontSize: 33.0;
|
fontSize: 33.0;
|
||||||
}
|
|
||||||
|
|
||||||
main|MobilePopUp {
|
|
||||||
padding: 18.0;
|
padding: 18.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@
|
|||||||
padding: 60;
|
padding: 60;
|
||||||
}
|
}
|
||||||
|
|
||||||
main|ExitView, main|DisconnectView, main|UserInactivityView {
|
main|ExitView, main|DisconnectView, main|UserInactivityPopUp {
|
||||||
gap: 60;
|
gap: 60;
|
||||||
padding: 60;
|
padding: 60;
|
||||||
}
|
}
|
||||||
@ -121,9 +121,6 @@
|
|||||||
main|MobilePopUp {
|
main|MobilePopUp {
|
||||||
cornerRadius: 16;
|
cornerRadius: 16;
|
||||||
fontSize: 44;
|
fontSize: 44;
|
||||||
}
|
|
||||||
|
|
||||||
main|MobilePopUp {
|
|
||||||
padding: 24;
|
padding: 24;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,8 +24,8 @@ package org.bigbluebutton.air.main {
|
|||||||
import org.bigbluebutton.air.main.views.PagesNavigatorViewMediator;
|
import org.bigbluebutton.air.main.views.PagesNavigatorViewMediator;
|
||||||
import org.bigbluebutton.air.main.views.TopToolbarBase;
|
import org.bigbluebutton.air.main.views.TopToolbarBase;
|
||||||
import org.bigbluebutton.air.main.views.TopToolbarMediator;
|
import org.bigbluebutton.air.main.views.TopToolbarMediator;
|
||||||
import org.bigbluebutton.air.main.views.UserInactivityView;
|
import org.bigbluebutton.air.main.views.UserInactivityPopUp;
|
||||||
import org.bigbluebutton.air.main.views.UserInactivityViewMediator;
|
import org.bigbluebutton.air.main.views.UserInactivityPopUpMediator;
|
||||||
|
|
||||||
import robotlegs.bender.extensions.matching.TypeMatcher;
|
import robotlegs.bender.extensions.matching.TypeMatcher;
|
||||||
import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap;
|
import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap;
|
||||||
@ -64,7 +64,7 @@ package org.bigbluebutton.air.main {
|
|||||||
mediatorMap.map(ExitView).toMediator(ExitViewMediator);
|
mediatorMap.map(ExitView).toMediator(ExitViewMediator);
|
||||||
mediatorMap.map(DisconnectView).toMediator(DisconnectViewMediator);
|
mediatorMap.map(DisconnectView).toMediator(DisconnectViewMediator);
|
||||||
mediatorMap.map(MainView).toMediator(MainViewMediator);
|
mediatorMap.map(MainView).toMediator(MainViewMediator);
|
||||||
mediatorMap.map(UserInactivityView).toMediator(UserInactivityViewMediator);
|
mediatorMap.map(UserInactivityPopUp).toMediator(UserInactivityPopUpMediator);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3,7 +3,7 @@ package org.bigbluebutton.air.main.commands {
|
|||||||
|
|
||||||
import spark.components.Application;
|
import spark.components.Application;
|
||||||
|
|
||||||
import org.bigbluebutton.air.main.views.UserInactivityView;
|
import org.bigbluebutton.air.main.views.UserInactivityPopUp;
|
||||||
|
|
||||||
import robotlegs.bender.bundles.mvcs.Command;
|
import robotlegs.bender.bundles.mvcs.Command;
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ package org.bigbluebutton.air.main.commands {
|
|||||||
|
|
||||||
override public function execute():void {
|
override public function execute():void {
|
||||||
trace("RECEIVED INACTIVITY TIMER MESSAGE responseDuration=" + responseDuration);
|
trace("RECEIVED INACTIVITY TIMER MESSAGE responseDuration=" + responseDuration);
|
||||||
var userInactivityView:UserInactivityView = new UserInactivityView();
|
var userInactivityView:UserInactivityPopUp = new UserInactivityPopUp();
|
||||||
userInactivityView.text = "Your client is going to close in " + responseDuration.toString() + " seconds";
|
userInactivityView.text = "Your client is going to close in " + responseDuration.toString() + " seconds";
|
||||||
userInactivityView.open(Application(FlexGlobals.topLevelApplication), true);
|
userInactivityView.open(Application(FlexGlobals.topLevelApplication), true);
|
||||||
}
|
}
|
||||||
|
@ -4,14 +4,14 @@ package org.bigbluebutton.air.main.views {
|
|||||||
import spark.layouts.HorizontalLayout;
|
import spark.layouts.HorizontalLayout;
|
||||||
import spark.layouts.VerticalLayout;
|
import spark.layouts.VerticalLayout;
|
||||||
|
|
||||||
public class UserInactivityView extends MobilePopUp {
|
public class UserInactivityPopUp extends MobilePopUp {
|
||||||
private var _okButton:Button;
|
private var _okButton:Button;
|
||||||
|
|
||||||
public function get okButton():Button {
|
public function get okButton():Button {
|
||||||
return _okButton;
|
return _okButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function UserInactivityView() {
|
public function UserInactivityPopUp() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
_okButton = new Button();
|
_okButton = new Button();
|
@ -7,10 +7,10 @@ package org.bigbluebutton.air.main.views
|
|||||||
|
|
||||||
import robotlegs.bender.bundles.mvcs.Mediator;
|
import robotlegs.bender.bundles.mvcs.Mediator;
|
||||||
|
|
||||||
public class UserInactivityViewMediator extends Mediator
|
public class UserInactivityPopUpMediator extends Mediator
|
||||||
{
|
{
|
||||||
[Inject]
|
[Inject]
|
||||||
public var view:UserInactivityView;
|
public var view:UserInactivityPopUp;
|
||||||
|
|
||||||
[Inject]
|
[Inject]
|
||||||
public var userInactivityTimerResponseSignal:UserInactivityTimerResponseSignal;
|
public var userInactivityTimerResponseSignal:UserInactivityTimerResponseSignal;
|
@ -59,6 +59,7 @@ package org.bigbluebutton.air.poll.views {
|
|||||||
public override function destroy():void {
|
public override function destroy():void {
|
||||||
meetingData.polls.pollChangeSignal.remove(onPollChange);
|
meetingData.polls.pollChangeSignal.remove(onPollChange);
|
||||||
view.removeEventListener(MouseEvent.CLICK, viewMouseEventHandler);
|
view.removeEventListener(MouseEvent.CLICK, viewMouseEventHandler);
|
||||||
|
view.stage.removeEventListener(StageOrientationEvent.ORIENTATION_CHANGE, onStageOrientation);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user