<sidepanel:BackgroundPanel id="backgroundPanelContents" width="100%"/>
</mx:VBox>
+ <!-- merge tags from background layer -->
+
+ <mx:VBox id="backgroundMergePanel" width="100%" height="100%" horizontalScrollPolicy="off" styleName="dndPanelVbox">
+ <sidepanel:BackgroundMergePanel id="backgroundMergePanelContents" width="100%" />
+ </mx:VBox>
+
</mx:ViewStack>
- <mx:Script><![CDATA[
+ <fx:Script><![CDATA[
import net.systemeD.halcyon.connection.*;
import net.systemeD.halcyon.MapPaint;
+ import net.systemeD.potlatch2.EditController;
import net.systemeD.potlatch2.mapfeatures.*;
import net.systemeD.potlatch2.utils.*;
+ import net.systemeD.controls.CollapsiblePanel;
import mx.collections.*;
import mx.containers.*;
<mx:DataGridColumn editable="false" dataField="value" headerText="value" />
</mx:columns>
</mx:DataGrid>
- <mx:Text text="All the data copied to the main layer? Click 'complete'!" />
- <mx:Button label="Complete" click="markComplete()"/>
+ <mx:ViewStack id="statusStack" resizeToContent="true" width="100%">
+ <mx:VBox id="empty" />
+ <mx:VBox id="not_complete">
+ <mx:Text text="All the data copied to the main layer? Click 'complete'!" />
+ <mx:Button label="Complete" click="markComplete()"/>
+ </mx:VBox>
+ <mx:VBox id="complete">
+ <mx:Text text="This feature has been marked as complete. If this is wrong, press the button below." />
+ <mx:Button label="Not complete" click="markNotComplete()"/>
+ </mx:VBox>
+ </mx:ViewStack>
- <mx:Script><![CDATA[
+ <fx:Script><![CDATA[
import net.systemeD.halcyon.connection.*;
import net.systemeD.halcyon.MapPaint;
}
private function markComplete():void {
- if (selectedEntity.connection is SnapshotConnection) {
- SnapshotConnection(selectedEntity.connection).markComplete(selectedEntity);
- }
+ if (selectedEntity.connection is SnapshotConnection) {
+ SnapshotConnection(selectedEntity.connection).markComplete(selectedEntity);
+ }
+ }
+
+ private function markNotComplete():void {
+ if (selectedEntity.connection is SnapshotConnection) {
+ SnapshotConnection(selectedEntity.connection).markNotComplete(selectedEntity);
+ }
}
]]>
- </mx:Script>
+ </fx:Script>
</mx:VBox>