summaryrefslogtreecommitdiffstats
path: root/emacs.d/nxhtml/tests/in/bug416505-Body.mxml
blob: e42e09fc8e5f2466be64cd11e6fc3c3ba428d76e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas
  xmlns:mx="http://www.adobe.com/2006/mxml"
  xmlns:c="imo.utils.*"
  xmlns:imocp="imo.components.*"
  xmlns:fl="http://github.com/lancecarlson/flails"
  xmlns:commons="imo.components.commons.*"
  creationComplete="resetMenus()"
  horizontalScrollPolicy="off" verticalScrollPolicy="off">

  <mx:Script>
    <![CDATA[
      import imo.components.tooltips.MediaFileToolTip;

      import mx.core.UIComponent;
      import mx.events.DragEvent;
      import mx.managers.DragManager;
      
      public static const LEFT_STATES:Array = [];
      public static const RIGHT_STATES:Array = [];

      [Deprecated]
      public function changeState(state:String):void {
        containers.currentState = state;
      }

      private function tabMouseDown(e:MouseEvent):void{
        resetMenus(e.target.parent);
      	containers.currentState = e.target.label;
      }

      private function resetMenus(which:Object = null):void {
        if (which == null) {
          leftMenu.selectedIndex = -1;
          rightMenu.selectedIndex = -1;
        } else {
          which.selectedIndex = -1;
        }
      }

      private function onDragEnter( event:DragEvent ):void{
        containers.currentState = "queue";
        DragManager.acceptDragDrop( UIComponent(event.target) );
      }

      private function updateMenu(page:Object):void{
        if (page.hasOwnProperty("menu")) {
          this[page.menu + "Menu"].selectedIndex = page.menuIndex;
        } else {
          resetMenus();
        }
      }
     ]]>
  </mx:Script>

  <!--<commons:TransparentBorderCanvas styleName="sideCanvas" x="-10" width="30" height="210"
    horizontalScrollPolicy="off" verticalScrollPolicy="off"
  	customBorderThickness="2" borderAlpha=".6" cornerRadius="10">-->
  <mx:Canvas styleName="sideCanvas" horizontalScrollPolicy="off" verticalScrollPolicy="off" x="-8" width="30" height="174" >
    <mx:TabBar id="leftMenu"
               styleName="sideMenu"
               dataProvider="{LEFT_STATES.reverse()}"
               rotation="90"
               x="24"
               y="4"
               width="163"
               buttonMode="true"
               mouseDown="tabMouseDown(event);"
               toggleOnClick="true"/>
    </mx:Canvas>
  <!--</commons:TransparentBorderCanvas>-->

  <imocp:MainContainer x="29" y="0" id="containers" width="376" height="473"/>
	<mx:Canvas x="412" styleName="sideCanvas" horizontalScrollPolicy="off" verticalScrollPolicy="off"  width="40" height="155">
	  <mx:TabBar x="22" y="5" id="rightMenu" mouseDown="tabMouseDown(event);"
                     styleName="rightSideMenu"
                     dataProvider="{RIGHT_STATES.reverse()}"
                     rotation="90"
                     width="142"
                     buttonMode="true"
                     dragEnter="onDragEnter(event)"
                     toggleOnClick="true"/>
	</mx:Canvas>
  <!--</commons:TransparentBorderCanvas>-->
</mx:Canvas>