Fixed Issue 436
git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@4320 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
parent
7755850597
commit
557d158953
@ -0,0 +1,16 @@
|
||||
package org.bigbluebutton.modules.chat.events
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class ChatOptionsEvent extends Event
|
||||
{
|
||||
public static const CHANGE_FONT_SIZE:String = "Change Font Size";
|
||||
|
||||
public var fontSize:int;
|
||||
|
||||
public function ChatOptionsEvent(type:String)
|
||||
{
|
||||
super(type, true, false);
|
||||
}
|
||||
}
|
||||
}
|
@ -4,10 +4,14 @@
|
||||
<mx:Script>
|
||||
<![CDATA[
|
||||
import mx.collections.ArrayCollection;
|
||||
import mx.controls.Alert;
|
||||
import mx.events.ListEvent;
|
||||
|
||||
import org.bigbluebutton.modules.chat.events.ChatOptionsEvent;
|
||||
|
||||
[Bindable] public var participants:ArrayCollection;
|
||||
[Bindable] public var chatView:ChatView;
|
||||
[Bindable] private var fontSizes:Array = ['8', '10', '12', '14', '16', '18'];
|
||||
|
||||
private function init():void{
|
||||
participants = new ArrayCollection();
|
||||
@ -20,12 +24,30 @@
|
||||
participantsList.selectedIndex = -1;
|
||||
chatView.openChatBoxFor(id);
|
||||
}
|
||||
|
||||
private function changeFontSize():void{
|
||||
var e:ChatOptionsEvent = new ChatOptionsEvent(ChatOptionsEvent.CHANGE_FONT_SIZE);
|
||||
e.fontSize = int(cmbFontSize.selectedItem);
|
||||
dispatchEvent(e);
|
||||
}
|
||||
|
||||
]]>
|
||||
</mx:Script>
|
||||
|
||||
<mx:Label id="lblSelect" text="Select a person to chat with privately" />
|
||||
<mx:List id="participantsList" height="100%" width="100%" dataProvider="{chatView.participants}" change="openPrivateChat(event)">
|
||||
</mx:List>
|
||||
<mx:HBox width="100%" height="100%" >
|
||||
<mx:VBox height="100%" width="50%">
|
||||
<mx:Label id="lblSelect" text="Select a person to chat with privately" />
|
||||
<mx:List id="participantsList" height="100%" width="100%" dataProvider="{chatView.participants}" change="openPrivateChat(event)">
|
||||
</mx:List>
|
||||
</mx:VBox>
|
||||
<mx:VBox id="optionsBox" height="100%" width="50%" >
|
||||
<mx:Label text="Chat Options" />
|
||||
<mx:HBox width="100%">
|
||||
<mx:Label text="Font Size" />
|
||||
<mx:ComboBox width="60" id="cmbFontSize" dataProvider="{fontSizes}" close="changeFontSize()" />
|
||||
</mx:HBox>
|
||||
</mx:VBox>
|
||||
</mx:HBox>
|
||||
|
||||
|
||||
</mx:VBox>
|
||||
|
@ -1,9 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" click="setMessageRead()">
|
||||
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" click="setMessageRead()" xmlns:mate="http://mate.asfusion.com/">
|
||||
|
||||
<mate:Listener type="{ChatOptionsEvent.CHANGE_FONT_SIZE}" method="changeFontSize" />
|
||||
|
||||
<mx:Script>
|
||||
<![CDATA[
|
||||
import mx.controls.Button;
|
||||
|
||||
import org.bigbluebutton.modules.chat.events.ChatOptionsEvent;
|
||||
|
||||
public var read:Boolean = true;
|
||||
public var participantLoggedOut:Boolean = false;
|
||||
|
||||
@ -33,6 +38,10 @@
|
||||
var url:URLRequest = new URLRequest(e.text);
|
||||
navigateToURL(url, '_blank');
|
||||
}
|
||||
|
||||
private function changeFontSize(e:ChatOptionsEvent):void{
|
||||
this.setStyle("fontSize", e.fontSize);
|
||||
}
|
||||
|
||||
|
||||
]]>
|
||||
|
@ -9,6 +9,7 @@
|
||||
<mate:Listener type="{PublicChatMessageEvent.PUBLIC_CHAT_MESSAGE_EVENT}" method="handlePublicChatMessageEvent"/>
|
||||
<mate:Listener type="{ParticipantJoinEvent.PARTICIPANT_JOINED_EVENT}" method="handleParticipantJoinedEvent"/>
|
||||
<mate:Listener type="{BBBEvent.SEND_PUBLIC_CHAT_MESSAGE_EVENT}" method="sendMessageReceivedFromBBBEvent"/>
|
||||
<mate:Listener type="{ChatOptionsEvent.CHANGE_FONT_SIZE}" method="changeFontSize" />
|
||||
|
||||
<mx:Style>
|
||||
.colorPickerStyle {
|
||||
@ -39,12 +40,14 @@
|
||||
import flexlib.events.SuperTabEvent;
|
||||
|
||||
import mx.collections.ArrayCollection;
|
||||
import mx.controls.Alert;
|
||||
import mx.core.Container;
|
||||
import mx.core.UIComponent;
|
||||
import mx.events.IndexChangedEvent;
|
||||
|
||||
import org.bigbluebutton.main.events.BBBEvent;
|
||||
import org.bigbluebutton.main.events.ParticipantJoinEvent;
|
||||
import org.bigbluebutton.modules.chat.events.ChatOptionsEvent;
|
||||
import org.bigbluebutton.modules.chat.events.PrivateChatMessageEvent;
|
||||
import org.bigbluebutton.modules.chat.events.PublicChatMessageEvent;
|
||||
import org.bigbluebutton.modules.chat.events.QueryParticipantsEvent;
|
||||
@ -83,7 +86,7 @@
|
||||
systemManager.stage.addEventListener(Event.ACTIVATE, activate);
|
||||
systemManager.stage.addEventListener(Event.DEACTIVATE, deactivate);
|
||||
|
||||
setColor();
|
||||
//setColor();
|
||||
}
|
||||
|
||||
private function setColor():void{
|
||||
@ -380,6 +383,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
public function changeFontSize(e:ChatOptionsEvent):void{
|
||||
txtMsg.setStyle("fontSize", e.fontSize);
|
||||
}
|
||||
|
||||
private function onTabClose(e:SuperTabEvent):void{
|
||||
dispatchEvent(e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user