Browse files

update SlideView.mxml

  • Loading branch information...
1 parent d29e84c commit 8ae4baa03d9bd4ebdf6e8417071432ddef7ecc61 @chhtrao chhtrao committed Feb 11, 2011
Showing with 18 additions and 12 deletions.
  1. +18 −12 bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/ChatView.mxml
View
30 bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/ChatView.mxml
@@ -83,12 +83,14 @@
import org.bigbluebutton.modules.chat.events.QueryParticipantsEvent;
import org.bigbluebutton.modules.chat.events.SendPrivateChatMessageEvent;
import org.bigbluebutton.modules.chat.events.SendPublicChatMessageEvent;
- import org.bigbluebutton.modules.chat.events.AddRecordUserEvent;
- import org.bigbluebutton.modules.chat.events.ChatButtonEvent;
- import org.bigbluebutton.modules.chat.model.MessageVO;
+ import org.bigbluebutton.modules.chat.model.MessageVO;
import org.bigbluebutton.modules.chat.model.business.UserVO;
import org.bigbluebutton.util.i18n.ResourceUtil;
+ import org.bigbluebutton.modules.chat.events.cCHAT_AddRecordUserEvent;
+ import org.bigbluebutton.modules.chat.events.cCHAT_ButtonEvent;
+
+
import mx.controls.Alert ;
@@ -293,7 +295,7 @@
if (isChatBoxCurrentlySelected(userid)) {
disableMessageEntryTextBox();
disableChatButton() ;
- globalDispatcher.dispatchEvent(new ChatButtonEvent(ChatButtonEvent.CLOSE_BUTTON));
+ globalDispatcher.dispatchEvent(new cCHAT_ButtonEvent(cCHAT_ButtonEvent.CLOSE_BUTTON));
}
}
}
@@ -462,7 +464,7 @@
public function userJoined(user:User):void{
addParticipantToList(user.userid, user.name, user.role);
- var e:AddRecordUserEvent = new AddRecordUserEvent(AddRecordUserEvent.NEW_USER);
+ var e:cCHAT_AddRecordUserEvent = new cCHAT_AddRecordUserEvent(cCHAT_AddRecordUserEvent.NEW_USER);
e.userid = user.userid ;
e.username = user.name ;
e.record = false ;
@@ -471,7 +473,7 @@
public function userLeft(user:User):void{
removeParticipantFromList(user.userid);
- var e:AddRecordUserEvent = new AddRecordUserEvent(AddRecordUserEvent.DEL_USER);
+ var e:cCHAT_AddRecordUserEvent = new cCHAT_AddRecordUserEvent(cCHAT_AddRecordUserEvent.DEL_USER);
e.userid = user.userid;
globalDispatcher.dispatchEvent(e);
//showMessage(PUBLIC_CHAT_USERID, "<b>" + event.participant.name + " has left the conference </b>");
@@ -500,12 +502,15 @@
; userid : id of user
;
; IMPLEMENTATION
- ;
+ ; add record button and download button to a user
; HISTORY
; __date__ : PTS: Description
; 16-01-2011
******************************************************************************/
private function createChatButtonFor(userid:String):void{
+ if ( null == userid ){
+ return ;
+ }
chatButton.chatView = this ;
this.chatCtrlBar.addChild(chatButton) ;
addButtonFor(userid);
@@ -531,7 +536,7 @@
if ( null == receiver ){
return ;
}
- var e:ChatButtonEvent = new ChatButtonEvent(ChatButtonEvent.SWITCH_BUTTON) ;
+ var e:cCHAT_ButtonEvent = new cCHAT_ButtonEvent(cCHAT_ButtonEvent.SWITCH_BUTTON) ;
e.receiver = receiver ;
e.name = getParticipantName(receiver) ;
globalDispatcher.dispatchEvent(e);
@@ -548,7 +553,7 @@
; INPUT
;
; IMPLEMENTATION
- ;
+ ; disable record button and download button
; HISTORY
; __date__ : PTS: Description
; 16-01-2011
@@ -568,7 +573,7 @@
; INPUT
;
; IMPLEMENTATION
- ;
+ ; enable record button and download button
; HISTORY
; __date__ : PTS: Description
; 16-01-2011
@@ -588,7 +593,8 @@
; INPUT
; userid : id of user
; IMPLEMENTATION
- ;
+ ; add record and download button for a userid
+ ;
; HISTORY
; __date__ : PTS: Description
; 16-01-2011
@@ -597,7 +603,7 @@
if ( null == userid ){
return ;
}
- var evt:ChatButtonEvent = new ChatButtonEvent(ChatButtonEvent.NEW_BUTTON);
+ var evt:cCHAT_ButtonEvent = new cCHAT_ButtonEvent(cCHAT_ButtonEvent.NEW_BUTTON);
evt.receiver = userid ;
evt.name = getParticipantName(userid) ;
globalDispatcher.dispatchEvent(evt) ;

0 comments on commit 8ae4baa

Please sign in to comment.