From 81ccc65a4ab3e69733595e3472b0ac70bff64843 Mon Sep 17 00:00:00 2001 From: Richard Alam Date: Tue, 2 Jul 2013 15:47:14 +0000 Subject: [PATCH] - open create poll window --- .../events/OpenCreatePollWindowEvent.as | 14 ++++++ .../polling/managers/PollingWindowManager.as | 6 ++- .../modules/polling/maps/PollingEventMap.mxml | 43 +++++++++++-------- .../modules/polling/views/PollMainPanel.mxml | 10 +++-- 4 files changed, 50 insertions(+), 23 deletions(-) create mode 100755 bigbluebutton-client/src/org/bigbluebutton/modules/polling/events/OpenCreatePollWindowEvent.as diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/polling/events/OpenCreatePollWindowEvent.as b/bigbluebutton-client/src/org/bigbluebutton/modules/polling/events/OpenCreatePollWindowEvent.as new file mode 100755 index 0000000000..e864790e73 --- /dev/null +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/polling/events/OpenCreatePollWindowEvent.as @@ -0,0 +1,14 @@ +package org.bigbluebutton.modules.polling.events +{ + import flash.events.Event; + + public class OpenCreatePollWindowEvent extends Event + { + public static const OPEN_CREATE_POLL_WINDOW:String = "open create poll window event"; + + public function OpenCreatePollWindowEvent() + { + super(OPEN_CREATE_POLL_WINDOW, true, false); + } + } +} \ No newline at end of file diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/polling/managers/PollingWindowManager.as b/bigbluebutton-client/src/org/bigbluebutton/modules/polling/managers/PollingWindowManager.as index a2cad13392..62b6934198 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/polling/managers/PollingWindowManager.as +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/polling/managers/PollingWindowManager.as @@ -70,7 +70,7 @@ package org.bigbluebutton.modules.polling.managers private var updatePollWindow:UpdatePollWindow = new UpdatePollWindow(); private var takePollWindow:TakePollWindow; private var pollMainWindow:PollMainWindow = new PollMainWindow(); - private var createPollWindow:CreatePollWindow; + private var createPollWindow:CreatePollWindow = new CreatePollWindow(); private var resultsWindow:DisplayResultWindow = new DisplayResultWindow(); private var testCreateWindow:PollCreateWindow; @@ -96,6 +96,10 @@ package org.bigbluebutton.modules.polling.managers openWindow(pollMainWindow); } + public function handleOpenCreatePollWindowEvent():void { + openWindow(createPollWindow); + } + public function handleOpenTakePollWindowEvent(event:OpenTakePollWindowEvent):void { takePollWindow = new TakePollWindow(); takePollWindow.viewModel = _viewModel; diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/polling/maps/PollingEventMap.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/polling/maps/PollingEventMap.mxml index b74c244d92..eaee6e69f4 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/polling/maps/PollingEventMap.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/polling/maps/PollingEventMap.mxml @@ -22,24 +22,25 @@ @@ -52,7 +53,11 @@ - + + + + + diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/polling/views/PollMainPanel.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/polling/views/PollMainPanel.mxml index 823630bbc6..9de5b9bd79 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/polling/views/PollMainPanel.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/polling/views/PollMainPanel.mxml @@ -4,6 +4,9 @@ borderThicknessRight="0" borderThicknessTop="0" creationComplete="onPreInit()" > @@ -71,7 +75,7 @@ - +