created toolbarVisibleByDefault and showToolbarButton attributes for shared notes window

This commit is contained in:
Felipe Cecagno 2015-11-10 11:17:23 -02:00
parent 15acb57b17
commit 6e5729fc67
4 changed files with 18 additions and 4 deletions

View File

@ -423,7 +423,7 @@ bbb.sharedNotes.name = Nome da nota
bbb.sharedNotes.save.toolTip = Salvar notas em arquivo
bbb.sharedNotes.save.complete = Notas salvas com sucesso
bbb.sharedNotes.new.toolTip = Criar novas notas compartilhadas
bbb.sharedNotes.toolbar.toolTip = Barra de ferramentas de formatação de texto
bbb.sharedNotes.toolbar.toolTip = Barra de formatação de texto
bbb.sharedNotes.additionalNotes.closeWarning.title = Fechando notas compartilhadas
bbb.sharedNotes.additionalNotes.closeWarning.message = Esta ação irá destruir as notas desta janela para todos, e não haverá maneira de recuperá-las. Você tem certeza que deseja fechar estas notas?
bbb.settings.deskshare.instructions = Clique em Permitir na janela que será aberta para verificar se o compartilhamento de tela está funcionando corretamente

View File

@ -121,6 +121,8 @@
enableMultipleNotes="true"
dependsOn="UsersModule"
position="bottom-left"
toolbarVisibleByDefault="false"
showToolbarButton="true"
/>
</modules>
</config>

View File

@ -19,6 +19,12 @@ package org.bigbluebutton.modules.sharednotes
[Bindable]
public var enableMultipleNotes:Boolean = false;
[Bindable]
public var toolbarVisibleByDefault:Boolean = false;
[Bindable]
public var showToolbarButton:Boolean = false;
public function SharedNotesOptions()
{
@ -39,6 +45,12 @@ package org.bigbluebutton.modules.sharednotes
if (vxml.@enableMultipleNotes != undefined) {
enableMultipleNotes = (vxml.@enableMultipleNotes.toString().toUpperCase() == "TRUE") ? true : false;
}
if (vxml.@toolbarVisibleByDefault != undefined) {
toolbarVisibleByDefault = (vxml.@toolbarVisibleByDefault.toString().toUpperCase() == "TRUE") ? true : false;
}
if (vxml.@showToolbarButton != undefined) {
showToolbarButton = (vxml.@showToolbarButton.toString().toUpperCase() == "TRUE") ? true : false;
}
}
}
}

View File

@ -68,7 +68,7 @@
protected var _notesId:String="MAIN_WINDOW";
protected var _noteName:String = "";
private var options:SharedNotesOptions = new SharedNotesOptions();
[Bindable] private var options:SharedNotesOptions = new SharedNotesOptions();
private var sendUpdateTimer:Timer;
private var getDocumentTimer:Timer = new Timer(5000);
@ -217,11 +217,11 @@
</mx:Script>
<mx:VBox width="100%" height="100%">
<components:SharedNotesRichTextEditor width="100%" height="100%" id="richTextEditor" showControlBar="false" dropShadowEnabled="false" headerHeight="0" borderThicknessLeft="0" borderThicknessRight="0" borderThicknessTop="0" borderThicknessBottom="0" minWidth="120" minHeight="100" initialize="initSharedNotesRichTextEditor()"/>
<components:SharedNotesRichTextEditor width="100%" height="100%" id="richTextEditor" showControlBar="{options.toolbarVisibleByDefault}" dropShadowEnabled="false" headerHeight="0" borderThicknessLeft="0" borderThicknessRight="0" borderThicknessTop="0" borderThicknessBottom="0" minWidth="120" minHeight="100" initialize="initSharedNotesRichTextEditor()"/>
<mx:HBox width="100%" horizontalAlign="right" paddingTop="0">
<mx:Button id="btnNew" width="26" height="26" click="btnNew_clickHandler(event)" icon="@Embed(source='images/ic_note_add_16px.png')" toolTip="{ResourceUtil.getInstance().getString('bbb.sharedNotes.new.toolTip')}"/>
<mx:Button width="26" height="26" click="btnToolbar_clickHandler(event)" icon="@Embed(source='images/ic_note_format_16px.png')" toolTip="{ResourceUtil.getInstance().getString('bbb.sharedNotes.toolbar.toolTip')}"/>
<mx:Button width="26" height="26" click="btnToolbar_clickHandler(event)" icon="@Embed(source='images/ic_note_format_16px.png')" toolTip="{ResourceUtil.getInstance().getString('bbb.sharedNotes.toolbar.toolTip')}" visible="{options.showToolbarButton}" includeInLayout="{options.showToolbarButton}"/>
<mx:Button width="26" height="26" click="btnSave_clickHandler(event)" icon="@Embed(source='images/ic_save_16px.png')" toolTip="{ResourceUtil.getInstance().getString('bbb.sharedNotes.save.toolTip')}"/>
</mx:HBox>
</mx:VBox>