participant window added
This commit is contained in:
parent
efd601c029
commit
3ecaab1ba5
@ -34,6 +34,7 @@
|
||||
<property name="WHITEBOARD" value="WhiteboardModule" />
|
||||
<property name="VIDEO_DOCK" value="VideodockModule" />
|
||||
<property name="LAYOUT" value="LayoutModule" />
|
||||
<property name="PARTICIPANTS" value="ParticipantsModule" />
|
||||
|
||||
<xmlproperty file="${SRC_DIR}/conf/locales.xml" collapseAttributes="true"/>
|
||||
|
||||
@ -240,9 +241,13 @@
|
||||
<build-module src="${SRC_DIR}" target="${LAYOUT}" />
|
||||
</target>
|
||||
|
||||
<target name="build-participants" description="Compile Participants Module">
|
||||
<build-module src="${SRC_DIR}" target="${PARTICIPANTS}" />
|
||||
</target>
|
||||
|
||||
<!-- just a grouping of modules to compile -->
|
||||
<target name="build-main-chat-viewers-listeners-present"
|
||||
depends="build-bbb-main, build-chat, build-viewers, build-listeners, build-present, build-layout, build-broadcast"
|
||||
depends="build-bbb-main, build-chat, build-viewers, build-listeners, build-present, build-layout, build-broadcast, build-participants"
|
||||
description="Compile main, chat, viewers, listeners, present modules">
|
||||
</target>
|
||||
|
||||
@ -471,5 +476,5 @@
|
||||
description="Build BBB client without locales"/>
|
||||
<target name="cleanandmake" depends="clean-build-all" description="Build BBB client including locales"/>
|
||||
|
||||
<target name="build-custom" depends="init-ant-contrib" description="Build a custom defined module only, to save time as each build takes several minutes" />
|
||||
<target name="build-custom" depends="init-ant-contrib, build-participants" description="Build a custom defined module only, to save time as each build takes several minutes" />
|
||||
</project>
|
||||
|
67
bigbluebutton-client/src/ParticipantsModule.mxml
Executable file
67
bigbluebutton-client/src/ParticipantsModule.mxml
Executable file
@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
BigBlueButton - http://www.bigbluebutton.org
|
||||
|
||||
Copyright (c) 2008-2009 by respective authors (see below). All rights reserved.
|
||||
|
||||
BigBlueButton 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 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, If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
$Id: $
|
||||
-->
|
||||
|
||||
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml"
|
||||
implements="org.bigbluebutton.common.IBigBlueButtonModule"
|
||||
creationComplete="onCreationComplete()" xmlns:maps="org.bigbluebutton.modules.participants.maps.*" >
|
||||
<mx:Script>
|
||||
<![CDATA[
|
||||
import com.asfusion.mate.events.Dispatcher;
|
||||
|
||||
import org.bigbluebutton.common.LogUtil;
|
||||
import org.bigbluebutton.common.events.CloseWindowEvent;
|
||||
import org.bigbluebutton.common.events.OpenWindowEvent;
|
||||
import org.bigbluebutton.modules.participants.views.ParticipantsWindow;
|
||||
|
||||
private var _moduleName:String = "Participants Module";
|
||||
private var _attributes:Object;
|
||||
private var dispatcher:Dispatcher;
|
||||
private var participantsWindow:ParticipantsWindow;
|
||||
|
||||
private function onCreationComplete():void {
|
||||
LogUtil.debug("ParticipantsModule Initialized");
|
||||
}
|
||||
|
||||
public function get moduleName():String {
|
||||
return _moduleName;
|
||||
}
|
||||
|
||||
public function start(attributes:Object):void {
|
||||
_attributes = attributes;
|
||||
dispatcher = new Dispatcher();
|
||||
|
||||
participantsWindow = new ParticipantsWindow();
|
||||
|
||||
var windowEvent:OpenWindowEvent = new OpenWindowEvent(OpenWindowEvent.OPEN_WINDOW_EVENT);
|
||||
windowEvent.window = participantsWindow;
|
||||
dispatcher.dispatchEvent(windowEvent);
|
||||
}
|
||||
|
||||
public function stop():void {
|
||||
var event:CloseWindowEvent = new CloseWindowEvent(CloseWindowEvent.CLOSE_WINDOW_EVENT);
|
||||
event.window = participantsWindow;
|
||||
dispatcher.dispatchEvent(event);
|
||||
}
|
||||
]]>
|
||||
</mx:Script>
|
||||
|
||||
</mx:Module>
|
@ -0,0 +1,95 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
BigBlueButton open source conferencing system - http://www.bigbluebutton.org
|
||||
|
||||
Copyright (c) 2010 BigBlueButton Inc. and by respective authors (see below).
|
||||
|
||||
BigBlueButton 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 2.1 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
$Id: $
|
||||
-->
|
||||
|
||||
<mdi:MDIWindow xmlns:mx="http://www.adobe.com/2006/mxml"
|
||||
xmlns:mdi="flexlib.mdi.containers.*"
|
||||
implements="org.bigbluebutton.common.IBbbModuleWindow"
|
||||
xmlns:mate="http://mate.asfusion.com/"
|
||||
title="Participants"
|
||||
creationComplete="onCreationComplete()"
|
||||
showCloseButton="false">
|
||||
|
||||
<mate:Listener type="{LocaleChangeEvent.LOCALE_CHANGED}" method="localeChanged" />
|
||||
|
||||
<mx:Script>
|
||||
<![CDATA[
|
||||
import com.asfusion.mate.events.Dispatcher;
|
||||
import mx.binding.utils.BindingUtils;
|
||||
import mx.collections.ArrayCollection;
|
||||
import mx.events.DataGridEvent;
|
||||
import org.bigbluebutton.common.events.LocaleChangeEvent;
|
||||
import org.bigbluebutton.core.managers.UserManager;
|
||||
import org.bigbluebutton.main.model.users.BBBUser;
|
||||
import org.bigbluebutton.main.model.users.Conference;
|
||||
import org.bigbluebutton.main.views.MainCanvas;
|
||||
import org.bigbluebutton.util.i18n.ResourceUtil;
|
||||
|
||||
private function onCreationComplete():void {
|
||||
|
||||
}
|
||||
|
||||
public function getPrefferedPosition():String{
|
||||
return MainCanvas.TOP_LEFT;
|
||||
}
|
||||
|
||||
private function assignPresenterClicked():void {
|
||||
|
||||
}
|
||||
|
||||
private function raiseHand():void {
|
||||
|
||||
}
|
||||
|
||||
private function localeChanged(e:LocaleChangeEvent):void {
|
||||
|
||||
}
|
||||
|
||||
]]>
|
||||
</mx:Script>
|
||||
|
||||
<mx:DataGrid id="participantsGrid" dataProvider="{participants}" editable="false" sortableColumns="true"
|
||||
dragEnabled="false" itemClick="userSelectEvent(event);" width="100%" height="100%"
|
||||
itemRollOver="onItemRollOver(event)"
|
||||
itemRollOut="onItemRollOut(event)">
|
||||
<mx:columns>
|
||||
<mx:DataGridColumn dataField="role" headerText="Status" dataTipField="Role" editable="false" width="35"
|
||||
itemRenderer="org.bigbluebutton.modules.viewers.views.RoleItemRenderer" sortable="false" id="roleField"/>
|
||||
<mx:DataGridColumn dataField="name" headerText="Name" editable="false" width="100" sortable="false"
|
||||
itemRenderer="org.bigbluebutton.modules.viewers.views.NameItemRenderer"/>
|
||||
<mx:DataGridColumn dataField="status" headerText="Media" sortable="false"
|
||||
itemRenderer="org.bigbluebutton.modules.viewers.views.StatusItemRenderer"/>
|
||||
</mx:columns>
|
||||
</mx:DataGrid>
|
||||
|
||||
<mx:ControlBar width="100%">
|
||||
<mx:Button id="presentBtn" label="{ResourceUtil.getInstance().getString('bbb.viewers.presentBtn.label')}" visible="true"
|
||||
width="130" height="20" styleName="switchPresenterButtonStyle"
|
||||
toolTip="{ResourceUtil.getInstance().getString('bbb.viewers.presentBtn.toolTip')}"
|
||||
click="assignPresenterClicked()"/>
|
||||
<mx:Spacer width="100%"/>
|
||||
<mx:Button id="raiseHandImage" toggle="true"
|
||||
width="20" height="20"
|
||||
toolTip="{ResourceUtil.getInstance().getString('bbb.viewers.raiseHandBtn.toolTip')}"
|
||||
click="raiseHand()"/>
|
||||
</mx:ControlBar>
|
||||
|
||||
</mdi:MDIWindow>
|
Loading…
Reference in New Issue
Block a user