Skip to content

Commit

Permalink
- change icons for voice, video and deskshare
Browse files Browse the repository at this point in the history
  • Loading branch information
ritzalam committed Apr 13, 2012
1 parent 49bab25 commit f7aa80b
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 3 deletions.
6 changes: 6 additions & 0 deletions bigbluebutton-client/src/org/bigbluebutton/common/Images.as
Expand Up @@ -21,6 +21,12 @@ package org.bigbluebutton.common
[Bindable]
public class Images
{
[Embed(source="assets/images/webcam_close.png")]
public var webcamClose:Class;

[Embed(source="assets/images/deskshare_close.png")]
public var deskshareClose:Class;

[Embed(source="assets/images/fit-to-page.png")]
public var fitToPage:Class;

Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -68,10 +68,11 @@ package org.bigbluebutton.modules.deskshare.managers

public function enableToolbarButton():void {
button.enabled = true;
button.stopDeskshare();
}

public function disableToolbarButton():void {
button.enabled = false;
button.enabled = false;
}
}
}
Expand Up @@ -40,11 +40,15 @@
[Bindable] public var deskShareIcon:Class = images.deskShareIcon;
private function startDeskShare():void {
LogUtil.debug("desk share button clicked");
deskShareIcon = images.deskshareClose;
this.enabled = false;
dispatchEvent(new ShareEvent(ShareEvent.START_SHARING));
}
public function stopDeskshare():void {
deskShareIcon = images.deskShareIcon;
}
public function getAlignment():String{
return MainToolbar.ALIGN_LEFT;
}
Expand Down
Expand Up @@ -24,6 +24,9 @@ package org.bigbluebutton.modules.phone.views.assets
{
[Embed(source="images/headset.png")]
public var headset_icon:Class;

[Embed(source="images/headset_close.png")]
public var headsetClose:Class;

}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -60,8 +60,9 @@
phoneOptions.autoJoin = (vxml.@autoJoin.toString().toUpperCase() == "TRUE") ? true : false;
phoneOptions.skipCheck = (vxml.@skipCheck.toString().toUpperCase() == "TRUE") ? true : false;
}
phoneIcon = images.headsetClose;
if (phoneOptions.skipCheck || noMicrophone()) {
/*
* If the user had no mic, let her join but she'll just be listening.
* We should indicate a warning that the user is joining without mic
Expand All @@ -74,6 +75,7 @@
dispatcher.dispatchEvent(new BBBEvent("SHOW_MIC_SETTINGS"));
}
} else {
phoneIcon = images.headset_icon;
var leaveEvent:BBBEvent = new BBBEvent("LEAVE_VOICE_CONFERENCE_EVENT");
leaveEvent.payload["userRequested"] = true;
dispatcher.dispatchEvent(leaveEvent);
Expand All @@ -91,9 +93,12 @@
private function handleMicSettingsClosedEvent(event:BBBEvent):void {
this.selected = false;
this.enabled = true;
phoneIcon = images.headset_icon;
}
private function handleBBBJoinConferenceEvent(event:BBBEvent):void {
phoneIcon = images.headsetClose;
var joinEvent:BBBEvent = new BBBEvent("JOIN_VOICE_CONFERENCE_EVENT");
joinEvent.payload['useMicrophone'] = false;
dispatcher.dispatchEvent(joinEvent);
Expand Down
Expand Up @@ -49,10 +49,12 @@
private function openPublishWindow():void{
dispatchEvent(new OpenPublishWindowEvent());
this.enabled = false;
camIcon = images.webcamClose;
}
public function show():void{
this.enabled = true;
camIcon = images.webcam;
}
public function getAlignment():String{
Expand Down

0 comments on commit f7aa80b

Please sign in to comment.