From baabaf096567c38c4a0d04b3cf5c71eafdd736fd Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Fri, 26 Aug 2011 17:44:10 +0100 Subject: [PATCH] Fix compiler warnings --- net/systemeD/potlatch2/BackgroundSelector.mxml | 6 ++++-- net/systemeD/potlatch2/RelationSelectPanel.mxml | 8 ++++++-- net/systemeD/potlatch2/help/HelpDialog.mxml | 6 ++++-- net/systemeD/potlatch2/save/SaveDialog.mxml | 8 ++++---- potlatch2.mxml | 4 +++- styles/Application.css | 4 ++-- 6 files changed, 23 insertions(+), 13 deletions(-) diff --git a/net/systemeD/potlatch2/BackgroundSelector.mxml b/net/systemeD/potlatch2/BackgroundSelector.mxml index cb65eb61..78d4b91a 100644 --- a/net/systemeD/potlatch2/BackgroundSelector.mxml +++ b/net/systemeD/potlatch2/BackgroundSelector.mxml @@ -11,9 +11,9 @@ dataProvider="{Imagery.instance().getAvailableImagery()}" rowCount="{Imagery.instance().getAvailableImagery().length}"/> - - @@ -32,6 +32,8 @@ import mx.collections.ArrayCollection; import mx.managers.PopUpManager; + [Bindable] private var application:Object = FlexGlobals.topLevelApplication; + public function setDimming(v:Boolean):void { FlexGlobals.topLevelApplication.theMap.setDimming(dim.selected); FlexGlobals.topLevelApplication.yahoo.alpha = dim.selected ? 0.5 : 1; diff --git a/net/systemeD/potlatch2/RelationSelectPanel.mxml b/net/systemeD/potlatch2/RelationSelectPanel.mxml index e626f4f0..00b0bd15 100644 --- a/net/systemeD/potlatch2/RelationSelectPanel.mxml +++ b/net/systemeD/potlatch2/RelationSelectPanel.mxml @@ -90,15 +90,19 @@ panel.setEntity(entity); PopUpManager.centerPopUp(panel); } + + public function updateSelectButton():void { + selectButton.enabled=relationSelector.selectedItems.length>0; + } ]]> - + - + diff --git a/net/systemeD/potlatch2/help/HelpDialog.mxml b/net/systemeD/potlatch2/help/HelpDialog.mxml index 91437be3..f9abf0fd 100644 --- a/net/systemeD/potlatch2/help/HelpDialog.mxml +++ b/net/systemeD/potlatch2/help/HelpDialog.mxml @@ -13,9 +13,11 @@ import mx.core.Application; import mx.core.FlexGlobals; + [Bindable] private var application:Object = FlexGlobals.topLevelApplication; + /** Pops up a multi-tabbed help window in the middle of the screen, then remembers that the user has seen it. */ public function init():void { - PopUpManager.addPopUp(this, Application(FlexGlobals.topLevelApplication), true); + PopUpManager.addPopUp(this, Application(application), true); PopUpManager.centerPopUp(this); this.addEventListener(CloseEvent.CLOSE, helpDialog_close); @@ -355,7 +357,7 @@ - + diff --git a/net/systemeD/potlatch2/save/SaveDialog.mxml b/net/systemeD/potlatch2/save/SaveDialog.mxml index c0849a5c..510d01f4 100644 --- a/net/systemeD/potlatch2/save/SaveDialog.mxml +++ b/net/systemeD/potlatch2/save/SaveDialog.mxml @@ -9,8 +9,8 @@ - - + + @@ -95,8 +95,8 @@ private var _connection:Connection; private var doSkip:Boolean = false; - [Bindable] - private var failureText:String = ""; + [Bindable] private var failureText:String = ""; + [Bindable] private var application:Object = FlexGlobals.topLevelApplication; public function setConnection(connection:Connection):void { _connection=connection; diff --git a/potlatch2.mxml b/potlatch2.mxml index 09c9861a..fbf7aeef 100644 --- a/potlatch2.mxml +++ b/potlatch2.mxml @@ -32,7 +32,7 @@ - +