Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 225764
Collapse All | Expand All

(-)src/org/eclipse/rwt/internal/lifecycle/CurrentPhase.java (-1 lines)
Lines 8-14 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *     Innoopract Informationssysteme GmbH - initial API and implementation
9
 *     Innoopract Informationssysteme GmbH - initial API and implementation
10
 ******************************************************************************/
10
 ******************************************************************************/
11
12
package org.eclipse.rwt.internal.lifecycle;
11
package org.eclipse.rwt.internal.lifecycle;
13
12
14
import org.eclipse.rwt.internal.service.ContextProvider;
13
import org.eclipse.rwt.internal.service.ContextProvider;
(-)src/org/eclipse/rwt/internal/lifecycle/JSConst.java (-4 / +10 lines)
Lines 8-14 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *     Innoopract Informationssysteme GmbH - initial API and implementation
9
 *     Innoopract Informationssysteme GmbH - initial API and implementation
10
 ******************************************************************************/
10
 ******************************************************************************/
11
12
package org.eclipse.rwt.internal.lifecycle;
11
package org.eclipse.rwt.internal.lifecycle;
13
12
14
import org.eclipse.rwt.lifecycle.JSVar;
13
import org.eclipse.rwt.lifecycle.JSVar;
Lines 58-63 Link Here
58
    = "org.eclipse.swt.events.mouseDown";
57
    = "org.eclipse.swt.events.mouseDown";
59
  public static final String EVENT_MOUSE_DOUBLE_CLICK
58
  public static final String EVENT_MOUSE_DOUBLE_CLICK
60
    = "org.eclipse.swt.events.mouseDoubleClick";
59
    = "org.eclipse.swt.events.mouseDoubleClick";
60
  public static final String EVENT_KEY_DOWN
61
    = "org.eclipse.swt.events.keyDown";
61
62
62
63
63
  // Parameter names that specify further event details
64
  // Parameter names that specify further event details
Lines 87-96 Link Here
87
    = "org.eclipse.swt.events.mouseDoubleClick.x";
88
    = "org.eclipse.swt.events.mouseDoubleClick.x";
88
  public static final String EVENT_MOUSE_DOUBLE_CLICK_Y
89
  public static final String EVENT_MOUSE_DOUBLE_CLICK_Y
89
    = "org.eclipse.swt.events.mouseDoubleClick.y";
90
    = "org.eclipse.swt.events.mouseDoubleClick.y";
91
  public static final String EVENT_KEY_DOWN_KEY_CODE
92
    = "org.eclipse.swt.events.keyDown.keyCode";
93
  public static final String EVENT_KEY_DOWN_CHARACTER
94
    = "org.eclipse.swt.events.keyDown.character";
95
  public static final String EVENT_KEY_DOWN_EVENT_ID
96
    = "org.eclipse.swt.events.keyDown.eventId";
90
97
91
  /**
98
  // Indicates that a shell was closed on the client side. The parameter
92
   * <p>Indicates that a shell was closed on the client side. The parameter
99
  // value holds the id of the shell that was closed.
93
   * value holds the id of the shell that was closed.</p> */
94
  public static final String EVENT_SHELL_CLOSED
100
  public static final String EVENT_SHELL_CLOSED
95
    = "org.eclipse.swt.widgets.Shell_close";
101
    = "org.eclipse.swt.widgets.Shell_close";
96
102
(-)src/org/eclipse/swt/events/MouseEvent.java (-1 / +7 lines)
Lines 27-32 Link Here
27
 * as the <code>SWT</code> mask constants <code>BUTTONx</code>.
27
 * as the <code>SWT</code> mask constants <code>BUTTONx</code>.
28
 * </p>
28
 * </p>
29
 *
29
 *
30
 * <p><strong>IMPORTANT:</strong> All <code>public static</code> members of 
31
 * this class are <em>not</em> part of the RWT public API. They are marked 
32
 * public only so that they can be shared within the packages provided by RWT. 
33
 * They should never be accessed from application code.
34
 * </p>
35
 * 
30
 * @see MouseListener
36
 * @see MouseListener
31
 * @see MouseMoveListener
37
 * @see MouseMoveListener
32
 * @see MouseTrackListener
38
 * @see MouseTrackListener
Lines 133-139 Link Here
133
           + "}";
139
           + "}";
134
  }
140
  }
135
141
136
  public static void addListener( final Adaptable adaptable, 
142
  public static void addListener( final Adaptable adaptable,
137
                                  final MouseListener listener )
143
                                  final MouseListener listener )
138
  {
144
  {
139
    addListener( adaptable, LISTENER, listener );
145
    addListener( adaptable, LISTENER, listener );
(-)src/org/eclipse/swt/events/TypedEvent.java (-2 / +2 lines)
Lines 8-14 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *     Innoopract Informationssysteme GmbH - initial API and implementation
9
 *     Innoopract Informationssysteme GmbH - initial API and implementation
10
 ******************************************************************************/
10
 ******************************************************************************/
11
12
package org.eclipse.swt.events;
11
package org.eclipse.swt.events;
13
12
14
import java.util.ArrayList;
13
import java.util.ArrayList;
Lines 59-65 Link Here
59
    SelectionEvent.class,
58
    SelectionEvent.class,
60
    LocationEvent.class,
59
    LocationEvent.class,
61
    ShellEvent.class,
60
    ShellEvent.class,
62
    MenuEvent.class
61
    MenuEvent.class,
62
    KeyEvent.class
63
  };
63
  };
64
  
64
  
65
  /**
65
  /**
(-)src/org/eclipse/rwt/lifecycle/ControlLCAUtil.java (-6 / +183 lines)
Lines 16-23 Link Here
16
16
17
import javax.servlet.http.HttpServletRequest;
17
import javax.servlet.http.HttpServletRequest;
18
18
19
import org.eclipse.rwt.RWT;
19
import org.eclipse.rwt.internal.lifecycle.JSConst;
20
import org.eclipse.rwt.internal.lifecycle.JSConst;
20
import org.eclipse.rwt.internal.service.ContextProvider;
21
import org.eclipse.rwt.internal.service.ContextProvider;
22
import org.eclipse.rwt.service.IServiceStore;
21
import org.eclipse.swt.SWT;
23
import org.eclipse.swt.SWT;
22
import org.eclipse.swt.custom.SashForm;
24
import org.eclipse.swt.custom.SashForm;
23
import org.eclipse.swt.events.*;
25
import org.eclipse.swt.events.*;
Lines 67-84 Link Here
67
  private static final String JS_FUNC_REMOVE_ACTIVATE_LISTENER_WIDGET
69
  private static final String JS_FUNC_REMOVE_ACTIVATE_LISTENER_WIDGET
68
    = "removeActivateListenerWidget";
70
    = "removeActivateListenerWidget";
69
71
70
  private static final String PROP_CURSOR = "cursor";
71
72
  // Property names to preserve widget property values
72
  // Property names to preserve widget property values
73
  private static final String PROP_ACTIVATE_LISTENER = "activateListener";
73
  private static final String PROP_ACTIVATE_LISTENER = "activateListener";
74
  private static final String PROP_FOCUS_LISTENER = "focusListener";
74
  private static final String PROP_FOCUS_LISTENER = "focusListener";
75
  private static final String PROP_MOUSE_LISTENER = "mouseListener";
75
  private static final String PROP_MOUSE_LISTENER = "mouseListener";
76
  private static final String PROP_KEY_LISTENER = "keyListener";
76
  private static final String PROP_TAB_INDEX = "tabIndex";
77
  private static final String PROP_TAB_INDEX = "tabIndex";
78
  private static final String PROP_CURSOR = "cursor";
77
  private static final String PROP_BACKGROUND_IMAGE = "backgroundImage";
79
  private static final String PROP_BACKGROUND_IMAGE = "backgroundImage";
78
80
81
  private static final String USER_DATA_KEY_LISTENER = "keyListener";
82
  private static final String ATT_CANCEL_KEY_EVENT
83
    = ControlLCAUtil.class.getName() + "#cancelKeyEvent";
84
  static final String ATT_ACCEPT_KEY_EVENT
85
    = ControlLCAUtil.class.getName() + "#acceptKeyEvent";
86
  static final String JSFUNC_CANCEL_EVENT
87
    = "org.eclipse.rwt.KeyEventUtil.getInstance().cancelEvent";
88
  static final String JSFUNC_ACCEPT_EVENT
89
    = "org.eclipse.rwt.KeyEventUtil.getInstance().acceptEvent";
90
79
  static final int MAX_STATIC_ZORDER = 300;
91
  static final int MAX_STATIC_ZORDER = 300;
80
92
81
93
94
82
  private ControlLCAUtil() {
95
  private ControlLCAUtil() {
83
    // prevent instance creation
96
    // prevent instance creation
84
  }
97
  }
Lines 139-144 Link Here
139
      adapter.preserve( PROP_FOCUS_LISTENER,
152
      adapter.preserve( PROP_FOCUS_LISTENER,
140
                        Boolean.valueOf( FocusEvent.hasListener( control ) ) );
153
                        Boolean.valueOf( FocusEvent.hasListener( control ) ) );
141
    }
154
    }
155
    adapter.preserve( PROP_KEY_LISTENER,
156
                      Boolean.valueOf( KeyEvent.hasListener( control ) ) );
142
  }
157
  }
143
158
144
  /**
159
  /**
Lines 321-326 Link Here
321
    writeActivateListener( control );
336
    writeActivateListener( control );
322
    writeFocusListener( control );
337
    writeFocusListener( control );
323
    writeMouseListener( control );
338
    writeMouseListener( control );
339
    writeKeyListener( control );
340
    writeKeyEventResponse( control );
324
  }
341
  }
325
342
326
  /**
343
  /**
Lines 736-741 Link Here
736
                           hasListener );
753
                           hasListener );
737
  }
754
  }
738
755
756
  static void writeKeyListener( final Control control )
757
    throws IOException
758
  {
759
    String prop = PROP_KEY_LISTENER;
760
    Boolean hasListener = Boolean.valueOf( KeyEvent.hasListener( control ) );
761
    Boolean defValue = Boolean.FALSE;
762
    if( WidgetLCAUtil.hasChanged( control, prop, hasListener, defValue ) ) {
763
      JSWriter writer = JSWriter.getWriterFor( control );
764
      if( hasListener.booleanValue() ) {
765
        Object[] args = new Object[] { USER_DATA_KEY_LISTENER, hasListener };
766
        writer.call( "setUserData", args );
767
      } else {
768
        Object[] args = new Object[] { USER_DATA_KEY_LISTENER, null };
769
        writer.call( "setUserData", args );
770
      }
771
    }
772
  }
773
739
  //////////
774
  //////////
740
  // Z-Index
775
  // Z-Index
741
776
Lines 750-756 Link Here
750
    if( control.getParent() != null ) {
785
    if( control.getParent() != null ) {
751
      // TODO [rh] revise: determining the childrenCount by getting all the
786
      // TODO [rh] revise: determining the childrenCount by getting all the
752
      //      children might be bad performance-wise. This was done in order to
787
      //      children might be bad performance-wise. This was done in order to
753
      //      eliminate Composite#getChildrenCount() which no API in SWT
788
      //      eliminate Composite#getChildrenCount() which is no API in SWT
754
      max = Math.max( control.getParent().getChildren().length, max );
789
      max = Math.max( control.getParent().getChildren().length, max );
755
    }
790
    }
756
    Object adapter = control.getAdapter( IControlAdapter.class );
791
    Object adapter = control.getAdapter( IControlAdapter.class );
Lines 818-826 Link Here
818
    return nextIndex;
853
    return nextIndex;
819
  }
854
  }
820
855
821
  /**
822
   * Determines the tab index to write for a given control.
823
   */
824
  private static int getTabIndex( final Control control ) {
856
  private static int getTabIndex( final Control control ) {
825
    int result = -1;
857
    int result = -1;
826
    if( takesFocus( control ) ) {
858
    if( takesFocus( control ) ) {
Lines 831-836 Link Here
831
    return result;
863
    return result;
832
  }
864
  }
833
865
866
  // TODO [rh] Eliminate instance checks. Let the respective classes always return NO_FOCUS
834
  private static boolean takesFocus( final Control control ) {
867
  private static boolean takesFocus( final Control control ) {
835
    boolean result = true;
868
    boolean result = true;
836
    result &= ( control.getStyle() & SWT.NO_FOCUS ) == 0;
869
    result &= ( control.getStyle() & SWT.NO_FOCUS ) == 0;
Lines 888-893 Link Here
888
                               SWT.NONE );
921
                               SWT.NONE );
889
  }
922
  }
890
923
924
  public static void processKeyEvents( final Control control ) {
925
    if( WidgetLCAUtil.wasEventSent( control, JSConst.EVENT_KEY_DOWN ) ) {
926
      final KeyEvent event = new KeyEvent( control, KeyEvent.KEY_PRESSED );
927
      int keyCode = readIntParam( JSConst.EVENT_KEY_DOWN_KEY_CODE );
928
      translateKeyCode( keyCode, event );
929
      ProcessActionRunner.add( new Runnable() {
930
        public void run() {
931
          event.processEvent();
932
          if( event.doit ) {
933
            acceptKeyEvent( event );
934
          } else {
935
            cancelKeyEvent( event );
936
          }
937
        }
938
      } );
939
    }
940
  }
941
942
  private static void translateKeyCode( final int keyCode,
943
                                        final KeyEvent event )
944
  {
945
    switch( keyCode ) {
946
      case 20:
947
        event.keyCode = SWT.CAPS_LOCK;
948
      break;
949
      case 38:
950
        event.keyCode = SWT.UP;
951
      break;
952
      case 37:
953
        event.keyCode = SWT.LEFT;
954
      break;
955
      case 39:
956
        event.keyCode = SWT.RIGHT;
957
      break;
958
      case 40:
959
        event.keyCode = SWT.DOWN;
960
      break;
961
      case 33:
962
        event.keyCode = SWT.PAGE_UP;
963
      break;
964
      case 34:
965
        event.keyCode = SWT.PAGE_DOWN;
966
      break;
967
      case 35:
968
        event.keyCode = SWT.END;
969
      break;
970
      case 36:
971
        event.keyCode = SWT.HOME;
972
      break;
973
      case 45:
974
        event.keyCode = SWT.INSERT;
975
      break;
976
      case 46:
977
        event.keyCode = SWT.DEL;
978
      break;
979
      case 112:
980
        event.keyCode = SWT.F1;
981
      break;
982
      case 113:
983
        event.keyCode = SWT.F2;
984
      break;
985
      case 114:
986
        event.keyCode = SWT.F3;
987
      break;
988
      case 115:
989
        event.keyCode = SWT.F4;
990
      break;
991
      case 116:
992
        event.keyCode = SWT.F5;
993
      break;
994
      case 117:
995
        event.keyCode = SWT.F6;
996
      break;
997
      case 118:
998
        event.keyCode = SWT.F7;
999
      break;
1000
      case 119:
1001
        event.keyCode = SWT.F8;
1002
      break;
1003
      case 120:
1004
        event.keyCode = SWT.F9;
1005
      break;
1006
      case 121:
1007
        event.keyCode = SWT.F10;
1008
      break;
1009
      case 122:
1010
        event.keyCode = SWT.F11;
1011
      break;
1012
      case 123:
1013
        event.keyCode = SWT.F12;
1014
      break;
1015
      case 144:
1016
        event.keyCode = SWT.NUM_LOCK;
1017
      break;
1018
      case 44:
1019
        event.keyCode = SWT.PRINT_SCREEN;
1020
      break;
1021
      case 145:
1022
        event.keyCode = SWT.SCROLL_LOCK;
1023
      break;
1024
      case 19:
1025
        event.keyCode = SWT.PAUSE;
1026
      break;
1027
      default:
1028
        event.keyCode = keyCode;
1029
        event.character = toCharacter( keyCode );
1030
    }
1031
  }
1032
1033
  private static void cancelKeyEvent( final KeyEvent event ) {
1034
    RWT.getServiceStore().setAttribute( ATT_CANCEL_KEY_EVENT, event.widget );
1035
  }
1036
1037
  private static void acceptKeyEvent( final KeyEvent event ) {
1038
    RWT.getServiceStore().setAttribute( ATT_ACCEPT_KEY_EVENT, event.widget );
1039
  }
1040
1041
  private static void writeKeyEventResponse( final Control control )
1042
    throws IOException
1043
  {
1044
    String functionName = null;
1045
    IServiceStore serviceStore = RWT.getServiceStore();
1046
    if( serviceStore.getAttribute( ATT_CANCEL_KEY_EVENT ) == control ) {
1047
      functionName = JSFUNC_CANCEL_EVENT;
1048
    } else if( serviceStore.getAttribute( ATT_ACCEPT_KEY_EVENT ) == control ) {
1049
      functionName = JSFUNC_ACCEPT_EVENT;
1050
    }
1051
    if( functionName != null ) {
1052
      JSWriter writer = JSWriter.getWriterFor( control );
1053
      HttpServletRequest request = ContextProvider.getRequest();
1054
      String value = request.getParameter( JSConst.EVENT_KEY_DOWN_EVENT_ID );
1055
      Integer eventId = Integer.valueOf( value );
1056
      writer.callStatic( functionName, new Object[] { eventId } );
1057
    }
1058
  }
1059
1060
  private static char toCharacter( final int keyCode ) {
1061
    char result = ( char )0;
1062
    if( Character.isDefined( ( char )keyCode ) ) {
1063
      result = ( char )keyCode;
1064
    }
1065
    return result;
1066
  }
1067
891
  public static void processMouseEvents( final Control control ) {
1068
  public static void processMouseEvents( final Control control ) {
892
    if( WidgetLCAUtil.wasEventSent( control, JSConst.EVENT_MOUSE_DOWN ) ) {
1069
    if( WidgetLCAUtil.wasEventSent( control, JSConst.EVENT_MOUSE_DOWN ) ) {
893
      MouseEvent event = new MouseEvent( control, MouseEvent.MOUSE_DOWN );
1070
      MouseEvent event = new MouseEvent( control, MouseEvent.MOUSE_DOWN );
(-)src/org/eclipse/swt/internal/widgets/UntypedEventAdapter.java (-1 / +19 lines)
Lines 30-36 Link Here
30
             ModifyListener,
30
             ModifyListener,
31
             SetDataListener,
31
             SetDataListener,
32
             VerifyListener,
32
             VerifyListener,
33
             MouseListener
33
             MouseListener,
34
             KeyListener
34
{
35
{
35
  private ArrayList listeners = new ArrayList();
36
  private ArrayList listeners = new ArrayList();
36
37
Lines 170-175 Link Here
170
    dispatchEvent( SWT.MouseDoubleClick, event );
171
    dispatchEvent( SWT.MouseDoubleClick, event );
171
  }
172
  }
172
  
173
  
174
  public void keyPressed( final KeyEvent typedEvent ) {
175
    Event event = createEvent( SWT.KeyDown, typedEvent.getSource() );
176
    event.character = typedEvent.character;
177
    event.keyCode = typedEvent.keyCode;
178
    event.stateMask = typedEvent.stateMask;
179
    event.doit = typedEvent.doit;
180
    event.data = typedEvent.data;
181
    dispatchEvent( SWT.KeyDown, event );
182
    typedEvent.doit = event.doit;
183
  }
184
  
173
  public void addListener( final Widget widget, 
185
  public void addListener( final Widget widget, 
174
                           final int eventType,
186
                           final int eventType,
175
                           final Listener listener )
187
                           final Listener listener )
Lines 218-223 Link Here
218
      case SWT.MouseDoubleClick:
230
      case SWT.MouseDoubleClick:
219
        MouseEvent.addListener( widget, this );
231
        MouseEvent.addListener( widget, this );
220
      break;
232
      break;
233
      case SWT.KeyDown:
234
        KeyEvent.addListener( widget, this );
235
      break;
221
      default:
236
      default:
222
        String txt = "The untyped event ''{0}'' is not supported.";
237
        String txt = "The untyped event ''{0}'' is not supported.";
223
        Object[] param = new Object[] { new Integer( eventType ) };
238
        Object[] param = new Object[] { new Integer( eventType ) };
Lines 274-279 Link Here
274
      case SWT.MouseDoubleClick:
289
      case SWT.MouseDoubleClick:
275
        MouseEvent.removeListener( widget, this );
290
        MouseEvent.removeListener( widget, this );
276
      break;
291
      break;
292
      case SWT.KeyDown:
293
        KeyEvent.removeListener( widget, this );
294
      break;
277
      default:
295
      default:
278
        String txt = "The untyped event ''{0}'' is not supported.";
296
        String txt = "The untyped event ''{0}'' is not supported.";
279
        Object[] param = new Object[] { new Integer( eventType ) };
297
        Object[] param = new Object[] { new Integer( eventType ) };
(-)src/org/eclipse/swt/widgets/Control.java (+62 lines)
Lines 1485-1490 Link Here
1485
1485
1486
  /**
1486
  /**
1487
   * Adds the listener to the collection of listeners who will
1487
   * Adds the listener to the collection of listeners who will
1488
   * be notified when keys are pressed and released on the system keyboard, by sending
1489
   * it one of the messages defined in the <code>KeyListener</code>
1490
   * interface.
1491
   * <!--
1492
   * TODO [rh] investigate whether this statements is true in RWT as well
1493
   * <p>
1494
   * When a key listener is added to a control, the control
1495
   * will take part in widget traversal.  By default, all
1496
   * traversal keys (such as the tab key and so on) are
1497
   * delivered to the control.  In order for a control to take
1498
   * part in traversal, it should listen for traversal events.
1499
   * Otherwise, the user can traverse into a control but not
1500
   * out.  Note that native controls such as table and tree
1501
   * implement key traversal in the operating system.  It is
1502
   * not necessary to add traversal listeners for these controls,
1503
   * unless you want to override the default traversal.
1504
   * </p>
1505
   * -->
1506
   * @param listener the listener which should be notified
1507
   *
1508
   * @exception IllegalArgumentException <ul>
1509
   *    <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
1510
   * </ul>
1511
   * @exception SWTException <ul>
1512
   *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
1513
   *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
1514
   * </ul>
1515
   *
1516
   * @see KeyListener
1517
   * @see #removeKeyListener
1518
   * 
1519
   * @since 1.2
1520
   */
1521
  public void addKeyListener( final KeyListener listener ) {
1522
    KeyEvent.addListener( this, listener );
1523
  }
1524
1525
  /**
1526
   * Removes the listener from the collection of listeners who will
1527
   * be notified when keys are pressed and released on the system keyboard.
1528
   *
1529
   * @param listener the listener which should no longer be notified
1530
   *
1531
   * @exception IllegalArgumentException <ul>
1532
   *    <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
1533
   * </ul>
1534
   * @exception SWTException <ul>
1535
   *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
1536
   *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
1537
   * </ul>
1538
   *
1539
   * @see KeyListener
1540
   * @see #addKeyListener
1541
   * 
1542
   * @since 1.2
1543
   */
1544
  public void removeKeyListener( final KeyListener listener ) {
1545
    KeyEvent.removeListener( this, listener );
1546
  }
1547
  
1548
  /**
1549
   * Adds the listener to the collection of listeners who will
1488
   * be notified when the control gains or loses focus, by sending
1550
   * be notified when the control gains or loses focus, by sending
1489
   * it one of the messages defined in the <code>FocusListener</code>
1551
   * it one of the messages defined in the <code>FocusListener</code>
1490
   * interface.
1552
   * interface.
(-)src/org/eclipse/swt/SWT.java (-20 / +452 lines)
Lines 44-49 Link Here
44
  public static final int None = 0;
44
  public static final int None = 0;
45
45
46
  /**
46
  /**
47
   * The key down event type (value is 1).
48
   * 
49
   * @see org.eclipse.swt.widgets.Widget#addListener
50
   * <!-- @see org.eclipse.swt.widgets.Display#addFilter -->
51
   * @see org.eclipse.swt.widgets.Event
52
   * 
53
   * @see org.eclipse.swt.widgets.Control#addKeyListener
54
   * <!-- @see org.eclipse.swt.widgets.Tracker#addKeyListener -->
55
   * @see org.eclipse.swt.events.KeyListener#keyPressed
56
   * @see org.eclipse.swt.events.KeyEvent
57
   */
58
  public static final int KeyDown = 1;
59
  
60
  /**
47
   * The mouse down event type (value is 3).
61
   * The mouse down event type (value is 3).
48
   *
62
   *
49
   * @see org.eclipse.swt.widgets.Widget#addListener
63
   * @see org.eclipse.swt.widgets.Widget#addListener
Lines 473-478 Link Here
473
  public static final int FILL = 4;
487
  public static final int FILL = 4;
474
488
475
  /**
489
  /**
490
   * ASCII character convenience constant for the delete character
491
   * (value is the <code>char</code> with value 127).
492
   * 
493
   * @since 1.2
494
   */
495
  public static final char DEL = 0x7F;
496
 
497
  /**
476
   * ASCII character convenience constant for the escape character
498
   * ASCII character convenience constant for the escape character
477
   * (value is the <code>char</code> with value 27).
499
   * (value is the <code>char</code> with value 27).
478
   *
500
   *
Lines 513-518 Link Here
513
  public static final char TAB = '\t';
535
  public static final char TAB = '\t';
514
536
515
  /**
537
  /**
538
   * keyboard and/or mouse event mask indicating that the ALT key
539
   * was pushed on the keyboard when the event was generated
540
   * (value is 1&lt;&lt;16).
541
   * 
542
   * @since 1.1
543
   */
544
  public static final int ALT = 1 << 16;
545
546
  /**
547
   * Keyboard and/or mouse event mask indicating that the SHIFT key
548
   * was pushed on the keyboard when the event was generated
549
   * (value is 1&lt;&lt;17).
550
   *    
551
   * @since 1.1
552
   */
553
  public static final int SHIFT = 1 << 17;
554
555
  /**
556
   * Keyboard and/or mouse event mask indicating that the CTRL key
557
   * was pushed on the keyboard when the event was generated
558
   * (value is 1&lt;&lt;18).
559
   * 
560
   * @since 1.1
561
   */
562
  public static final int CTRL = 1 << 18;
563
564
  /**
565
   * Keyboard and/or mouse event mask indicating that the CTRL key
566
   * was pushed on the keyboard when the event was generated. This
567
   * is a synonym for CTRL (value is 1&lt;&lt;18).
568
   * 
569
   * @since 1.1
570
   */
571
  public static final int CONTROL = CTRL;
572
573
  /**
574
   * Keyboard and/or mouse event mask indicating that the COMMAND key
575
   * was pushed on the keyboard when the event was generated
576
   * (value is 1&lt;&lt;22).
577
   * 
578
   * @since 1.1
579
   */
580
  public static final int COMMAND = 1 << 22;
581
582
  /**
516
   * Accelerator constant used to differentiate a key code from a
583
   * Accelerator constant used to differentiate a key code from a
517
   * unicode character.
584
   * unicode character.
518
   *
585
   *
Lines 530-580 Link Here
530
   * <code>((SWT.MOD3 | SWT.F2) & SWT.KEYCODE_BIT) != 0</code>.
597
   * <code>((SWT.MOD3 | SWT.F2) & SWT.KEYCODE_BIT) != 0</code>.
531
   *
598
   *
532
   * (value is (1&lt;&lt;24))
599
   * (value is (1&lt;&lt;24))
600
   *
601
   * @since 1.1
533
   */
602
   */
534
  public static final int KEYCODE_BIT = ( 1 << 24 );
603
  public static final int KEYCODE_BIT = ( 1 << 24 );
535
604
536
  /**
605
  /**
606
   * Accelerator constant used to extract the key stroke portion of
607
   * an accelerator.
608
   * 
609
   * The key stroke may be a key code or a unicode
610
   * value.  If the key stroke is a key code <code>KEYCODE_BIT</code>
611
   * will be set.
612
   * 
613
   * @since 1.2
614
   */ 
615
  public static final int KEY_MASK = KEYCODE_BIT + 0xFFFF;
616
  
617
  /**
618
   * Keyboard event constant representing the UP ARROW key
619
   * (value is (1&lt;&lt;24)+1).
620
   * 
621
   * @since 1.2
622
   */
623
  public static final int ARROW_UP = KEYCODE_BIT + 1;
624
625
  /**
626
   * Keyboard event constant representing the DOWN ARROW key
627
   * (value is (1&lt;&lt;24)+2).
628
   * 
629
   * @since 1.2
630
   */
631
  public static final int ARROW_DOWN = KEYCODE_BIT + 2;
632
633
  /**
634
   * Keyboard event constant representing the LEFT ARROW key
635
   * (value is (1&lt;&lt;24)+3).
636
   * 
637
   * @since 1.2
638
   */
639
  public static final int ARROW_LEFT = KEYCODE_BIT + 3;
640
641
  /**
642
   * Keyboard event constant representing the RIGHT ARROW key
643
   * (value is (1&lt;&lt;24)+4).
644
   * 
645
   * @since 1.2
646
   */
647
  public static final int ARROW_RIGHT = KEYCODE_BIT + 4;
648
649
  /**
650
   * Keyboard event constant representing the PAGE UP key
651
   * (value is (1&lt;&lt;24)+5).
652
   * 
653
   * @since 1.2
654
   */
655
  public static final int PAGE_UP = KEYCODE_BIT + 5;
656
657
  /**
658
   * Keyboard event constant representing the PAGE DOWN key
659
   * (value is (1&lt;&lt;24)+6).
660
   * 
661
   * @since 1.2
662
   */
663
  public static final int PAGE_DOWN = KEYCODE_BIT + 6;
664
665
  /**
666
   * Keyboard event constant representing the HOME key
667
   * (value is (1&lt;&lt;24)+7).
668
   * 
669
   * @since 1.2
670
   */
671
  public static final int HOME = KEYCODE_BIT + 7;
672
673
  /**
537
   * Keyboard event constant representing the END key
674
   * Keyboard event constant representing the END key
538
   * (value is (1&lt;&lt;24)+8).
675
   * (value is (1&lt;&lt;24)+8).
676
   * 
677
   * @since 1.1
539
   */
678
   */
540
  public static final int END = KEYCODE_BIT + 8;
679
  public static final int END = KEYCODE_BIT + 8;
541
680
542
  /**
681
  /**
543
   * keyboard and/or mouse event mask indicating that the ALT key
682
   * Keyboard event constant representing the INSERT key
544
   * was pushed on the keyboard when the event was generated
683
   * (value is (1&lt;&lt;24)+9).
545
   * (value is 1&lt;&lt;16).
684
   * 
685
   * @since 1.2
546
   */
686
   */
547
  public static final int ALT = 1 << 16;
687
  public static final int INSERT = KEYCODE_BIT + 9;
548
688
549
  /**
689
  /**
550
   * Keyboard and/or mouse event mask indicating that the SHIFT key
690
   * Keyboard event constant representing the F1 key
551
   * was pushed on the keyboard when the event was generated
691
   * (value is (1&lt;&lt;24)+10).
552
   * (value is 1&lt;&lt;17).
692
   * 
693
   * @since 1.2
553
   */
694
   */
554
  public static final int SHIFT = 1 << 17;
695
  public static final int F1 = KEYCODE_BIT + 10;
696
  
697
  /**
698
   * Keyboard event constant representing the F2 key
699
   * (value is (1&lt;&lt;24)+11).
700
   * 
701
   * @since 1.2
702
   */
703
  public static final int F2 = KEYCODE_BIT + 11;
704
  
705
  /**
706
   * Keyboard event constant representing the F3 key
707
   * (value is (1&lt;&lt;24)+12).
708
   * 
709
   * @since 1.2
710
   */
711
  public static final int F3 = KEYCODE_BIT + 12;
712
  
713
  /**
714
   * Keyboard event constant representing the F4 key
715
   * (value is (1&lt;&lt;24)+13).
716
   * 
717
   * @since 1.2
718
   */
719
  public static final int F4 = KEYCODE_BIT + 13;
720
  
721
  /**
722
   * Keyboard event constant representing the F5 key
723
   * (value is (1&lt;&lt;24)+14).
724
   * 
725
   * @since 1.2
726
   */
727
  public static final int F5 = KEYCODE_BIT + 14;
728
  
729
  /**
730
   * Keyboard event constant representing the F6 key
731
   * (value is (1&lt;&lt;24)+15).
732
   * 
733
   * @since 1.2
734
   */
735
  public static final int F6 = KEYCODE_BIT + 15;
736
  
737
  /**
738
   * Keyboard event constant representing the F7 key
739
   * (value is (1&lt;&lt;24)+16).
740
   * 
741
   * @since 1.2
742
   */
743
  public static final int F7 = KEYCODE_BIT + 16;
744
  
745
  /**
746
   * Keyboard event constant representing the F8 key
747
   * (value is (1&lt;&lt;24)+17).
748
   * 
749
   * @since 1.2
750
   */
751
  public static final int F8 = KEYCODE_BIT + 17;
752
  
753
  /**
754
   * Keyboard event constant representing the F9 key
755
   * (value is (1&lt;&lt;24)+18).
756
   * 
757
   * @since 1.2
758
   */
759
  public static final int F9 = KEYCODE_BIT + 18;
760
  
761
  /**
762
   * Keyboard event constant representing the F10 key
763
   * (value is (1&lt;&lt;24)+19).
764
   * 
765
   * @since 1.2
766
   */
767
  public static final int F10 = KEYCODE_BIT + 19;
768
  
769
  /**
770
   * Keyboard event constant representing the F11 key
771
   * (value is (1&lt;&lt;24)+20).
772
   * 
773
   * @since 1.2
774
   */
775
  public static final int F11 = KEYCODE_BIT + 20;
776
  
777
  /**
778
   * Keyboard event constant representing the F12 key
779
   * (value is (1&lt;&lt;24)+21).
780
   * 
781
   * @since 1.2
782
   */
783
  public static final int F12 = KEYCODE_BIT + 21;
555
784
785
// TODO [rh] find out how what client-side the key codes are for F13 - F15  
786
//  /**
787
//   * Keyboard event constant representing the F13 key
788
//   * (value is (1&lt;&lt;24)+22).
789
//   * 
790
//   * @since 1.2
791
//   */
792
//  public static final int F13 = KEYCODE_BIT + 22;
793
//  
794
//  /**
795
//   * Keyboard event constant representing the F14 key
796
//   * (value is (1&lt;&lt;24)+23).
797
//   * 
798
//   * @since 1.2
799
//   */
800
//  public static final int F14 = KEYCODE_BIT + 23;
801
//  
802
//  /**
803
//   * Keyboard event constant representing the F15 key
804
//   * (value is (1&lt;&lt;24)+24).
805
//   * 
806
//   * @since 1.2
807
//   */
808
//  public static final int F15 = KEYCODE_BIT + 24;
809
//  
556
  /**
810
  /**
557
   * Keyboard and/or mouse event mask indicating that the CTRL key
811
   * Keyboard event constant representing the numeric key
558
   * was pushed on the keyboard when the event was generated
812
   * pad multiply key (value is (1&lt;&lt;24)+42).
559
   * (value is 1&lt;&lt;18).
813
   * 
814
   * @since 1.2
560
   */
815
   */
561
  public static final int CTRL = 1 << 18;
816
  public static final int KEYPAD_MULTIPLY = KEYCODE_BIT + 42;
817
  
818
  /**
819
   * Keyboard event constant representing the numeric key
820
   * pad add key (value is (1&lt;&lt;24)+43).
821
   * 
822
   * @since 1.2
823
   */
824
  public static final int KEYPAD_ADD = KEYCODE_BIT + 43;
825
  
826
  /**
827
   * Keyboard event constant representing the numeric key
828
   * pad subtract key (value is (1&lt;&lt;24)+45).
829
   * 
830
   * @since 1.2
831
   */
832
  public static final int KEYPAD_SUBTRACT = KEYCODE_BIT + 45;
562
833
563
  /**
834
  /**
564
   * Keyboard and/or mouse event mask indicating that the CTRL key
835
   * Keyboard event constant representing the numeric key
565
   * was pushed on the keyboard when the event was generated. This
836
   * pad decimal key (value is (1&lt;&lt;24)+46).
566
   * is a synonym for CTRL (value is 1&lt;&lt;18).
837
   * 
838
   * @since 1.2
567
   */
839
   */
568
  public static final int CONTROL = CTRL;
840
  public static final int KEYPAD_DECIMAL = KEYCODE_BIT + 46;
569
841
570
  /**
842
  /**
571
   * Keyboard and/or mouse event mask indicating that the COMMAND key
843
   * Keyboard event constant representing the numeric key
572
   * was pushed on the keyboard when the event was generated
844
   * pad divide key (value is (1&lt;&lt;24)+47).
573
   * (value is 1&lt;&lt;22).
845
   * 
846
   * @since 1.2
574
   */
847
   */
575
  public static final int COMMAND = 1 << 22;
848
  public static final int KEYPAD_DIVIDE = KEYCODE_BIT + 47;
849
850
  /**
851
   * Keyboard event constant representing the numeric key
852
   * pad zero key (value is (1&lt;&lt;24)+48).
853
   * 
854
   * @since 1.2
855
   */
856
  public static final int KEYPAD_0 = KEYCODE_BIT + 48;
857
858
  /**
859
   * Keyboard event constant representing the numeric key
860
   * pad one key (value is (1&lt;&lt;24)+49).
861
   * 
862
   * @since 1.2
863
   */
864
  public static final int KEYPAD_1 = KEYCODE_BIT + 49;
865
866
  /**
867
   * Keyboard event constant representing the numeric key
868
   * pad two key (value is (1&lt;&lt;24)+50).
869
   * 
870
   * @since 1.2
871
   */
872
  public static final int KEYPAD_2 = KEYCODE_BIT + 50;
873
874
  /**
875
   * Keyboard event constant representing the numeric key
876
   * pad three key (value is (1&lt;&lt;24)+51).
877
   * 
878
   * @since 1.2
879
   */
880
  public static final int KEYPAD_3 = KEYCODE_BIT + 51;
576
881
577
  /**
882
  /**
883
   * Keyboard event constant representing the numeric key
884
   * pad four key (value is (1&lt;&lt;24)+52).
885
   * 
886
   * @since 1.2
887
   */
888
  public static final int KEYPAD_4 = KEYCODE_BIT + 52;
889
  
890
  /**
891
   * Keyboard event constant representing the numeric key
892
   * pad five key (value is (1&lt;&lt;24)+53).
893
   * 
894
   * @since 1.2
895
   */
896
  public static final int KEYPAD_5 = KEYCODE_BIT + 53;
897
  
898
  /**
899
   * Keyboard event constant representing the numeric key
900
   * pad six key (value is (1&lt;&lt;24)+54).
901
   * 
902
   * @since 1.2
903
   */
904
  public static final int KEYPAD_6 = KEYCODE_BIT + 54;
905
906
  /**
907
   * Keyboard event constant representing the numeric key
908
   * pad seven key (value is (1&lt;&lt;24)+55).
909
   * 
910
   * @since 1.2
911
   */
912
  public static final int KEYPAD_7 = KEYCODE_BIT + 55;
913
914
  /**
915
   * Keyboard event constant representing the numeric key
916
   * pad eight key (value is (1&lt;&lt;24)+56).
917
   * 
918
   * @since 1.2
919
   */
920
  public static final int KEYPAD_8 = KEYCODE_BIT + 56;
921
  
922
  /**
923
   * Keyboard event constant representing the numeric key
924
   * pad nine key (value is (1&lt;&lt;24)+57).
925
   * 
926
   * @since 1.2
927
   */
928
  public static final int KEYPAD_9 = KEYCODE_BIT + 57;
929
930
  /**
931
   * Keyboard event constant representing the numeric key
932
   * pad equal key (value is (1&lt;&lt;24)+61).
933
   * 
934
   * @since 1.2
935
   */
936
  public static final int KEYPAD_EQUAL = KEYCODE_BIT + 61;
937
  
938
  /**
939
   * Keyboard event constant representing the numeric key
940
   * pad enter key (value is (1&lt;&lt;24)+80).
941
   * 
942
   * @since 1.2
943
   */
944
  public static final int KEYPAD_CR = KEYCODE_BIT + 80;
945
  
946
  /**
947
   * Keyboard event constant representing the help
948
   * key (value is (1&lt;&lt;24)+81).
949
   * 
950
   * NOTE: The HELP key maps to the key labeled "help",
951
   * not "F1". If your keyboard does not have a HELP key,
952
   * you will never see this key press.  To listen for
953
   * help on a control, use SWT.Help.
954
   * 
955
   * @since 1.2
956
   * 
957
   * @see SWT#Help
958
   */
959
  public static final int HELP = KEYCODE_BIT + 81;
960
  
961
  /**
962
   * Keyboard event constant representing the caps
963
   * lock key (value is (1&lt;&lt;24)+82).
964
   * 
965
   * @since 1.2
966
   */
967
  public static final int CAPS_LOCK = KEYCODE_BIT + 82;
968
  
969
  /**
970
   * Keyboard event constant representing the num
971
   * lock key (value is (1&lt;&lt;24)+83).
972
   * 
973
   * @since 1.2
974
   */
975
  public static final int NUM_LOCK = KEYCODE_BIT + 83;
976
  
977
  /**
978
   * Keyboard event constant representing the scroll
979
   * lock key (value is (1&lt;&lt;24)+84).
980
   * 
981
   * @since 1.2
982
   */
983
  public static final int SCROLL_LOCK = KEYCODE_BIT + 84;
984
  
985
  /**
986
   * Keyboard event constant representing the pause
987
   * key (value is (1&lt;&lt;24)+85).
988
   * 
989
   * @since 1.2
990
   */
991
  public static final int PAUSE = KEYCODE_BIT + 85;
992
  
993
  /**
994
   * Keyboard event constant representing the break
995
   * key (value is (1&lt;&lt;24)+86).
996
   * 
997
   * @since 1.2
998
   */
999
  public static final int BREAK = KEYCODE_BIT + 86;
1000
  
1001
  /**
1002
   * Keyboard event constant representing the print screen
1003
   * key (value is (1&lt;&lt;24)+87).
1004
   * 
1005
   * @since 1.2
1006
   */
1007
  public static final int PRINT_SCREEN = KEYCODE_BIT + 87;
1008
  
1009
  /**
578
   * Style constant for line separator behavior (value is 1&lt;&lt;1).
1010
   * Style constant for line separator behavior (value is 1&lt;&lt;1).
579
   * <p><b>Used By:</b><ul>
1011
   * <p><b>Used By:</b><ul>
580
   * <li><code>Label</code></li>
1012
   * <li><code>Label</code></li>
(-)src/org/eclipse/rwt/internal/engine/RWTDelegate.java (+1 lines)
Lines 49-54 Link Here
49
                      final HttpServletResponse response )
49
                      final HttpServletResponse response )
50
    throws ServletException, IOException 
50
    throws ServletException, IOException 
51
  {
51
  {
52
System.out.println( "hallo " );    
52
    request.setCharacterEncoding( "UTF-8" );
53
    request.setCharacterEncoding( "UTF-8" );
53
    HttpServletRequest wrappedRequest = getWrappedRequest( request );
54
    HttpServletRequest wrappedRequest = getWrappedRequest( request );
54
    try {
55
    try {
(-)src/org/eclipse/swt/events/KeyListener.java (+50 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2003 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.swt.events;
12
13
14
import org.eclipse.swt.internal.SWTEventListener;
15
16
/**
17
 * Classes which implement this interface provide methods
18
 * that deal with the events that are generated as keys
19
 * are pressed on the system keyboard.
20
 * <p>
21
 * After creating an instance of a class that implements
22
 * this interface it can be added to a control using the
23
 * <code>addKeyListener</code> method and removed using
24
 * the <code>removeKeyListener</code> method. When a
25
 * key is pressed or released, the appropriate method will
26
 * be invoked.
27
 * </p>
28
 *
29
 * @see KeyAdapter
30
 * @see KeyEvent
31
 * 
32
 * @since 1.2
33
 */
34
public interface KeyListener extends SWTEventListener {
35
36
/**
37
 * Sent when a key is pressed on the system keyboard.
38
 *
39
 * @param e an event containing information about the key press
40
 */
41
public void keyPressed(KeyEvent e);
42
43
// [RAP] RWT currently only implements the keyPressed event
44
///**
45
// * Sent when a key is released on the system keyboard.
46
// *
47
// * @param e an event containing information about the key release
48
// */
49
//public void keyReleased(KeyEvent e);
50
}
(-)src/org/eclipse/swt/events/KeyEvent.java (+163 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2008 Innoopract Informationssysteme GmbH.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     Innoopract Informationssysteme GmbH - initial API and implementation
10
 ******************************************************************************/
11
package org.eclipse.swt.events;
12
13
import org.eclipse.rwt.Adaptable;
14
import org.eclipse.swt.SWT;
15
import org.eclipse.swt.internal.widgets.EventUtil;
16
import org.eclipse.swt.widgets.Control;
17
import org.eclipse.swt.widgets.Event;
18
19
/**
20
 * Instances of this class are sent as a result of keys being pressed and
21
 * released on the keyboard.
22
 * <p>
23
 * When a key listener is added to a control, the control will take part in
24
 * widget traversal. By default, all traversal keys (such as the tab key and so
25
 * on) are delivered to the control. In order for a control to take part in
26
 * traversal, it should listen for traversal events. Otherwise, the user can
27
 * traverse into a control but not out. Note that native controls such as table
28
 * and tree implement key traversal in the operating system. It is not necessary
29
 * to add traversal listeners for these controls, unless you want to override
30
 * the default traversal.
31
 * </p>
32
 * 
33
 * <p><strong>IMPORTANT:</strong> All <code>public static</code> members of 
34
 * this class are <em>not</em> part of the RWT public API. They are marked 
35
 * public only so that they can be shared within the packages provided by RWT. 
36
 * They should never be accessed from application code.
37
 * </p>
38
 * 
39
 * @see KeyListener
40
 * @see TraverseListener
41
 * 
42
 * @since 1.2
43
 */
44
public class KeyEvent extends TypedEvent {
45
  
46
  public static final int KEY_PRESSED = SWT.KeyDown;
47
48
  private static final Class LISTENER = KeyListener.class;
49
50
  /**
51
   * the character represented by the key that was typed. This is the final
52
   * character that results after all modifiers have been applied. For example,
53
   * when the user types Ctrl+A, the character value is 0x01. It is important
54
   * that applications do not attempt to modify the character value based on a
55
   * stateMask (such as SWT.CTRL) or the resulting character will not be
56
   * correct.
57
   */
58
  public char character;
59
  
60
  /**
61
   * the key code of the key that was typed, as defined by the key code
62
   * constants in class <code>SWT</code>. When the character field of the event
63
   * is ambiguous, this field contains the unicode value of the original
64
   * character. For example, typing Ctrl+M or Return both result in the
65
   * character '\r' but the keyCode field will also contain '\r' when Return was
66
   * typed.
67
   * 
68
   * @see org.eclipse.swt.SWT
69
   */
70
  public int keyCode;
71
  
72
  /**
73
   * the state of the keyboard modifier keys at the time the event was
74
   * generated, as defined by the key code constants in class <code>SWT</code>.
75
   * 
76
   * @see org.eclipse.swt.SWT
77
   */
78
  public int stateMask;
79
  
80
  /**
81
   * A flag indicating whether the operation should be allowed. Setting this
82
   * field to <code>false</code> will cancel the operation.
83
   */
84
  public boolean doit;
85
86
  /**
87
   * Constructs a new instance of this class based on the information in the
88
   * given untyped event.
89
   * 
90
   * @param event the untyped event containing the information
91
   */
92
  public KeyEvent( final Event event ) {
93
    super( event.widget, event.type );
94
    this.character = event.character;
95
    this.keyCode = event.keyCode;
96
    this.stateMask = event.stateMask;
97
    this.doit = event.doit;
98
  }
99
  
100
  public KeyEvent( final Control source, final int id ) {
101
    super( source, id );
102
    doit = true;
103
  }
104
105
  protected void dispatchToObserver( final Object listener ) {
106
    switch( getID() ) {
107
      case KEY_PRESSED:
108
        ( ( KeyListener )listener ).keyPressed( this );
109
      break;
110
      default:
111
        throw new IllegalStateException( "Invalid event handler type." );
112
    }
113
  }
114
  
115
  protected Class getListenerType() {
116
    return LISTENER;
117
  }
118
  
119
  protected boolean allowProcessing() {
120
    return EventUtil.isAccessible( widget );
121
  }
122
123
  /**
124
   * Returns a string containing a concise, human-readable description of the
125
   * receiver.
126
   * 
127
   * @return a string representation of the event
128
   */
129
  public String toString() {
130
    String string = super.toString();
131
    return   string.substring( 0, string.length() - 1 ) // remove trailing '}'
132
           + " character='"
133
           + ( ( character == 0 ) ? "\\0" : "" + character )
134
           + "'"
135
           + " keyCode="
136
           + keyCode
137
           + " stateMask="
138
           + stateMask
139
           + " doit="
140
           + doit
141
           + "}";
142
  }
143
144
  public static void addListener( final Adaptable adaptable,
145
                                  final KeyListener listener )
146
  {
147
    addListener( adaptable, LISTENER, listener );
148
  }
149
150
  public static void removeListener( final Adaptable adaptable, 
151
                                     final KeyListener listener )
152
  {
153
    removeListener( adaptable, LISTENER, listener );
154
  }
155
  
156
  public static boolean hasListener( final Adaptable adaptable ) {
157
    return hasListener( adaptable, LISTENER );
158
  }
159
  
160
  public static Object[] getListeners( final Adaptable adaptable ) {
161
    return getListener( adaptable, LISTENER );
162
  }
163
}
(-)qx-build/source/class/qx/Class.js (-4 / +43 lines)
Lines 188-194 Link Here
188
188
189
        // Attach members
189
        // Attach members
190
        if (config.members) {
190
        if (config.members) {
191
          this.__addMembers(clazz, config.members, true, true);
191
          this.__addMembers(clazz, config.members, true, true, false);
192
        }
192
        }
193
193
194
        // Process events
194
        // Process events
Lines 1275-1284 Link Here
1275
     * @param clazz {Class} clazz to add members to
1275
     * @param clazz {Class} clazz to add members to
1276
     * @param members {Map} The map of members to attach
1276
     * @param members {Map} The map of members to attach
1277
     * @param patch {Boolean ? false} Enable patching of
1277
     * @param patch {Boolean ? false} Enable patching of
1278
     * @param base (Boolean ? true) Attach base flag to mark function as members of this class
1278
     * @param base (Boolean ? true) Attach base flag to mark function as members
1279
     *     of this class
1280
     * @param wrap {Boolean ? false} Whether the member method should be wrapped.
1281
     *     this is needed to allow base calls in patched mixin members.
1279
     * @return {void}
1282
     * @return {void}
1280
     */
1283
     */
1281
    __addMembers : function(clazz, members, patch, base)
1284
    __addMembers : function(clazz, members, patch, base, wrap)
1282
    {
1285
    {
1283
      var proto = clazz.prototype;
1286
      var proto = clazz.prototype;
1284
      var key, member;
1287
      var key, member;
Lines 1303-1308 Link Here
1303
        // Hint: Could not use typeof function because RegExp objects are functions, too
1306
        // Hint: Could not use typeof function because RegExp objects are functions, too
1304
        if (base !== false && member instanceof Function)
1307
        if (base !== false && member instanceof Function)
1305
        {
1308
        {
1309
          if (wrap == true)
1310
          {
1311
            // wrap "patched" mixin member
1312
            member = this.__mixinMemberWrapper(member, proto[key]);
1313
          }
1314
          else
1315
          {
1306
          // Configure extend (named base here)
1316
          // Configure extend (named base here)
1307
          // Hint: proto[key] is not yet overwritten here
1317
          // Hint: proto[key] is not yet overwritten here
1308
          if (proto[key]) {
1318
          if (proto[key]) {
Lines 1310-1315 Link Here
1310
          }
1320
          }
1311
1321
1312
          member.self = clazz;
1322
          member.self = clazz;
1323
          }
1313
1324
1314
          if (qx.core.Variant.isSet("qx.aspects", "on")) {
1325
          if (qx.core.Variant.isSet("qx.aspects", "on")) {
1315
            member = qx.core.Aspect.wrap(clazz.classname + "." + key, member, "member");
1326
            member = qx.core.Aspect.wrap(clazz.classname + "." + key, member, "member");
Lines 1324-1329 Link Here
1324
1335
1325
1336
1326
    /**
1337
    /**
1338
     * Wraps a member function of a mixin, which is included using "patch". This
1339
     * allows "base" calls in the mixin member function.
1340
     *
1341
     * @param member {Function} The mixin method to wrap
1342
     * @param base {Function} The overwritten method
1343
     * @return {Function} the wrapped mixin member
1344
     */
1345
    __mixinMemberWrapper : function(member, base)
1346
    {
1347
      if (base)
1348
      {
1349
        return function()
1350
        {
1351
          var oldBase = member.base;
1352
          member.base = base;
1353
          var retval = member.apply(this, arguments);
1354
          member.base = oldBase;
1355
          return retval;
1356
        }
1357
      }
1358
      else
1359
      {
1360
        return member;
1361
      }
1362
    },
1363
1364
1365
    /**
1327
     * Add a single interface to a class
1366
     * Add a single interface to a class
1328
     *
1367
     *
1329
     * @type static
1368
     * @type static
Lines 1406-1412 Link Here
1406
1445
1407
        // Attach members (Respect patch setting, but dont apply base variables)
1446
        // Attach members (Respect patch setting, but dont apply base variables)
1408
        if (entry.$$members) {
1447
        if (entry.$$members) {
1409
          this.__addMembers(clazz, entry.$$members, patch, false);
1448
          this.__addMembers(clazz, entry.$$members, patch, patch, patch);
1410
        }
1449
        }
1411
      }
1450
      }
1412
1451
(-)qx-build/patches/readme.txt (+4 lines)
Lines 9-14 Link Here
9
  Patch as attached to http://bugzilla.qooxdoo.org/show_bug.cgi?id=599.
9
  Patch as attached to http://bugzilla.qooxdoo.org/show_bug.cgi?id=599.
10
  Has been rejected by qooxdoo.
10
  Has been rejected by qooxdoo.
11
11
12
* 12-qx-bug-323.diff
13
  Backport of qx.Class.patch function. Was introduced in qooxdoo shortly
14
  after 0.7.3 was release. Also contained in the '0.7.x legacy branch'.
15
  Can be omitted when upgrading to 0.7.4. 
12
16
13
=== The "obsolete" directory ===
17
=== The "obsolete" directory ===
14
18
(-)qx-build/source/class/qx/io/remote/XmlHttpTransport.js (-2 / +5 lines)
Lines 242-248 Link Here
242
        return output;
242
        return output;
243
      };
243
      };
244
244
245
      vRequest.onreadystatechange = qx.lang.Function.bind(this._onreadystatechange, this);
245
      var xxx = qx.lang.Function.bind(this._onreadystatechange, this);
246
      if( vAsynchronous ) {
247
        vRequest.onreadystatechange = xxx;
248
      }
246
249
247
      // --------------------------------------
250
      // --------------------------------------
248
      //   Opening connection
251
      //   Opening connection
Lines 309-315 Link Here
309
      //   Readystate for sync reqeusts
312
      //   Readystate for sync reqeusts
310
      // --------------------------------------
313
      // --------------------------------------
311
      if (!vAsynchronous) {
314
      if (!vAsynchronous) {
312
        this._onreadystatechange();
315
        xxx();
313
      }
316
      }
314
    },
317
    },
315
318
(-)qx-build/source/class/qx/io/remote/RequestQueue.js (-2 / +6 lines)
Lines 169-175 Link Here
169
      }
169
      }
170
170
171
      // Checking active queue fill
171
      // Checking active queue fill
172
      if (this._active.length >= this.getMaxConcurrentRequests() || this._queue.length == 0) {
172
      if (( this._queue.length > 0 && this._queue[0].isAsynchronous() && this._active.length >= this.getMaxConcurrentRequests() ) || this._queue.length == 0) {
173
        return;
173
        return;
174
      }
174
      }
175
175
Lines 406-412 Link Here
406
    {
406
    {
407
      vRequest.setState("queued");
407
      vRequest.setState("queued");
408
408
409
      this._queue.push(vRequest);
409
      if (vRequest.isAsynchronous())
410
        this._queue.push(vRequest);
411
      else
412
        this._queue.unshift(vRequest);
413
410
      this._check();
414
      this._check();
411
415
412
      if (this.getEnabled()) {
416
      if (this.getEnabled()) {
(-)qx-build/custom/build-custom.sh (-2 / +1 lines)
Lines 6-12 Link Here
6
REVISION=11170
6
REVISION=11170
7
#QOOXDOO=../../../qooxdoo/qooxdoo
7
#QOOXDOO=../../../qooxdoo/qooxdoo
8
# point to the directory that contains the generator.py
8
# point to the directory that contains the generator.py
9
TOOL=../../../qx-0.7.3/qooxdoo/frontend/framework/tool
9
TOOL=../../../qx-0.7.3/qooxdoo-0.7.3-sdk/frontend/framework/tool
10
TEMP=./temp
10
TEMP=./temp
11
# use this when building directly from qx repository
11
# use this when building directly from qx repository
12
# SOURCE=${QOOXDOO}/frontend/framework/source   
12
# SOURCE=${QOOXDOO}/frontend/framework/source   
Lines 52-58 Link Here
52
rm -r ${TEMP}/class/qx/ui/pageview/radioview
52
rm -r ${TEMP}/class/qx/ui/pageview/radioview
53
rm -r ${TEMP}/class/qx/ui/component
53
rm -r ${TEMP}/class/qx/ui/component
54
rm -r ${TEMP}/class/qx/ui/splitpane
54
rm -r ${TEMP}/class/qx/ui/splitpane
55
# rm -r ${TEMP}/class/qx/ui/table
56
rm -r ${TEMP}/class/qx/ui/treevirtual
55
rm -r ${TEMP}/class/qx/ui/treevirtual
57
rm ${TEMP}/class/qx/OO.js
56
rm ${TEMP}/class/qx/OO.js
58
rm ${TEMP}/class/qx/core/MLegacyInit.js
57
rm ${TEMP}/class/qx/core/MLegacyInit.js
(-)qx-build/source/class/qx/event/handler/KeyEventHandler.js (+4 lines)
Lines 126-131 Link Here
126
        var keyCode = domEvent.keyCode;
126
        var keyCode = domEvent.keyCode;
127
        var charcode = 0;
127
        var charcode = 0;
128
        var type = domEvent.type;
128
        var type = domEvent.type;
129
this.debug( "native - type: " + type + " keyCode: " + keyCode + " charCode: " + charcode );        
129
130
130
        // Ignore the down in such sequences dp dp dp
131
        // Ignore the down in such sequences dp dp dp
131
        if (!(this._lastUpDownType[keyCode] == "keydown" && type == "keydown")) {
132
        if (!(this._lastUpDownType[keyCode] == "keydown" && type == "keydown")) {
Lines 151-156 Link Here
151
        var keyCode = this._keyCodeFix[domEvent.keyCode] || domEvent.keyCode;
152
        var keyCode = this._keyCodeFix[domEvent.keyCode] || domEvent.keyCode;
152
        var charCode = domEvent.charCode;
153
        var charCode = domEvent.charCode;
153
        var type = domEvent.type;
154
        var type = domEvent.type;
155
this.debug( "native - type: " + type + " keyCode: " + keyCode + " charCode: " + charCode );        
154
156
155
        // FF repeats under windows keydown events like IE
157
        // FF repeats under windows keydown events like IE
156
        if (qx.core.Client.getInstance().runsOnWindows())
158
        if (qx.core.Client.getInstance().runsOnWindows())
Lines 177-182 Link Here
177
        var keyCode = 0;
179
        var keyCode = 0;
178
        var charCode = 0;
180
        var charCode = 0;
179
        var type = domEvent.type;
181
        var type = domEvent.type;
182
this.debug( "native - type: " + type + " keyCode: " + keyCode + " charCode: " + charCode );        
180
183
181
        // prevent Safari from sending key signals twice
184
        // prevent Safari from sending key signals twice
182
        // This bug is fixed in recent Webkit builds so we need a revision check
185
        // This bug is fixed in recent Webkit builds so we need a revision check
Lines 250-255 Link Here
250
        var keyCode = this._keyCodeFix[domEvent.keyCode] || domEvent.keyCode;
253
        var keyCode = this._keyCodeFix[domEvent.keyCode] || domEvent.keyCode;
251
        var charCode = domEvent.charCode;
254
        var charCode = domEvent.charCode;
252
        var type = domEvent.type;
255
        var type = domEvent.type;
256
this.debug( "native - type: " + type + " keyCode: " + keyCode + " charCode: " + charCode );        
253
257
254
        // FF repeats under windows keydown events like IE
258
        // FF repeats under windows keydown events like IE
255
        if (qx.core.Client.getInstance().runsOnWindows())
259
        if (qx.core.Client.getInstance().runsOnWindows())
(-)qx-build/patches/0.7.3/12-qx-bug-323.diff (+100 lines)
Added Link Here
1
### Eclipse Workspace Patch 1.0
2
#P org.eclipse.rap.tools
3
Index: qx-build/source/class/qx/Class.js
4
===================================================================
5
RCS file: /cvsroot/technology/org.eclipse.rap/org.eclipse.rap.tools/qx-build/source/class/qx/Class.js,v
6
retrieving revision 1.4
7
diff -u -r1.4 Class.js
8
--- qx-build/source/class/qx/Class.js 30 Jul 2008 16:31:20 -0000  1.4
9
+++ qx-build/source/class/qx/Class.js 10 Sep 2008 13:51:21 -0000
10
@@ -188,7 +188,7 @@
11
 
12
         // Attach members
13
         if (config.members) {
14
-          this.__addMembers(clazz, config.members, true, true);
15
+          this.__addMembers(clazz, config.members, true, true, false);
16
         }
17
 
18
         // Process events
19
@@ -1275,10 +1275,13 @@
20
      * @param clazz {Class} clazz to add members to
21
      * @param members {Map} The map of members to attach
22
      * @param patch {Boolean ? false} Enable patching of
23
-     * @param base (Boolean ? true) Attach base flag to mark function as members of this class
24
+     * @param base (Boolean ? true) Attach base flag to mark function as members
25
+     *     of this class
26
+     * @param wrap {Boolean ? false} Whether the member method should be wrapped.
27
+     *     this is needed to allow base calls in patched mixin members.
28
      * @return {void}
29
      */
30
-    __addMembers : function(clazz, members, patch, base)
31
+    __addMembers : function(clazz, members, patch, base, wrap)
32
     {
33
       var proto = clazz.prototype;
34
       var key, member;
35
@@ -1303,6 +1306,13 @@
36
         // Hint: Could not use typeof function because RegExp objects are functions, too
37
         if (base !== false && member instanceof Function)
38
         {
39
+          if (wrap == true)
40
+          {
41
+            // wrap "patched" mixin member
42
+            member = this.__mixinMemberWrapper(member, proto[key]);
43
+          }
44
+          else
45
+          {
46
           // Configure extend (named base here)
47
           // Hint: proto[key] is not yet overwritten here
48
           if (proto[key]) {
49
@@ -1310,6 +1320,7 @@
50
           }
51
 
52
           member.self = clazz;
53
+          }
54
 
55
           if (qx.core.Variant.isSet("qx.aspects", "on")) {
56
             member = qx.core.Aspect.wrap(clazz.classname + "." + key, member, "member");
57
@@ -1324,6 +1335,34 @@
58
 
59
 
60
     /**
61
+     * Wraps a member function of a mixin, which is included using "patch". This
62
+     * allows "base" calls in the mixin member function.
63
+     *
64
+     * @param member {Function} The mixin method to wrap
65
+     * @param base {Function} The overwritten method
66
+     * @return {Function} the wrapped mixin member
67
+     */
68
+    __mixinMemberWrapper : function(member, base)
69
+    {
70
+      if (base)
71
+      {
72
+        return function()
73
+        {
74
+          var oldBase = member.base;
75
+          member.base = base;
76
+          var retval = member.apply(this, arguments);
77
+          member.base = oldBase;
78
+          return retval;
79
+        }
80
+      }
81
+      else
82
+      {
83
+        return member;
84
+      }
85
+    },
86
+
87
+
88
+    /**
89
      * Add a single interface to a class
90
      *
91
      * @type static
92
@@ -1406,7 +1445,7 @@
93
 
94
         // Attach members (Respect patch setting, but dont apply base variables)
95
         if (entry.$$members) {
96
-          this.__addMembers(clazz, entry.$$members, patch, false);
97
+          this.__addMembers(clazz, entry.$$members, patch, patch, patch);
98
         }
99
       }
100
 
(-)qx-build/source-replace/class/qx/ui/embed/HtmlEmbed.js (+217 lines)
Added Link Here
1
/* ************************************************************************
2
3
   qooxdoo - the new era of web development
4
5
   http://qooxdoo.org
6
7
   Copyright:
8
     2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
9
10
   License:
11
     LGPL: http://www.gnu.org/licenses/lgpl.html
12
     EPL: http://www.eclipse.org/org/documents/epl-v10.php
13
     See the LICENSE file in the project's top-level directory for details.
14
15
   Authors:
16
     * Sebastian Werner (wpbasti)
17
     * Andreas Ecker (ecker)
18
19
************************************************************************ */
20
21
/* ************************************************************************
22
23
#module(ui_basic)
24
25
************************************************************************ */
26
27
qx.Class.define("qx.ui.embed.HtmlEmbed",
28
{
29
  extend : qx.ui.basic.Terminator,
30
31
32
33
34
  /*
35
  *****************************************************************************
36
     CONSTRUCTOR
37
  *****************************************************************************
38
  */
39
40
  construct : function(vHtml)
41
  {
42
    this.base(arguments);
43
44
    if (vHtml != null) {
45
      this.setHtml(vHtml);
46
    }
47
  },
48
49
50
51
52
  /*
53
  *****************************************************************************
54
     PROPERTIES
55
  *****************************************************************************
56
  */
57
58
  properties :
59
  {
60
    /** Any text string which can contain HTML, too */
61
    html :
62
    {
63
      check : "String",
64
      init : "",
65
      apply : "_applyHtml",
66
      event : "changeHtml"
67
    },
68
69
70
    /**
71
     * The alignment of the text inside the box
72
     */
73
    textAlign :
74
    {
75
      check : [ "left", "center", "right", "justify" ],
76
      nullable : true,
77
      themeable : true,
78
      apply : "_applyTextAlign"
79
    },
80
81
82
    /** Block inheritance as default for font property */
83
    font :
84
    {
85
      refine : true,
86
      init : null
87
    },
88
89
90
    /** Block inheritance as default for textColor property */
91
    textColor :
92
    {
93
      refine : true,
94
      init : null
95
    }
96
  },
97
98
99
100
101
  /*
102
  *****************************************************************************
103
     MEMBERS
104
  *****************************************************************************
105
  */
106
107
  members :
108
  {
109
    /*
110
    ---------------------------------------------------------------------------
111
      APPLY ROUTINES
112
    ---------------------------------------------------------------------------
113
    */
114
115
    /**
116
     * TODOC
117
     *
118
     * @type member
119
     */
120
    _applyHtml : function()
121
    {
122
      if (this._isCreated) {
123
        this._syncHtml();
124
      }
125
    },
126
127
128
129
130
131
    /*
132
    ---------------------------------------------------------------------------
133
      TEXTALIGN SUPPORT
134
    ---------------------------------------------------------------------------
135
    */
136
137
    _applyTextAlign : function(value, old) {
138
      value === null ? this.removeStyleProperty("textAlign") : this.setStyleProperty("textAlign", value);
139
    },
140
141
142
143
144
145
    /*
146
    ---------------------------------------------------------------------------
147
      FONT SUPPORT
148
    ---------------------------------------------------------------------------
149
    */
150
151
    _applyFont : function(value, old) {
152
      qx.theme.manager.Font.getInstance().connect(this._styleFont, this, value);
153
    },
154
155
156
    /**
157
     * @type member
158
     * @param value {qx.ui.core.Font}
159
     */
160
    _styleFont : function(value) {
161
      value ? value.render(this) : qx.ui.core.Font.reset(this);
162
    },
163
164
165
166
167
    /*
168
    ---------------------------------------------------------------------------
169
      TEXT COLOR SUPPORT
170
    ---------------------------------------------------------------------------
171
    */
172
173
    _applyTextColor : function(value, old) {
174
      qx.theme.manager.Color.getInstance().connect(this._styleTextColor, this, value);
175
    },
176
177
    /**
178
     * @type member
179
     * @param value {var} any acceptable CSS color property
180
     */
181
    _styleTextColor : function(value) {
182
      value ? this.setStyleProperty("color", value) : this.removeStyleProperty("color");
183
    },
184
185
186
187
188
    /*
189
    ---------------------------------------------------------------------------
190
      ELEMENT HANDLING
191
    ---------------------------------------------------------------------------
192
    */
193
194
    /**
195
     * TODOC
196
     *
197
     * @type member
198
     * @return {void}
199
     */
200
    _applyElementData : function() {
201
      this._syncHtml();
202
    },
203
204
205
    /**
206
     * TODOC
207
     *
208
     * @type member
209
     * @return {void}
210
     */
211
    _syncHtml : function() {
212
// TODO [rh] adopted change from 0.7.3      
213
//      this.getElement().innerHTML = this.getHtml();
214
      this._getTargetNode().innerHTML = this.getHtml();
215
    }
216
  }
217
});
(-)src/org/eclipse/swt/internal/widgets/UntypedEventAdapter_Test.java (+18 lines)
Lines 103-108 Link Here
103
    adapter.addListener( SWT.MouseDoubleClick, listener );
103
    adapter.addListener( SWT.MouseDoubleClick, listener );
104
    adapter.mouseDoubleClick( new MouseEvent( widget, 0 ) );
104
    adapter.mouseDoubleClick( new MouseEvent( widget, 0 ) );
105
    assertEquals( SWT.MouseDoubleClick, eventType );
105
    assertEquals( SWT.MouseDoubleClick, eventType );
106
    adapter.addListener( SWT.KeyDown, listener );
107
    adapter.keyPressed( new KeyEvent( widget, 0 ) );
108
    assertEquals( SWT.KeyDown, eventType );
106
  }
109
  }
107
110
108
  public void testAdditionAndRemovalOfListener() throws Exception {
111
  public void testAdditionAndRemovalOfListener() throws Exception {
Lines 198-202 Link Here
198
    assertEquals( selEvent.height, eventLog[ 0 ].height );
201
    assertEquals( selEvent.height, eventLog[ 0 ].height );
199
    assertEquals( selEvent.width, eventLog[ 0 ].width );
202
    assertEquals( selEvent.width, eventLog[ 0 ].width );
200
    assertEquals( selEvent.detail, eventLog[ 0 ].detail );
203
    assertEquals( selEvent.detail, eventLog[ 0 ].detail );
204
    // Key event
205
    adapter = new UntypedEventAdapter();
206
    adapter.addListener( SWT.KeyDown, listener );
207
    KeyEvent keyEvent = new KeyEvent( shell, KeyEvent.KEY_PRESSED );
208
    keyEvent.character = 'x';
209
    keyEvent.keyCode = 123;
210
    keyEvent.stateMask = 321;
211
    keyEvent.data = new Object();
212
    keyEvent.doit = false;
213
    adapter.keyPressed( keyEvent );
214
    assertEquals( keyEvent.character, eventLog[ 0 ].character );
215
    assertEquals( keyEvent.keyCode, eventLog[ 0 ].keyCode );
216
    assertEquals( keyEvent.stateMask, eventLog[ 0 ].stateMask );
217
    assertEquals( keyEvent.data, eventLog[ 0 ].data );
218
    assertEquals( keyEvent.doit, eventLog[ 0 ].doit );
201
  }
219
  }
202
}
220
}
(-)src/org/eclipse/rwt/lifecycle/ControlLCAUtil_Test.java (-3 / +120 lines)
Lines 8-24 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *     Innoopract Informationssysteme GmbH - initial API and implementation
9
 *     Innoopract Informationssysteme GmbH - initial API and implementation
10
 ******************************************************************************/
10
 ******************************************************************************/
11
12
package org.eclipse.rwt.lifecycle;
11
package org.eclipse.rwt.lifecycle;
13
12
14
import java.io.IOException;
13
import java.io.IOException;
14
import java.util.ArrayList;
15
15
16
import junit.framework.TestCase;
16
import junit.framework.TestCase;
17
17
18
import org.eclipse.rwt.Fixture;
18
import org.eclipse.rwt.Fixture;
19
import org.eclipse.rwt.graphics.Graphics;
19
import org.eclipse.rwt.graphics.Graphics;
20
import org.eclipse.rwt.internal.lifecycle.DisplayUtil;
20
import org.eclipse.rwt.internal.lifecycle.*;
21
import org.eclipse.rwt.internal.lifecycle.JSConst;
22
import org.eclipse.rwt.internal.service.RequestParams;
21
import org.eclipse.rwt.internal.service.RequestParams;
23
import org.eclipse.swt.RWTFixture;
22
import org.eclipse.swt.RWTFixture;
24
import org.eclipse.swt.SWT;
23
import org.eclipse.swt.SWT;
Lines 249-254 Link Here
249
    assertTrue( Fixture.getAllMarkup().indexOf( "w.resetCursor();" ) != -1 );
248
    assertTrue( Fixture.getAllMarkup().indexOf( "w.resetCursor();" ) != -1 );
250
  }
249
  }
251
250
251
  public void testWritekeyEvents() throws IOException {
252
    final java.util.List eventLog = new ArrayList();
253
    Display display = new Display();
254
    Shell shell = new Shell( display );
255
    shell.open();
256
    Fixture.fakeResponseWriter();
257
    ControlLCAUtil.writeKeyListener( shell );
258
    assertEquals( "", Fixture.getAllMarkup() );
259
    shell.addListener( SWT.KeyDown, new Listener() {
260
      public void handleEvent( final Event event ) {
261
        eventLog.add( event );
262
      }
263
    } );
264
    Fixture.fakeResponseWriter();
265
    ControlLCAUtil.writeKeyListener( shell );
266
    String expected
267
      = "var w = wm.findWidgetById( \"w2\" );"
268
      + "w.setUserData( \"keyListener\", true );";
269
    assertEquals( expected, Fixture.getAllMarkup() );
270
  }
271
  
272
  public void testProcessKeyEvents() {
273
    final java.util.List eventLog = new ArrayList();
274
    Display display = new Display();
275
    Shell shell = new Shell( display );
276
    shell.open();
277
    shell.addListener( SWT.KeyDown, new Listener() {
278
      public void handleEvent( final Event event ) {
279
        eventLog.add( event );
280
      }
281
    } );
282
    String shellId = WidgetUtil.getId( shell );
283
    
284
    // Simulate requests that carry information about a key-down event
285
    // - incomplete request
286
    RWTFixture.fakeNewRequest();
287
    RWTFixture.fakePhase( PhaseId.READ_DATA );
288
    eventLog.clear();
289
    Fixture.fakeRequestParam( JSConst.EVENT_KEY_DOWN, shellId );
290
    try {
291
      ControlLCAUtil.processKeyEvents( shell );
292
      fail( "Attempting to process incomplete key-event-request must fail" );
293
    } catch( RuntimeException e ) {
294
      // expected
295
    }
296
    assertTrue( eventLog.isEmpty() );
297
    // - key-event without meaning ful information (e.g. Shift-key only)
298
    RWTFixture.fakeNewRequest();
299
    RWTFixture.fakePhase( PhaseId.READ_DATA );
300
    Fixture.fakeRequestParam( JSConst.EVENT_KEY_DOWN, shellId );
301
    Fixture.fakeRequestParam( JSConst.EVENT_KEY_DOWN_CHARACTER, "0" );
302
    Fixture.fakeRequestParam( JSConst.EVENT_KEY_DOWN_KEY_CODE, "0" );
303
    Fixture.fakeRequestParam( JSConst.EVENT_KEY_DOWN_EVENT_ID, "1" );
304
    ControlLCAUtil.processKeyEvents( shell );
305
    RWTFixture.fakePhase( PhaseId.PROCESS_ACTION );
306
    display.readAndDispatch();
307
    Event event = ( Event )eventLog.get( 0 );
308
    assertEquals( SWT.KeyDown, event.type );
309
    assertEquals( shell, event.widget );
310
    assertEquals( 0, event.character );
311
    assertEquals( 0, event.keyCode );
312
    assertTrue( event.doit );
313
  }
314
315
  public void testProcessKeyEventsWithDoItFlag() {
316
    PhaseListenerRegistry.add( new PreserveWidgetsPhaseListener() );
317
    PhaseListenerRegistry.add( new CurrentPhase.Listener() );
318
    final java.util.List eventLog = new ArrayList();
319
    Listener doitTrueListener = new Listener() {
320
      public void handleEvent( final Event event ) {
321
        eventLog.add( event );
322
      }
323
    };
324
    Listener doitFalseListener = new Listener() {
325
      public void handleEvent( final Event event ) {
326
        eventLog.add( event );
327
        event.doit = false;
328
      }
329
    };
330
    Display display = new Display();
331
    Shell shell = new Shell( display );
332
    shell.open();
333
    String shellId = WidgetUtil.getId( shell );
334
    String displayId = DisplayUtil.getId( display );
335
336
    // Simulate KeyEvent request, listener leaves doit untouched (doit==true)
337
    shell.addListener( SWT.KeyDown, doitTrueListener );
338
    RWTFixture.fakeNewRequest();
339
    Fixture.fakeRequestParam( RequestParams.UIROOT, displayId );
340
    Fixture.fakeRequestParam( JSConst.EVENT_KEY_DOWN, shellId );
341
    Fixture.fakeRequestParam( JSConst.EVENT_KEY_DOWN_CHARACTER, "0" );
342
    Fixture.fakeRequestParam( JSConst.EVENT_KEY_DOWN_KEY_CODE, "0" );
343
    Fixture.fakeRequestParam( JSConst.EVENT_KEY_DOWN_EVENT_ID, "1" );
344
    RWTFixture.executeLifeCycleFromServerThread();
345
    assertEquals( 1, eventLog.size() );
346
    assertTrue( ( ( Event )eventLog.get( 0 ) ).doit );
347
    String markup = Fixture.getAllMarkup();
348
    assertTrue( markup.indexOf( ControlLCAUtil.JSFUNC_CANCEL_EVENT ) == -1 );
349
    assertTrue( markup.indexOf( ControlLCAUtil.JSFUNC_ACCEPT_EVENT ) != -1 );
350
    shell.removeListener( SWT.KeyDown, doitTrueListener );
351
    
352
    // Simulate KeyEvent request, listener sets doit = false
353
    eventLog.clear();
354
    shell.addListener( SWT.KeyDown, doitFalseListener );
355
    RWTFixture.fakeNewRequest();
356
    Fixture.fakeRequestParam( RequestParams.UIROOT, displayId );
357
    Fixture.fakeRequestParam( JSConst.EVENT_KEY_DOWN, shellId );
358
    Fixture.fakeRequestParam( JSConst.EVENT_KEY_DOWN_CHARACTER, "65" );
359
    Fixture.fakeRequestParam( JSConst.EVENT_KEY_DOWN_KEY_CODE, "65" );
360
    Fixture.fakeRequestParam( JSConst.EVENT_KEY_DOWN_EVENT_ID, "1" );
361
    RWTFixture.executeLifeCycleFromServerThread();
362
    assertEquals( 1, eventLog.size() );
363
    assertFalse( ( ( Event )eventLog.get( 0 ) ).doit );
364
    markup = Fixture.getAllMarkup();
365
    assertTrue( markup.indexOf( ControlLCAUtil.JSFUNC_CANCEL_EVENT ) != -1 );
366
    assertTrue( markup.indexOf( ControlLCAUtil.JSFUNC_ACCEPT_EVENT ) == -1 );
367
  }
368
  
252
  protected void setUp() throws Exception {
369
  protected void setUp() throws Exception {
253
    RWTFixture.setUp();
370
    RWTFixture.setUp();
254
    Fixture.fakeResponseWriter();
371
    Fixture.fakeResponseWriter();
(-)src/org/eclipse/swt/internal/widgets/controlkit/ControlLCA_Test.java (-29 / +30 lines)
Lines 23-29 Link Here
23
import org.eclipse.rwt.lifecycle.*;
23
import org.eclipse.rwt.lifecycle.*;
24
import org.eclipse.swt.RWTFixture;
24
import org.eclipse.swt.RWTFixture;
25
import org.eclipse.swt.SWT;
25
import org.eclipse.swt.SWT;
26
import org.eclipse.swt.events.*;
26
import org.eclipse.swt.events.ControlAdapter;
27
import org.eclipse.swt.events.FocusAdapter;
27
import org.eclipse.swt.graphics.*;
28
import org.eclipse.swt.graphics.*;
28
import org.eclipse.swt.internal.events.ActivateAdapter;
29
import org.eclipse.swt.internal.events.ActivateAdapter;
29
import org.eclipse.swt.internal.events.ActivateEvent;
30
import org.eclipse.swt.internal.events.ActivateEvent;
Lines 61-99 Link Here
61
    RWTFixture.preserveWidgets();
62
    RWTFixture.preserveWidgets();
62
    adapter = WidgetUtil.getAdapter( button );
63
    adapter = WidgetUtil.getAdapter( button );
63
    assertTrue( adapter.getPreserved( Props.Z_INDEX ) != null );
64
    assertTrue( adapter.getPreserved( Props.Z_INDEX ) != null );
64
    RWTFixture.clearPreserved();  
65
    RWTFixture.clearPreserved();
65
    //visible
66
    //visible
66
    RWTFixture.preserveWidgets();
67
    RWTFixture.preserveWidgets();
67
    adapter = WidgetUtil.getAdapter( button );
68
    adapter = WidgetUtil.getAdapter( button );
68
    assertEquals( Boolean.TRUE, adapter.getPreserved( Props.VISIBLE ) );
69
    assertEquals( Boolean.TRUE, adapter.getPreserved( Props.VISIBLE ) );
69
    RWTFixture.clearPreserved();    
70
    RWTFixture.clearPreserved();
70
    button.setVisible( false );
71
    button.setVisible( false );
71
    RWTFixture.preserveWidgets();
72
    RWTFixture.preserveWidgets();
72
    adapter = WidgetUtil.getAdapter( button );
73
    adapter = WidgetUtil.getAdapter( button );
73
    assertEquals( Boolean.FALSE, adapter.getPreserved( Props.VISIBLE ) );
74
    assertEquals( Boolean.FALSE, adapter.getPreserved( Props.VISIBLE ) );
74
    RWTFixture.clearPreserved();    
75
    RWTFixture.clearPreserved();
75
    //enabled
76
    //enabled
76
    RWTFixture.preserveWidgets();
77
    RWTFixture.preserveWidgets();
77
    adapter = WidgetUtil.getAdapter( button );
78
    adapter = WidgetUtil.getAdapter( button );
78
    assertEquals( Boolean.TRUE, adapter.getPreserved( Props.ENABLED ) );
79
    assertEquals( Boolean.TRUE, adapter.getPreserved( Props.ENABLED ) );
79
    RWTFixture.clearPreserved();    
80
    RWTFixture.clearPreserved();
80
    button.setEnabled( false );
81
    button.setEnabled( false );
81
    RWTFixture.preserveWidgets();
82
    RWTFixture.preserveWidgets();
82
    adapter = WidgetUtil.getAdapter( button );
83
    adapter = WidgetUtil.getAdapter( button );
83
    assertEquals( Boolean.FALSE, adapter.getPreserved( Props.ENABLED ));
84
    assertEquals( Boolean.FALSE, adapter.getPreserved( Props.ENABLED ));
84
    RWTFixture.clearPreserved(); 
85
    RWTFixture.clearPreserved();
85
    //control_listeners  
86
    //control_listeners
86
    RWTFixture.preserveWidgets();
87
    RWTFixture.preserveWidgets();
87
    adapter = WidgetUtil.getAdapter( button );    
88
    adapter = WidgetUtil.getAdapter( button );
88
    hasListeners = ( Boolean )adapter.getPreserved( Props.CONTROL_LISTENERS );
89
    hasListeners = ( Boolean )adapter.getPreserved( Props.CONTROL_LISTENERS );
89
    assertEquals( Boolean.FALSE, hasListeners );
90
    assertEquals( Boolean.FALSE, hasListeners );
90
    RWTFixture.clearPreserved();    
91
    RWTFixture.clearPreserved();
91
    button.addControlListener( new ControlAdapter() { } );
92
    button.addControlListener( new ControlAdapter() { } );
92
    RWTFixture.preserveWidgets();
93
    RWTFixture.preserveWidgets();
93
    adapter = WidgetUtil.getAdapter( button );
94
    adapter = WidgetUtil.getAdapter( button );
94
    hasListeners = ( Boolean ) adapter.getPreserved( Props.CONTROL_LISTENERS );
95
    hasListeners = ( Boolean ) adapter.getPreserved( Props.CONTROL_LISTENERS );
95
    assertEquals( Boolean.TRUE, hasListeners );
96
    assertEquals( Boolean.TRUE, hasListeners );
96
    RWTFixture.clearPreserved();    
97
    RWTFixture.clearPreserved();
97
    //foreground background font
98
    //foreground background font
98
    Color background = Graphics.getColor( 122, 33, 203 );
99
    Color background = Graphics.getColor( 122, 33, 203 );
99
    button.setBackground( background );
100
    button.setBackground( background );
Lines 106-151 Link Here
106
    assertEquals( background, adapter.getPreserved( Props.BACKGROUND ) );
107
    assertEquals( background, adapter.getPreserved( Props.BACKGROUND ) );
107
    assertEquals( foreground, adapter.getPreserved( Props.FOREGROUND ) );
108
    assertEquals( foreground, adapter.getPreserved( Props.FOREGROUND ) );
108
    assertEquals( font, adapter.getPreserved( Props.FONT ) );
109
    assertEquals( font, adapter.getPreserved( Props.FONT ) );
109
    RWTFixture.clearPreserved();     
110
    RWTFixture.clearPreserved();
110
    //tab_index  
111
    //tab_index
111
    RWTFixture.preserveWidgets();
112
    RWTFixture.preserveWidgets();
112
    adapter = WidgetUtil.getAdapter( button );
113
    adapter = WidgetUtil.getAdapter( button );
113
    assertTrue( adapter.getPreserved( Props.Z_INDEX ) != null );
114
    assertTrue( adapter.getPreserved( Props.Z_INDEX ) != null );
114
    RWTFixture.clearPreserved(); 
115
    RWTFixture.clearPreserved();
115
    //tooltiptext
116
    //tooltiptext
116
    RWTFixture.preserveWidgets();
117
    RWTFixture.preserveWidgets();
117
    adapter = WidgetUtil.getAdapter( button );
118
    adapter = WidgetUtil.getAdapter( button );
118
    assertEquals( null, button.getToolTipText() );
119
    assertEquals( null, button.getToolTipText() );
119
    RWTFixture.clearPreserved();      
120
    RWTFixture.clearPreserved();
120
    button.setToolTipText( "some text" );   
121
    button.setToolTipText( "some text" );
121
    RWTFixture.preserveWidgets();
122
    RWTFixture.preserveWidgets();
122
    adapter = WidgetUtil.getAdapter( button );
123
    adapter = WidgetUtil.getAdapter( button );
123
    assertEquals( "some text", button.getToolTipText() );
124
    assertEquals( "some text", button.getToolTipText() );
124
    RWTFixture.clearPreserved();     
125
    RWTFixture.clearPreserved();
125
    //activate_listeners   Focus_listeners 
126
    //activate_listeners   Focus_listeners
126
    RWTFixture.preserveWidgets();
127
    RWTFixture.preserveWidgets();
127
    adapter = WidgetUtil.getAdapter( button );    
128
    adapter = WidgetUtil.getAdapter( button );
128
    hasListeners = ( Boolean )adapter.getPreserved( Props.FOCUS_LISTENER );
129
    hasListeners = ( Boolean )adapter.getPreserved( Props.FOCUS_LISTENER );
129
    assertEquals( Boolean.FALSE, hasListeners );
130
    assertEquals( Boolean.FALSE, hasListeners );
130
    RWTFixture.clearPreserved(); 
131
    RWTFixture.clearPreserved();
131
    button.addFocusListener( new FocusAdapter() { } );
132
    button.addFocusListener( new FocusAdapter() { } );
132
    RWTFixture.preserveWidgets();
133
    RWTFixture.preserveWidgets();
133
    adapter = WidgetUtil.getAdapter( button );
134
    adapter = WidgetUtil.getAdapter( button );
134
    hasListeners = ( Boolean ) adapter.getPreserved( Props.FOCUS_LISTENER );
135
    hasListeners = ( Boolean ) adapter.getPreserved( Props.FOCUS_LISTENER );
135
    assertEquals( Boolean.TRUE, hasListeners );
136
    assertEquals( Boolean.TRUE, hasListeners );
136
    RWTFixture.clearPreserved();    
137
    RWTFixture.clearPreserved();
137
    RWTFixture.preserveWidgets();
138
    RWTFixture.preserveWidgets();
138
    adapter = WidgetUtil.getAdapter( button );    
139
    adapter = WidgetUtil.getAdapter( button );
139
    hasListeners = ( Boolean )adapter.getPreserved( Props.ACTIVATE_LISTENER );
140
    hasListeners = ( Boolean )adapter.getPreserved( Props.ACTIVATE_LISTENER );
140
    assertEquals( Boolean.FALSE, hasListeners );
141
    assertEquals( Boolean.FALSE, hasListeners );
141
    RWTFixture.clearPreserved();   
142
    RWTFixture.clearPreserved();
142
    ActivateEvent.addListener( button, new ActivateAdapter() { } );    
143
    ActivateEvent.addListener( button, new ActivateAdapter() { } );
143
    RWTFixture.preserveWidgets();
144
    RWTFixture.preserveWidgets();
144
    adapter = WidgetUtil.getAdapter( button );
145
    adapter = WidgetUtil.getAdapter( button );
145
    hasListeners = ( Boolean ) adapter.getPreserved( Props.ACTIVATE_LISTENER );
146
    hasListeners = ( Boolean ) adapter.getPreserved( Props.ACTIVATE_LISTENER );
146
    assertEquals( Boolean.TRUE, hasListeners );
147
    assertEquals( Boolean.TRUE, hasListeners );
147
    RWTFixture.clearPreserved();
148
    RWTFixture.clearPreserved();
148
    display.dispose();   
149
    display.dispose();
149
  }
150
  }
150
151
151
  public void testWriteVisibility() throws IOException {
152
  public void testWriteVisibility() throws IOException {
Lines 238-249 Link Here
238
          result = new AbstractWidgetLCA() {
239
          result = new AbstractWidgetLCA() {
239
            public void preserveValues( final Widget widget ) {
240
            public void preserveValues( final Widget widget ) {
240
            }
241
            }
241
            public void renderChanges( final Widget widget ) 
242
            public void renderChanges( final Widget widget )
242
              throws IOException 
243
              throws IOException
243
            {
244
            {
244
            }
245
            }
245
            public void renderDispose( final Widget widget ) 
246
            public void renderDispose( final Widget widget )
246
              throws IOException 
247
              throws IOException
247
            {
248
            {
248
            }
249
            }
249
            public void renderInitialization( final Widget widget )
250
            public void renderInitialization( final Widget widget )
Lines 265-271 Link Here
265
    RWTFixture.markInitialized( display );
266
    RWTFixture.markInitialized( display );
266
    RWTFixture.markInitialized( shell );
267
    RWTFixture.markInitialized( shell );
267
    RWTFixture.markInitialized( control );
268
    RWTFixture.markInitialized( control );
268
    // redraw & dispose: must revoke redraw 
269
    // redraw & dispose: must revoke redraw
269
    control.redraw();
270
    control.redraw();
270
    control.dispose();
271
    control.dispose();
271
    // run life cycle that (in this case) won't call doRedrawFake
272
    // run life cycle that (in this case) won't call doRedrawFake
(-)META-INF/MANIFEST.MF (+1 lines)
Lines 7-9 Link Here
7
Fragment-Host: org.eclipse.rap.rwt;bundle-version="1.1.0"
7
Fragment-Host: org.eclipse.rap.rwt;bundle-version="1.1.0"
8
Require-Bundle: org.junit
8
Require-Bundle: org.junit
9
Bundle-Localization: fragment
9
Bundle-Localization: fragment
10
Bundle-RequiredExecutionEnvironment: J2SE-1.4
(-)src/org/eclipse/swt/internal/widgets/labelkit/LabelLCA_Test.java (+1 lines)
Lines 205-210 Link Here
205
    LabelLCA lca = new LabelLCA();
205
    LabelLCA lca = new LabelLCA();
206
    ControlLCAUtil.preserveValues( label );
206
    ControlLCAUtil.preserveValues( label );
207
    RWTFixture.markInitialized( label );
207
    RWTFixture.markInitialized( label );
208
    RWTFixture.preserveWidgets();
208
    Fixture.fakeResponseWriter();
209
    Fixture.fakeResponseWriter();
209
    label.setText( "test" );
210
    label.setText( "test" );
210
    lca.renderChanges( label );
211
    lca.renderChanges( label );
(-)src/org/eclipse/rwt/internal/lifecycle/DuplicateRequest_Test.java (-1 / +1 lines)
Lines 150-156 Link Here
150
    RWTFixture.fakeNewRequest();
150
    RWTFixture.fakeNewRequest();
151
    Fixture.fakeRequestParam( RequestParams.UIROOT, displayId );
151
    Fixture.fakeRequestParam( RequestParams.UIROOT, displayId );
152
    Fixture.fakeRequestParam( JSConst.EVENT_WIDGET_SELECTED, buttonId );
152
    Fixture.fakeRequestParam( JSConst.EVENT_WIDGET_SELECTED, buttonId );
153
    RWTFixture.executeLifeCycleFromServerThread( );
153
    RWTFixture.executeLifeCycleFromServerThread();
154
    assertEquals( 1, events.size() );
154
    assertEquals( 1, events.size() );
155
155
156
    // Second request - simulates click on the button that should not be 
156
    // Second request - simulates click on the button that should not be 
(-)src/org/eclipse/swt/internal/widgets/tablekit/TableLCA.java (+1 lines)
Lines 88-93 Link Here
88
    readWidgetSelected( table );
88
    readWidgetSelected( table );
89
    readWidgetDefaultSelected( table );
89
    readWidgetDefaultSelected( table );
90
    ControlLCAUtil.processMouseEvents( table );
90
    ControlLCAUtil.processMouseEvents( table );
91
    ControlLCAUtil.processKeyEvents( table );
91
  }
92
  }
92
93
93
  public void renderInitialization( final Widget widget ) throws IOException {
94
  public void renderInitialization( final Widget widget ) throws IOException {
(-)js/org/eclipse/swt/Application.js (+2 lines)
Lines 15-20 Link Here
15
  construct : function() {
15
  construct : function() {
16
    this.base( arguments );
16
    this.base( arguments );
17
    this._exitConfirmation = null;
17
    this._exitConfirmation = null;
18
    qx.Class.patch( qx.event.handler.KeyEventHandler, 
19
                    org.eclipse.rwt.KeyEventHandlerPatch ); 
18
  },
20
  },
19
  
21
  
20
  destruct : function() {
22
  destruct : function() {
(-)js/org/eclipse/swt/Request.js (-10 / +20 lines)
Lines 72-77 Link Here
72
      this._requestCounter = requestCounter;
72
      this._requestCounter = requestCounter;
73
    },
73
    },
74
74
75
    setTimeoutPage : function( content ) {
76
      this._timeoutPage = content;
77
    },
78
75
    /**
79
    /**
76
     * Adds a request parameter to this request with the given name and value
80
     * Adds a request parameter to this request with the given name and value
77
     */
81
     */
Lines 120-127 Link Here
120
    },
124
    },
121
    
125
    
122
    /**
126
    /**
123
     * Sends this request. All parameters that were added since the last 'send()'
127
     * Sends this request asynchronously. All parameters that were added since 
124
     * will now be sent.
128
     * the last 'send()' will now be sent.
125
     */
129
     */
126
    send : function() {
130
    send : function() {
127
      if( !this._inDelayedSend ) {
131
      if( !this._inDelayedSend ) {
Lines 129-143 Link Here
129
        // Wait and then actually send the request
133
        // Wait and then actually send the request
130
        // TODO [rh] optimize wait interval (below 60ms seems to not work 
134
        // TODO [rh] optimize wait interval (below 60ms seems to not work 
131
        //      reliable)
135
        //      reliable)
132
        qx.client.Timer.once( this._sendImmediate, this, 60 );
136
        var func = function() { this._sendImmediate( true ) };
137
        qx.client.Timer.once( func, this, 60 );
133
      }
138
      }
134
    },
139
    },
135
140
    
136
    setTimeoutPage : function( content ) {
141
    sendSyncronous : function() {
137
      this._timeoutPage = content;
142
      this._sendImmediate( false );
138
    },
143
    },
139
144
140
    _sendImmediate : function() {
145
    _sendImmediate : function( async ) {
141
      this._dispatchSendEvent();
146
      this._dispatchSendEvent();
142
      // set mandatory parameters; do this after regular params to override them
147
      // set mandatory parameters; do this after regular params to override them
143
      // in case of conflict
148
      // in case of conflict
Lines 152-160 Link Here
152
          this._parameters[ "requestCounter" ] = this._requestCounter;
157
          this._parameters[ "requestCounter" ] = this._requestCounter;
153
          this._requestCounter = -1;
158
          this._requestCounter = -1;
154
        }
159
        }
155
  
156
        // create and configure request object
160
        // create and configure request object
157
        var request = this._createRequest();
161
        var request = this._createRequest();
162
        request.setAsynchronous( async );
158
        // copy the _parameters map which was filled during client interaction
163
        // copy the _parameters map which was filled during client interaction
159
        // to the request
164
        // to the request
160
        this._inDelayedSend = false;
165
        this._inDelayedSend = false;
Lines 165-174 Link Here
165
        if( this._runningRequestCount === 1 ) {
170
        if( this._runningRequestCount === 1 ) {
166
          qx.client.Timer.once( this._showWaitHint, this, 500 );
171
          qx.client.Timer.once( this._showWaitHint, this, 500 );
167
        }
172
        }
168
        // queue request to be sent
169
        request.send();
170
        // clear the parameter list
173
        // clear the parameter list
171
        this._parameters = {};
174
        this._parameters = {};
175
        // queue request to be sent (async) or send and block (sync)
176
        if( async ) {
177
          request.send();
178
        } else {
179
          this._sendStandalone( request );
180
        }
172
      }
181
      }
173
    },
182
    },
174
    
183
    
Lines 300-305 Link Here
300
      if( result ) {
309
      if( result ) {
301
        var request = this._createRequest();
310
        var request = this._createRequest();
302
        var failedRequest = this._currentRequest;
311
        var failedRequest = this._currentRequest;
312
        request.setAsynchronous( failedRequest.getAsynchronous() );
303
        // Reusing the same request object causes strange behaviour, therefore
313
        // Reusing the same request object causes strange behaviour, therefore
304
        // create a new request and copy the relevant parts from the failed one 
314
        // create a new request and copy the relevant parts from the failed one 
305
        var failedHeaders = failedRequest.getRequestHeaders();
315
        var failedHeaders = failedRequest.getRequestHeaders();
(-)src/org/eclipse/swt/internal/widgets/textkit/SingleTextLCA.java (+1 lines)
Lines 35-40 Link Here
35
    TextLCAUtil.readTextAndSelection( text );
35
    TextLCAUtil.readTextAndSelection( text );
36
    ControlLCAUtil.processSelection( text, null, false );
36
    ControlLCAUtil.processSelection( text, null, false );
37
    ControlLCAUtil.processMouseEvents( text );
37
    ControlLCAUtil.processMouseEvents( text );
38
    ControlLCAUtil.processKeyEvents( text );
38
  }
39
  }
39
40
40
  void renderInitialization( final Text text ) throws IOException {
41
  void renderInitialization( final Text text ) throws IOException {
(-)src/org/eclipse/swt/internal/widgets/shellkit/ShellLCA.java (+1 lines)
Lines 65-70 Link Here
65
    processActiveShell( shell );
65
    processActiveShell( shell );
66
    processActivate( shell );
66
    processActivate( shell );
67
    ControlLCAUtil.processMouseEvents( shell );
67
    ControlLCAUtil.processMouseEvents( shell );
68
    ControlLCAUtil.processKeyEvents( shell );
68
  }
69
  }
69
70
70
  public void renderInitialization( final Widget widget ) throws IOException {
71
  public void renderInitialization( final Widget widget ) throws IOException {
(-)src/org/eclipse/swt/internal/widgets/displaykit/QooxdooResourcesUtil.java (+6 lines)
Lines 37-42 Link Here
37
  private static final String QX_DEBUG_JS
37
  private static final String QX_DEBUG_JS
38
    = "qx-debug.js";
38
    = "qx-debug.js";
39
39
40
  private static final String KEY_EVENT_HANDLER_PATCH
41
    = "org/eclipse/rwt/KeyEventHandlerPatch.js";
40
  private static final String APPLICATION_JS
42
  private static final String APPLICATION_JS
41
    = "org/eclipse/swt/Application.js";
43
    = "org/eclipse/swt/Application.js";
42
  private static final String REQUEST_JS
44
  private static final String REQUEST_JS
Lines 45-50 Link Here
45
    = "org/eclipse/swt/WidgetManager.js";
47
    = "org/eclipse/swt/WidgetManager.js";
46
  private static final String EVENT_UTIL_JS
48
  private static final String EVENT_UTIL_JS
47
    = "org/eclipse/swt/EventUtil.js";
49
    = "org/eclipse/swt/EventUtil.js";
50
  private static final String KEY_EVENT_UTIL_JS
51
    = "org/eclipse/rwt/KeyEventUtil.js";
48
  private static final String TAB_UTIL_JS
52
  private static final String TAB_UTIL_JS
49
    = "org/eclipse/swt/TabUtil.js";
53
    = "org/eclipse/swt/TabUtil.js";
50
  private static final String BUTTON_UTIL_JS
54
  private static final String BUTTON_UTIL_JS
Lines 163-172 Link Here
163
      register( QX_CONSTANT_LAYOUT_JS, compress );
167
      register( QX_CONSTANT_LAYOUT_JS, compress );
164
      register( QX_CONSTANT_STYLE_JS, compress );
168
      register( QX_CONSTANT_STYLE_JS, compress );
165
169
170
      register( KEY_EVENT_HANDLER_PATCH, compress );
166
      register( APPLICATION_JS, compress );
171
      register( APPLICATION_JS, compress );
167
      register( REQUEST_JS, compress );
172
      register( REQUEST_JS, compress );
168
      register( WIDGET_MANAGER_JS, compress );
173
      register( WIDGET_MANAGER_JS, compress );
169
      register( EVENT_UTIL_JS, compress );
174
      register( EVENT_UTIL_JS, compress );
175
      register( KEY_EVENT_UTIL_JS, compress );
170
      register( WIDGET_UTIL_JS, compress );
176
      register( WIDGET_UTIL_JS, compress );
171
      register( SASH_JS, compress );
177
      register( SASH_JS, compress );
172
      register( TAB_UTIL_JS, compress );
178
      register( TAB_UTIL_JS, compress );
(-)js/qx-debug.js (-7059 / +7081 lines)
Lines 768-774 Link Here
768
}if(config.members){this.__addMembers(clazz,
768
}if(config.members){this.__addMembers(clazz,
769
config.members,
769
config.members,
770
true,
770
true,
771
true);
771
true,
772
false);
772
}if(config.events){this.__addEvents(clazz,
773
}if(config.events){this.__addEvents(clazz,
773
config.events,
774
config.events,
774
true);
775
true);
Lines 1111-1117 Link Here
1111
__addMembers:function(clazz,
1112
__addMembers:function(clazz,
1112
members,
1113
members,
1113
patch,
1114
patch,
1114
base){var proto=clazz.prototype;
1115
base,
1116
wrap){var proto=clazz.prototype;
1115
var key,
1117
var key,
1116
member;
1118
member;
1117
for(var i=0,
1119
for(var i=0,
Lines 1122-1135 Link Here
1122
}
1124
}
1123
if(patch!==true&&proto[key]!==undefined){throw new Error('Overwriting member "'+key+'" of Class "'+clazz.classname+'" is not allowed!');
1125
if(patch!==true&&proto[key]!==undefined){throw new Error('Overwriting member "'+key+'" of Class "'+clazz.classname+'" is not allowed!');
1124
}};
1126
}};
1125
if(base!==false&&member instanceof Function){if(proto[key]){member.base=proto[key];
1127
if(base!==false&&member instanceof Function){if(wrap==true){member=this.__mixinMemberWrapper(member,
1128
proto[key]);
1129
}else{if(proto[key]){member.base=proto[key];
1126
}member.self=clazz;
1130
}member.self=clazz;
1131
}
1127
if(qx.core.Variant.isSet("qx.aspects",
1132
if(qx.core.Variant.isSet("qx.aspects",
1128
"on")){member=qx.core.Aspect.wrap(clazz.classname+"."+key,
1133
"on")){member=qx.core.Aspect.wrap(clazz.classname+"."+key,
1129
member,
1134
member,
1130
"member");
1135
"member");
1131
}}proto[key]=member;
1136
}}proto[key]=member;
1132
}},
1137
}},
1138
__mixinMemberWrapper:function(member,
1139
base){if(base){return function(){var oldBase=member.base;
1140
member.base=base;
1141
var retval=member.apply(this,
1142
arguments);
1143
member.base=oldBase;
1144
return retval;
1145
};
1146
}else{return member;
1147
}},
1133
__addInterface:function(clazz,
1148
__addInterface:function(clazz,
1134
iface){{if(!clazz||!iface){throw new Error("Incomplete parameters!");
1149
iface){{if(!clazz||!iface){throw new Error("Incomplete parameters!");
1135
}if(this.hasOwnInterface(clazz,
1150
}if(this.hasOwnInterface(clazz,
Lines 1166-1172 Link Here
1166
}if(entry.$$members){this.__addMembers(clazz,
1181
}if(entry.$$members){this.__addMembers(clazz,
1167
entry.$$members,
1182
entry.$$members,
1168
patch,
1183
patch,
1169
false);
1184
patch,
1185
patch);
1170
}}if(clazz.$$includes){clazz.$$includes.push(mixin);
1186
}}if(clazz.$$includes){clazz.$$includes.push(mixin);
1171
clazz.$$flatIncludes.push.apply(clazz.$$flatIncludes,
1187
clazz.$$flatIncludes.push.apply(clazz.$$flatIncludes,
1172
list);
1188
list);
Lines 4441-4446 Link Here
4441
4457
4442
4458
4443
4459
4460
/* ID: qx.application.Basic */
4461
qx.Class.define("qx.application.Basic",
4462
{extend:qx.core.Target,
4463
implement:qx.application.IApplication,
4464
members:{main:function(){},
4465
close:function(){},
4466
terminate:function(){}}});
4467
4468
4469
4470
4471
/* ID: qx.core.Package */
4472
qx.Class.define("qx.core.Package",
4473
{statics:{loadPart:function(name,
4474
callback,
4475
self){window.qxloader.loadPart(name,
4476
callback,
4477
self);
4478
},
4479
loadScript:function(url,
4480
callback,
4481
self){window.qxloader.loadScript(url,
4482
callback,
4483
self);
4484
}}});
4485
4486
4487
4488
4444
/* ID: qx.locale.Locale */
4489
/* ID: qx.locale.Locale */
4445
qx.Class.define("qx.locale.Locale",
4490
qx.Class.define("qx.locale.Locale",
4446
{statics:{define:function(name,
4491
{statics:{define:function(name,
Lines 4683-6817 Link Here
4683
4728
4684
4729
4685
4730
4686
/* ID: qx.core.Package */
4731
/* ID: qx.application.Gui */
4687
qx.Class.define("qx.core.Package",
4732
qx.Class.define("qx.application.Gui",
4688
{statics:{loadPart:function(name,
4689
callback,
4690
self){window.qxloader.loadPart(name,
4691
callback,
4692
self);
4693
},
4694
loadScript:function(url,
4695
callback,
4696
self){window.qxloader.loadScript(url,
4697
callback,
4698
self);
4699
}}});
4700
4701
4702
4703
4704
/* ID: qx.application.Basic */
4705
qx.Class.define("qx.application.Basic",
4706
{extend:qx.core.Target,
4733
{extend:qx.core.Target,
4707
implement:qx.application.IApplication,
4734
implement:qx.application.IApplication,
4708
members:{main:function(){},
4735
properties:{uiReady:{check:"Boolean",
4736
init:false}},
4737
members:{main:function(){qx.ui.core.Widget.initScrollbarWidth();
4738
qx.theme.manager.Meta.getInstance().initialize();
4739
qx.event.handler.EventHandler.getInstance();
4740
qx.ui.core.ClientDocument.getInstance();
4741
qx.client.Timer.once(this._preload,
4742
this,
4743
0);
4744
},
4709
close:function(){},
4745
close:function(){},
4710
terminate:function(){}}});
4746
terminate:function(){},
4747
_preload:function(){this.debug("preloading visible images...");
4748
this.__preloader=new qx.io.image.PreloaderSystem(qx.io.image.Manager.getInstance().getVisibleImages(),
4749
this._preloaderDone,
4750
this);
4751
this.__preloader.start();
4752
},
4753
_preloaderDone:function(){this.setUiReady(true);
4754
this.__preloader.dispose();
4755
this.__preloader=null;
4756
var start=(new Date).valueOf();
4757
qx.ui.core.Widget.flushGlobalQueues();
4758
this.info("render runtime: "+(new Date-start)+"ms");
4759
qx.event.handler.EventHandler.getInstance().attachEvents();
4760
qx.client.Timer.once(this._postload,
4761
this,
4762
100);
4763
},
4764
_postload:function(){this.debug("preloading hidden images...");
4765
this.__postloader=new qx.io.image.PreloaderSystem(qx.io.image.Manager.getInstance().getHiddenImages(),
4766
this._postloaderDone,
4767
this);
4768
this.__postloader.start();
4769
},
4770
_postloaderDone:function(){this.__postloader.dispose();
4771
this.__postloader=null;
4772
}}});
4711
4773
4712
4774
4713
4775
4714
4776
4715
/* ID: qx.html.StyleSheet */
4777
/* ID: qx.ui.core.Widget */
4716
qx.Class.define("qx.html.StyleSheet",
4778
qx.Class.define("qx.ui.core.Widget",
4717
{statics:{includeFile:function(vHref){var el=document.createElement("link");
4779
{extend:qx.core.Target,
4718
el.type="text/css";
4780
type:"abstract",
4719
el.rel="stylesheet";
4781
construct:function(){this.base(arguments);
4720
el.href=vHref;
4782
this._layoutChanges={};
4721
var head=document.getElementsByTagName("head")[0];
4783
if(qx.core.Setting.get("qx.widgetDebugId")){this._generateHtmlId();
4722
head.appendChild(el);
4784
}},
4723
},
4785
events:{"beforeAppear":"qx.event.type.Event",
4724
createElement:qx.lang.Object.select(document.createStyleSheet?"ie4+":"other",
4786
"appear":"qx.event.type.Event",
4725
{"ie4+":function(vCssText){var vSheet=document.createStyleSheet();
4787
"beforeDisappear":"qx.event.type.Event",
4726
if(vCssText){vSheet.cssText=vCssText;
4788
"disappear":"qx.event.type.Event",
4727
}return vSheet;
4789
"beforeInsertDom":"qx.event.type.Event",
4728
},
4790
"insertDom":"qx.event.type.Event",
4729
"other":function(vCssText){var vElement=document.createElement("style");
4791
"beforeRemoveDom":"qx.event.type.Event",
4730
vElement.type="text/css";
4792
"removeDom":"qx.event.type.Event",
4731
vElement.appendChild(document.createTextNode(vCssText||"body {}"));
4793
"create":"qx.event.type.Event",
4732
document.getElementsByTagName("head")[0].appendChild(vElement);
4794
"execute":"qx.event.type.Event",
4733
if(vElement.sheet){return vElement.sheet;
4795
"mouseover":"qx.event.type.MouseEvent",
4734
}else{var styles=document.styleSheets;
4796
"mousemove":"qx.event.type.MouseEvent",
4735
for(var i=styles.length-1;i>=0;i--){if(styles[i].ownerNode==vElement){return styles[i];
4797
"mouseout":"qx.event.type.MouseEvent",
4736
}}}throw "Error: Could not get a reference to the sheet object";
4798
"mousedown":"qx.event.type.MouseEvent",
4737
}}),
4799
"mouseup":"qx.event.type.MouseEvent",
4738
addRule:qx.lang.Object.select(document.createStyleSheet?"ie4+":"other",
4800
"mousewheel":"qx.event.type.MouseEvent",
4739
{"ie4+":function(vSheet,
4801
"click":"qx.event.type.MouseEvent",
4740
vSelector,
4802
"dblclick":"qx.event.type.MouseEvent",
4741
vStyle){vSheet.addRule(vSelector,
4803
"contextmenu":"qx.event.type.MouseEvent",
4742
vStyle);
4804
"keydown":"qx.event.type.KeyEvent",
4805
"keypress":"qx.event.type.KeyEvent",
4806
"keyinput":"qx.event.type.KeyEvent",
4807
"keyup":"qx.event.type.KeyEvent",
4808
"focusout":"qx.event.type.FocusEvent",
4809
"focusin":"qx.event.type.FocusEvent",
4810
"blur":"qx.event.type.FocusEvent",
4811
"focus":"qx.event.type.FocusEvent",
4812
"dragdrop":"qx.event.type.DragEvent",
4813
"dragout":"qx.event.type.DragEvent",
4814
"dragover":"qx.event.type.DragEvent",
4815
"dragmove":"qx.event.type.DragEvent",
4816
"dragstart":"qx.event.type.DragEvent",
4817
"dragend":"qx.event.type.DragEvent"},
4818
statics:{create:function(clazz,
4819
appearance){clazz._appearance=appearance;
4820
return new clazz;
4743
},
4821
},
4744
"other":qx.lang.Object.select(qx.core.Client.getInstance().isSafari2()?"safari2":"other",
4822
SCROLLBAR_SIZE:null,
4745
{"safari2+":function(vSheet,
4823
_autoFlushTimeout:null,
4746
vSelector,
4824
_initAutoFlush:function(){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._autoFlushTimeout=window.setTimeout(qx.ui.core.Widget._autoFlushHelper,
4747
vStyle){if(!vSheet._qxRules){vSheet._qxRules={};
4825
0);
4826
}},
4827
_removeAutoFlush:function(){if(qx.ui.core.Widget._autoFlushTimeout!=null){window.clearTimeout(qx.ui.core.Widget._autoFlushTimeout);
4828
qx.ui.core.Widget._autoFlushTimeout=null;
4829
}},
4830
_autoFlushHelper:function(){qx.ui.core.Widget._autoFlushTimeout=null;
4831
if(!qx.core.Object.inGlobalDispose()){qx.ui.core.Widget.flushGlobalQueues();
4832
}},
4833
flushGlobalQueues:function(){if(qx.ui.core.Widget._autoFlushTimeout!=null){qx.ui.core.Widget._removeAutoFlush();
4748
}
4834
}
4749
if(!vSheet._qxRules[vSelector]){var ruleNode=document.createTextNode(vSelector+"{"+vStyle+"}");
4835
if(qx.ui.core.Widget._inFlushGlobalQueues){return;
4750
vSheet.ownerNode.appendChild(ruleNode);
4836
}var app=qx.core.Init.getInstance().getApplication();
4751
vSheet._qxRules[vSelector]=ruleNode;
4837
if(app.getUiReady&&!app.getUiReady()){return;
4838
}qx.ui.core.Widget._inFlushGlobalQueues=true;
4839
qx.ui.core.Widget.flushGlobalWidgetQueue();
4840
qx.ui.core.Widget.flushGlobalStateQueue();
4841
qx.ui.core.Widget.flushGlobalElementQueue();
4842
qx.ui.core.Widget.flushGlobalJobQueue();
4843
qx.ui.core.Widget.flushGlobalLayoutQueue();
4844
qx.ui.core.Widget.flushGlobalDisplayQueue();
4845
delete qx.ui.core.Widget._inFlushGlobalQueues;
4846
},
4847
_globalWidgetQueue:[],
4848
addToGlobalWidgetQueue:function(vWidget){if(!vWidget._isInGlobalWidgetQueue&&vWidget._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();
4849
}qx.ui.core.Widget._globalWidgetQueue.push(vWidget);
4850
vWidget._isInGlobalWidgetQueue=true;
4752
}},
4851
}},
4753
"other":function(vSheet,
4852
removeFromGlobalWidgetQueue:function(vWidget){if(vWidget._isInGlobalWidgetQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalWidgetQueue,
4754
vSelector,
4853
vWidget);
4755
vStyle){vSheet.insertRule(vSelector+"{"+vStyle+"}",
4854
delete vWidget._isInGlobalWidgetQueue;
4756
vSheet.cssRules.length);
4757
}})}),
4758
removeRule:qx.lang.Object.select(document.createStyleSheet?"ie4+":"other",
4759
{"ie4+":function(vSheet,
4760
vSelector){var vRules=vSheet.rules;
4761
var vLength=vRules.length;
4762
for(var i=vLength-1;i>=0;i--){if(vRules[i].selectorText==vSelector){vSheet.removeRule(i);
4763
}}},
4764
"other":qx.lang.Object.select(qx.core.Client.getInstance().isSafari2()?"safari2":"other",
4765
{"safari2+":function(vSheet,
4766
vSelector){var warn=function(){qx.log.Logger.ROOT_LOGGER.warn("In Safari/Webkit you can only remove rules that are created using qx.html.StyleSheet.addRule");
4767
};
4768
if(!vSheet._qxRules){warn();
4769
}var ruleNode=vSheet._qxRules[vSelector];
4770
if(ruleNode){vSheet.ownerNode.removeChild(ruleNode);
4771
vSheet._qxRules[vSelector]=null;
4772
}else{warn();
4773
}},
4855
}},
4774
"other":function(vSheet,
4856
flushGlobalWidgetQueue:function(){var vQueue=qx.ui.core.Widget._globalWidgetQueue,
4775
vSelector){var vRules=vSheet.cssRules;
4857
vLength,
4776
var vLength=vRules.length;
4858
vWidget;
4777
for(var i=vLength-1;i>=0;i--){if(vRules[i].selectorText==vSelector){vSheet.deleteRule(i);
4859
while((vLength=vQueue.length)>0){for(var i=0;i<vLength;i++){vWidget=vQueue[i];
4778
}}}})}),
4860
vWidget.flushWidgetQueue();
4779
removeAllRules:qx.lang.Object.select(document.createStyleSheet?"ie4+":"other",
4861
delete vWidget._isInGlobalWidgetQueue;
4780
{"ie4+":function(vSheet){var vRules=vSheet.rules;
4862
}vQueue.splice(0,
4781
var vLength=vRules.length;
4863
vLength);
4782
for(var i=vLength-1;i>=0;i--){vSheet.removeRule(i);
4783
}},
4864
}},
4784
"other":qx.lang.Object.select(qx.core.Client.getInstance().isSafari2()?"safari2":"other",
4865
_globalElementQueue:[],
4785
{"safari2+":function(vSheet){var node=vSheet.ownerNode;
4866
addToGlobalElementQueue:function(vWidget){if(!vWidget._isInGlobalElementQueue&&vWidget._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();
4786
var rules=node.childNodes;
4867
}qx.ui.core.Widget._globalElementQueue.push(vWidget);
4787
while(rules.length>0){node.removeChild(rules[0]);
4868
vWidget._isInGlobalElementQueue=true;
4788
}},
4869
}},
4789
"other":function(vSheet){var vRules=vSheet.cssRules;
4870
removeFromGlobalElementQueue:function(vWidget){if(vWidget._isInGlobalElementQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalElementQueue,
4790
var vLength=vRules.length;
4871
vWidget);
4791
for(var i=vLength-1;i>=0;i--){vSheet.deleteRule(i);
4872
delete vWidget._isInGlobalElementQueue;
4792
}}})}),
4793
addImport:qx.lang.Object.select(document.createStyleSheet?"ie4+":"other",
4794
{"ie4+":function(vSheet,
4795
vUrl){vSheet.addImport(vUrl);
4796
},
4797
"other":qx.lang.Object.select(qx.core.Client.getInstance().isSafari2()?"safari2":"other",
4798
{"safari2+":function(vSheet,
4799
vUrl){vSheet.ownerNode.appendChild(document.createTextNode('@import "'+vUrl+'";'));
4800
},
4801
"other":function(vSheet,
4802
vUrl){vSheet.insertRule('@import "'+vUrl+'";',
4803
vSheet.cssRules.length);
4804
}})}),
4805
removeImport:qx.lang.Object.select(document.createStyleSheet?"ie4+":"other",
4806
{"ie4+":function(vSheet,
4807
vUrl){var vImports=vSheet.imports;
4808
var vLength=vImports.length;
4809
for(var i=vLength-1;i>=0;i--){if(vImports[i].href==vUrl){vSheet.removeImport(i);
4810
}}},
4811
"other":function(vSheet,
4812
vUrl){var vRules=vSheet.cssRules;
4813
var vLength=vRules.length;
4814
for(var i=vLength-1;i>=0;i--){if(vRules[i].href==vUrl){vSheet.deleteRule(i);
4815
}}}}),
4816
removeAllImports:qx.lang.Object.select(document.createStyleSheet?"ie4+":"other",
4817
{"ie4+":function(vSheet){var vImports=vSheet.imports;
4818
var vLength=vImports.length;
4819
for(var i=vLength-1;i>=0;i--){vSheet.removeImport(i);
4820
}},
4873
}},
4821
"other":function(vSheet){var vRules=vSheet.cssRules;
4874
flushGlobalElementQueue:function(){var vQueue=qx.ui.core.Widget._globalElementQueue,
4822
var vLength=vRules.length;
4875
vLength,
4823
for(var i=vLength-1;i>=0;i--){if(vRules[i].type==vRules[i].IMPORT_RULE){vSheet.deleteRule(i);
4876
vWidget;
4824
}}}})}});
4877
while((vLength=vQueue.length)>0){for(var i=0;i<vLength;i++){vWidget=vQueue[i];
4825
4878
vWidget._createElementImpl();
4826
4879
delete vWidget._isInGlobalElementQueue;
4827
4880
}vQueue.splice(0,
4828
4881
vLength);
4829
/* ID: qx.html.Scroll */
4830
qx.Class.define("qx.html.Scroll",
4831
{statics:{getLeftSum:function(el){var sum=0;
4832
var p=el.parentNode;
4833
while(p.nodeType==1){sum+=p.scrollLeft;
4834
p=p.parentNode;
4835
}return sum;
4836
},
4837
getTopSum:function(el){var sum=0;
4838
var p=el.parentNode;
4839
while(p.nodeType==1){sum+=p.scrollTop;
4840
p=p.parentNode;
4841
}return sum;
4842
}}});
4843
4844
4845
4846
4847
/* ID: qx.html.ScrollIntoView */
4848
qx.Class.define("qx.html.ScrollIntoView",
4849
{statics:{scrollX:function(vElement,
4850
vAlignLeft){var vParentWidth,
4851
vParentScrollLeft,
4852
vWidth,
4853
vHasScroll;
4854
var vParent=vElement.parentNode;
4855
var vOffset=vElement.offsetLeft;
4856
var vWidth=vElement.offsetWidth;
4857
while(vParent){switch(qx.html.Style.getStyleProperty(vParent,
4858
"overflow")){case "scroll":case "auto":case "-moz-scrollbars-horizontal":vHasScroll=true;
4859
break;
4860
default:switch(qx.html.Style.getStyleProperty(vParent,
4861
"overflowX")){case "scroll":case "auto":vHasScroll=true;
4862
break;
4863
default:vHasScroll=false;
4864
}}
4865
if(vHasScroll){vParentWidth=vParent.clientWidth;
4866
vParentScrollLeft=vParent.scrollLeft;
4867
if(vAlignLeft){vParent.scrollLeft=vOffset;
4868
}else if(vAlignLeft==false){vParent.scrollLeft=vOffset+vWidth-vParentWidth;
4869
}else if(vWidth>vParentWidth||vOffset<vParentScrollLeft){vParent.scrollLeft=vOffset;
4870
}else if((vOffset+vWidth)>(vParentScrollLeft+vParentWidth)){vParent.scrollLeft=vOffset+vWidth-vParentWidth;
4871
}vOffset=vParent.offsetLeft;
4872
vWidth=vParent.offsetWidth;
4873
}else{vOffset+=vParent.offsetLeft;
4874
}
4875
if(vParent.tagName.toLowerCase()=="body"){break;
4876
}vParent=vParent.offsetParent;
4877
}return true;
4878
},
4879
scrollY:function(vElement,
4880
vAlignTop){var vParentHeight,
4881
vParentScrollTop,
4882
vHeight,
4883
vHasScroll;
4884
var vParent=vElement.parentNode;
4885
var vOffset=vElement.offsetTop;
4886
var vHeight=vElement.offsetHeight;
4887
while(vParent){switch(qx.html.Style.getStyleProperty(vParent,
4888
"overflow")){case "scroll":case "auto":case "-moz-scrollbars-vertical":vHasScroll=true;
4889
break;
4890
default:switch(qx.html.Style.getStyleProperty(vParent,
4891
"overflowY")){case "scroll":case "auto":vHasScroll=true;
4892
break;
4893
default:vHasScroll=false;
4894
}}
4895
if(vHasScroll){vParentHeight=vParent.clientHeight;
4896
vParentScrollTop=vParent.scrollTop;
4897
if(vAlignTop){vParent.scrollTop=vOffset;
4898
}else if(vAlignTop==false){vParent.scrollTop=vOffset+vHeight-vParentHeight;
4899
}else if(vHeight>vParentHeight||vOffset<vParentScrollTop){vParent.scrollTop=vOffset;
4900
}else if((vOffset+vHeight)>(vParentScrollTop+vParentHeight)){vParent.scrollTop=vOffset+vHeight-vParentHeight;
4901
}vOffset=vParent.offsetTop;
4902
vHeight=vParent.offsetHeight;
4903
}else{vOffset+=vParent.offsetTop;
4904
}
4905
if(vParent.tagName.toLowerCase()=="body"){break;
4906
}vParent=vParent.offsetParent;
4907
}return true;
4908
}}});
4909
4910
4911
4912
4913
/* ID: qx.html.Style */
4914
qx.Class.define("qx.html.Style",
4915
{statics:{getStylePropertySure:qx.lang.Object.select((document.defaultView&&document.defaultView.getComputedStyle)?"hasComputed":"noComputed",
4916
{"hasComputed":function(el,
4917
prop){return !el?null:el.ownerDocument?el.ownerDocument.defaultView.getComputedStyle(el,
4918
"")[prop]:el.style[prop];
4919
},
4920
"noComputed":qx.core.Variant.select("qx.client",
4921
{"mshtml":function(el,
4922
prop){try{if(!el){return null;
4923
}
4924
if(el.parentNode&&el.currentStyle){return el.currentStyle[prop];
4925
}else{var v1=el.runtimeStyle[prop];
4926
if(v1!=null&&typeof v1!="undefined"&&v1!=""){return v1;
4927
}return el.style[prop];
4928
}}catch(ex){throw new Error("Could not evaluate computed style: "+el+"["+prop+"]: "+ex);
4929
}},
4882
}},
4930
"default":function(el,
4883
_globalStateQueue:[],
4931
prop){return !el?null:el.style[prop];
4884
addToGlobalStateQueue:function(vWidget){if(!vWidget._isInGlobalStateQueue&&vWidget._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();
4932
}})}),
4885
}qx.ui.core.Widget._globalStateQueue.push(vWidget);
4933
getStyleProperty:qx.lang.Object.select((document.defaultView&&document.defaultView.getComputedStyle)?"hasComputed":"noComputed",
4886
vWidget._isInGlobalStateQueue=true;
4934
{"hasComputed":function(el,
4935
prop){try{return el.ownerDocument.defaultView.getComputedStyle(el,
4936
"")[prop];
4937
}catch(ex){throw new Error("Could not evaluate computed style: "+el+"["+prop+"]: "+ex);
4938
}},
4887
}},
4939
"noComputed":qx.core.Variant.select("qx.client",
4888
removeFromGlobalStateQueue:function(vWidget){if(vWidget._isInGlobalStateQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalStateQueue,
4940
{"mshtml":function(el,
4889
vWidget);
4941
prop){try{return el.currentStyle[prop];
4890
delete vWidget._isInGlobalStateQueue;
4942
}catch(ex){throw new Error("Could not evaluate computed style: "+el+"["+prop+"]: "+ex);
4943
}},
4891
}},
4944
"default":function(el,
4892
flushGlobalStateQueue:function(){var vQueue=qx.ui.core.Widget._globalStateQueue,
4945
prop){try{return el.style[prop];
4893
vLength,
4946
}catch(ex){throw new Error("Could not evaluate computed style: "+el+"["+prop+"]");
4894
vWidget;
4947
}}})}),
4895
while((vLength=vQueue.length)>0){for(var i=0;i<vLength;i++){vWidget=vQueue[i];
4948
getStyleSize:function(vElement,
4896
vWidget._renderAppearance();
4949
propertyName){return parseInt(qx.html.Style.getStyleProperty(vElement,
4897
delete vWidget._isInGlobalStateQueue;
4950
propertyName))||0;
4898
}vQueue.splice(0,
4951
},
4899
vLength);
4952
getMarginLeft:function(vElement){return qx.html.Style.getStyleSize(vElement,
4900
}},
4953
"marginLeft");
4901
_globalJobQueue:[],
4954
},
4902
addToGlobalJobQueue:function(vWidget){if(!vWidget._isInGlobalJobQueue&&vWidget._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();
4955
getMarginTop:function(vElement){return qx.html.Style.getStyleSize(vElement,
4903
}qx.ui.core.Widget._globalJobQueue.push(vWidget);
4956
"marginTop");
4904
vWidget._isInGlobalJobQueue=true;
4957
},
4905
}},
4958
getMarginRight:function(vElement){return qx.html.Style.getStyleSize(vElement,
4906
removeFromGlobalJobQueue:function(vWidget){if(vWidget._isInGlobalJobQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalJobQueue,
4959
"marginRight");
4907
vWidget);
4960
},
4908
delete vWidget._isInGlobalJobQueue;
4961
getMarginBottom:function(vElement){return qx.html.Style.getStyleSize(vElement,
4909
}},
4962
"marginBottom");
4910
flushGlobalJobQueue:function(){var vQueue=qx.ui.core.Widget._globalJobQueue,
4963
},
4911
vLength,
4964
getPaddingLeft:function(vElement){return qx.html.Style.getStyleSize(vElement,
4912
vWidget;
4965
"paddingLeft");
4913
while((vLength=vQueue.length)>0){for(var i=0;i<vLength;i++){vWidget=vQueue[i];
4966
},
4914
vWidget._flushJobQueue(vWidget._jobQueue);
4967
getPaddingTop:function(vElement){return qx.html.Style.getStyleSize(vElement,
4915
delete vWidget._isInGlobalJobQueue;
4968
"paddingTop");
4916
}vQueue.splice(0,
4969
},
4917
vLength);
4970
getPaddingRight:function(vElement){return qx.html.Style.getStyleSize(vElement,
4918
}},
4971
"paddingRight");
4919
_globalLayoutQueue:[],
4972
},
4920
addToGlobalLayoutQueue:function(vParent){if(!vParent._isInGlobalLayoutQueue&&vParent._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();
4973
getPaddingBottom:function(vElement){return qx.html.Style.getStyleSize(vElement,
4921
}qx.ui.core.Widget._globalLayoutQueue.push(vParent);
4974
"paddingBottom");
4922
vParent._isInGlobalLayoutQueue=true;
4975
},
4923
}},
4976
getBorderLeft:function(vElement){return qx.html.Style.getStyleProperty(vElement,
4924
removeFromGlobalLayoutQueue:function(vParent){if(vParent._isInGlobalLayoutQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalLayoutQueue,
4977
"borderLeftStyle")=="none"?0:qx.html.Style.getStyleSize(vElement,
4925
vParent);
4978
"borderLeftWidth");
4926
delete vParent._isInGlobalLayoutQueue;
4979
},
4927
}},
4980
getBorderTop:function(vElement){return qx.html.Style.getStyleProperty(vElement,
4928
flushGlobalLayoutQueue:function(){var vQueue=qx.ui.core.Widget._globalLayoutQueue,
4981
"borderTopStyle")=="none"?0:qx.html.Style.getStyleSize(vElement,
4929
vLength,
4982
"borderTopWidth");
4930
vParent;
4983
},
4931
while((vLength=vQueue.length)>0){for(var i=0;i<vLength;i++){vParent=vQueue[i];
4984
getBorderRight:function(vElement){return qx.html.Style.getStyleProperty(vElement,
4932
vParent._flushChildrenQueue();
4985
"borderRightStyle")=="none"?0:qx.html.Style.getStyleSize(vElement,
4933
delete vParent._isInGlobalLayoutQueue;
4986
"borderRightWidth");
4934
}vQueue.splice(0,
4987
},
4935
vLength);
4988
getBorderBottom:function(vElement){return qx.html.Style.getStyleProperty(vElement,
4936
}},
4989
"borderBottomStyle")=="none"?0:qx.html.Style.getStyleSize(vElement,
4937
_fastGlobalDisplayQueue:[],
4990
"borderBottomWidth");
4938
_lazyGlobalDisplayQueues:{},
4991
}}});
4939
addToGlobalDisplayQueue:function(vWidget){if(!vWidget._isInGlobalDisplayQueue&&vWidget._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();
4992
4940
}var vParent=vWidget.getParent();
4993
4941
if(vParent.isSeeable()){var vKey=vParent.toHashCode();
4994
4942
if(qx.ui.core.Widget._lazyGlobalDisplayQueues[vKey]){qx.ui.core.Widget._lazyGlobalDisplayQueues[vKey].push(vWidget);
4995
4943
}else{qx.ui.core.Widget._lazyGlobalDisplayQueues[vKey]=[vWidget];
4996
/* ID: qx.html.Location */
4944
}}else{qx.ui.core.Widget._fastGlobalDisplayQueue.push(vWidget);
4997
qx.Class.define("qx.html.Location",
4945
}vWidget._isInGlobalDisplayQueue=true;
4998
{statics:{getPageOuterLeft:function(el){return qx.html.Location.getPageBoxLeft(el)-qx.html.Style.getMarginLeft(el);
4946
}},
4999
},
4947
removeFromGlobalDisplayQueue:function(vWidget){},
5000
getPageOuterTop:function(el){return qx.html.Location.getPageBoxTop(el)-qx.html.Style.getMarginTop(el);
4948
flushGlobalDisplayQueue:function(){var vKey,
5001
},
4949
vLazyQueue,
5002
getPageOuterRight:function(el){return qx.html.Location.getPageBoxRight(el)+qx.html.Style.getMarginRight(el);
4950
vWidget,
5003
},
4951
vFragment;
5004
getPageOuterBottom:function(el){return qx.html.Location.getPageBoxBottom(el)+qx.html.Style.getMarginBottom(el);
4952
var vFastQueue=qx.ui.core.Widget._fastGlobalDisplayQueue;
5005
},
4953
var vLazyQueues=qx.ui.core.Widget._lazyGlobalDisplayQueues;
5006
getClientOuterLeft:function(el){return qx.html.Location.getClientBoxLeft(el)-qx.html.Style.getMarginLeft(el);
4954
for(var i=0,
5007
},
4955
l=vFastQueue.length;i<l;i++){vWidget=vFastQueue[i];
5008
getClientOuterTop:function(el){return qx.html.Location.getClientBoxTop(el)-qx.html.Style.getMarginTop(el);
4956
vWidget.getParent()._getTargetNode().appendChild(vWidget.getElement());
5009
},
4957
}if(qx.Class.isDefined("qx.ui.basic.Inline")){for(vKey in vLazyQueues){vLazyQueue=vLazyQueues[vKey];
5010
getClientOuterRight:function(el){return qx.html.Location.getClientBoxRight(el)+qx.html.Style.getMarginRight(el);
4958
for(var i=0;i<vLazyQueue.length;i++){vWidget=vLazyQueue[i];
5011
},
4959
if(vWidget instanceof qx.ui.basic.Inline){vWidget._beforeInsertDom();
5012
getClientOuterBottom:function(el){return qx.html.Location.getClientBoxBottom(el)+qx.html.Style.getMarginBottom(el);
4960
try{document.getElementById(vWidget.getInlineNodeId()).appendChild(vWidget.getElement());
5013
},
4961
}catch(ex){vWidget.debug("Could not append to inline id: "+vWidget.getInlineNodeId(),
5014
getClientBoxLeft:qx.core.Variant.select("qx.client",
4962
ex);
5015
{"mshtml":function(el){return el.getBoundingClientRect().left;
4963
}vWidget._afterInsertDom();
5016
},
4964
vWidget._afterAppear();
5017
"gecko":function(el){return qx.html.Location.getClientAreaLeft(el)-qx.html.Style.getBorderLeft(el);
4965
qx.lang.Array.remove(vLazyQueue,
5018
},
4966
vWidget);
5019
"default":function(el){var sum=el.offsetLeft;
4967
i--;
5020
while(el.tagName.toLowerCase()!="body"){el=el.offsetParent;
4968
delete vWidget._isInGlobalDisplayQueue;
5021
sum+=el.offsetLeft-el.scrollLeft;
4969
}}}}for(vKey in vLazyQueues){vLazyQueue=vLazyQueues[vKey];
5022
}return sum;
4970
if(document.createDocumentFragment&&vLazyQueue.length>=3){vFragment=document.createDocumentFragment();
5023
}}),
4971
for(var i=0,
5024
getClientBoxTop:qx.core.Variant.select("qx.client",
4972
l=vLazyQueue.length;i<l;i++){vWidget=vLazyQueue[i];
5025
{"mshtml":function(el){return el.getBoundingClientRect().top;
4973
vWidget._beforeInsertDom();
5026
},
4974
vFragment.appendChild(vWidget.getElement());
5027
"gecko":function(el){return qx.html.Location.getClientAreaTop(el)-qx.html.Style.getBorderTop(el);
4975
}vLazyQueue[0].getParent()._getTargetNode().appendChild(vFragment);
5028
},
4976
for(var i=0,
5029
"default":function(el){var sum=el.offsetTop;
4977
l=vLazyQueue.length;i<l;i++){vWidget=vLazyQueue[i];
5030
while(el.tagName.toLowerCase()!="body"){el=el.offsetParent;
4978
vWidget._afterInsertDom();
5031
sum+=el.offsetTop-el.scrollTop;
4979
}}else{for(var i=0,
5032
}return sum;
4980
l=vLazyQueue.length;i<l;i++){vWidget=vLazyQueue[i];
5033
}}),
4981
vWidget._beforeInsertDom();
5034
getClientBoxRight:qx.core.Variant.select("qx.client",
4982
vWidget.getParent()._getTargetNode().appendChild(vWidget.getElement());
5035
{"mshtml":function(el){return el.getBoundingClientRect().right;
4983
vWidget._afterInsertDom();
5036
},
4984
}}}for(vKey in vLazyQueues){vLazyQueue=vLazyQueues[vKey];
5037
"default":function(el){return qx.html.Location.getClientBoxLeft(el)+qx.html.Dimension.getBoxWidth(el);
4985
for(var i=0,
5038
}}),
4986
l=vLazyQueue.length;i<l;i++){vWidget=vLazyQueue[i];
5039
getClientBoxBottom:qx.core.Variant.select("qx.client",
4987
if(vWidget.getVisibility()){vWidget._afterAppear();
5040
{"mshtml":function(el){return el.getBoundingClientRect().bottom;
4988
}delete vWidget._isInGlobalDisplayQueue;
5041
},
4989
}delete vLazyQueues[vKey];
5042
"default":function(el){return qx.html.Location.getClientBoxTop(el)+qx.html.Dimension.getBoxHeight(el);
4990
}for(var i=0,
5043
}}),
4991
l=vFastQueue.length;i<l;i++){delete vFastQueue[i]._isInGlobalDisplayQueue;
5044
getPageBoxLeft:qx.core.Variant.select("qx.client",
4992
}qx.lang.Array.removeAll(vFastQueue);
5045
{"mshtml":function(el){return qx.html.Location.getClientBoxLeft(el)+qx.html.Scroll.getLeftSum(el);
5046
},
5047
"gecko":function(el){return qx.html.Location.getPageAreaLeft(el)-qx.html.Style.getBorderLeft(el);
5048
},
5049
"default":function(el){var sum=el.offsetLeft;
5050
while(el.tagName.toLowerCase()!="body"){el=el.offsetParent;
5051
sum+=el.offsetLeft;
5052
}return sum;
5053
}}),
5054
getPageBoxTop:qx.core.Variant.select("qx.client",
5055
{"mshtml":function(el){return qx.html.Location.getClientBoxTop(el)+qx.html.Scroll.getTopSum(el);
5056
},
5057
"gecko":function(el){return qx.html.Location.getPageAreaTop(el)-qx.html.Style.getBorderTop(el);
5058
},
5059
"default":function(el){var sum=el.offsetTop;
5060
while(el.tagName.toLowerCase()!="body"){el=el.offsetParent;
5061
sum+=el.offsetTop;
5062
}return sum;
5063
}}),
5064
getPageBoxRight:qx.core.Variant.select("qx.client",
5065
{"mshtml":function(el){return qx.html.Location.getClientBoxRight(el)+qx.html.Scroll.getLeftSum(el);
5066
},
5067
"default":function(el){return qx.html.Location.getPageBoxLeft(el)+qx.html.Dimension.getBoxWidth(el);
5068
}}),
5069
getPageBoxBottom:qx.core.Variant.select("qx.client",
5070
{"mshtml":function(el){return qx.html.Location.getClientBoxBottom(el)+qx.html.Scroll.getTopSum(el);
5071
},
5072
"default":function(el){return qx.html.Location.getPageBoxTop(el)+qx.html.Dimension.getBoxHeight(el);
5073
}}),
5074
getClientAreaLeft:qx.core.Variant.select("qx.client",
5075
{"gecko":function(el){return qx.html.Location.getPageAreaLeft(el)-qx.html.Scroll.getLeftSum(el);
5076
},
5077
"default":function(el){return qx.html.Location.getClientBoxLeft(el)+qx.html.Style.getBorderLeft(el);
5078
}}),
5079
getClientAreaTop:qx.core.Variant.select("qx.client",
5080
{"gecko":function(el){return qx.html.Location.getPageAreaTop(el)-qx.html.Scroll.getTopSum(el);
5081
},
4993
},
5082
"default":function(el){return qx.html.Location.getClientBoxTop(el)+qx.html.Style.getBorderTop(el);
4994
getActiveSiblingHelperIgnore:function(vIgnoreClasses,
5083
}}),
4995
vInstance){for(var j=0;j<vIgnoreClasses.length;j++){if(vInstance instanceof vIgnoreClasses[j]){return true;
5084
getClientAreaRight:function(el){return qx.html.Location.getClientAreaLeft(el)+qx.html.Dimension.getAreaWidth(el);
4996
}}return false;
5085
},
4997
},
5086
getClientAreaBottom:function(el){return qx.html.Location.getClientAreaTop(el)+qx.html.Dimension.getAreaHeight(el);
4998
getActiveSiblingHelper:function(vObject,
4999
vParent,
5000
vCalc,
5001
vIgnoreClasses,
5002
vMode){if(!vIgnoreClasses){vIgnoreClasses=[];
5003
}var vChilds=vParent.getChildren();
5004
var vPosition=vMode==null?vChilds.indexOf(vObject)+vCalc:vMode==="first"?0:vChilds.length-1;
5005
var vInstance=vChilds[vPosition];
5006
while(vInstance&&(!vInstance.getEnabled()||qx.ui.core.Widget.getActiveSiblingHelperIgnore(vIgnoreClasses,
5007
vInstance))){vPosition+=vCalc;
5008
vInstance=vChilds[vPosition];
5009
if(!vInstance){return null;
5010
}}return vInstance;
5087
},
5011
},
5088
getPageAreaLeft:qx.core.Variant.select("qx.client",
5012
__initApplyMethods:function(members){var applyRuntime="_renderRuntime";
5089
{"gecko":function(el){return el.ownerDocument.getBoxObjectFor(el).x;
5013
var resetRuntime="_resetRuntime";
5014
var style="this._style.";
5015
var cssValue="=((v==null)?0:v)+'px'";
5016
var parameter="v";
5017
var properties=["left",
5018
"right",
5019
"top",
5020
"bottom",
5021
"width",
5022
"height",
5023
"minWidth",
5024
"maxWidth",
5025
"minHeight",
5026
"maxHeight"];
5027
var propertiesUpper=["Left",
5028
"Right",
5029
"Top",
5030
"Bottom",
5031
"Width",
5032
"Height",
5033
"MinWidth",
5034
"MaxWidth",
5035
"MinHeight",
5036
"MaxHeight"];
5037
var applyMargin=applyRuntime+"Margin";
5038
var resetMargin=resetRuntime+"Margin";
5039
var styleMargin=style+"margin";
5040
for(var i=0;i<4;i++){members[applyMargin+propertiesUpper[i]]=new Function(parameter,
5041
styleMargin+propertiesUpper[i]+cssValue);
5042
members[resetMargin+propertiesUpper[i]]=new Function(styleMargin+propertiesUpper[i]+"=''");
5043
}var applyPadding=applyRuntime+"Padding";
5044
var resetPadding=resetRuntime+"Padding";
5045
var stylePadding=style+"padding";
5046
if(qx.core.Variant.isSet("qx.client",
5047
"gecko")){for(var i=0;i<4;i++){members[applyPadding+propertiesUpper[i]]=new Function(parameter,
5048
stylePadding+propertiesUpper[i]+cssValue);
5049
members[resetPadding+propertiesUpper[i]]=new Function(stylePadding+propertiesUpper[i]+"=''");
5050
}}else{for(var i=0;i<4;i++){members[applyPadding+propertiesUpper[i]]=new Function(parameter,
5051
"this.setStyleProperty('padding"+propertiesUpper[i]+"', ((v==null)?0:v)+'px')");
5052
members[resetPadding+propertiesUpper[i]]=new Function("this.removeStyleProperty('padding"+propertiesUpper[i]+"')");
5053
}}for(var i=0;i<properties.length;i++){members[applyRuntime+propertiesUpper[i]]=new Function(parameter,
5054
style+properties[i]+cssValue);
5055
members[resetRuntime+propertiesUpper[i]]=new Function(style+properties[i]+"=''");
5056
}},
5057
TYPE_NULL:0,
5058
TYPE_PIXEL:1,
5059
TYPE_PERCENT:2,
5060
TYPE_AUTO:3,
5061
TYPE_FLEX:4,
5062
layoutPropertyTypes:{},
5063
__initLayoutProperties:function(statics){var a=["width",
5064
"height",
5065
"minWidth",
5066
"maxWidth",
5067
"minHeight",
5068
"maxHeight",
5069
"left",
5070
"right",
5071
"top",
5072
"bottom"];
5073
for(var i=0,
5074
l=a.length,
5075
p,
5076
b,
5077
t;i<l;i++){p=a[i];
5078
b="_computed"+qx.lang.String.toFirstUp(p);
5079
t=b+"Type";
5080
statics.layoutPropertyTypes[p]={dataType:t,
5081
dataParsed:b+"Parsed",
5082
dataValue:b+"Value",
5083
typePixel:t+"Pixel",
5084
typePercent:t+"Percent",
5085
typeAuto:t+"Auto",
5086
typeFlex:t+"Flex",
5087
typeNull:t+"Null"};
5088
}},
5089
initScrollbarWidth:function(){var t=document.createElement("div");
5090
var s=t.style;
5091
s.height=s.width="100px";
5092
s.overflow="scroll";
5093
document.body.appendChild(t);
5094
var c=qx.html.Dimension.getScrollBarSizeRight(t);
5095
qx.ui.core.Widget.SCROLLBAR_SIZE=c?c:16;
5096
document.body.removeChild(t);
5090
},
5097
},
5091
"default":function(el){return qx.html.Location.getPageBoxLeft(el)+qx.html.Style.getBorderLeft(el);
5098
_idCounter:0},
5092
}}),
5099
properties:{enabled:{init:"inherit",
5093
getPageAreaTop:qx.core.Variant.select("qx.client",
5100
check:"Boolean",
5094
{"gecko":function(el){return el.ownerDocument.getBoxObjectFor(el).y;
5101
inheritable:true,
5095
},
5102
apply:"_applyEnabled",
5096
"default":function(el){return qx.html.Location.getPageBoxTop(el)+qx.html.Style.getBorderTop(el);
5103
event:"changeEnabled"},
5097
}}),
5104
parent:{check:"qx.ui.core.Parent",
5098
getPageAreaRight:function(el){return qx.html.Location.getPageAreaLeft(el)+qx.html.Dimension.getAreaWidth(el);
5099
},
5100
getPageAreaBottom:function(el){return qx.html.Location.getPageAreaTop(el)+qx.html.Dimension.getAreaHeight(el);
5101
},
5102
getClientInnerLeft:function(el){return qx.html.Location.getClientAreaLeft(el)+qx.html.Style.getPaddingLeft(el);
5103
},
5104
getClientInnerTop:function(el){return qx.html.Location.getClientAreaTop(el)+qx.html.Style.getPaddingTop(el);
5105
},
5106
getClientInnerRight:function(el){return qx.html.Location.getClientInnerLeft(el)+qx.html.Dimension.getInnerWidth(el);
5107
},
5108
getClientInnerBottom:function(el){return qx.html.Location.getClientInnerTop(el)+qx.html.Dimension.getInnerHeight(el);
5109
},
5110
getPageInnerLeft:function(el){return qx.html.Location.getPageAreaLeft(el)+qx.html.Style.getPaddingLeft(el);
5111
},
5112
getPageInnerTop:function(el){return qx.html.Location.getPageAreaTop(el)+qx.html.Style.getPaddingTop(el);
5113
},
5114
getPageInnerRight:function(el){return qx.html.Location.getPageInnerLeft(el)+qx.html.Dimension.getInnerWidth(el);
5115
},
5116
getPageInnerBottom:function(el){return qx.html.Location.getPageInnerTop(el)+qx.html.Dimension.getInnerHeight(el);
5117
},
5118
getScreenBoxLeft:qx.core.Variant.select("qx.client",
5119
{"gecko":function(el){var sum=0;
5120
var p=el.parentNode;
5121
while(p.nodeType==1){sum+=p.scrollLeft;
5122
p=p.parentNode;
5123
}return el.ownerDocument.getBoxObjectFor(el).screenX-sum;
5124
},
5125
"default":function(el){return qx.html.Location.getScreenDocumentLeft(el)+qx.html.Location.getPageBoxLeft(el);
5126
}}),
5127
getScreenBoxTop:qx.core.Variant.select("qx.client",
5128
{"gecko":function(el){var sum=0;
5129
var p=el.parentNode;
5130
while(p.nodeType==1){sum+=p.scrollTop;
5131
p=p.parentNode;
5132
}return el.ownerDocument.getBoxObjectFor(el).screenY-sum;
5133
},
5134
"default":function(el){return qx.html.Location.getScreenDocumentTop(el)+qx.html.Location.getPageBoxTop(el);
5135
}}),
5136
getScreenBoxRight:function(el){return qx.html.Location.getScreenBoxLeft(el)+qx.html.Dimension.getBoxWidth(el);
5137
},
5138
getScreenBoxBottom:function(el){return qx.html.Location.getScreenBoxTop(el)+qx.html.Dimension.getBoxHeight(el);
5139
},
5140
getScreenOuterLeft:function(el){return qx.html.Location.getScreenBoxLeft(el)-qx.html.Style.getMarginLeft(el);
5141
},
5142
getScreenOuterTop:function(el){return qx.html.Location.getScreenBoxTop(el)-qx.html.Style.getMarginTop(el);
5143
},
5144
getScreenOuterRight:function(el){return qx.html.Location.getScreenBoxRight(el)+qx.html.Style.getMarginRight(el);
5145
},
5146
getScreenOuterBottom:function(el){return qx.html.Location.getScreenBoxBottom(el)+qx.html.Style.getMarginBottom(el);
5147
},
5148
getScreenAreaLeft:function(el){return qx.html.Location.getScreenBoxLeft(el)+qx.html.Dimension.getInsetLeft(el);
5149
},
5150
getScreenAreaTop:function(el){return qx.html.Location.getScreenBoxTop(el)+qx.html.Dimension.getInsetTop(el);
5151
},
5152
getScreenAreaRight:function(el){return qx.html.Location.getScreenBoxRight(el)-qx.html.Dimension.getInsetRight(el);
5153
},
5154
getScreenAreaBottom:function(el){return qx.html.Location.getScreenBoxBottom(el)-qx.html.Dimension.getInsetBottom(el);
5155
},
5156
getScreenInnerLeft:function(el){return qx.html.Location.getScreenAreaLeft(el)+qx.html.Style.getPaddingLeft(el);
5157
},
5158
getScreenInnerTop:function(el){return qx.html.Location.getScreenAreaTop(el)+qx.html.Style.getPaddingTop(el);
5159
},
5160
getScreenInnerRight:function(el){return qx.html.Location.getScreenAreaRight(el)-qx.html.Style.getPaddingRight(el);
5161
},
5162
getScreenInnerBottom:function(el){return qx.html.Location.getScreenAreaBottom(el)-qx.html.Style.getPaddingBottom(el);
5163
},
5164
getScreenDocumentLeft:qx.core.Variant.select("qx.client",
5165
{"gecko":function(el){return qx.html.Location.getScreenOuterLeft(el.ownerDocument.body);
5166
},
5167
"default":function(el){return el.document.parentWindow.screenLeft;
5168
}}),
5169
getScreenDocumentTop:qx.core.Variant.select("qx.client",
5170
{"gecko":function(el){return qx.html.Location.getScreenOuterTop(el.ownerDocument.body);
5171
},
5172
"default":function(el){return el.document.parentWindow.screenTop;
5173
}}),
5174
getScreenDocumentRight:qx.core.Variant.select("qx.client",
5175
{"gecko":function(el){return qx.html.Location.getScreenOuterRight(el.ownerDocument.body);
5176
},
5177
"default":function(el){}}),
5178
getScreenDocumentBottom:qx.core.Variant.select("qx.client",
5179
{"gecko":function(el){return qx.html.Location.getScreenOuterBottom(el.ownerDocument.body);
5180
},
5181
"default":function(el){}})}});
5182
5183
5184
5185
5186
/* ID: qx.html.Dimension */
5187
qx.Class.define("qx.html.Dimension",
5188
{statics:{getOuterWidth:function(el){return qx.html.Dimension.getBoxWidth(el)+qx.html.Style.getMarginLeft(el)+qx.html.Style.getMarginRight(el);
5189
},
5190
getOuterHeight:function(el){return qx.html.Dimension.getBoxHeight(el)+qx.html.Style.getMarginTop(el)+qx.html.Style.getMarginBottom(el);
5191
},
5192
getBoxWidthForZeroHeight:function(el){var h=el.offsetHeight;
5193
if(h==0){var o=el.style.height;
5194
el.style.height="1px";
5195
}var v=el.offsetWidth;
5196
if(h==0){el.style.height=o;
5197
}return v;
5198
},
5199
getBoxHeightForZeroWidth:function(el){var w=el.offsetWidth;
5200
if(w==0){var o=el.style.width;
5201
el.style.width="1px";
5202
}var v=el.offsetHeight;
5203
if(w==0){el.style.width=o;
5204
}return v;
5205
},
5206
getBoxWidth:function(el){return el.offsetWidth;
5207
},
5208
getBoxHeight:function(el){return el.offsetHeight;
5209
},
5210
getAreaWidth:qx.core.Variant.select("qx.client",
5211
{"gecko":function(el){if(el.clientWidth!=0&&el.clientWidth!=(qx.html.Style.getBorderLeft(el)+qx.html.Style.getBorderRight(el))){return el.clientWidth;
5212
}else{return qx.html.Dimension.getBoxWidth(el)-qx.html.Dimension.getInsetLeft(el)-qx.html.Dimension.getInsetRight(el);
5213
}},
5214
"default":function(el){return el.clientWidth!=0?el.clientWidth:(qx.html.Dimension.getBoxWidth(el)-qx.html.Dimension.getInsetLeft(el)-qx.html.Dimension.getInsetRight(el));
5215
}}),
5216
getAreaHeight:qx.core.Variant.select("qx.client",
5217
{"gecko":function(el){if(el.clientHeight!=0&&el.clientHeight!=(qx.html.Style.getBorderTop(el)+qx.html.Style.getBorderBottom(el))){return el.clientHeight;
5218
}else{return qx.html.Dimension.getBoxHeight(el)-qx.html.Dimension.getInsetTop(el)-qx.html.Dimension.getInsetBottom(el);
5219
}},
5220
"default":function(el){return el.clientHeight!=0?el.clientHeight:(qx.html.Dimension.getBoxHeight(el)-qx.html.Dimension.getInsetTop(el)-qx.html.Dimension.getInsetBottom(el));
5221
}}),
5222
getInnerWidth:function(el){return qx.html.Dimension.getAreaWidth(el)-qx.html.Style.getPaddingLeft(el)-qx.html.Style.getPaddingRight(el);
5223
},
5224
getInnerHeight:function(el){return qx.html.Dimension.getAreaHeight(el)-qx.html.Style.getPaddingTop(el)-qx.html.Style.getPaddingBottom(el);
5225
},
5226
getInsetLeft:qx.core.Variant.select("qx.client",
5227
{"mshtml":function(el){return el.clientLeft;
5228
},
5229
"default":function(el){return qx.html.Style.getBorderLeft(el);
5230
}}),
5231
getInsetTop:qx.core.Variant.select("qx.client",
5232
{"mshtml":function(el){return el.clientTop;
5233
},
5234
"default":function(el){return qx.html.Style.getBorderTop(el);
5235
}}),
5236
getInsetRight:qx.core.Variant.select("qx.client",
5237
{"mshtml":function(el){if(qx.html.Style.getStyleProperty(el,
5238
"overflowY")=="hidden"||el.clientWidth==0){return qx.html.Style.getBorderRight(el);
5239
}return Math.max(0,
5240
el.offsetWidth-el.clientLeft-el.clientWidth);
5241
},
5242
"default":function(el){if(el.clientWidth==0){var ov=qx.html.Style.getStyleProperty(el,
5243
"overflow");
5244
var sbv=ov=="scroll"||ov=="-moz-scrollbars-vertical"?16:0;
5245
return Math.max(0,
5246
qx.html.Style.getBorderRight(el)+sbv);
5247
}return Math.max(0,
5248
el.offsetWidth-el.clientWidth-qx.html.Style.getBorderLeft(el));
5249
}}),
5250
getInsetBottom:qx.core.Variant.select("qx.client",
5251
{"mshtml":function(el){if(qx.html.Style.getStyleProperty(el,
5252
"overflowX")=="hidden"||el.clientHeight==0){return qx.html.Style.getBorderBottom(el);
5253
}return Math.max(0,
5254
el.offsetHeight-el.clientTop-el.clientHeight);
5255
},
5256
"default":function(el){if(el.clientHeight==0){var ov=qx.html.Style.getStyleProperty(el,
5257
"overflow");
5258
var sbv=ov=="scroll"||ov=="-moz-scrollbars-horizontal"?16:0;
5259
return Math.max(0,
5260
qx.html.Style.getBorderBottom(el)+sbv);
5261
}return Math.max(0,
5262
el.offsetHeight-el.clientHeight-qx.html.Style.getBorderTop(el));
5263
}}),
5264
getScrollBarSizeLeft:function(el){return 0;
5265
},
5266
getScrollBarSizeTop:function(el){return 0;
5267
},
5268
getScrollBarSizeRight:function(el){return qx.html.Dimension.getInsetRight(el)-qx.html.Style.getBorderRight(el);
5269
},
5270
getScrollBarSizeBottom:function(el){return qx.html.Dimension.getInsetBottom(el)-qx.html.Style.getBorderBottom(el);
5271
},
5272
getScrollBarVisibleX:function(el){return qx.html.Dimension.getScrollBarSizeRight(el)>0;
5273
},
5274
getScrollBarVisibleY:function(el){return qx.html.Dimension.getScrollBarSizeBottom(el)>0;
5275
}}});
5276
5277
5278
5279
5280
/* ID: qx.html.Offset */
5281
qx.Class.define("qx.html.Offset",
5282
{statics:{getLeft:qx.core.Variant.select("qx.client",
5283
{"gecko":function(el){var val=el.offsetLeft;
5284
var pa=el.parentNode;
5285
var pose=qx.html.Style.getStyleProperty(el,
5286
"position");
5287
var posp=qx.html.Style.getStyleProperty(pa,
5288
"position");
5289
if(pose!="absolute"&&pose!="fixed"){val-=qx.html.Style.getBorderLeft(pa);
5290
}if(posp!="absolute"&&posp!="fixed"){while(pa){pa=pa.parentNode;
5291
if(!pa||typeof pa.tagName!=="string"){break;
5292
}var posi=qx.html.Style.getStyleProperty(pa,
5293
"position");
5294
if(posi=="absolute"||posi=="fixed"){val-=qx.html.Style.getBorderLeft(pa)+qx.html.Style.getPaddingLeft(pa);
5295
break;
5296
}}}return val;
5297
},
5298
"default":function(el){return el.offsetLeft;
5299
}}),
5300
getTop:qx.core.Variant.select("qx.client",
5301
{"gecko":function(el){var val=el.offsetTop;
5302
var pa=el.parentNode;
5303
var pose=qx.html.Style.getStyleProperty(el,
5304
"position");
5305
var posp=qx.html.Style.getStyleProperty(pa,
5306
"position");
5307
if(pose!="absolute"&&pose!="fixed"){val-=qx.html.Style.getBorderTop(pa);
5308
}if(posp!="absolute"&&posp!="fixed"){while(pa){pa=pa.parentNode;
5309
if(!pa||typeof pa.tagName!=="string"){break;
5310
}var posi=qx.html.Style.getStyleProperty(pa,
5311
"position");
5312
if(posi=="absolute"||posi=="fixed"){val-=qx.html.Style.getBorderTop(pa)+qx.html.Style.getPaddingTop(pa);
5313
break;
5314
}}}return val;
5315
},
5316
"default":function(el){return el.offsetTop;
5317
}})}});
5318
5319
5320
5321
5322
/* ID: qx.theme.manager.Color */
5323
qx.Class.define("qx.theme.manager.Color",
5324
{type:"singleton",
5325
extend:qx.util.manager.Value,
5326
properties:{colorTheme:{check:"Theme",
5327
nullable:true,
5328
apply:"_applyColorTheme",
5329
event:"changeColorTheme"}},
5330
members:{_applyColorTheme:function(value){var dest=this._dynamic={};
5331
if(value){var source=value.colors;
5332
var util=qx.util.ColorUtil;
5333
var temp;
5334
for(var key in source){temp=source[key];
5335
if(typeof temp==="string"){if(!util.isCssString(temp)){throw new Error("Could not parse color: "+temp);
5336
}}else if(temp instanceof Array){temp=util.rgbToRgbString(temp);
5337
}else{throw new Error("Could not parse color: "+temp);
5338
}dest[key]=temp;
5339
}}
5340
if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncColorTheme();
5341
}},
5342
syncColorTheme:function(){this._updateObjects();
5343
}}});
5344
5345
5346
5347
5348
/* ID: qx.util.ColorUtil */
5349
qx.Class.define("qx.util.ColorUtil",
5350
{statics:{REGEXP:{hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
5351
hex6:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
5352
rgb:/^rgb\(\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*\)$/},
5353
SYSTEM:{activeborder:true,
5354
activecaption:true,
5355
appworkspace:true,
5356
background:true,
5357
buttonface:true,
5358
buttonhighlight:true,
5359
buttonshadow:true,
5360
buttontext:true,
5361
captiontext:true,
5362
graytext:true,
5363
highlight:true,
5364
highlighttext:true,
5365
inactiveborder:true,
5366
inactivecaption:true,
5367
inactivecaptiontext:true,
5368
infobackground:true,
5369
infotext:true,
5370
menu:true,
5371
menutext:true,
5372
scrollbar:true,
5373
threeddarkshadow:true,
5374
threedface:true,
5375
threedhighlight:true,
5376
threedlightshadow:true,
5377
threedshadow:true,
5378
window:true,
5379
windowframe:true,
5380
windowtext:true},
5381
NAMED:{black:[0,
5382
0,
5383
0],
5384
silver:[192,
5385
192,
5386
192],
5387
gray:[128,
5388
128,
5389
128],
5390
white:[255,
5391
255,
5392
255],
5393
maroon:[128,
5394
0,
5395
0],
5396
red:[255,
5397
0,
5398
0],
5399
purple:[128,
5400
0,
5401
128],
5402
fuchsia:[255,
5403
0,
5404
255],
5405
green:[0,
5406
128,
5407
0],
5408
lime:[0,
5409
255,
5410
0],
5411
olive:[128,
5412
128,
5413
0],
5414
yellow:[255,
5415
255,
5416
0],
5417
navy:[0,
5418
0,
5419
128],
5420
blue:[0,
5421
0,
5422
255],
5423
teal:[0,
5424
128,
5425
128],
5426
aqua:[0,
5427
255,
5428
255],
5429
transparent:[-1,
5430
-1,
5431
-1],
5432
grey:[128,
5433
128,
5434
128],
5435
magenta:[255,
5436
0,
5437
255],
5438
orange:[255,
5439
165,
5440
0],
5441
brown:[165,
5442
42,
5443
42]},
5444
isNamedColor:function(value){return this.NAMED[value]!==undefined;
5445
},
5446
isSystemColor:function(value){return this.SYSTEM[value]!==undefined;
5447
},
5448
isThemedColor:function(value){return qx.theme.manager.Color.getInstance().isDynamic(value);
5449
},
5450
stringToRgb:function(str){if(this.isThemedColor(str)){var str=qx.theme.manager.Color.getInstance().resolveDynamic(str);
5451
}
5452
if(this.isNamedColor(str)){return this.NAMED[str];
5453
}else if(this.isSystemColor(str)){throw new Error("Could not convert system colors to RGB: "+str);
5454
}else if(this.isRgbString(str)){return this.__rgbStringToRgb();
5455
}else if(this.isHex3String(str)){return this.__hex3StringToRgb();
5456
}else if(this.isHex6String(str)){return this.__hex6StringToRgb();
5457
}throw new Error("Could not parse color: "+str);
5458
},
5459
cssStringToRgb:function(str){if(this.isNamedColor(str)){return this.NAMED[str];
5460
}else if(this.isSystemColor(str)){throw new Error("Could not convert system colors to RGB: "+str);
5461
}else if(this.isRgbString(str)){return this.__rgbStringToRgb();
5462
}else if(this.isHex3String(str)){return this.__hex3StringToRgb();
5463
}else if(this.isHex6String(str)){return this.__hex6StringToRgb();
5464
}throw new Error("Could not parse color: "+str);
5465
},
5466
stringToRgbString:function(str){return this.rgbToRgbString(this.stringToRgb(str));
5467
},
5468
rgbToRgbString:function(rgb){return "rgb("+rgb[0]+","+rgb[1]+","+rgb[2]+")";
5469
},
5470
rgbToHexString:function(rgb){return (qx.lang.String.pad(rgb[0].toString(16).toUpperCase(),
5471
2)+qx.lang.String.pad(rgb[1].toString(16).toUpperCase(),
5472
2)+qx.lang.String.pad(rgb[2].toString(16).toUpperCase(),
5473
2));
5474
},
5475
isValid:function(str){return this.isThemedColor(str)||this.isCssString(str);
5476
},
5477
isCssString:function(str){return this.isSystemColor(str)||this.isNamedColor(str)||this.isHex3String(str)||this.isHex6String(str)||this.isRgbString(str);
5478
},
5479
isHex3String:function(str){return this.REGEXP.hex3.test(str);
5480
},
5481
isHex6String:function(str){return this.REGEXP.hex6.test(str);
5482
},
5483
isRgbString:function(str){return this.REGEXP.rgb.test(str);
5484
},
5485
__rgbStringToRgb:function(){var red=parseInt(RegExp.$1);
5486
var green=parseInt(RegExp.$2);
5487
var blue=parseInt(RegExp.$3);
5488
return [red,
5489
green,
5490
blue];
5491
},
5492
__hex3StringToRgb:function(){var red=parseInt(RegExp.$1,
5493
16)*17;
5494
var green=parseInt(RegExp.$2,
5495
16)*17;
5496
var blue=parseInt(RegExp.$3,
5497
16)*17;
5498
return [red,
5499
green,
5500
blue];
5501
},
5502
__hex6StringToRgb:function(){var red=(parseInt(RegExp.$1,
5503
16)*16)+parseInt(RegExp.$2,
5504
16);
5505
var green=(parseInt(RegExp.$3,
5506
16)*16)+parseInt(RegExp.$4,
5507
16);
5508
var blue=(parseInt(RegExp.$5,
5509
16)*16)+parseInt(RegExp.$6,
5510
16);
5511
return [red,
5512
green,
5513
blue];
5514
},
5515
hex3StringToRgb:function(value){if(this.isHex3String(value)){return this.__hex3StringToRgb(value);
5516
}throw new Error("Invalid hex3 value: "+value);
5517
},
5518
hex6StringToRgb:function(value){if(this.isHex6String(value)){return this.__hex6StringToRgb(value);
5519
}throw new Error("Invalid hex6 value: "+value);
5520
},
5521
hexStringToRgb:function(value){if(this.isHex3String(value)){return this.__hex3StringToRgb(value);
5522
}
5523
if(this.isHex6String(value)){return this.__hex6StringToRgb(value);
5524
}throw new Error("Invalid hex value: "+value);
5525
},
5526
rgbToHsb:function(rgb){var hue,
5527
saturation,
5528
brightness;
5529
var red=rgb[0];
5530
var green=rgb[1];
5531
var blue=rgb[2];
5532
var cmax=(red>green)?red:green;
5533
if(blue>cmax){cmax=blue;
5534
}var cmin=(red<green)?red:green;
5535
if(blue<cmin){cmin=blue;
5536
}brightness=cmax/255.0;
5537
if(cmax!=0){saturation=(cmax-cmin)/cmax;
5538
}else{saturation=0;
5539
}
5540
if(saturation==0){hue=0;
5541
}else{var redc=(cmax-red)/(cmax-cmin);
5542
var greenc=(cmax-green)/(cmax-cmin);
5543
var bluec=(cmax-blue)/(cmax-cmin);
5544
if(red==cmax){hue=bluec-greenc;
5545
}else if(green==cmax){hue=2.0+redc-bluec;
5546
}else{hue=4.0+greenc-redc;
5547
}hue=hue/6.0;
5548
if(hue<0){hue=hue+1.0;
5549
}}return [Math.round(hue*360),
5550
Math.round(saturation*100),
5551
Math.round(brightness*100)];
5552
},
5553
hsbToRgb:function(hsb){var i,
5554
f,
5555
p,
5556
q,
5557
t;
5558
var hue=hsb[0]/360;
5559
var saturation=hsb[1]/100;
5560
var brightness=hsb[2]/100;
5561
if(hue>=1.0){hue%=1.0;
5562
}
5563
if(saturation>1.0){saturation=1.0;
5564
}
5565
if(brightness>1.0){brightness=1.0;
5566
}var tov=Math.floor(255*brightness);
5567
var rgb={};
5568
if(saturation==0.0){rgb.red=rgb.green=rgb.blue=tov;
5569
}else{hue*=6.0;
5570
i=Math.floor(hue);
5571
f=hue-i;
5572
p=Math.floor(tov*(1.0-saturation));
5573
q=Math.floor(tov*(1.0-(saturation*f)));
5574
t=Math.floor(tov*(1.0-(saturation*(1.0-f))));
5575
switch(i){case 0:rgb.red=tov;
5576
rgb.green=t;
5577
rgb.blue=p;
5578
break;
5579
case 1:rgb.red=q;
5580
rgb.green=tov;
5581
rgb.blue=p;
5582
break;
5583
case 2:rgb.red=p;
5584
rgb.green=tov;
5585
rgb.blue=t;
5586
break;
5587
case 3:rgb.red=p;
5588
rgb.green=q;
5589
rgb.blue=tov;
5590
break;
5591
case 4:rgb.red=t;
5592
rgb.green=p;
5593
rgb.blue=tov;
5594
break;
5595
case 5:rgb.red=tov;
5596
rgb.green=p;
5597
rgb.blue=q;
5598
break;
5599
}}return rgb;
5600
},
5601
randomColor:function(){var r=Math.round(Math.random()*255);
5602
var g=Math.round(Math.random()*255);
5603
var b=Math.round(Math.random()*255);
5604
return this.rgbToRgbString([r,
5605
g,
5606
b]);
5607
}}});
5608
5609
5610
5611
5612
/* ID: qx.theme.manager.Meta */
5613
qx.Class.define("qx.theme.manager.Meta",
5614
{type:"singleton",
5615
extend:qx.core.Target,
5616
properties:{theme:{check:"Theme",
5617
nullable:true,
5618
apply:"_applyTheme",
5619
event:"changeTheme"},
5620
autoSync:{check:"Boolean",
5621
init:true,
5622
apply:"_applyAutoSync"}},
5623
members:{_applyTheme:function(value,
5624
old){var color=null;
5625
var border=null;
5626
var font=null;
5627
var widget=null;
5628
var icon=null;
5629
var appearance=null;
5630
if(value){color=value.meta.color||null;
5631
border=value.meta.border||null;
5632
font=value.meta.font||null;
5633
widget=value.meta.widget||null;
5634
icon=value.meta.icon||null;
5635
appearance=value.meta.appearance||null;
5636
}
5637
if(old){this.setAutoSync(false);
5638
}var colorMgr=qx.theme.manager.Color.getInstance();
5639
var borderMgr=qx.theme.manager.Border.getInstance();
5640
var fontMgr=qx.theme.manager.Font.getInstance();
5641
var iconMgr=qx.theme.manager.Icon.getInstance();
5642
var widgetMgr=qx.theme.manager.Widget.getInstance();
5643
var appearanceMgr=qx.theme.manager.Appearance.getInstance();
5644
colorMgr.setColorTheme(color);
5645
borderMgr.setBorderTheme(border);
5646
fontMgr.setFontTheme(font);
5647
widgetMgr.setWidgetTheme(widget);
5648
iconMgr.setIconTheme(icon);
5649
appearanceMgr.setAppearanceTheme(appearance);
5650
if(old){this.setAutoSync(true);
5651
}},
5652
_applyAutoSync:function(value,
5653
old){if(value){qx.theme.manager.Appearance.getInstance().syncAppearanceTheme();
5654
qx.theme.manager.Icon.getInstance().syncIconTheme();
5655
qx.theme.manager.Widget.getInstance().syncWidgetTheme();
5656
qx.theme.manager.Font.getInstance().syncFontTheme();
5657
qx.theme.manager.Border.getInstance().syncBorderTheme();
5658
qx.theme.manager.Color.getInstance().syncColorTheme();
5659
}},
5660
initialize:function(){var setting=qx.core.Setting;
5661
var theme,
5662
obj;
5663
theme=setting.get("qx.theme");
5664
if(theme){obj=qx.Theme.getByName(theme);
5665
if(!obj){throw new Error("The meta theme to use is not available: "+theme);
5666
}this.setTheme(obj);
5667
}theme=setting.get("qx.colorTheme");
5668
if(theme){obj=qx.Theme.getByName(theme);
5669
if(!obj){throw new Error("The color theme to use is not available: "+theme);
5670
}qx.theme.manager.Color.getInstance().setColorTheme(obj);
5671
}theme=setting.get("qx.borderTheme");
5672
if(theme){obj=qx.Theme.getByName(theme);
5673
if(!obj){throw new Error("The border theme to use is not available: "+theme);
5674
}qx.theme.manager.Border.getInstance().setBorderTheme(obj);
5675
}theme=setting.get("qx.fontTheme");
5676
if(theme){obj=qx.Theme.getByName(theme);
5677
if(!obj){throw new Error("The font theme to use is not available: "+theme);
5678
}qx.theme.manager.Font.getInstance().setFontTheme(obj);
5679
}theme=setting.get("qx.widgetTheme");
5680
if(theme){obj=qx.Theme.getByName(theme);
5681
if(!obj){throw new Error("The widget theme to use is not available: "+theme);
5682
}qx.theme.manager.Widget.getInstance().setWidgetTheme(obj);
5683
}theme=setting.get("qx.iconTheme");
5684
if(theme){obj=qx.Theme.getByName(theme);
5685
if(!obj){throw new Error("The icon theme to use is not available: "+theme);
5686
}qx.theme.manager.Icon.getInstance().setIconTheme(obj);
5687
}theme=setting.get("qx.appearanceTheme");
5688
if(theme){obj=qx.Theme.getByName(theme);
5689
if(!obj){throw new Error("The appearance theme to use is not available: "+theme);
5690
}qx.theme.manager.Appearance.getInstance().setAppearanceTheme(obj);
5691
}},
5692
__queryThemes:function(key){var reg=qx.Theme.getAll();
5693
var theme;
5694
var list=[];
5695
for(var name in reg){theme=reg[name];
5696
if(theme[key]){list.push(theme);
5697
}}return list;
5698
},
5699
getMetaThemes:function(){return this.__queryThemes("meta");
5700
},
5701
getColorThemes:function(){return this.__queryThemes("colors");
5702
},
5703
getBorderThemes:function(){return this.__queryThemes("borders");
5704
},
5705
getFontThemes:function(){return this.__queryThemes("fonts");
5706
},
5707
getWidgetThemes:function(){return this.__queryThemes("widgets");
5708
},
5709
getIconThemes:function(){return this.__queryThemes("icons");
5710
},
5711
getAppearanceThemes:function(){return this.__queryThemes("appearances");
5712
}},
5713
settings:{"qx.theme":"qx.theme.ClassicRoyale",
5714
"qx.colorTheme":null,
5715
"qx.borderTheme":null,
5716
"qx.fontTheme":null,
5717
"qx.widgetTheme":null,
5718
"qx.appearanceTheme":null,
5719
"qx.iconTheme":null}});
5720
5721
5722
5723
5724
/* ID: qx.theme.manager.Border */
5725
qx.Class.define("qx.theme.manager.Border",
5726
{type:"singleton",
5727
extend:qx.util.manager.Value,
5728
properties:{borderTheme:{check:"Theme",
5729
nullable:true,
5730
apply:"_applyBorderTheme",
5731
event:"changeBorderTheme"}},
5732
members:{resolveDynamic:function(value){return value instanceof qx.ui.core.Border?value:this._dynamic[value];
5733
},
5734
isDynamic:function(value){return value&&(value instanceof qx.ui.core.Border||this._dynamic[value]!==undefined);
5735
},
5736
syncBorderTheme:function(){this._updateObjects();
5737
},
5738
updateObjectsEdge:function(border,
5739
edge){var reg=this._registry;
5740
var dynamics=this._dynamic;
5741
var entry;
5742
for(var key in reg){entry=reg[key];
5743
if(entry.value===border||dynamics[entry.value]===border){entry.callback.call(entry.object,
5744
border,
5745
edge);
5746
}}},
5747
_applyBorderTheme:function(value){var dest=this._dynamic;
5748
for(var key in dest){if(dest[key].themed){dest[key].dispose();
5749
delete dest[key];
5750
}}
5751
if(value){var source=value.borders;
5752
var border=qx.ui.core.Border;
5753
for(var key in source){dest[key]=(new border).set(source[key]);
5754
dest[key].themed=true;
5755
}}
5756
if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncBorderTheme();
5757
}}}});
5758
5759
5760
5761
5762
/* ID: qx.ui.core.Border */
5763
qx.Class.define("qx.ui.core.Border",
5764
{extend:qx.core.Object,
5765
construct:function(width,
5766
style,
5767
color){this.base(arguments);
5768
if(width!==undefined){this.setWidth(width);
5769
}
5770
if(style!==undefined){this.setStyle(style);
5771
}
5772
if(color!==undefined){this.setColor(color);
5773
}},
5774
statics:{fromString:function(str){var border=new qx.ui.core.Border;
5775
var parts=str.split(/\s+/);
5776
var part,
5777
temp;
5778
for(var i=0,
5779
l=parts.length;i<l;i++){part=parts[i];
5780
switch(part){case "groove":case "ridge":case "inset":case "outset":case "solid":case "dotted":case "dashed":case "double":case "none":border.setStyle(part);
5781
break;
5782
default:temp=parseInt(part);
5783
if(temp===part||qx.lang.String.contains(part,
5784
"px")){border.setWidth(temp);
5785
}else{border.setColor(part);
5786
}break;
5787
}}return border;
5788
},
5789
fromConfig:function(config){var border=new qx.ui.core.Border;
5790
border.set(config);
5791
return border;
5792
},
5793
resetTop:qx.core.Variant.select("qx.client",
5794
{"gecko":function(widget){var style=widget._style;
5795
if(style){style.borderTopWidth=style.borderTopStyle=style.borderTopColor=style.MozBorderTopColors="";
5796
}},
5797
"default":function(widget){var style=widget._style;
5798
if(style){style.borderTopWidth=style.borderTopStyle=style.borderTopColor="";
5799
}style=widget._innerStyle;
5800
if(style){style.borderTopWidth=style.borderTopStyle=style.borderTopColor="";
5801
}}}),
5802
resetRight:qx.core.Variant.select("qx.client",
5803
{"gecko":function(widget){var style=widget._style;
5804
if(style){style.borderRightWidth=style.borderRightStyle=style.borderRightColor=style.MozBorderRightColors="";
5805
}},
5806
"default":function(widget){var style=widget._style;
5807
if(style){style.borderRightWidth=style.borderRightStyle=style.borderRightColor="";
5808
}style=widget._innerStyle;
5809
if(style){style.borderRightWidth=style.borderRightStyle=style.borderRightColor="";
5810
}}}),
5811
resetBottom:qx.core.Variant.select("qx.client",
5812
{"gecko":function(widget){var style=widget._style;
5813
if(style){style.borderBottomWidth=style.borderBottomStyle=style.borderBottomColor=style.MozBorderBottomColors="";
5814
}},
5815
"default":function(widget){var style=widget._style;
5816
if(style){style.borderBottomWidth=style.borderBottomStyle=style.borderBottomColor="";
5817
}style=widget._innerStyle;
5818
if(style){style.borderBottomWidth=style.borderBottomStyle=style.borderBottomColor="";
5819
}}}),
5820
resetLeft:qx.core.Variant.select("qx.client",
5821
{"gecko":function(widget){var style=widget._style;
5822
if(style){style.borderLeftWidth=style.borderLeftStyle=style.borderLeftColor=style.MozBorderLeftColors="";
5823
}},
5824
"default":function(widget){var style=widget._style;
5825
if(style){style.borderLeftWidth=style.borderLeftStyle=style.borderLeftColor="";
5826
}style=widget._innerStyle;
5827
if(style){style.borderLeftWidth=style.borderLeftStyle=style.borderLeftColor="";
5828
}}})},
5829
properties:{widthTop:{check:"Number",
5830
init:0,
5831
apply:"_applyWidthTop"},
5832
widthRight:{check:"Number",
5833
init:0,
5834
apply:"_applyWidthRight"},
5835
widthBottom:{check:"Number",
5836
init:0,
5837
apply:"_applyWidthBottom"},
5838
widthLeft:{check:"Number",
5839
init:0,
5840
apply:"_applyWidthLeft"},
5841
styleTop:{nullable:true,
5842
check:["solid",
5843
"dotted",
5844
"dashed",
5845
"double",
5846
"outset",
5847
"inset",
5848
"ridge",
5849
"groove"],
5850
init:"solid",
5851
apply:"_applyStyleTop"},
5852
styleRight:{nullable:true,
5853
check:["solid",
5854
"dotted",
5855
"dashed",
5856
"double",
5857
"outset",
5858
"inset",
5859
"ridge",
5860
"groove"],
5861
init:"solid",
5862
apply:"_applyStyleRight"},
5863
styleBottom:{nullable:true,
5864
check:["solid",
5865
"dotted",
5866
"dashed",
5867
"double",
5868
"outset",
5869
"inset",
5870
"ridge",
5871
"groove"],
5872
init:"solid",
5873
apply:"_applyStyleBottom"},
5874
styleLeft:{nullable:true,
5875
check:["solid",
5876
"dotted",
5877
"dashed",
5878
"double",
5879
"outset",
5880
"inset",
5881
"ridge",
5882
"groove"],
5883
init:"solid",
5884
apply:"_applyStyleLeft"},
5885
colorTop:{nullable:true,
5886
check:"Color",
5887
apply:"_applyColorTop"},
5888
colorRight:{nullable:true,
5889
check:"Color",
5890
apply:"_applyColorRight"},
5891
colorBottom:{nullable:true,
5892
check:"Color",
5893
apply:"_applyColorBottom"},
5894
colorLeft:{nullable:true,
5895
check:"Color",
5896
apply:"_applyColorLeft"},
5897
colorInnerTop:{nullable:true,
5898
check:"Color",
5899
apply:"_applyColorInnerTop"},
5900
colorInnerRight:{nullable:true,
5901
check:"Color",
5902
apply:"_applyColorInnerRight"},
5903
colorInnerBottom:{nullable:true,
5904
check:"Color",
5905
apply:"_applyColorInnerBottom"},
5906
colorInnerLeft:{nullable:true,
5907
check:"Color",
5908
apply:"_applyColorInnerLeft"},
5909
left:{group:["widthLeft",
5910
"styleLeft",
5911
"colorLeft"]},
5912
right:{group:["widthRight",
5913
"styleRight",
5914
"colorRight"]},
5915
top:{group:["widthTop",
5916
"styleTop",
5917
"colorTop"]},
5918
bottom:{group:["widthBottom",
5919
"styleBottom",
5920
"colorBottom"]},
5921
width:{group:["widthTop",
5922
"widthRight",
5923
"widthBottom",
5924
"widthLeft"],
5925
mode:"shorthand"},
5926
style:{group:["styleTop",
5927
"styleRight",
5928
"styleBottom",
5929
"styleLeft"],
5930
mode:"shorthand"},
5931
color:{group:["colorTop",
5932
"colorRight",
5933
"colorBottom",
5934
"colorLeft"],
5935
mode:"shorthand"},
5936
innerColor:{group:["colorInnerTop",
5937
"colorInnerRight",
5938
"colorInnerBottom",
5939
"colorInnerLeft"],
5940
mode:"shorthand"}},
5941
members:{_applyWidthTop:function(value,
5942
old){this.__widthTop=value==null?"0px":value+"px";
5943
this.__computeComplexTop();
5944
this.__informManager("top");
5945
},
5946
_applyWidthRight:function(value,
5947
old){this.__widthRight=value==null?"0px":value+"px";
5948
this.__computeComplexRight();
5949
this.__informManager("right");
5950
},
5951
_applyWidthBottom:function(value,
5952
old){this.__widthBottom=value==null?"0px":value+"px";
5953
this.__computeComplexBottom();
5954
this.__informManager("bottom");
5955
},
5956
_applyWidthLeft:function(value,
5957
old){this.__widthLeft=value==null?"0px":value+"px";
5958
this.__computeComplexLeft();
5959
this.__informManager("left");
5960
},
5961
_applyColorTop:function(value,
5962
old){qx.theme.manager.Color.getInstance().connect(this._changeColorTop,
5963
this,
5964
value);
5965
},
5966
_applyColorRight:function(value,
5967
old){qx.theme.manager.Color.getInstance().connect(this._changeColorRight,
5968
this,
5969
value);
5970
},
5971
_applyColorBottom:function(value,
5972
old){qx.theme.manager.Color.getInstance().connect(this._changeColorBottom,
5973
this,
5974
value);
5975
},
5976
_applyColorLeft:function(value,
5977
old){qx.theme.manager.Color.getInstance().connect(this._changeColorLeft,
5978
this,
5979
value);
5980
},
5981
_applyColorInnerTop:function(value,
5982
old){qx.theme.manager.Color.getInstance().connect(this._changeColorInnerTop,
5983
this,
5984
value);
5985
},
5986
_applyColorInnerRight:function(value,
5987
old){qx.theme.manager.Color.getInstance().connect(this._changeColorInnerRight,
5988
this,
5989
value);
5990
},
5991
_applyColorInnerBottom:function(value,
5992
old){qx.theme.manager.Color.getInstance().connect(this._changeColorInnerBottom,
5993
this,
5994
value);
5995
},
5996
_applyColorInnerLeft:function(value,
5997
old){qx.theme.manager.Color.getInstance().connect(this._changeColorInnerLeft,
5998
this,
5999
value);
6000
},
6001
_applyStyleTop:function(){this.__informManager("top");
6002
},
6003
_applyStyleRight:function(){this.__informManager("right");
6004
},
6005
_applyStyleBottom:function(){this.__informManager("bottom");
6006
},
6007
_applyStyleLeft:function(){this.__informManager("left");
6008
},
6009
_changeColorTop:function(value){this.__colorTop=value;
6010
this.__computeComplexTop();
6011
this.__informManager("top");
6012
},
6013
_changeColorInnerTop:function(value){this.__colorInnerTop=value;
6014
this.__computeComplexTop();
6015
this.__informManager("top");
6016
},
6017
_changeColorRight:function(value){this.__colorRight=value;
6018
this.__computeComplexRight();
6019
this.__informManager("right");
6020
},
6021
_changeColorInnerRight:function(value){this.__colorInnerRight=value;
6022
this.__computeComplexRight();
6023
this.__informManager("right");
6024
},
6025
_changeColorBottom:function(value){this.__colorBottom=value;
6026
this.__computeComplexBottom();
6027
this.__informManager("bottom");
6028
},
6029
_changeColorInnerBottom:function(value){this.__colorInnerBottom=value;
6030
this.__computeComplexBottom();
6031
this.__informManager("bottom");
6032
},
6033
_changeColorLeft:function(value){this.__colorLeft=value;
6034
this.__computeComplexLeft();
6035
this.__informManager("left");
6036
},
6037
_changeColorInnerLeft:function(value){this.__colorInnerLeft=value;
6038
this.__computeComplexLeft();
6039
this.__informManager("left");
6040
},
6041
__computeComplexTop:function(){this.__complexTop=this.getWidthTop()===2&&this.__colorInnerTop!=null&&this.__colorTop!=this.__colorInnerTop;
6042
},
6043
__computeComplexRight:function(){this.__complexRight=this.getWidthRight()===2&&this.__colorInnerRight!=null&&this.__colorRight!=this.__colorInnerRight;
6044
},
6045
__computeComplexBottom:function(){this.__complexBottom=this.getWidthBottom()===2&&this.__colorInnerBottom!=null&&this.__colorBottom!=this.__colorInnerBottom;
6046
},
6047
__computeComplexLeft:function(){this.__complexLeft=this.getWidthLeft()===2&&this.__colorInnerLeft!=null&&this.__colorLeft!=this.__colorInnerLeft;
6048
},
6049
__informManager:function(edge){qx.theme.manager.Border.getInstance().updateObjectsEdge(this,
6050
edge);
6051
},
6052
renderTop:qx.core.Variant.select("qx.client",
6053
{"gecko":function(obj){var style=obj._style;
6054
style.borderTopWidth=this.__widthTop||"0px";
6055
style.borderTopColor=this.__colorTop||"";
6056
if(this.__complexTop){style.borderTopStyle="solid";
6057
style.MozBorderTopColors=this.__colorTop+" "+this.__colorInnerTop;
6058
}else{style.borderTopStyle=this.getStyleTop()||"none";
6059
style.MozBorderTopColors="";
6060
}},
6061
"default":function(obj){var outer=obj._style;
6062
var inner=obj._innerStyle;
6063
if(this.__complexTop){if(!inner){obj.prepareEnhancedBorder();
6064
inner=obj._innerStyle;
6065
}outer.borderTopWidth=inner.borderTopWidth="1px";
6066
outer.borderTopStyle=inner.borderTopStyle="solid";
6067
outer.borderTopColor=this.__colorTop;
6068
inner.borderTopColor=this.__colorInnerTop;
6069
}else{outer.borderTopWidth=this.__widthTop||"0px";
6070
outer.borderTopStyle=this.getStyleTop()||"none";
6071
outer.borderTopColor=this.__colorTop||"";
6072
if(inner){inner.borderTopWidth=inner.borderTopStyle=inner.borderTopColor="";
6073
}}}}),
6074
renderRight:qx.core.Variant.select("qx.client",
6075
{"gecko":function(obj){var style=obj._style;
6076
style.borderRightWidth=this.__widthRight||"0px";
6077
style.borderRightColor=this.__colorRight||"";
6078
if(this.__complexRight){style.borderRightStyle="solid";
6079
style.MozBorderRightColors=this.__colorRight+" "+this.__colorInnerRight;
6080
}else{style.borderRightStyle=this.getStyleRight()||"none";
6081
style.MozBorderRightColors="";
6082
}},
6083
"default":function(obj){var outer=obj._style;
6084
var inner=obj._innerStyle;
6085
if(this.__complexRight){if(!inner){obj.prepareEnhancedBorder();
6086
inner=obj._innerStyle;
6087
}outer.borderRightWidth=inner.borderRightWidth="1px";
6088
outer.borderRightStyle=inner.borderRightStyle="solid";
6089
outer.borderRightColor=this.__colorRight;
6090
inner.borderRightColor=this.__colorInnerRight;
6091
}else{outer.borderRightWidth=this.__widthRight||"0px";
6092
outer.borderRightStyle=this.getStyleRight()||"none";
6093
outer.borderRightColor=this.__colorRight||"";
6094
if(inner){inner.borderRightWidth=inner.borderRightStyle=inner.borderRightColor="";
6095
}}}}),
6096
renderBottom:qx.core.Variant.select("qx.client",
6097
{"gecko":function(obj){var style=obj._style;
6098
style.borderBottomWidth=this.__widthBottom||"0px";
6099
style.borderBottomColor=this.__colorBottom||"";
6100
if(this.__complexBottom){style.borderBottomStyle="solid";
6101
style.MozBorderBottomColors=this.__colorBottom+" "+this.__colorInnerBottom;
6102
}else{style.borderBottomStyle=this.getStyleBottom()||"none";
6103
style.MozBorderBottomColors="";
6104
}},
6105
"default":function(obj){var outer=obj._style;
6106
var inner=obj._innerStyle;
6107
if(this.__complexBottom){if(!inner){obj.prepareEnhancedBorder();
6108
inner=obj._innerStyle;
6109
}outer.borderBottomWidth=inner.borderBottomWidth="1px";
6110
outer.borderBottomStyle=inner.borderBottomStyle="solid";
6111
outer.borderBottomColor=this.__colorBottom;
6112
inner.borderBottomColor=this.__colorInnerBottom;
6113
}else{outer.borderBottomWidth=this.__widthBottom||"0px";
6114
outer.borderBottomStyle=this.getStyleBottom()||"none";
6115
outer.borderBottomColor=this.__colorBottom||"";
6116
if(inner){inner.borderBottomWidth=inner.borderBottomStyle=inner.borderBottomColor="";
6117
}}}}),
6118
renderLeft:qx.core.Variant.select("qx.client",
6119
{"gecko":function(obj){var style=obj._style;
6120
style.borderLeftWidth=this.__widthLeft||"0px";
6121
style.borderLeftColor=this.__colorLeft||"";
6122
if(this.__complexLeft){style.borderLeftStyle="solid";
6123
style.MozBorderLeftColors=this.__colorLeft+" "+this.__colorInnerLeft;
6124
}else{style.borderLeftStyle=this.getStyleLeft()||"none";
6125
style.MozBorderLeftColors="";
6126
}},
6127
"default":function(obj){var outer=obj._style;
6128
var inner=obj._innerStyle;
6129
if(this.__complexLeft){if(!inner){obj.prepareEnhancedBorder();
6130
inner=obj._innerStyle;
6131
}outer.borderLeftWidth=inner.borderLeftWidth="1px";
6132
outer.borderLeftStyle=inner.borderLeftStyle="solid";
6133
outer.borderLeftColor=this.__colorLeft;
6134
inner.borderLeftColor=this.__colorInnerLeft;
6135
}else{outer.borderLeftWidth=this.__widthLeft||"0px";
6136
outer.borderLeftStyle=this.getStyleLeft()||"none";
6137
outer.borderLeftColor=this.__colorLeft||"";
6138
if(inner){inner.borderLeftWidth=inner.borderLeftStyle=inner.borderLeftColor="";
6139
}}}})}});
6140
6141
6142
6143
6144
/* ID: qx.theme.manager.Font */
6145
qx.Class.define("qx.theme.manager.Font",
6146
{type:"singleton",
6147
extend:qx.util.manager.Value,
6148
properties:{fontTheme:{check:"Theme",
6149
nullable:true,
6150
apply:"_applyFontTheme",
6151
event:"changeFontTheme"}},
6152
members:{resolveDynamic:function(value){return value instanceof qx.ui.core.Font?value:this._dynamic[value];
6153
},
6154
isDynamic:function(value){return value&&(value instanceof qx.ui.core.Font||this._dynamic[value]!==undefined);
6155
},
6156
syncFontTheme:function(){this._updateObjects();
6157
},
6158
_applyFontTheme:function(value){var dest=this._dynamic;
6159
for(var key in dest){if(dest[key].themed){dest[key].dispose();
6160
delete dest[key];
6161
}}
6162
if(value){var source=value.fonts;
6163
var font=qx.ui.core.Font;
6164
for(var key in source){dest[key]=(new font).set(source[key]);
6165
dest[key].themed=true;
6166
}}
6167
if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncFontTheme();
6168
}}}});
6169
6170
6171
6172
6173
/* ID: qx.ui.core.Font */
6174
qx.Class.define("qx.ui.core.Font",
6175
{extend:qx.core.Object,
6176
construct:function(size,
6177
family){this.base(arguments);
6178
if(size!==undefined){this.setSize(size);
6179
}
6180
if(family!==undefined){this.setFamily(family);
6181
}},
6182
statics:{fromString:function(str){var font=new qx.ui.core.Font;
6183
var parts=str.split(/\s+/);
6184
var name=[];
6185
var part;
6186
for(var i=0;i<parts.length;i++){switch(part=parts[i]){case "bold":font.setBold(true);
6187
break;
6188
case "italic":font.setItalic(true);
6189
break;
6190
case "underline":font.setDecoration("underline");
6191
break;
6192
default:var temp=parseInt(part);
6193
if(temp==part||qx.lang.String.contains(part,
6194
"px")){font.setSize(temp);
6195
}else{name.push(part);
6196
}break;
6197
}}
6198
if(name.length>0){font.setFamily(name);
6199
}return font;
6200
},
6201
fromConfig:function(config){var font=new qx.ui.core.Font;
6202
font.set(config);
6203
return font;
6204
},
6205
reset:function(widget){widget.removeStyleProperty("fontFamily");
6206
widget.removeStyleProperty("fontSize");
6207
widget.removeStyleProperty("fontWeight");
6208
widget.removeStyleProperty("fontStyle");
6209
widget.removeStyleProperty("textDecoration");
6210
},
6211
resetElement:function(element){var style=element.style;
6212
style.fontFamily="";
6213
style.fontSize="";
6214
style.fontWeight="";
6215
style.fontStyle="";
6216
style.textDecoration="";
6217
},
6218
resetStyle:function(style){style.fontFamily="";
6219
style.fontSize="";
6220
style.fontWeight="";
6221
style.fontStyle="";
6222
style.textDecoration="";
6223
}},
6224
properties:{size:{check:"Integer",
6225
nullable:true,
6226
apply:"_applySize"},
6227
family:{check:"Array",
6228
nullable:true,
6229
apply:"_applyFamily"},
6230
bold:{check:"Boolean",
6231
nullable:true,
6232
apply:"_applyBold"},
6233
italic:{check:"Boolean",
6234
nullable:true,
6235
apply:"_applyItalic"},
6236
decoration:{check:["underline",
6237
"line-through",
6238
"overline"],
6239
nullable:true,
6240
apply:"_applyDecoration"}},
6241
members:{__size:null,
6242
__family:null,
6243
__bold:null,
6244
__italic:null,
6245
__decoration:null,
6246
_applySize:function(value,
6247
old){this.__size=value===null?null:value+"px";
6248
},
6249
_applyFamily:function(value,
6250
old){var family="";
6251
for(var i=0,
6252
l=value.length;i<l;i++){if(value[i].indexOf(" ")>0){family+='"'+value[i]+'"';
6253
}else{family+=value[i];
6254
}
6255
if(i!=l-1){family+=",";
6256
}}this.__family=family;
6257
},
6258
_applyBold:function(value,
6259
old){this.__bold=value===null?null:value?"bold":"normal";
6260
},
6261
_applyItalic:function(value,
6262
old){this.__italic=value===null?null:value?"italic":"normal";
6263
},
6264
_applyDecoration:function(value,
6265
old){this.__decoration=value===null?null:value;
6266
},
6267
render:function(widget){widget.setStyleProperty("fontFamily",
6268
this.__family);
6269
widget.setStyleProperty("fontSize",
6270
this.__size);
6271
widget.setStyleProperty("fontWeight",
6272
this.__bold);
6273
widget.setStyleProperty("fontStyle",
6274
this.__italic);
6275
widget.setStyleProperty("textDecoration",
6276
this.__decoration);
6277
},
6278
renderStyle:function(style){style.fontFamily=this.__family||"";
6279
style.fontSize=this.__size||"";
6280
style.fontWeight=this.__bold||"";
6281
style.fontStyle=this.__italic||"";
6282
style.textDecoration=this.__decoration||"";
6283
},
6284
renderElement:function(element){var style=element.style;
6285
style.fontFamily=this.__family||"";
6286
style.fontSize=this.__size||"";
6287
style.fontWeight=this.__bold||"";
6288
style.fontStyle=this.__italic||"";
6289
style.textDecoration=this.__decoration||"";
6290
},
6291
generateStyle:function(){return (this.__family?"font-family:"+this.__family.replace(/\"/g,
6292
"'")+";":"")+(this.__size?"font-size:"+this.__size+";":"")+(this.__weight?"font-weight:"+this.__weight+";":"")+(this.__style?"font-style:"+this.__style+";":"")+(this.__decoration?"text-decoration:"+this.__decoration+";":"");
6293
}}});
6294
6295
6296
6297
6298
/* ID: qx.theme.manager.Icon */
6299
qx.Class.define("qx.theme.manager.Icon",
6300
{type:"singleton",
6301
extend:qx.core.Target,
6302
properties:{iconTheme:{check:"Theme",
6303
nullable:true,
6304
apply:"_applyIconTheme",
6305
event:"changeIconTheme"}},
6306
members:{_applyIconTheme:function(value,
6307
old){if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncIconTheme();
6308
}},
6309
syncIconTheme:function(){var value=this.getIconTheme();
6310
var alias=qx.io.Alias.getInstance();
6311
value?alias.add("icon",
6312
value.icons.uri):alias.remove("icon");
6313
}}});
6314
6315
6316
6317
6318
/* ID: qx.io.Alias */
6319
qx.Class.define("qx.io.Alias",
6320
{type:"singleton",
6321
extend:qx.util.manager.Value,
6322
construct:function(){this.base(arguments);
6323
this._aliases={};
6324
this.add("static",
6325
qx.core.Setting.get("qx.resourceUri")+"/static");
6326
},
6327
members:{_preprocess:function(value){var dynamics=this._dynamic;
6328
if(dynamics[value]===false){return value;
6329
}else if(dynamics[value]===undefined){if(value.charAt(0)==="/"||value.charAt(0)==="."||value.indexOf("http://")===0||value.indexOf("https://")==="0"||value.indexOf("file://")===0){dynamics[value]=false;
6330
return value;
6331
}var alias=value.substring(0,
6332
value.indexOf("/"));
6333
var resolved=this._aliases[alias];
6334
if(resolved!==undefined){dynamics[value]=resolved+value.substring(alias.length);
6335
}}return value;
6336
},
6337
add:function(alias,
6338
base){this._aliases[alias]=base;
6339
var dynamics=this._dynamic;
6340
var reg=this._registry;
6341
var entry;
6342
var paths={};
6343
for(var path in dynamics){if(path.substring(0,
6344
path.indexOf("/"))===alias){dynamics[path]=base+path.substring(alias.length);
6345
paths[path]=true;
6346
}}for(var key in reg){entry=reg[key];
6347
if(paths[entry.value]){entry.callback.call(entry.object,
6348
dynamics[entry.value]);
6349
}}},
6350
remove:function(alias){delete this._aliases[alias];
6351
},
6352
resolve:function(path){if(path!==null){path=this._preprocess(path);
6353
}return this._dynamic[path]||path;
6354
}},
6355
destruct:function(){this._disposeFields("_aliases");
6356
}});
6357
6358
6359
6360
6361
/* ID: qx.theme.manager.Widget */
6362
qx.Class.define("qx.theme.manager.Widget",
6363
{type:"singleton",
6364
extend:qx.core.Target,
6365
properties:{widgetTheme:{check:"Theme",
6366
nullable:true,
6367
apply:"_applyWidgetTheme",
6368
event:"changeWidgetTheme"}},
6369
members:{_applyWidgetTheme:function(value,
6370
old){if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncWidgetTheme();
6371
}},
6372
syncWidgetTheme:function(){var value=this.getWidgetTheme();
6373
var alias=qx.io.Alias.getInstance();
6374
value?alias.add("widget",
6375
value.widgets.uri):alias.remove("widget");
6376
}}});
6377
6378
6379
6380
6381
/* ID: qx.util.manager.Object */
6382
qx.Class.define("qx.util.manager.Object",
6383
{extend:qx.core.Target,
6384
construct:function(){this.base(arguments);
6385
this._objects={};
6386
},
6387
members:{add:function(vObject){if(this.getDisposed()){return;
6388
}this._objects[vObject.toHashCode()]=vObject;
6389
},
6390
remove:function(vObject){if(this.getDisposed()){return false;
6391
}delete this._objects[vObject.toHashCode()];
6392
},
6393
has:function(vObject){return this._objects[vObject.toHashCode()]!=null;
6394
},
6395
get:function(vObject){return this._objects[vObject.toHashCode()];
6396
},
6397
getAll:function(){return this._objects;
6398
},
6399
enableAll:function(){for(var vHashCode in this._objects){this._objects[vHashCode].setEnabled(true);
6400
}},
6401
disableAll:function(){for(var vHashCode in this._objects){this._objects[vHashCode].setEnabled(false);
6402
}}},
6403
destruct:function(){this._disposeObjectDeep("_objects");
6404
}});
6405
6406
6407
6408
6409
/* ID: qx.theme.manager.Appearance */
6410
qx.Class.define("qx.theme.manager.Appearance",
6411
{type:"singleton",
6412
extend:qx.util.manager.Object,
6413
construct:function(){this.base(arguments);
6414
this.__cache={};
6415
this.__stateMap={};
6416
this.__stateMapLength=1;
6417
},
6418
properties:{appearanceTheme:{check:"Theme",
6419
nullable:true,
6420
apply:"_applyAppearanceTheme",
6421
event:"changeAppearanceTheme"}},
6422
members:{_applyAppearanceTheme:function(value,
6423
old){this._currentTheme=value;
6424
this._oldTheme=old;
6425
if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncAppearanceTheme();
6426
}},
6427
syncAppearanceTheme:function(){if(!this._currentTheme&&!this._oldTheme){return;
6428
}
6429
if(this._currentTheme){this.__cache[this._currentTheme.name]={};
6430
}var app=qx.core.Init.getInstance().getApplication();
6431
if(app&&app.getUiReady()){qx.ui.core.ClientDocument.getInstance()._recursiveAppearanceThemeUpdate(this._currentTheme,
6432
this._oldTheme);
6433
}
6434
if(this._oldTheme){delete this.__cache[this._oldTheme.name];
6435
}delete this._currentTheme;
6436
delete this._oldTheme;
6437
},
6438
styleFrom:function(id,
6439
states){var theme=this.getAppearanceTheme();
6440
if(!theme){return;
6441
}return this.styleFromTheme(theme,
6442
id,
6443
states);
6444
},
6445
styleFromTheme:function(theme,
6446
id,
6447
states){var entry=theme.appearances[id];
6448
if(!entry){{this.warn("Missing appearance entry: "+id);
6449
};
6450
return null;
6451
}if(!entry.style){if(entry.include){return this.styleFromTheme(theme,
6452
entry.include,
6453
states);
6454
}else{return null;
6455
}}var map=this.__stateMap;
6456
var helper=[id];
6457
for(var state in states){if(!map[state]){map[state]=this.__stateMapLength++;
6458
}helper[map[state]]=true;
6459
}var unique=helper.join();
6460
var cache=this.__cache[theme.name];
6461
if(cache&&cache[unique]!==undefined){return cache[unique];
6462
}var result;
6463
if(entry.include||entry.base){var local=entry.style(states);
6464
var incl;
6465
if(entry.include){incl=this.styleFromTheme(theme,
6466
entry.include,
6467
states);
6468
}result={};
6469
if(entry.base){var base=this.styleFromTheme(entry.base,
6470
id,
6471
states);
6472
if(entry.include){for(var key in base){if(incl[key]===undefined&&local[key]===undefined){result[key]=base[key];
6473
}}}else{for(var key in base){if(local[key]===undefined){result[key]=base[key];
6474
}}}}if(entry.include){for(var key in incl){if(local[key]===undefined){result[key]=incl[key];
6475
}}}for(var key in local){result[key]=local[key];
6476
}}else{result=entry.style(states);
6477
}if(cache){cache[unique]=result||null;
6478
}return result||null;
6479
}},
6480
destruct:function(){this._disposeFields("__cache",
6481
"__stateMap");
6482
}});
6483
6484
6485
6486
6487
/* ID: qx.ui.core.Widget */
6488
qx.Class.define("qx.ui.core.Widget",
6489
{extend:qx.core.Target,
6490
type:"abstract",
6491
construct:function(){this.base(arguments);
6492
this._layoutChanges={};
6493
if(qx.core.Setting.get("qx.widgetDebugId")){this._generateHtmlId();
6494
}},
6495
events:{"beforeAppear":"qx.event.type.Event",
6496
"appear":"qx.event.type.Event",
6497
"beforeDisappear":"qx.event.type.Event",
6498
"disappear":"qx.event.type.Event",
6499
"beforeInsertDom":"qx.event.type.Event",
6500
"insertDom":"qx.event.type.Event",
6501
"beforeRemoveDom":"qx.event.type.Event",
6502
"removeDom":"qx.event.type.Event",
6503
"create":"qx.event.type.Event",
6504
"execute":"qx.event.type.Event",
6505
"mouseover":"qx.event.type.MouseEvent",
6506
"mousemove":"qx.event.type.MouseEvent",
6507
"mouseout":"qx.event.type.MouseEvent",
6508
"mousedown":"qx.event.type.MouseEvent",
6509
"mouseup":"qx.event.type.MouseEvent",
6510
"mousewheel":"qx.event.type.MouseEvent",
6511
"click":"qx.event.type.MouseEvent",
6512
"dblclick":"qx.event.type.MouseEvent",
6513
"contextmenu":"qx.event.type.MouseEvent",
6514
"keydown":"qx.event.type.KeyEvent",
6515
"keypress":"qx.event.type.KeyEvent",
6516
"keyinput":"qx.event.type.KeyEvent",
6517
"keyup":"qx.event.type.KeyEvent",
6518
"focusout":"qx.event.type.FocusEvent",
6519
"focusin":"qx.event.type.FocusEvent",
6520
"blur":"qx.event.type.FocusEvent",
6521
"focus":"qx.event.type.FocusEvent",
6522
"dragdrop":"qx.event.type.DragEvent",
6523
"dragout":"qx.event.type.DragEvent",
6524
"dragover":"qx.event.type.DragEvent",
6525
"dragmove":"qx.event.type.DragEvent",
6526
"dragstart":"qx.event.type.DragEvent",
6527
"dragend":"qx.event.type.DragEvent"},
6528
statics:{create:function(clazz,
6529
appearance){clazz._appearance=appearance;
6530
return new clazz;
6531
},
6532
SCROLLBAR_SIZE:null,
6533
_autoFlushTimeout:null,
6534
_initAutoFlush:function(){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._autoFlushTimeout=window.setTimeout(qx.ui.core.Widget._autoFlushHelper,
6535
0);
6536
}},
6537
_removeAutoFlush:function(){if(qx.ui.core.Widget._autoFlushTimeout!=null){window.clearTimeout(qx.ui.core.Widget._autoFlushTimeout);
6538
qx.ui.core.Widget._autoFlushTimeout=null;
6539
}},
6540
_autoFlushHelper:function(){qx.ui.core.Widget._autoFlushTimeout=null;
6541
if(!qx.core.Object.inGlobalDispose()){qx.ui.core.Widget.flushGlobalQueues();
6542
}},
6543
flushGlobalQueues:function(){if(qx.ui.core.Widget._autoFlushTimeout!=null){qx.ui.core.Widget._removeAutoFlush();
6544
}
6545
if(qx.ui.core.Widget._inFlushGlobalQueues){return;
6546
}var app=qx.core.Init.getInstance().getApplication();
6547
if(app.getUiReady&&!app.getUiReady()){return;
6548
}qx.ui.core.Widget._inFlushGlobalQueues=true;
6549
qx.ui.core.Widget.flushGlobalWidgetQueue();
6550
qx.ui.core.Widget.flushGlobalStateQueue();
6551
qx.ui.core.Widget.flushGlobalElementQueue();
6552
qx.ui.core.Widget.flushGlobalJobQueue();
6553
qx.ui.core.Widget.flushGlobalLayoutQueue();
6554
qx.ui.core.Widget.flushGlobalDisplayQueue();
6555
delete qx.ui.core.Widget._inFlushGlobalQueues;
6556
},
6557
_globalWidgetQueue:[],
6558
addToGlobalWidgetQueue:function(vWidget){if(!vWidget._isInGlobalWidgetQueue&&vWidget._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();
6559
}qx.ui.core.Widget._globalWidgetQueue.push(vWidget);
6560
vWidget._isInGlobalWidgetQueue=true;
6561
}},
6562
removeFromGlobalWidgetQueue:function(vWidget){if(vWidget._isInGlobalWidgetQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalWidgetQueue,
6563
vWidget);
6564
delete vWidget._isInGlobalWidgetQueue;
6565
}},
6566
flushGlobalWidgetQueue:function(){var vQueue=qx.ui.core.Widget._globalWidgetQueue,
6567
vLength,
6568
vWidget;
6569
while((vLength=vQueue.length)>0){for(var i=0;i<vLength;i++){vWidget=vQueue[i];
6570
vWidget.flushWidgetQueue();
6571
delete vWidget._isInGlobalWidgetQueue;
6572
}vQueue.splice(0,
6573
vLength);
6574
}},
6575
_globalElementQueue:[],
6576
addToGlobalElementQueue:function(vWidget){if(!vWidget._isInGlobalElementQueue&&vWidget._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();
6577
}qx.ui.core.Widget._globalElementQueue.push(vWidget);
6578
vWidget._isInGlobalElementQueue=true;
6579
}},
6580
removeFromGlobalElementQueue:function(vWidget){if(vWidget._isInGlobalElementQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalElementQueue,
6581
vWidget);
6582
delete vWidget._isInGlobalElementQueue;
6583
}},
6584
flushGlobalElementQueue:function(){var vQueue=qx.ui.core.Widget._globalElementQueue,
6585
vLength,
6586
vWidget;
6587
while((vLength=vQueue.length)>0){for(var i=0;i<vLength;i++){vWidget=vQueue[i];
6588
vWidget._createElementImpl();
6589
delete vWidget._isInGlobalElementQueue;
6590
}vQueue.splice(0,
6591
vLength);
6592
}},
6593
_globalStateQueue:[],
6594
addToGlobalStateQueue:function(vWidget){if(!vWidget._isInGlobalStateQueue&&vWidget._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();
6595
}qx.ui.core.Widget._globalStateQueue.push(vWidget);
6596
vWidget._isInGlobalStateQueue=true;
6597
}},
6598
removeFromGlobalStateQueue:function(vWidget){if(vWidget._isInGlobalStateQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalStateQueue,
6599
vWidget);
6600
delete vWidget._isInGlobalStateQueue;
6601
}},
6602
flushGlobalStateQueue:function(){var vQueue=qx.ui.core.Widget._globalStateQueue,
6603
vLength,
6604
vWidget;
6605
while((vLength=vQueue.length)>0){for(var i=0;i<vLength;i++){vWidget=vQueue[i];
6606
vWidget._renderAppearance();
6607
delete vWidget._isInGlobalStateQueue;
6608
}vQueue.splice(0,
6609
vLength);
6610
}},
6611
_globalJobQueue:[],
6612
addToGlobalJobQueue:function(vWidget){if(!vWidget._isInGlobalJobQueue&&vWidget._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();
6613
}qx.ui.core.Widget._globalJobQueue.push(vWidget);
6614
vWidget._isInGlobalJobQueue=true;
6615
}},
6616
removeFromGlobalJobQueue:function(vWidget){if(vWidget._isInGlobalJobQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalJobQueue,
6617
vWidget);
6618
delete vWidget._isInGlobalJobQueue;
6619
}},
6620
flushGlobalJobQueue:function(){var vQueue=qx.ui.core.Widget._globalJobQueue,
6621
vLength,
6622
vWidget;
6623
while((vLength=vQueue.length)>0){for(var i=0;i<vLength;i++){vWidget=vQueue[i];
6624
vWidget._flushJobQueue(vWidget._jobQueue);
6625
delete vWidget._isInGlobalJobQueue;
6626
}vQueue.splice(0,
6627
vLength);
6628
}},
6629
_globalLayoutQueue:[],
6630
addToGlobalLayoutQueue:function(vParent){if(!vParent._isInGlobalLayoutQueue&&vParent._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();
6631
}qx.ui.core.Widget._globalLayoutQueue.push(vParent);
6632
vParent._isInGlobalLayoutQueue=true;
6633
}},
6634
removeFromGlobalLayoutQueue:function(vParent){if(vParent._isInGlobalLayoutQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalLayoutQueue,
6635
vParent);
6636
delete vParent._isInGlobalLayoutQueue;
6637
}},
6638
flushGlobalLayoutQueue:function(){var vQueue=qx.ui.core.Widget._globalLayoutQueue,
6639
vLength,
6640
vParent;
6641
while((vLength=vQueue.length)>0){for(var i=0;i<vLength;i++){vParent=vQueue[i];
6642
vParent._flushChildrenQueue();
6643
delete vParent._isInGlobalLayoutQueue;
6644
}vQueue.splice(0,
6645
vLength);
6646
}},
6647
_fastGlobalDisplayQueue:[],
6648
_lazyGlobalDisplayQueues:{},
6649
addToGlobalDisplayQueue:function(vWidget){if(!vWidget._isInGlobalDisplayQueue&&vWidget._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();
6650
}var vParent=vWidget.getParent();
6651
if(vParent.isSeeable()){var vKey=vParent.toHashCode();
6652
if(qx.ui.core.Widget._lazyGlobalDisplayQueues[vKey]){qx.ui.core.Widget._lazyGlobalDisplayQueues[vKey].push(vWidget);
6653
}else{qx.ui.core.Widget._lazyGlobalDisplayQueues[vKey]=[vWidget];
6654
}}else{qx.ui.core.Widget._fastGlobalDisplayQueue.push(vWidget);
6655
}vWidget._isInGlobalDisplayQueue=true;
6656
}},
6657
removeFromGlobalDisplayQueue:function(vWidget){},
6658
flushGlobalDisplayQueue:function(){var vKey,
6659
vLazyQueue,
6660
vWidget,
6661
vFragment;
6662
var vFastQueue=qx.ui.core.Widget._fastGlobalDisplayQueue;
6663
var vLazyQueues=qx.ui.core.Widget._lazyGlobalDisplayQueues;
6664
for(var i=0,
6665
l=vFastQueue.length;i<l;i++){vWidget=vFastQueue[i];
6666
vWidget.getParent()._getTargetNode().appendChild(vWidget.getElement());
6667
}if(qx.Class.isDefined("qx.ui.basic.Inline")){for(vKey in vLazyQueues){vLazyQueue=vLazyQueues[vKey];
6668
for(var i=0;i<vLazyQueue.length;i++){vWidget=vLazyQueue[i];
6669
if(vWidget instanceof qx.ui.basic.Inline){vWidget._beforeInsertDom();
6670
try{document.getElementById(vWidget.getInlineNodeId()).appendChild(vWidget.getElement());
6671
}catch(ex){vWidget.debug("Could not append to inline id: "+vWidget.getInlineNodeId(),
6672
ex);
6673
}vWidget._afterInsertDom();
6674
vWidget._afterAppear();
6675
qx.lang.Array.remove(vLazyQueue,
6676
vWidget);
6677
i--;
6678
delete vWidget._isInGlobalDisplayQueue;
6679
}}}}for(vKey in vLazyQueues){vLazyQueue=vLazyQueues[vKey];
6680
if(document.createDocumentFragment&&vLazyQueue.length>=3){vFragment=document.createDocumentFragment();
6681
for(var i=0,
6682
l=vLazyQueue.length;i<l;i++){vWidget=vLazyQueue[i];
6683
vWidget._beforeInsertDom();
6684
vFragment.appendChild(vWidget.getElement());
6685
}vLazyQueue[0].getParent()._getTargetNode().appendChild(vFragment);
6686
for(var i=0,
6687
l=vLazyQueue.length;i<l;i++){vWidget=vLazyQueue[i];
6688
vWidget._afterInsertDom();
6689
}}else{for(var i=0,
6690
l=vLazyQueue.length;i<l;i++){vWidget=vLazyQueue[i];
6691
vWidget._beforeInsertDom();
6692
vWidget.getParent()._getTargetNode().appendChild(vWidget.getElement());
6693
vWidget._afterInsertDom();
6694
}}}for(vKey in vLazyQueues){vLazyQueue=vLazyQueues[vKey];
6695
for(var i=0,
6696
l=vLazyQueue.length;i<l;i++){vWidget=vLazyQueue[i];
6697
if(vWidget.getVisibility()){vWidget._afterAppear();
6698
}delete vWidget._isInGlobalDisplayQueue;
6699
}delete vLazyQueues[vKey];
6700
}for(var i=0,
6701
l=vFastQueue.length;i<l;i++){delete vFastQueue[i]._isInGlobalDisplayQueue;
6702
}qx.lang.Array.removeAll(vFastQueue);
6703
},
6704
getActiveSiblingHelperIgnore:function(vIgnoreClasses,
6705
vInstance){for(var j=0;j<vIgnoreClasses.length;j++){if(vInstance instanceof vIgnoreClasses[j]){return true;
6706
}}return false;
6707
},
6708
getActiveSiblingHelper:function(vObject,
6709
vParent,
6710
vCalc,
6711
vIgnoreClasses,
6712
vMode){if(!vIgnoreClasses){vIgnoreClasses=[];
6713
}var vChilds=vParent.getChildren();
6714
var vPosition=vMode==null?vChilds.indexOf(vObject)+vCalc:vMode==="first"?0:vChilds.length-1;
6715
var vInstance=vChilds[vPosition];
6716
while(vInstance&&(!vInstance.getEnabled()||qx.ui.core.Widget.getActiveSiblingHelperIgnore(vIgnoreClasses,
6717
vInstance))){vPosition+=vCalc;
6718
vInstance=vChilds[vPosition];
6719
if(!vInstance){return null;
6720
}}return vInstance;
6721
},
6722
__initApplyMethods:function(members){var applyRuntime="_renderRuntime";
6723
var resetRuntime="_resetRuntime";
6724
var style="this._style.";
6725
var cssValue="=((v==null)?0:v)+'px'";
6726
var parameter="v";
6727
var properties=["left",
6728
"right",
6729
"top",
6730
"bottom",
6731
"width",
6732
"height",
6733
"minWidth",
6734
"maxWidth",
6735
"minHeight",
6736
"maxHeight"];
6737
var propertiesUpper=["Left",
6738
"Right",
6739
"Top",
6740
"Bottom",
6741
"Width",
6742
"Height",
6743
"MinWidth",
6744
"MaxWidth",
6745
"MinHeight",
6746
"MaxHeight"];
6747
var applyMargin=applyRuntime+"Margin";
6748
var resetMargin=resetRuntime+"Margin";
6749
var styleMargin=style+"margin";
6750
for(var i=0;i<4;i++){members[applyMargin+propertiesUpper[i]]=new Function(parameter,
6751
styleMargin+propertiesUpper[i]+cssValue);
6752
members[resetMargin+propertiesUpper[i]]=new Function(styleMargin+propertiesUpper[i]+"=''");
6753
}var applyPadding=applyRuntime+"Padding";
6754
var resetPadding=resetRuntime+"Padding";
6755
var stylePadding=style+"padding";
6756
if(qx.core.Variant.isSet("qx.client",
6757
"gecko")){for(var i=0;i<4;i++){members[applyPadding+propertiesUpper[i]]=new Function(parameter,
6758
stylePadding+propertiesUpper[i]+cssValue);
6759
members[resetPadding+propertiesUpper[i]]=new Function(stylePadding+propertiesUpper[i]+"=''");
6760
}}else{for(var i=0;i<4;i++){members[applyPadding+propertiesUpper[i]]=new Function(parameter,
6761
"this.setStyleProperty('padding"+propertiesUpper[i]+"', ((v==null)?0:v)+'px')");
6762
members[resetPadding+propertiesUpper[i]]=new Function("this.removeStyleProperty('padding"+propertiesUpper[i]+"')");
6763
}}for(var i=0;i<properties.length;i++){members[applyRuntime+propertiesUpper[i]]=new Function(parameter,
6764
style+properties[i]+cssValue);
6765
members[resetRuntime+propertiesUpper[i]]=new Function(style+properties[i]+"=''");
6766
}},
6767
TYPE_NULL:0,
6768
TYPE_PIXEL:1,
6769
TYPE_PERCENT:2,
6770
TYPE_AUTO:3,
6771
TYPE_FLEX:4,
6772
layoutPropertyTypes:{},
6773
__initLayoutProperties:function(statics){var a=["width",
6774
"height",
6775
"minWidth",
6776
"maxWidth",
6777
"minHeight",
6778
"maxHeight",
6779
"left",
6780
"right",
6781
"top",
6782
"bottom"];
6783
for(var i=0,
6784
l=a.length,
6785
p,
6786
b,
6787
t;i<l;i++){p=a[i];
6788
b="_computed"+qx.lang.String.toFirstUp(p);
6789
t=b+"Type";
6790
statics.layoutPropertyTypes[p]={dataType:t,
6791
dataParsed:b+"Parsed",
6792
dataValue:b+"Value",
6793
typePixel:t+"Pixel",
6794
typePercent:t+"Percent",
6795
typeAuto:t+"Auto",
6796
typeFlex:t+"Flex",
6797
typeNull:t+"Null"};
6798
}},
6799
initScrollbarWidth:function(){var t=document.createElement("div");
6800
var s=t.style;
6801
s.height=s.width="100px";
6802
s.overflow="scroll";
6803
document.body.appendChild(t);
6804
var c=qx.html.Dimension.getScrollBarSizeRight(t);
6805
qx.ui.core.Widget.SCROLLBAR_SIZE=c?c:16;
6806
document.body.removeChild(t);
6807
},
6808
_idCounter:0},
6809
properties:{enabled:{init:"inherit",
6810
check:"Boolean",
6811
inheritable:true,
6812
apply:"_applyEnabled",
6813
event:"changeEnabled"},
6814
parent:{check:"qx.ui.core.Parent",
6815
nullable:true,
5105
nullable:true,
6816
event:"changeParent",
5106
event:"changeParent",
6817
apply:"_applyParent"},
5107
apply:"_applyParent"},
Lines 7214-10527 Link Here
7214
value);
5504
value);
7215
this.addToQueue("left");
5505
this.addToQueue("left");
7216
},
5506
},
7217
_applyRight:function(value,
5507
_applyRight:function(value,
7218
old){this._unitDetectionPixelPercent("right",
5508
old){this._unitDetectionPixelPercent("right",
7219
value);
5509
value);
7220
this.addToQueue("right");
5510
this.addToQueue("right");
5511
},
5512
_applyTop:function(value,
5513
old){this._unitDetectionPixelPercent("top",
5514
value);
5515
this.addToQueue("top");
5516
},
5517
_applyBottom:function(value,
5518
old){this._unitDetectionPixelPercent("bottom",
5519
value);
5520
this.addToQueue("bottom");
5521
},
5522
_applyWidth:function(value,
5523
old){this._unitDetectionPixelPercentAutoFlex("width",
5524
value);
5525
this.addToQueue("width");
5526
},
5527
_applyMinWidth:function(value,
5528
old){this._unitDetectionPixelPercentAuto("minWidth",
5529
value);
5530
this.addToQueue("minWidth");
5531
},
5532
_applyMaxWidth:function(value,
5533
old){this._unitDetectionPixelPercentAuto("maxWidth",
5534
value);
5535
this.addToQueue("maxWidth");
5536
},
5537
_applyHeight:function(value,
5538
old){this._unitDetectionPixelPercentAutoFlex("height",
5539
value);
5540
this.addToQueue("height");
5541
},
5542
_applyMinHeight:function(value,
5543
old){this._unitDetectionPixelPercentAuto("minHeight",
5544
value);
5545
this.addToQueue("minHeight");
5546
},
5547
_applyMaxHeight:function(value,
5548
old){this._unitDetectionPixelPercentAuto("maxHeight",
5549
value);
5550
this.addToQueue("maxHeight");
5551
},
5552
isMaterialized:function(){var elem=this._element;
5553
return (this._initialLayoutDone&&this._isDisplayable&&qx.html.Style.getStyleProperty(elem,
5554
"display")!="none"&&qx.html.Style.getStyleProperty(elem,
5555
"visibility")!="hidden"&&elem.offsetWidth>0&&elem.offsetHeight>0);
5556
},
5557
pack:function(){this.setWidth(this.getPreferredBoxWidth());
5558
this.setHeight(this.getPreferredBoxHeight());
5559
},
5560
auto:function(){this.setWidth("auto");
5561
this.setHeight("auto");
5562
},
5563
getChildren:qx.lang.Function.returnNull,
5564
getChildrenLength:qx.lang.Function.returnZero,
5565
hasChildren:qx.lang.Function.returnFalse,
5566
isEmpty:qx.lang.Function.returnTrue,
5567
indexOf:qx.lang.Function.returnNegativeIndex,
5568
contains:qx.lang.Function.returnFalse,
5569
getVisibleChildren:qx.lang.Function.returnNull,
5570
getVisibleChildrenLength:qx.lang.Function.returnZero,
5571
hasVisibleChildren:qx.lang.Function.returnFalse,
5572
isVisibleEmpty:qx.lang.Function.returnTrue,
5573
_hasParent:false,
5574
_isDisplayable:false,
5575
isDisplayable:function(){return this._isDisplayable;
5576
},
5577
_checkParent:function(value,
5578
old){if(this.contains(value)){throw new Error("Could not insert myself into a child "+value+"!");
5579
}return value;
5580
},
5581
_applyParent:function(value,
5582
old){if(old){var vOldIndex=old.getChildren().indexOf(this);
5583
this._computedWidthValue=this._computedMinWidthValue=this._computedMaxWidthValue=this._computedLeftValue=this._computedRightValue=null;
5584
this._computedHeightValue=this._computedMinHeightValue=this._computedMaxHeightValue=this._computedTopValue=this._computedBottomValue=null;
5585
this._cachedBoxWidth=this._cachedInnerWidth=this._cachedOuterWidth=null;
5586
this._cachedBoxHeight=this._cachedInnerHeight=this._cachedOuterHeight=null;
5587
qx.lang.Array.removeAt(old.getChildren(),
5588
vOldIndex);
5589
old._invalidateVisibleChildren();
5590
old._removeChildFromChildrenQueue(this);
5591
old.getLayoutImpl().updateChildrenOnRemoveChild(this,
5592
vOldIndex);
5593
old.addToJobQueue("removeChild");
5594
old._invalidatePreferredInnerDimensions();
5595
this._oldParent=old;
5596
}
5597
if(value){this._hasParent=true;
5598
if(typeof this._insertIndex=="number"){qx.lang.Array.insertAt(value.getChildren(),
5599
this,
5600
this._insertIndex);
5601
delete this._insertIndex;
5602
}else{value.getChildren().push(this);
5603
}}else{this._hasParent=false;
5604
}qx.core.Property.refresh(this);
5605
return this._handleDisplayable("parent");
5606
},
5607
_applyDisplay:function(value,
5608
old){return this._handleDisplayable("display");
5609
},
5610
_handleDisplayable:function(vHint){var vDisplayable=this._computeDisplayable();
5611
if(this._isDisplayable==vDisplayable&&!(vDisplayable&&vHint=="parent")){return true;
5612
}this._isDisplayable=vDisplayable;
5613
var vParent=this.getParent();
5614
if(vParent){vParent._invalidateVisibleChildren();
5615
vParent._invalidatePreferredInnerDimensions();
5616
}if(vHint&&this._oldParent&&this._oldParent._initialLayoutDone){var elem=this.getElement();
5617
if(elem){if(this.getVisibility()){this._beforeDisappear();
5618
}this._beforeRemoveDom();
5619
try{this._oldParent._getTargetNode().removeChild(elem);
5620
}catch(e){}this._afterRemoveDom();
5621
if(this.getVisibility()){this._afterDisappear();
5622
}}delete this._oldParent;
5623
}if(vDisplayable){if(vParent._initialLayoutDone){vParent.getLayoutImpl().updateChildrenOnAddChild(this,
5624
vParent.getChildren().indexOf(this));
5625
vParent.addToJobQueue("addChild");
5626
}this.addToLayoutChanges("initial");
5627
this.addToCustomQueues(vHint);
5628
if(this.getVisibility()){this._beforeAppear();
5629
}if(!this._isCreated){qx.ui.core.Widget.addToGlobalElementQueue(this);
5630
}qx.ui.core.Widget.addToGlobalStateQueue(this);
5631
if(!qx.lang.Object.isEmpty(this._jobQueue)){qx.ui.core.Widget.addToGlobalJobQueue(this);
5632
}
5633
if(!qx.lang.Object.isEmpty(this._childrenQueue)){qx.ui.core.Widget.addToGlobalLayoutQueue(this);
5634
}}else{qx.ui.core.Widget.removeFromGlobalElementQueue(this);
5635
qx.ui.core.Widget.removeFromGlobalStateQueue(this);
5636
qx.ui.core.Widget.removeFromGlobalJobQueue(this);
5637
qx.ui.core.Widget.removeFromGlobalLayoutQueue(this);
5638
this.removeFromCustomQueues(vHint);
5639
if(vParent&&vHint){if(this.getVisibility()){this._beforeDisappear();
5640
}if(vParent._initialLayoutDone&&this._initialLayoutDone){vParent.getLayoutImpl().updateChildrenOnRemoveChild(this,
5641
vParent.getChildren().indexOf(this));
5642
vParent.addToJobQueue("removeChild");
5643
this._beforeRemoveDom();
5644
var parentNode=this.getElement().parentNode;
5645
if(parentNode){parentNode.removeChild(this.getElement());
5646
if(parentNode&&parentNode!==vParent._getTargetNode()){this.warn("Unexpected parent node: "+parentNode);
5647
}}this._afterRemoveDom();
5648
}vParent._removeChildFromChildrenQueue(this);
5649
if(this.getVisibility()){this._afterDisappear();
5650
}}}this._handleDisplayableCustom(vDisplayable,
5651
vParent,
5652
vHint);
5653
return true;
5654
},
5655
addToCustomQueues:qx.lang.Function.returnTrue,
5656
removeFromCustomQueues:qx.lang.Function.returnTrue,
5657
_handleDisplayableCustom:qx.lang.Function.returnTrue,
5658
_computeDisplayable:function(){return this.getDisplay()&&this.getParent()&&this.getParent()._isDisplayable?true:false;
5659
},
5660
_beforeAppear:function(){this.createDispatchEvent("beforeAppear");
5661
},
5662
_afterAppear:function(){this._isSeeable=true;
5663
this.createDispatchEvent("appear");
5664
},
5665
_beforeDisappear:function(){this.removeState("over");
5666
if(qx.Class.isDefined("qx.ui.form.Button")){this.removeState("pressed");
5667
this.removeState("abandoned");
5668
}this.createDispatchEvent("beforeDisappear");
5669
},
5670
_afterDisappear:function(){this._isSeeable=false;
5671
this.createDispatchEvent("disappear");
5672
},
5673
_isSeeable:false,
5674
isSeeable:function(){return this._isSeeable;
5675
},
5676
isAppearRelevant:function(){return this.getVisibility()&&this._isDisplayable;
5677
},
5678
_beforeInsertDom:function(){this.createDispatchEvent("beforeInsertDom");
5679
},
5680
_afterInsertDom:function(){this.createDispatchEvent("insertDom");
5681
},
5682
_beforeRemoveDom:function(){this.createDispatchEvent("beforeRemoveDom");
5683
},
5684
_afterRemoveDom:function(){this.createDispatchEvent("removeDom");
5685
},
5686
_applyVisibility:function(value,
5687
old){if(value){if(this._isDisplayable){this._beforeAppear();
5688
}this.removeStyleProperty("display");
5689
if(this._isDisplayable){this._afterAppear();
5690
}}else{if(this._isDisplayable){this._beforeDisappear();
5691
}this.setStyleProperty("display",
5692
"none");
5693
if(this._isDisplayable){this._afterDisappear();
5694
}}},
5695
show:function(){this.setVisibility(true);
5696
this.setDisplay(true);
5697
},
5698
hide:function(){this.setVisibility(false);
5699
},
5700
connect:function(){this.setDisplay(true);
5701
},
5702
disconnect:function(){this.setDisplay(false);
5703
},
5704
_isCreated:false,
5705
_getTargetNode:qx.core.Variant.select("qx.client",
5706
{"gecko":function(){return this._element;
5707
},
5708
"default":function(){return this._borderElement||this._element;
5709
}}),
5710
addToDocument:function(){qx.ui.core.ClientDocument.getInstance().add(this);
5711
},
5712
isCreated:function(){return this._isCreated;
5713
},
5714
_createElementImpl:function(){this.setElement(this.getTopLevelWidget().getDocumentElement().createElement("div"));
5715
},
5716
_applyElement:function(value,
5717
old){this._isCreated=value!=null;
5718
if(old){old.qx_Widget=null;
5719
}
5720
if(value){value.qx_Widget=this;
5721
value.style.position="absolute";
5722
this._element=value;
5723
this._style=value.style;
5724
this._applyStyleProperties(value);
5725
this._applyHtmlProperties(value);
5726
this._applyHtmlAttributes(value);
5727
this._applyElementData(value);
5728
this.createDispatchEvent("create");
5729
this.addToStateQueue();
5730
}else{this._element=this._style=null;
5731
}},
5732
addToJobQueue:function(p){if(this._hasParent){qx.ui.core.Widget.addToGlobalJobQueue(this);
5733
}
5734
if(!this._jobQueue){this._jobQueue={};
5735
}this._jobQueue[p]=true;
5736
return true;
5737
},
5738
_flushJobQueue:function(q){try{var vQueue=this._jobQueue;
5739
var vParent=this.getParent();
5740
if(!vParent||qx.lang.Object.isEmpty(vQueue)){return;
5741
}var vLayoutImpl=this instanceof qx.ui.core.Parent?this.getLayoutImpl():null;
5742
if(vLayoutImpl){vLayoutImpl.updateSelfOnJobQueueFlush(vQueue);
5743
}}catch(ex){this.error("Flushing job queue (prechecks#1) failed",
5744
ex);
5745
}try{var vFlushParentJobQueue=false;
5746
var vRecomputeOuterWidth=vQueue.marginLeft||vQueue.marginRight;
5747
var vRecomputeOuterHeight=vQueue.marginTop||vQueue.marginBottom;
5748
var vRecomputeInnerWidth=vQueue.frameWidth;
5749
var vRecomputeInnerHeight=vQueue.frameHeight;
5750
var vRecomputeParentPreferredInnerWidth=(vQueue.frameWidth||vQueue.preferredInnerWidth)&&this._recomputePreferredBoxWidth();
5751
var vRecomputeParentPreferredInnerHeight=(vQueue.frameHeight||vQueue.preferredInnerHeight)&&this._recomputePreferredBoxHeight();
5752
if(vRecomputeParentPreferredInnerWidth){var vPref=this.getPreferredBoxWidth();
5753
if(this._computedWidthTypeAuto){this._computedWidthValue=vPref;
5754
vQueue.width=true;
5755
}
5756
if(this._computedMinWidthTypeAuto){this._computedMinWidthValue=vPref;
5757
vQueue.minWidth=true;
5758
}
5759
if(this._computedMaxWidthTypeAuto){this._computedMaxWidthValue=vPref;
5760
vQueue.maxWidth=true;
5761
}}
5762
if(vRecomputeParentPreferredInnerHeight){var vPref=this.getPreferredBoxHeight();
5763
if(this._computedHeightTypeAuto){this._computedHeightValue=vPref;
5764
vQueue.height=true;
5765
}
5766
if(this._computedMinHeightTypeAuto){this._computedMinHeightValue=vPref;
5767
vQueue.minHeight=true;
5768
}
5769
if(this._computedMaxHeightTypeAuto){this._computedMaxHeightValue=vPref;
5770
vQueue.maxHeight=true;
5771
}}
5772
if((vQueue.width||vQueue.minWidth||vQueue.maxWidth||vQueue.left||vQueue.right)&&this._recomputeBoxWidth()){vRecomputeOuterWidth=vRecomputeInnerWidth=true;
5773
}
5774
if((vQueue.height||vQueue.minHeight||vQueue.maxHeight||vQueue.top||vQueue.bottom)&&this._recomputeBoxHeight()){vRecomputeOuterHeight=vRecomputeInnerHeight=true;
5775
}}catch(ex){this.error("Flushing job queue (recompute#2) failed",
5776
ex);
5777
}try{if((vRecomputeOuterWidth&&this._recomputeOuterWidth())||vRecomputeParentPreferredInnerWidth){vParent._invalidatePreferredInnerWidth();
5778
vParent.getLayoutImpl().updateSelfOnChildOuterWidthChange(this);
5779
vFlushParentJobQueue=true;
5780
}
5781
if((vRecomputeOuterHeight&&this._recomputeOuterHeight())||vRecomputeParentPreferredInnerHeight){vParent._invalidatePreferredInnerHeight();
5782
vParent.getLayoutImpl().updateSelfOnChildOuterHeightChange(this);
5783
vFlushParentJobQueue=true;
5784
}
5785
if(vFlushParentJobQueue){vParent._flushJobQueue();
5786
}}catch(ex){this.error("Flushing job queue (parentsignals#3) failed",
5787
ex);
5788
}try{vParent._addChildToChildrenQueue(this);
5789
for(var i in vQueue){this._layoutChanges[i]=true;
5790
}}catch(ex){this.error("Flushing job queue (addjobs#4) failed",
5791
ex);
5792
}try{if(this instanceof qx.ui.core.Parent&&(vQueue.paddingLeft||vQueue.paddingRight||vQueue.paddingTop||vQueue.paddingBottom)){var ch=this.getChildren(),
5793
chl=ch.length;
5794
if(vQueue.paddingLeft){for(var i=0;i<chl;i++){ch[i].addToLayoutChanges("parentPaddingLeft");
5795
}}
5796
if(vQueue.paddingRight){for(var i=0;i<chl;i++){ch[i].addToLayoutChanges("parentPaddingRight");
5797
}}
5798
if(vQueue.paddingTop){for(var i=0;i<chl;i++){ch[i].addToLayoutChanges("parentPaddingTop");
5799
}}
5800
if(vQueue.paddingBottom){for(var i=0;i<chl;i++){ch[i].addToLayoutChanges("parentPaddingBottom");
5801
}}}
5802
if(vRecomputeInnerWidth){this._recomputeInnerWidth();
5803
}
5804
if(vRecomputeInnerHeight){this._recomputeInnerHeight();
5805
}
5806
if(this._initialLayoutDone){if(vLayoutImpl){vLayoutImpl.updateChildrenOnJobQueueFlush(vQueue);
5807
}}}catch(ex){this.error("Flushing job queue (childrensignals#5) failed",
5808
ex);
5809
}delete this._jobQueue;
5810
},
5811
_isWidthEssential:qx.lang.Function.returnTrue,
5812
_isHeightEssential:qx.lang.Function.returnTrue,
5813
_computeBoxWidthFallback:function(){return 0;
5814
},
5815
_computeBoxHeightFallback:function(){return 0;
5816
},
5817
_computeBoxWidth:function(){var vLayoutImpl=this.getParent().getLayoutImpl();
5818
return Math.max(0,
5819
qx.lang.Number.limit(vLayoutImpl.computeChildBoxWidth(this),
5820
this.getMinWidthValue(),
5821
this.getMaxWidthValue()));
5822
},
5823
_computeBoxHeight:function(){var vLayoutImpl=this.getParent().getLayoutImpl();
5824
return Math.max(0,
5825
qx.lang.Number.limit(vLayoutImpl.computeChildBoxHeight(this),
5826
this.getMinHeightValue(),
5827
this.getMaxHeightValue()));
5828
},
5829
_computeOuterWidth:function(){return Math.max(0,
5830
(this.getMarginLeft()+this.getBoxWidth()+this.getMarginRight()));
5831
},
5832
_computeOuterHeight:function(){return Math.max(0,
5833
(this.getMarginTop()+this.getBoxHeight()+this.getMarginBottom()));
5834
},
5835
_computeInnerWidth:function(){return Math.max(0,
5836
this.getBoxWidth()-this.getFrameWidth());
5837
},
5838
_computeInnerHeight:function(){return Math.max(0,
5839
this.getBoxHeight()-this.getFrameHeight());
5840
},
5841
getNeededWidth:function(){var vLayoutImpl=this.getParent().getLayoutImpl();
5842
return Math.max(0,
5843
vLayoutImpl.computeChildNeededWidth(this));
5844
},
5845
getNeededHeight:function(){var vLayoutImpl=this.getParent().getLayoutImpl();
5846
return Math.max(0,
5847
vLayoutImpl.computeChildNeededHeight(this));
5848
},
5849
_recomputeFlexX:function(){if(!this.getHasFlexX()){return false;
5850
}
5851
if(this._computedWidthTypeFlex){this._computedWidthValue=null;
5852
this.addToLayoutChanges("width");
5853
}return true;
5854
},
5855
_recomputeFlexY:function(){if(!this.getHasFlexY()){return false;
5856
}
5857
if(this._computedHeightTypeFlex){this._computedHeightValue=null;
5858
this.addToLayoutChanges("height");
5859
}return true;
7221
},
5860
},
7222
_applyTop:function(value,
5861
_recomputePercentX:function(){if(!this.getHasPercentX()){return false;
7223
old){this._unitDetectionPixelPercent("top",
5862
}
7224
value);
5863
if(this._computedWidthTypePercent){this._computedWidthValue=null;
7225
this.addToQueue("top");
5864
this.addToLayoutChanges("width");
5865
}
5866
if(this._computedMinWidthTypePercent){this._computedMinWidthValue=null;
5867
this.addToLayoutChanges("minWidth");
5868
}
5869
if(this._computedMaxWidthTypePercent){this._computedMaxWidthValue=null;
5870
this.addToLayoutChanges("maxWidth");
5871
}
5872
if(this._computedLeftTypePercent){this._computedLeftValue=null;
5873
this.addToLayoutChanges("left");
5874
}
5875
if(this._computedRightTypePercent){this._computedRightValue=null;
5876
this.addToLayoutChanges("right");
5877
}return true;
7226
},
5878
},
7227
_applyBottom:function(value,
5879
_recomputePercentY:function(){if(!this.getHasPercentY()){return false;
7228
old){this._unitDetectionPixelPercent("bottom",
5880
}
7229
value);
5881
if(this._computedHeightTypePercent){this._computedHeightValue=null;
7230
this.addToQueue("bottom");
5882
this.addToLayoutChanges("height");
5883
}
5884
if(this._computedMinHeightTypePercent){this._computedMinHeightValue=null;
5885
this.addToLayoutChanges("minHeight");
5886
}
5887
if(this._computedMaxHeightTypePercent){this._computedMaxHeightValue=null;
5888
this.addToLayoutChanges("maxHeight");
5889
}
5890
if(this._computedTopTypePercent){this._computedTopValue=null;
5891
this.addToLayoutChanges("top");
5892
}
5893
if(this._computedBottomTypePercent){this._computedBottomValue=null;
5894
this.addToLayoutChanges("bottom");
5895
}return true;
7231
},
5896
},
7232
_applyWidth:function(value,
5897
_recomputeRangeX:qx.core.Variant.select("qx.client",
7233
old){this._unitDetectionPixelPercentAutoFlex("width",
5898
{"mshtml|opera|webkit":function(){if(this._computedLeftTypeNull||this._computedRightTypeNull){return false;
7234
value);
5899
}this.addToLayoutChanges("width");
7235
this.addToQueue("width");
5900
return true;
7236
},
5901
},
7237
_applyMinWidth:function(value,
5902
"default":function(){return !(this._computedLeftTypeNull||this._computedRightTypeNull);
7238
old){this._unitDetectionPixelPercentAuto("minWidth",
5903
}}),
7239
value);
5904
_recomputeRangeY:qx.core.Variant.select("qx.client",
7240
this.addToQueue("minWidth");
5905
{"mshtml|opera|webkit":function(){if(this._computedTopTypeNull||this._computedBottomTypeNull){return false;
5906
}this.addToLayoutChanges("height");
5907
return true;
7241
},
5908
},
7242
_applyMaxWidth:function(value,
5909
"default":function(){return !(this._computedTopTypeNull||this._computedBottomTypeNull);
7243
old){this._unitDetectionPixelPercentAuto("maxWidth",
5910
}}),
7244
value);
5911
_recomputeStretchingX:qx.core.Variant.select("qx.client",
7245
this.addToQueue("maxWidth");
5912
{"mshtml|opera|webkit":function(){if(this.getAllowStretchX()&&this._computedWidthTypeNull){this._computedWidthValue=null;
5913
this.addToLayoutChanges("width");
5914
return true;
5915
}return false;
7246
},
5916
},
7247
_applyHeight:function(value,
5917
"default":function(){if(this.getAllowStretchX()&&this._computedWidthTypeNull){return true;
7248
old){this._unitDetectionPixelPercentAutoFlex("height",
5918
}return false;
7249
value);
5919
}}),
7250
this.addToQueue("height");
5920
_recomputeStretchingY:qx.core.Variant.select("qx.client",
5921
{"mshtml|opera|webkit":function(){if(this.getAllowStretchY()&&this._computedHeightTypeNull){this._computedHeightValue=null;
5922
this.addToLayoutChanges("height");
5923
return true;
5924
}return false;
7251
},
5925
},
7252
_applyMinHeight:function(value,
5926
"default":function(){if(this.getAllowStretchY()&&this._computedHeightTypeNull){return true;
7253
old){this._unitDetectionPixelPercentAuto("minHeight",
5927
}return false;
7254
value);
5928
}}),
7255
this.addToQueue("minHeight");
5929
_computeValuePixel:function(v){return Math.round(v);
7256
},
5930
},
7257
_applyMaxHeight:function(value,
5931
_computeValuePixelLimit:function(v){return Math.max(0,
7258
old){this._unitDetectionPixelPercentAuto("maxHeight",
5932
this._computeValuePixel(v));
7259
value);
7260
this.addToQueue("maxHeight");
7261
},
5933
},
7262
isMaterialized:function(){var elem=this._element;
5934
_computeValuePercentX:function(v){return Math.round(this.getParent().getInnerWidthForChild(this)*v*0.01);
7263
return (this._initialLayoutDone&&this._isDisplayable&&qx.html.Style.getStyleProperty(elem,
7264
"display")!="none"&&qx.html.Style.getStyleProperty(elem,
7265
"visibility")!="hidden"&&elem.offsetWidth>0&&elem.offsetHeight>0);
7266
},
5935
},
7267
pack:function(){this.setWidth(this.getPreferredBoxWidth());
5936
_computeValuePercentXLimit:function(v){return Math.max(0,
7268
this.setHeight(this.getPreferredBoxHeight());
5937
this._computeValuePercentX(v));
7269
},
5938
},
7270
auto:function(){this.setWidth("auto");
5939
_computeValuePercentY:function(v){return Math.round(this.getParent().getInnerHeightForChild(this)*v*0.01);
7271
this.setHeight("auto");
7272
},
5940
},
7273
getChildren:qx.lang.Function.returnNull,
5941
_computeValuePercentYLimit:function(v){return Math.max(0,
7274
getChildrenLength:qx.lang.Function.returnZero,
5942
this._computeValuePercentY(v));
7275
hasChildren:qx.lang.Function.returnFalse,
7276
isEmpty:qx.lang.Function.returnTrue,
7277
indexOf:qx.lang.Function.returnNegativeIndex,
7278
contains:qx.lang.Function.returnFalse,
7279
getVisibleChildren:qx.lang.Function.returnNull,
7280
getVisibleChildrenLength:qx.lang.Function.returnZero,
7281
hasVisibleChildren:qx.lang.Function.returnFalse,
7282
isVisibleEmpty:qx.lang.Function.returnTrue,
7283
_hasParent:false,
7284
_isDisplayable:false,
7285
isDisplayable:function(){return this._isDisplayable;
7286
},
5943
},
7287
_checkParent:function(value,
5944
getWidthValue:function(){if(this._computedWidthValue!=null){return this._computedWidthValue;
7288
old){if(this.contains(value)){throw new Error("Could not insert myself into a child "+value+"!");
5945
}
7289
}return value;
5946
switch(this._computedWidthType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedWidthParsed);
5947
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedWidthParsed);
5948
case qx.ui.core.Widget.TYPE_AUTO:return this._computedWidthValue=this.getPreferredBoxWidth();
5949
case qx.ui.core.Widget.TYPE_FLEX:if(this.getParent().getLayoutImpl().computeChildrenFlexWidth===undefined){throw new Error("Widget "+this+": having horizontal flex size (width="+this.getWidth()+") but parent layout "+this.getParent()+" does not support it");
5950
}this.getParent().getLayoutImpl().computeChildrenFlexWidth();
5951
return this._computedWidthValue=this._computedWidthFlexValue;
5952
}return null;
7290
},
5953
},
7291
_applyParent:function(value,
5954
getMinWidthValue:function(){if(this._computedMinWidthValue!=null){return this._computedMinWidthValue;
7292
old){if(old){var vOldIndex=old.getChildren().indexOf(this);
7293
this._computedWidthValue=this._computedMinWidthValue=this._computedMaxWidthValue=this._computedLeftValue=this._computedRightValue=null;
7294
this._computedHeightValue=this._computedMinHeightValue=this._computedMaxHeightValue=this._computedTopValue=this._computedBottomValue=null;
7295
this._cachedBoxWidth=this._cachedInnerWidth=this._cachedOuterWidth=null;
7296
this._cachedBoxHeight=this._cachedInnerHeight=this._cachedOuterHeight=null;
7297
qx.lang.Array.removeAt(old.getChildren(),
7298
vOldIndex);
7299
old._invalidateVisibleChildren();
7300
old._removeChildFromChildrenQueue(this);
7301
old.getLayoutImpl().updateChildrenOnRemoveChild(this,
7302
vOldIndex);
7303
old.addToJobQueue("removeChild");
7304
old._invalidatePreferredInnerDimensions();
7305
this._oldParent=old;
7306
}
5955
}
7307
if(value){this._hasParent=true;
5956
switch(this._computedMinWidthType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedMinWidthParsed);
7308
if(typeof this._insertIndex=="number"){qx.lang.Array.insertAt(value.getChildren(),
5957
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedMinWidthParsed);
7309
this,
5958
case qx.ui.core.Widget.TYPE_AUTO:return this._computedMinWidthValue=this.getPreferredBoxWidth();
7310
this._insertIndex);
5959
}return null;
7311
delete this._insertIndex;
5960
},
7312
}else{value.getChildren().push(this);
5961
getMaxWidthValue:function(){if(this._computedMaxWidthValue!=null){return this._computedMaxWidthValue;
7313
}}else{this._hasParent=false;
5962
}
7314
}qx.core.Property.refresh(this);
5963
switch(this._computedMaxWidthType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedMaxWidthParsed);
7315
return this._handleDisplayable("parent");
5964
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedMaxWidthParsed);
5965
case qx.ui.core.Widget.TYPE_AUTO:return this._computedMaxWidthValue=this.getPreferredBoxWidth();
5966
}return null;
5967
},
5968
getLeftValue:function(){if(this._computedLeftValue!=null){return this._computedLeftValue;
5969
}
5970
switch(this._computedLeftType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedLeftValue=this._computeValuePixel(this._computedLeftParsed);
5971
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedLeftValue=this._computeValuePercentX(this._computedLeftParsed);
5972
}return null;
5973
},
5974
getRightValue:function(){if(this._computedRightValue!=null){return this._computedRightValue;
5975
}
5976
switch(this._computedRightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedRightValue=this._computeValuePixel(this._computedRightParsed);
5977
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedRightValue=this._computeValuePercentX(this._computedRightParsed);
5978
}return null;
5979
},
5980
getHeightValue:function(){if(this._computedHeightValue!=null){return this._computedHeightValue;
5981
}
5982
switch(this._computedHeightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedHeightValue=this._computeValuePixelLimit(this._computedHeightParsed);
5983
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedHeightValue=this._computeValuePercentYLimit(this._computedHeightParsed);
5984
case qx.ui.core.Widget.TYPE_AUTO:return this._computedHeightValue=this.getPreferredBoxHeight();
5985
case qx.ui.core.Widget.TYPE_FLEX:if(this.getParent().getLayoutImpl().computeChildrenFlexHeight===undefined){throw new Error("Widget "+this+": having vertical flex size (height="+this.getHeight()+") but parent layout "+this.getParent()+" does not support it");
5986
}this.getParent().getLayoutImpl().computeChildrenFlexHeight();
5987
return this._computedHeightValue=this._computedHeightFlexValue;
5988
}return null;
5989
},
5990
getMinHeightValue:function(){if(this._computedMinHeightValue!=null){return this._computedMinHeightValue;
5991
}
5992
switch(this._computedMinHeightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedMinHeightValue=this._computeValuePixelLimit(this._computedMinHeightParsed);
5993
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedMinHeightValue=this._computeValuePercentYLimit(this._computedMinHeightParsed);
5994
case qx.ui.core.Widget.TYPE_AUTO:return this._computedMinHeightValue=this.getPreferredBoxHeight();
5995
}return null;
5996
},
5997
getMaxHeightValue:function(){if(this._computedMaxHeightValue!=null){return this._computedMaxHeightValue;
5998
}
5999
switch(this._computedMaxHeightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedMaxHeightValue=this._computeValuePixelLimit(this._computedMaxHeightParsed);
6000
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedMaxHeightValue=this._computeValuePercentYLimit(this._computedMaxHeightParsed);
6001
case qx.ui.core.Widget.TYPE_AUTO:return this._computedMaxHeightValue=this.getPreferredBoxHeight();
6002
}return null;
6003
},
6004
getTopValue:function(){if(this._computedTopValue!=null){return this._computedTopValue;
6005
}
6006
switch(this._computedTopType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedTopValue=this._computeValuePixel(this._computedTopParsed);
6007
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedTopValue=this._computeValuePercentY(this._computedTopParsed);
6008
}return null;
6009
},
6010
getBottomValue:function(){if(this._computedBottomValue!=null){return this._computedBottomValue;
6011
}
6012
switch(this._computedBottomType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedBottomValue=this._computeValuePixel(this._computedBottomParsed);
6013
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedBottomValue=this._computeValuePercentY(this._computedBottomParsed);
6014
}return null;
6015
},
6016
_computeFrameWidth:function(){var fw=this._cachedBorderLeft+this.getPaddingLeft()+this.getPaddingRight()+this._cachedBorderRight;
6017
switch(this.getOverflow()){case "scroll":case "scrollY":fw+=qx.ui.core.Widget.SCROLLBAR_SIZE;
6018
break;
6019
case "auto":break;
6020
}return fw;
6021
},
6022
_computeFrameHeight:function(){var fh=this._cachedBorderTop+this.getPaddingTop()+this.getPaddingBottom()+this._cachedBorderBottom;
6023
switch(this.getOverflow()){case "scroll":case "scrollX":fh+=qx.ui.core.Widget.SCROLLBAR_SIZE;
6024
break;
6025
case "auto":break;
6026
}return fh;
6027
},
6028
_invalidateFrameDimensions:function(){this._invalidateFrameWidth();
6029
this._invalidateFrameHeight();
6030
},
6031
_invalidatePreferredInnerDimensions:function(){this._invalidatePreferredInnerWidth();
6032
this._invalidatePreferredInnerHeight();
6033
},
6034
_computePreferredBoxWidth:function(){try{return Math.max(0,
6035
this.getPreferredInnerWidth()+this.getFrameWidth());
6036
}catch(ex){this.error("_computePreferredBoxWidth failed",
6037
ex);
6038
}},
6039
_computePreferredBoxHeight:function(){try{return Math.max(0,
6040
this.getPreferredInnerHeight()+this.getFrameHeight());
6041
}catch(ex){this.error("_computePreferredBoxHeight failed",
6042
ex);
6043
}},
6044
_initialLayoutDone:false,
6045
addToLayoutChanges:function(p){if(this._isDisplayable){this.getParent()._addChildToChildrenQueue(this);
6046
}return this._layoutChanges[p]=true;
7316
},
6047
},
7317
_applyDisplay:function(value,
6048
addToQueue:function(p){this._initialLayoutDone?this.addToJobQueue(p):this.addToLayoutChanges(p);
7318
old){return this._handleDisplayable("display");
7319
},
6049
},
7320
_handleDisplayable:function(vHint){var vDisplayable=this._computeDisplayable();
6050
addToQueueRuntime:function(p){return !this._initialLayoutDone||this.addToJobQueue(p);
7321
if(this._isDisplayable==vDisplayable&&!(vDisplayable&&vHint=="parent")){return true;
7322
}this._isDisplayable=vDisplayable;
7323
var vParent=this.getParent();
7324
if(vParent){vParent._invalidateVisibleChildren();
7325
vParent._invalidatePreferredInnerDimensions();
7326
}if(vHint&&this._oldParent&&this._oldParent._initialLayoutDone){var elem=this.getElement();
7327
if(elem){if(this.getVisibility()){this._beforeDisappear();
7328
}this._beforeRemoveDom();
7329
try{this._oldParent._getTargetNode().removeChild(elem);
7330
}catch(e){}this._afterRemoveDom();
7331
if(this.getVisibility()){this._afterDisappear();
7332
}}delete this._oldParent;
7333
}if(vDisplayable){if(vParent._initialLayoutDone){vParent.getLayoutImpl().updateChildrenOnAddChild(this,
7334
vParent.getChildren().indexOf(this));
7335
vParent.addToJobQueue("addChild");
7336
}this.addToLayoutChanges("initial");
7337
this.addToCustomQueues(vHint);
7338
if(this.getVisibility()){this._beforeAppear();
7339
}if(!this._isCreated){qx.ui.core.Widget.addToGlobalElementQueue(this);
7340
}qx.ui.core.Widget.addToGlobalStateQueue(this);
7341
if(!qx.lang.Object.isEmpty(this._jobQueue)){qx.ui.core.Widget.addToGlobalJobQueue(this);
7342
}
7343
if(!qx.lang.Object.isEmpty(this._childrenQueue)){qx.ui.core.Widget.addToGlobalLayoutQueue(this);
7344
}}else{qx.ui.core.Widget.removeFromGlobalElementQueue(this);
7345
qx.ui.core.Widget.removeFromGlobalStateQueue(this);
7346
qx.ui.core.Widget.removeFromGlobalJobQueue(this);
7347
qx.ui.core.Widget.removeFromGlobalLayoutQueue(this);
7348
this.removeFromCustomQueues(vHint);
7349
if(vParent&&vHint){if(this.getVisibility()){this._beforeDisappear();
7350
}if(vParent._initialLayoutDone&&this._initialLayoutDone){vParent.getLayoutImpl().updateChildrenOnRemoveChild(this,
7351
vParent.getChildren().indexOf(this));
7352
vParent.addToJobQueue("removeChild");
7353
this._beforeRemoveDom();
7354
var parentNode=this.getElement().parentNode;
7355
if(parentNode){parentNode.removeChild(this.getElement());
7356
if(parentNode&&parentNode!==vParent._getTargetNode()){this.warn("Unexpected parent node: "+parentNode);
7357
}}this._afterRemoveDom();
7358
}vParent._removeChildFromChildrenQueue(this);
7359
if(this.getVisibility()){this._afterDisappear();
7360
}}}this._handleDisplayableCustom(vDisplayable,
7361
vParent,
7362
vHint);
7363
return true;
7364
},
6051
},
7365
addToCustomQueues:qx.lang.Function.returnTrue,
6052
_computeHasPercentX:function(){return (this._computedLeftTypePercent||this._computedWidthTypePercent||this._computedMinWidthTypePercent||this._computedMaxWidthTypePercent||this._computedRightTypePercent);
7366
removeFromCustomQueues:qx.lang.Function.returnTrue,
7367
_handleDisplayableCustom:qx.lang.Function.returnTrue,
7368
_computeDisplayable:function(){return this.getDisplay()&&this.getParent()&&this.getParent()._isDisplayable?true:false;
7369
},
6053
},
7370
_beforeAppear:function(){this.createDispatchEvent("beforeAppear");
6054
_computeHasPercentY:function(){return (this._computedTopTypePercent||this._computedHeightTypePercent||this._computedMinHeightTypePercent||this._computedMaxHeightTypePercent||this._computedBottomTypePercent);
7371
},
6055
},
7372
_afterAppear:function(){this._isSeeable=true;
6056
_computeHasAutoX:function(){return (this._computedWidthTypeAuto||this._computedMinWidthTypeAuto||this._computedMaxWidthTypeAuto);
7373
this.createDispatchEvent("appear");
7374
},
6057
},
7375
_beforeDisappear:function(){this.removeState("over");
6058
_computeHasAutoY:function(){return (this._computedHeightTypeAuto||this._computedMinHeightTypeAuto||this._computedMaxHeightTypeAuto);
7376
if(qx.Class.isDefined("qx.ui.form.Button")){this.removeState("pressed");
7377
this.removeState("abandoned");
7378
}this.createDispatchEvent("beforeDisappear");
7379
},
6059
},
7380
_afterDisappear:function(){this._isSeeable=false;
6060
_computeHasFlexX:function(){return this._computedWidthTypeFlex;
7381
this.createDispatchEvent("disappear");
7382
},
6061
},
7383
_isSeeable:false,
6062
_computeHasFlexY:function(){return this._computedHeightTypeFlex;
7384
isSeeable:function(){return this._isSeeable;
7385
},
6063
},
7386
isAppearRelevant:function(){return this.getVisibility()&&this._isDisplayable;
6064
_evalUnitsPixelPercentAutoFlex:function(value){switch(value){case "auto":return qx.ui.core.Widget.TYPE_AUTO;
6065
case Infinity:case -Infinity:return qx.ui.core.Widget.TYPE_NULL;
6066
}
6067
switch(typeof value){case "number":return isNaN(value)?qx.ui.core.Widget.TYPE_NULL:qx.ui.core.Widget.TYPE_PIXEL;
6068
case "string":return value.indexOf("%")!=-1?qx.ui.core.Widget.TYPE_PERCENT:value.indexOf("*")!=-1?qx.ui.core.Widget.TYPE_FLEX:qx.ui.core.Widget.TYPE_NULL;
6069
}return qx.ui.core.Widget.TYPE_NULL;
7387
},
6070
},
7388
_beforeInsertDom:function(){this.createDispatchEvent("beforeInsertDom");
6071
_evalUnitsPixelPercentAuto:function(value){switch(value){case "auto":return qx.ui.core.Widget.TYPE_AUTO;
6072
case Infinity:case -Infinity:return qx.ui.core.Widget.TYPE_NULL;
6073
}
6074
switch(typeof value){case "number":return isNaN(value)?qx.ui.core.Widget.TYPE_NULL:qx.ui.core.Widget.TYPE_PIXEL;
6075
case "string":return value.indexOf("%")!=-1?qx.ui.core.Widget.TYPE_PERCENT:qx.ui.core.Widget.TYPE_NULL;
6076
}return qx.ui.core.Widget.TYPE_NULL;
7389
},
6077
},
7390
_afterInsertDom:function(){this.createDispatchEvent("insertDom");
6078
_evalUnitsPixelPercent:function(value){switch(value){case Infinity:case -Infinity:return qx.ui.core.Widget.TYPE_NULL;
6079
}
6080
switch(typeof value){case "number":return isNaN(value)?qx.ui.core.Widget.TYPE_NULL:qx.ui.core.Widget.TYPE_PIXEL;
6081
case "string":return value.indexOf("%")!=-1?qx.ui.core.Widget.TYPE_PERCENT:qx.ui.core.Widget.TYPE_NULL;
6082
}return qx.ui.core.Widget.TYPE_NULL;
7391
},
6083
},
7392
_beforeRemoveDom:function(){this.createDispatchEvent("beforeRemoveDom");
6084
_unitDetectionPixelPercentAutoFlex:function(name,
6085
value){var r=qx.ui.core.Widget.layoutPropertyTypes[name];
6086
var s=r.dataType;
6087
var p=r.dataParsed;
6088
var v=r.dataValue;
6089
var s1=r.typePixel;
6090
var s2=r.typePercent;
6091
var s3=r.typeAuto;
6092
var s4=r.typeFlex;
6093
var s5=r.typeNull;
6094
var wasPercent=this[s2];
6095
var wasAuto=this[s3];
6096
var wasFlex=this[s4];
6097
switch(this[s]=this._evalUnitsPixelPercentAutoFlex(value)){case qx.ui.core.Widget.TYPE_PIXEL:this[s1]=true;
6098
this[s2]=this[s3]=this[s4]=this[s5]=false;
6099
this[p]=this[v]=Math.round(value);
6100
break;
6101
case qx.ui.core.Widget.TYPE_PERCENT:this[s2]=true;
6102
this[s1]=this[s3]=this[s4]=this[s5]=false;
6103
this[p]=parseFloat(value);
6104
this[v]=null;
6105
break;
6106
case qx.ui.core.Widget.TYPE_AUTO:this[s3]=true;
6107
this[s1]=this[s2]=this[s4]=this[s5]=false;
6108
this[p]=this[v]=null;
6109
break;
6110
case qx.ui.core.Widget.TYPE_FLEX:this[s4]=true;
6111
this[s1]=this[s2]=this[s3]=this[s5]=false;
6112
this[p]=parseFloat(value);
6113
this[v]=null;
6114
break;
6115
default:this[s5]=true;
6116
this[s1]=this[s2]=this[s3]=this[s4]=false;
6117
this[p]=this[v]=null;
6118
break;
6119
}
6120
if(wasPercent!=this[s2]){switch(name){case "minWidth":case "maxWidth":case "width":case "left":case "right":this._invalidateHasPercentX();
6121
break;
6122
case "maxHeight":case "minHeight":case "height":case "top":case "bottom":this._invalidateHasPercentY();
6123
break;
6124
}}if(wasAuto!=this[s3]){switch(name){case "minWidth":case "maxWidth":case "width":this._invalidateHasAutoX();
6125
break;
6126
case "minHeight":case "maxHeight":case "height":this._invalidateHasAutoY();
6127
break;
6128
}}if(wasFlex!=this[s4]){switch(name){case "width":this._invalidateHasFlexX();
6129
break;
6130
case "height":this._invalidateHasFlexY();
6131
break;
6132
}}},
6133
_unitDetectionPixelPercentAuto:function(name,
6134
value){var r=qx.ui.core.Widget.layoutPropertyTypes[name];
6135
var s=r.dataType;
6136
var p=r.dataParsed;
6137
var v=r.dataValue;
6138
var s1=r.typePixel;
6139
var s2=r.typePercent;
6140
var s3=r.typeAuto;
6141
var s4=r.typeNull;
6142
var wasPercent=this[s2];
6143
var wasAuto=this[s3];
6144
switch(this[s]=this._evalUnitsPixelPercentAuto(value)){case qx.ui.core.Widget.TYPE_PIXEL:this[s1]=true;
6145
this[s2]=this[s3]=this[s4]=false;
6146
this[p]=this[v]=Math.round(value);
6147
break;
6148
case qx.ui.core.Widget.TYPE_PERCENT:this[s2]=true;
6149
this[s1]=this[s3]=this[s4]=false;
6150
this[p]=parseFloat(value);
6151
this[v]=null;
6152
break;
6153
case qx.ui.core.Widget.TYPE_AUTO:this[s3]=true;
6154
this[s1]=this[s2]=this[s4]=false;
6155
this[p]=this[v]=null;
6156
break;
6157
default:this[s4]=true;
6158
this[s1]=this[s2]=this[s3]=false;
6159
this[p]=this[v]=null;
6160
break;
6161
}
6162
if(wasPercent!=this[s2]){switch(name){case "minWidth":case "maxWidth":case "width":case "left":case "right":this._invalidateHasPercentX();
6163
break;
6164
case "minHeight":case "maxHeight":case "height":case "top":case "bottom":this._invalidateHasPercentY();
6165
break;
6166
}}if(wasAuto!=this[s3]){switch(name){case "minWidth":case "maxWidth":case "width":this._invalidateHasAutoX();
6167
break;
6168
case "minHeight":case "maxHeight":case "height":this._invalidateHasAutoY();
6169
break;
6170
}}},
6171
_unitDetectionPixelPercent:function(name,
6172
value){var r=qx.ui.core.Widget.layoutPropertyTypes[name];
6173
var s=r.dataType;
6174
var p=r.dataParsed;
6175
var v=r.dataValue;
6176
var s1=r.typePixel;
6177
var s2=r.typePercent;
6178
var s3=r.typeNull;
6179
var wasPercent=this[s2];
6180
switch(this[s]=this._evalUnitsPixelPercent(value)){case qx.ui.core.Widget.TYPE_PIXEL:this[s1]=true;
6181
this[s2]=this[s3]=false;
6182
this[p]=this[v]=Math.round(value);
6183
break;
6184
case qx.ui.core.Widget.TYPE_PERCENT:this[s2]=true;
6185
this[s1]=this[s3]=false;
6186
this[p]=parseFloat(value);
6187
this[v]=null;
6188
break;
6189
default:this[s3]=true;
6190
this[s1]=this[s2]=false;
6191
this[p]=this[v]=null;
6192
break;
6193
}
6194
if(wasPercent!=this[s2]){switch(name){case "minWidth":case "maxWidth":case "width":case "left":case "right":this._invalidateHasPercentX();
6195
break;
6196
case "minHeight":case "maxHeight":case "height":case "top":case "bottom":this._invalidateHasPercentY();
6197
break;
6198
}}},
6199
getTopLevelWidget:function(){return this._hasParent?this.getParent().getTopLevelWidget():null;
7393
},
6200
},
7394
_afterRemoveDom:function(){this.createDispatchEvent("removeDom");
6201
moveSelfBefore:function(vBefore){this.getParent().addBefore(this,
6202
vBefore);
7395
},
6203
},
7396
_applyVisibility:function(value,
6204
moveSelfAfter:function(vAfter){this.getParent().addAfter(this,
7397
old){if(value){if(this._isDisplayable){this._beforeAppear();
6205
vAfter);
7398
}this.removeStyleProperty("display");
7399
if(this._isDisplayable){this._afterAppear();
7400
}}else{if(this._isDisplayable){this._beforeDisappear();
7401
}this.setStyleProperty("display",
7402
"none");
7403
if(this._isDisplayable){this._afterDisappear();
7404
}}},
7405
show:function(){this.setVisibility(true);
7406
this.setDisplay(true);
7407
},
6206
},
7408
hide:function(){this.setVisibility(false);
6207
moveSelfToBegin:function(){this.getParent().addAtBegin(this);
6208
},
6209
moveSelfToEnd:function(){this.getParent().addAtEnd(this);
6210
},
6211
getPreviousSibling:function(){var p=this.getParent();
6212
if(p==null){return null;
6213
}var cs=p.getChildren();
6214
return cs[cs.indexOf(this)-1];
6215
},
6216
getNextSibling:function(){var p=this.getParent();
6217
if(p==null){return null;
6218
}var cs=p.getChildren();
6219
return cs[cs.indexOf(this)+1];
6220
},
6221
getPreviousVisibleSibling:function(){if(!this._hasParent){return null;
6222
}var vChildren=this.getParent().getVisibleChildren();
6223
return vChildren[vChildren.indexOf(this)-1];
6224
},
6225
getNextVisibleSibling:function(){if(!this._hasParent){return null;
6226
}var vChildren=this.getParent().getVisibleChildren();
6227
return vChildren[vChildren.indexOf(this)+1];
6228
},
6229
getPreviousActiveSibling:function(vIgnoreClasses){var vPrev=qx.ui.core.Widget.getActiveSiblingHelper(this,
6230
this.getParent(),
6231
-1,
6232
vIgnoreClasses,
6233
null);
6234
return vPrev?vPrev:this.getParent().getLastActiveChild();
7409
},
6235
},
7410
connect:function(){this.setDisplay(true);
6236
getNextActiveSibling:function(vIgnoreClasses){var vNext=qx.ui.core.Widget.getActiveSiblingHelper(this,
6237
this.getParent(),
6238
1,
6239
vIgnoreClasses,
6240
null);
6241
return vNext?vNext:this.getParent().getFirstActiveChild();
7411
},
6242
},
7412
disconnect:function(){this.setDisplay(false);
6243
isFirstChild:function(){return this._hasParent&&this.getParent().getFirstChild()==this;
7413
},
6244
},
7414
_isCreated:false,
6245
isLastChild:function(){return this._hasParent&&this.getParent().getLastChild()==this;
7415
_getTargetNode:qx.core.Variant.select("qx.client",
7416
{"gecko":function(){return this._element;
7417
},
6246
},
7418
"default":function(){return this._borderElement||this._element;
6247
isFirstVisibleChild:function(){return this._hasParent&&this.getParent().getFirstVisibleChild()==this;
7419
}}),
7420
addToDocument:function(){qx.ui.core.ClientDocument.getInstance().add(this);
7421
},
6248
},
7422
isCreated:function(){return this._isCreated;
6249
isLastVisibleChild:function(){return this._hasParent&&this.getParent().getLastVisibleChild()==this;
7423
},
6250
},
7424
_createElementImpl:function(){this.setElement(this.getTopLevelWidget().getDocumentElement().createElement("div"));
6251
hasState:function(vState){return this.__states&&this.__states[vState]?true:false;
7425
},
6252
},
7426
_applyElement:function(value,
6253
addState:function(vState){if(!this.__states){this.__states={};
7427
old){this._isCreated=value!=null;
7428
if(old){old.qx_Widget=null;
7429
}
6254
}
7430
if(value){value.qx_Widget=this;
6255
if(!this.__states[vState]){this.__states[vState]=true;
7431
value.style.position="absolute";
6256
if(this._hasParent){qx.ui.core.Widget.addToGlobalStateQueue(this);
7432
this._element=value;
6257
}}},
7433
this._style=value.style;
6258
removeState:function(vState){if(this.__states&&this.__states[vState]){delete this.__states[vState];
7434
this._applyStyleProperties(value);
6259
if(this._hasParent){qx.ui.core.Widget.addToGlobalStateQueue(this);
7435
this._applyHtmlProperties(value);
6260
}}},
7436
this._applyHtmlAttributes(value);
6261
_styleFromMap:function(data){var styler=qx.core.Property.$$method.style;
7437
this._applyElementData(value);
6262
var unstyler=qx.core.Property.$$method.unstyle;
7438
this.createDispatchEvent("create");
6263
var value;
7439
this.addToStateQueue();
6264
{for(var prop in data){if(!this[styler[prop]]){throw new Error(this.classname+' has no themeable property "'+prop+'"');
7440
}else{this._element=this._style=null;
6265
}}};
6266
for(var prop in data){value=data[prop];
6267
value==="undefined"?this[unstyler[prop]]():this[styler[prop]](value);
7441
}},
6268
}},
7442
addToJobQueue:function(p){if(this._hasParent){qx.ui.core.Widget.addToGlobalJobQueue(this);
6269
_unstyleFromArray:function(data){var unstyler=qx.core.Property.$$method.unstyle;
7443
}
6270
{for(var i=0,
7444
if(!this._jobQueue){this._jobQueue={};
6271
l=data.length;i<l;i++){if(!this[unstyler[data[i]]]){throw new Error(this.classname+' has no themeable property "'+data[i]+'"');
7445
}this._jobQueue[p]=true;
6272
}}};
7446
return true;
6273
for(var i=0,
7447
},
6274
l=data.length;i<l;i++){this[unstyler[data[i]]]();
7448
_flushJobQueue:function(q){try{var vQueue=this._jobQueue;
6275
}},
7449
var vParent=this.getParent();
6276
_renderAppearance:function(){if(!this.__states){this.__states={};
7450
if(!vParent||qx.lang.Object.isEmpty(vQueue)){return;
6277
}this._applyStateStyleFocus(this.__states);
7451
}var vLayoutImpl=this instanceof qx.ui.core.Parent?this.getLayoutImpl():null;
6278
var vAppearance=this.getAppearance();
7452
if(vLayoutImpl){vLayoutImpl.updateSelfOnJobQueueFlush(vQueue);
6279
if(vAppearance){try{var r=qx.theme.manager.Appearance.getInstance().styleFrom(vAppearance,
7453
}}catch(ex){this.error("Flushing job queue (prechecks#1) failed",
6280
this.__states);
7454
ex);
6281
if(r){this._styleFromMap(r);
7455
}try{var vFlushParentJobQueue=false;
6282
}}catch(ex){this.error("Could not apply state appearance",
7456
var vRecomputeOuterWidth=vQueue.marginLeft||vQueue.marginRight;
7457
var vRecomputeOuterHeight=vQueue.marginTop||vQueue.marginBottom;
7458
var vRecomputeInnerWidth=vQueue.frameWidth;
7459
var vRecomputeInnerHeight=vQueue.frameHeight;
7460
var vRecomputeParentPreferredInnerWidth=(vQueue.frameWidth||vQueue.preferredInnerWidth)&&this._recomputePreferredBoxWidth();
7461
var vRecomputeParentPreferredInnerHeight=(vQueue.frameHeight||vQueue.preferredInnerHeight)&&this._recomputePreferredBoxHeight();
7462
if(vRecomputeParentPreferredInnerWidth){var vPref=this.getPreferredBoxWidth();
7463
if(this._computedWidthTypeAuto){this._computedWidthValue=vPref;
7464
vQueue.width=true;
7465
}
7466
if(this._computedMinWidthTypeAuto){this._computedMinWidthValue=vPref;
7467
vQueue.minWidth=true;
7468
}
7469
if(this._computedMaxWidthTypeAuto){this._computedMaxWidthValue=vPref;
7470
vQueue.maxWidth=true;
7471
}}
7472
if(vRecomputeParentPreferredInnerHeight){var vPref=this.getPreferredBoxHeight();
7473
if(this._computedHeightTypeAuto){this._computedHeightValue=vPref;
7474
vQueue.height=true;
7475
}
7476
if(this._computedMinHeightTypeAuto){this._computedMinHeightValue=vPref;
7477
vQueue.minHeight=true;
7478
}
7479
if(this._computedMaxHeightTypeAuto){this._computedMaxHeightValue=vPref;
7480
vQueue.maxHeight=true;
7481
}}
7482
if((vQueue.width||vQueue.minWidth||vQueue.maxWidth||vQueue.left||vQueue.right)&&this._recomputeBoxWidth()){vRecomputeOuterWidth=vRecomputeInnerWidth=true;
7483
}
7484
if((vQueue.height||vQueue.minHeight||vQueue.maxHeight||vQueue.top||vQueue.bottom)&&this._recomputeBoxHeight()){vRecomputeOuterHeight=vRecomputeInnerHeight=true;
7485
}}catch(ex){this.error("Flushing job queue (recompute#2) failed",
7486
ex);
6283
ex);
7487
}try{if((vRecomputeOuterWidth&&this._recomputeOuterWidth())||vRecomputeParentPreferredInnerWidth){vParent._invalidatePreferredInnerWidth();
6284
}}},
7488
vParent.getLayoutImpl().updateSelfOnChildOuterWidthChange(this);
6285
_resetAppearanceThemeWrapper:function(vNewAppearanceTheme,
7489
vFlushParentJobQueue=true;
6286
vOldAppearanceTheme){var vAppearance=this.getAppearance();
7490
}
6287
if(vAppearance){var vAppearanceManager=qx.theme.manager.Appearance.getInstance();
7491
if((vRecomputeOuterHeight&&this._recomputeOuterHeight())||vRecomputeParentPreferredInnerHeight){vParent._invalidatePreferredInnerHeight();
6288
var vOldAppearanceProperties=vAppearanceManager.styleFromTheme(vOldAppearanceTheme,
7492
vParent.getLayoutImpl().updateSelfOnChildOuterHeightChange(this);
6289
vAppearance,
7493
vFlushParentJobQueue=true;
6290
this.__states);
6291
var vNewAppearanceProperties=vAppearanceManager.styleFromTheme(vNewAppearanceTheme,
6292
vAppearance,
6293
this.__states);
6294
var vUnstyleList=[];
6295
for(var prop in vOldAppearanceProperties){if(vNewAppearanceProperties[prop]===undefined){vUnstyleList.push(prop);
6296
}}this._unstyleFromArray(vUnstyleList);
6297
this._styleFromMap(vNewAppearanceProperties);
6298
}},
6299
_applyStateStyleFocus:qx.core.Variant.select("qx.client",
6300
{"mshtml":function(vStates){},
6301
"gecko":function(vStates){if(vStates.focused){if(!qx.event.handler.FocusHandler.mouseFocus&&!this.getHideFocus()){this.setStyleProperty("MozOutline",
6302
"1px dotted invert");
6303
}}else{this.removeStyleProperty("MozOutline");
6304
}},
6305
"default":function(vStates){if(vStates.focused){if(!qx.event.handler.FocusHandler.mouseFocus&&!this.getHideFocus()){this.setStyleProperty("outline",
6306
"1px dotted invert");
6307
}}else{this.removeStyleProperty("outline");
6308
}}}),
6309
addToStateQueue:function(){qx.ui.core.Widget.addToGlobalStateQueue(this);
6310
},
6311
recursiveAddToStateQueue:function(){this.addToStateQueue();
6312
},
6313
_applyAppearance:function(value,
6314
old){if(!this.__states){this.__states={};
6315
}var vAppearanceManager=qx.theme.manager.Appearance.getInstance();
6316
if(value){var vNewAppearanceProperties=vAppearanceManager.styleFrom(value,
6317
this.__states)||{};
7494
}
6318
}
7495
if(vFlushParentJobQueue){vParent._flushJobQueue();
6319
if(old){var vOldAppearanceProperties=vAppearanceManager.styleFrom(old,
7496
}}catch(ex){this.error("Flushing job queue (parentsignals#3) failed",
6320
this.__states)||{};
7497
ex);
6321
var vUnstyleList=[];
7498
}try{vParent._addChildToChildrenQueue(this);
6322
for(var prop in vOldAppearanceProperties){if(!vNewAppearanceProperties||!(prop in vNewAppearanceProperties)){vUnstyleList.push(prop);
7499
for(var i in vQueue){this._layoutChanges[i]=true;
7500
}}catch(ex){this.error("Flushing job queue (addjobs#4) failed",
7501
ex);
7502
}try{if(this instanceof qx.ui.core.Parent&&(vQueue.paddingLeft||vQueue.paddingRight||vQueue.paddingTop||vQueue.paddingBottom)){var ch=this.getChildren(),
7503
chl=ch.length;
7504
if(vQueue.paddingLeft){for(var i=0;i<chl;i++){ch[i].addToLayoutChanges("parentPaddingLeft");
7505
}}
7506
if(vQueue.paddingRight){for(var i=0;i<chl;i++){ch[i].addToLayoutChanges("parentPaddingRight");
7507
}}
7508
if(vQueue.paddingTop){for(var i=0;i<chl;i++){ch[i].addToLayoutChanges("parentPaddingTop");
7509
}}
7510
if(vQueue.paddingBottom){for(var i=0;i<chl;i++){ch[i].addToLayoutChanges("parentPaddingBottom");
7511
}}}
6323
}}}
7512
if(vRecomputeInnerWidth){this._recomputeInnerWidth();
6324
if(vUnstyleList){this._unstyleFromArray(vUnstyleList);
7513
}
7514
if(vRecomputeInnerHeight){this._recomputeInnerHeight();
7515
}
6325
}
7516
if(this._initialLayoutDone){if(vLayoutImpl){vLayoutImpl.updateChildrenOnJobQueueFlush(vQueue);
6326
if(vNewAppearanceProperties){this._styleFromMap(vNewAppearanceProperties);
7517
}}}catch(ex){this.error("Flushing job queue (childrensignals#5) failed",
6327
}},
6328
_recursiveAppearanceThemeUpdate:function(vNewAppearanceTheme,
6329
vOldAppearanceTheme){try{this._resetAppearanceThemeWrapper(vNewAppearanceTheme,
6330
vOldAppearanceTheme);
6331
}catch(ex){this.error("Failed to update appearance theme",
7518
ex);
6332
ex);
7519
}delete this._jobQueue;
6333
}},
6334
_applyElementData:function(elem){},
6335
setHtmlProperty:function(propName,
6336
value){if(!this._htmlProperties){this._htmlProperties={};
6337
}this._htmlProperties[propName]=value;
6338
if(this._isCreated&&this.getElement()[propName]!=value){this.getElement()[propName]=value;
6339
}return true;
6340
},
6341
removeHtmlProperty:qx.core.Variant.select("qx.client",
6342
{"mshtml":function(propName){if(!this._htmlProperties){return;
6343
}delete this._htmlProperties[propName];
6344
if(this._isCreated){this.getElement().removeAttribute(propName);
6345
}return true;
6346
},
6347
"default":function(propName){if(!this._htmlProperties){return;
6348
}delete this._htmlProperties[propName];
6349
if(this._isCreated){this.getElement().removeAttribute(propName);
6350
delete this.getElement()[propName];
6351
}return true;
6352
}}),
6353
getHtmlProperty:function(propName){if(!this._htmlProperties){return "";
6354
}return this._htmlProperties[propName]||"";
6355
},
6356
_applyHtmlProperties:function(elem){var vProperties=this._htmlProperties;
6357
if(vProperties){var propName;
6358
for(propName in vProperties){elem[propName]=vProperties[propName];
6359
}}},
6360
_generateHtmlId:function(){var id=this.classname+"."+qx.ui.core.Widget._idCounter++;
6361
this.debug("setting autogenerated HTML id to "+id);
6362
this.setHtmlProperty("id",
6363
id);
6364
},
6365
setHtmlAttribute:function(propName,
6366
value){qx.log.Logger.deprecatedMethodWarning(arguments.callee,
6367
"Use setHtmlProperty instead");
6368
if(!this._htmlAttributes){this._htmlAttributes={};
6369
}this._htmlAttributes[propName]=value;
6370
if(this._isCreated){this.getElement().setAttribute(propName,
6371
value);
6372
}return true;
6373
},
6374
removeHtmlAttribute:function(propName){qx.log.Logger.deprecatedMethodWarning(arguments.callee,
6375
"Use removeHtmlProperty instead");
6376
if(!this._htmlAttributes){return;
6377
}delete this._htmlAttributes[propName];
6378
if(this._isCreated){this.getElement().removeAttribute(propName);
6379
}return true;
6380
},
6381
getHtmlAttribute:function(propName){if(!this._htmlAttributes){return "";
6382
}return this._htmlAttributes[propName]||"";
6383
},
6384
_applyHtmlAttributes:function(elem){var vAttributes=this._htmlAttributes;
6385
if(vAttributes){var propName;
6386
for(propName in vAttributes){elem.setAttribute(propName,
6387
vAttributes[propName]);
6388
}}},
6389
getStyleProperty:function(propName){if(!this._styleProperties){return "";
6390
}return this._styleProperties[propName]||"";
6391
},
6392
__outerElementStyleProperties:{cursor:true,
6393
zIndex:true,
6394
filter:true,
6395
display:true,
6396
visibility:true},
6397
setStyleProperty:function(propName,
6398
value){if(!this._styleProperties){this._styleProperties={};
6399
}this._styleProperties[propName]=value;
6400
if(this._isCreated){var elem=this.__outerElementStyleProperties[propName]?this.getElement():this._getTargetNode();
6401
if(elem){elem.style[propName]=(value==null)?"":value;
6402
}}},
6403
removeStyleProperty:function(propName){if(!this._styleProperties){return;
6404
}delete this._styleProperties[propName];
6405
if(this._isCreated){var elem=this.__outerElementStyleProperties[propName]?this.getElement():this._getTargetNode();
6406
if(elem){elem.style[propName]="";
6407
}}},
6408
_applyStyleProperties:function(elem){var vProperties=this._styleProperties;
6409
if(!vProperties){return;
6410
}var propName;
6411
var vBaseElement=elem;
6412
var vTargetElement=this._getTargetNode();
6413
var elem;
6414
var value;
6415
for(propName in vProperties){elem=this.__outerElementStyleProperties[propName]?vBaseElement:vTargetElement;
6416
value=vProperties[propName];
6417
elem.style[propName]=(value==null)?"":value;
6418
}},
6419
_applyEnabled:function(value,
6420
old){if(value===false){this.addState("disabled");
6421
this.removeState("over");
6422
if(qx.Class.isDefined("qx.ui.form.Button")){this.removeState("abandoned");
6423
this.removeState("pressed");
6424
}}else{this.removeState("disabled");
6425
}},
6426
isFocusable:function(){return this.getEnabled()&&this.isSeeable()&&this.getTabIndex()>=0&&this.getTabIndex()!=null;
7520
},
6427
},
7521
_isWidthEssential:qx.lang.Function.returnTrue,
6428
isFocusRoot:function(){return false;
7522
_isHeightEssential:qx.lang.Function.returnTrue,
7523
_computeBoxWidthFallback:function(){return 0;
7524
},
6429
},
7525
_computeBoxHeightFallback:function(){return 0;
6430
getFocusRoot:function(){if(this._hasParent){return this.getParent().getFocusRoot();
6431
}return null;
7526
},
6432
},
7527
_computeBoxWidth:function(){var vLayoutImpl=this.getParent().getLayoutImpl();
6433
getActiveChild:function(){var vRoot=this.getFocusRoot();
7528
return Math.max(0,
6434
if(vRoot){return vRoot.getActiveChild();
7529
qx.lang.Number.limit(vLayoutImpl.computeChildBoxWidth(this),
6435
}return null;
7530
this.getMinWidthValue(),
7531
this.getMaxWidthValue()));
7532
},
6436
},
7533
_computeBoxHeight:function(){var vLayoutImpl=this.getParent().getLayoutImpl();
6437
_ontabfocus:qx.lang.Function.returnTrue,
7534
return Math.max(0,
6438
_applyFocused:function(value,
7535
qx.lang.Number.limit(vLayoutImpl.computeChildBoxHeight(this),
6439
old){if(!this.isCreated()){return;
7536
this.getMinHeightValue(),
6440
}var vFocusRoot=this.getFocusRoot();
7537
this.getMaxHeightValue()));
6441
if(vFocusRoot){if(value){vFocusRoot.setFocusedChild(this);
6442
this._visualizeFocus();
6443
}else{if(vFocusRoot.getFocusedChild()==this){vFocusRoot.setFocusedChild(null);
6444
}this._visualizeBlur();
6445
}}},
6446
_applyHideFocus:qx.core.Variant.select("qx.client",
6447
{"mshtml":function(value,
6448
old){this.setHtmlProperty("hideFocus",
6449
value);
7538
},
6450
},
7539
_computeOuterWidth:function(){return Math.max(0,
6451
"default":qx.lang.Function.returnTrue}),
7540
(this.getMarginLeft()+this.getBoxWidth()+this.getMarginRight()));
6452
_visualizeBlur:function(){if(this.getEnableElementFocus()&&(!this.getFocusRoot().getFocusedChild()||(this.getFocusRoot().getFocusedChild()&&this.getFocusRoot().getFocusedChild().getEnableElementFocus()))){try{this.getElement().blur();
6453
}catch(ex){}}this.removeState("focused");
7541
},
6454
},
7542
_computeOuterHeight:function(){return Math.max(0,
6455
_visualizeFocus:function(){if(!qx.event.handler.FocusHandler.mouseFocus&&this.getEnableElementFocus()){try{this.getElement().focus();
7543
(this.getMarginTop()+this.getBoxHeight()+this.getMarginBottom()));
6456
}catch(ex){}}this.addState("focused");
7544
},
6457
},
7545
_computeInnerWidth:function(){return Math.max(0,
6458
focus:function(){delete qx.event.handler.FocusHandler.mouseFocus;
7546
this.getBoxWidth()-this.getFrameWidth());
6459
this.setFocused(true);
7547
},
6460
},
7548
_computeInnerHeight:function(){return Math.max(0,
6461
blur:function(){delete qx.event.handler.FocusHandler.mouseFocus;
7549
this.getBoxHeight()-this.getFrameHeight());
6462
this.setFocused(false);
7550
},
6463
},
7551
getNeededWidth:function(){var vLayoutImpl=this.getParent().getLayoutImpl();
6464
_applyCapture:function(value,
7552
return Math.max(0,
6465
old){var vMgr=qx.event.handler.EventHandler.getInstance();
7553
vLayoutImpl.computeChildNeededWidth(this));
6466
if(old){vMgr.setCaptureWidget(null);
6467
}else if(value){vMgr.setCaptureWidget(this);
6468
}},
6469
_applyZIndex:function(value,
6470
old){if(value==null){this.removeStyleProperty("zIndex");
6471
}else{this.setStyleProperty("zIndex",
6472
value);
6473
}},
6474
_applyTabIndex:qx.core.Variant.select("qx.client",
6475
{"mshtml":function(value,
6476
old){this.setHtmlProperty("tabIndex",
6477
value<0?-1:1);
7554
},
6478
},
7555
getNeededHeight:function(){var vLayoutImpl=this.getParent().getLayoutImpl();
6479
"gecko":function(value,
7556
return Math.max(0,
6480
old){this.setStyleProperty("MozUserFocus",
7557
vLayoutImpl.computeChildNeededHeight(this));
6481
(value<0?"ignore":"normal"));
7558
},
6482
},
7559
_recomputeFlexX:function(){if(!this.getHasFlexX()){return false;
6483
"default":function(value,
6484
old){this.setStyleProperty("userFocus",
6485
(value<0?"ignore":"normal"));
6486
this.setHtmlProperty("tabIndex",
6487
value<0?-1:1);
6488
}}),
6489
_applySelectable:qx.core.Variant.select("qx.client",
6490
{"mshtml":function(value,
6491
old){},
6492
"gecko":function(value,
6493
old){if(value){this.removeStyleProperty("MozUserSelect");
6494
}else{this.setStyleProperty("MozUserSelect",
6495
"none");
6496
}},
6497
"webkit":function(value,
6498
old){if(value){this.removeStyleProperty("WebkitUserSelect");
6499
}else{this.setStyleProperty("WebkitUserSelect",
6500
"none");
6501
}},
6502
"khtml":function(value,
6503
old){if(value){this.removeStyleProperty("KhtmlUserSelect");
6504
}else{this.setStyleProperty("KhtmlUserSelect",
6505
"none");
6506
}},
6507
"default":function(value,
6508
old){if(value){return this.removeStyleProperty("userSelect");
6509
}else{this.setStyleProperty("userSelect",
6510
"none");
6511
}}}),
6512
_applyOpacity:qx.core.Variant.select("qx.client",
6513
{"mshtml":function(value,
6514
old){if(value==null||value>=1||value<0){this.removeStyleProperty("filter");
6515
}else{this.setStyleProperty("filter",
6516
("Alpha(Opacity="+Math.round(value*100)+")"));
6517
}},
6518
"default":function(value,
6519
old){if(value==null||value>1){if(qx.core.Variant.isSet("qx.client",
6520
"gecko")){this.removeStyleProperty("MozOpacity");
6521
}else if(qx.core.Variant.isSet("qx.client",
6522
"khtml")){this.removeStyleProperty("KhtmlOpacity");
6523
}this.removeStyleProperty("opacity");
6524
}else{value=qx.lang.Number.limit(value,
6525
0,
6526
1);
6527
if(qx.core.Variant.isSet("qx.client",
6528
"gecko")){this.setStyleProperty("MozOpacity",
6529
value);
6530
}else if(qx.core.Variant.isSet("qx.client",
6531
"khtml")){this.setStyleProperty("KhtmlOpacity",
6532
value);
6533
}this.setStyleProperty("opacity",
6534
value);
6535
}}}),
6536
__cursorMap:qx.core.Variant.select("qx.client",
6537
{"mshtml":{"cursor":"hand",
6538
"ew-resize":"e-resize",
6539
"ns-resize":"n-resize",
6540
"nesw-resize":"ne-resize",
6541
"nwse-resize":"nw-resize"},
6542
"opera":{"col-resize":"e-resize",
6543
"row-resize":"n-resize",
6544
"ew-resize":"e-resize",
6545
"ns-resize":"n-resize",
6546
"nesw-resize":"ne-resize",
6547
"nwse-resize":"nw-resize"},
6548
"default":{}}),
6549
_applyCursor:function(value,
6550
old){if(value){this.setStyleProperty("cursor",
6551
this.__cursorMap[value]||value);
6552
}else{this.removeStyleProperty("cursor");
6553
}},
6554
_applyCommand:function(value,
6555
old){},
6556
_applyBackgroundImage:function(value,
6557
old){var imageMgr=qx.io.image.Manager.getInstance();
6558
var aliasMgr=qx.io.Alias.getInstance();
6559
if(old){imageMgr.hide(old);
7560
}
6560
}
7561
if(this._computedWidthTypeFlex){this._computedWidthValue=null;
6561
if(value){imageMgr.show(value);
7562
this.addToLayoutChanges("width");
6562
}aliasMgr.connect(this._styleBackgroundImage,
7563
}return true;
6563
this,
6564
value);
7564
},
6565
},
7565
_recomputeFlexY:function(){if(!this.getHasFlexY()){return false;
6566
_styleBackgroundImage:function(value){value?this.setStyleProperty("backgroundImage",
7566
}
6567
"url("+value+")"):this.removeStyleProperty("backgroundImage");
7567
if(this._computedHeightTypeFlex){this._computedHeightValue=null;
7568
this.addToLayoutChanges("height");
7569
}return true;
7570
},
6568
},
7571
_recomputePercentX:function(){if(!this.getHasPercentX()){return false;
6569
_applyBackgroundRepeat:function(value,
7572
}
6570
old){value?this.setStyleProperty("backgroundRepeat",
7573
if(this._computedWidthTypePercent){this._computedWidthValue=null;
6571
value):this.removeStyleProperty("backgroundRepeat");
7574
this.addToLayoutChanges("width");
7575
}
7576
if(this._computedMinWidthTypePercent){this._computedMinWidthValue=null;
7577
this.addToLayoutChanges("minWidth");
7578
}
7579
if(this._computedMaxWidthTypePercent){this._computedMaxWidthValue=null;
7580
this.addToLayoutChanges("maxWidth");
7581
}
7582
if(this._computedLeftTypePercent){this._computedLeftValue=null;
7583
this.addToLayoutChanges("left");
7584
}
7585
if(this._computedRightTypePercent){this._computedRightValue=null;
7586
this.addToLayoutChanges("right");
7587
}return true;
7588
},
6572
},
7589
_recomputePercentY:function(){if(!this.getHasPercentY()){return false;
6573
_applyClip:function(value,
7590
}
6574
old){return this._compileClipString();
7591
if(this._computedHeightTypePercent){this._computedHeightValue=null;
7592
this.addToLayoutChanges("height");
7593
}
7594
if(this._computedMinHeightTypePercent){this._computedMinHeightValue=null;
7595
this.addToLayoutChanges("minHeight");
7596
}
7597
if(this._computedMaxHeightTypePercent){this._computedMaxHeightValue=null;
7598
this.addToLayoutChanges("maxHeight");
7599
}
7600
if(this._computedTopTypePercent){this._computedTopValue=null;
7601
this.addToLayoutChanges("top");
7602
}
7603
if(this._computedBottomTypePercent){this._computedBottomValue=null;
7604
this.addToLayoutChanges("bottom");
7605
}return true;
7606
},
6575
},
7607
_recomputeRangeX:qx.core.Variant.select("qx.client",
6576
_compileClipString:function(){var vLeft=this.getClipLeft();
7608
{"mshtml|opera|webkit":function(){if(this._computedLeftTypeNull||this._computedRightTypeNull){return false;
6577
var vTop=this.getClipTop();
7609
}this.addToLayoutChanges("width");
6578
var vWidth=this.getClipWidth();
7610
return true;
6579
var vHeight=this.getClipHeight();
6580
var vRight,
6581
vBottom;
6582
if(vLeft==null){vRight=(vWidth==null?"auto":vWidth+"px");
6583
vLeft="auto";
6584
}else{vRight=(vWidth==null?"auto":vLeft+vWidth+"px");
6585
vLeft=vLeft+"px";
6586
}
6587
if(vTop==null){vBottom=(vHeight==null?"auto":vHeight+"px");
6588
vTop="auto";
6589
}else{vBottom=(vHeight==null?"auto":vTop+vHeight+"px");
6590
vTop=vTop+"px";
6591
}return this.setStyleProperty("clip",
6592
("rect("+vTop+","+vRight+","+vBottom+","+vLeft+")"));
7611
},
6593
},
7612
"default":function(){return !(this._computedLeftTypeNull||this._computedRightTypeNull);
6594
_applyOverflow:qx.core.Variant.select("qx.client",
7613
}}),
6595
{"default":function(value,
7614
_recomputeRangeY:qx.core.Variant.select("qx.client",
6596
old){var pv=value;
7615
{"mshtml|opera|webkit":function(){if(this._computedTopTypeNull||this._computedBottomTypeNull){return false;
6597
var pn="overflow";
7616
}this.addToLayoutChanges("height");
6598
switch(value){case "scrollX":pn="overflowX";
7617
return true;
6599
pv="scroll";
6600
break;
6601
case "scrollY":pn="overflowY";
6602
pv="scroll";
6603
break;
6604
}var a=["overflow",
6605
"overflowX",
6606
"overflowY"];
6607
for(var i=0;i<a.length;i++){if(a[i]!=pn){this.removeStyleProperty(a[i]);
6608
}}
6609
switch(value){case "scrollX":this.setStyleProperty("overflowY",
6610
"hidden");
6611
break;
6612
case "scrollY":this.setStyleProperty("overflowX",
6613
"hidden");
6614
break;
6615
}this._renderOverflow(pn,
6616
pv,
6617
value,
6618
old);
6619
this.addToQueue("overflow");
7618
},
6620
},
7619
"default":function(){return !(this._computedTopTypeNull||this._computedBottomTypeNull);
6621
"gecko":function(value,
7620
}}),
6622
old){var pv=value;
7621
_recomputeStretchingX:qx.core.Variant.select("qx.client",
6623
var pn="overflow";
7622
{"mshtml|opera|webkit":function(){if(this.getAllowStretchX()&&this._computedWidthTypeNull){this._computedWidthValue=null;
6624
switch(pv){case "hidden":pv="-moz-scrollbars-none";
7623
this.addToLayoutChanges("width");
6625
break;
7624
return true;
6626
case "scrollX":pv="-moz-scrollbars-horizontal";
7625
}return false;
6627
break;
6628
case "scrollY":pv="-moz-scrollbars-vertical";
6629
break;
6630
}this._renderOverflow(pn,
6631
pv,
6632
value,
6633
old);
6634
this.addToQueue("overflow");
7626
},
6635
},
7627
"default":function(){if(this.getAllowStretchX()&&this._computedWidthTypeNull){return true;
6636
"opera":function(value,
7628
}return false;
6637
old){var pv=value;
6638
var pn="overflow";
6639
switch(pv){case "scrollX":case "scrollY":pv="scroll";
6640
break;
6641
}this._renderOverflow(pn,
6642
pv,
6643
value,
6644
old);
6645
this.addToQueue("overflow");
7629
}}),
6646
}}),
7630
_recomputeStretchingY:qx.core.Variant.select("qx.client",
6647
_renderOverflow:function(pn,
7631
{"mshtml|opera|webkit":function(){if(this.getAllowStretchY()&&this._computedHeightTypeNull){this._computedHeightValue=null;
6648
pv,
7632
this.addToLayoutChanges("height");
6649
value,
7633
return true;
6650
old){this.setStyleProperty(pn,
7634
}return false;
6651
pv||"");
6652
this._invalidateFrameWidth();
6653
this._invalidateFrameHeight();
7635
},
6654
},
7636
"default":function(){if(this.getAllowStretchY()&&this._computedHeightTypeNull){return true;
6655
getOverflowX:function(){var vOverflow=this.getOverflow();
7637
}return false;
6656
return vOverflow=="scrollY"?"hidden":vOverflow;
7638
}}),
7639
_computeValuePixel:function(v){return Math.round(v);
7640
},
6657
},
7641
_computeValuePixelLimit:function(v){return Math.max(0,
6658
getOverflowY:function(){var vOverflow=this.getOverflow();
7642
this._computeValuePixel(v));
6659
return vOverflow=="scrollX"?"hidden":vOverflow;
7643
},
6660
},
7644
_computeValuePercentX:function(v){return Math.round(this.getParent().getInnerWidthForChild(this)*v*0.01);
6661
_applyBackgroundColor:function(value,
6662
old){qx.theme.manager.Color.getInstance().connect(this._styleBackgroundColor,
6663
this,
6664
value);
7645
},
6665
},
7646
_computeValuePercentXLimit:function(v){return Math.max(0,
6666
_styleBackgroundColor:function(value){value?this.setStyleProperty("backgroundColor",
7647
this._computeValuePercentX(v));
6667
value):this.removeStyleProperty("backgroundColor");
7648
},
6668
},
7649
_computeValuePercentY:function(v){return Math.round(this.getParent().getInnerHeightForChild(this)*v*0.01);
6669
_applyTextColor:function(value,
6670
old){},
6671
_applyFont:function(value,
6672
old){},
6673
_cachedBorderTop:0,
6674
_cachedBorderRight:0,
6675
_cachedBorderBottom:0,
6676
_cachedBorderLeft:0,
6677
_applyBorder:function(value,
6678
old){qx.theme.manager.Border.getInstance().connect(this._queueBorder,
6679
this,
6680
value);
7650
},
6681
},
7651
_computeValuePercentYLimit:function(v){return Math.max(0,
6682
__borderJobs:{top:"borderTop",
7652
this._computeValuePercentY(v));
6683
right:"borderRight",
6684
bottom:"borderBottom",
6685
left:"borderLeft"},
6686
_queueBorder:function(value,
6687
edge){if(!edge){var jobs=this.__borderJobs;
6688
for(var entry in jobs){this.addToQueue(jobs[entry]);
6689
}this.__reflowBorderX(value);
6690
this.__reflowBorderY(value);
6691
}else{if(edge==="left"||edge==="right"){this.__reflowBorderX(value);
6692
}else{this.__reflowBorderY(value);
6693
}this.addToQueue(this.__borderJobs[edge]);
6694
}this.__borderObject=value;
7653
},
6695
},
7654
getWidthValue:function(){if(this._computedWidthValue!=null){return this._computedWidthValue;
6696
__reflowBorderX:function(value){var oldLeftWidth=this._cachedBorderLeft;
6697
var oldRightWidth=this._cachedBorderRight;
6698
this._cachedBorderLeft=value?value.getWidthLeft():0;
6699
this._cachedBorderRight=value?value.getWidthRight():0;
6700
if((oldLeftWidth+oldRightWidth)!=(this._cachedBorderLeft+this._cachedBorderRight)){this._invalidateFrameWidth();
6701
}},
6702
__reflowBorderY:function(value){var oldTopWidth=this._cachedBorderTop;
6703
var oldBottomWidth=this._cachedBorderBottom;
6704
this._cachedBorderTop=value?value.getWidthTop():0;
6705
this._cachedBorderBottom=value?value.getWidthBottom():0;
6706
if((oldTopWidth+oldBottomWidth)!=(this._cachedBorderTop+this._cachedBorderBottom)){this._invalidateFrameHeight();
6707
}},
6708
renderBorder:function(changes){var value=this.__borderObject;
6709
if(value){if(changes.borderTop){value.renderTop(this);
7655
}
6710
}
7656
switch(this._computedWidthType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedWidthParsed);
6711
if(changes.borderRight){value.renderRight(this);
7657
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedWidthParsed);
7658
case qx.ui.core.Widget.TYPE_AUTO:return this._computedWidthValue=this.getPreferredBoxWidth();
7659
case qx.ui.core.Widget.TYPE_FLEX:if(this.getParent().getLayoutImpl().computeChildrenFlexWidth===undefined){throw new Error("Widget "+this+": having horizontal flex size (width="+this.getWidth()+") but parent layout "+this.getParent()+" does not support it");
7660
}this.getParent().getLayoutImpl().computeChildrenFlexWidth();
7661
return this._computedWidthValue=this._computedWidthFlexValue;
7662
}return null;
7663
},
7664
getMinWidthValue:function(){if(this._computedMinWidthValue!=null){return this._computedMinWidthValue;
7665
}
6712
}
7666
switch(this._computedMinWidthType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedMinWidthParsed);
6713
if(changes.borderBottom){value.renderBottom(this);
7667
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedMinWidthParsed);
7668
case qx.ui.core.Widget.TYPE_AUTO:return this._computedMinWidthValue=this.getPreferredBoxWidth();
7669
}return null;
7670
},
7671
getMaxWidthValue:function(){if(this._computedMaxWidthValue!=null){return this._computedMaxWidthValue;
7672
}
6714
}
7673
switch(this._computedMaxWidthType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedMaxWidthParsed);
6715
if(changes.borderLeft){value.renderLeft(this);
7674
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedMaxWidthParsed);
6716
}}else{var border=qx.ui.core.Border;
7675
case qx.ui.core.Widget.TYPE_AUTO:return this._computedMaxWidthValue=this.getPreferredBoxWidth();
6717
if(changes.borderTop){border.resetTop(this);
7676
}return null;
7677
},
7678
getLeftValue:function(){if(this._computedLeftValue!=null){return this._computedLeftValue;
7679
}
6718
}
7680
switch(this._computedLeftType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedLeftValue=this._computeValuePixel(this._computedLeftParsed);
6719
if(changes.borderRight){border.resetRight(this);
7681
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedLeftValue=this._computeValuePercentX(this._computedLeftParsed);
7682
}return null;
7683
},
7684
getRightValue:function(){if(this._computedRightValue!=null){return this._computedRightValue;
7685
}
6720
}
7686
switch(this._computedRightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedRightValue=this._computeValuePixel(this._computedRightParsed);
6721
if(changes.borderBottom){border.resetBottom(this);
7687
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedRightValue=this._computeValuePercentX(this._computedRightParsed);
7688
}return null;
7689
},
7690
getHeightValue:function(){if(this._computedHeightValue!=null){return this._computedHeightValue;
7691
}
6722
}
7692
switch(this._computedHeightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedHeightValue=this._computeValuePixelLimit(this._computedHeightParsed);
6723
if(changes.borderLeft){border.resetLeft(this);
7693
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedHeightValue=this._computeValuePercentYLimit(this._computedHeightParsed);
6724
}}},
7694
case qx.ui.core.Widget.TYPE_AUTO:return this._computedHeightValue=this.getPreferredBoxHeight();
6725
prepareEnhancedBorder:qx.core.Variant.select("qx.client",
7695
case qx.ui.core.Widget.TYPE_FLEX:if(this.getParent().getLayoutImpl().computeChildrenFlexHeight===undefined){throw new Error("Widget "+this+": having vertical flex size (height="+this.getHeight()+") but parent layout "+this.getParent()+" does not support it");
6726
{"gecko":qx.lang.Function.returnTrue,
7696
}this.getParent().getLayoutImpl().computeChildrenFlexHeight();
6727
"default":function(){var elem=this.getElement();
7697
return this._computedHeightValue=this._computedHeightFlexValue;
6728
var cl=this._borderElement=document.createElement("div");
7698
}return null;
6729
var es=elem.style;
6730
var cs=this._innerStyle=cl.style;
6731
if(qx.core.Variant.isSet("qx.client",
6732
"mshtml")){}else{cs.width=cs.height="100%";
6733
}cs.position="absolute";
6734
for(var i in this._styleProperties){switch(i){case "zIndex":case "filter":case "display":break;
6735
default:cs[i]=es[i];
6736
es[i]="";
6737
}}
6738
for(var i in this._htmlProperties){switch(i){case "unselectable":cl.unselectable=this._htmlProperties[i];
6739
}}while(elem.firstChild){cl.appendChild(elem.firstChild);
6740
}elem.appendChild(cl);
6741
}}),
6742
_applyPaddingTop:function(value,
6743
old){this.addToQueue("paddingTop");
6744
this._invalidateFrameHeight();
7699
},
6745
},
7700
getMinHeightValue:function(){if(this._computedMinHeightValue!=null){return this._computedMinHeightValue;
6746
_applyPaddingRight:function(value,
7701
}
6747
old){this.addToQueue("paddingRight");
7702
switch(this._computedMinHeightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedMinHeightValue=this._computeValuePixelLimit(this._computedMinHeightParsed);
6748
this._invalidateFrameWidth();
7703
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedMinHeightValue=this._computeValuePercentYLimit(this._computedMinHeightParsed);
7704
case qx.ui.core.Widget.TYPE_AUTO:return this._computedMinHeightValue=this.getPreferredBoxHeight();
7705
}return null;
7706
},
6749
},
7707
getMaxHeightValue:function(){if(this._computedMaxHeightValue!=null){return this._computedMaxHeightValue;
6750
_applyPaddingBottom:function(value,
7708
}
6751
old){this.addToQueue("paddingBottom");
7709
switch(this._computedMaxHeightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedMaxHeightValue=this._computeValuePixelLimit(this._computedMaxHeightParsed);
6752
this._invalidateFrameHeight();
7710
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedMaxHeightValue=this._computeValuePercentYLimit(this._computedMaxHeightParsed);
7711
case qx.ui.core.Widget.TYPE_AUTO:return this._computedMaxHeightValue=this.getPreferredBoxHeight();
7712
}return null;
7713
},
6753
},
7714
getTopValue:function(){if(this._computedTopValue!=null){return this._computedTopValue;
6754
_applyPaddingLeft:function(value,
7715
}
6755
old){this.addToQueue("paddingLeft");
7716
switch(this._computedTopType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedTopValue=this._computeValuePixel(this._computedTopParsed);
6756
this._invalidateFrameWidth();
7717
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedTopValue=this._computeValuePercentY(this._computedTopParsed);
7718
}return null;
7719
},
6757
},
7720
getBottomValue:function(){if(this._computedBottomValue!=null){return this._computedBottomValue;
6758
renderPadding:function(changes){},
7721
}
6759
_applyMarginLeft:function(value,
7722
switch(this._computedBottomType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedBottomValue=this._computeValuePixel(this._computedBottomParsed);
6760
old){this.addToQueue("marginLeft");
7723
case qx.ui.core.Widget.TYPE_PERCENT:return this._computedBottomValue=this._computeValuePercentY(this._computedBottomParsed);
7724
}return null;
7725
},
6761
},
7726
_computeFrameWidth:function(){var fw=this._cachedBorderLeft+this.getPaddingLeft()+this.getPaddingRight()+this._cachedBorderRight;
6762
_applyMarginRight:function(value,
7727
switch(this.getOverflow()){case "scroll":case "scrollY":fw+=qx.ui.core.Widget.SCROLLBAR_SIZE;
6763
old){this.addToQueue("marginRight");
7728
break;
7729
case "auto":break;
7730
}return fw;
7731
},
6764
},
7732
_computeFrameHeight:function(){var fh=this._cachedBorderTop+this.getPaddingTop()+this.getPaddingBottom()+this._cachedBorderBottom;
6765
_applyMarginTop:function(value,
7733
switch(this.getOverflow()){case "scroll":case "scrollX":fh+=qx.ui.core.Widget.SCROLLBAR_SIZE;
6766
old){this.addToQueue("marginTop");
7734
break;
6767
},
7735
case "auto":break;
6768
_applyMarginBottom:function(value,
7736
}return fh;
6769
old){this.addToQueue("marginBottom");
6770
},
6771
execute:function(){var cmd=this.getCommand();
6772
if(cmd){cmd.execute(this);
6773
}this.createDispatchEvent("execute");
6774
},
6775
_visualPropertyCheck:function(){if(!this.isCreated()){throw new Error(this.classname+": Element must be created previously!");
6776
}},
6777
setScrollLeft:function(nScrollLeft){this._visualPropertyCheck();
6778
this._getTargetNode().scrollLeft=nScrollLeft;
7737
},
6779
},
7738
_invalidateFrameDimensions:function(){this._invalidateFrameWidth();
6780
setScrollTop:function(nScrollTop){this._visualPropertyCheck();
7739
this._invalidateFrameHeight();
6781
this._getTargetNode().scrollTop=nScrollTop;
7740
},
6782
},
7741
_invalidatePreferredInnerDimensions:function(){this._invalidatePreferredInnerWidth();
6783
getOffsetLeft:function(){this._visualPropertyCheck();
7742
this._invalidatePreferredInnerHeight();
6784
return qx.html.Offset.getLeft(this.getElement());
7743
},
6785
},
7744
_computePreferredBoxWidth:function(){try{return Math.max(0,
6786
getOffsetTop:function(){this._visualPropertyCheck();
7745
this.getPreferredInnerWidth()+this.getFrameWidth());
6787
return qx.html.Offset.getTop(this.getElement());
7746
}catch(ex){this.error("_computePreferredBoxWidth failed",
7747
ex);
7748
}},
7749
_computePreferredBoxHeight:function(){try{return Math.max(0,
7750
this.getPreferredInnerHeight()+this.getFrameHeight());
7751
}catch(ex){this.error("_computePreferredBoxHeight failed",
7752
ex);
7753
}},
7754
_initialLayoutDone:false,
7755
addToLayoutChanges:function(p){if(this._isDisplayable){this.getParent()._addChildToChildrenQueue(this);
7756
}return this._layoutChanges[p]=true;
7757
},
6788
},
7758
addToQueue:function(p){this._initialLayoutDone?this.addToJobQueue(p):this.addToLayoutChanges(p);
6789
getScrollLeft:function(){this._visualPropertyCheck();
6790
return this._getTargetNode().scrollLeft;
7759
},
6791
},
7760
addToQueueRuntime:function(p){return !this._initialLayoutDone||this.addToJobQueue(p);
6792
getScrollTop:function(){this._visualPropertyCheck();
6793
return this._getTargetNode().scrollTop;
7761
},
6794
},
7762
_computeHasPercentX:function(){return (this._computedLeftTypePercent||this._computedWidthTypePercent||this._computedMinWidthTypePercent||this._computedMaxWidthTypePercent||this._computedRightTypePercent);
6795
getClientWidth:function(){this._visualPropertyCheck();
6796
return this._getTargetNode().clientWidth;
7763
},
6797
},
7764
_computeHasPercentY:function(){return (this._computedTopTypePercent||this._computedHeightTypePercent||this._computedMinHeightTypePercent||this._computedMaxHeightTypePercent||this._computedBottomTypePercent);
6798
getClientHeight:function(){this._visualPropertyCheck();
6799
return this._getTargetNode().clientHeight;
7765
},
6800
},
7766
_computeHasAutoX:function(){return (this._computedWidthTypeAuto||this._computedMinWidthTypeAuto||this._computedMaxWidthTypeAuto);
6801
getOffsetWidth:function(){this._visualPropertyCheck();
6802
return this.getElement().offsetWidth;
7767
},
6803
},
7768
_computeHasAutoY:function(){return (this._computedHeightTypeAuto||this._computedMinHeightTypeAuto||this._computedMaxHeightTypeAuto);
6804
getOffsetHeight:function(){this._visualPropertyCheck();
6805
return this.getElement().offsetHeight;
7769
},
6806
},
7770
_computeHasFlexX:function(){return this._computedWidthTypeFlex;
6807
getScrollWidth:function(){this._visualPropertyCheck();
6808
return this._getTargetNode().scrollWidth;
7771
},
6809
},
7772
_computeHasFlexY:function(){return this._computedHeightTypeFlex;
6810
getScrollHeight:function(){this._visualPropertyCheck();
6811
return this._getTargetNode().scrollHeight;
7773
},
6812
},
7774
_evalUnitsPixelPercentAutoFlex:function(value){switch(value){case "auto":return qx.ui.core.Widget.TYPE_AUTO;
6813
scrollIntoView:function(alignTopLeft){this.scrollIntoViewX(alignTopLeft);
7775
case Infinity:case -Infinity:return qx.ui.core.Widget.TYPE_NULL;
6814
this.scrollIntoViewY(alignTopLeft);
7776
}
7777
switch(typeof value){case "number":return isNaN(value)?qx.ui.core.Widget.TYPE_NULL:qx.ui.core.Widget.TYPE_PIXEL;
7778
case "string":return value.indexOf("%")!=-1?qx.ui.core.Widget.TYPE_PERCENT:value.indexOf("*")!=-1?qx.ui.core.Widget.TYPE_FLEX:qx.ui.core.Widget.TYPE_NULL;
7779
}return qx.ui.core.Widget.TYPE_NULL;
7780
},
6815
},
7781
_evalUnitsPixelPercentAuto:function(value){switch(value){case "auto":return qx.ui.core.Widget.TYPE_AUTO;
6816
scrollIntoViewX:function(alignLeft){if(!this._isCreated||!this._isDisplayable){this.warn("The function scrollIntoViewX can only be called after the widget is created!");
7782
case Infinity:case -Infinity:return qx.ui.core.Widget.TYPE_NULL;
6817
return false;
7783
}
6818
}return qx.html.ScrollIntoView.scrollX(this.getElement(),
7784
switch(typeof value){case "number":return isNaN(value)?qx.ui.core.Widget.TYPE_NULL:qx.ui.core.Widget.TYPE_PIXEL;
6819
alignLeft);
7785
case "string":return value.indexOf("%")!=-1?qx.ui.core.Widget.TYPE_PERCENT:qx.ui.core.Widget.TYPE_NULL;
7786
}return qx.ui.core.Widget.TYPE_NULL;
7787
},
6820
},
7788
_evalUnitsPixelPercent:function(value){switch(value){case Infinity:case -Infinity:return qx.ui.core.Widget.TYPE_NULL;
6821
scrollIntoViewY:function(alignTop){if(!this._isCreated||!this._isDisplayable){this.warn("The function scrollIntoViewY can only be called after the widget is created!");
7789
}
6822
return false;
7790
switch(typeof value){case "number":return isNaN(value)?qx.ui.core.Widget.TYPE_NULL:qx.ui.core.Widget.TYPE_PIXEL;
6823
}return qx.html.ScrollIntoView.scrollY(this.getElement(),
7791
case "string":return value.indexOf("%")!=-1?qx.ui.core.Widget.TYPE_PERCENT:qx.ui.core.Widget.TYPE_NULL;
6824
alignTop);
7792
}return qx.ui.core.Widget.TYPE_NULL;
7793
},
6825
},
7794
_unitDetectionPixelPercentAutoFlex:function(name,
6826
supportsDrop:function(dragCache){var supportsDropMethod=this.getSupportsDropMethod();
7795
value){var r=qx.ui.core.Widget.layoutPropertyTypes[name];
6827
if(supportsDropMethod!==null){return supportsDropMethod.call(this,
7796
var s=r.dataType;
6828
dragCache);
7797
var p=r.dataParsed;
6829
}return (this!=dragCache.sourceWidget);
7798
var v=r.dataValue;
6830
}},
7799
var s1=r.typePixel;
6831
settings:{"qx.widgetQueueDebugging":false,
7800
var s2=r.typePercent;
6832
"qx.widgetDebugId":false},
7801
var s3=r.typeAuto;
6833
defer:function(statics,
7802
var s4=r.typeFlex;
6834
members){statics.__initApplyMethods(members);
7803
var s5=r.typeNull;
6835
if(qx.core.Variant.isSet("qx.client",
7804
var wasPercent=this[s2];
6836
"mshtml")){members._renderRuntimeWidth=function(v){this._style.pixelWidth=(v==null)?0:v;
7805
var wasAuto=this[s3];
6837
if(this._innerStyle){this._innerStyle.pixelWidth=(v==null)?0:v-2;
7806
var wasFlex=this[s4];
6838
}};
7807
switch(this[s]=this._evalUnitsPixelPercentAutoFlex(value)){case qx.ui.core.Widget.TYPE_PIXEL:this[s1]=true;
6839
members._renderRuntimeHeight=function(v){this._style.pixelHeight=(v==null)?0:v;
7808
this[s2]=this[s3]=this[s4]=this[s5]=false;
6840
if(this._innerStyle){this._innerStyle.pixelHeight=(v==null)?0:v-2;
7809
this[p]=this[v]=Math.round(value);
6841
}};
7810
break;
6842
members._resetRuntimeWidth=function(){this._style.width="";
7811
case qx.ui.core.Widget.TYPE_PERCENT:this[s2]=true;
6843
if(this._innerStyle){this._innerStyle.width="";
7812
this[s1]=this[s3]=this[s4]=this[s5]=false;
6844
}};
7813
this[p]=parseFloat(value);
6845
members._resetRuntimeHeight=function(){this._style.height="";
7814
this[v]=null;
6846
if(this._innerStyle){this._innerStyle.height="";
7815
break;
6847
}};
7816
case qx.ui.core.Widget.TYPE_AUTO:this[s3]=true;
6848
}statics.__initLayoutProperties(statics);
7817
this[s1]=this[s2]=this[s4]=this[s5]=false;
6849
{if(qx.core.Setting.get("qx.widgetQueueDebugging")){statics.flushGlobalQueues=function(){if(statics._inFlushGlobalQueues||!qx.core.Init.getInstance().getApplication().getUiReady()){return;
7818
this[p]=this[v]=null;
7819
break;
7820
case qx.ui.core.Widget.TYPE_FLEX:this[s4]=true;
7821
this[s1]=this[s2]=this[s3]=this[s5]=false;
7822
this[p]=parseFloat(value);
7823
this[v]=null;
7824
break;
7825
default:this[s5]=true;
7826
this[s1]=this[s2]=this[s3]=this[s4]=false;
7827
this[p]=this[v]=null;
7828
break;
7829
}
7830
if(wasPercent!=this[s2]){switch(name){case "minWidth":case "maxWidth":case "width":case "left":case "right":this._invalidateHasPercentX();
7831
break;
7832
case "maxHeight":case "minHeight":case "height":case "top":case "bottom":this._invalidateHasPercentY();
7833
break;
7834
}}if(wasAuto!=this[s3]){switch(name){case "minWidth":case "maxWidth":case "width":this._invalidateHasAutoX();
7835
break;
7836
case "minHeight":case "maxHeight":case "height":this._invalidateHasAutoY();
7837
break;
7838
}}if(wasFlex!=this[s4]){switch(name){case "width":this._invalidateHasFlexX();
7839
break;
7840
case "height":this._invalidateHasFlexY();
7841
break;
7842
}}},
7843
_unitDetectionPixelPercentAuto:function(name,
7844
value){var r=qx.ui.core.Widget.layoutPropertyTypes[name];
7845
var s=r.dataType;
7846
var p=r.dataParsed;
7847
var v=r.dataValue;
7848
var s1=r.typePixel;
7849
var s2=r.typePercent;
7850
var s3=r.typeAuto;
7851
var s4=r.typeNull;
7852
var wasPercent=this[s2];
7853
var wasAuto=this[s3];
7854
switch(this[s]=this._evalUnitsPixelPercentAuto(value)){case qx.ui.core.Widget.TYPE_PIXEL:this[s1]=true;
7855
this[s2]=this[s3]=this[s4]=false;
7856
this[p]=this[v]=Math.round(value);
7857
break;
7858
case qx.ui.core.Widget.TYPE_PERCENT:this[s2]=true;
7859
this[s1]=this[s3]=this[s4]=false;
7860
this[p]=parseFloat(value);
7861
this[v]=null;
7862
break;
7863
case qx.ui.core.Widget.TYPE_AUTO:this[s3]=true;
7864
this[s1]=this[s2]=this[s4]=false;
7865
this[p]=this[v]=null;
7866
break;
7867
default:this[s4]=true;
7868
this[s1]=this[s2]=this[s3]=false;
7869
this[p]=this[v]=null;
7870
break;
7871
}
7872
if(wasPercent!=this[s2]){switch(name){case "minWidth":case "maxWidth":case "width":case "left":case "right":this._invalidateHasPercentX();
7873
break;
7874
case "minHeight":case "maxHeight":case "height":case "top":case "bottom":this._invalidateHasPercentY();
7875
break;
7876
}}if(wasAuto!=this[s3]){switch(name){case "minWidth":case "maxWidth":case "width":this._invalidateHasAutoX();
7877
break;
7878
case "minHeight":case "maxHeight":case "height":this._invalidateHasAutoY();
7879
break;
7880
}}},
7881
_unitDetectionPixelPercent:function(name,
7882
value){var r=qx.ui.core.Widget.layoutPropertyTypes[name];
7883
var s=r.dataType;
7884
var p=r.dataParsed;
7885
var v=r.dataValue;
7886
var s1=r.typePixel;
7887
var s2=r.typePercent;
7888
var s3=r.typeNull;
7889
var wasPercent=this[s2];
7890
switch(this[s]=this._evalUnitsPixelPercent(value)){case qx.ui.core.Widget.TYPE_PIXEL:this[s1]=true;
7891
this[s2]=this[s3]=false;
7892
this[p]=this[v]=Math.round(value);
7893
break;
7894
case qx.ui.core.Widget.TYPE_PERCENT:this[s2]=true;
7895
this[s1]=this[s3]=false;
7896
this[p]=parseFloat(value);
7897
this[v]=null;
7898
break;
7899
default:this[s3]=true;
7900
this[s1]=this[s2]=false;
7901
this[p]=this[v]=null;
7902
break;
7903
}
6850
}
7904
if(wasPercent!=this[s2]){switch(name){case "minWidth":case "maxWidth":case "width":case "left":case "right":this._invalidateHasPercentX();
6851
if(!(statics._globalWidgetQueue.length>0||statics._globalElementQueue.length>0||statics._globalStateQueue.length>0||statics._globalJobQueue.length>0||statics._globalLayoutQueue.length>0||statics._fastGlobalDisplayQueue.length>0||!qx.lang.Object.isEmpty(statics._lazyGlobalDisplayQueue))){return;
7905
break;
6852
}var globalWidgetQueueLength=statics._globalWidgetQueue.length;
7906
case "minHeight":case "maxHeight":case "height":case "top":case "bottom":this._invalidateHasPercentY();
6853
var globalElementQueueLength=statics._globalElementQueue.length;
7907
break;
6854
var globalStateQueueLength=statics._globalStateQueue.length;
7908
}}},
6855
var globalJobQueueLength=statics._globalJobQueue.length;
7909
getTopLevelWidget:function(){return this._hasParent?this.getParent().getTopLevelWidget():null;
6856
var globalLayoutQueueLength=statics._globalLayoutQueue.length;
6857
var fastGlobalDisplayQueueLength=statics._fastGlobalDisplayQueue.length;
6858
var lazyGlobalDisplayQueueLength=statics._lazyGlobalDisplayQueue?statics._lazyGlobalDisplayQueue.length:0;
6859
statics._inFlushGlobalQueues=true;
6860
var start;
6861
start=(new Date).valueOf();
6862
statics.flushGlobalWidgetQueue();
6863
var vWidgetDuration=(new Date).valueOf()-start;
6864
start=(new Date).valueOf();
6865
statics.flushGlobalStateQueue();
6866
var vStateDuration=(new Date).valueOf()-start;
6867
start=(new Date).valueOf();
6868
statics.flushGlobalElementQueue();
6869
var vElementDuration=(new Date).valueOf()-start;
6870
start=(new Date).valueOf();
6871
statics.flushGlobalJobQueue();
6872
var vJobDuration=(new Date).valueOf()-start;
6873
start=(new Date).valueOf();
6874
statics.flushGlobalLayoutQueue();
6875
var vLayoutDuration=(new Date).valueOf()-start;
6876
start=(new Date).valueOf();
6877
statics.flushGlobalDisplayQueue();
6878
var vDisplayDuration=(new Date).valueOf()-start;
6879
var vSum=vWidgetDuration+vStateDuration+vElementDuration+vJobDuration+vLayoutDuration+vDisplayDuration;
6880
if(vSum>0){var logger=qx.log.Logger.getClassLogger(qx.ui.core.Widget);
6881
logger.debug("Flush Global Queues");
6882
logger.debug("Widgets: "+vWidgetDuration+"ms ("+globalWidgetQueueLength+")");
6883
logger.debug("State: "+vStateDuration+"ms ("+globalStateQueueLength+")");
6884
logger.debug("Element: "+vElementDuration+"ms ("+globalElementQueueLength+")");
6885
logger.debug("Job: "+vJobDuration+"ms ("+globalJobQueueLength+")");
6886
logger.debug("Layout: "+vLayoutDuration+"ms ("+globalLayoutQueueLength+")");
6887
logger.debug("Display: "+vDisplayDuration+"ms (fast:"+fastGlobalDisplayQueueLength+",lazy:"+lazyGlobalDisplayQueueLength+")");
6888
window.status="Flush: Widget:"+vWidgetDuration+" State:"+vStateDuration+" Element:"+vElementDuration+" Job:"+vJobDuration+" Layout:"+vLayoutDuration+" Display:"+vDisplayDuration;
6889
}delete statics._inFlushGlobalQueues;
6890
};
6891
}};
6892
},
6893
destruct:function(){var elem=this.getElement();
6894
if(elem){elem.qx_Widget=null;
6895
}this._disposeFields("_isCreated",
6896
"_inlineEvents",
6897
"_element",
6898
"_style",
6899
"_borderElement",
6900
"_innerStyle",
6901
"_oldParent",
6902
"_styleProperties",
6903
"_htmlProperties",
6904
"_htmlAttributes",
6905
"__states",
6906
"_jobQueue",
6907
"_layoutChanges",
6908
"__borderObject");
6909
}});
6910
6911
6912
6913
6914
/* ID: qx.html.Dimension */
6915
qx.Class.define("qx.html.Dimension",
6916
{statics:{getOuterWidth:function(el){return qx.html.Dimension.getBoxWidth(el)+qx.html.Style.getMarginLeft(el)+qx.html.Style.getMarginRight(el);
7910
},
6917
},
7911
moveSelfBefore:function(vBefore){this.getParent().addBefore(this,
6918
getOuterHeight:function(el){return qx.html.Dimension.getBoxHeight(el)+qx.html.Style.getMarginTop(el)+qx.html.Style.getMarginBottom(el);
7912
vBefore);
7913
},
6919
},
7914
moveSelfAfter:function(vAfter){this.getParent().addAfter(this,
6920
getBoxWidthForZeroHeight:function(el){var h=el.offsetHeight;
7915
vAfter);
6921
if(h==0){var o=el.style.height;
6922
el.style.height="1px";
6923
}var v=el.offsetWidth;
6924
if(h==0){el.style.height=o;
6925
}return v;
7916
},
6926
},
7917
moveSelfToBegin:function(){this.getParent().addAtBegin(this);
6927
getBoxHeightForZeroWidth:function(el){var w=el.offsetWidth;
6928
if(w==0){var o=el.style.width;
6929
el.style.width="1px";
6930
}var v=el.offsetHeight;
6931
if(w==0){el.style.width=o;
6932
}return v;
7918
},
6933
},
7919
moveSelfToEnd:function(){this.getParent().addAtEnd(this);
6934
getBoxWidth:function(el){return el.offsetWidth;
7920
},
6935
},
7921
getPreviousSibling:function(){var p=this.getParent();
6936
getBoxHeight:function(el){return el.offsetHeight;
7922
if(p==null){return null;
7923
}var cs=p.getChildren();
7924
return cs[cs.indexOf(this)-1];
7925
},
6937
},
7926
getNextSibling:function(){var p=this.getParent();
6938
getAreaWidth:qx.core.Variant.select("qx.client",
7927
if(p==null){return null;
6939
{"gecko":function(el){if(el.clientWidth!=0&&el.clientWidth!=(qx.html.Style.getBorderLeft(el)+qx.html.Style.getBorderRight(el))){return el.clientWidth;
7928
}var cs=p.getChildren();
6940
}else{return qx.html.Dimension.getBoxWidth(el)-qx.html.Dimension.getInsetLeft(el)-qx.html.Dimension.getInsetRight(el);
7929
return cs[cs.indexOf(this)+1];
6941
}},
6942
"default":function(el){return el.clientWidth!=0?el.clientWidth:(qx.html.Dimension.getBoxWidth(el)-qx.html.Dimension.getInsetLeft(el)-qx.html.Dimension.getInsetRight(el));
6943
}}),
6944
getAreaHeight:qx.core.Variant.select("qx.client",
6945
{"gecko":function(el){if(el.clientHeight!=0&&el.clientHeight!=(qx.html.Style.getBorderTop(el)+qx.html.Style.getBorderBottom(el))){return el.clientHeight;
6946
}else{return qx.html.Dimension.getBoxHeight(el)-qx.html.Dimension.getInsetTop(el)-qx.html.Dimension.getInsetBottom(el);
6947
}},
6948
"default":function(el){return el.clientHeight!=0?el.clientHeight:(qx.html.Dimension.getBoxHeight(el)-qx.html.Dimension.getInsetTop(el)-qx.html.Dimension.getInsetBottom(el));
6949
}}),
6950
getInnerWidth:function(el){return qx.html.Dimension.getAreaWidth(el)-qx.html.Style.getPaddingLeft(el)-qx.html.Style.getPaddingRight(el);
7930
},
6951
},
7931
getPreviousVisibleSibling:function(){if(!this._hasParent){return null;
6952
getInnerHeight:function(el){return qx.html.Dimension.getAreaHeight(el)-qx.html.Style.getPaddingTop(el)-qx.html.Style.getPaddingBottom(el);
7932
}var vChildren=this.getParent().getVisibleChildren();
7933
return vChildren[vChildren.indexOf(this)-1];
7934
},
6953
},
7935
getNextVisibleSibling:function(){if(!this._hasParent){return null;
6954
getInsetLeft:qx.core.Variant.select("qx.client",
7936
}var vChildren=this.getParent().getVisibleChildren();
6955
{"mshtml":function(el){return el.clientLeft;
7937
return vChildren[vChildren.indexOf(this)+1];
7938
},
6956
},
7939
getPreviousActiveSibling:function(vIgnoreClasses){var vPrev=qx.ui.core.Widget.getActiveSiblingHelper(this,
6957
"default":function(el){return qx.html.Style.getBorderLeft(el);
7940
this.getParent(),
6958
}}),
7941
-1,
6959
getInsetTop:qx.core.Variant.select("qx.client",
7942
vIgnoreClasses,
6960
{"mshtml":function(el){return el.clientTop;
7943
null);
7944
return vPrev?vPrev:this.getParent().getLastActiveChild();
7945
},
6961
},
7946
getNextActiveSibling:function(vIgnoreClasses){var vNext=qx.ui.core.Widget.getActiveSiblingHelper(this,
6962
"default":function(el){return qx.html.Style.getBorderTop(el);
7947
this.getParent(),
6963
}}),
7948
1,
6964
getInsetRight:qx.core.Variant.select("qx.client",
7949
vIgnoreClasses,
6965
{"mshtml":function(el){if(qx.html.Style.getStyleProperty(el,
7950
null);
6966
"overflowY")=="hidden"||el.clientWidth==0){return qx.html.Style.getBorderRight(el);
7951
return vNext?vNext:this.getParent().getFirstActiveChild();
6967
}return Math.max(0,
6968
el.offsetWidth-el.clientLeft-el.clientWidth);
7952
},
6969
},
7953
isFirstChild:function(){return this._hasParent&&this.getParent().getFirstChild()==this;
6970
"default":function(el){if(el.clientWidth==0){var ov=qx.html.Style.getStyleProperty(el,
6971
"overflow");
6972
var sbv=ov=="scroll"||ov=="-moz-scrollbars-vertical"?16:0;
6973
return Math.max(0,
6974
qx.html.Style.getBorderRight(el)+sbv);
6975
}return Math.max(0,
6976
el.offsetWidth-el.clientWidth-qx.html.Style.getBorderLeft(el));
6977
}}),
6978
getInsetBottom:qx.core.Variant.select("qx.client",
6979
{"mshtml":function(el){if(qx.html.Style.getStyleProperty(el,
6980
"overflowX")=="hidden"||el.clientHeight==0){return qx.html.Style.getBorderBottom(el);
6981
}return Math.max(0,
6982
el.offsetHeight-el.clientTop-el.clientHeight);
7954
},
6983
},
7955
isLastChild:function(){return this._hasParent&&this.getParent().getLastChild()==this;
6984
"default":function(el){if(el.clientHeight==0){var ov=qx.html.Style.getStyleProperty(el,
6985
"overflow");
6986
var sbv=ov=="scroll"||ov=="-moz-scrollbars-horizontal"?16:0;
6987
return Math.max(0,
6988
qx.html.Style.getBorderBottom(el)+sbv);
6989
}return Math.max(0,
6990
el.offsetHeight-el.clientHeight-qx.html.Style.getBorderTop(el));
6991
}}),
6992
getScrollBarSizeLeft:function(el){return 0;
7956
},
6993
},
7957
isFirstVisibleChild:function(){return this._hasParent&&this.getParent().getFirstVisibleChild()==this;
6994
getScrollBarSizeTop:function(el){return 0;
7958
},
6995
},
7959
isLastVisibleChild:function(){return this._hasParent&&this.getParent().getLastVisibleChild()==this;
6996
getScrollBarSizeRight:function(el){return qx.html.Dimension.getInsetRight(el)-qx.html.Style.getBorderRight(el);
7960
},
6997
},
7961
hasState:function(vState){return this.__states&&this.__states[vState]?true:false;
6998
getScrollBarSizeBottom:function(el){return qx.html.Dimension.getInsetBottom(el)-qx.html.Style.getBorderBottom(el);
7962
},
6999
},
7963
addState:function(vState){if(!this.__states){this.__states={};
7000
getScrollBarVisibleX:function(el){return qx.html.Dimension.getScrollBarSizeRight(el)>0;
7001
},
7002
getScrollBarVisibleY:function(el){return qx.html.Dimension.getScrollBarSizeBottom(el)>0;
7003
}}});
7004
7005
7006
7007
7008
/* ID: qx.html.Style */
7009
qx.Class.define("qx.html.Style",
7010
{statics:{getStylePropertySure:qx.lang.Object.select((document.defaultView&&document.defaultView.getComputedStyle)?"hasComputed":"noComputed",
7011
{"hasComputed":function(el,
7012
prop){return !el?null:el.ownerDocument?el.ownerDocument.defaultView.getComputedStyle(el,
7013
"")[prop]:el.style[prop];
7014
},
7015
"noComputed":qx.core.Variant.select("qx.client",
7016
{"mshtml":function(el,
7017
prop){try{if(!el){return null;
7964
}
7018
}
7965
if(!this.__states[vState]){this.__states[vState]=true;
7019
if(el.parentNode&&el.currentStyle){return el.currentStyle[prop];
7966
if(this._hasParent){qx.ui.core.Widget.addToGlobalStateQueue(this);
7020
}else{var v1=el.runtimeStyle[prop];
7967
}}},
7021
if(v1!=null&&typeof v1!="undefined"&&v1!=""){return v1;
7968
removeState:function(vState){if(this.__states&&this.__states[vState]){delete this.__states[vState];
7022
}return el.style[prop];
7969
if(this._hasParent){qx.ui.core.Widget.addToGlobalStateQueue(this);
7023
}}catch(ex){throw new Error("Could not evaluate computed style: "+el+"["+prop+"]: "+ex);
7970
}}},
7971
_styleFromMap:function(data){var styler=qx.core.Property.$$method.style;
7972
var unstyler=qx.core.Property.$$method.unstyle;
7973
var value;
7974
{for(var prop in data){if(!this[styler[prop]]){throw new Error(this.classname+' has no themeable property "'+prop+'"');
7975
}}};
7976
for(var prop in data){value=data[prop];
7977
value==="undefined"?this[unstyler[prop]]():this[styler[prop]](value);
7978
}},
7024
}},
7979
_unstyleFromArray:function(data){var unstyler=qx.core.Property.$$method.unstyle;
7025
"default":function(el,
7980
{for(var i=0,
7026
prop){return !el?null:el.style[prop];
7981
l=data.length;i<l;i++){if(!this[unstyler[data[i]]]){throw new Error(this.classname+' has no themeable property "'+data[i]+'"');
7027
}})}),
7982
}}};
7028
getStyleProperty:qx.lang.Object.select((document.defaultView&&document.defaultView.getComputedStyle)?"hasComputed":"noComputed",
7983
for(var i=0,
7029
{"hasComputed":function(el,
7984
l=data.length;i<l;i++){this[unstyler[data[i]]]();
7030
prop){try{return el.ownerDocument.defaultView.getComputedStyle(el,
7031
"")[prop];
7032
}catch(ex){throw new Error("Could not evaluate computed style: "+el+"["+prop+"]: "+ex);
7033
}},
7034
"noComputed":qx.core.Variant.select("qx.client",
7035
{"mshtml":function(el,
7036
prop){try{return el.currentStyle[prop];
7037
}catch(ex){throw new Error("Could not evaluate computed style: "+el+"["+prop+"]: "+ex);
7038
}},
7039
"default":function(el,
7040
prop){try{return el.style[prop];
7041
}catch(ex){throw new Error("Could not evaluate computed style: "+el+"["+prop+"]");
7042
}}})}),
7043
getStyleSize:function(vElement,
7044
propertyName){return parseInt(qx.html.Style.getStyleProperty(vElement,
7045
propertyName))||0;
7046
},
7047
getMarginLeft:function(vElement){return qx.html.Style.getStyleSize(vElement,
7048
"marginLeft");
7049
},
7050
getMarginTop:function(vElement){return qx.html.Style.getStyleSize(vElement,
7051
"marginTop");
7052
},
7053
getMarginRight:function(vElement){return qx.html.Style.getStyleSize(vElement,
7054
"marginRight");
7055
},
7056
getMarginBottom:function(vElement){return qx.html.Style.getStyleSize(vElement,
7057
"marginBottom");
7058
},
7059
getPaddingLeft:function(vElement){return qx.html.Style.getStyleSize(vElement,
7060
"paddingLeft");
7061
},
7062
getPaddingTop:function(vElement){return qx.html.Style.getStyleSize(vElement,
7063
"paddingTop");
7064
},
7065
getPaddingRight:function(vElement){return qx.html.Style.getStyleSize(vElement,
7066
"paddingRight");
7067
},
7068
getPaddingBottom:function(vElement){return qx.html.Style.getStyleSize(vElement,
7069
"paddingBottom");
7070
},
7071
getBorderLeft:function(vElement){return qx.html.Style.getStyleProperty(vElement,
7072
"borderLeftStyle")=="none"?0:qx.html.Style.getStyleSize(vElement,
7073
"borderLeftWidth");
7074
},
7075
getBorderTop:function(vElement){return qx.html.Style.getStyleProperty(vElement,
7076
"borderTopStyle")=="none"?0:qx.html.Style.getStyleSize(vElement,
7077
"borderTopWidth");
7078
},
7079
getBorderRight:function(vElement){return qx.html.Style.getStyleProperty(vElement,
7080
"borderRightStyle")=="none"?0:qx.html.Style.getStyleSize(vElement,
7081
"borderRightWidth");
7082
},
7083
getBorderBottom:function(vElement){return qx.html.Style.getStyleProperty(vElement,
7084
"borderBottomStyle")=="none"?0:qx.html.Style.getStyleSize(vElement,
7085
"borderBottomWidth");
7086
}}});
7087
7088
7089
7090
7091
/* ID: qx.html.StyleSheet */
7092
qx.Class.define("qx.html.StyleSheet",
7093
{statics:{includeFile:function(vHref){var el=document.createElement("link");
7094
el.type="text/css";
7095
el.rel="stylesheet";
7096
el.href=vHref;
7097
var head=document.getElementsByTagName("head")[0];
7098
head.appendChild(el);
7099
},
7100
createElement:qx.lang.Object.select(document.createStyleSheet?"ie4+":"other",
7101
{"ie4+":function(vCssText){var vSheet=document.createStyleSheet();
7102
if(vCssText){vSheet.cssText=vCssText;
7103
}return vSheet;
7104
},
7105
"other":function(vCssText){var vElement=document.createElement("style");
7106
vElement.type="text/css";
7107
vElement.appendChild(document.createTextNode(vCssText||"body {}"));
7108
document.getElementsByTagName("head")[0].appendChild(vElement);
7109
if(vElement.sheet){return vElement.sheet;
7110
}else{var styles=document.styleSheets;
7111
for(var i=styles.length-1;i>=0;i--){if(styles[i].ownerNode==vElement){return styles[i];
7112
}}}throw "Error: Could not get a reference to the sheet object";
7113
}}),
7114
addRule:qx.lang.Object.select(document.createStyleSheet?"ie4+":"other",
7115
{"ie4+":function(vSheet,
7116
vSelector,
7117
vStyle){vSheet.addRule(vSelector,
7118
vStyle);
7119
},
7120
"other":qx.lang.Object.select(qx.core.Client.getInstance().isSafari2()?"safari2":"other",
7121
{"safari2+":function(vSheet,
7122
vSelector,
7123
vStyle){if(!vSheet._qxRules){vSheet._qxRules={};
7124
}
7125
if(!vSheet._qxRules[vSelector]){var ruleNode=document.createTextNode(vSelector+"{"+vStyle+"}");
7126
vSheet.ownerNode.appendChild(ruleNode);
7127
vSheet._qxRules[vSelector]=ruleNode;
7985
}},
7128
}},
7986
_renderAppearance:function(){if(!this.__states){this.__states={};
7129
"other":function(vSheet,
7987
}this._applyStateStyleFocus(this.__states);
7130
vSelector,
7988
var vAppearance=this.getAppearance();
7131
vStyle){vSheet.insertRule(vSelector+"{"+vStyle+"}",
7989
if(vAppearance){try{var r=qx.theme.manager.Appearance.getInstance().styleFrom(vAppearance,
7132
vSheet.cssRules.length);
7990
this.__states);
7133
}})}),
7991
if(r){this._styleFromMap(r);
7134
removeRule:qx.lang.Object.select(document.createStyleSheet?"ie4+":"other",
7992
}}catch(ex){this.error("Could not apply state appearance",
7135
{"ie4+":function(vSheet,
7993
ex);
7136
vSelector){var vRules=vSheet.rules;
7137
var vLength=vRules.length;
7138
for(var i=vLength-1;i>=0;i--){if(vRules[i].selectorText==vSelector){vSheet.removeRule(i);
7994
}}},
7139
}}},
7995
_resetAppearanceThemeWrapper:function(vNewAppearanceTheme,
7140
"other":qx.lang.Object.select(qx.core.Client.getInstance().isSafari2()?"safari2":"other",
7996
vOldAppearanceTheme){var vAppearance=this.getAppearance();
7141
{"safari2+":function(vSheet,
7997
if(vAppearance){var vAppearanceManager=qx.theme.manager.Appearance.getInstance();
7142
vSelector){var warn=function(){qx.log.Logger.ROOT_LOGGER.warn("In Safari/Webkit you can only remove rules that are created using qx.html.StyleSheet.addRule");
7998
var vOldAppearanceProperties=vAppearanceManager.styleFromTheme(vOldAppearanceTheme,
7143
};
7999
vAppearance,
7144
if(!vSheet._qxRules){warn();
8000
this.__states);
7145
}var ruleNode=vSheet._qxRules[vSelector];
8001
var vNewAppearanceProperties=vAppearanceManager.styleFromTheme(vNewAppearanceTheme,
7146
if(ruleNode){vSheet.ownerNode.removeChild(ruleNode);
8002
vAppearance,
7147
vSheet._qxRules[vSelector]=null;
8003
this.__states);
7148
}else{warn();
8004
var vUnstyleList=[];
8005
for(var prop in vOldAppearanceProperties){if(vNewAppearanceProperties[prop]===undefined){vUnstyleList.push(prop);
8006
}}this._unstyleFromArray(vUnstyleList);
8007
this._styleFromMap(vNewAppearanceProperties);
8008
}},
7149
}},
8009
_applyStateStyleFocus:qx.core.Variant.select("qx.client",
7150
"other":function(vSheet,
8010
{"mshtml":function(vStates){},
7151
vSelector){var vRules=vSheet.cssRules;
8011
"gecko":function(vStates){if(vStates.focused){if(!qx.event.handler.FocusHandler.mouseFocus&&!this.getHideFocus()){this.setStyleProperty("MozOutline",
7152
var vLength=vRules.length;
8012
"1px dotted invert");
7153
for(var i=vLength-1;i>=0;i--){if(vRules[i].selectorText==vSelector){vSheet.deleteRule(i);
8013
}}else{this.removeStyleProperty("MozOutline");
7154
}}}})}),
7155
removeAllRules:qx.lang.Object.select(document.createStyleSheet?"ie4+":"other",
7156
{"ie4+":function(vSheet){var vRules=vSheet.rules;
7157
var vLength=vRules.length;
7158
for(var i=vLength-1;i>=0;i--){vSheet.removeRule(i);
8014
}},
7159
}},
8015
"default":function(vStates){if(vStates.focused){if(!qx.event.handler.FocusHandler.mouseFocus&&!this.getHideFocus()){this.setStyleProperty("outline",
7160
"other":qx.lang.Object.select(qx.core.Client.getInstance().isSafari2()?"safari2":"other",
8016
"1px dotted invert");
7161
{"safari2+":function(vSheet){var node=vSheet.ownerNode;
8017
}}else{this.removeStyleProperty("outline");
7162
var rules=node.childNodes;
8018
}}}),
7163
while(rules.length>0){node.removeChild(rules[0]);
8019
addToStateQueue:function(){qx.ui.core.Widget.addToGlobalStateQueue(this);
7164
}},
7165
"other":function(vSheet){var vRules=vSheet.cssRules;
7166
var vLength=vRules.length;
7167
for(var i=vLength-1;i>=0;i--){vSheet.deleteRule(i);
7168
}}})}),
7169
addImport:qx.lang.Object.select(document.createStyleSheet?"ie4+":"other",
7170
{"ie4+":function(vSheet,
7171
vUrl){vSheet.addImport(vUrl);
8020
},
7172
},
8021
recursiveAddToStateQueue:function(){this.addToStateQueue();
7173
"other":qx.lang.Object.select(qx.core.Client.getInstance().isSafari2()?"safari2":"other",
7174
{"safari2+":function(vSheet,
7175
vUrl){vSheet.ownerNode.appendChild(document.createTextNode('@import "'+vUrl+'";'));
8022
},
7176
},
8023
_applyAppearance:function(value,
7177
"other":function(vSheet,
8024
old){if(!this.__states){this.__states={};
7178
vUrl){vSheet.insertRule('@import "'+vUrl+'";',
8025
}var vAppearanceManager=qx.theme.manager.Appearance.getInstance();
7179
vSheet.cssRules.length);
8026
if(value){var vNewAppearanceProperties=vAppearanceManager.styleFrom(value,
7180
}})}),
8027
this.__states)||{};
7181
removeImport:qx.lang.Object.select(document.createStyleSheet?"ie4+":"other",
8028
}
7182
{"ie4+":function(vSheet,
8029
if(old){var vOldAppearanceProperties=vAppearanceManager.styleFrom(old,
7183
vUrl){var vImports=vSheet.imports;
8030
this.__states)||{};
7184
var vLength=vImports.length;
8031
var vUnstyleList=[];
7185
for(var i=vLength-1;i>=0;i--){if(vImports[i].href==vUrl){vSheet.removeImport(i);
8032
for(var prop in vOldAppearanceProperties){if(!vNewAppearanceProperties||!(prop in vNewAppearanceProperties)){vUnstyleList.push(prop);
7186
}}},
8033
}}}
7187
"other":function(vSheet,
8034
if(vUnstyleList){this._unstyleFromArray(vUnstyleList);
7188
vUrl){var vRules=vSheet.cssRules;
8035
}
7189
var vLength=vRules.length;
8036
if(vNewAppearanceProperties){this._styleFromMap(vNewAppearanceProperties);
7190
for(var i=vLength-1;i>=0;i--){if(vRules[i].href==vUrl){vSheet.deleteRule(i);
8037
}},
7191
}}}}),
8038
_recursiveAppearanceThemeUpdate:function(vNewAppearanceTheme,
7192
removeAllImports:qx.lang.Object.select(document.createStyleSheet?"ie4+":"other",
8039
vOldAppearanceTheme){try{this._resetAppearanceThemeWrapper(vNewAppearanceTheme,
7193
{"ie4+":function(vSheet){var vImports=vSheet.imports;
8040
vOldAppearanceTheme);
7194
var vLength=vImports.length;
8041
}catch(ex){this.error("Failed to update appearance theme",
7195
for(var i=vLength-1;i>=0;i--){vSheet.removeImport(i);
8042
ex);
8043
}},
7196
}},
8044
_applyElementData:function(elem){},
7197
"other":function(vSheet){var vRules=vSheet.cssRules;
8045
setHtmlProperty:function(propName,
7198
var vLength=vRules.length;
8046
value){if(!this._htmlProperties){this._htmlProperties={};
7199
for(var i=vLength-1;i>=0;i--){if(vRules[i].type==vRules[i].IMPORT_RULE){vSheet.deleteRule(i);
8047
}this._htmlProperties[propName]=value;
7200
}}}})}});
8048
if(this._isCreated&&this.getElement()[propName]!=value){this.getElement()[propName]=value;
7201
8049
}return true;
7202
7203
7204
7205
/* ID: qx.ui.core.Parent */
7206
qx.Class.define("qx.ui.core.Parent",
7207
{extend:qx.ui.core.Widget,
7208
type:"abstract",
7209
construct:function(){this.base(arguments);
7210
this._children=[];
7211
this._layoutImpl=this._createLayoutImpl();
8050
},
7212
},
8051
removeHtmlProperty:qx.core.Variant.select("qx.client",
7213
properties:{focusHandler:{check:"qx.event.handler.FocusHandler",
8052
{"mshtml":function(propName){if(!this._htmlProperties){return;
7214
apply:"_applyFocusHandler",
8053
}delete this._htmlProperties[propName];
7215
nullable:true},
8054
if(this._isCreated){this.getElement().removeAttribute(propName);
7216
activeChild:{check:"qx.ui.core.Widget",
8055
}return true;
7217
apply:"_applyActiveChild",
7218
event:"changeActiveChild",
7219
nullable:true},
7220
focusedChild:{check:"qx.ui.core.Widget",
7221
apply:"_applyFocusedChild",
7222
event:"changeFocusedChild",
7223
nullable:true},
7224
visibleChildren:{_cached:true,
7225
defaultValue:null}},
7226
members:{isFocusRoot:function(){return this.getFocusHandler()!=null;
8056
},
7227
},
8057
"default":function(propName){if(!this._htmlProperties){return;
7228
getFocusRoot:function(){if(this.isFocusRoot()){return this;
8058
}delete this._htmlProperties[propName];
7229
}
8059
if(this._isCreated){this.getElement().removeAttribute(propName);
7230
if(this._hasParent){return this.getParent().getFocusRoot();
8060
delete this.getElement()[propName];
7231
}return null;
8061
}return true;
8062
}}),
8063
getHtmlProperty:function(propName){if(!this._htmlProperties){return "";
8064
}return this._htmlProperties[propName]||"";
8065
},
7232
},
8066
_applyHtmlProperties:function(elem){var vProperties=this._htmlProperties;
7233
activateFocusRoot:function(){if(this._focusHandler){return;
8067
if(vProperties){var propName;
7234
}this._focusHandler=new qx.event.handler.FocusHandler(this);
8068
for(propName in vProperties){elem[propName]=vProperties[propName];
7235
this.setFocusHandler(this._focusHandler);
8069
}}},
8070
_generateHtmlId:function(){var id=this.classname+"."+qx.ui.core.Widget._idCounter++;
8071
this.debug("setting autogenerated HTML id to "+id);
8072
this.setHtmlProperty("id",
8073
id);
8074
},
7236
},
8075
setHtmlAttribute:function(propName,
7237
_onfocuskeyevent:function(e){this.getFocusHandler()._onkeyevent(this,
8076
value){qx.log.Logger.deprecatedMethodWarning(arguments.callee,
7238
e);
8077
"Use setHtmlProperty instead");
8078
if(!this._htmlAttributes){this._htmlAttributes={};
8079
}this._htmlAttributes[propName]=value;
8080
if(this._isCreated){this.getElement().setAttribute(propName,
8081
value);
8082
}return true;
8083
},
7239
},
8084
removeHtmlAttribute:function(propName){qx.log.Logger.deprecatedMethodWarning(arguments.callee,
7240
_applyFocusHandler:function(value,
8085
"Use removeHtmlProperty instead");
7241
old){if(value){this.addEventListener("keypress",
8086
if(!this._htmlAttributes){return;
7242
this._onfocuskeyevent);
8087
}delete this._htmlAttributes[propName];
7243
if(this.getTabIndex()<1){this.setTabIndex(1);
8088
if(this._isCreated){this.getElement().removeAttribute(propName);
7244
}this.setHideFocus(true);
8089
}return true;
7245
this.setActiveChild(this);
7246
}else{this.removeEventListener("keydown",
7247
this._onfocuskeyevent);
7248
this.removeEventListener("keypress",
7249
this._onfocuskeyevent);
7250
this.setTabIndex(-1);
7251
this.setHideFocus(false);
7252
}},
7253
_applyActiveChild:function(value,
7254
old){},
7255
_applyFocusedChild:function(value,
7256
old){var vFocusValid=value!=null;
7257
var vBlurValid=old!=null;
7258
if(qx.Class.isDefined("qx.ui.popup.PopupManager")&&vFocusValid){var vMgr=qx.ui.popup.PopupManager.getInstance();
7259
if(vMgr){vMgr.update(value);
7260
}}
7261
if(vBlurValid){if(old.hasEventListeners("focusout")){var vEventObject=new qx.event.type.FocusEvent("focusout",
7262
old);
7263
if(vFocusValid){vEventObject.setRelatedTarget(value);
7264
}old.dispatchEvent(vEventObject);
7265
vEventObject.dispose();
7266
}}
7267
if(vFocusValid){if(value.hasEventListeners("focusin")){var vEventObject=new qx.event.type.FocusEvent("focusin",
7268
value);
7269
if(vBlurValid){vEventObject.setRelatedTarget(old);
7270
}value.dispatchEvent(vEventObject);
7271
vEventObject.dispose();
7272
}}
7273
if(vBlurValid){if(this.getActiveChild()==old&&!vFocusValid){this.setActiveChild(null);
7274
}old.setFocused(false);
7275
var vEventObject=new qx.event.type.FocusEvent("blur",
7276
old);
7277
if(vFocusValid){vEventObject.setRelatedTarget(value);
7278
}old.dispatchEvent(vEventObject);
7279
if(qx.Class.isDefined("qx.ui.popup.ToolTipManager")){var vMgr=qx.ui.popup.ToolTipManager.getInstance();
7280
if(vMgr){vMgr.handleBlur(vEventObject);
7281
}}vEventObject.dispose();
7282
}
7283
if(vFocusValid){this.setActiveChild(value);
7284
value.setFocused(true);
7285
qx.event.handler.EventHandler.getInstance().setFocusRoot(this);
7286
var vEventObject=new qx.event.type.FocusEvent("focus",
7287
value);
7288
if(vBlurValid){vEventObject.setRelatedTarget(old);
7289
}value.dispatchEvent(vEventObject);
7290
if(qx.Class.isDefined("qx.ui.popup.ToolTipManager")){var vMgr=qx.ui.popup.ToolTipManager.getInstance();
7291
if(vMgr){vMgr.handleFocus(vEventObject);
7292
}}vEventObject.dispose();
7293
}},
7294
_layoutImpl:null,
7295
_createLayoutImpl:function(){return null;
8090
},
7296
},
8091
getHtmlAttribute:function(propName){if(!this._htmlAttributes){return "";
7297
getLayoutImpl:function(){return this._layoutImpl;
8092
}return this._htmlAttributes[propName]||"";
8093
},
7298
},
8094
_applyHtmlAttributes:function(elem){var vAttributes=this._htmlAttributes;
7299
getChildren:function(){return this._children;
8095
if(vAttributes){var propName;
8096
for(propName in vAttributes){elem.setAttribute(propName,
8097
vAttributes[propName]);
8098
}}},
8099
getStyleProperty:function(propName){if(!this._styleProperties){return "";
8100
}return this._styleProperties[propName]||"";
8101
},
7300
},
8102
__outerElementStyleProperties:{cursor:true,
7301
getChildrenLength:function(){return this.getChildren().length;
8103
zIndex:true,
8104
filter:true,
8105
display:true,
8106
visibility:true},
8107
setStyleProperty:function(propName,
8108
value){if(!this._styleProperties){this._styleProperties={};
8109
}this._styleProperties[propName]=value;
8110
if(this._isCreated){var elem=this.__outerElementStyleProperties[propName]?this.getElement():this._getTargetNode();
8111
if(elem){elem.style[propName]=(value==null)?"":value;
8112
}}},
8113
removeStyleProperty:function(propName){if(!this._styleProperties){return;
8114
}delete this._styleProperties[propName];
8115
if(this._isCreated){var elem=this.__outerElementStyleProperties[propName]?this.getElement():this._getTargetNode();
8116
if(elem){elem.style[propName]="";
8117
}}},
8118
_applyStyleProperties:function(elem){var vProperties=this._styleProperties;
8119
if(!vProperties){return;
8120
}var propName;
8121
var vBaseElement=elem;
8122
var vTargetElement=this._getTargetNode();
8123
var elem;
8124
var value;
8125
for(propName in vProperties){elem=this.__outerElementStyleProperties[propName]?vBaseElement:vTargetElement;
8126
value=vProperties[propName];
8127
elem.style[propName]=(value==null)?"":value;
8128
}},
8129
_applyEnabled:function(value,
8130
old){if(value===false){this.addState("disabled");
8131
this.removeState("over");
8132
if(qx.Class.isDefined("qx.ui.form.Button")){this.removeState("abandoned");
8133
this.removeState("pressed");
8134
}}else{this.removeState("disabled");
8135
}},
8136
isFocusable:function(){return this.getEnabled()&&this.isSeeable()&&this.getTabIndex()>=0&&this.getTabIndex()!=null;
8137
},
7302
},
8138
isFocusRoot:function(){return false;
7303
hasChildren:function(){return this.getChildrenLength()>0;
8139
},
7304
},
8140
getFocusRoot:function(){if(this._hasParent){return this.getParent().getFocusRoot();
7305
isEmpty:function(){return this.getChildrenLength()==0;
8141
}return null;
8142
},
7306
},
8143
getActiveChild:function(){var vRoot=this.getFocusRoot();
7307
indexOf:function(vChild){return this.getChildren().indexOf(vChild);
8144
if(vRoot){return vRoot.getActiveChild();
8145
}return null;
8146
},
7308
},
8147
_ontabfocus:qx.lang.Function.returnTrue,
7309
contains:function(vWidget){switch(vWidget){case null:return false;
8148
_applyFocused:function(value,
7310
case this:return true;
8149
old){if(!this.isCreated()){return;
7311
default:return this.contains(vWidget.getParent());
8150
}var vFocusRoot=this.getFocusRoot();
7312
}},
8151
if(vFocusRoot){if(value){vFocusRoot.setFocusedChild(this);
7313
_computeVisibleChildren:function(){var vVisible=[];
8152
this._visualizeFocus();
7314
var vChildren=this.getChildren();
8153
}else{if(vFocusRoot.getFocusedChild()==this){vFocusRoot.setFocusedChild(null);
7315
if(!vChildren){return 0;
8154
}this._visualizeBlur();
7316
}var vLength=vChildren.length;
8155
}}},
7317
for(var i=0;i<vLength;i++){var vChild=vChildren[i];
8156
_applyHideFocus:qx.core.Variant.select("qx.client",
7318
if(vChild._isDisplayable){vVisible.push(vChild);
8157
{"mshtml":function(value,
7319
}}return vVisible;
8158
old){this.setHtmlProperty("hideFocus",
8159
value);
8160
},
7320
},
8161
"default":qx.lang.Function.returnTrue}),
7321
getVisibleChildrenLength:function(){return this.getVisibleChildren().length;
8162
_visualizeBlur:function(){if(this.getEnableElementFocus()&&(!this.getFocusRoot().getFocusedChild()||(this.getFocusRoot().getFocusedChild()&&this.getFocusRoot().getFocusedChild().getEnableElementFocus()))){try{this.getElement().blur();
8163
}catch(ex){}}this.removeState("focused");
8164
},
7322
},
8165
_visualizeFocus:function(){if(!qx.event.handler.FocusHandler.mouseFocus&&this.getEnableElementFocus()){try{this.getElement().focus();
7323
hasVisibleChildren:function(){return this.getVisibleChildrenLength()>0;
8166
}catch(ex){}}this.addState("focused");
8167
},
7324
},
8168
focus:function(){delete qx.event.handler.FocusHandler.mouseFocus;
7325
isVisibleEmpty:function(){return this.getVisibleChildrenLength()==0;
8169
this.setFocused(true);
8170
},
7326
},
8171
blur:function(){delete qx.event.handler.FocusHandler.mouseFocus;
7327
add:function(varargs){var vWidget;
8172
this.setFocused(false);
7328
for(var i=0,
7329
l=arguments.length;i<l;i++){vWidget=arguments[i];
7330
if(!(vWidget instanceof qx.ui.core.Parent)&&!(vWidget instanceof qx.ui.basic.Terminator)){throw new Error("Invalid Widget: "+vWidget);
7331
}else{vWidget.setParent(this);
7332
}}return this;
8173
},
7333
},
8174
_applyCapture:function(value,
7334
addAt:function(vChild,
8175
old){var vMgr=qx.event.handler.EventHandler.getInstance();
7335
vIndex){if(vIndex==null||vIndex<0){throw new Error("Not a valid index for addAt(): "+vIndex);
8176
if(old){vMgr.setCaptureWidget(null);
7336
}
8177
}else if(value){vMgr.setCaptureWidget(this);
7337
if(vChild.getParent()==this){var vChildren=this.getChildren();
8178
}},
7338
var vOldIndex=vChildren.indexOf(vChild);
8179
_applyZIndex:function(value,
7339
if(vOldIndex!=vIndex){if(vOldIndex!=-1){qx.lang.Array.removeAt(vChildren,
8180
old){if(value==null){this.removeStyleProperty("zIndex");
7340
vOldIndex);
8181
}else{this.setStyleProperty("zIndex",
7341
}qx.lang.Array.insertAt(vChildren,
8182
value);
7342
vChild,
7343
vIndex);
7344
if(this._initialLayoutDone){this._invalidateVisibleChildren();
7345
this.getLayoutImpl().updateChildrenOnMoveChild(vChild,
7346
vIndex,
7347
vOldIndex);
7348
}}}else{vChild._insertIndex=vIndex;
7349
vChild.setParent(this);
8183
}},
7350
}},
8184
_applyTabIndex:qx.core.Variant.select("qx.client",
7351
addAtBegin:function(vChild){return this.addAt(vChild,
8185
{"mshtml":function(value,
7352
0);
8186
old){this.setHtmlProperty("tabIndex",
8187
value<0?-1:1);
8188
},
7353
},
8189
"gecko":function(value,
7354
addAtEnd:function(vChild){var vLength=this.getChildrenLength();
8190
old){this.setStyleProperty("MozUserFocus",
7355
return this.addAt(vChild,
8191
(value<0?"ignore":"normal"));
7356
vChild.getParent()==this?vLength-1:vLength);
8192
},
7357
},
8193
"default":function(value,
7358
addBefore:function(vChild,
8194
old){this.setStyleProperty("userFocus",
7359
vBefore){var vChildren=this.getChildren();
8195
(value<0?"ignore":"normal"));
7360
var vTargetIndex=vChildren.indexOf(vBefore);
8196
this.setHtmlProperty("tabIndex",
7361
if(vTargetIndex==-1){throw new Error("Child to add before: "+vBefore+" is not inside this parent.");
8197
value<0?-1:1);
7362
}var vSourceIndex=vChildren.indexOf(vChild);
8198
}}),
7363
if(vSourceIndex==-1||vSourceIndex>vTargetIndex){vTargetIndex++;
8199
_applySelectable:qx.core.Variant.select("qx.client",
7364
}return this.addAt(vChild,
8200
{"mshtml":function(value,
7365
Math.max(0,
8201
old){},
7366
vTargetIndex-1));
8202
"gecko":function(value,
7367
},
8203
old){if(value){this.removeStyleProperty("MozUserSelect");
7368
addAfter:function(vChild,
8204
}else{this.setStyleProperty("MozUserSelect",
7369
vAfter){var vChildren=this.getChildren();
8205
"none");
7370
var vTargetIndex=vChildren.indexOf(vAfter);
8206
}},
7371
if(vTargetIndex==-1){throw new Error("Child to add after: "+vAfter+" is not inside this parent.");
8207
"webkit":function(value,
7372
}var vSourceIndex=vChildren.indexOf(vChild);
8208
old){if(value){this.removeStyleProperty("WebkitUserSelect");
7373
if(vSourceIndex!=-1&&vSourceIndex<vTargetIndex){vTargetIndex--;
8209
}else{this.setStyleProperty("WebkitUserSelect",
7374
}return this.addAt(vChild,
8210
"none");
7375
Math.min(vChildren.length,
8211
}},
7376
vTargetIndex+1));
8212
"khtml":function(value,
7377
},
8213
old){if(value){this.removeStyleProperty("KhtmlUserSelect");
7378
remove:function(varargs){var vWidget;
8214
}else{this.setStyleProperty("KhtmlUserSelect",
7379
for(var i=0,
8215
"none");
7380
l=arguments.length;i<l;i++){vWidget=arguments[i];
8216
}},
7381
if(!(vWidget instanceof qx.ui.core.Parent)&&!(vWidget instanceof qx.ui.basic.Terminator)){throw new Error("Invalid Widget: "+vWidget);
8217
"default":function(value,
7382
}else if(vWidget.getParent()==this){vWidget.setParent(null);
8218
old){if(value){return this.removeStyleProperty("userSelect");
7383
}}},
8219
}else{this.setStyleProperty("userSelect",
7384
removeAt:function(vIndex){var vChild=this.getChildren()[vIndex];
8220
"none");
7385
if(vChild){delete vChild._insertIndex;
8221
}}}),
7386
vChild.setParent(null);
8222
_applyOpacity:qx.core.Variant.select("qx.client",
8223
{"mshtml":function(value,
8224
old){if(value==null||value>=1||value<0){this.removeStyleProperty("filter");
8225
}else{this.setStyleProperty("filter",
8226
("Alpha(Opacity="+Math.round(value*100)+")"));
8227
}},
7387
}},
8228
"default":function(value,
7388
removeAll:function(){var cs=this.getChildren();
8229
old){if(value==null||value>1){if(qx.core.Variant.isSet("qx.client",
7389
var co=cs[0];
8230
"gecko")){this.removeStyleProperty("MozOpacity");
7390
while(co){this.remove(co);
8231
}else if(qx.core.Variant.isSet("qx.client",
7391
co=cs[0];
8232
"khtml")){this.removeStyleProperty("KhtmlOpacity");
8233
}this.removeStyleProperty("opacity");
8234
}else{value=qx.lang.Number.limit(value,
8235
0,
8236
1);
8237
if(qx.core.Variant.isSet("qx.client",
8238
"gecko")){this.setStyleProperty("MozOpacity",
8239
value);
8240
}else if(qx.core.Variant.isSet("qx.client",
8241
"khtml")){this.setStyleProperty("KhtmlOpacity",
8242
value);
8243
}this.setStyleProperty("opacity",
8244
value);
8245
}}}),
8246
__cursorMap:qx.core.Variant.select("qx.client",
8247
{"mshtml":{"cursor":"hand",
8248
"ew-resize":"e-resize",
8249
"ns-resize":"n-resize",
8250
"nesw-resize":"ne-resize",
8251
"nwse-resize":"nw-resize"},
8252
"opera":{"col-resize":"e-resize",
8253
"row-resize":"n-resize",
8254
"ew-resize":"e-resize",
8255
"ns-resize":"n-resize",
8256
"nesw-resize":"ne-resize",
8257
"nwse-resize":"nw-resize"},
8258
"default":{}}),
8259
_applyCursor:function(value,
8260
old){if(value){this.setStyleProperty("cursor",
8261
this.__cursorMap[value]||value);
8262
}else{this.removeStyleProperty("cursor");
8263
}},
7392
}},
8264
_applyCommand:function(value,
7393
getFirstChild:function(){return qx.lang.Array.getFirst(this.getChildren())||null;
8265
old){},
7394
},
8266
_applyBackgroundImage:function(value,
7395
getFirstVisibleChild:function(){return qx.lang.Array.getFirst(this.getVisibleChildren())||null;
8267
old){var imageMgr=qx.io.image.Manager.getInstance();
7396
},
8268
var aliasMgr=qx.io.Alias.getInstance();
7397
getFirstActiveChild:function(vIgnoreClasses){return qx.ui.core.Widget.getActiveSiblingHelper(null,
8269
if(old){imageMgr.hide(old);
8270
}
8271
if(value){imageMgr.show(value);
8272
}aliasMgr.connect(this._styleBackgroundImage,
8273
this,
7398
this,
8274
value);
7399
1,
7400
vIgnoreClasses,
7401
"first")||null;
8275
},
7402
},
8276
_styleBackgroundImage:function(value){value?this.setStyleProperty("backgroundImage",
7403
getLastChild:function(){return qx.lang.Array.getLast(this.getChildren())||null;
8277
"url("+value+")"):this.removeStyleProperty("backgroundImage");
8278
},
7404
},
8279
_applyBackgroundRepeat:function(value,
7405
getLastVisibleChild:function(){return qx.lang.Array.getLast(this.getVisibleChildren())||null;
8280
old){value?this.setStyleProperty("backgroundRepeat",
8281
value):this.removeStyleProperty("backgroundRepeat");
8282
},
7406
},
8283
_applyClip:function(value,
7407
getLastActiveChild:function(vIgnoreClasses){return qx.ui.core.Widget.getActiveSiblingHelper(null,
8284
old){return this._compileClipString();
7408
this,
7409
-1,
7410
vIgnoreClasses,
7411
"last")||null;
8285
},
7412
},
8286
_compileClipString:function(){var vLeft=this.getClipLeft();
7413
forEachChild:function(vFunc){var ch=this.getChildren(),
8287
var vTop=this.getClipTop();
7414
chc,
8288
var vWidth=this.getClipWidth();
7415
i=-1;
8289
var vHeight=this.getClipHeight();
7416
if(!ch){return;
8290
var vRight,
8291
vBottom;
8292
if(vLeft==null){vRight=(vWidth==null?"auto":vWidth+"px");
8293
vLeft="auto";
8294
}else{vRight=(vWidth==null?"auto":vLeft+vWidth+"px");
8295
vLeft=vLeft+"px";
8296
}
7417
}
8297
if(vTop==null){vBottom=(vHeight==null?"auto":vHeight+"px");
7418
while(chc=ch[++i]){vFunc.call(chc,
8298
vTop="auto";
7419
i);
8299
}else{vBottom=(vHeight==null?"auto":vTop+vHeight+"px");
7420
}},
8300
vTop=vTop+"px";
7421
forEachVisibleChild:function(vFunc){var ch=this.getVisibleChildren(),
8301
}return this.setStyleProperty("clip",
7422
chc,
8302
("rect("+vTop+","+vRight+","+vBottom+","+vLeft+")"));
7423
i=-1;
7424
if(!ch){return;
7425
}
7426
while(chc=ch[++i]){vFunc.call(chc,
7427
i);
7428
}},
7429
_beforeAppear:function(){this.base(arguments);
7430
this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeAppear();
7431
}});
8303
},
7432
},
8304
_applyOverflow:qx.core.Variant.select("qx.client",
7433
_afterAppear:function(){this.base(arguments);
8305
{"default":function(value,
7434
this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterAppear();
8306
old){var pv=value;
7435
}});
8307
var pn="overflow";
8308
switch(value){case "scrollX":pn="overflowX";
8309
pv="scroll";
8310
break;
8311
case "scrollY":pn="overflowY";
8312
pv="scroll";
8313
break;
8314
}var a=["overflow",
8315
"overflowX",
8316
"overflowY"];
8317
for(var i=0;i<a.length;i++){if(a[i]!=pn){this.removeStyleProperty(a[i]);
8318
}}
8319
switch(value){case "scrollX":this.setStyleProperty("overflowY",
8320
"hidden");
8321
break;
8322
case "scrollY":this.setStyleProperty("overflowX",
8323
"hidden");
8324
break;
8325
}this._renderOverflow(pn,
8326
pv,
8327
value,
8328
old);
8329
this.addToQueue("overflow");
8330
},
7436
},
8331
"gecko":function(value,
7437
_beforeDisappear:function(){this.base(arguments);
8332
old){var pv=value;
7438
this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeDisappear();
8333
var pn="overflow";
7439
}});
8334
switch(pv){case "hidden":pv="-moz-scrollbars-none";
8335
break;
8336
case "scrollX":pv="-moz-scrollbars-horizontal";
8337
break;
8338
case "scrollY":pv="-moz-scrollbars-vertical";
8339
break;
8340
}this._renderOverflow(pn,
8341
pv,
8342
value,
8343
old);
8344
this.addToQueue("overflow");
8345
},
7440
},
8346
"opera":function(value,
7441
_afterDisappear:function(){this.base(arguments);
8347
old){var pv=value;
7442
this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterDisappear();
8348
var pn="overflow";
7443
}});
8349
switch(pv){case "scrollX":case "scrollY":pv="scroll";
8350
break;
8351
}this._renderOverflow(pn,
8352
pv,
8353
value,
8354
old);
8355
this.addToQueue("overflow");
8356
}}),
8357
_renderOverflow:function(pn,
8358
pv,
8359
value,
8360
old){this.setStyleProperty(pn,
8361
pv||"");
8362
this._invalidateFrameWidth();
8363
this._invalidateFrameHeight();
8364
},
7444
},
8365
getOverflowX:function(){var vOverflow=this.getOverflow();
7445
_beforeInsertDom:function(){this.base(arguments);
8366
return vOverflow=="scrollY"?"hidden":vOverflow;
7446
this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeInsertDom();
7447
}});
8367
},
7448
},
8368
getOverflowY:function(){var vOverflow=this.getOverflow();
7449
_afterInsertDom:function(){this.base(arguments);
8369
return vOverflow=="scrollX"?"hidden":vOverflow;
7450
this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterInsertDom();
7451
}});
8370
},
7452
},
8371
_applyBackgroundColor:function(value,
7453
_beforeRemoveDom:function(){this.base(arguments);
8372
old){qx.theme.manager.Color.getInstance().connect(this._styleBackgroundColor,
7454
this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeRemoveDom();
8373
this,
7455
}});
8374
value);
8375
},
7456
},
8376
_styleBackgroundColor:function(value){value?this.setStyleProperty("backgroundColor",
7457
_afterRemoveDom:function(){this.base(arguments);
8377
value):this.removeStyleProperty("backgroundColor");
7458
this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterRemoveDom();
7459
}});
8378
},
7460
},
8379
_applyTextColor:function(value,
7461
_handleDisplayableCustom:function(vDisplayable,
8380
old){},
7462
vParent,
8381
_applyFont:function(value,
7463
vHint){this.forEachChild(function(){this._handleDisplayable();
8382
old){},
7464
});
8383
_cachedBorderTop:0,
8384
_cachedBorderRight:0,
8385
_cachedBorderBottom:0,
8386
_cachedBorderLeft:0,
8387
_applyBorder:function(value,
8388
old){qx.theme.manager.Border.getInstance().connect(this._queueBorder,
8389
this,
8390
value);
8391
},
7465
},
8392
__borderJobs:{top:"borderTop",
7466
_addChildrenToStateQueue:function(){this.forEachVisibleChild(function(){this.addToStateQueue();
8393
right:"borderRight",
7467
});
8394
bottom:"borderBottom",
8395
left:"borderLeft"},
8396
_queueBorder:function(value,
8397
edge){if(!edge){var jobs=this.__borderJobs;
8398
for(var entry in jobs){this.addToQueue(jobs[entry]);
8399
}this.__reflowBorderX(value);
8400
this.__reflowBorderY(value);
8401
}else{if(edge==="left"||edge==="right"){this.__reflowBorderX(value);
8402
}else{this.__reflowBorderY(value);
8403
}this.addToQueue(this.__borderJobs[edge]);
8404
}this.__borderObject=value;
8405
},
7468
},
8406
__reflowBorderX:function(value){var oldLeftWidth=this._cachedBorderLeft;
7469
recursiveAddToStateQueue:function(){this.addToStateQueue();
8407
var oldRightWidth=this._cachedBorderRight;
7470
this.forEachVisibleChild(function(){this.recursiveAddToStateQueue();
8408
this._cachedBorderLeft=value?value.getWidthLeft():0;
7471
});
8409
this._cachedBorderRight=value?value.getWidthRight():0;
7472
},
8410
if((oldLeftWidth+oldRightWidth)!=(this._cachedBorderLeft+this._cachedBorderRight)){this._invalidateFrameWidth();
7473
_recursiveAppearanceThemeUpdate:function(vNewAppearanceTheme,
8411
}},
7474
vOldAppearanceTheme){this.base(arguments,
8412
__reflowBorderY:function(value){var oldTopWidth=this._cachedBorderTop;
7475
vNewAppearanceTheme,
8413
var oldBottomWidth=this._cachedBorderBottom;
7476
vOldAppearanceTheme);
8414
this._cachedBorderTop=value?value.getWidthTop():0;
7477
this.forEachVisibleChild(function(){this._recursiveAppearanceThemeUpdate(vNewAppearanceTheme,
8415
this._cachedBorderBottom=value?value.getWidthBottom():0;
7478
vOldAppearanceTheme);
8416
if((oldTopWidth+oldBottomWidth)!=(this._cachedBorderTop+this._cachedBorderBottom)){this._invalidateFrameHeight();
7479
});
8417
}},
7480
},
8418
renderBorder:function(changes){var value=this.__borderObject;
7481
_addChildToChildrenQueue:function(vChild){if(!vChild._isInParentChildrenQueue&&!vChild._isDisplayable){this.warn("Ignoring invisible child: "+vChild);
8419
if(value){if(changes.borderTop){value.renderTop(this);
8420
}
8421
if(changes.borderRight){value.renderRight(this);
8422
}
8423
if(changes.borderBottom){value.renderBottom(this);
8424
}
8425
if(changes.borderLeft){value.renderLeft(this);
8426
}}else{var border=qx.ui.core.Border;
8427
if(changes.borderTop){border.resetTop(this);
8428
}
8429
if(changes.borderRight){border.resetRight(this);
8430
}
8431
if(changes.borderBottom){border.resetBottom(this);
8432
}
7482
}
8433
if(changes.borderLeft){border.resetLeft(this);
7483
if(!vChild._isInParentChildrenQueue&&vChild._isDisplayable){qx.ui.core.Widget.addToGlobalLayoutQueue(this);
7484
if(!this._childrenQueue){this._childrenQueue={};
7485
}this._childrenQueue[vChild.toHashCode()]=vChild;
7486
}},
7487
_removeChildFromChildrenQueue:function(vChild){if(this._childrenQueue&&vChild._isInParentChildrenQueue){delete this._childrenQueue[vChild.toHashCode()];
7488
if(qx.lang.Object.isEmpty(this._childrenQueue)){qx.ui.core.Widget.removeFromGlobalLayoutQueue(this);
8434
}}},
7489
}}},
8435
prepareEnhancedBorder:qx.core.Variant.select("qx.client",
7490
_flushChildrenQueue:function(){if(!qx.lang.Object.isEmpty(this._childrenQueue)){this.getLayoutImpl().flushChildrenQueue(this._childrenQueue);
8436
{"gecko":qx.lang.Function.returnTrue,
7491
delete this._childrenQueue;
8437
"default":function(){var elem=this.getElement();
7492
}},
8438
var cl=this._borderElement=document.createElement("div");
7493
_addChildrenToLayoutQueue:function(p){this.forEachChild(function(){this.addToLayoutChanges(p);
8439
var es=elem.style;
7494
});
8440
var cs=this._innerStyle=cl.style;
8441
if(qx.core.Variant.isSet("qx.client",
8442
"mshtml")){}else{cs.width=cs.height="100%";
8443
}cs.position="absolute";
8444
for(var i in this._styleProperties){switch(i){case "zIndex":case "filter":case "display":break;
8445
default:cs[i]=es[i];
8446
es[i]="";
8447
}}
8448
for(var i in this._htmlProperties){switch(i){case "unselectable":cl.unselectable=this._htmlProperties[i];
8449
}}while(elem.firstChild){cl.appendChild(elem.firstChild);
8450
}elem.appendChild(cl);
8451
}}),
8452
_applyPaddingTop:function(value,
8453
old){this.addToQueue("paddingTop");
8454
this._invalidateFrameHeight();
8455
},
8456
_applyPaddingRight:function(value,
8457
old){this.addToQueue("paddingRight");
8458
this._invalidateFrameWidth();
8459
},
7495
},
8460
_applyPaddingBottom:function(value,
7496
_layoutChild:function(vChild){if(!vChild._isDisplayable){return ;
8461
old){this.addToQueue("paddingBottom");
7497
}var vChanges=vChild._layoutChanges;
8462
this._invalidateFrameHeight();
7498
try{if(vChild.renderBorder){if(vChanges.borderTop||vChanges.borderRight||vChanges.borderBottom||vChanges.borderLeft){vChild.renderBorder(vChanges);
7499
}}}catch(ex){this.error("Could not apply border to child "+vChild,
7500
ex);
7501
}
7502
try{if(vChild.renderPadding){if(vChanges.paddingLeft||vChanges.paddingRight||vChanges.paddingTop||vChanges.paddingBottom){vChild.renderPadding(vChanges);
7503
}}}catch(ex){this.error("Could not apply padding to child "+vChild,
7504
ex);
7505
}try{this.getLayoutImpl().layoutChild(vChild,
7506
vChanges);
7507
}catch(ex){this.error("Could not layout child "+vChild+" through layout handler",
7508
ex);
7509
}try{vChild._layoutPost(vChanges);
7510
}catch(ex){this.error("Could not post layout child "+vChild,
7511
ex);
7512
}try{if(vChanges.initial){vChild._initialLayoutDone=true;
7513
qx.ui.core.Widget.addToGlobalDisplayQueue(vChild);
7514
}}catch(ex){this.error("Could not handle display updates from layout flush for child "+vChild,
7515
ex);
7516
}vChild._layoutChanges={};
7517
delete vChild._isInParentLayoutQueue;
7518
delete this._childrenQueue[vChild.toHashCode()];
8463
},
7519
},
8464
_applyPaddingLeft:function(value,
7520
_layoutPost:qx.lang.Function.returnTrue,
8465
old){this.addToQueue("paddingLeft");
7521
_computePreferredInnerWidth:function(){return this.getLayoutImpl().computeChildrenNeededWidth();
8466
this._invalidateFrameWidth();
8467
},
7522
},
8468
renderPadding:function(changes){},
7523
_computePreferredInnerHeight:function(){return this.getLayoutImpl().computeChildrenNeededHeight();
8469
_applyMarginLeft:function(value,
8470
old){this.addToQueue("marginLeft");
8471
},
7524
},
8472
_applyMarginRight:function(value,
7525
_changeInnerWidth:function(vNew,
8473
old){this.addToQueue("marginRight");
7526
vOld){var vLayout=this.getLayoutImpl();
7527
if(vLayout.invalidateChildrenFlexWidth){vLayout.invalidateChildrenFlexWidth();
7528
}this.forEachVisibleChild(function(){if(vLayout.updateChildOnInnerWidthChange(this)&&this._recomputeBoxWidth()){this._recomputeOuterWidth();
7529
this._recomputeInnerWidth();
7530
}});
8474
},
7531
},
8475
_applyMarginTop:function(value,
7532
_changeInnerHeight:function(vNew,
8476
old){this.addToQueue("marginTop");
7533
vOld){var vLayout=this.getLayoutImpl();
7534
if(vLayout.invalidateChildrenFlexHeight){vLayout.invalidateChildrenFlexHeight();
7535
}this.forEachVisibleChild(function(){if(vLayout.updateChildOnInnerHeightChange(this)&&this._recomputeBoxHeight()){this._recomputeOuterHeight();
7536
this._recomputeInnerHeight();
7537
}});
8477
},
7538
},
8478
_applyMarginBottom:function(value,
7539
getInnerWidthForChild:function(vChild){return this.getInnerWidth();
8479
old){this.addToQueue("marginBottom");
8480
},
7540
},
8481
execute:function(){var cmd=this.getCommand();
7541
getInnerHeightForChild:function(vChild){return this.getInnerHeight();
8482
if(cmd){cmd.execute(this);
8483
}this.createDispatchEvent("execute");
8484
},
7542
},
8485
_visualPropertyCheck:function(){if(!this.isCreated()){throw new Error(this.classname+": Element must be created previously!");
7543
_remappingChildTable:["add",
7544
"remove",
7545
"addAt",
7546
"addAtBegin",
7547
"addAtEnd",
7548
"removeAt",
7549
"addBefore",
7550
"addAfter",
7551
"removeAll"],
7552
_remapStart:"return this._remappingChildTarget.",
7553
_remapStop:".apply(this._remappingChildTarget, arguments)",
7554
remapChildrenHandlingTo:function(vTarget){var t=this._remappingChildTable;
7555
this._remappingChildTarget=vTarget;
7556
for(var i=0,
7557
l=t.length,
7558
s;i<l;i++){s=t[i];
7559
this[s]=new Function(qx.ui.core.Parent.prototype._remapStart+s+qx.ui.core.Parent.prototype._remapStop);
7560
}}},
7561
defer:function(statics,
7562
members,
7563
properties){if(qx.core.Variant.isSet("qx.client",
7564
"opera")){members._layoutChildOrig=members._layoutChild;
7565
members._layoutChild=function(vChild){if(!vChild._initialLayoutDone||!vChild._layoutChanges.border){return this._layoutChildOrig(vChild);
7566
}var vStyle=vChild.getElement().style;
7567
var vOldDisplay=vStyle.display;
7568
vStyle.display="none";
7569
var vRet=this._layoutChildOrig(vChild);
7570
vStyle.display=vOldDisplay;
7571
return vRet;
7572
};
8486
}},
7573
}},
8487
setScrollLeft:function(nScrollLeft){this._visualPropertyCheck();
7574
destruct:function(){this._disposeObjectDeep("_children",
8488
this._getTargetNode().scrollLeft=nScrollLeft;
7575
1);
7576
this._disposeObjects("_layoutImpl",
7577
"_focusHandler");
7578
this._disposeFields("_childrenQueue",
7579
"_childrenQueue",
7580
"_remappingChildTable",
7581
"_remappingChildTarget",
7582
"_cachedVisibleChildren");
7583
}});
7584
7585
7586
7587
7588
/* ID: qx.event.type.FocusEvent */
7589
qx.Class.define("qx.event.type.FocusEvent",
7590
{extend:qx.event.type.Event,
7591
construct:function(type,
7592
target){this.base(arguments,
7593
type);
7594
this.setTarget(target);
7595
switch(type){case "focusin":case "focusout":this.setBubbles(true);
7596
this.setPropagationStopped(false);
7597
}}});
7598
7599
7600
7601
7602
/* ID: qx.event.handler.EventHandler */
7603
qx.Class.define("qx.event.handler.EventHandler",
7604
{type:"singleton",
7605
extend:qx.core.Target,
7606
construct:function(){this.base(arguments);
7607
this.__onmouseevent=qx.lang.Function.bind(this._onmouseevent,
7608
this);
7609
this.__ondragevent=qx.lang.Function.bind(this._ondragevent,
7610
this);
7611
this.__onselectevent=qx.lang.Function.bind(this._onselectevent,
7612
this);
7613
this.__onwindowblur=qx.lang.Function.bind(this._onwindowblur,
7614
this);
7615
this.__onwindowfocus=qx.lang.Function.bind(this._onwindowfocus,
7616
this);
7617
this.__onwindowresize=qx.lang.Function.bind(this._onwindowresize,
7618
this);
7619
this._commands={};
8489
},
7620
},
8490
setScrollTop:function(nScrollTop){this._visualPropertyCheck();
7621
events:{"error":"qx.event.type.DataEvent"},
8491
this._getTargetNode().scrollTop=nScrollTop;
7622
statics:{mouseEventTypes:["mouseover",
7623
"mousemove",
7624
"mouseout",
7625
"mousedown",
7626
"mouseup",
7627
"click",
7628
"dblclick",
7629
"contextmenu",
7630
qx.core.Variant.isSet("qx.client",
7631
"gecko")?"DOMMouseScroll":"mousewheel"],
7632
keyEventTypes:["keydown",
7633
"keypress",
7634
"keyup"],
7635
dragEventTypes:qx.core.Variant.select("qx.client",
7636
{"gecko":["dragdrop",
7637
"dragover",
7638
"dragenter",
7639
"dragexit",
7640
"draggesture"],
7641
"mshtml":["dragend",
7642
"dragover",
7643
"dragstart",
7644
"drag",
7645
"dragenter",
7646
"dragleave"],
7647
"default":["dragstart",
7648
"dragdrop",
7649
"dragover",
7650
"drag",
7651
"dragleave",
7652
"dragenter",
7653
"dragexit",
7654
"draggesture"]}),
7655
getDomTarget:qx.core.Variant.select("qx.client",
7656
{"mshtml":function(vDomEvent){return vDomEvent.target||vDomEvent.srcElement;
8492
},
7657
},
8493
getOffsetLeft:function(){this._visualPropertyCheck();
7658
"webkit":function(vDomEvent){var vNode=vDomEvent.target||vDomEvent.srcElement;
8494
return qx.html.Offset.getLeft(this.getElement());
7659
if(vNode&&(vNode.nodeType==qx.dom.Node.TEXT)){vNode=vNode.parentNode;
7660
}return vNode;
8495
},
7661
},
8496
getOffsetTop:function(){this._visualPropertyCheck();
7662
"default":function(vDomEvent){return vDomEvent.target;
8497
return qx.html.Offset.getTop(this.getElement());
7663
}}),
7664
stopDomEvent:function(vDomEvent){if(vDomEvent.preventDefault){vDomEvent.preventDefault();
7665
}vDomEvent.returnValue=false;
8498
},
7666
},
8499
getScrollLeft:function(){this._visualPropertyCheck();
7667
getOriginalTargetObject:function(vNode){if(vNode==document.documentElement){vNode=document.body;
8500
return this._getTargetNode().scrollLeft;
7668
}while(vNode!=null&&vNode.qx_Widget==null){try{vNode=vNode.parentNode;
7669
}catch(vDomEvent){vNode=null;
7670
}}return vNode?vNode.qx_Widget:null;
8501
},
7671
},
8502
getScrollTop:function(){this._visualPropertyCheck();
7672
getOriginalTargetObjectFromEvent:function(vDomEvent,
8503
return this._getTargetNode().scrollTop;
7673
vWindow){var vNode=qx.event.handler.EventHandler.getDomTarget(vDomEvent);
7674
if(vWindow){var vDocument=vWindow.document;
7675
if(vNode==vWindow||vNode==vDocument||vNode==vDocument.documentElement||vNode==vDocument.body){return vDocument.body.qx_Widget;
7676
}}return qx.event.handler.EventHandler.getOriginalTargetObject(vNode);
8504
},
7677
},
8505
getClientWidth:function(){this._visualPropertyCheck();
7678
getRelatedOriginalTargetObjectFromEvent:function(vDomEvent){return qx.event.handler.EventHandler.getOriginalTargetObject(vDomEvent.relatedTarget||(vDomEvent.type=="mouseover"?vDomEvent.fromElement:vDomEvent.toElement));
8506
return this._getTargetNode().clientWidth;
8507
},
7679
},
8508
getClientHeight:function(){this._visualPropertyCheck();
7680
getTargetObject:function(vNode,
8509
return this._getTargetNode().clientHeight;
7681
vObject,
7682
allowDisabled){if(!vObject){var vObject=qx.event.handler.EventHandler.getOriginalTargetObject(vNode);
7683
if(!vObject){return null;
7684
}}while(vObject){if(!allowDisabled&&!vObject.getEnabled()){return null;
7685
}if(!vObject.getAnonymous()){break;
7686
}vObject=vObject.getParent();
7687
}return vObject;
8510
},
7688
},
8511
getOffsetWidth:function(){this._visualPropertyCheck();
7689
getTargetObjectFromEvent:function(vDomEvent){return qx.event.handler.EventHandler.getTargetObject(qx.event.handler.EventHandler.getDomTarget(vDomEvent));
8512
return this.getElement().offsetWidth;
8513
},
7690
},
8514
getOffsetHeight:function(){this._visualPropertyCheck();
7691
getRelatedTargetObjectFromEvent:function(vDomEvent){var target=vDomEvent.relatedTarget;
8515
return this.getElement().offsetHeight;
7692
if(!target){if(vDomEvent.type=="mouseover"){target=vDomEvent.fromElement;
7693
}else{target=vDomEvent.toElement;
7694
}}return qx.event.handler.EventHandler.getTargetObject(target);
7695
}},
7696
properties:{allowClientContextMenu:{check:"Boolean",
7697
init:false},
7698
allowClientSelectAll:{check:"Boolean",
7699
init:false},
7700
captureWidget:{check:"qx.ui.core.Widget",
7701
nullable:true,
7702
apply:"_applyCaptureWidget"},
7703
focusRoot:{check:"qx.ui.core.Parent",
7704
nullable:true,
7705
apply:"_applyFocusRoot"}},
7706
members:{_lastMouseEventType:null,
7707
_lastMouseDown:false,
7708
_lastMouseEventDate:0,
7709
_applyCaptureWidget:function(value,
7710
old){if(old){old.setCapture(false);
7711
}
7712
if(value){value.setCapture(true);
7713
}},
7714
_applyFocusRoot:function(value,
7715
old){if(old){old.setFocusedChild(null);
7716
}
7717
if(value&&value.getFocusedChild()==null){value.setFocusedChild(value);
7718
}},
7719
addCommand:function(vCommand){this._commands[vCommand.toHashCode()]=vCommand;
8516
},
7720
},
8517
getScrollWidth:function(){this._visualPropertyCheck();
7721
removeCommand:function(vCommand){delete this._commands[vCommand.toHashCode()];
8518
return this._getTargetNode().scrollWidth;
7722
},
7723
_checkKeyEventMatch:function(e){var vCommand;
7724
for(var vHash in this._commands){vCommand=this._commands[vHash];
7725
if(vCommand.getEnabled()&&vCommand.matchesKeyEvent(e)){if(!vCommand.execute(e.getTarget())){e.preventDefault();
7726
}break;
7727
}}},
7728
attachEvents:function(){this.attachEventTypes(qx.event.handler.EventHandler.mouseEventTypes,
7729
this.__onmouseevent);
7730
this.attachEventTypes(qx.event.handler.EventHandler.dragEventTypes,
7731
this.__ondragevent);
7732
qx.event.handler.KeyEventHandler.getInstance()._attachEvents();
7733
qx.html.EventRegistration.addEventListener(window,
7734
"blur",
7735
this.__onwindowblur);
7736
qx.html.EventRegistration.addEventListener(window,
7737
"focus",
7738
this.__onwindowfocus);
7739
qx.html.EventRegistration.addEventListener(window,
7740
"resize",
7741
this.__onwindowresize);
7742
document.body.onselect=document.onselectstart=document.onselectionchange=this.__onselectevent;
8519
},
7743
},
8520
getScrollHeight:function(){this._visualPropertyCheck();
7744
detachEvents:function(){this.detachEventTypes(qx.event.handler.EventHandler.mouseEventTypes,
8521
return this._getTargetNode().scrollHeight;
7745
this.__onmouseevent);
7746
this.detachEventTypes(qx.event.handler.EventHandler.dragEventTypes,
7747
this.__ondragevent);
7748
qx.event.handler.KeyEventHandler.getInstance()._detachEvents();
7749
qx.html.EventRegistration.removeEventListener(window,
7750
"blur",
7751
this.__onwindowblur);
7752
qx.html.EventRegistration.removeEventListener(window,
7753
"focus",
7754
this.__onwindowfocus);
7755
qx.html.EventRegistration.removeEventListener(window,
7756
"resize",
7757
this.__onwindowresize);
7758
document.body.onselect=document.onselectstart=document.onselectionchange=null;
8522
},
7759
},
8523
scrollIntoView:function(alignTopLeft){this.scrollIntoViewX(alignTopLeft);
7760
attachEventTypes:function(vEventTypes,
8524
this.scrollIntoViewY(alignTopLeft);
7761
vFunctionPointer){try{var el=qx.core.Variant.isSet("qx.client",
7762
"gecko")?window:document.body;
7763
for(var i=0,
7764
l=vEventTypes.length;i<l;i++){qx.html.EventRegistration.addEventListener(el,
7765
vEventTypes[i],
7766
vFunctionPointer);
7767
}}catch(ex){throw new Error("qx.event.handler.EventHandler: Failed to attach window event types: "+vEventTypes+": "+ex);
7768
}},
7769
detachEventTypes:function(vEventTypes,
7770
vFunctionPointer){try{var el=qx.core.Variant.isSet("qx.client",
7771
"gecko")?window:document.body;
7772
for(var i=0,
7773
l=vEventTypes.length;i<l;i++){qx.html.EventRegistration.removeEventListener(el,
7774
vEventTypes[i],
7775
vFunctionPointer);
7776
}}catch(ex){throw new Error("qx.event.handler.EventHandler: Failed to detach window event types: "+vEventTypes+": "+ex);
7777
}},
7778
_onkeyevent_post:function(vDomEvent,
7779
vType,
7780
vKeyCode,
7781
vCharCode,
7782
vKeyIdentifier){var vDomTarget=qx.event.handler.EventHandler.getDomTarget(vDomEvent);
7783
var vFocusRoot=this.getFocusRoot();
7784
var vTarget=this.getCaptureWidget()||(vFocusRoot==null?null:vFocusRoot.getActiveChild());
7785
var vKeyEventObject=new qx.event.type.KeyEvent(vType,
7786
vDomEvent,
7787
vDomTarget,
7788
vTarget,
7789
null,
7790
vKeyCode,
7791
vCharCode,
7792
vKeyIdentifier);
7793
if(vType=="keydown"){this._checkKeyEventMatch(vKeyEventObject);
7794
}
7795
if(vTarget!=null&&vTarget.getEnabled()){switch(vKeyIdentifier){case "Escape":case "Tab":if(qx.Class.isDefined("qx.ui.menu.Manager")){qx.ui.menu.Manager.getInstance().update(vTarget,
7796
vType);
7797
}break;
7798
}if(!this.getAllowClientSelectAll()){if(vDomEvent.ctrlKey&&vKeyIdentifier=="A"){switch(vDomTarget.tagName.toLowerCase()){case "input":case "textarea":case "iframe":break;
7799
default:qx.event.handler.EventHandler.stopDomEvent(vDomEvent);
7800
}}}vTarget.dispatchEvent(vKeyEventObject);
7801
if(qx.Class.isDefined("qx.event.handler.DragAndDropHandler")){qx.event.handler.DragAndDropHandler.getInstance().handleKeyEvent(vKeyEventObject);
7802
}}vKeyEventObject.dispose();
8525
},
7803
},
8526
scrollIntoViewX:function(alignLeft){if(!this._isCreated||!this._isDisplayable){this.warn("The function scrollIntoViewX can only be called after the widget is created!");
7804
_onmouseevent:qx.core.Variant.select("qx.client",
8527
return false;
7805
{"mshtml":function(vDomEvent){if(!vDomEvent){vDomEvent=window.event;
8528
}return qx.html.ScrollIntoView.scrollX(this.getElement(),
7806
}var vDomTarget=qx.event.handler.EventHandler.getDomTarget(vDomEvent);
8529
alignLeft);
7807
var vType=vDomEvent.type;
7808
if(vType=="mousemove"){if(this._mouseIsDown&&vDomEvent.button==0){this._onmouseevent_post(vDomEvent,
7809
"mouseup");
7810
this._mouseIsDown=false;
7811
}}else{if(vType=="mousedown"){this._mouseIsDown=true;
7812
}else if(vType=="mouseup"){this._mouseIsDown=false;
7813
}if(vType=="mouseup"&&!this._lastMouseDown&&((new Date).valueOf()-this._lastMouseEventDate)<250){this._onmouseevent_post(vDomEvent,
7814
"mousedown");
7815
}else if(vType=="dblclick"&&this._lastMouseEventType=="mouseup"&&((new Date).valueOf()-this._lastMouseEventDate)<250){this._onmouseevent_post(vDomEvent,
7816
"click");
7817
}
7818
switch(vType){case "mousedown":case "mouseup":case "click":case "dblclick":case "contextmenu":this._lastMouseEventType=vType;
7819
this._lastMouseEventDate=(new Date).valueOf();
7820
this._lastMouseDown=vType=="mousedown";
7821
}}this._onmouseevent_post(vDomEvent,
7822
vType,
7823
vDomTarget);
8530
},
7824
},
8531
scrollIntoViewY:function(alignTop){if(!this._isCreated||!this._isDisplayable){this.warn("The function scrollIntoViewY can only be called after the widget is created!");
7825
"default":function(vDomEvent){var vDomTarget=qx.event.handler.EventHandler.getDomTarget(vDomEvent);
8532
return false;
7826
var vType=vDomEvent.type;
8533
}return qx.html.ScrollIntoView.scrollY(this.getElement(),
7827
switch(vType){case "DOMMouseScroll":vType="mousewheel";
8534
alignTop);
7828
break;
7829
case "click":case "dblclick":if(vDomEvent.which!==1){return;
7830
}}this._onmouseevent_post(vDomEvent,
7831
vType,
7832
vDomTarget);
7833
}}),
7834
_onmouseevent_click_fix:qx.core.Variant.select("qx.client",
7835
{"gecko":function(vDomTarget,
7836
vType,
7837
vDispatchTarget){var vReturn=false;
7838
switch(vType){case "mousedown":this._lastMouseDownDomTarget=vDomTarget;
7839
this._lastMouseDownDispatchTarget=vDispatchTarget;
7840
break;
7841
case "mouseup":if(this._lastMouseDownDispatchTarget===vDispatchTarget&&vDomTarget!==this._lastMouseDownDomTarget){vReturn=true;
7842
}else{this._lastMouseDownDomTarget=null;
7843
this._lastMouseDownDispatchTarget=null;
7844
}}return vReturn;
8535
},
7845
},
8536
supportsDrop:function(dragCache){var supportsDropMethod=this.getSupportsDropMethod();
7846
"default":null}),
8537
if(supportsDropMethod!==null){return supportsDropMethod.call(this,
7847
_onmouseevent_post:function(vDomEvent,
8538
dragCache);
7848
vType,
8539
}return (this!=dragCache.sourceWidget);
7849
vDomTarget){var vEventObject,
8540
}},
7850
vCaptureTarget,
8541
settings:{"qx.widgetQueueDebugging":false,
7851
vDispatchTarget,
8542
"qx.widgetDebugId":false},
7852
vTarget,
8543
defer:function(statics,
7853
vOriginalTarget,
8544
members){statics.__initApplyMethods(members);
7854
vRelatedTarget,
7855
vFixClick,
7856
vTargetIsEnabled;
7857
vCaptureTarget=this.getCaptureWidget();
7858
vOriginalTarget=qx.event.handler.EventHandler.getOriginalTargetObject(vDomTarget);
7859
if(!vCaptureTarget){vDispatchTarget=vTarget=qx.event.handler.EventHandler.getTargetObject(null,
7860
vOriginalTarget,
7861
true);
7862
}else{vDispatchTarget=vCaptureTarget;
7863
vTarget=qx.event.handler.EventHandler.getTargetObject(null,
7864
vOriginalTarget,
7865
true);
7866
}if(!vTarget){return;
7867
}vTargetIsEnabled=vTarget.getEnabled();
8545
if(qx.core.Variant.isSet("qx.client",
7868
if(qx.core.Variant.isSet("qx.client",
8546
"mshtml")){members._renderRuntimeWidth=function(v){this._style.pixelWidth=(v==null)?0:v;
7869
"gecko")){vFixClick=this._onmouseevent_click_fix(vDomTarget,
8547
if(this._innerStyle){this._innerStyle.pixelWidth=(v==null)?0:v-2;
7870
vType,
8548
}};
7871
vDispatchTarget);
8549
members._renderRuntimeHeight=function(v){this._style.pixelHeight=(v==null)?0:v;
7872
}if(vType=="contextmenu"&&!this.getAllowClientContextMenu()){qx.event.handler.EventHandler.stopDomEvent(vDomEvent);
8550
if(this._innerStyle){this._innerStyle.pixelHeight=(v==null)?0:v-2;
7873
}if(vTargetIsEnabled&&vType=="mousedown"){qx.event.handler.FocusHandler.mouseFocus=true;
8551
}};
7874
var vRoot=vTarget.getFocusRoot();
8552
members._resetRuntimeWidth=function(){this._style.width="";
7875
if(vRoot){this.setFocusRoot(vRoot);
8553
if(this._innerStyle){this._innerStyle.width="";
7876
var vFocusTarget=vTarget;
8554
}};
7877
while(!vFocusTarget.isFocusable()&&vFocusTarget!=vRoot){vFocusTarget=vFocusTarget.getParent();
8555
members._resetRuntimeHeight=function(){this._style.height="";
7878
}vRoot.setFocusedChild(vFocusTarget);
8556
if(this._innerStyle){this._innerStyle.height="";
7879
vRoot.setActiveChild(vTarget);
8557
}};
7880
}}switch(vType){case "mouseover":case "mouseout":vRelatedTarget=qx.event.handler.EventHandler.getRelatedTargetObjectFromEvent(vDomEvent);
8558
}statics.__initLayoutProperties(statics);
7881
if(vRelatedTarget==vTarget){return;
8559
{if(qx.core.Setting.get("qx.widgetQueueDebugging")){statics.flushGlobalQueues=function(){if(statics._inFlushGlobalQueues||!qx.core.Init.getInstance().getApplication().getUiReady()){return;
7882
}}vEventObject=new qx.event.type.MouseEvent(vType,
7883
vDomEvent,
7884
vDomTarget,
7885
vTarget,
7886
vOriginalTarget,
7887
vRelatedTarget);
7888
qx.event.type.MouseEvent.storeEventState(vEventObject);
7889
if(vTargetIsEnabled){var vEventWasProcessed=false;
7890
vEventWasProcessed=vDispatchTarget?vDispatchTarget.dispatchEvent(vEventObject):true;
7891
this._onmouseevent_special_post(vType,
7892
vTarget,
7893
vOriginalTarget,
7894
vDispatchTarget,
7895
vEventWasProcessed,
7896
vEventObject,
7897
vDomEvent);
7898
}else{if(vType=="mouseover"){if(qx.Class.isDefined("qx.ui.popup.ToolTipManager")){qx.ui.popup.ToolTipManager.getInstance().handleMouseOver(vEventObject);
7899
}}}vEventObject.dispose();
7900
vEventObject=null;
7901
qx.ui.core.Widget.flushGlobalQueues();
7902
if(vFixClick){this._onmouseevent_post(vDomEvent,
7903
"click",
7904
this._lastMouseDownDomTarget);
7905
this._lastMouseDownDomTarget=null;
7906
this._lastMouseDownDispatchTarget=null;
7907
}},
7908
_onmouseevent_special_post:function(vType,
7909
vTarget,
7910
vOriginalTarget,
7911
vDispatchTarget,
7912
vEventWasProcessed,
7913
vEventObject,
7914
vDomEvent){switch(vType){case "mousedown":if(qx.Class.isDefined("qx.ui.popup.PopupManager")){qx.ui.popup.PopupManager.getInstance().update(vTarget);
8560
}
7915
}
8561
if(!(statics._globalWidgetQueue.length>0||statics._globalElementQueue.length>0||statics._globalStateQueue.length>0||statics._globalJobQueue.length>0||statics._globalLayoutQueue.length>0||statics._fastGlobalDisplayQueue.length>0||!qx.lang.Object.isEmpty(statics._lazyGlobalDisplayQueue))){return;
7916
if(qx.Class.isDefined("qx.ui.menu.Manager")){qx.ui.menu.Manager.getInstance().update(vTarget,
8562
}var globalWidgetQueueLength=statics._globalWidgetQueue.length;
7917
vType);
8563
var globalElementQueueLength=statics._globalElementQueue.length;
7918
}
8564
var globalStateQueueLength=statics._globalStateQueue.length;
7919
if(qx.Class.isDefined("qx.ui.embed.IframeManager")){qx.ui.embed.IframeManager.getInstance().handleMouseDown(vEventObject);
8565
var globalJobQueueLength=statics._globalJobQueue.length;
7920
}break;
8566
var globalLayoutQueueLength=statics._globalLayoutQueue.length;
7921
case "mouseup":if(qx.Class.isDefined("qx.ui.menu.Manager")){qx.ui.menu.Manager.getInstance().update(vTarget,
8567
var fastGlobalDisplayQueueLength=statics._fastGlobalDisplayQueue.length;
7922
vType);
8568
var lazyGlobalDisplayQueueLength=statics._lazyGlobalDisplayQueue?statics._lazyGlobalDisplayQueue.length:0;
7923
}
8569
statics._inFlushGlobalQueues=true;
7924
if(qx.Class.isDefined("qx.ui.embed.IframeManager")){qx.ui.embed.IframeManager.getInstance().handleMouseUp(vEventObject);
8570
var start;
7925
}break;
8571
start=(new Date).valueOf();
7926
case "mouseover":if(qx.Class.isDefined("qx.ui.popup.ToolTipManager")){qx.ui.popup.ToolTipManager.getInstance().handleMouseOver(vEventObject);
8572
statics.flushGlobalWidgetQueue();
7927
}break;
8573
var vWidgetDuration=(new Date).valueOf()-start;
7928
case "mouseout":if(qx.Class.isDefined("qx.ui.popup.ToolTipManager")){qx.ui.popup.ToolTipManager.getInstance().handleMouseOut(vEventObject);
8574
start=(new Date).valueOf();
7929
}break;
8575
statics.flushGlobalStateQueue();
7930
}this._ignoreWindowBlur=vType==="mousedown";
8576
var vStateDuration=(new Date).valueOf()-start;
7931
if(qx.Class.isDefined("qx.event.handler.DragAndDropHandler")&&vTarget){qx.event.handler.DragAndDropHandler.getInstance().handleMouseEvent(vEventObject);
8577
start=(new Date).valueOf();
7932
}},
8578
statics.flushGlobalElementQueue();
7933
_ondragevent:function(vEvent){if(!vEvent){vEvent=window.event;
8579
var vElementDuration=(new Date).valueOf()-start;
7934
}qx.event.handler.EventHandler.stopDomEvent(vEvent);
8580
start=(new Date).valueOf();
8581
statics.flushGlobalJobQueue();
8582
var vJobDuration=(new Date).valueOf()-start;
8583
start=(new Date).valueOf();
8584
statics.flushGlobalLayoutQueue();
8585
var vLayoutDuration=(new Date).valueOf()-start;
8586
start=(new Date).valueOf();
8587
statics.flushGlobalDisplayQueue();
8588
var vDisplayDuration=(new Date).valueOf()-start;
8589
var vSum=vWidgetDuration+vStateDuration+vElementDuration+vJobDuration+vLayoutDuration+vDisplayDuration;
8590
if(vSum>0){var logger=qx.log.Logger.getClassLogger(qx.ui.core.Widget);
8591
logger.debug("Flush Global Queues");
8592
logger.debug("Widgets: "+vWidgetDuration+"ms ("+globalWidgetQueueLength+")");
8593
logger.debug("State: "+vStateDuration+"ms ("+globalStateQueueLength+")");
8594
logger.debug("Element: "+vElementDuration+"ms ("+globalElementQueueLength+")");
8595
logger.debug("Job: "+vJobDuration+"ms ("+globalJobQueueLength+")");
8596
logger.debug("Layout: "+vLayoutDuration+"ms ("+globalLayoutQueueLength+")");
8597
logger.debug("Display: "+vDisplayDuration+"ms (fast:"+fastGlobalDisplayQueueLength+",lazy:"+lazyGlobalDisplayQueueLength+")");
8598
window.status="Flush: Widget:"+vWidgetDuration+" State:"+vStateDuration+" Element:"+vElementDuration+" Job:"+vJobDuration+" Layout:"+vLayoutDuration+" Display:"+vDisplayDuration;
8599
}delete statics._inFlushGlobalQueues;
8600
};
8601
}};
8602
},
7935
},
8603
destruct:function(){var elem=this.getElement();
7936
_onselectevent:function(e){if(!e){e=window.event;
8604
if(elem){elem.qx_Widget=null;
7937
}var target=qx.event.handler.EventHandler.getOriginalTargetObjectFromEvent(e);
8605
}this._disposeFields("_isCreated",
7938
while(target){if(target.getSelectable()!=null){if(!target.getSelectable()){qx.event.handler.EventHandler.stopDomEvent(e);
8606
"_inlineEvents",
7939
}break;
8607
"_element",
7940
}target=target.getParent();
8608
"_style",
7941
}},
8609
"_borderElement",
7942
_focused:false,
8610
"_innerStyle",
7943
_onwindowblur:function(e){if(!this._focused||this._ignoreWindowBlur){return;
8611
"_oldParent",
7944
}this._focused=false;
8612
"_styleProperties",
7945
this.setCaptureWidget(null);
8613
"_htmlProperties",
7946
if(qx.Class.isDefined("qx.ui.popup.PopupManager")){qx.ui.popup.PopupManager.getInstance().update();
8614
"_htmlAttributes",
7947
}if(qx.Class.isDefined("qx.ui.menu.Manager")){qx.ui.menu.Manager.getInstance().update();
8615
"__states",
7948
}if(qx.Class.isDefined("qx.event.handler.DragAndDropHandler")){qx.event.handler.DragAndDropHandler.getInstance().globalCancelDrag();
8616
"_jobQueue",
7949
}qx.ui.core.ClientDocument.getInstance().createDispatchEvent("windowblur");
8617
"_layoutChanges",
7950
},
8618
"__borderObject");
7951
_onwindowfocus:function(e){if(this._focused){return;
7952
}this._focused=true;
7953
qx.ui.core.ClientDocument.getInstance().createDispatchEvent("windowfocus");
7954
},
7955
_onwindowresize:function(e){qx.ui.core.ClientDocument.getInstance().createDispatchEvent("windowresize");
7956
}},
7957
destruct:function(){this.detachEvents();
7958
this._disposeObjectDeep("_commands",
7959
1);
7960
this._disposeFields("__onmouseevent",
7961
"__ondragevent",
7962
"__onselectevent",
7963
"__onwindowblur",
7964
"__onwindowfocus",
7965
"__onwindowresize");
7966
this._disposeFields("_lastMouseEventType",
7967
"_lastMouseDown",
7968
"_lastMouseEventDate",
7969
"_lastMouseDownDomTarget",
7970
"_lastMouseDownDispatchTarget");
8619
}});
7971
}});
8620
7972
8621
7973
8622
7974
8623
7975
8624
/* ID: qx.ui.core.Parent */
7976
/* ID: qx.dom.Node */
8625
qx.Class.define("qx.ui.core.Parent",
7977
qx.Class.define("qx.dom.Node",
8626
{extend:qx.ui.core.Widget,
7978
{statics:{ELEMENT:1,
8627
type:"abstract",
7979
ATTRIBUTE:2,
8628
construct:function(){this.base(arguments);
7980
TEXT:3,
8629
this._children=[];
7981
CDATA_SECTION:4,
8630
this._layoutImpl=this._createLayoutImpl();
7982
ENTITY_REFERENCE:5,
7983
ENTITY:6,
7984
PROCESSING_INSTRUCTION:7,
7985
COMMENT:8,
7986
DOCUMENT:9,
7987
DOCUMENT_TYPE:10,
7988
DOCUMENT_FRAGMENT:11,
7989
NOTATION:12,
7990
getDocument:function(node){if(this.isDocument(node)){return node;
7991
}return node.ownerDocument||node.document||null;
8631
},
7992
},
8632
properties:{focusHandler:{check:"qx.event.handler.FocusHandler",
7993
getWindow:qx.core.Variant.select("qx.client",
8633
apply:"_applyFocusHandler",
7994
{"mshtml":function(node){return this.getDocument(node).parentWindow;
8634
nullable:true},
8635
activeChild:{check:"qx.ui.core.Widget",
8636
apply:"_applyActiveChild",
8637
event:"changeActiveChild",
8638
nullable:true},
8639
focusedChild:{check:"qx.ui.core.Widget",
8640
apply:"_applyFocusedChild",
8641
event:"changeFocusedChild",
8642
nullable:true},
8643
visibleChildren:{_cached:true,
8644
defaultValue:null}},
8645
members:{isFocusRoot:function(){return this.getFocusHandler()!=null;
8646
},
7995
},
8647
getFocusRoot:function(){if(this.isFocusRoot()){return this;
7996
"default":function(node){return this.getDocument(node).defaultView;
8648
}
7997
}}),
8649
if(this._hasParent){return this.getParent().getFocusRoot();
7998
getDocumentElement:function(node){return this.getDocument(node).documentElement;
8650
}return null;
8651
},
7999
},
8652
activateFocusRoot:function(){if(this._focusHandler){return;
8000
getBodyElement:function(node){return this.getDocument(node).body;
8653
}this._focusHandler=new qx.event.handler.FocusHandler(this);
8654
this.setFocusHandler(this._focusHandler);
8655
},
8001
},
8656
_onfocuskeyevent:function(e){this.getFocusHandler()._onkeyevent(this,
8002
isElement:function(node){return !!(node&&node.nodeType===qx.dom.Node.ELEMENT);
8657
e);
8658
},
8003
},
8659
_applyFocusHandler:function(value,
8004
isDocument:function(node){return !!(node&&node.nodeType===qx.dom.Node.DOCUMENT);
8660
old){if(value){this.addEventListener("keypress",
8661
this._onfocuskeyevent);
8662
if(this.getTabIndex()<1){this.setTabIndex(1);
8663
}this.setHideFocus(true);
8664
this.setActiveChild(this);
8665
}else{this.removeEventListener("keydown",
8666
this._onfocuskeyevent);
8667
this.removeEventListener("keypress",
8668
this._onfocuskeyevent);
8669
this.setTabIndex(-1);
8670
this.setHideFocus(false);
8671
}},
8672
_applyActiveChild:function(value,
8673
old){},
8674
_applyFocusedChild:function(value,
8675
old){var vFocusValid=value!=null;
8676
var vBlurValid=old!=null;
8677
if(qx.Class.isDefined("qx.ui.popup.PopupManager")&&vFocusValid){var vMgr=qx.ui.popup.PopupManager.getInstance();
8678
if(vMgr){vMgr.update(value);
8679
}}
8680
if(vBlurValid){if(old.hasEventListeners("focusout")){var vEventObject=new qx.event.type.FocusEvent("focusout",
8681
old);
8682
if(vFocusValid){vEventObject.setRelatedTarget(value);
8683
}old.dispatchEvent(vEventObject);
8684
vEventObject.dispose();
8685
}}
8686
if(vFocusValid){if(value.hasEventListeners("focusin")){var vEventObject=new qx.event.type.FocusEvent("focusin",
8687
value);
8688
if(vBlurValid){vEventObject.setRelatedTarget(old);
8689
}value.dispatchEvent(vEventObject);
8690
vEventObject.dispose();
8691
}}
8692
if(vBlurValid){if(this.getActiveChild()==old&&!vFocusValid){this.setActiveChild(null);
8693
}old.setFocused(false);
8694
var vEventObject=new qx.event.type.FocusEvent("blur",
8695
old);
8696
if(vFocusValid){vEventObject.setRelatedTarget(value);
8697
}old.dispatchEvent(vEventObject);
8698
if(qx.Class.isDefined("qx.ui.popup.ToolTipManager")){var vMgr=qx.ui.popup.ToolTipManager.getInstance();
8699
if(vMgr){vMgr.handleBlur(vEventObject);
8700
}}vEventObject.dispose();
8701
}
8702
if(vFocusValid){this.setActiveChild(value);
8703
value.setFocused(true);
8704
qx.event.handler.EventHandler.getInstance().setFocusRoot(this);
8705
var vEventObject=new qx.event.type.FocusEvent("focus",
8706
value);
8707
if(vBlurValid){vEventObject.setRelatedTarget(old);
8708
}value.dispatchEvent(vEventObject);
8709
if(qx.Class.isDefined("qx.ui.popup.ToolTipManager")){var vMgr=qx.ui.popup.ToolTipManager.getInstance();
8710
if(vMgr){vMgr.handleFocus(vEventObject);
8711
}}vEventObject.dispose();
8712
}},
8713
_layoutImpl:null,
8714
_createLayoutImpl:function(){return null;
8715
},
8005
},
8716
getLayoutImpl:function(){return this._layoutImpl;
8006
isText:function(node){return !!(node&&node.nodeType===qx.dom.Node.TEXT);
8717
},
8007
},
8718
getChildren:function(){return this._children;
8008
isWindow:function(node){return node.document&&this.getWindow(node.document)==node;
8719
},
8009
},
8720
getChildrenLength:function(){return this.getChildren().length;
8010
getText:function(node){if(!node||!node.nodeType){return null;
8011
}
8012
switch(node.nodeType){case 1:var i,
8013
a=[],
8014
nodes=node.childNodes,
8015
length=nodes.length;
8016
for(i=0;i<length;i++){a[i]=this.getText(nodes[i]);
8017
}return a.join("");
8018
case 2:return node.nodeValue;
8019
break;
8020
case 3:return node.nodeValue;
8021
break;
8022
}return null;
8023
}}});
8024
8025
8026
8027
8028
/* ID: qx.event.handler.KeyEventHandler */
8029
qx.Class.define("qx.event.handler.KeyEventHandler",
8030
{type:"singleton",
8031
extend:qx.core.Target,
8032
construct:function(){this.base(arguments);
8033
this.__onkeypress=qx.lang.Function.bind(this._onkeypress,
8034
this);
8035
this.__onkeyupdown=qx.lang.Function.bind(this._onkeyupdown,
8036
this);
8721
},
8037
},
8722
hasChildren:function(){return this.getChildrenLength()>0;
8038
members:{_attachEvents:function(){var el=qx.core.Variant.isSet("qx.client",
8039
"gecko")?window:document.body;
8040
qx.html.EventRegistration.addEventListener(el,
8041
"keypress",
8042
this.__onkeypress);
8043
qx.html.EventRegistration.addEventListener(el,
8044
"keyup",
8045
this.__onkeyupdown);
8046
qx.html.EventRegistration.addEventListener(el,
8047
"keydown",
8048
this.__onkeyupdown);
8723
},
8049
},
8724
isEmpty:function(){return this.getChildrenLength()==0;
8050
_detachEvents:function(){var el=qx.core.Variant.isSet("qx.client",
8051
"gecko")?window:document.body;
8052
qx.html.EventRegistration.removeEventListener(el,
8053
"keypress",
8054
this.__onkeypress);
8055
qx.html.EventRegistration.removeEventListener(el,
8056
"keyup",
8057
this.__onkeyupdown);
8058
qx.html.EventRegistration.removeEventListener(el,
8059
"keydown",
8060
this.__onkeyupdown);
8061
},
8062
_onkeyupdown:qx.core.Variant.select("qx.client",
8063
{"mshtml":function(domEvent){domEvent=window.event||domEvent;
8064
var keyCode=domEvent.keyCode;
8065
var charcode=0;
8066
var type=domEvent.type;
8067
this.debug("native - type: "+type+" keyCode: "+keyCode+" charCode: "+charcode);
8068
if(!(this._lastUpDownType[keyCode]=="keydown"&&type=="keydown")){this._idealKeyHandler(keyCode,
8069
charcode,
8070
type,
8071
domEvent);
8072
}if(type=="keydown"){if(this._isNonPrintableKeyCode(keyCode)||
8073
keyCode==
8074
8||keyCode==9){this._idealKeyHandler(keyCode,
8075
charcode,
8076
"keypress",
8077
domEvent);
8078
}}this._lastUpDownType[keyCode]=type;
8079
},
8080
"gecko":function(domEvent){var keyCode=this._keyCodeFix[domEvent.keyCode]||domEvent.keyCode;
8081
var charCode=domEvent.charCode;
8082
var type=domEvent.type;
8083
this.debug("native - type: "+type+" keyCode: "+keyCode+" charCode: "+charCode);
8084
if(qx.core.Client.getInstance().runsOnWindows()){var keyIdentifier=keyCode?this._keyCodeToIdentifier(keyCode):this._charCodeToIdentifier(charCode);
8085
if(!(this._lastUpDownType[keyIdentifier]=="keypress"&&type=="keydown")){this._idealKeyHandler(keyCode,
8086
charCode,
8087
type,
8088
domEvent);
8089
}this._lastUpDownType[keyIdentifier]=type;
8090
}else{this._idealKeyHandler(keyCode,
8091
charCode,
8092
type,
8093
domEvent);
8094
}},
8095
"webkit":function(domEvent){var keyCode=0;
8096
var charCode=0;
8097
var type=domEvent.type;
8098
this.debug("native - type: "+type+" keyCode: "+keyCode+" charCode: "+charCode);
8099
if(qx.core.Client.getInstance().getVersion()<420){if(!this._lastCharCodeForType){this._lastCharCodeForType={};
8100
}var isSafariSpecialKey=this._lastCharCodeForType[type]>63000;
8101
if(isSafariSpecialKey){this._lastCharCodeForType[type]=null;
8102
return;
8103
}this._lastCharCodeForType[type]=domEvent.charCode;
8104
}
8105
if(type=="keyup"||type=="keydown"){keyCode=this._charCode2KeyCode[domEvent.charCode]||domEvent.keyCode;
8106
}else{if(this._charCode2KeyCode[domEvent.charCode]){keyCode=this._charCode2KeyCode[domEvent.charCode];
8107
}else{charCode=domEvent.charCode;
8108
}}this._idealKeyHandler(keyCode,
8109
charCode,
8110
type,
8111
domEvent);
8725
},
8112
},
8726
indexOf:function(vChild){return this.getChildren().indexOf(vChild);
8113
"opera":function(domEvent){this._idealKeyHandler(domEvent.keyCode,
8114
0,
8115
domEvent.type,
8116
domEvent);
8117
this._lastKeyCode=domEvent.keyCode;
8727
},
8118
},
8728
contains:function(vWidget){switch(vWidget){case null:return false;
8119
"default":function(){throw new Error("Unsupported browser for key event handler!");
8729
case this:return true;
8120
}}),
8730
default:return this.contains(vWidget.getParent());
8121
_onkeypress:qx.core.Variant.select("qx.client",
8122
{"mshtml":function(domEvent){var domEvent=window.event||domEvent;
8123
if(this._charCode2KeyCode[domEvent.keyCode]){this._idealKeyHandler(this._charCode2KeyCode[domEvent.keyCode],
8124
0,
8125
domEvent.type,
8126
domEvent);
8127
}else{this._idealKeyHandler(0,
8128
domEvent.keyCode,
8129
domEvent.type,
8130
domEvent);
8731
}},
8131
}},
8732
_computeVisibleChildren:function(){var vVisible=[];
8132
"gecko":function(domEvent){var keyCode=this._keyCodeFix[domEvent.keyCode]||domEvent.keyCode;
8733
var vChildren=this.getChildren();
8133
var charCode=domEvent.charCode;
8734
if(!vChildren){return 0;
8134
var type=domEvent.type;
8735
}var vLength=vChildren.length;
8135
this.debug("native - type: "+type+" keyCode: "+keyCode+" charCode: "+charCode);
8736
for(var i=0;i<vLength;i++){var vChild=vChildren[i];
8136
if(qx.core.Client.getInstance().runsOnWindows()){var keyIdentifier=keyCode?this._keyCodeToIdentifier(keyCode):this._charCodeToIdentifier(charCode);
8737
if(vChild._isDisplayable){vVisible.push(vChild);
8137
if(!(this._lastUpDownType[keyIdentifier]=="keypress"&&type=="keydown")){this._idealKeyHandler(keyCode,
8738
}}return vVisible;
8138
charCode,
8739
},
8139
type,
8740
getVisibleChildrenLength:function(){return this.getVisibleChildren().length;
8140
domEvent);
8141
}this._lastUpDownType[keyIdentifier]=type;
8142
}else{this._idealKeyHandler(keyCode,
8143
charCode,
8144
type,
8145
domEvent);
8146
}},
8147
"webkit":function(domEvent){var keyCode=0;
8148
var charCode=0;
8149
var type=domEvent.type;
8150
if(qx.core.Client.getInstance().getVersion()<420){if(!this._lastCharCodeForType){this._lastCharCodeForType={};
8151
}var isSafariSpecialKey=this._lastCharCodeForType[type]>63000;
8152
if(isSafariSpecialKey){this._lastCharCodeForType[type]=null;
8153
return;
8154
}this._lastCharCodeForType[type]=domEvent.charCode;
8155
}
8156
if(type=="keyup"||type=="keydown"){keyCode=this._charCode2KeyCode[domEvent.charCode]||domEvent.keyCode;
8157
}else{if(this._charCode2KeyCode[domEvent.charCode]){keyCode=this._charCode2KeyCode[domEvent.charCode];
8158
}else{charCode=domEvent.charCode;
8159
}}this._idealKeyHandler(keyCode,
8160
charCode,
8161
type,
8162
domEvent);
8741
},
8163
},
8742
hasVisibleChildren:function(){return this.getVisibleChildrenLength()>0;
8164
"opera":function(domEvent){var keyCode=domEvent.keyCode;
8165
var type=domEvent.type;
8166
if(keyCode!=this._lastKeyCode){this._idealKeyHandler(0,
8167
this._lastKeyCode,
8168
type,
8169
domEvent);
8170
}else{if(this._keyCodeToIdentifierMap[keyCode]){this._idealKeyHandler(keyCode,
8171
0,
8172
type,
8173
domEvent);
8174
}else{this._idealKeyHandler(0,
8175
keyCode,
8176
type,
8177
domEvent);
8178
}}this._lastKeyCode=keyCode;
8743
},
8179
},
8744
isVisibleEmpty:function(){return this.getVisibleChildrenLength()==0;
8180
"default":function(){throw new Error("Unsupported browser for key event handler!");
8181
}}),
8182
_specialCharCodeMap:{8:"Backspace",
8183
9:"Tab",
8184
13:"Enter",
8185
27:"Escape",
8186
32:"Space"},
8187
_keyCodeToIdentifierMap:{16:"Shift",
8188
17:"Control",
8189
18:"Alt",
8190
20:"CapsLock",
8191
224:"Meta",
8192
37:"Left",
8193
38:"Up",
8194
39:"Right",
8195
40:"Down",
8196
33:"PageUp",
8197
34:"PageDown",
8198
35:"End",
8199
36:"Home",
8200
45:"Insert",
8201
46:"Delete",
8202
112:"F1",
8203
113:"F2",
8204
114:"F3",
8205
115:"F4",
8206
116:"F5",
8207
117:"F6",
8208
118:"F7",
8209
119:"F8",
8210
120:"F9",
8211
121:"F10",
8212
122:"F11",
8213
123:"F12",
8214
144:"NumLock",
8215
44:"PrintScreen",
8216
145:"Scroll",
8217
19:"Pause",
8218
91:"Win",
8219
93:"Apps"},
8220
_numpadToCharCode:{96:"0".charCodeAt(0),
8221
97:"1".charCodeAt(0),
8222
98:"2".charCodeAt(0),
8223
99:"3".charCodeAt(0),
8224
100:"4".charCodeAt(0),
8225
101:"5".charCodeAt(0),
8226
102:"6".charCodeAt(0),
8227
103:"7".charCodeAt(0),
8228
104:"8".charCodeAt(0),
8229
105:"9".charCodeAt(0),
8230
106:"*".charCodeAt(0),
8231
107:"+".charCodeAt(0),
8232
109:"-".charCodeAt(0),
8233
110:",".charCodeAt(0),
8234
111:"/".charCodeAt(0)},
8235
_charCodeA:"A".charCodeAt(0),
8236
_charCodeZ:"Z".charCodeAt(0),
8237
_charCode0:"0".charCodeAt(0),
8238
_charCode9:"9".charCodeAt(0),
8239
_isNonPrintableKeyCode:function(keyCode){return this._keyCodeToIdentifierMap[keyCode]?true:false;
8745
},
8240
},
8746
add:function(varargs){var vWidget;
8241
_isIdentifiableKeyCode:function(keyCode){if(keyCode>=this._charCodeA&&keyCode<=this._charCodeZ){return true;
8747
for(var i=0,
8242
}if(keyCode>=this._charCode0&&keyCode<=this._charCode9){return true;
8748
l=arguments.length;i<l;i++){vWidget=arguments[i];
8243
}if(this._specialCharCodeMap[keyCode]){return true;
8749
if(!(vWidget instanceof qx.ui.core.Parent)&&!(vWidget instanceof qx.ui.basic.Terminator)){throw new Error("Invalid Widget: "+vWidget);
8244
}if(this._numpadToCharCode[keyCode]){return true;
8750
}else{vWidget.setParent(this);
8245
}if(this._isNonPrintableKeyCode(keyCode)){return true;
8751
}}return this;
8246
}return false;
8752
},
8247
},
8753
addAt:function(vChild,
8248
isValidKeyIdentifier:function(keyIdentifier){if(this._identifierToKeyCodeMap[keyIdentifier]){return true;
8754
vIndex){if(vIndex==null||vIndex<0){throw new Error("Not a valid index for addAt(): "+vIndex);
8755
}
8249
}
8756
if(vChild.getParent()==this){var vChildren=this.getChildren();
8250
if(keyIdentifier.length!=1){return false;
8757
var vOldIndex=vChildren.indexOf(vChild);
8251
}
8758
if(vOldIndex!=vIndex){if(vOldIndex!=-1){qx.lang.Array.removeAt(vChildren,
8252
if(keyIdentifier>="0"&&keyIdentifier<="9"){return true;
8759
vOldIndex);
8253
}
8760
}qx.lang.Array.insertAt(vChildren,
8254
if(keyIdentifier>="A"&&keyIdentifier<="Z"){return true;
8761
vChild,
8255
}
8762
vIndex);
8256
switch(keyIdentifier){case "+":case "-":case "*":case "/":return true;
8763
if(this._initialLayoutDone){this._invalidateVisibleChildren();
8257
default:return false;
8764
this.getLayoutImpl().updateChildrenOnMoveChild(vChild,
8765
vIndex,
8766
vOldIndex);
8767
}}}else{vChild._insertIndex=vIndex;
8768
vChild.setParent(this);
8769
}},
8258
}},
8770
addAtBegin:function(vChild){return this.addAt(vChild,
8259
_keyCodeToIdentifier:function(keyCode){if(this._isIdentifiableKeyCode(keyCode)){var numPadKeyCode=this._numpadToCharCode[keyCode];
8771
0);
8260
if(numPadKeyCode){return String.fromCharCode(numPadKeyCode);
8772
},
8261
}return (this._keyCodeToIdentifierMap[keyCode]||this._specialCharCodeMap[keyCode]||String.fromCharCode(keyCode));
8773
addAtEnd:function(vChild){var vLength=this.getChildrenLength();
8262
}else{return "Unidentified";
8774
return this.addAt(vChild,
8263
}},
8775
vChild.getParent()==this?vLength-1:vLength);
8264
_charCodeToIdentifier:function(charCode){return this._specialCharCodeMap[charCode]||String.fromCharCode(charCode).toUpperCase();
8776
},
8777
addBefore:function(vChild,
8778
vBefore){var vChildren=this.getChildren();
8779
var vTargetIndex=vChildren.indexOf(vBefore);
8780
if(vTargetIndex==-1){throw new Error("Child to add before: "+vBefore+" is not inside this parent.");
8781
}var vSourceIndex=vChildren.indexOf(vChild);
8782
if(vSourceIndex==-1||vSourceIndex>vTargetIndex){vTargetIndex++;
8783
}return this.addAt(vChild,
8784
Math.max(0,
8785
vTargetIndex-1));
8786
},
8265
},
8787
addAfter:function(vChild,
8266
_identifierToKeyCode:function(keyIdentifier){return this._identifierToKeyCodeMap[keyIdentifier]||keyIdentifier.charCodeAt(0);
8788
vAfter){var vChildren=this.getChildren();
8789
var vTargetIndex=vChildren.indexOf(vAfter);
8790
if(vTargetIndex==-1){throw new Error("Child to add after: "+vAfter+" is not inside this parent.");
8791
}var vSourceIndex=vChildren.indexOf(vChild);
8792
if(vSourceIndex!=-1&&vSourceIndex<vTargetIndex){vTargetIndex--;
8793
}return this.addAt(vChild,
8794
Math.min(vChildren.length,
8795
vTargetIndex+1));
8796
},
8267
},
8797
remove:function(varargs){var vWidget;
8268
_idealKeyHandler:function(keyCode,
8798
for(var i=0,
8269
charCode,
8799
l=arguments.length;i<l;i++){vWidget=arguments[i];
8270
eventType,
8800
if(!(vWidget instanceof qx.ui.core.Parent)&&!(vWidget instanceof qx.ui.basic.Terminator)){throw new Error("Invalid Widget: "+vWidget);
8271
domEvent){if(!keyCode&&!charCode){return;
8801
}else if(vWidget.getParent()==this){vWidget.setParent(null);
8272
}var keyIdentifier;
8273
if(keyCode){keyIdentifier=this._keyCodeToIdentifier(keyCode);
8274
qx.event.handler.EventHandler.getInstance()._onkeyevent_post(domEvent,
8275
eventType,
8276
keyCode,
8277
charCode,
8278
keyIdentifier);
8279
}else{keyIdentifier=this._charCodeToIdentifier(charCode);
8280
qx.event.handler.EventHandler.getInstance()._onkeyevent_post(domEvent,
8281
"keypress",
8282
keyCode,
8283
charCode,
8284
keyIdentifier);
8285
qx.event.handler.EventHandler.getInstance()._onkeyevent_post(domEvent,
8286
"keyinput",
8287
keyCode,
8288
charCode,
8289
keyIdentifier);
8802
}}},
8290
}}},
8803
removeAt:function(vIndex){var vChild=this.getChildren()[vIndex];
8291
defer:function(statics,
8804
if(vChild){delete vChild._insertIndex;
8292
members,
8805
vChild.setParent(null);
8293
properties){if(!members._identifierToKeyCodeMap){members._identifierToKeyCodeMap={};
8806
}},
8294
for(var key in members._keyCodeToIdentifierMap){members._identifierToKeyCodeMap[members._keyCodeToIdentifierMap[key]]=parseInt(key);
8807
removeAll:function(){var cs=this.getChildren();
8295
}
8808
var co=cs[0];
8296
for(var key in members._specialCharCodeMap){members._identifierToKeyCodeMap[members._specialCharCodeMap[key]]=parseInt(key);
8809
while(co){this.remove(co);
8297
}}
8810
co=cs[0];
8298
if(qx.core.Variant.isSet("qx.client",
8299
"mshtml")){members._lastUpDownType={};
8300
members._charCode2KeyCode={13:13,
8301
27:27};
8302
}else if(qx.core.Variant.isSet("qx.client",
8303
"gecko")){members._lastUpDownType={};
8304
members._keyCodeFix={12:members._identifierToKeyCode("NumLock")};
8305
}else if(qx.core.Variant.isSet("qx.client",
8306
"webkit")){members._charCode2KeyCode={63289:members._identifierToKeyCode("NumLock"),
8307
63276:members._identifierToKeyCode("PageUp"),
8308
63277:members._identifierToKeyCode("PageDown"),
8309
63275:members._identifierToKeyCode("End"),
8310
63273:members._identifierToKeyCode("Home"),
8311
63234:members._identifierToKeyCode("Left"),
8312
63232:members._identifierToKeyCode("Up"),
8313
63235:members._identifierToKeyCode("Right"),
8314
63233:members._identifierToKeyCode("Down"),
8315
63272:members._identifierToKeyCode("Delete"),
8316
63302:members._identifierToKeyCode("Insert"),
8317
63236:members._identifierToKeyCode("F1"),
8318
63237:members._identifierToKeyCode("F2"),
8319
63238:members._identifierToKeyCode("F3"),
8320
63239:members._identifierToKeyCode("F4"),
8321
63240:members._identifierToKeyCode("F5"),
8322
63241:members._identifierToKeyCode("F6"),
8323
63242:members._identifierToKeyCode("F7"),
8324
63243:members._identifierToKeyCode("F8"),
8325
63244:members._identifierToKeyCode("F9"),
8326
63245:members._identifierToKeyCode("F10"),
8327
63246:members._identifierToKeyCode("F11"),
8328
63247:members._identifierToKeyCode("F12"),
8329
63248:members._identifierToKeyCode("PrintScreen"),
8330
3:members._identifierToKeyCode("Enter"),
8331
12:members._identifierToKeyCode("NumLock"),
8332
13:members._identifierToKeyCode("Enter")};
8333
}else if(qx.core.Variant.isSet("qx.client",
8334
"opera")){members._lastKeyCode=null;
8811
}},
8335
}},
8812
getFirstChild:function(){return qx.lang.Array.getFirst(this.getChildren())||null;
8336
destruct:function(){this._detachEvents();
8337
this._disposeFields("_lastUpDownType",
8338
"_lastKeyCode");
8339
}});
8340
8341
8342
8343
8344
/* ID: qx.event.type.DomEvent */
8345
qx.Class.define("qx.event.type.DomEvent",
8346
{extend:qx.event.type.Event,
8347
construct:function(vType,
8348
vDomEvent,
8349
vDomTarget,
8350
vTarget,
8351
vOriginalTarget){this.base(arguments,
8352
vType);
8353
this.setDomEvent(vDomEvent);
8354
this.setDomTarget(vDomTarget);
8355
this.setTarget(vTarget);
8356
this.setOriginalTarget(vOriginalTarget);
8813
},
8357
},
8814
getFirstVisibleChild:function(){return qx.lang.Array.getFirst(this.getVisibleChildren())||null;
8358
statics:{SHIFT_MASK:1,
8359
CTRL_MASK:2,
8360
ALT_MASK:4,
8361
META_MASK:8},
8362
properties:{bubbles:{_fast:true,
8363
defaultValue:true,
8364
noCompute:true},
8365
propagationStopped:{_fast:true,
8366
defaultValue:false,
8367
noCompute:true},
8368
domEvent:{_fast:true,
8369
setOnlyOnce:true,
8370
noCompute:true},
8371
domTarget:{_fast:true,
8372
setOnlyOnce:true,
8373
noCompute:true},
8374
modifiers:{_cached:true,
8375
defaultValue:null}},
8376
members:{_computeModifiers:function(){var mask=0;
8377
var evt=this.getDomEvent();
8378
if(evt.shiftKey)mask|=qx.event.type.DomEvent.SHIFT_MASK;
8379
if(evt.ctrlKey)mask|=qx.event.type.DomEvent.CTRL_MASK;
8380
if(evt.altKey)mask|=qx.event.type.DomEvent.ALT_MASK;
8381
if(evt.metaKey)mask|=qx.event.type.DomEvent.META_MASK;
8382
return mask;
8815
},
8383
},
8816
getFirstActiveChild:function(vIgnoreClasses){return qx.ui.core.Widget.getActiveSiblingHelper(null,
8384
isCtrlPressed:function(){return this.getDomEvent().ctrlKey;
8817
this,
8818
1,
8819
vIgnoreClasses,
8820
"first")||null;
8821
},
8385
},
8822
getLastChild:function(){return qx.lang.Array.getLast(this.getChildren())||null;
8386
isShiftPressed:function(){return this.getDomEvent().shiftKey;
8823
},
8387
},
8824
getLastVisibleChild:function(){return qx.lang.Array.getLast(this.getVisibleChildren())||null;
8388
isAltPressed:function(){return this.getDomEvent().altKey;
8825
},
8389
},
8826
getLastActiveChild:function(vIgnoreClasses){return qx.ui.core.Widget.getActiveSiblingHelper(null,
8390
isMetaPressed:function(){return this.getDomEvent().metaKey;
8827
this,
8828
-1,
8829
vIgnoreClasses,
8830
"last")||null;
8831
},
8391
},
8832
forEachChild:function(vFunc){var ch=this.getChildren(),
8392
isCtrlOrCommandPressed:function(){if(qx.core.Client.getInstance().runsOnMacintosh()){return this.getDomEvent().metaKey;
8833
chc,
8393
}else{return this.getDomEvent().ctrlKey;
8834
i=-1;
8835
if(!ch){return;
8836
}
8837
while(chc=ch[++i]){vFunc.call(chc,
8838
i);
8839
}},
8840
forEachVisibleChild:function(vFunc){var ch=this.getVisibleChildren(),
8841
chc,
8842
i=-1;
8843
if(!ch){return;
8844
}
8845
while(chc=ch[++i]){vFunc.call(chc,
8846
i);
8847
}},
8394
}},
8848
_beforeAppear:function(){this.base(arguments);
8395
setDefaultPrevented:qx.core.Variant.select("qx.client",
8849
this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeAppear();
8396
{"mshtml":function(vValue){if(!vValue){return this.error("It is not possible to set preventDefault to false if it was true before!",
8850
}});
8397
"setDefaultPrevented");
8851
},
8398
}this.getDomEvent().returnValue=false;
8852
_afterAppear:function(){this.base(arguments);
8399
this.base(arguments,
8853
this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterAppear();
8400
vValue);
8854
}});
8855
},
8856
_beforeDisappear:function(){this.base(arguments);
8857
this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeDisappear();
8858
}});
8859
},
8860
_afterDisappear:function(){this.base(arguments);
8861
this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterDisappear();
8862
}});
8863
},
8401
},
8864
_beforeInsertDom:function(){this.base(arguments);
8402
"default":function(vValue){if(!vValue){return this.error("It is not possible to set preventDefault to false if it was true before!",
8865
this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeInsertDom();
8403
"setDefaultPrevented");
8404
}this.getDomEvent().preventDefault();
8405
this.getDomEvent().returnValue=false;
8406
this.base(arguments,
8407
vValue);
8408
}})},
8409
destruct:function(){this._disposeFields("_valueDomEvent",
8410
"_valueDomTarget");
8866
}});
8411
}});
8412
8413
8414
8415
8416
/* ID: qx.event.type.KeyEvent */
8417
qx.Class.define("qx.event.type.KeyEvent",
8418
{extend:qx.event.type.DomEvent,
8419
construct:function(vType,
8420
vDomEvent,
8421
vDomTarget,
8422
vTarget,
8423
vOriginalTarget,
8424
vKeyCode,
8425
vCharCode,
8426
vKeyIdentifier){this.base(arguments,
8427
vType,
8428
vDomEvent,
8429
vDomTarget,
8430
vTarget,
8431
vOriginalTarget);
8432
this._keyCode=vKeyCode;
8433
this.setCharCode(vCharCode);
8434
this.setKeyIdentifier(vKeyIdentifier);
8867
},
8435
},
8868
_afterInsertDom:function(){this.base(arguments);
8436
statics:{keys:{esc:27,
8869
this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterInsertDom();
8437
enter:13,
8870
}});
8438
tab:9,
8439
space:32,
8440
up:38,
8441
down:40,
8442
left:37,
8443
right:39,
8444
shift:16,
8445
ctrl:17,
8446
alt:18,
8447
f1:112,
8448
f2:113,
8449
f3:114,
8450
f4:115,
8451
f5:116,
8452
f6:117,
8453
f7:118,
8454
f8:119,
8455
f9:120,
8456
f10:121,
8457
f11:122,
8458
f12:123,
8459
print:124,
8460
del:46,
8461
backspace:8,
8462
insert:45,
8463
home:36,
8464
end:35,
8465
pageup:33,
8466
pagedown:34,
8467
numlock:144,
8468
numpad_0:96,
8469
numpad_1:97,
8470
numpad_2:98,
8471
numpad_3:99,
8472
numpad_4:100,
8473
numpad_5:101,
8474
numpad_6:102,
8475
numpad_7:103,
8476
numpad_8:104,
8477
numpad_9:105,
8478
numpad_divide:111,
8479
numpad_multiply:106,
8480
numpad_minus:109,
8481
numpad_plus:107},
8482
codes:{}},
8483
properties:{charCode:{_fast:true,
8484
setOnlyOnce:true,
8485
noCompute:true},
8486
keyIdentifier:{_fast:true,
8487
setOnlyOnce:true,
8488
noCompute:true}},
8489
members:{getKeyCode:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,
8490
"Please use getKeyIdentifier() instead.");
8491
return this._keyCode;
8492
}},
8493
defer:function(statics){for(var i in statics.keys){statics.codes[statics.keys[i]]=i;
8494
}}});
8495
8496
8497
8498
8499
/* ID: qx.event.type.MouseEvent */
8500
qx.Class.define("qx.event.type.MouseEvent",
8501
{extend:qx.event.type.DomEvent,
8502
construct:function(vType,
8503
vDomEvent,
8504
vDomTarget,
8505
vTarget,
8506
vOriginalTarget,
8507
vRelatedTarget){this.base(arguments,
8508
vType,
8509
vDomEvent,
8510
vDomTarget,
8511
vTarget,
8512
vOriginalTarget);
8513
if(vRelatedTarget){this.setRelatedTarget(vRelatedTarget);
8514
}},
8515
statics:{C_BUTTON_LEFT:"left",
8516
C_BUTTON_MIDDLE:"middle",
8517
C_BUTTON_RIGHT:"right",
8518
C_BUTTON_NONE:"none",
8519
_screenX:0,
8520
_screenY:0,
8521
_clientX:0,
8522
_clientY:0,
8523
_pageX:0,
8524
_pageY:0,
8525
_button:null,
8526
buttons:qx.core.Variant.select("qx.client",
8527
{"mshtml":{left:1,
8528
right:2,
8529
middle:4},
8530
"default":{left:0,
8531
right:2,
8532
middle:1}}),
8533
storeEventState:function(e){this._screenX=e.getScreenX();
8534
this._screenY=e.getScreenY();
8535
this._clientX=e.getClientX();
8536
this._clientY=e.getClientY();
8537
this._pageX=e.getPageX();
8538
this._pageY=e.getPageY();
8539
this._button=e.getButton();
8871
},
8540
},
8872
_beforeRemoveDom:function(){this.base(arguments);
8541
getScreenX:function(){return this._screenX;
8873
this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeRemoveDom();
8874
}});
8875
},
8542
},
8876
_afterRemoveDom:function(){this.base(arguments);
8543
getScreenY:function(){return this._screenY;
8877
this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterRemoveDom();
8878
}});
8879
},
8544
},
8880
_handleDisplayableCustom:function(vDisplayable,
8545
getClientX:function(){return this._clientX;
8881
vParent,
8882
vHint){this.forEachChild(function(){this._handleDisplayable();
8883
});
8884
},
8546
},
8885
_addChildrenToStateQueue:function(){this.forEachVisibleChild(function(){this.addToStateQueue();
8547
getClientY:function(){return this._clientY;
8886
});
8887
},
8548
},
8888
recursiveAddToStateQueue:function(){this.addToStateQueue();
8549
getPageX:function(){return this._pageX;
8889
this.forEachVisibleChild(function(){this.recursiveAddToStateQueue();
8890
});
8891
},
8550
},
8892
_recursiveAppearanceThemeUpdate:function(vNewAppearanceTheme,
8551
getPageY:function(){return this._pageY;
8893
vOldAppearanceTheme){this.base(arguments,
8894
vNewAppearanceTheme,
8895
vOldAppearanceTheme);
8896
this.forEachVisibleChild(function(){this._recursiveAppearanceThemeUpdate(vNewAppearanceTheme,
8897
vOldAppearanceTheme);
8898
});
8899
},
8552
},
8900
_addChildToChildrenQueue:function(vChild){if(!vChild._isInParentChildrenQueue&&!vChild._isDisplayable){this.warn("Ignoring invisible child: "+vChild);
8553
getButton:function(){return this._button;
8901
}
8902
if(!vChild._isInParentChildrenQueue&&vChild._isDisplayable){qx.ui.core.Widget.addToGlobalLayoutQueue(this);
8903
if(!this._childrenQueue){this._childrenQueue={};
8904
}this._childrenQueue[vChild.toHashCode()]=vChild;
8905
}},
8906
_removeChildFromChildrenQueue:function(vChild){if(this._childrenQueue&&vChild._isInParentChildrenQueue){delete this._childrenQueue[vChild.toHashCode()];
8907
if(qx.lang.Object.isEmpty(this._childrenQueue)){qx.ui.core.Widget.removeFromGlobalLayoutQueue(this);
8908
}}},
8909
_flushChildrenQueue:function(){if(!qx.lang.Object.isEmpty(this._childrenQueue)){this.getLayoutImpl().flushChildrenQueue(this._childrenQueue);
8910
delete this._childrenQueue;
8911
}},
8554
}},
8912
_addChildrenToLayoutQueue:function(p){this.forEachChild(function(){this.addToLayoutChanges(p);
8555
properties:{button:{_fast:true,
8913
});
8556
readOnly:true},
8914
},
8557
wheelDelta:{_fast:true,
8915
_layoutChild:function(vChild){if(!vChild._isDisplayable){return ;
8558
readOnly:true}},
8916
}var vChanges=vChild._layoutChanges;
8559
members:{getPageX:qx.core.Variant.select("qx.client",
8917
try{if(vChild.renderBorder){if(vChanges.borderTop||vChanges.borderRight||vChanges.borderBottom||vChanges.borderLeft){vChild.renderBorder(vChanges);
8560
{"mshtml":function(){return this.getDomEvent().clientX+qx.bom.Viewport.getScrollLeft(window);
8918
}}}catch(ex){this.error("Could not apply border to child "+vChild,
8919
ex);
8920
}
8921
try{if(vChild.renderPadding){if(vChanges.paddingLeft||vChanges.paddingRight||vChanges.paddingTop||vChanges.paddingBottom){vChild.renderPadding(vChanges);
8922
}}}catch(ex){this.error("Could not apply padding to child "+vChild,
8923
ex);
8924
}try{this.getLayoutImpl().layoutChild(vChild,
8925
vChanges);
8926
}catch(ex){this.error("Could not layout child "+vChild+" through layout handler",
8927
ex);
8928
}try{vChild._layoutPost(vChanges);
8929
}catch(ex){this.error("Could not post layout child "+vChild,
8930
ex);
8931
}try{if(vChanges.initial){vChild._initialLayoutDone=true;
8932
qx.ui.core.Widget.addToGlobalDisplayQueue(vChild);
8933
}}catch(ex){this.error("Could not handle display updates from layout flush for child "+vChild,
8934
ex);
8935
}vChild._layoutChanges={};
8936
delete vChild._isInParentLayoutQueue;
8937
delete this._childrenQueue[vChild.toHashCode()];
8938
},
8939
_layoutPost:qx.lang.Function.returnTrue,
8940
_computePreferredInnerWidth:function(){return this.getLayoutImpl().computeChildrenNeededWidth();
8941
},
8561
},
8942
_computePreferredInnerHeight:function(){return this.getLayoutImpl().computeChildrenNeededHeight();
8562
"default":function(){return this.getDomEvent().pageX;
8563
}}),
8564
getPageY:qx.core.Variant.select("qx.client",
8565
{"mshtml":function(){return this.getDomEvent().clientY+qx.bom.Viewport.getScrollTop(window);
8943
},
8566
},
8944
_changeInnerWidth:function(vNew,
8567
"default":function(){return this.getDomEvent().pageY;
8945
vOld){var vLayout=this.getLayoutImpl();
8568
}}),
8946
if(vLayout.invalidateChildrenFlexWidth){vLayout.invalidateChildrenFlexWidth();
8569
getClientX:function(){return this.getDomEvent().clientX;
8947
}this.forEachVisibleChild(function(){if(vLayout.updateChildOnInnerWidthChange(this)&&this._recomputeBoxWidth()){this._recomputeOuterWidth();
8948
this._recomputeInnerWidth();
8949
}});
8950
},
8570
},
8951
_changeInnerHeight:function(vNew,
8571
getClientY:function(){return this.getDomEvent().clientY;
8952
vOld){var vLayout=this.getLayoutImpl();
8953
if(vLayout.invalidateChildrenFlexHeight){vLayout.invalidateChildrenFlexHeight();
8954
}this.forEachVisibleChild(function(){if(vLayout.updateChildOnInnerHeightChange(this)&&this._recomputeBoxHeight()){this._recomputeOuterHeight();
8955
this._recomputeInnerHeight();
8956
}});
8957
},
8572
},
8958
getInnerWidthForChild:function(vChild){return this.getInnerWidth();
8573
getScreenX:function(){return this.getDomEvent().screenX;
8959
},
8574
},
8960
getInnerHeightForChild:function(vChild){return this.getInnerHeight();
8575
getScreenY:function(){return this.getDomEvent().screenY;
8961
},
8576
},
8962
_remappingChildTable:["add",
8577
isLeftButtonPressed:qx.core.Variant.select("qx.client",
8963
"remove",
8578
{"mshtml":function(){if(this.getType()=="click"){return true;
8964
"addAt",
8579
}else{return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_LEFT;
8965
"addAtBegin",
8966
"addAtEnd",
8967
"removeAt",
8968
"addBefore",
8969
"addAfter",
8970
"removeAll"],
8971
_remapStart:"return this._remappingChildTarget.",
8972
_remapStop:".apply(this._remappingChildTarget, arguments)",
8973
remapChildrenHandlingTo:function(vTarget){var t=this._remappingChildTable;
8974
this._remappingChildTarget=vTarget;
8975
for(var i=0,
8976
l=t.length,
8977
s;i<l;i++){s=t[i];
8978
this[s]=new Function(qx.ui.core.Parent.prototype._remapStart+s+qx.ui.core.Parent.prototype._remapStop);
8979
}}},
8980
defer:function(statics,
8981
members,
8982
properties){if(qx.core.Variant.isSet("qx.client",
8983
"opera")){members._layoutChildOrig=members._layoutChild;
8984
members._layoutChild=function(vChild){if(!vChild._initialLayoutDone||!vChild._layoutChanges.border){return this._layoutChildOrig(vChild);
8985
}var vStyle=vChild.getElement().style;
8986
var vOldDisplay=vStyle.display;
8987
vStyle.display="none";
8988
var vRet=this._layoutChildOrig(vChild);
8989
vStyle.display=vOldDisplay;
8990
return vRet;
8991
};
8992
}},
8580
}},
8993
destruct:function(){this._disposeObjectDeep("_children",
8581
"default":function(){return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_LEFT;
8994
1);
8582
}}),
8995
this._disposeObjects("_layoutImpl",
8583
isMiddleButtonPressed:function(){return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_MIDDLE;
8996
"_focusHandler");
8997
this._disposeFields("_childrenQueue",
8998
"_childrenQueue",
8999
"_remappingChildTable",
9000
"_remappingChildTarget",
9001
"_cachedVisibleChildren");
9002
}});
9003
9004
9005
9006
9007
/* ID: qx.event.type.FocusEvent */
9008
qx.Class.define("qx.event.type.FocusEvent",
9009
{extend:qx.event.type.Event,
9010
construct:function(type,
9011
target){this.base(arguments,
9012
type);
9013
this.setTarget(target);
9014
switch(type){case "focusin":case "focusout":this.setBubbles(true);
9015
this.setPropagationStopped(false);
9016
}}});
9017
9018
9019
9020
9021
/* ID: qx.event.handler.EventHandler */
9022
qx.Class.define("qx.event.handler.EventHandler",
9023
{type:"singleton",
9024
extend:qx.core.Target,
9025
construct:function(){this.base(arguments);
9026
this.__onmouseevent=qx.lang.Function.bind(this._onmouseevent,
9027
this);
9028
this.__ondragevent=qx.lang.Function.bind(this._ondragevent,
9029
this);
9030
this.__onselectevent=qx.lang.Function.bind(this._onselectevent,
9031
this);
9032
this.__onwindowblur=qx.lang.Function.bind(this._onwindowblur,
9033
this);
9034
this.__onwindowfocus=qx.lang.Function.bind(this._onwindowfocus,
9035
this);
9036
this.__onwindowresize=qx.lang.Function.bind(this._onwindowresize,
9037
this);
9038
this._commands={};
9039
},
9040
events:{"error":"qx.event.type.DataEvent"},
9041
statics:{mouseEventTypes:["mouseover",
9042
"mousemove",
9043
"mouseout",
9044
"mousedown",
9045
"mouseup",
9046
"click",
9047
"dblclick",
9048
"contextmenu",
9049
qx.core.Variant.isSet("qx.client",
9050
"gecko")?"DOMMouseScroll":"mousewheel"],
9051
keyEventTypes:["keydown",
9052
"keypress",
9053
"keyup"],
9054
dragEventTypes:qx.core.Variant.select("qx.client",
9055
{"gecko":["dragdrop",
9056
"dragover",
9057
"dragenter",
9058
"dragexit",
9059
"draggesture"],
9060
"mshtml":["dragend",
9061
"dragover",
9062
"dragstart",
9063
"drag",
9064
"dragenter",
9065
"dragleave"],
9066
"default":["dragstart",
9067
"dragdrop",
9068
"dragover",
9069
"drag",
9070
"dragleave",
9071
"dragenter",
9072
"dragexit",
9073
"draggesture"]}),
9074
getDomTarget:qx.core.Variant.select("qx.client",
9075
{"mshtml":function(vDomEvent){return vDomEvent.target||vDomEvent.srcElement;
9076
},
8584
},
9077
"webkit":function(vDomEvent){var vNode=vDomEvent.target||vDomEvent.srcElement;
8585
isRightButtonPressed:function(){return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_RIGHT;
9078
if(vNode&&(vNode.nodeType==qx.dom.Node.TEXT)){vNode=vNode.parentNode;
9079
}return vNode;
9080
},
8586
},
9081
"default":function(vDomEvent){return vDomEvent.target;
8587
__buttons:qx.core.Variant.select("qx.client",
9082
}}),
8588
{"mshtml":{1:"left",
9083
stopDomEvent:function(vDomEvent){if(vDomEvent.preventDefault){vDomEvent.preventDefault();
8589
2:"right",
9084
}vDomEvent.returnValue=false;
8590
4:"middle"},
8591
"default":{0:"left",
8592
2:"right",
8593
1:"middle"}}),
8594
_computeButton:function(){switch(this.getDomEvent().type){case "click":case "dblclick":return "left";
8595
case "contextmenu":return "right";
8596
default:return this.__buttons[this.getDomEvent().button]||"none";
8597
}},
8598
_computeWheelDelta:qx.core.Variant.select("qx.client",
8599
{"default":function(){return this.getDomEvent().wheelDelta/120;
9085
},
8600
},
9086
getOriginalTargetObject:function(vNode){if(vNode==document.documentElement){vNode=document.body;
8601
"gecko":function(){return -(this.getDomEvent().detail/3);
9087
}while(vNode!=null&&vNode.qx_Widget==null){try{vNode=vNode.parentNode;
8602
}})}});
9088
}catch(vDomEvent){vNode=null;
8603
9089
}}return vNode?vNode.qx_Widget:null;
8604
8605
8606
8607
/* ID: qx.util.manager.Object */
8608
qx.Class.define("qx.util.manager.Object",
8609
{extend:qx.core.Target,
8610
construct:function(){this.base(arguments);
8611
this._objects={};
9090
},
8612
},
9091
getOriginalTargetObjectFromEvent:function(vDomEvent,
8613
members:{add:function(vObject){if(this.getDisposed()){return;
9092
vWindow){var vNode=qx.event.handler.EventHandler.getDomTarget(vDomEvent);
8614
}this._objects[vObject.toHashCode()]=vObject;
9093
if(vWindow){var vDocument=vWindow.document;
9094
if(vNode==vWindow||vNode==vDocument||vNode==vDocument.documentElement||vNode==vDocument.body){return vDocument.body.qx_Widget;
9095
}}return qx.event.handler.EventHandler.getOriginalTargetObject(vNode);
9096
},
8615
},
9097
getRelatedOriginalTargetObjectFromEvent:function(vDomEvent){return qx.event.handler.EventHandler.getOriginalTargetObject(vDomEvent.relatedTarget||(vDomEvent.type=="mouseover"?vDomEvent.fromElement:vDomEvent.toElement));
8616
remove:function(vObject){if(this.getDisposed()){return false;
8617
}delete this._objects[vObject.toHashCode()];
9098
},
8618
},
9099
getTargetObject:function(vNode,
8619
has:function(vObject){return this._objects[vObject.toHashCode()]!=null;
9100
vObject,
9101
allowDisabled){if(!vObject){var vObject=qx.event.handler.EventHandler.getOriginalTargetObject(vNode);
9102
if(!vObject){return null;
9103
}}while(vObject){if(!allowDisabled&&!vObject.getEnabled()){return null;
9104
}if(!vObject.getAnonymous()){break;
9105
}vObject=vObject.getParent();
9106
}return vObject;
9107
},
8620
},
9108
getTargetObjectFromEvent:function(vDomEvent){return qx.event.handler.EventHandler.getTargetObject(qx.event.handler.EventHandler.getDomTarget(vDomEvent));
8621
get:function(vObject){return this._objects[vObject.toHashCode()];
9109
},
8622
},
9110
getRelatedTargetObjectFromEvent:function(vDomEvent){var target=vDomEvent.relatedTarget;
8623
getAll:function(){return this._objects;
9111
if(!target){if(vDomEvent.type=="mouseover"){target=vDomEvent.fromElement;
8624
},
9112
}else{target=vDomEvent.toElement;
8625
enableAll:function(){for(var vHashCode in this._objects){this._objects[vHashCode].setEnabled(true);
9113
}}return qx.event.handler.EventHandler.getTargetObject(target);
9114
}},
9115
properties:{allowClientContextMenu:{check:"Boolean",
9116
init:false},
9117
allowClientSelectAll:{check:"Boolean",
9118
init:false},
9119
captureWidget:{check:"qx.ui.core.Widget",
9120
nullable:true,
9121
apply:"_applyCaptureWidget"},
9122
focusRoot:{check:"qx.ui.core.Parent",
9123
nullable:true,
9124
apply:"_applyFocusRoot"}},
9125
members:{_lastMouseEventType:null,
9126
_lastMouseDown:false,
9127
_lastMouseEventDate:0,
9128
_applyCaptureWidget:function(value,
9129
old){if(old){old.setCapture(false);
9130
}
9131
if(value){value.setCapture(true);
9132
}},
8626
}},
9133
_applyFocusRoot:function(value,
8627
disableAll:function(){for(var vHashCode in this._objects){this._objects[vHashCode].setEnabled(false);
9134
old){if(old){old.setFocusedChild(null);
8628
}}},
9135
}
8629
destruct:function(){this._disposeObjectDeep("_objects");
9136
if(value&&value.getFocusedChild()==null){value.setFocusedChild(value);
8630
}});
8631
8632
8633
8634
8635
/* ID: qx.ui.embed.IframeManager */
8636
qx.Class.define("qx.ui.embed.IframeManager",
8637
{type:"singleton",
8638
extend:qx.util.manager.Object,
8639
construct:function(){this.base(arguments);
8640
this._blocked={};
8641
},
8642
members:{handleMouseDown:function(evt){var iframeMap=this._blockData=qx.lang.Object.copy(this.getAll());
8643
for(var key in iframeMap){iframeMap[key].block();
9137
}},
8644
}},
9138
addCommand:function(vCommand){this._commands[vCommand.toHashCode()]=vCommand;
8645
handleMouseUp:function(evt){var iframeMap=this._blockData;
8646
for(var key in iframeMap){iframeMap[key].release();
8647
}}}});
8648
8649
8650
8651
8652
/* ID: qx.ui.layout.CanvasLayout */
8653
qx.Class.define("qx.ui.layout.CanvasLayout",
8654
{extend:qx.ui.core.Parent,
8655
construct:function(){this.base(arguments);
9139
},
8656
},
9140
removeCommand:function(vCommand){delete this._commands[vCommand.toHashCode()];
8657
members:{_createLayoutImpl:function(){return new qx.ui.layout.impl.CanvasLayoutImpl(this);
8658
}}});
8659
8660
8661
8662
8663
/* ID: qx.ui.layout.impl.LayoutImpl */
8664
qx.Class.define("qx.ui.layout.impl.LayoutImpl",
8665
{extend:qx.core.Object,
8666
construct:function(vWidget){this.base(arguments);
8667
this._widget=vWidget;
9141
},
8668
},
9142
_checkKeyEventMatch:function(e){var vCommand;
8669
members:{getWidget:function(){return this._widget;
9143
for(var vHash in this._commands){vCommand=this._commands[vHash];
9144
if(vCommand.getEnabled()&&vCommand.matchesKeyEvent(e)){if(!vCommand.execute(e.getTarget())){e.preventDefault();
9145
}break;
9146
}}},
9147
attachEvents:function(){this.attachEventTypes(qx.event.handler.EventHandler.mouseEventTypes,
9148
this.__onmouseevent);
9149
this.attachEventTypes(qx.event.handler.EventHandler.dragEventTypes,
9150
this.__ondragevent);
9151
qx.event.handler.KeyEventHandler.getInstance()._attachEvents();
9152
qx.html.EventRegistration.addEventListener(window,
9153
"blur",
9154
this.__onwindowblur);
9155
qx.html.EventRegistration.addEventListener(window,
9156
"focus",
9157
this.__onwindowfocus);
9158
qx.html.EventRegistration.addEventListener(window,
9159
"resize",
9160
this.__onwindowresize);
9161
document.body.onselect=document.onselectstart=document.onselectionchange=this.__onselectevent;
9162
},
8670
},
9163
detachEvents:function(){this.detachEventTypes(qx.event.handler.EventHandler.mouseEventTypes,
8671
computeChildBoxWidth:function(vChild){return vChild.getWidthValue()||vChild._computeBoxWidthFallback();
9164
this.__onmouseevent);
9165
this.detachEventTypes(qx.event.handler.EventHandler.dragEventTypes,
9166
this.__ondragevent);
9167
qx.event.handler.KeyEventHandler.getInstance()._detachEvents();
9168
qx.html.EventRegistration.removeEventListener(window,
9169
"blur",
9170
this.__onwindowblur);
9171
qx.html.EventRegistration.removeEventListener(window,
9172
"focus",
9173
this.__onwindowfocus);
9174
qx.html.EventRegistration.removeEventListener(window,
9175
"resize",
9176
this.__onwindowresize);
9177
document.body.onselect=document.onselectstart=document.onselectionchange=null;
9178
},
8672
},
9179
attachEventTypes:function(vEventTypes,
8673
computeChildBoxHeight:function(vChild){return vChild.getHeightValue()||vChild._computeBoxHeightFallback();
9180
vFunctionPointer){try{var el=qx.core.Variant.isSet("qx.client",
9181
"gecko")?window:document.body;
9182
for(var i=0,
9183
l=vEventTypes.length;i<l;i++){qx.html.EventRegistration.addEventListener(el,
9184
vEventTypes[i],
9185
vFunctionPointer);
9186
}}catch(ex){throw new Error("qx.event.handler.EventHandler: Failed to attach window event types: "+vEventTypes+": "+ex);
9187
}},
9188
detachEventTypes:function(vEventTypes,
9189
vFunctionPointer){try{var el=qx.core.Variant.isSet("qx.client",
9190
"gecko")?window:document.body;
9191
for(var i=0,
9192
l=vEventTypes.length;i<l;i++){qx.html.EventRegistration.removeEventListener(el,
9193
vEventTypes[i],
9194
vFunctionPointer);
9195
}}catch(ex){throw new Error("qx.event.handler.EventHandler: Failed to detach window event types: "+vEventTypes+": "+ex);
9196
}},
9197
_onkeyevent_post:function(vDomEvent,
9198
vType,
9199
vKeyCode,
9200
vCharCode,
9201
vKeyIdentifier){var vDomTarget=qx.event.handler.EventHandler.getDomTarget(vDomEvent);
9202
var vFocusRoot=this.getFocusRoot();
9203
var vTarget=this.getCaptureWidget()||(vFocusRoot==null?null:vFocusRoot.getActiveChild());
9204
var vKeyEventObject=new qx.event.type.KeyEvent(vType,
9205
vDomEvent,
9206
vDomTarget,
9207
vTarget,
9208
null,
9209
vKeyCode,
9210
vCharCode,
9211
vKeyIdentifier);
9212
if(vType=="keydown"){this._checkKeyEventMatch(vKeyEventObject);
9213
}
9214
if(vTarget!=null&&vTarget.getEnabled()){switch(vKeyIdentifier){case "Escape":case "Tab":if(qx.Class.isDefined("qx.ui.menu.Manager")){qx.ui.menu.Manager.getInstance().update(vTarget,
9215
vType);
9216
}break;
9217
}if(!this.getAllowClientSelectAll()){if(vDomEvent.ctrlKey&&vKeyIdentifier=="A"){switch(vDomTarget.tagName.toLowerCase()){case "input":case "textarea":case "iframe":break;
9218
default:qx.event.handler.EventHandler.stopDomEvent(vDomEvent);
9219
}}}vTarget.dispatchEvent(vKeyEventObject);
9220
if(qx.Class.isDefined("qx.event.handler.DragAndDropHandler")){qx.event.handler.DragAndDropHandler.getInstance().handleKeyEvent(vKeyEventObject);
9221
}}vKeyEventObject.dispose();
9222
},
8674
},
9223
_onmouseevent:qx.core.Variant.select("qx.client",
8675
computeChildNeededWidth:function(vChild){var vMinBox=vChild._computedMinWidthTypePercent?null:vChild.getMinWidthValue();
9224
{"mshtml":function(vDomEvent){if(!vDomEvent){vDomEvent=window.event;
8676
var vMaxBox=vChild._computedMaxWidthTypePercent?null:vChild.getMaxWidthValue();
9225
}var vDomTarget=qx.event.handler.EventHandler.getDomTarget(vDomEvent);
8677
var vBox=(vChild._computedWidthTypePercent||vChild._computedWidthTypeFlex?null:vChild.getWidthValue())||vChild.getPreferredBoxWidth()||0;
9226
var vType=vDomEvent.type;
8678
return qx.lang.Number.limit(vBox,
9227
if(vType=="mousemove"){if(this._mouseIsDown&&vDomEvent.button==0){this._onmouseevent_post(vDomEvent,
8679
vMinBox,
9228
"mouseup");
8680
vMaxBox)+vChild.getMarginLeft()+vChild.getMarginRight();
9229
this._mouseIsDown=false;
8681
},
9230
}}else{if(vType=="mousedown"){this._mouseIsDown=true;
8682
computeChildNeededHeight:function(vChild){var vMinBox=vChild._computedMinHeightTypePercent?null:vChild.getMinHeightValue();
9231
}else if(vType=="mouseup"){this._mouseIsDown=false;
8683
var vMaxBox=vChild._computedMaxHeightTypePercent?null:vChild.getMaxHeightValue();
9232
}if(vType=="mouseup"&&!this._lastMouseDown&&((new Date).valueOf()-this._lastMouseEventDate)<250){this._onmouseevent_post(vDomEvent,
8684
var vBox=(vChild._computedHeightTypePercent||vChild._computedHeightTypeFlex?null:vChild.getHeightValue())||vChild.getPreferredBoxHeight()||0;
9233
"mousedown");
8685
return qx.lang.Number.limit(vBox,
9234
}else if(vType=="dblclick"&&this._lastMouseEventType=="mouseup"&&((new Date).valueOf()-this._lastMouseEventDate)<250){this._onmouseevent_post(vDomEvent,
8686
vMinBox,
9235
"click");
8687
vMaxBox)+vChild.getMarginTop()+vChild.getMarginBottom();
9236
}
8688
},
9237
switch(vType){case "mousedown":case "mouseup":case "click":case "dblclick":case "contextmenu":this._lastMouseEventType=vType;
8689
computeChildrenNeededWidth_max:function(){for(var i=0,
9238
this._lastMouseEventDate=(new Date).valueOf();
8690
ch=this.getWidget().getVisibleChildren(),
9239
this._lastMouseDown=vType=="mousedown";
8691
chl=ch.length,
9240
}}this._onmouseevent_post(vDomEvent,
8692
maxv=0;i<chl;i++){maxv=Math.max(maxv,
9241
vType,
8693
ch[i].getNeededWidth());
9242
vDomTarget);
8694
}return maxv;
8695
},
8696
computeChildrenNeededHeight_max:function(){for(var i=0,
8697
ch=this.getWidget().getVisibleChildren(),
8698
chl=ch.length,
8699
maxv=0;i<chl;i++){maxv=Math.max(maxv,
8700
ch[i].getNeededHeight());
8701
}return maxv;
9243
},
8702
},
9244
"default":function(vDomEvent){var vDomTarget=qx.event.handler.EventHandler.getDomTarget(vDomEvent);
8703
computeChildrenNeededWidth_sum:function(){for(var i=0,
9245
var vType=vDomEvent.type;
8704
ch=this.getWidget().getVisibleChildren(),
9246
switch(vType){case "DOMMouseScroll":vType="mousewheel";
8705
chl=ch.length,
9247
break;
8706
sumv=0;i<chl;i++){sumv+=ch[i].getNeededWidth();
9248
case "click":case "dblclick":if(vDomEvent.which!==1){return;
8707
}return sumv;
9249
}}this._onmouseevent_post(vDomEvent,
9250
vType,
9251
vDomTarget);
9252
}}),
9253
_onmouseevent_click_fix:qx.core.Variant.select("qx.client",
9254
{"gecko":function(vDomTarget,
9255
vType,
9256
vDispatchTarget){var vReturn=false;
9257
switch(vType){case "mousedown":this._lastMouseDownDomTarget=vDomTarget;
9258
this._lastMouseDownDispatchTarget=vDispatchTarget;
9259
break;
9260
case "mouseup":if(this._lastMouseDownDispatchTarget===vDispatchTarget&&vDomTarget!==this._lastMouseDownDomTarget){vReturn=true;
9261
}else{this._lastMouseDownDomTarget=null;
9262
this._lastMouseDownDispatchTarget=null;
9263
}}return vReturn;
9264
},
8708
},
9265
"default":null}),
8709
computeChildrenNeededHeight_sum:function(){for(var i=0,
9266
_onmouseevent_post:function(vDomEvent,
8710
ch=this.getWidget().getVisibleChildren(),
9267
vType,
8711
chl=ch.length,
9268
vDomTarget){var vEventObject,
8712
sumv=0;i<chl;i++){sumv+=ch[i].getNeededHeight();
9269
vCaptureTarget,
8713
}return sumv;
9270
vDispatchTarget,
8714
},
9271
vTarget,
8715
computeChildrenNeededWidth:null,
9272
vOriginalTarget,
8716
computeChildrenNeededHeight:null,
9273
vRelatedTarget,
8717
updateSelfOnChildOuterWidthChange:function(vChild){},
9274
vFixClick,
8718
updateSelfOnChildOuterHeightChange:function(vChild){},
9275
vTargetIsEnabled;
8719
updateChildOnInnerWidthChange:function(vChild){},
9276
vCaptureTarget=this.getCaptureWidget();
8720
updateChildOnInnerHeightChange:function(vChild){},
9277
vOriginalTarget=qx.event.handler.EventHandler.getOriginalTargetObject(vDomTarget);
8721
updateSelfOnJobQueueFlush:function(vJobQueue){},
9278
if(!vCaptureTarget){vDispatchTarget=vTarget=qx.event.handler.EventHandler.getTargetObject(null,
8722
updateChildrenOnJobQueueFlush:function(vJobQueue){},
9279
vOriginalTarget,
8723
updateChildrenOnAddChild:function(vChild,
9280
true);
8724
vIndex){},
9281
}else{vDispatchTarget=vCaptureTarget;
8725
updateChildrenOnRemoveChild:function(vChild,
9282
vTarget=qx.event.handler.EventHandler.getTargetObject(null,
8726
vIndex){},
9283
vOriginalTarget,
8727
updateChildrenOnMoveChild:function(vChild,
9284
true);
8728
vIndex,
9285
}if(!vTarget){return;
8729
vOldIndex){},
9286
}vTargetIsEnabled=vTarget.getEnabled();
8730
flushChildrenQueue:function(vChildrenQueue){var vWidget=this.getWidget();
9287
if(qx.core.Variant.isSet("qx.client",
8731
for(var vHashCode in vChildrenQueue){vWidget._layoutChild(vChildrenQueue[vHashCode]);
9288
"gecko")){vFixClick=this._onmouseevent_click_fix(vDomTarget,
9289
vType,
9290
vDispatchTarget);
9291
}if(vType=="contextmenu"&&!this.getAllowClientContextMenu()){qx.event.handler.EventHandler.stopDomEvent(vDomEvent);
9292
}if(vTargetIsEnabled&&vType=="mousedown"){qx.event.handler.FocusHandler.mouseFocus=true;
9293
var vRoot=vTarget.getFocusRoot();
9294
if(vRoot){this.setFocusRoot(vRoot);
9295
var vFocusTarget=vTarget;
9296
while(!vFocusTarget.isFocusable()&&vFocusTarget!=vRoot){vFocusTarget=vFocusTarget.getParent();
9297
}vRoot.setFocusedChild(vFocusTarget);
9298
vRoot.setActiveChild(vTarget);
9299
}}switch(vType){case "mouseover":case "mouseout":vRelatedTarget=qx.event.handler.EventHandler.getRelatedTargetObjectFromEvent(vDomEvent);
9300
if(vRelatedTarget==vTarget){return;
9301
}}vEventObject=new qx.event.type.MouseEvent(vType,
9302
vDomEvent,
9303
vDomTarget,
9304
vTarget,
9305
vOriginalTarget,
9306
vRelatedTarget);
9307
qx.event.type.MouseEvent.storeEventState(vEventObject);
9308
if(vTargetIsEnabled){var vEventWasProcessed=false;
9309
vEventWasProcessed=vDispatchTarget?vDispatchTarget.dispatchEvent(vEventObject):true;
9310
this._onmouseevent_special_post(vType,
9311
vTarget,
9312
vOriginalTarget,
9313
vDispatchTarget,
9314
vEventWasProcessed,
9315
vEventObject,
9316
vDomEvent);
9317
}else{if(vType=="mouseover"){if(qx.Class.isDefined("qx.ui.popup.ToolTipManager")){qx.ui.popup.ToolTipManager.getInstance().handleMouseOver(vEventObject);
9318
}}}vEventObject.dispose();
9319
vEventObject=null;
9320
qx.ui.core.Widget.flushGlobalQueues();
9321
if(vFixClick){this._onmouseevent_post(vDomEvent,
9322
"click",
9323
this._lastMouseDownDomTarget);
9324
this._lastMouseDownDomTarget=null;
9325
this._lastMouseDownDispatchTarget=null;
9326
}},
8732
}},
9327
_onmouseevent_special_post:function(vType,
8733
layoutChild:function(vChild,
9328
vTarget,
8734
vJobs){},
9329
vOriginalTarget,
8735
layoutChild_sizeLimitX:qx.core.Variant.select("qx.client",
9330
vDispatchTarget,
8736
{"mshtml":qx.lang.Function.returnTrue,
9331
vEventWasProcessed,
8737
"default":function(vChild,
9332
vEventObject,
8738
vJobs){if(vJobs.minWidth){vChild._computedMinWidthTypeNull?vChild._resetRuntimeMinWidth():vChild._renderRuntimeMinWidth(vChild.getMinWidthValue());
9333
vDomEvent){switch(vType){case "mousedown":if(qx.Class.isDefined("qx.ui.popup.PopupManager")){qx.ui.popup.PopupManager.getInstance().update(vTarget);
8739
}else if(vJobs.initial&&!vChild._computedMinWidthTypeNull){vChild._renderRuntimeMinWidth(vChild.getMinWidthValue());
9334
}
8740
}
9335
if(qx.Class.isDefined("qx.ui.menu.Manager")){qx.ui.menu.Manager.getInstance().update(vTarget,
8741
if(vJobs.maxWidth){vChild._computedMaxWidthTypeNull?vChild._resetRuntimeMaxWidth():vChild._renderRuntimeMaxWidth(vChild.getMaxWidthValue());
9336
vType);
8742
}else if(vJobs.initial&&!vChild._computedMaxWidthTypeNull){vChild._renderRuntimeMaxWidth(vChild.getMaxWidthValue());
8743
}}}),
8744
layoutChild_sizeLimitY:qx.core.Variant.select("qx.client",
8745
{"mshtml":qx.lang.Function.returnTrue,
8746
"default":function(vChild,
8747
vJobs){if(vJobs.minHeight){vChild._computedMinHeightTypeNull?vChild._resetRuntimeMinHeight():vChild._renderRuntimeMinHeight(vChild.getMinHeightValue());
8748
}else if(vJobs.initial&&!vChild._computedMinHeightTypeNull){vChild._renderRuntimeMinHeight(vChild.getMinHeightValue());
9337
}
8749
}
9338
if(qx.Class.isDefined("qx.ui.embed.IframeManager")){qx.ui.embed.IframeManager.getInstance().handleMouseDown(vEventObject);
8750
if(vJobs.maxHeight){vChild._computedMaxHeightTypeNull?vChild._resetRuntimeMaxHeight():vChild._renderRuntimeMaxHeight(vChild.getMaxHeightValue());
9339
}break;
8751
}else if(vJobs.initial&&!vChild._computedMaxHeightTypeNull){vChild._renderRuntimeMaxHeight(vChild.getMaxHeightValue());
9340
case "mouseup":if(qx.Class.isDefined("qx.ui.menu.Manager")){qx.ui.menu.Manager.getInstance().update(vTarget,
8752
}}}),
9341
vType);
8753
layoutChild_marginX:function(vChild,
8754
vJobs){if(vJobs.marginLeft||vJobs.initial){var vValueLeft=vChild.getMarginLeft();
8755
vValueLeft!=null?vChild._renderRuntimeMarginLeft(vValueLeft):vChild._resetRuntimeMarginLeft();
9342
}
8756
}
9343
if(qx.Class.isDefined("qx.ui.embed.IframeManager")){qx.ui.embed.IframeManager.getInstance().handleMouseUp(vEventObject);
8757
if(vJobs.marginRight||vJobs.initial){var vValueRight=vChild.getMarginRight();
9344
}break;
8758
vValueRight!=null?vChild._renderRuntimeMarginRight(vValueRight):vChild._resetRuntimeMarginRight();
9345
case "mouseover":if(qx.Class.isDefined("qx.ui.popup.ToolTipManager")){qx.ui.popup.ToolTipManager.getInstance().handleMouseOver(vEventObject);
9346
}break;
9347
case "mouseout":if(qx.Class.isDefined("qx.ui.popup.ToolTipManager")){qx.ui.popup.ToolTipManager.getInstance().handleMouseOut(vEventObject);
9348
}break;
9349
}this._ignoreWindowBlur=vType==="mousedown";
9350
if(qx.Class.isDefined("qx.event.handler.DragAndDropHandler")&&vTarget){qx.event.handler.DragAndDropHandler.getInstance().handleMouseEvent(vEventObject);
9351
}},
8759
}},
9352
_ondragevent:function(vEvent){if(!vEvent){vEvent=window.event;
8760
layoutChild_marginY:function(vChild,
9353
}qx.event.handler.EventHandler.stopDomEvent(vEvent);
8761
vJobs){if(vJobs.marginTop||vJobs.initial){var vValueTop=vChild.getMarginTop();
9354
},
8762
vValueTop!=null?vChild._renderRuntimeMarginTop(vValueTop):vChild._resetRuntimeMarginTop();
9355
_onselectevent:function(e){if(!e){e=window.event;
8763
}
9356
}var target=qx.event.handler.EventHandler.getOriginalTargetObjectFromEvent(e);
8764
if(vJobs.marginBottom||vJobs.initial){var vValueBottom=vChild.getMarginBottom();
9357
while(target){if(target.getSelectable()!=null){if(!target.getSelectable()){qx.event.handler.EventHandler.stopDomEvent(e);
8765
vValueBottom!=null?vChild._renderRuntimeMarginBottom(vValueBottom):vChild._resetRuntimeMarginBottom();
9358
}break;
9359
}target=target.getParent();
9360
}},
8766
}},
9361
_focused:false,
8767
layoutChild_sizeX_essentialWrapper:function(vChild,
9362
_onwindowblur:function(e){if(!this._focused||this._ignoreWindowBlur){return;
8768
vJobs){return vChild._isWidthEssential()?this.layoutChild_sizeX(vChild,
9363
}this._focused=false;
8769
vJobs):vChild._resetRuntimeWidth();
9364
this.setCaptureWidget(null);
9365
if(qx.Class.isDefined("qx.ui.popup.PopupManager")){qx.ui.popup.PopupManager.getInstance().update();
9366
}if(qx.Class.isDefined("qx.ui.menu.Manager")){qx.ui.menu.Manager.getInstance().update();
9367
}if(qx.Class.isDefined("qx.event.handler.DragAndDropHandler")){qx.event.handler.DragAndDropHandler.getInstance().globalCancelDrag();
9368
}qx.ui.core.ClientDocument.getInstance().createDispatchEvent("windowblur");
9369
},
9370
_onwindowfocus:function(e){if(this._focused){return;
9371
}this._focused=true;
9372
qx.ui.core.ClientDocument.getInstance().createDispatchEvent("windowfocus");
9373
},
8770
},
9374
_onwindowresize:function(e){qx.ui.core.ClientDocument.getInstance().createDispatchEvent("windowresize");
8771
layoutChild_sizeY_essentialWrapper:function(vChild,
8772
vJobs){return vChild._isHeightEssential()?this.layoutChild_sizeY(vChild,
8773
vJobs):vChild._resetRuntimeHeight();
9375
}},
8774
}},
9376
destruct:function(){this.detachEvents();
8775
defer:function(statics,
9377
this._disposeObjectDeep("_commands",
8776
members){members.computeChildrenNeededWidth=members.computeChildrenNeededWidth_max;
9378
1);
8777
members.computeChildrenNeededHeight=members.computeChildrenNeededHeight_max;
9379
this._disposeFields("__onmouseevent",
8778
},
9380
"__ondragevent",
8779
destruct:function(){this._disposeFields("_widget");
9381
"__onselectevent",
9382
"__onwindowblur",
9383
"__onwindowfocus",
9384
"__onwindowresize");
9385
this._disposeFields("_lastMouseEventType",
9386
"_lastMouseDown",
9387
"_lastMouseEventDate",
9388
"_lastMouseDownDomTarget",
9389
"_lastMouseDownDispatchTarget");
9390
}});
8780
}});
9391
8781
9392
8782
9393
8783
9394
8784
9395
/* ID: qx.dom.Node */
8785
/* ID: qx.lang.Number */
9396
qx.Class.define("qx.dom.Node",
8786
qx.Class.define("qx.lang.Number",
9397
{statics:{ELEMENT:1,
8787
{statics:{isInRange:function(nr,
9398
ATTRIBUTE:2,
8788
vmin,
9399
TEXT:3,
8789
vmax){return nr>=vmin&&nr<=vmax;
9400
CDATA_SECTION:4,
9401
ENTITY_REFERENCE:5,
9402
ENTITY:6,
9403
PROCESSING_INSTRUCTION:7,
9404
COMMENT:8,
9405
DOCUMENT:9,
9406
DOCUMENT_TYPE:10,
9407
DOCUMENT_FRAGMENT:11,
9408
NOTATION:12,
9409
getDocument:function(node){if(this.isDocument(node)){return node;
9410
}return node.ownerDocument||node.document||null;
9411
},
8790
},
9412
getWindow:qx.core.Variant.select("qx.client",
8791
isBetweenRange:function(nr,
9413
{"mshtml":function(node){return this.getDocument(node).parentWindow;
8792
vmin,
8793
vmax){return nr>vmin&&nr<vmax;
9414
},
8794
},
9415
"default":function(node){return this.getDocument(node).defaultView;
8795
limit:function(nr,
9416
}}),
8796
vmin,
9417
getDocumentElement:function(node){return this.getDocument(node).documentElement;
8797
vmax){if(typeof vmax==="number"&&nr>vmax){return vmax;
8798
}else if(typeof vmin==="number"&&nr<vmin){return vmin;
8799
}else{return nr;
8800
}}}});
8801
8802
8803
8804
8805
/* ID: qx.ui.layout.impl.CanvasLayoutImpl */
8806
qx.Class.define("qx.ui.layout.impl.CanvasLayoutImpl",
8807
{extend:qx.ui.layout.impl.LayoutImpl,
8808
construct:function(vWidget){this.base(arguments,
8809
vWidget);
8810
},
8811
members:{computeChildBoxWidth:function(vChild){var vValue=null;
8812
if(vChild._computedLeftTypeNull||vChild._computedRightTypeNull){vValue=vChild.getWidthValue();
8813
}else if(vChild._hasParent){vValue=this.getWidget().getInnerWidth()-vChild.getLeftValue()-vChild.getRightValue();
8814
}return vValue||vChild._computeBoxWidthFallback();
8815
},
8816
computeChildBoxHeight:function(vChild){var vValue=null;
8817
if(vChild._computedTopTypeNull||vChild._computedBottomTypeNull){vValue=vChild.getHeightValue();
8818
}else if(vChild._hasParent){vValue=this.getWidget().getInnerHeight()-vChild.getTopValue()-vChild.getBottomValue();
8819
}return vValue||vChild._computeBoxHeightFallback();
9418
},
8820
},
9419
getBodyElement:function(node){return this.getDocument(node).body;
8821
computeChildNeededWidth:function(vChild){var vLeft=vChild._computedLeftTypePercent?null:vChild.getLeftValue();
8822
var vRight=vChild._computedRightTypePercent?null:vChild.getRightValue();
8823
var vMinBox=vChild._computedMinWidthTypePercent?null:vChild.getMinWidthValue();
8824
var vMaxBox=vChild._computedMaxWidthTypePercent?null:vChild.getMaxWidthValue();
8825
if(vLeft!=null&&vRight!=null){var vBox=vChild.getPreferredBoxWidth()||0;
8826
}else{var vBox=(vChild._computedWidthTypePercent?null:vChild.getWidthValue())||vChild.getPreferredBoxWidth()||0;
8827
}return qx.lang.Number.limit(vBox,
8828
vMinBox,
8829
vMaxBox)+vLeft+vRight+vChild.getMarginLeft()+vChild.getMarginRight();
9420
},
8830
},
9421
isElement:function(node){return !!(node&&node.nodeType===qx.dom.Node.ELEMENT);
8831
computeChildNeededHeight:function(vChild){var vTop=vChild._computedTopTypePercent?null:vChild.getTopValue();
8832
var vBottom=vChild._computedBottomTypePercent?null:vChild.getBottomValue();
8833
var vMinBox=vChild._computedMinHeightTypePercent?null:vChild.getMinHeightValue();
8834
var vMaxBox=vChild._computedMaxHeightTypePercent?null:vChild.getMaxHeightValue();
8835
if(vTop!=null&&vBottom!=null){var vBox=vChild.getPreferredBoxHeight()||0;
8836
}else{var vBox=(vChild._computedHeightTypePercent?null:vChild.getHeightValue())||vChild.getPreferredBoxHeight()||0;
8837
}return qx.lang.Number.limit(vBox,
8838
vMinBox,
8839
vMaxBox)+vTop+vBottom+vChild.getMarginTop()+vChild.getMarginBottom();
9422
},
8840
},
9423
isDocument:function(node){return !!(node&&node.nodeType===qx.dom.Node.DOCUMENT);
8841
updateChildOnInnerWidthChange:function(vChild){var vUpdatePercent=vChild._recomputePercentX();
8842
var vUpdateRange=vChild._recomputeRangeX();
8843
return vUpdatePercent||vUpdateRange;
9424
},
8844
},
9425
isText:function(node){return !!(node&&node.nodeType===qx.dom.Node.TEXT);
8845
updateChildOnInnerHeightChange:function(vChild){var vUpdatePercent=vChild._recomputePercentY();
8846
var vUpdateRange=vChild._recomputeRangeY();
8847
return vUpdatePercent||vUpdateRange;
9426
},
8848
},
9427
isWindow:function(node){return node.document&&this.getWindow(node.document)==node;
8849
layoutChild:function(vChild,
8850
vJobs){this.layoutChild_sizeX_essentialWrapper(vChild,
8851
vJobs);
8852
this.layoutChild_sizeY_essentialWrapper(vChild,
8853
vJobs);
8854
this.layoutChild_sizeLimitX(vChild,
8855
vJobs);
8856
this.layoutChild_sizeLimitY(vChild,
8857
vJobs);
8858
this.layoutChild_locationX(vChild,
8859
vJobs);
8860
this.layoutChild_locationY(vChild,
8861
vJobs);
8862
this.layoutChild_marginX(vChild,
8863
vJobs);
8864
this.layoutChild_marginY(vChild,
8865
vJobs);
9428
},
8866
},
9429
getText:function(node){if(!node||!node.nodeType){return null;
8867
layoutChild_sizeX:qx.core.Variant.select("qx.client",
8868
{"mshtml|opera|webkit":function(vChild,
8869
vJobs){if(vJobs.initial||vJobs.width||vJobs.minWidth||vJobs.maxWidth||vJobs.left||vJobs.right){if(vChild._computedMinWidthTypeNull&&vChild._computedWidthTypeNull&&vChild._computedMaxWidthTypeNull&&!(!vChild._computedLeftTypeNull&&!vChild._computedRightTypeNull)){vChild._resetRuntimeWidth();
8870
}else{vChild._renderRuntimeWidth(vChild.getBoxWidth());
8871
}}},
8872
"default":function(vChild,
8873
vJobs){if(vJobs.initial||vJobs.width){vChild._computedWidthTypeNull?vChild._resetRuntimeWidth():vChild._renderRuntimeWidth(vChild.getWidthValue());
8874
}}}),
8875
layoutChild_sizeY:qx.core.Variant.select("qx.client",
8876
{"mshtml|opera|webkit":function(vChild,
8877
vJobs){if(vJobs.initial||vJobs.height||vJobs.minHeight||vJobs.maxHeight||vJobs.top||vJobs.bottom){if(vChild._computedMinHeightTypeNull&&vChild._computedHeightTypeNull&&vChild._computedMaxHeightTypeNull&&!(!vChild._computedTopTypeNull&&!vChild._computedBottomTypeNull)){vChild._resetRuntimeHeight();
8878
}else{vChild._renderRuntimeHeight(vChild.getBoxHeight());
8879
}}},
8880
"default":function(vChild,
8881
vJobs){if(vJobs.initial||vJobs.height){vChild._computedHeightTypeNull?vChild._resetRuntimeHeight():vChild._renderRuntimeHeight(vChild.getHeightValue());
8882
}}}),
8883
layoutChild_locationX:function(vChild,
8884
vJobs){var vWidget=this.getWidget();
8885
if(vJobs.initial||vJobs.left||vJobs.parentPaddingLeft){vChild._computedLeftTypeNull?vChild._computedRightTypeNull&&vWidget.getPaddingLeft()>0?vChild._renderRuntimeLeft(vWidget.getPaddingLeft()):vChild._resetRuntimeLeft():vChild._renderRuntimeLeft(vChild.getLeftValue()+vWidget.getPaddingLeft());
9430
}
8886
}
9431
switch(node.nodeType){case 1:var i,
8887
if(vJobs.initial||vJobs.right||vJobs.parentPaddingRight){vChild._computedRightTypeNull?vChild._computedLeftTypeNull&&vWidget.getPaddingRight()>0?vChild._renderRuntimeRight(vWidget.getPaddingRight()):vChild._resetRuntimeRight():vChild._renderRuntimeRight(vChild.getRightValue()+vWidget.getPaddingRight());
9432
a=[],
8888
}},
9433
nodes=node.childNodes,
8889
layoutChild_locationY:function(vChild,
9434
length=nodes.length;
8890
vJobs){var vWidget=this.getWidget();
9435
for(i=0;i<length;i++){a[i]=this.getText(nodes[i]);
8891
if(vJobs.initial||vJobs.top||vJobs.parentPaddingTop){vChild._computedTopTypeNull?vChild._computedBottomTypeNull&&vWidget.getPaddingTop()>0?vChild._renderRuntimeTop(vWidget.getPaddingTop()):vChild._resetRuntimeTop():vChild._renderRuntimeTop(vChild.getTopValue()+vWidget.getPaddingTop());
9436
}return a.join("");
8892
}
9437
case 2:return node.nodeValue;
8893
if(vJobs.initial||vJobs.bottom||vJobs.parentPaddingBottom){vChild._computedBottomTypeNull?vChild._computedTopTypeNull&&vWidget.getPaddingBottom()>0?vChild._renderRuntimeBottom(vWidget.getPaddingBottom()):vChild._resetRuntimeBottom():vChild._renderRuntimeBottom(vChild.getBottomValue()+vWidget.getPaddingBottom());
9438
break;
8894
}}}});
9439
case 3:return node.nodeValue;
9440
break;
9441
}return null;
9442
}}});
9443
8895
9444
8896
9445
8897
9446
8898
9447
/* ID: qx.event.handler.KeyEventHandler */
8899
/* ID: qx.ui.core.ClientDocument */
9448
qx.Class.define("qx.event.handler.KeyEventHandler",
8900
qx.Class.define("qx.ui.core.ClientDocument",
9449
{type:"singleton",
8901
{type:"singleton",
9450
extend:qx.core.Target,
8902
extend:qx.ui.layout.CanvasLayout,
9451
construct:function(){this.base(arguments);
8903
construct:function(){this.base(arguments);
9452
this.__onkeypress=qx.lang.Function.bind(this._onkeypress,
8904
this._window=window;
8905
this._document=window.document;
8906
this.setElement(this._document.body);
8907
this._document.body.style.position="";
8908
if(qx.core.Variant.isSet("qx.client",
8909
"mshtml")&&(qx.core.Client.getInstance().getMajor()<7)){try{document.execCommand("BackgroundImageCache",
8910
false,
8911
true);
8912
}catch(err){}}this._cachedInnerWidth=this._document.body.offsetWidth;
8913
this._cachedInnerHeight=this._document.body.offsetHeight;
8914
this.addEventListener("windowresize",
8915
this._onwindowresize);
8916
this._modalWidgets=[];
8917
this._modalNativeWindow=null;
8918
this.activateFocusRoot();
8919
this.initHideFocus();
8920
this.initSelectable();
8921
qx.event.handler.EventHandler.getInstance().setFocusRoot(this);
8922
},
8923
events:{"focus":"qx.event.type.Event",
8924
"windowblur":"qx.event.type.Event",
8925
"windowfocus":"qx.event.type.Event",
8926
"windowresize":"qx.event.type.Event"},
8927
properties:{appearance:{refine:true,
8928
init:"client-document"},
8929
enableElementFocus:{refine:true,
8930
init:false},
8931
enabled:{refine:true,
8932
init:true},
8933
selectable:{refine:true,
8934
init:false},
8935
hideFocus:{refine:true,
8936
init:true},
8937
globalCursor:{check:"String",
8938
nullable:true,
8939
themeable:true,
8940
apply:"_applyGlobalCursor",
8941
event:"changeGlobalCursor"}},
8942
members:{_applyParent:qx.lang.Function.returnTrue,
8943
getTopLevelWidget:qx.lang.Function.returnThis,
8944
getWindowElement:function(){return this._window;
8945
},
8946
getDocumentElement:function(){return this._document;
8947
},
8948
getParent:qx.lang.Function.returnNull,
8949
getToolTip:qx.lang.Function.returnNull,
8950
isMaterialized:qx.lang.Function.returnTrue,
8951
isSeeable:qx.lang.Function.returnTrue,
8952
_isDisplayable:true,
8953
_hasParent:false,
8954
_initialLayoutDone:true,
8955
_getBlocker:function(){if(!this._blocker){this._blocker=new qx.ui.core.ClientDocumentBlocker;
8956
this._blocker.addEventListener("mousedown",
8957
this.blockHelper,
9453
this);
8958
this);
9454
this.__onkeyupdown=qx.lang.Function.bind(this._onkeyupdown,
8959
this._blocker.addEventListener("mouseup",
8960
this.blockHelper,
9455
this);
8961
this);
8962
this.add(this._blocker);
8963
}return this._blocker;
9456
},
8964
},
9457
members:{_attachEvents:function(){var el=qx.core.Variant.isSet("qx.client",
8965
blockHelper:function(e){if(this._modalNativeWindow){if(!this._modalNativeWindow.isClosed()){this._modalNativeWindow.focus();
9458
"gecko")?window:document.body;
8966
}else{this.debug("Window seems to be closed already! => Releasing Blocker");
9459
qx.html.EventRegistration.addEventListener(el,
8967
this.release(this._modalNativeWindow);
9460
"keypress",
8968
}}},
9461
this.__onkeypress);
8969
block:function(vActiveChild){this._getBlocker().show();
9462
qx.html.EventRegistration.addEventListener(el,
8970
if(qx.Class.isDefined("qx.ui.window.Window")&&vActiveChild instanceof qx.ui.window.Window){this._modalWidgets.push(vActiveChild);
9463
"keyup",
8971
var vOrigIndex=vActiveChild.getZIndex();
9464
this.__onkeyupdown);
8972
this._getBlocker().setZIndex(vOrigIndex);
9465
qx.html.EventRegistration.addEventListener(el,
8973
vActiveChild.setZIndex(vOrigIndex+1);
9466
"keydown",
8974
}else if(qx.Class.isDefined("qx.client.NativeWindow")&&vActiveChild instanceof qx.client.NativeWindow){this._modalNativeWindow=vActiveChild;
9467
this.__onkeyupdown);
8975
this._getBlocker().setZIndex(1e7);
8976
}},
8977
release:function(vActiveChild){if(vActiveChild){if(qx.Class.isDefined("qx.client.NativeWindow")&&vActiveChild instanceof qx.client.NativeWindow){this._modalNativeWindow=null;
8978
}else{qx.lang.Array.remove(this._modalWidgets,
8979
vActiveChild);
8980
}}var l=this._modalWidgets.length;
8981
if(l==0){this._getBlocker().hide();
8982
}else{var oldActiveChild=this._modalWidgets[l-1];
8983
var o=oldActiveChild.getZIndex();
8984
this._getBlocker().setZIndex(o);
8985
oldActiveChild.setZIndex(o+1);
8986
}},
8987
createStyleElement:function(vCssText){return qx.html.StyleSheet.createElement(vCssText);
9468
},
8988
},
9469
_detachEvents:function(){var el=qx.core.Variant.isSet("qx.client",
8989
addCssRule:function(vSheet,
9470
"gecko")?window:document.body;
8990
vSelector,
9471
qx.html.EventRegistration.removeEventListener(el,
8991
vStyle){return qx.html.StyleSheet.addRule(vSheet,
9472
"keypress",
8992
vSelector,
9473
this.__onkeypress);
8993
vStyle);
9474
qx.html.EventRegistration.removeEventListener(el,
9475
"keyup",
9476
this.__onkeyupdown);
9477
qx.html.EventRegistration.removeEventListener(el,
9478
"keydown",
9479
this.__onkeyupdown);
9480
},
8994
},
9481
_onkeyupdown:qx.core.Variant.select("qx.client",
8995
removeCssRule:function(vSheet,
9482
{"mshtml":function(domEvent){domEvent=window.event||domEvent;
8996
vSelector){return qx.html.StyleSheet.removeRule(vSheet,
9483
var keyCode=domEvent.keyCode;
8997
vSelector);
9484
var charcode=0;
9485
var type=domEvent.type;
9486
if(!(this._lastUpDownType[keyCode]=="keydown"&&type=="keydown")){this._idealKeyHandler(keyCode,
9487
charcode,
9488
type,
9489
domEvent);
9490
}if(type=="keydown"){if(this._isNonPrintableKeyCode(keyCode)||
9491
keyCode==
9492
8||keyCode==9){this._idealKeyHandler(keyCode,
9493
charcode,
9494
"keypress",
9495
domEvent);
9496
}}this._lastUpDownType[keyCode]=type;
9497
},
8998
},
9498
"gecko":function(domEvent){var keyCode=this._keyCodeFix[domEvent.keyCode]||domEvent.keyCode;
8999
removeAllCssRules:function(vSheet){return qx.html.StyleSheet.removeAllRules(vSheet);
9499
var charCode=domEvent.charCode;
9000
},
9500
var type=domEvent.type;
9001
_applyGlobalCursor:qx.core.Variant.select("qx.client",
9501
if(qx.core.Client.getInstance().runsOnWindows()){var keyIdentifier=keyCode?this._keyCodeToIdentifier(keyCode):this._charCodeToIdentifier(charCode);
9002
{"mshtml":function(value,
9502
if(!(this._lastUpDownType[keyIdentifier]=="keypress"&&type=="keydown")){this._idealKeyHandler(keyCode,
9003
old){if(value=="pointer"){value="hand";
9503
charCode,
9004
}
9504
type,
9005
if(old=="pointer"){old="hand";
9505
domEvent);
9006
}var elem,
9506
}this._lastUpDownType[keyIdentifier]=type;
9007
current;
9507
}else{this._idealKeyHandler(keyCode,
9008
var list=this._cursorElements;
9508
charCode,
9009
if(list){for(var i=0,
9509
type,
9010
l=list.length;i<l;i++){elem=list[i];
9510
domEvent);
9011
if(elem.style.cursor==old){elem.style.cursor=elem._oldCursor;
9012
elem._oldCursor=null;
9013
}}}var all=document.all;
9014
var list=this._cursorElements=[];
9015
if(value!=null&&value!=""&&value!="auto"){for(var i=0,
9016
l=all.length;i<l;i++){elem=all[i];
9017
current=elem.style.cursor;
9018
if(current!=null&&current!=""&&current!="auto"){elem._oldCursor=current;
9019
elem.style.cursor=value;
9020
list.push(elem);
9021
}}document.body.style.cursor=value;
9022
}else{document.body.style.cursor="";
9511
}},
9023
}},
9512
"webkit":function(domEvent){var keyCode=0;
9024
"default":function(value,
9513
var charCode=0;
9025
old){if(!this._globalCursorStyleSheet){this._globalCursorStyleSheet=this.createStyleElement();
9514
var type=domEvent.type;
9026
}this.removeCssRule(this._globalCursorStyleSheet,
9515
if(qx.core.Client.getInstance().getVersion()<420){if(!this._lastCharCodeForType){this._lastCharCodeForType={};
9027
"*");
9516
}var isSafariSpecialKey=this._lastCharCodeForType[type]>63000;
9028
if(value){this.addCssRule(this._globalCursorStyleSheet,
9517
if(isSafariSpecialKey){this._lastCharCodeForType[type]=null;
9029
"*",
9518
return;
9030
"cursor:"+value+" !important");
9519
}this._lastCharCodeForType[type]=domEvent.charCode;
9031
}}}),
9520
}
9032
_onwindowresize:function(e){if(qx.Class.isDefined("qx.ui.popup.PopupManager")){qx.ui.popup.PopupManager.getInstance().update();
9521
if(type=="keyup"||type=="keydown"){keyCode=this._charCode2KeyCode[domEvent.charCode]||domEvent.keyCode;
9033
}this._recomputeInnerWidth();
9522
}else{if(this._charCode2KeyCode[domEvent.charCode]){keyCode=this._charCode2KeyCode[domEvent.charCode];
9034
this._recomputeInnerHeight();
9523
}else{charCode=domEvent.charCode;
9035
qx.ui.core.Widget.flushGlobalQueues();
9524
}}this._idealKeyHandler(keyCode,
9525
charCode,
9526
type,
9527
domEvent);
9528
},
9036
},
9529
"opera":function(domEvent){this._idealKeyHandler(domEvent.keyCode,
9037
_computeInnerWidth:function(){return this._document.body.offsetWidth;
9530
0,
9531
domEvent.type,
9532
domEvent);
9533
this._lastKeyCode=domEvent.keyCode;
9534
},
9038
},
9535
"default":function(){throw new Error("Unsupported browser for key event handler!");
9039
_computeInnerHeight:function(){return this._document.body.offsetHeight;
9536
}}),
9537
_onkeypress:qx.core.Variant.select("qx.client",
9538
{"mshtml":function(domEvent){var domEvent=window.event||domEvent;
9539
if(this._charCode2KeyCode[domEvent.keyCode]){this._idealKeyHandler(this._charCode2KeyCode[domEvent.keyCode],
9540
0,
9541
domEvent.type,
9542
domEvent);
9543
}else{this._idealKeyHandler(0,
9544
domEvent.keyCode,
9545
domEvent.type,
9546
domEvent);
9547
}},
9040
}},
9548
"gecko":function(domEvent){var keyCode=this._keyCodeFix[domEvent.keyCode]||domEvent.keyCode;
9041
settings:{"qx.enableApplicationLayout":true,
9549
var charCode=domEvent.charCode;
9042
"qx.boxModelCorrection":true},
9550
var type=domEvent.type;
9043
defer:function(){if(qx.core.Setting.get("qx.boxModelCorrection")){var boxSizingAttr=qx.core.Client.getInstance().getEngineBoxSizingAttributes();
9551
if(qx.core.Client.getInstance().runsOnWindows()){var keyIdentifier=keyCode?this._keyCodeToIdentifier(keyCode):this._charCodeToIdentifier(charCode);
9044
var borderBoxCss=boxSizingAttr.join(":border-box;")+":border-box;";
9552
if(!(this._lastUpDownType[keyIdentifier]=="keypress"&&type=="keydown")){this._idealKeyHandler(keyCode,
9045
var contentBoxCss=boxSizingAttr.join(":content-box;")+":content-box;";
9553
charCode,
9046
qx.html.StyleSheet.createElement("html,body { margin:0;border:0;padding:0; } "+"html { border:0 none; } "+"*{"+borderBoxCss+"} "+"img{"+contentBoxCss+"}");
9554
type,
9047
}
9555
domEvent);
9048
if(qx.core.Setting.get("qx.enableApplicationLayout")){qx.html.StyleSheet.createElement("html,body{width:100%;height:100%;overflow:hidden;}");
9556
}this._lastUpDownType[keyIdentifier]=type;
9557
}else{this._idealKeyHandler(keyCode,
9558
charCode,
9559
type,
9560
domEvent);
9561
}},
9049
}},
9562
"webkit":function(domEvent){var keyCode=0;
9050
destruct:function(){this._disposeObjects("_blocker");
9563
var charCode=0;
9051
this._disposeFields("_window",
9564
var type=domEvent.type;
9052
"_document",
9565
if(qx.core.Client.getInstance().getVersion()<420){if(!this._lastCharCodeForType){this._lastCharCodeForType={};
9053
"_modalWidgets",
9566
}var isSafariSpecialKey=this._lastCharCodeForType[type]>63000;
9054
"_modalNativeWindow",
9567
if(isSafariSpecialKey){this._lastCharCodeForType[type]=null;
9055
"_globalCursorStyleSheet");
9568
return;
9056
}});
9569
}this._lastCharCodeForType[type]=domEvent.charCode;
9057
9058
9059
9060
9061
/* ID: qx.ui.basic.Terminator */
9062
qx.Class.define("qx.ui.basic.Terminator",
9063
{extend:qx.ui.core.Widget,
9064
members:{renderPadding:function(changes){if(changes.paddingLeft){this._renderRuntimePaddingLeft(this.getPaddingLeft());
9570
}
9065
}
9571
if(type=="keyup"||type=="keydown"){keyCode=this._charCode2KeyCode[domEvent.charCode]||domEvent.keyCode;
9066
if(changes.paddingRight){this._renderRuntimePaddingRight(this.getPaddingRight());
9572
}else{if(this._charCode2KeyCode[domEvent.charCode]){keyCode=this._charCode2KeyCode[domEvent.charCode];
9067
}
9573
}else{charCode=domEvent.charCode;
9068
if(changes.paddingTop){this._renderRuntimePaddingTop(this.getPaddingTop());
9574
}}this._idealKeyHandler(keyCode,
9069
}
9575
charCode,
9070
if(changes.paddingBottom){this._renderRuntimePaddingBottom(this.getPaddingBottom());
9576
type,
9071
}},
9577
domEvent);
9072
_renderContent:function(){if(this._computedWidthTypePixel){this._cachedPreferredInnerWidth=null;
9073
}else{this._invalidatePreferredInnerWidth();
9074
}if(this._computedHeightTypePixel){this._cachedPreferredInnerHeight=null;
9075
}else{this._invalidatePreferredInnerHeight();
9076
}if(this._initialLayoutDone){this.addToJobQueue("load");
9077
}},
9078
_layoutPost:function(changes){if(changes.initial||changes.load||changes.width||changes.height){this._postApply();
9079
}},
9080
_postApply:qx.lang.Function.returnTrue,
9081
_computeBoxWidthFallback:function(){return this.getPreferredBoxWidth();
9578
},
9082
},
9579
"opera":function(domEvent){var keyCode=domEvent.keyCode;
9083
_computeBoxHeightFallback:function(){return this.getPreferredBoxHeight();
9580
var type=domEvent.type;
9581
if(keyCode!=this._lastKeyCode){this._idealKeyHandler(0,
9582
this._lastKeyCode,
9583
type,
9584
domEvent);
9585
}else{if(this._keyCodeToIdentifierMap[keyCode]){this._idealKeyHandler(keyCode,
9586
0,
9587
type,
9588
domEvent);
9589
}else{this._idealKeyHandler(0,
9590
keyCode,
9591
type,
9592
domEvent);
9593
}}this._lastKeyCode=keyCode;
9594
},
9084
},
9595
"default":function(){throw new Error("Unsupported browser for key event handler!");
9085
_computePreferredInnerWidth:qx.lang.Function.returnZero,
9596
}}),
9086
_computePreferredInnerHeight:qx.lang.Function.returnZero,
9597
_specialCharCodeMap:{8:"Backspace",
9087
_isWidthEssential:function(){if(!this._computedLeftTypeNull&&!this._computedRightTypeNull){return true;
9598
9:"Tab",
9088
}
9599
13:"Enter",
9089
if(!this._computedWidthTypeNull&&!this._computedWidthTypeAuto){return true;
9600
27:"Escape",
9090
}
9601
32:"Space"},
9091
if(!this._computedMinWidthTypeNull&&!this._computedMinWidthTypeAuto){return true;
9602
_keyCodeToIdentifierMap:{16:"Shift",
9092
}
9603
17:"Control",
9093
if(!this._computedMaxWidthTypeNull&&!this._computedMaxWidthTypeAuto){return true;
9604
18:"Alt",
9094
}
9605
20:"CapsLock",
9095
if(this._borderElement){return true;
9606
224:"Meta",
9096
}return false;
9607
37:"Left",
9608
38:"Up",
9609
39:"Right",
9610
40:"Down",
9611
33:"PageUp",
9612
34:"PageDown",
9613
35:"End",
9614
36:"Home",
9615
45:"Insert",
9616
46:"Delete",
9617
112:"F1",
9618
113:"F2",
9619
114:"F3",
9620
115:"F4",
9621
116:"F5",
9622
117:"F6",
9623
118:"F7",
9624
119:"F8",
9625
120:"F9",
9626
121:"F10",
9627
122:"F11",
9628
123:"F12",
9629
144:"NumLock",
9630
44:"PrintScreen",
9631
145:"Scroll",
9632
19:"Pause",
9633
91:"Win",
9634
93:"Apps"},
9635
_numpadToCharCode:{96:"0".charCodeAt(0),
9636
97:"1".charCodeAt(0),
9637
98:"2".charCodeAt(0),
9638
99:"3".charCodeAt(0),
9639
100:"4".charCodeAt(0),
9640
101:"5".charCodeAt(0),
9641
102:"6".charCodeAt(0),
9642
103:"7".charCodeAt(0),
9643
104:"8".charCodeAt(0),
9644
105:"9".charCodeAt(0),
9645
106:"*".charCodeAt(0),
9646
107:"+".charCodeAt(0),
9647
109:"-".charCodeAt(0),
9648
110:",".charCodeAt(0),
9649
111:"/".charCodeAt(0)},
9650
_charCodeA:"A".charCodeAt(0),
9651
_charCodeZ:"Z".charCodeAt(0),
9652
_charCode0:"0".charCodeAt(0),
9653
_charCode9:"9".charCodeAt(0),
9654
_isNonPrintableKeyCode:function(keyCode){return this._keyCodeToIdentifierMap[keyCode]?true:false;
9655
},
9097
},
9656
_isIdentifiableKeyCode:function(keyCode){if(keyCode>=this._charCodeA&&keyCode<=this._charCodeZ){return true;
9098
_isHeightEssential:function(){if(!this._computedTopTypeNull&&!this._computedBottomTypeNull){return true;
9657
}if(keyCode>=this._charCode0&&keyCode<=this._charCode9){return true;
9099
}
9658
}if(this._specialCharCodeMap[keyCode]){return true;
9100
if(!this._computedHeightTypeNull&&!this._computedHeightTypeAuto){return true;
9659
}if(this._numpadToCharCode[keyCode]){return true;
9101
}
9660
}if(this._isNonPrintableKeyCode(keyCode)){return true;
9102
if(!this._computedMinHeightTypeNull&&!this._computedMinHeightTypeAuto){return true;
9103
}
9104
if(!this._computedMaxHeightTypeNull&&!this._computedMaxHeightTypeAuto){return true;
9105
}
9106
if(this._borderElement){return true;
9661
}return false;
9107
}return false;
9108
}}});
9109
9110
9111
9112
9113
/* ID: qx.ui.core.ClientDocumentBlocker */
9114
qx.Class.define("qx.ui.core.ClientDocumentBlocker",
9115
{extend:qx.ui.basic.Terminator,
9116
construct:function(){this.base(arguments);
9117
this.initTop();
9118
this.initLeft();
9119
this.initWidth();
9120
this.initHeight();
9121
this.initZIndex();
9122
},
9123
properties:{appearance:{refine:true,
9124
init:"client-document-blocker"},
9125
zIndex:{refine:true,
9126
init:1e8},
9127
top:{refine:true,
9128
init:0},
9129
left:{refine:true,
9130
init:0},
9131
width:{refine:true,
9132
init:"100%"},
9133
height:{refine:true,
9134
init:"100%"},
9135
display:{refine:true,
9136
init:false}},
9137
members:{getFocusRoot:function(){return null;
9138
}}});
9139
9140
9141
9142
9143
/* ID: qx.theme.manager.Appearance */
9144
qx.Class.define("qx.theme.manager.Appearance",
9145
{type:"singleton",
9146
extend:qx.util.manager.Object,
9147
construct:function(){this.base(arguments);
9148
this.__cache={};
9149
this.__stateMap={};
9150
this.__stateMapLength=1;
9662
},
9151
},
9663
isValidKeyIdentifier:function(keyIdentifier){if(this._identifierToKeyCodeMap[keyIdentifier]){return true;
9152
properties:{appearanceTheme:{check:"Theme",
9664
}
9153
nullable:true,
9665
if(keyIdentifier.length!=1){return false;
9154
apply:"_applyAppearanceTheme",
9155
event:"changeAppearanceTheme"}},
9156
members:{_applyAppearanceTheme:function(value,
9157
old){this._currentTheme=value;
9158
this._oldTheme=old;
9159
if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncAppearanceTheme();
9160
}},
9161
syncAppearanceTheme:function(){if(!this._currentTheme&&!this._oldTheme){return;
9666
}
9162
}
9667
if(keyIdentifier>="0"&&keyIdentifier<="9"){return true;
9163
if(this._currentTheme){this.__cache[this._currentTheme.name]={};
9164
}var app=qx.core.Init.getInstance().getApplication();
9165
if(app&&app.getUiReady()){qx.ui.core.ClientDocument.getInstance()._recursiveAppearanceThemeUpdate(this._currentTheme,
9166
this._oldTheme);
9668
}
9167
}
9669
if(keyIdentifier>="A"&&keyIdentifier<="Z"){return true;
9168
if(this._oldTheme){delete this.__cache[this._oldTheme.name];
9169
}delete this._currentTheme;
9170
delete this._oldTheme;
9171
},
9172
styleFrom:function(id,
9173
states){var theme=this.getAppearanceTheme();
9174
if(!theme){return;
9175
}return this.styleFromTheme(theme,
9176
id,
9177
states);
9178
},
9179
styleFromTheme:function(theme,
9180
id,
9181
states){var entry=theme.appearances[id];
9182
if(!entry){{this.warn("Missing appearance entry: "+id);
9183
};
9184
return null;
9185
}if(!entry.style){if(entry.include){return this.styleFromTheme(theme,
9186
entry.include,
9187
states);
9188
}else{return null;
9189
}}var map=this.__stateMap;
9190
var helper=[id];
9191
for(var state in states){if(!map[state]){map[state]=this.__stateMapLength++;
9192
}helper[map[state]]=true;
9193
}var unique=helper.join();
9194
var cache=this.__cache[theme.name];
9195
if(cache&&cache[unique]!==undefined){return cache[unique];
9196
}var result;
9197
if(entry.include||entry.base){var local=entry.style(states);
9198
var incl;
9199
if(entry.include){incl=this.styleFromTheme(theme,
9200
entry.include,
9201
states);
9202
}result={};
9203
if(entry.base){var base=this.styleFromTheme(entry.base,
9204
id,
9205
states);
9206
if(entry.include){for(var key in base){if(incl[key]===undefined&&local[key]===undefined){result[key]=base[key];
9207
}}}else{for(var key in base){if(local[key]===undefined){result[key]=base[key];
9208
}}}}if(entry.include){for(var key in incl){if(local[key]===undefined){result[key]=incl[key];
9209
}}}for(var key in local){result[key]=local[key];
9210
}}else{result=entry.style(states);
9211
}if(cache){cache[unique]=result||null;
9212
}return result||null;
9213
}},
9214
destruct:function(){this._disposeFields("__cache",
9215
"__stateMap");
9216
}});
9217
9218
9219
9220
9221
/* ID: qx.theme.manager.Meta */
9222
qx.Class.define("qx.theme.manager.Meta",
9223
{type:"singleton",
9224
extend:qx.core.Target,
9225
properties:{theme:{check:"Theme",
9226
nullable:true,
9227
apply:"_applyTheme",
9228
event:"changeTheme"},
9229
autoSync:{check:"Boolean",
9230
init:true,
9231
apply:"_applyAutoSync"}},
9232
members:{_applyTheme:function(value,
9233
old){var color=null;
9234
var border=null;
9235
var font=null;
9236
var widget=null;
9237
var icon=null;
9238
var appearance=null;
9239
if(value){color=value.meta.color||null;
9240
border=value.meta.border||null;
9241
font=value.meta.font||null;
9242
widget=value.meta.widget||null;
9243
icon=value.meta.icon||null;
9244
appearance=value.meta.appearance||null;
9670
}
9245
}
9671
switch(keyIdentifier){case "+":case "-":case "*":case "/":return true;
9246
if(old){this.setAutoSync(false);
9672
default:return false;
9247
}var colorMgr=qx.theme.manager.Color.getInstance();
9248
var borderMgr=qx.theme.manager.Border.getInstance();
9249
var fontMgr=qx.theme.manager.Font.getInstance();
9250
var iconMgr=qx.theme.manager.Icon.getInstance();
9251
var widgetMgr=qx.theme.manager.Widget.getInstance();
9252
var appearanceMgr=qx.theme.manager.Appearance.getInstance();
9253
colorMgr.setColorTheme(color);
9254
borderMgr.setBorderTheme(border);
9255
fontMgr.setFontTheme(font);
9256
widgetMgr.setWidgetTheme(widget);
9257
iconMgr.setIconTheme(icon);
9258
appearanceMgr.setAppearanceTheme(appearance);
9259
if(old){this.setAutoSync(true);
9673
}},
9260
}},
9674
_keyCodeToIdentifier:function(keyCode){if(this._isIdentifiableKeyCode(keyCode)){var numPadKeyCode=this._numpadToCharCode[keyCode];
9261
_applyAutoSync:function(value,
9675
if(numPadKeyCode){return String.fromCharCode(numPadKeyCode);
9262
old){if(value){qx.theme.manager.Appearance.getInstance().syncAppearanceTheme();
9676
}return (this._keyCodeToIdentifierMap[keyCode]||this._specialCharCodeMap[keyCode]||String.fromCharCode(keyCode));
9263
qx.theme.manager.Icon.getInstance().syncIconTheme();
9677
}else{return "Unidentified";
9264
qx.theme.manager.Widget.getInstance().syncWidgetTheme();
9265
qx.theme.manager.Font.getInstance().syncFontTheme();
9266
qx.theme.manager.Border.getInstance().syncBorderTheme();
9267
qx.theme.manager.Color.getInstance().syncColorTheme();
9678
}},
9268
}},
9679
_charCodeToIdentifier:function(charCode){return this._specialCharCodeMap[charCode]||String.fromCharCode(charCode).toUpperCase();
9269
initialize:function(){var setting=qx.core.Setting;
9270
var theme,
9271
obj;
9272
theme=setting.get("qx.theme");
9273
if(theme){obj=qx.Theme.getByName(theme);
9274
if(!obj){throw new Error("The meta theme to use is not available: "+theme);
9275
}this.setTheme(obj);
9276
}theme=setting.get("qx.colorTheme");
9277
if(theme){obj=qx.Theme.getByName(theme);
9278
if(!obj){throw new Error("The color theme to use is not available: "+theme);
9279
}qx.theme.manager.Color.getInstance().setColorTheme(obj);
9280
}theme=setting.get("qx.borderTheme");
9281
if(theme){obj=qx.Theme.getByName(theme);
9282
if(!obj){throw new Error("The border theme to use is not available: "+theme);
9283
}qx.theme.manager.Border.getInstance().setBorderTheme(obj);
9284
}theme=setting.get("qx.fontTheme");
9285
if(theme){obj=qx.Theme.getByName(theme);
9286
if(!obj){throw new Error("The font theme to use is not available: "+theme);
9287
}qx.theme.manager.Font.getInstance().setFontTheme(obj);
9288
}theme=setting.get("qx.widgetTheme");
9289
if(theme){obj=qx.Theme.getByName(theme);
9290
if(!obj){throw new Error("The widget theme to use is not available: "+theme);
9291
}qx.theme.manager.Widget.getInstance().setWidgetTheme(obj);
9292
}theme=setting.get("qx.iconTheme");
9293
if(theme){obj=qx.Theme.getByName(theme);
9294
if(!obj){throw new Error("The icon theme to use is not available: "+theme);
9295
}qx.theme.manager.Icon.getInstance().setIconTheme(obj);
9296
}theme=setting.get("qx.appearanceTheme");
9297
if(theme){obj=qx.Theme.getByName(theme);
9298
if(!obj){throw new Error("The appearance theme to use is not available: "+theme);
9299
}qx.theme.manager.Appearance.getInstance().setAppearanceTheme(obj);
9300
}},
9301
__queryThemes:function(key){var reg=qx.Theme.getAll();
9302
var theme;
9303
var list=[];
9304
for(var name in reg){theme=reg[name];
9305
if(theme[key]){list.push(theme);
9306
}}return list;
9680
},
9307
},
9681
_identifierToKeyCode:function(keyIdentifier){return this._identifierToKeyCodeMap[keyIdentifier]||keyIdentifier.charCodeAt(0);
9308
getMetaThemes:function(){return this.__queryThemes("meta");
9682
},
9309
},
9683
_idealKeyHandler:function(keyCode,
9310
getColorThemes:function(){return this.__queryThemes("colors");
9684
charCode,
9311
},
9685
eventType,
9312
getBorderThemes:function(){return this.__queryThemes("borders");
9686
domEvent){if(!keyCode&&!charCode){return;
9313
},
9687
}var keyIdentifier;
9314
getFontThemes:function(){return this.__queryThemes("fonts");
9688
if(keyCode){keyIdentifier=this._keyCodeToIdentifier(keyCode);
9315
},
9689
qx.event.handler.EventHandler.getInstance()._onkeyevent_post(domEvent,
9316
getWidgetThemes:function(){return this.__queryThemes("widgets");
9690
eventType,
9317
},
9691
keyCode,
9318
getIconThemes:function(){return this.__queryThemes("icons");
9692
charCode,
9319
},
9693
keyIdentifier);
9320
getAppearanceThemes:function(){return this.__queryThemes("appearances");
9694
}else{keyIdentifier=this._charCodeToIdentifier(charCode);
9321
}},
9695
qx.event.handler.EventHandler.getInstance()._onkeyevent_post(domEvent,
9322
settings:{"qx.theme":"qx.theme.ClassicRoyale",
9696
"keypress",
9323
"qx.colorTheme":null,
9697
keyCode,
9324
"qx.borderTheme":null,
9698
charCode,
9325
"qx.fontTheme":null,
9699
keyIdentifier);
9326
"qx.widgetTheme":null,
9700
qx.event.handler.EventHandler.getInstance()._onkeyevent_post(domEvent,
9327
"qx.appearanceTheme":null,
9701
"keyinput",
9328
"qx.iconTheme":null}});
9702
keyCode,
9329
9703
charCode,
9330
9704
keyIdentifier);
9331
9705
}}},
9332
9706
defer:function(statics,
9333
/* ID: qx.theme.manager.Color */
9707
members,
9334
qx.Class.define("qx.theme.manager.Color",
9708
properties){if(!members._identifierToKeyCodeMap){members._identifierToKeyCodeMap={};
9335
{type:"singleton",
9709
for(var key in members._keyCodeToIdentifierMap){members._identifierToKeyCodeMap[members._keyCodeToIdentifierMap[key]]=parseInt(key);
9336
extend:qx.util.manager.Value,
9710
}
9337
properties:{colorTheme:{check:"Theme",
9711
for(var key in members._specialCharCodeMap){members._identifierToKeyCodeMap[members._specialCharCodeMap[key]]=parseInt(key);
9338
nullable:true,
9712
}}
9339
apply:"_applyColorTheme",
9713
if(qx.core.Variant.isSet("qx.client",
9340
event:"changeColorTheme"}},
9714
"mshtml")){members._lastUpDownType={};
9341
members:{_applyColorTheme:function(value){var dest=this._dynamic={};
9715
members._charCode2KeyCode={13:13,
9342
if(value){var source=value.colors;
9716
27:27};
9343
var util=qx.util.ColorUtil;
9717
}else if(qx.core.Variant.isSet("qx.client",
9344
var temp;
9718
"gecko")){members._lastUpDownType={};
9345
for(var key in source){temp=source[key];
9719
members._keyCodeFix={12:members._identifierToKeyCode("NumLock")};
9346
if(typeof temp==="string"){if(!util.isCssString(temp)){throw new Error("Could not parse color: "+temp);
9720
}else if(qx.core.Variant.isSet("qx.client",
9347
}}else if(temp instanceof Array){temp=util.rgbToRgbString(temp);
9721
"webkit")){members._charCode2KeyCode={63289:members._identifierToKeyCode("NumLock"),
9348
}else{throw new Error("Could not parse color: "+temp);
9722
63276:members._identifierToKeyCode("PageUp"),
9349
}dest[key]=temp;
9723
63277:members._identifierToKeyCode("PageDown"),
9350
}}
9724
63275:members._identifierToKeyCode("End"),
9351
if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncColorTheme();
9725
63273:members._identifierToKeyCode("Home"),
9726
63234:members._identifierToKeyCode("Left"),
9727
63232:members._identifierToKeyCode("Up"),
9728
63235:members._identifierToKeyCode("Right"),
9729
63233:members._identifierToKeyCode("Down"),
9730
63272:members._identifierToKeyCode("Delete"),
9731
63302:members._identifierToKeyCode("Insert"),
9732
63236:members._identifierToKeyCode("F1"),
9733
63237:members._identifierToKeyCode("F2"),
9734
63238:members._identifierToKeyCode("F3"),
9735
63239:members._identifierToKeyCode("F4"),
9736
63240:members._identifierToKeyCode("F5"),
9737
63241:members._identifierToKeyCode("F6"),
9738
63242:members._identifierToKeyCode("F7"),
9739
63243:members._identifierToKeyCode("F8"),
9740
63244:members._identifierToKeyCode("F9"),
9741
63245:members._identifierToKeyCode("F10"),
9742
63246:members._identifierToKeyCode("F11"),
9743
63247:members._identifierToKeyCode("F12"),
9744
63248:members._identifierToKeyCode("PrintScreen"),
9745
3:members._identifierToKeyCode("Enter"),
9746
12:members._identifierToKeyCode("NumLock"),
9747
13:members._identifierToKeyCode("Enter")};
9748
}else if(qx.core.Variant.isSet("qx.client",
9749
"opera")){members._lastKeyCode=null;
9750
}},
9352
}},
9751
destruct:function(){this._detachEvents();
9353
syncColorTheme:function(){this._updateObjects();
9752
this._disposeFields("_lastUpDownType",
9354
}}});
9753
"_lastKeyCode");
9754
}});
9755
9355
9756
9356
9757
9357
9758
9358
9759
/* ID: qx.event.type.DomEvent */
9359
/* ID: qx.util.ColorUtil */
9760
qx.Class.define("qx.event.type.DomEvent",
9360
qx.Class.define("qx.util.ColorUtil",
9761
{extend:qx.event.type.Event,
9361
{statics:{REGEXP:{hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
9762
construct:function(vType,
9362
hex6:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
9763
vDomEvent,
9363
rgb:/^rgb\(\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*\)$/},
9764
vDomTarget,
9364
SYSTEM:{activeborder:true,
9765
vTarget,
9365
activecaption:true,
9766
vOriginalTarget){this.base(arguments,
9366
appworkspace:true,
9767
vType);
9367
background:true,
9768
this.setDomEvent(vDomEvent);
9368
buttonface:true,
9769
this.setDomTarget(vDomTarget);
9369
buttonhighlight:true,
9770
this.setTarget(vTarget);
9370
buttonshadow:true,
9771
this.setOriginalTarget(vOriginalTarget);
9371
buttontext:true,
9372
captiontext:true,
9373
graytext:true,
9374
highlight:true,
9375
highlighttext:true,
9376
inactiveborder:true,
9377
inactivecaption:true,
9378
inactivecaptiontext:true,
9379
infobackground:true,
9380
infotext:true,
9381
menu:true,
9382
menutext:true,
9383
scrollbar:true,
9384
threeddarkshadow:true,
9385
threedface:true,
9386
threedhighlight:true,
9387
threedlightshadow:true,
9388
threedshadow:true,
9389
window:true,
9390
windowframe:true,
9391
windowtext:true},
9392
NAMED:{black:[0,
9393
0,
9394
0],
9395
silver:[192,
9396
192,
9397
192],
9398
gray:[128,
9399
128,
9400
128],
9401
white:[255,
9402
255,
9403
255],
9404
maroon:[128,
9405
0,
9406
0],
9407
red:[255,
9408
0,
9409
0],
9410
purple:[128,
9411
0,
9412
128],
9413
fuchsia:[255,
9414
0,
9415
255],
9416
green:[0,
9417
128,
9418
0],
9419
lime:[0,
9420
255,
9421
0],
9422
olive:[128,
9423
128,
9424
0],
9425
yellow:[255,
9426
255,
9427
0],
9428
navy:[0,
9429
0,
9430
128],
9431
blue:[0,
9432
0,
9433
255],
9434
teal:[0,
9435
128,
9436
128],
9437
aqua:[0,
9438
255,
9439
255],
9440
transparent:[-1,
9441
-1,
9442
-1],
9443
grey:[128,
9444
128,
9445
128],
9446
magenta:[255,
9447
0,
9448
255],
9449
orange:[255,
9450
165,
9451
0],
9452
brown:[165,
9453
42,
9454
42]},
9455
isNamedColor:function(value){return this.NAMED[value]!==undefined;
9772
},
9456
},
9773
statics:{SHIFT_MASK:1,
9457
isSystemColor:function(value){return this.SYSTEM[value]!==undefined;
9774
CTRL_MASK:2,
9775
ALT_MASK:4,
9776
META_MASK:8},
9777
properties:{bubbles:{_fast:true,
9778
defaultValue:true,
9779
noCompute:true},
9780
propagationStopped:{_fast:true,
9781
defaultValue:false,
9782
noCompute:true},
9783
domEvent:{_fast:true,
9784
setOnlyOnce:true,
9785
noCompute:true},
9786
domTarget:{_fast:true,
9787
setOnlyOnce:true,
9788
noCompute:true},
9789
modifiers:{_cached:true,
9790
defaultValue:null}},
9791
members:{_computeModifiers:function(){var mask=0;
9792
var evt=this.getDomEvent();
9793
if(evt.shiftKey)mask|=qx.event.type.DomEvent.SHIFT_MASK;
9794
if(evt.ctrlKey)mask|=qx.event.type.DomEvent.CTRL_MASK;
9795
if(evt.altKey)mask|=qx.event.type.DomEvent.ALT_MASK;
9796
if(evt.metaKey)mask|=qx.event.type.DomEvent.META_MASK;
9797
return mask;
9798
},
9458
},
9799
isCtrlPressed:function(){return this.getDomEvent().ctrlKey;
9459
isThemedColor:function(value){return qx.theme.manager.Color.getInstance().isDynamic(value);
9800
},
9460
},
9801
isShiftPressed:function(){return this.getDomEvent().shiftKey;
9461
stringToRgb:function(str){if(this.isThemedColor(str)){var str=qx.theme.manager.Color.getInstance().resolveDynamic(str);
9462
}
9463
if(this.isNamedColor(str)){return this.NAMED[str];
9464
}else if(this.isSystemColor(str)){throw new Error("Could not convert system colors to RGB: "+str);
9465
}else if(this.isRgbString(str)){return this.__rgbStringToRgb();
9466
}else if(this.isHex3String(str)){return this.__hex3StringToRgb();
9467
}else if(this.isHex6String(str)){return this.__hex6StringToRgb();
9468
}throw new Error("Could not parse color: "+str);
9802
},
9469
},
9803
isAltPressed:function(){return this.getDomEvent().altKey;
9470
cssStringToRgb:function(str){if(this.isNamedColor(str)){return this.NAMED[str];
9471
}else if(this.isSystemColor(str)){throw new Error("Could not convert system colors to RGB: "+str);
9472
}else if(this.isRgbString(str)){return this.__rgbStringToRgb();
9473
}else if(this.isHex3String(str)){return this.__hex3StringToRgb();
9474
}else if(this.isHex6String(str)){return this.__hex6StringToRgb();
9475
}throw new Error("Could not parse color: "+str);
9804
},
9476
},
9805
isMetaPressed:function(){return this.getDomEvent().metaKey;
9477
stringToRgbString:function(str){return this.rgbToRgbString(this.stringToRgb(str));
9478
},
9479
rgbToRgbString:function(rgb){return "rgb("+rgb[0]+","+rgb[1]+","+rgb[2]+")";
9480
},
9481
rgbToHexString:function(rgb){return (qx.lang.String.pad(rgb[0].toString(16).toUpperCase(),
9482
2)+qx.lang.String.pad(rgb[1].toString(16).toUpperCase(),
9483
2)+qx.lang.String.pad(rgb[2].toString(16).toUpperCase(),
9484
2));
9485
},
9486
isValid:function(str){return this.isThemedColor(str)||this.isCssString(str);
9487
},
9488
isCssString:function(str){return this.isSystemColor(str)||this.isNamedColor(str)||this.isHex3String(str)||this.isHex6String(str)||this.isRgbString(str);
9489
},
9490
isHex3String:function(str){return this.REGEXP.hex3.test(str);
9491
},
9492
isHex6String:function(str){return this.REGEXP.hex6.test(str);
9493
},
9494
isRgbString:function(str){return this.REGEXP.rgb.test(str);
9495
},
9496
__rgbStringToRgb:function(){var red=parseInt(RegExp.$1);
9497
var green=parseInt(RegExp.$2);
9498
var blue=parseInt(RegExp.$3);
9499
return [red,
9500
green,
9501
blue];
9502
},
9503
__hex3StringToRgb:function(){var red=parseInt(RegExp.$1,
9504
16)*17;
9505
var green=parseInt(RegExp.$2,
9506
16)*17;
9507
var blue=parseInt(RegExp.$3,
9508
16)*17;
9509
return [red,
9510
green,
9511
blue];
9512
},
9513
__hex6StringToRgb:function(){var red=(parseInt(RegExp.$1,
9514
16)*16)+parseInt(RegExp.$2,
9515
16);
9516
var green=(parseInt(RegExp.$3,
9517
16)*16)+parseInt(RegExp.$4,
9518
16);
9519
var blue=(parseInt(RegExp.$5,
9520
16)*16)+parseInt(RegExp.$6,
9521
16);
9522
return [red,
9523
green,
9524
blue];
9525
},
9526
hex3StringToRgb:function(value){if(this.isHex3String(value)){return this.__hex3StringToRgb(value);
9527
}throw new Error("Invalid hex3 value: "+value);
9528
},
9529
hex6StringToRgb:function(value){if(this.isHex6String(value)){return this.__hex6StringToRgb(value);
9530
}throw new Error("Invalid hex6 value: "+value);
9531
},
9532
hexStringToRgb:function(value){if(this.isHex3String(value)){return this.__hex3StringToRgb(value);
9533
}
9534
if(this.isHex6String(value)){return this.__hex6StringToRgb(value);
9535
}throw new Error("Invalid hex value: "+value);
9536
},
9537
rgbToHsb:function(rgb){var hue,
9538
saturation,
9539
brightness;
9540
var red=rgb[0];
9541
var green=rgb[1];
9542
var blue=rgb[2];
9543
var cmax=(red>green)?red:green;
9544
if(blue>cmax){cmax=blue;
9545
}var cmin=(red<green)?red:green;
9546
if(blue<cmin){cmin=blue;
9547
}brightness=cmax/255.0;
9548
if(cmax!=0){saturation=(cmax-cmin)/cmax;
9549
}else{saturation=0;
9550
}
9551
if(saturation==0){hue=0;
9552
}else{var redc=(cmax-red)/(cmax-cmin);
9553
var greenc=(cmax-green)/(cmax-cmin);
9554
var bluec=(cmax-blue)/(cmax-cmin);
9555
if(red==cmax){hue=bluec-greenc;
9556
}else if(green==cmax){hue=2.0+redc-bluec;
9557
}else{hue=4.0+greenc-redc;
9558
}hue=hue/6.0;
9559
if(hue<0){hue=hue+1.0;
9560
}}return [Math.round(hue*360),
9561
Math.round(saturation*100),
9562
Math.round(brightness*100)];
9806
},
9563
},
9807
isCtrlOrCommandPressed:function(){if(qx.core.Client.getInstance().runsOnMacintosh()){return this.getDomEvent().metaKey;
9564
hsbToRgb:function(hsb){var i,
9808
}else{return this.getDomEvent().ctrlKey;
9565
f,
9809
}},
9566
p,
9810
setDefaultPrevented:qx.core.Variant.select("qx.client",
9567
q,
9811
{"mshtml":function(vValue){if(!vValue){return this.error("It is not possible to set preventDefault to false if it was true before!",
9568
t;
9812
"setDefaultPrevented");
9569
var hue=hsb[0]/360;
9813
}this.getDomEvent().returnValue=false;
9570
var saturation=hsb[1]/100;
9814
this.base(arguments,
9571
var brightness=hsb[2]/100;
9815
vValue);
9572
if(hue>=1.0){hue%=1.0;
9573
}
9574
if(saturation>1.0){saturation=1.0;
9575
}
9576
if(brightness>1.0){brightness=1.0;
9577
}var tov=Math.floor(255*brightness);
9578
var rgb={};
9579
if(saturation==0.0){rgb.red=rgb.green=rgb.blue=tov;
9580
}else{hue*=6.0;
9581
i=Math.floor(hue);
9582
f=hue-i;
9583
p=Math.floor(tov*(1.0-saturation));
9584
q=Math.floor(tov*(1.0-(saturation*f)));
9585
t=Math.floor(tov*(1.0-(saturation*(1.0-f))));
9586
switch(i){case 0:rgb.red=tov;
9587
rgb.green=t;
9588
rgb.blue=p;
9589
break;
9590
case 1:rgb.red=q;
9591
rgb.green=tov;
9592
rgb.blue=p;
9593
break;
9594
case 2:rgb.red=p;
9595
rgb.green=tov;
9596
rgb.blue=t;
9597
break;
9598
case 3:rgb.red=p;
9599
rgb.green=q;
9600
rgb.blue=tov;
9601
break;
9602
case 4:rgb.red=t;
9603
rgb.green=p;
9604
rgb.blue=tov;
9605
break;
9606
case 5:rgb.red=tov;
9607
rgb.green=p;
9608
rgb.blue=q;
9609
break;
9610
}}return rgb;
9816
},
9611
},
9817
"default":function(vValue){if(!vValue){return this.error("It is not possible to set preventDefault to false if it was true before!",
9612
randomColor:function(){var r=Math.round(Math.random()*255);
9818
"setDefaultPrevented");
9613
var g=Math.round(Math.random()*255);
9819
}this.getDomEvent().preventDefault();
9614
var b=Math.round(Math.random()*255);
9820
this.getDomEvent().returnValue=false;
9615
return this.rgbToRgbString([r,
9821
this.base(arguments,
9616
g,
9822
vValue);
9617
b]);
9823
}})},
9618
}}});
9824
destruct:function(){this._disposeFields("_valueDomEvent",
9825
"_valueDomTarget");
9826
}});
9827
9619
9828
9620
9829
9621
9830
9622
9831
/* ID: qx.event.type.KeyEvent */
9623
/* ID: qx.theme.manager.Border */
9832
qx.Class.define("qx.event.type.KeyEvent",
9624
qx.Class.define("qx.theme.manager.Border",
9833
{extend:qx.event.type.DomEvent,
9625
{type:"singleton",
9834
construct:function(vType,
9626
extend:qx.util.manager.Value,
9835
vDomEvent,
9627
properties:{borderTheme:{check:"Theme",
9836
vDomTarget,
9628
nullable:true,
9837
vTarget,
9629
apply:"_applyBorderTheme",
9838
vOriginalTarget,
9630
event:"changeBorderTheme"}},
9839
vKeyCode,
9631
members:{resolveDynamic:function(value){return value instanceof qx.ui.core.Border?value:this._dynamic[value];
9840
vCharCode,
9841
vKeyIdentifier){this.base(arguments,
9842
vType,
9843
vDomEvent,
9844
vDomTarget,
9845
vTarget,
9846
vOriginalTarget);
9847
this._keyCode=vKeyCode;
9848
this.setCharCode(vCharCode);
9849
this.setKeyIdentifier(vKeyIdentifier);
9850
},
9632
},
9851
statics:{keys:{esc:27,
9633
isDynamic:function(value){return value&&(value instanceof qx.ui.core.Border||this._dynamic[value]!==undefined);
9852
enter:13,
9634
},
9853
tab:9,
9635
syncBorderTheme:function(){this._updateObjects();
9854
space:32,
9636
},
9855
up:38,
9637
updateObjectsEdge:function(border,
9856
down:40,
9638
edge){var reg=this._registry;
9857
left:37,
9639
var dynamics=this._dynamic;
9858
right:39,
9640
var entry;
9859
shift:16,
9641
for(var key in reg){entry=reg[key];
9860
ctrl:17,
9642
if(entry.value===border||dynamics[entry.value]===border){entry.callback.call(entry.object,
9861
alt:18,
9643
border,
9862
f1:112,
9644
edge);
9863
f2:113,
9645
}}},
9864
f3:114,
9646
_applyBorderTheme:function(value){var dest=this._dynamic;
9865
f4:115,
9647
for(var key in dest){if(dest[key].themed){dest[key].dispose();
9866
f5:116,
9648
delete dest[key];
9867
f6:117,
9649
}}
9868
f7:118,
9650
if(value){var source=value.borders;
9869
f8:119,
9651
var border=qx.ui.core.Border;
9870
f9:120,
9652
for(var key in source){dest[key]=(new border).set(source[key]);
9871
f10:121,
9653
dest[key].themed=true;
9872
f11:122,
9654
}}
9873
f12:123,
9655
if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncBorderTheme();
9874
print:124,
9656
}}}});
9875
del:46,
9876
backspace:8,
9877
insert:45,
9878
home:36,
9879
end:35,
9880
pageup:33,
9881
pagedown:34,
9882
numlock:144,
9883
numpad_0:96,
9884
numpad_1:97,
9885
numpad_2:98,
9886
numpad_3:99,
9887
numpad_4:100,
9888
numpad_5:101,
9889
numpad_6:102,
9890
numpad_7:103,
9891
numpad_8:104,
9892
numpad_9:105,
9893
numpad_divide:111,
9894
numpad_multiply:106,
9895
numpad_minus:109,
9896
numpad_plus:107},
9897
codes:{}},
9898
properties:{charCode:{_fast:true,
9899
setOnlyOnce:true,
9900
noCompute:true},
9901
keyIdentifier:{_fast:true,
9902
setOnlyOnce:true,
9903
noCompute:true}},
9904
members:{getKeyCode:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,
9905
"Please use getKeyIdentifier() instead.");
9906
return this._keyCode;
9907
}},
9908
defer:function(statics){for(var i in statics.keys){statics.codes[statics.keys[i]]=i;
9909
}}});
9910
9657
9911
9658
9912
9659
9913
9660
9914
/* ID: qx.event.type.MouseEvent */
9661
/* ID: qx.ui.core.Border */
9915
qx.Class.define("qx.event.type.MouseEvent",
9662
qx.Class.define("qx.ui.core.Border",
9916
{extend:qx.event.type.DomEvent,
9663
{extend:qx.core.Object,
9917
construct:function(vType,
9664
construct:function(width,
9918
vDomEvent,
9665
style,
9919
vDomTarget,
9666
color){this.base(arguments);
9920
vTarget,
9667
if(width!==undefined){this.setWidth(width);
9921
vOriginalTarget,
9668
}
9922
vRelatedTarget){this.base(arguments,
9669
if(style!==undefined){this.setStyle(style);
9923
vType,
9670
}
9924
vDomEvent,
9671
if(color!==undefined){this.setColor(color);
9925
vDomTarget,
9926
vTarget,
9927
vOriginalTarget);
9928
if(vRelatedTarget){this.setRelatedTarget(vRelatedTarget);
9929
}},
9672
}},
9930
statics:{C_BUTTON_LEFT:"left",
9673
statics:{fromString:function(str){var border=new qx.ui.core.Border;
9931
C_BUTTON_MIDDLE:"middle",
9674
var parts=str.split(/\s+/);
9932
C_BUTTON_RIGHT:"right",
9675
var part,
9933
C_BUTTON_NONE:"none",
9676
temp;
9934
_screenX:0,
9677
for(var i=0,
9935
_screenY:0,
9678
l=parts.length;i<l;i++){part=parts[i];
9936
_clientX:0,
9679
switch(part){case "groove":case "ridge":case "inset":case "outset":case "solid":case "dotted":case "dashed":case "double":case "none":border.setStyle(part);
9937
_clientY:0,
9680
break;
9938
_pageX:0,
9681
default:temp=parseInt(part);
9939
_pageY:0,
9682
if(temp===part||qx.lang.String.contains(part,
9940
_button:null,
9683
"px")){border.setWidth(temp);
9941
buttons:qx.core.Variant.select("qx.client",
9684
}else{border.setColor(part);
9942
{"mshtml":{left:1,
9685
}break;
9943
right:2,
9686
}}return border;
9944
middle:4},
9945
"default":{left:0,
9946
right:2,
9947
middle:1}}),
9948
storeEventState:function(e){this._screenX=e.getScreenX();
9949
this._screenY=e.getScreenY();
9950
this._clientX=e.getClientX();
9951
this._clientY=e.getClientY();
9952
this._pageX=e.getPageX();
9953
this._pageY=e.getPageY();
9954
this._button=e.getButton();
9955
},
9956
getScreenX:function(){return this._screenX;
9957
},
9958
getScreenY:function(){return this._screenY;
9959
},
9687
},
9960
getClientX:function(){return this._clientX;
9688
fromConfig:function(config){var border=new qx.ui.core.Border;
9689
border.set(config);
9690
return border;
9961
},
9691
},
9962
getClientY:function(){return this._clientY;
9692
resetTop:qx.core.Variant.select("qx.client",
9693
{"gecko":function(widget){var style=widget._style;
9694
if(style){style.borderTopWidth=style.borderTopStyle=style.borderTopColor=style.MozBorderTopColors="";
9695
}},
9696
"default":function(widget){var style=widget._style;
9697
if(style){style.borderTopWidth=style.borderTopStyle=style.borderTopColor="";
9698
}style=widget._innerStyle;
9699
if(style){style.borderTopWidth=style.borderTopStyle=style.borderTopColor="";
9700
}}}),
9701
resetRight:qx.core.Variant.select("qx.client",
9702
{"gecko":function(widget){var style=widget._style;
9703
if(style){style.borderRightWidth=style.borderRightStyle=style.borderRightColor=style.MozBorderRightColors="";
9704
}},
9705
"default":function(widget){var style=widget._style;
9706
if(style){style.borderRightWidth=style.borderRightStyle=style.borderRightColor="";
9707
}style=widget._innerStyle;
9708
if(style){style.borderRightWidth=style.borderRightStyle=style.borderRightColor="";
9709
}}}),
9710
resetBottom:qx.core.Variant.select("qx.client",
9711
{"gecko":function(widget){var style=widget._style;
9712
if(style){style.borderBottomWidth=style.borderBottomStyle=style.borderBottomColor=style.MozBorderBottomColors="";
9713
}},
9714
"default":function(widget){var style=widget._style;
9715
if(style){style.borderBottomWidth=style.borderBottomStyle=style.borderBottomColor="";
9716
}style=widget._innerStyle;
9717
if(style){style.borderBottomWidth=style.borderBottomStyle=style.borderBottomColor="";
9718
}}}),
9719
resetLeft:qx.core.Variant.select("qx.client",
9720
{"gecko":function(widget){var style=widget._style;
9721
if(style){style.borderLeftWidth=style.borderLeftStyle=style.borderLeftColor=style.MozBorderLeftColors="";
9722
}},
9723
"default":function(widget){var style=widget._style;
9724
if(style){style.borderLeftWidth=style.borderLeftStyle=style.borderLeftColor="";
9725
}style=widget._innerStyle;
9726
if(style){style.borderLeftWidth=style.borderLeftStyle=style.borderLeftColor="";
9727
}}})},
9728
properties:{widthTop:{check:"Number",
9729
init:0,
9730
apply:"_applyWidthTop"},
9731
widthRight:{check:"Number",
9732
init:0,
9733
apply:"_applyWidthRight"},
9734
widthBottom:{check:"Number",
9735
init:0,
9736
apply:"_applyWidthBottom"},
9737
widthLeft:{check:"Number",
9738
init:0,
9739
apply:"_applyWidthLeft"},
9740
styleTop:{nullable:true,
9741
check:["solid",
9742
"dotted",
9743
"dashed",
9744
"double",
9745
"outset",
9746
"inset",
9747
"ridge",
9748
"groove"],
9749
init:"solid",
9750
apply:"_applyStyleTop"},
9751
styleRight:{nullable:true,
9752
check:["solid",
9753
"dotted",
9754
"dashed",
9755
"double",
9756
"outset",
9757
"inset",
9758
"ridge",
9759
"groove"],
9760
init:"solid",
9761
apply:"_applyStyleRight"},
9762
styleBottom:{nullable:true,
9763
check:["solid",
9764
"dotted",
9765
"dashed",
9766
"double",
9767
"outset",
9768
"inset",
9769
"ridge",
9770
"groove"],
9771
init:"solid",
9772
apply:"_applyStyleBottom"},
9773
styleLeft:{nullable:true,
9774
check:["solid",
9775
"dotted",
9776
"dashed",
9777
"double",
9778
"outset",
9779
"inset",
9780
"ridge",
9781
"groove"],
9782
init:"solid",
9783
apply:"_applyStyleLeft"},
9784
colorTop:{nullable:true,
9785
check:"Color",
9786
apply:"_applyColorTop"},
9787
colorRight:{nullable:true,
9788
check:"Color",
9789
apply:"_applyColorRight"},
9790
colorBottom:{nullable:true,
9791
check:"Color",
9792
apply:"_applyColorBottom"},
9793
colorLeft:{nullable:true,
9794
check:"Color",
9795
apply:"_applyColorLeft"},
9796
colorInnerTop:{nullable:true,
9797
check:"Color",
9798
apply:"_applyColorInnerTop"},
9799
colorInnerRight:{nullable:true,
9800
check:"Color",
9801
apply:"_applyColorInnerRight"},
9802
colorInnerBottom:{nullable:true,
9803
check:"Color",
9804
apply:"_applyColorInnerBottom"},
9805
colorInnerLeft:{nullable:true,
9806
check:"Color",
9807
apply:"_applyColorInnerLeft"},
9808
left:{group:["widthLeft",
9809
"styleLeft",
9810
"colorLeft"]},
9811
right:{group:["widthRight",
9812
"styleRight",
9813
"colorRight"]},
9814
top:{group:["widthTop",
9815
"styleTop",
9816
"colorTop"]},
9817
bottom:{group:["widthBottom",
9818
"styleBottom",
9819
"colorBottom"]},
9820
width:{group:["widthTop",
9821
"widthRight",
9822
"widthBottom",
9823
"widthLeft"],
9824
mode:"shorthand"},
9825
style:{group:["styleTop",
9826
"styleRight",
9827
"styleBottom",
9828
"styleLeft"],
9829
mode:"shorthand"},
9830
color:{group:["colorTop",
9831
"colorRight",
9832
"colorBottom",
9833
"colorLeft"],
9834
mode:"shorthand"},
9835
innerColor:{group:["colorInnerTop",
9836
"colorInnerRight",
9837
"colorInnerBottom",
9838
"colorInnerLeft"],
9839
mode:"shorthand"}},
9840
members:{_applyWidthTop:function(value,
9841
old){this.__widthTop=value==null?"0px":value+"px";
9842
this.__computeComplexTop();
9843
this.__informManager("top");
9963
},
9844
},
9964
getPageX:function(){return this._pageX;
9845
_applyWidthRight:function(value,
9846
old){this.__widthRight=value==null?"0px":value+"px";
9847
this.__computeComplexRight();
9848
this.__informManager("right");
9965
},
9849
},
9966
getPageY:function(){return this._pageY;
9850
_applyWidthBottom:function(value,
9851
old){this.__widthBottom=value==null?"0px":value+"px";
9852
this.__computeComplexBottom();
9853
this.__informManager("bottom");
9967
},
9854
},
9968
getButton:function(){return this._button;
9855
_applyWidthLeft:function(value,
9969
}},
9856
old){this.__widthLeft=value==null?"0px":value+"px";
9970
properties:{button:{_fast:true,
9857
this.__computeComplexLeft();
9971
readOnly:true},
9858
this.__informManager("left");
9972
wheelDelta:{_fast:true,
9973
readOnly:true}},
9974
members:{getPageX:qx.core.Variant.select("qx.client",
9975
{"mshtml":function(){return this.getDomEvent().clientX+qx.bom.Viewport.getScrollLeft(window);
9976
},
9859
},
9977
"default":function(){return this.getDomEvent().pageX;
9860
_applyColorTop:function(value,
9978
}}),
9861
old){qx.theme.manager.Color.getInstance().connect(this._changeColorTop,
9979
getPageY:qx.core.Variant.select("qx.client",
9862
this,
9980
{"mshtml":function(){return this.getDomEvent().clientY+qx.bom.Viewport.getScrollTop(window);
9863
value);
9981
},
9864
},
9982
"default":function(){return this.getDomEvent().pageY;
9865
_applyColorRight:function(value,
9983
}}),
9866
old){qx.theme.manager.Color.getInstance().connect(this._changeColorRight,
9984
getClientX:function(){return this.getDomEvent().clientX;
9867
this,
9868
value);
9985
},
9869
},
9986
getClientY:function(){return this.getDomEvent().clientY;
9870
_applyColorBottom:function(value,
9871
old){qx.theme.manager.Color.getInstance().connect(this._changeColorBottom,
9872
this,
9873
value);
9987
},
9874
},
9988
getScreenX:function(){return this.getDomEvent().screenX;
9875
_applyColorLeft:function(value,
9876
old){qx.theme.manager.Color.getInstance().connect(this._changeColorLeft,
9877
this,
9878
value);
9989
},
9879
},
9990
getScreenY:function(){return this.getDomEvent().screenY;
9880
_applyColorInnerTop:function(value,
9881
old){qx.theme.manager.Color.getInstance().connect(this._changeColorInnerTop,
9882
this,
9883
value);
9991
},
9884
},
9992
isLeftButtonPressed:qx.core.Variant.select("qx.client",
9885
_applyColorInnerRight:function(value,
9993
{"mshtml":function(){if(this.getType()=="click"){return true;
9886
old){qx.theme.manager.Color.getInstance().connect(this._changeColorInnerRight,
9994
}else{return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_LEFT;
9887
this,
9995
}},
9888
value);
9996
"default":function(){return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_LEFT;
9997
}}),
9998
isMiddleButtonPressed:function(){return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_MIDDLE;
9999
},
9889
},
10000
isRightButtonPressed:function(){return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_RIGHT;
9890
_applyColorInnerBottom:function(value,
9891
old){qx.theme.manager.Color.getInstance().connect(this._changeColorInnerBottom,
9892
this,
9893
value);
10001
},
9894
},
10002
__buttons:qx.core.Variant.select("qx.client",
9895
_applyColorInnerLeft:function(value,
10003
{"mshtml":{1:"left",
9896
old){qx.theme.manager.Color.getInstance().connect(this._changeColorInnerLeft,
10004
2:"right",
9897
this,
10005
4:"middle"},
9898
value);
10006
"default":{0:"left",
10007
2:"right",
10008
1:"middle"}}),
10009
_computeButton:function(){switch(this.getDomEvent().type){case "click":case "dblclick":return "left";
10010
case "contextmenu":return "right";
10011
default:return this.__buttons[this.getDomEvent().button]||"none";
10012
}},
10013
_computeWheelDelta:qx.core.Variant.select("qx.client",
10014
{"default":function(){return this.getDomEvent().wheelDelta/120;
10015
},
9899
},
10016
"gecko":function(){return -(this.getDomEvent().detail/3);
9900
_applyStyleTop:function(){this.__informManager("top");
10017
}})}});
10018
10019
10020
10021
10022
/* ID: qx.ui.embed.IframeManager */
10023
qx.Class.define("qx.ui.embed.IframeManager",
10024
{type:"singleton",
10025
extend:qx.util.manager.Object,
10026
construct:function(){this.base(arguments);
10027
this._blocked={};
10028
},
9901
},
10029
members:{handleMouseDown:function(evt){var iframeMap=this._blockData=qx.lang.Object.copy(this.getAll());
9902
_applyStyleRight:function(){this.__informManager("right");
10030
for(var key in iframeMap){iframeMap[key].block();
10031
}},
10032
handleMouseUp:function(evt){var iframeMap=this._blockData;
10033
for(var key in iframeMap){iframeMap[key].release();
10034
}}}});
10035
10036
10037
10038
10039
/* ID: qx.ui.layout.CanvasLayout */
10040
qx.Class.define("qx.ui.layout.CanvasLayout",
10041
{extend:qx.ui.core.Parent,
10042
construct:function(){this.base(arguments);
10043
},
9903
},
10044
members:{_createLayoutImpl:function(){return new qx.ui.layout.impl.CanvasLayoutImpl(this);
9904
_applyStyleBottom:function(){this.__informManager("bottom");
10045
}}});
10046
10047
10048
10049
10050
/* ID: qx.ui.layout.impl.LayoutImpl */
10051
qx.Class.define("qx.ui.layout.impl.LayoutImpl",
10052
{extend:qx.core.Object,
10053
construct:function(vWidget){this.base(arguments);
10054
this._widget=vWidget;
10055
},
9905
},
10056
members:{getWidget:function(){return this._widget;
9906
_applyStyleLeft:function(){this.__informManager("left");
10057
},
9907
},
10058
computeChildBoxWidth:function(vChild){return vChild.getWidthValue()||vChild._computeBoxWidthFallback();
9908
_changeColorTop:function(value){this.__colorTop=value;
9909
this.__computeComplexTop();
9910
this.__informManager("top");
10059
},
9911
},
10060
computeChildBoxHeight:function(vChild){return vChild.getHeightValue()||vChild._computeBoxHeightFallback();
9912
_changeColorInnerTop:function(value){this.__colorInnerTop=value;
9913
this.__computeComplexTop();
9914
this.__informManager("top");
10061
},
9915
},
10062
computeChildNeededWidth:function(vChild){var vMinBox=vChild._computedMinWidthTypePercent?null:vChild.getMinWidthValue();
9916
_changeColorRight:function(value){this.__colorRight=value;
10063
var vMaxBox=vChild._computedMaxWidthTypePercent?null:vChild.getMaxWidthValue();
9917
this.__computeComplexRight();
10064
var vBox=(vChild._computedWidthTypePercent||vChild._computedWidthTypeFlex?null:vChild.getWidthValue())||vChild.getPreferredBoxWidth()||0;
9918
this.__informManager("right");
10065
return qx.lang.Number.limit(vBox,
10066
vMinBox,
10067
vMaxBox)+vChild.getMarginLeft()+vChild.getMarginRight();
10068
},
9919
},
10069
computeChildNeededHeight:function(vChild){var vMinBox=vChild._computedMinHeightTypePercent?null:vChild.getMinHeightValue();
9920
_changeColorInnerRight:function(value){this.__colorInnerRight=value;
10070
var vMaxBox=vChild._computedMaxHeightTypePercent?null:vChild.getMaxHeightValue();
9921
this.__computeComplexRight();
10071
var vBox=(vChild._computedHeightTypePercent||vChild._computedHeightTypeFlex?null:vChild.getHeightValue())||vChild.getPreferredBoxHeight()||0;
9922
this.__informManager("right");
10072
return qx.lang.Number.limit(vBox,
10073
vMinBox,
10074
vMaxBox)+vChild.getMarginTop()+vChild.getMarginBottom();
10075
},
9923
},
10076
computeChildrenNeededWidth_max:function(){for(var i=0,
9924
_changeColorBottom:function(value){this.__colorBottom=value;
10077
ch=this.getWidget().getVisibleChildren(),
9925
this.__computeComplexBottom();
10078
chl=ch.length,
9926
this.__informManager("bottom");
10079
maxv=0;i<chl;i++){maxv=Math.max(maxv,
10080
ch[i].getNeededWidth());
10081
}return maxv;
10082
},
9927
},
10083
computeChildrenNeededHeight_max:function(){for(var i=0,
9928
_changeColorInnerBottom:function(value){this.__colorInnerBottom=value;
10084
ch=this.getWidget().getVisibleChildren(),
9929
this.__computeComplexBottom();
10085
chl=ch.length,
9930
this.__informManager("bottom");
10086
maxv=0;i<chl;i++){maxv=Math.max(maxv,
10087
ch[i].getNeededHeight());
10088
}return maxv;
10089
},
9931
},
10090
computeChildrenNeededWidth_sum:function(){for(var i=0,
9932
_changeColorLeft:function(value){this.__colorLeft=value;
10091
ch=this.getWidget().getVisibleChildren(),
9933
this.__computeComplexLeft();
10092
chl=ch.length,
9934
this.__informManager("left");
10093
sumv=0;i<chl;i++){sumv+=ch[i].getNeededWidth();
10094
}return sumv;
10095
},
9935
},
10096
computeChildrenNeededHeight_sum:function(){for(var i=0,
9936
_changeColorInnerLeft:function(value){this.__colorInnerLeft=value;
10097
ch=this.getWidget().getVisibleChildren(),
9937
this.__computeComplexLeft();
10098
chl=ch.length,
9938
this.__informManager("left");
10099
sumv=0;i<chl;i++){sumv+=ch[i].getNeededHeight();
10100
}return sumv;
10101
},
9939
},
10102
computeChildrenNeededWidth:null,
9940
__computeComplexTop:function(){this.__complexTop=this.getWidthTop()===2&&this.__colorInnerTop!=null&&this.__colorTop!=this.__colorInnerTop;
10103
computeChildrenNeededHeight:null,
9941
},
10104
updateSelfOnChildOuterWidthChange:function(vChild){},
9942
__computeComplexRight:function(){this.__complexRight=this.getWidthRight()===2&&this.__colorInnerRight!=null&&this.__colorRight!=this.__colorInnerRight;
10105
updateSelfOnChildOuterHeightChange:function(vChild){},
9943
},
10106
updateChildOnInnerWidthChange:function(vChild){},
9944
__computeComplexBottom:function(){this.__complexBottom=this.getWidthBottom()===2&&this.__colorInnerBottom!=null&&this.__colorBottom!=this.__colorInnerBottom;
10107
updateChildOnInnerHeightChange:function(vChild){},
9945
},
10108
updateSelfOnJobQueueFlush:function(vJobQueue){},
9946
__computeComplexLeft:function(){this.__complexLeft=this.getWidthLeft()===2&&this.__colorInnerLeft!=null&&this.__colorLeft!=this.__colorInnerLeft;
10109
updateChildrenOnJobQueueFlush:function(vJobQueue){},
9947
},
10110
updateChildrenOnAddChild:function(vChild,
9948
__informManager:function(edge){qx.theme.manager.Border.getInstance().updateObjectsEdge(this,
10111
vIndex){},
9949
edge);
10112
updateChildrenOnRemoveChild:function(vChild,
9950
},
10113
vIndex){},
9951
renderTop:qx.core.Variant.select("qx.client",
10114
updateChildrenOnMoveChild:function(vChild,
9952
{"gecko":function(obj){var style=obj._style;
10115
vIndex,
9953
style.borderTopWidth=this.__widthTop||"0px";
10116
vOldIndex){},
9954
style.borderTopColor=this.__colorTop||"";
10117
flushChildrenQueue:function(vChildrenQueue){var vWidget=this.getWidget();
9955
if(this.__complexTop){style.borderTopStyle="solid";
10118
for(var vHashCode in vChildrenQueue){vWidget._layoutChild(vChildrenQueue[vHashCode]);
9956
style.MozBorderTopColors=this.__colorTop+" "+this.__colorInnerTop;
9957
}else{style.borderTopStyle=this.getStyleTop()||"none";
9958
style.MozBorderTopColors="";
10119
}},
9959
}},
10120
layoutChild:function(vChild,
9960
"default":function(obj){var outer=obj._style;
10121
vJobs){},
9961
var inner=obj._innerStyle;
10122
layoutChild_sizeLimitX:qx.core.Variant.select("qx.client",
9962
if(this.__complexTop){if(!inner){obj.prepareEnhancedBorder();
10123
{"mshtml":qx.lang.Function.returnTrue,
9963
inner=obj._innerStyle;
10124
"default":function(vChild,
9964
}outer.borderTopWidth=inner.borderTopWidth="1px";
10125
vJobs){if(vJobs.minWidth){vChild._computedMinWidthTypeNull?vChild._resetRuntimeMinWidth():vChild._renderRuntimeMinWidth(vChild.getMinWidthValue());
9965
outer.borderTopStyle=inner.borderTopStyle="solid";
10126
}else if(vJobs.initial&&!vChild._computedMinWidthTypeNull){vChild._renderRuntimeMinWidth(vChild.getMinWidthValue());
9966
outer.borderTopColor=this.__colorTop;
10127
}
9967
inner.borderTopColor=this.__colorInnerTop;
10128
if(vJobs.maxWidth){vChild._computedMaxWidthTypeNull?vChild._resetRuntimeMaxWidth():vChild._renderRuntimeMaxWidth(vChild.getMaxWidthValue());
9968
}else{outer.borderTopWidth=this.__widthTop||"0px";
10129
}else if(vJobs.initial&&!vChild._computedMaxWidthTypeNull){vChild._renderRuntimeMaxWidth(vChild.getMaxWidthValue());
9969
outer.borderTopStyle=this.getStyleTop()||"none";
10130
}}}),
9970
outer.borderTopColor=this.__colorTop||"";
10131
layoutChild_sizeLimitY:qx.core.Variant.select("qx.client",
9971
if(inner){inner.borderTopWidth=inner.borderTopStyle=inner.borderTopColor="";
10132
{"mshtml":qx.lang.Function.returnTrue,
9972
}}}}),
10133
"default":function(vChild,
9973
renderRight:qx.core.Variant.select("qx.client",
10134
vJobs){if(vJobs.minHeight){vChild._computedMinHeightTypeNull?vChild._resetRuntimeMinHeight():vChild._renderRuntimeMinHeight(vChild.getMinHeightValue());
9974
{"gecko":function(obj){var style=obj._style;
10135
}else if(vJobs.initial&&!vChild._computedMinHeightTypeNull){vChild._renderRuntimeMinHeight(vChild.getMinHeightValue());
9975
style.borderRightWidth=this.__widthRight||"0px";
10136
}
9976
style.borderRightColor=this.__colorRight||"";
10137
if(vJobs.maxHeight){vChild._computedMaxHeightTypeNull?vChild._resetRuntimeMaxHeight():vChild._renderRuntimeMaxHeight(vChild.getMaxHeightValue());
9977
if(this.__complexRight){style.borderRightStyle="solid";
10138
}else if(vJobs.initial&&!vChild._computedMaxHeightTypeNull){vChild._renderRuntimeMaxHeight(vChild.getMaxHeightValue());
9978
style.MozBorderRightColors=this.__colorRight+" "+this.__colorInnerRight;
10139
}}}),
9979
}else{style.borderRightStyle=this.getStyleRight()||"none";
10140
layoutChild_marginX:function(vChild,
9980
style.MozBorderRightColors="";
10141
vJobs){if(vJobs.marginLeft||vJobs.initial){var vValueLeft=vChild.getMarginLeft();
10142
vValueLeft!=null?vChild._renderRuntimeMarginLeft(vValueLeft):vChild._resetRuntimeMarginLeft();
10143
}
10144
if(vJobs.marginRight||vJobs.initial){var vValueRight=vChild.getMarginRight();
10145
vValueRight!=null?vChild._renderRuntimeMarginRight(vValueRight):vChild._resetRuntimeMarginRight();
10146
}},
9981
}},
10147
layoutChild_marginY:function(vChild,
9982
"default":function(obj){var outer=obj._style;
10148
vJobs){if(vJobs.marginTop||vJobs.initial){var vValueTop=vChild.getMarginTop();
9983
var inner=obj._innerStyle;
10149
vValueTop!=null?vChild._renderRuntimeMarginTop(vValueTop):vChild._resetRuntimeMarginTop();
9984
if(this.__complexRight){if(!inner){obj.prepareEnhancedBorder();
10150
}
9985
inner=obj._innerStyle;
10151
if(vJobs.marginBottom||vJobs.initial){var vValueBottom=vChild.getMarginBottom();
9986
}outer.borderRightWidth=inner.borderRightWidth="1px";
10152
vValueBottom!=null?vChild._renderRuntimeMarginBottom(vValueBottom):vChild._resetRuntimeMarginBottom();
9987
outer.borderRightStyle=inner.borderRightStyle="solid";
9988
outer.borderRightColor=this.__colorRight;
9989
inner.borderRightColor=this.__colorInnerRight;
9990
}else{outer.borderRightWidth=this.__widthRight||"0px";
9991
outer.borderRightStyle=this.getStyleRight()||"none";
9992
outer.borderRightColor=this.__colorRight||"";
9993
if(inner){inner.borderRightWidth=inner.borderRightStyle=inner.borderRightColor="";
9994
}}}}),
9995
renderBottom:qx.core.Variant.select("qx.client",
9996
{"gecko":function(obj){var style=obj._style;
9997
style.borderBottomWidth=this.__widthBottom||"0px";
9998
style.borderBottomColor=this.__colorBottom||"";
9999
if(this.__complexBottom){style.borderBottomStyle="solid";
10000
style.MozBorderBottomColors=this.__colorBottom+" "+this.__colorInnerBottom;
10001
}else{style.borderBottomStyle=this.getStyleBottom()||"none";
10002
style.MozBorderBottomColors="";
10153
}},
10003
}},
10154
layoutChild_sizeX_essentialWrapper:function(vChild,
10004
"default":function(obj){var outer=obj._style;
10155
vJobs){return vChild._isWidthEssential()?this.layoutChild_sizeX(vChild,
10005
var inner=obj._innerStyle;
10156
vJobs):vChild._resetRuntimeWidth();
10006
if(this.__complexBottom){if(!inner){obj.prepareEnhancedBorder();
10157
},
10007
inner=obj._innerStyle;
10158
layoutChild_sizeY_essentialWrapper:function(vChild,
10008
}outer.borderBottomWidth=inner.borderBottomWidth="1px";
10159
vJobs){return vChild._isHeightEssential()?this.layoutChild_sizeY(vChild,
10009
outer.borderBottomStyle=inner.borderBottomStyle="solid";
10160
vJobs):vChild._resetRuntimeHeight();
10010
outer.borderBottomColor=this.__colorBottom;
10011
inner.borderBottomColor=this.__colorInnerBottom;
10012
}else{outer.borderBottomWidth=this.__widthBottom||"0px";
10013
outer.borderBottomStyle=this.getStyleBottom()||"none";
10014
outer.borderBottomColor=this.__colorBottom||"";
10015
if(inner){inner.borderBottomWidth=inner.borderBottomStyle=inner.borderBottomColor="";
10016
}}}}),
10017
renderLeft:qx.core.Variant.select("qx.client",
10018
{"gecko":function(obj){var style=obj._style;
10019
style.borderLeftWidth=this.__widthLeft||"0px";
10020
style.borderLeftColor=this.__colorLeft||"";
10021
if(this.__complexLeft){style.borderLeftStyle="solid";
10022
style.MozBorderLeftColors=this.__colorLeft+" "+this.__colorInnerLeft;
10023
}else{style.borderLeftStyle=this.getStyleLeft()||"none";
10024
style.MozBorderLeftColors="";
10161
}},
10025
}},
10162
defer:function(statics,
10026
"default":function(obj){var outer=obj._style;
10163
members){members.computeChildrenNeededWidth=members.computeChildrenNeededWidth_max;
10027
var inner=obj._innerStyle;
10164
members.computeChildrenNeededHeight=members.computeChildrenNeededHeight_max;
10028
if(this.__complexLeft){if(!inner){obj.prepareEnhancedBorder();
10165
},
10029
inner=obj._innerStyle;
10166
destruct:function(){this._disposeFields("_widget");
10030
}outer.borderLeftWidth=inner.borderLeftWidth="1px";
10167
}});
10031
outer.borderLeftStyle=inner.borderLeftStyle="solid";
10032
outer.borderLeftColor=this.__colorLeft;
10033
inner.borderLeftColor=this.__colorInnerLeft;
10034
}else{outer.borderLeftWidth=this.__widthLeft||"0px";
10035
outer.borderLeftStyle=this.getStyleLeft()||"none";
10036
outer.borderLeftColor=this.__colorLeft||"";
10037
if(inner){inner.borderLeftWidth=inner.borderLeftStyle=inner.borderLeftColor="";
10038
}}}})}});
10168
10039
10169
10040
10170
10041
10171
10042
10172
/* ID: qx.lang.Number */
10043
/* ID: qx.theme.manager.Font */
10173
qx.Class.define("qx.lang.Number",
10044
qx.Class.define("qx.theme.manager.Font",
10174
{statics:{isInRange:function(nr,
10045
{type:"singleton",
10175
vmin,
10046
extend:qx.util.manager.Value,
10176
vmax){return nr>=vmin&&nr<=vmax;
10047
properties:{fontTheme:{check:"Theme",
10048
nullable:true,
10049
apply:"_applyFontTheme",
10050
event:"changeFontTheme"}},
10051
members:{resolveDynamic:function(value){return value instanceof qx.ui.core.Font?value:this._dynamic[value];
10177
},
10052
},
10178
isBetweenRange:function(nr,
10053
isDynamic:function(value){return value&&(value instanceof qx.ui.core.Font||this._dynamic[value]!==undefined);
10179
vmin,
10180
vmax){return nr>vmin&&nr<vmax;
10181
},
10054
},
10182
limit:function(nr,
10055
syncFontTheme:function(){this._updateObjects();
10183
vmin,
10056
},
10184
vmax){if(typeof vmax==="number"&&nr>vmax){return vmax;
10057
_applyFontTheme:function(value){var dest=this._dynamic;
10185
}else if(typeof vmin==="number"&&nr<vmin){return vmin;
10058
for(var key in dest){if(dest[key].themed){dest[key].dispose();
10186
}else{return nr;
10059
delete dest[key];
10060
}}
10061
if(value){var source=value.fonts;
10062
var font=qx.ui.core.Font;
10063
for(var key in source){dest[key]=(new font).set(source[key]);
10064
dest[key].themed=true;
10065
}}
10066
if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncFontTheme();
10187
}}}});
10067
}}}});
10188
10068
10189
10069
10190
10070
10191
10071
10192
/* ID: qx.ui.layout.impl.CanvasLayoutImpl */
10072
/* ID: qx.ui.core.Font */
10193
qx.Class.define("qx.ui.layout.impl.CanvasLayoutImpl",
10073
qx.Class.define("qx.ui.core.Font",
10194
{extend:qx.ui.layout.impl.LayoutImpl,
10074
{extend:qx.core.Object,
10195
construct:function(vWidget){this.base(arguments,
10075
construct:function(size,
10196
vWidget);
10076
family){this.base(arguments);
10197
},
10077
if(size!==undefined){this.setSize(size);
10198
members:{computeChildBoxWidth:function(vChild){var vValue=null;
10199
if(vChild._computedLeftTypeNull||vChild._computedRightTypeNull){vValue=vChild.getWidthValue();
10200
}else if(vChild._hasParent){vValue=this.getWidget().getInnerWidth()-vChild.getLeftValue()-vChild.getRightValue();
10201
}return vValue||vChild._computeBoxWidthFallback();
10202
},
10203
computeChildBoxHeight:function(vChild){var vValue=null;
10204
if(vChild._computedTopTypeNull||vChild._computedBottomTypeNull){vValue=vChild.getHeightValue();
10205
}else if(vChild._hasParent){vValue=this.getWidget().getInnerHeight()-vChild.getTopValue()-vChild.getBottomValue();
10206
}return vValue||vChild._computeBoxHeightFallback();
10207
},
10208
computeChildNeededWidth:function(vChild){var vLeft=vChild._computedLeftTypePercent?null:vChild.getLeftValue();
10209
var vRight=vChild._computedRightTypePercent?null:vChild.getRightValue();
10210
var vMinBox=vChild._computedMinWidthTypePercent?null:vChild.getMinWidthValue();
10211
var vMaxBox=vChild._computedMaxWidthTypePercent?null:vChild.getMaxWidthValue();
10212
if(vLeft!=null&&vRight!=null){var vBox=vChild.getPreferredBoxWidth()||0;
10213
}else{var vBox=(vChild._computedWidthTypePercent?null:vChild.getWidthValue())||vChild.getPreferredBoxWidth()||0;
10214
}return qx.lang.Number.limit(vBox,
10215
vMinBox,
10216
vMaxBox)+vLeft+vRight+vChild.getMarginLeft()+vChild.getMarginRight();
10217
},
10218
computeChildNeededHeight:function(vChild){var vTop=vChild._computedTopTypePercent?null:vChild.getTopValue();
10219
var vBottom=vChild._computedBottomTypePercent?null:vChild.getBottomValue();
10220
var vMinBox=vChild._computedMinHeightTypePercent?null:vChild.getMinHeightValue();
10221
var vMaxBox=vChild._computedMaxHeightTypePercent?null:vChild.getMaxHeightValue();
10222
if(vTop!=null&&vBottom!=null){var vBox=vChild.getPreferredBoxHeight()||0;
10223
}else{var vBox=(vChild._computedHeightTypePercent?null:vChild.getHeightValue())||vChild.getPreferredBoxHeight()||0;
10224
}return qx.lang.Number.limit(vBox,
10225
vMinBox,
10226
vMaxBox)+vTop+vBottom+vChild.getMarginTop()+vChild.getMarginBottom();
10227
},
10228
updateChildOnInnerWidthChange:function(vChild){var vUpdatePercent=vChild._recomputePercentX();
10229
var vUpdateRange=vChild._recomputeRangeX();
10230
return vUpdatePercent||vUpdateRange;
10231
},
10232
updateChildOnInnerHeightChange:function(vChild){var vUpdatePercent=vChild._recomputePercentY();
10233
var vUpdateRange=vChild._recomputeRangeY();
10234
return vUpdatePercent||vUpdateRange;
10235
},
10236
layoutChild:function(vChild,
10237
vJobs){this.layoutChild_sizeX_essentialWrapper(vChild,
10238
vJobs);
10239
this.layoutChild_sizeY_essentialWrapper(vChild,
10240
vJobs);
10241
this.layoutChild_sizeLimitX(vChild,
10242
vJobs);
10243
this.layoutChild_sizeLimitY(vChild,
10244
vJobs);
10245
this.layoutChild_locationX(vChild,
10246
vJobs);
10247
this.layoutChild_locationY(vChild,
10248
vJobs);
10249
this.layoutChild_marginX(vChild,
10250
vJobs);
10251
this.layoutChild_marginY(vChild,
10252
vJobs);
10253
},
10254
layoutChild_sizeX:qx.core.Variant.select("qx.client",
10255
{"mshtml|opera|webkit":function(vChild,
10256
vJobs){if(vJobs.initial||vJobs.width||vJobs.minWidth||vJobs.maxWidth||vJobs.left||vJobs.right){if(vChild._computedMinWidthTypeNull&&vChild._computedWidthTypeNull&&vChild._computedMaxWidthTypeNull&&!(!vChild._computedLeftTypeNull&&!vChild._computedRightTypeNull)){vChild._resetRuntimeWidth();
10257
}else{vChild._renderRuntimeWidth(vChild.getBoxWidth());
10258
}}},
10259
"default":function(vChild,
10260
vJobs){if(vJobs.initial||vJobs.width){vChild._computedWidthTypeNull?vChild._resetRuntimeWidth():vChild._renderRuntimeWidth(vChild.getWidthValue());
10261
}}}),
10262
layoutChild_sizeY:qx.core.Variant.select("qx.client",
10263
{"mshtml|opera|webkit":function(vChild,
10264
vJobs){if(vJobs.initial||vJobs.height||vJobs.minHeight||vJobs.maxHeight||vJobs.top||vJobs.bottom){if(vChild._computedMinHeightTypeNull&&vChild._computedHeightTypeNull&&vChild._computedMaxHeightTypeNull&&!(!vChild._computedTopTypeNull&&!vChild._computedBottomTypeNull)){vChild._resetRuntimeHeight();
10265
}else{vChild._renderRuntimeHeight(vChild.getBoxHeight());
10266
}}},
10267
"default":function(vChild,
10268
vJobs){if(vJobs.initial||vJobs.height){vChild._computedHeightTypeNull?vChild._resetRuntimeHeight():vChild._renderRuntimeHeight(vChild.getHeightValue());
10269
}}}),
10270
layoutChild_locationX:function(vChild,
10271
vJobs){var vWidget=this.getWidget();
10272
if(vJobs.initial||vJobs.left||vJobs.parentPaddingLeft){vChild._computedLeftTypeNull?vChild._computedRightTypeNull&&vWidget.getPaddingLeft()>0?vChild._renderRuntimeLeft(vWidget.getPaddingLeft()):vChild._resetRuntimeLeft():vChild._renderRuntimeLeft(vChild.getLeftValue()+vWidget.getPaddingLeft());
10273
}
10078
}
10274
if(vJobs.initial||vJobs.right||vJobs.parentPaddingRight){vChild._computedRightTypeNull?vChild._computedLeftTypeNull&&vWidget.getPaddingRight()>0?vChild._renderRuntimeRight(vWidget.getPaddingRight()):vChild._resetRuntimeRight():vChild._renderRuntimeRight(vChild.getRightValue()+vWidget.getPaddingRight());
10079
if(family!==undefined){this.setFamily(family);
10275
}},
10080
}},
10276
layoutChild_locationY:function(vChild,
10081
statics:{fromString:function(str){var font=new qx.ui.core.Font;
10277
vJobs){var vWidget=this.getWidget();
10082
var parts=str.split(/\s+/);
10278
if(vJobs.initial||vJobs.top||vJobs.parentPaddingTop){vChild._computedTopTypeNull?vChild._computedBottomTypeNull&&vWidget.getPaddingTop()>0?vChild._renderRuntimeTop(vWidget.getPaddingTop()):vChild._resetRuntimeTop():vChild._renderRuntimeTop(vChild.getTopValue()+vWidget.getPaddingTop());
10083
var name=[];
10279
}
10084
var part;
10280
if(vJobs.initial||vJobs.bottom||vJobs.parentPaddingBottom){vChild._computedBottomTypeNull?vChild._computedTopTypeNull&&vWidget.getPaddingBottom()>0?vChild._renderRuntimeBottom(vWidget.getPaddingBottom()):vChild._resetRuntimeBottom():vChild._renderRuntimeBottom(vChild.getBottomValue()+vWidget.getPaddingBottom());
10085
for(var i=0;i<parts.length;i++){switch(part=parts[i]){case "bold":font.setBold(true);
10281
}}}});
10086
break;
10282
10087
case "italic":font.setItalic(true);
10283
10088
break;
10284
10089
case "underline":font.setDecoration("underline");
10285
10090
break;
10286
/* ID: qx.ui.core.ClientDocument */
10091
default:var temp=parseInt(part);
10287
qx.Class.define("qx.ui.core.ClientDocument",
10092
if(temp==part||qx.lang.String.contains(part,
10288
{type:"singleton",
10093
"px")){font.setSize(temp);
10289
extend:qx.ui.layout.CanvasLayout,
10094
}else{name.push(part);
10290
construct:function(){this.base(arguments);
10095
}break;
10291
this._window=window;
10096
}}
10292
this._document=window.document;
10097
if(name.length>0){font.setFamily(name);
10293
this.setElement(this._document.body);
10098
}return font;
10294
this._document.body.style.position="";
10295
if(qx.core.Variant.isSet("qx.client",
10296
"mshtml")&&(qx.core.Client.getInstance().getMajor()<7)){try{document.execCommand("BackgroundImageCache",
10297
false,
10298
true);
10299
}catch(err){}}this._cachedInnerWidth=this._document.body.offsetWidth;
10300
this._cachedInnerHeight=this._document.body.offsetHeight;
10301
this.addEventListener("windowresize",
10302
this._onwindowresize);
10303
this._modalWidgets=[];
10304
this._modalNativeWindow=null;
10305
this.activateFocusRoot();
10306
this.initHideFocus();
10307
this.initSelectable();
10308
qx.event.handler.EventHandler.getInstance().setFocusRoot(this);
10309
},
10099
},
10310
events:{"focus":"qx.event.type.Event",
10100
fromConfig:function(config){var font=new qx.ui.core.Font;
10311
"windowblur":"qx.event.type.Event",
10101
font.set(config);
10312
"windowfocus":"qx.event.type.Event",
10102
return font;
10313
"windowresize":"qx.event.type.Event"},
10314
properties:{appearance:{refine:true,
10315
init:"client-document"},
10316
enableElementFocus:{refine:true,
10317
init:false},
10318
enabled:{refine:true,
10319
init:true},
10320
selectable:{refine:true,
10321
init:false},
10322
hideFocus:{refine:true,
10323
init:true},
10324
globalCursor:{check:"String",
10325
nullable:true,
10326
themeable:true,
10327
apply:"_applyGlobalCursor",
10328
event:"changeGlobalCursor"}},
10329
members:{_applyParent:qx.lang.Function.returnTrue,
10330
getTopLevelWidget:qx.lang.Function.returnThis,
10331
getWindowElement:function(){return this._window;
10332
},
10103
},
10333
getDocumentElement:function(){return this._document;
10104
reset:function(widget){widget.removeStyleProperty("fontFamily");
10105
widget.removeStyleProperty("fontSize");
10106
widget.removeStyleProperty("fontWeight");
10107
widget.removeStyleProperty("fontStyle");
10108
widget.removeStyleProperty("textDecoration");
10334
},
10109
},
10335
getParent:qx.lang.Function.returnNull,
10110
resetElement:function(element){var style=element.style;
10336
getToolTip:qx.lang.Function.returnNull,
10111
style.fontFamily="";
10337
isMaterialized:qx.lang.Function.returnTrue,
10112
style.fontSize="";
10338
isSeeable:qx.lang.Function.returnTrue,
10113
style.fontWeight="";
10339
_isDisplayable:true,
10114
style.fontStyle="";
10340
_hasParent:false,
10115
style.textDecoration="";
10341
_initialLayoutDone:true,
10342
_getBlocker:function(){if(!this._blocker){this._blocker=new qx.ui.core.ClientDocumentBlocker;
10343
this._blocker.addEventListener("mousedown",
10344
this.blockHelper,
10345
this);
10346
this._blocker.addEventListener("mouseup",
10347
this.blockHelper,
10348
this);
10349
this.add(this._blocker);
10350
}return this._blocker;
10351
},
10116
},
10352
blockHelper:function(e){if(this._modalNativeWindow){if(!this._modalNativeWindow.isClosed()){this._modalNativeWindow.focus();
10117
resetStyle:function(style){style.fontFamily="";
10353
}else{this.debug("Window seems to be closed already! => Releasing Blocker");
10118
style.fontSize="";
10354
this.release(this._modalNativeWindow);
10119
style.fontWeight="";
10355
}}},
10120
style.fontStyle="";
10356
block:function(vActiveChild){this._getBlocker().show();
10121
style.textDecoration="";
10357
if(qx.Class.isDefined("qx.ui.window.Window")&&vActiveChild instanceof qx.ui.window.Window){this._modalWidgets.push(vActiveChild);
10358
var vOrigIndex=vActiveChild.getZIndex();
10359
this._getBlocker().setZIndex(vOrigIndex);
10360
vActiveChild.setZIndex(vOrigIndex+1);
10361
}else if(qx.Class.isDefined("qx.client.NativeWindow")&&vActiveChild instanceof qx.client.NativeWindow){this._modalNativeWindow=vActiveChild;
10362
this._getBlocker().setZIndex(1e7);
10363
}},
10364
release:function(vActiveChild){if(vActiveChild){if(qx.Class.isDefined("qx.client.NativeWindow")&&vActiveChild instanceof qx.client.NativeWindow){this._modalNativeWindow=null;
10365
}else{qx.lang.Array.remove(this._modalWidgets,
10366
vActiveChild);
10367
}}var l=this._modalWidgets.length;
10368
if(l==0){this._getBlocker().hide();
10369
}else{var oldActiveChild=this._modalWidgets[l-1];
10370
var o=oldActiveChild.getZIndex();
10371
this._getBlocker().setZIndex(o);
10372
oldActiveChild.setZIndex(o+1);
10373
}},
10122
}},
10374
createStyleElement:function(vCssText){return qx.html.StyleSheet.createElement(vCssText);
10123
properties:{size:{check:"Integer",
10124
nullable:true,
10125
apply:"_applySize"},
10126
family:{check:"Array",
10127
nullable:true,
10128
apply:"_applyFamily"},
10129
bold:{check:"Boolean",
10130
nullable:true,
10131
apply:"_applyBold"},
10132
italic:{check:"Boolean",
10133
nullable:true,
10134
apply:"_applyItalic"},
10135
decoration:{check:["underline",
10136
"line-through",
10137
"overline"],
10138
nullable:true,
10139
apply:"_applyDecoration"}},
10140
members:{__size:null,
10141
__family:null,
10142
__bold:null,
10143
__italic:null,
10144
__decoration:null,
10145
_applySize:function(value,
10146
old){this.__size=value===null?null:value+"px";
10375
},
10147
},
10376
addCssRule:function(vSheet,
10148
_applyFamily:function(value,
10377
vSelector,
10149
old){var family="";
10378
vStyle){return qx.html.StyleSheet.addRule(vSheet,
10150
for(var i=0,
10379
vSelector,
10151
l=value.length;i<l;i++){if(value[i].indexOf(" ")>0){family+='"'+value[i]+'"';
10380
vStyle);
10152
}else{family+=value[i];
10153
}
10154
if(i!=l-1){family+=",";
10155
}}this.__family=family;
10381
},
10156
},
10382
removeCssRule:function(vSheet,
10157
_applyBold:function(value,
10383
vSelector){return qx.html.StyleSheet.removeRule(vSheet,
10158
old){this.__bold=value===null?null:value?"bold":"normal";
10384
vSelector);
10385
},
10159
},
10386
removeAllCssRules:function(vSheet){return qx.html.StyleSheet.removeAllRules(vSheet);
10160
_applyItalic:function(value,
10161
old){this.__italic=value===null?null:value?"italic":"normal";
10387
},
10162
},
10388
_applyGlobalCursor:qx.core.Variant.select("qx.client",
10163
_applyDecoration:function(value,
10389
{"mshtml":function(value,
10164
old){this.__decoration=value===null?null:value;
10390
old){if(value=="pointer"){value="hand";
10391
}
10392
if(old=="pointer"){old="hand";
10393
}var elem,
10394
current;
10395
var list=this._cursorElements;
10396
if(list){for(var i=0,
10397
l=list.length;i<l;i++){elem=list[i];
10398
if(elem.style.cursor==old){elem.style.cursor=elem._oldCursor;
10399
elem._oldCursor=null;
10400
}}}var all=document.all;
10401
var list=this._cursorElements=[];
10402
if(value!=null&&value!=""&&value!="auto"){for(var i=0,
10403
l=all.length;i<l;i++){elem=all[i];
10404
current=elem.style.cursor;
10405
if(current!=null&&current!=""&&current!="auto"){elem._oldCursor=current;
10406
elem.style.cursor=value;
10407
list.push(elem);
10408
}}document.body.style.cursor=value;
10409
}else{document.body.style.cursor="";
10410
}},
10411
"default":function(value,
10412
old){if(!this._globalCursorStyleSheet){this._globalCursorStyleSheet=this.createStyleElement();
10413
}this.removeCssRule(this._globalCursorStyleSheet,
10414
"*");
10415
if(value){this.addCssRule(this._globalCursorStyleSheet,
10416
"*",
10417
"cursor:"+value+" !important");
10418
}}}),
10419
_onwindowresize:function(e){if(qx.Class.isDefined("qx.ui.popup.PopupManager")){qx.ui.popup.PopupManager.getInstance().update();
10420
}this._recomputeInnerWidth();
10421
this._recomputeInnerHeight();
10422
qx.ui.core.Widget.flushGlobalQueues();
10423
},
10165
},
10424
_computeInnerWidth:function(){return this._document.body.offsetWidth;
10166
render:function(widget){widget.setStyleProperty("fontFamily",
10167
this.__family);
10168
widget.setStyleProperty("fontSize",
10169
this.__size);
10170
widget.setStyleProperty("fontWeight",
10171
this.__bold);
10172
widget.setStyleProperty("fontStyle",
10173
this.__italic);
10174
widget.setStyleProperty("textDecoration",
10175
this.__decoration);
10425
},
10176
},
10426
_computeInnerHeight:function(){return this._document.body.offsetHeight;
10177
renderStyle:function(style){style.fontFamily=this.__family||"";
10427
}},
10178
style.fontSize=this.__size||"";
10428
settings:{"qx.enableApplicationLayout":true,
10179
style.fontWeight=this.__bold||"";
10429
"qx.boxModelCorrection":true},
10180
style.fontStyle=this.__italic||"";
10430
defer:function(){if(qx.core.Setting.get("qx.boxModelCorrection")){var boxSizingAttr=qx.core.Client.getInstance().getEngineBoxSizingAttributes();
10181
style.textDecoration=this.__decoration||"";
10431
var borderBoxCss=boxSizingAttr.join(":border-box;")+":border-box;";
10182
},
10432
var contentBoxCss=boxSizingAttr.join(":content-box;")+":content-box;";
10183
renderElement:function(element){var style=element.style;
10433
qx.html.StyleSheet.createElement("html,body { margin:0;border:0;padding:0; } "+"html { border:0 none; } "+"*{"+borderBoxCss+"} "+"img{"+contentBoxCss+"}");
10184
style.fontFamily=this.__family||"";
10434
}
10185
style.fontSize=this.__size||"";
10435
if(qx.core.Setting.get("qx.enableApplicationLayout")){qx.html.StyleSheet.createElement("html,body{width:100%;height:100%;overflow:hidden;}");
10186
style.fontWeight=this.__bold||"";
10436
}},
10187
style.fontStyle=this.__italic||"";
10437
destruct:function(){this._disposeObjects("_blocker");
10188
style.textDecoration=this.__decoration||"";
10438
this._disposeFields("_window",
10189
},
10439
"_document",
10190
generateStyle:function(){return (this.__family?"font-family:"+this.__family.replace(/\"/g,
10440
"_modalWidgets",
10191
"'")+";":"")+(this.__size?"font-size:"+this.__size+";":"")+(this.__weight?"font-weight:"+this.__weight+";":"")+(this.__style?"font-style:"+this.__style+";":"")+(this.__decoration?"text-decoration:"+this.__decoration+";":"");
10441
"_modalNativeWindow",
10192
}}});
10442
"_globalCursorStyleSheet");
10443
}});
10444
10193
10445
10194
10446
10195
10447
10196
10448
/* ID: qx.ui.basic.Terminator */
10197
/* ID: qx.theme.manager.Icon */
10449
qx.Class.define("qx.ui.basic.Terminator",
10198
qx.Class.define("qx.theme.manager.Icon",
10450
{extend:qx.ui.core.Widget,
10199
{type:"singleton",
10451
members:{renderPadding:function(changes){if(changes.paddingLeft){this._renderRuntimePaddingLeft(this.getPaddingLeft());
10200
extend:qx.core.Target,
10452
}
10201
properties:{iconTheme:{check:"Theme",
10453
if(changes.paddingRight){this._renderRuntimePaddingRight(this.getPaddingRight());
10202
nullable:true,
10454
}
10203
apply:"_applyIconTheme",
10455
if(changes.paddingTop){this._renderRuntimePaddingTop(this.getPaddingTop());
10204
event:"changeIconTheme"}},
10456
}
10205
members:{_applyIconTheme:function(value,
10457
if(changes.paddingBottom){this._renderRuntimePaddingBottom(this.getPaddingBottom());
10206
old){if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncIconTheme();
10458
}},
10459
_renderContent:function(){if(this._computedWidthTypePixel){this._cachedPreferredInnerWidth=null;
10460
}else{this._invalidatePreferredInnerWidth();
10461
}if(this._computedHeightTypePixel){this._cachedPreferredInnerHeight=null;
10462
}else{this._invalidatePreferredInnerHeight();
10463
}if(this._initialLayoutDone){this.addToJobQueue("load");
10464
}},
10465
_layoutPost:function(changes){if(changes.initial||changes.load||changes.width||changes.height){this._postApply();
10466
}},
10207
}},
10467
_postApply:qx.lang.Function.returnTrue,
10208
syncIconTheme:function(){var value=this.getIconTheme();
10468
_computeBoxWidthFallback:function(){return this.getPreferredBoxWidth();
10209
var alias=qx.io.Alias.getInstance();
10469
},
10210
value?alias.add("icon",
10470
_computeBoxHeightFallback:function(){return this.getPreferredBoxHeight();
10211
value.icons.uri):alias.remove("icon");
10471
},
10472
_computePreferredInnerWidth:qx.lang.Function.returnZero,
10473
_computePreferredInnerHeight:qx.lang.Function.returnZero,
10474
_isWidthEssential:function(){if(!this._computedLeftTypeNull&&!this._computedRightTypeNull){return true;
10475
}
10476
if(!this._computedWidthTypeNull&&!this._computedWidthTypeAuto){return true;
10477
}
10478
if(!this._computedMinWidthTypeNull&&!this._computedMinWidthTypeAuto){return true;
10479
}
10480
if(!this._computedMaxWidthTypeNull&&!this._computedMaxWidthTypeAuto){return true;
10481
}
10482
if(this._borderElement){return true;
10483
}return false;
10484
},
10485
_isHeightEssential:function(){if(!this._computedTopTypeNull&&!this._computedBottomTypeNull){return true;
10486
}
10487
if(!this._computedHeightTypeNull&&!this._computedHeightTypeAuto){return true;
10488
}
10489
if(!this._computedMinHeightTypeNull&&!this._computedMinHeightTypeAuto){return true;
10490
}
10491
if(!this._computedMaxHeightTypeNull&&!this._computedMaxHeightTypeAuto){return true;
10492
}
10493
if(this._borderElement){return true;
10494
}return false;
10495
}}});
10212
}}});
10496
10213
10497
10214
10498
10215
10499
10216
10500
/* ID: qx.ui.core.ClientDocumentBlocker */
10217
/* ID: qx.io.Alias */
10501
qx.Class.define("qx.ui.core.ClientDocumentBlocker",
10218
qx.Class.define("qx.io.Alias",
10502
{extend:qx.ui.basic.Terminator,
10219
{type:"singleton",
10220
extend:qx.util.manager.Value,
10503
construct:function(){this.base(arguments);
10221
construct:function(){this.base(arguments);
10504
this.initTop();
10222
this._aliases={};
10505
this.initLeft();
10223
this.add("static",
10506
this.initWidth();
10224
qx.core.Setting.get("qx.resourceUri")+"/static");
10507
this.initHeight();
10508
this.initZIndex();
10509
},
10225
},
10510
properties:{appearance:{refine:true,
10226
members:{_preprocess:function(value){var dynamics=this._dynamic;
10511
init:"client-document-blocker"},
10227
if(dynamics[value]===false){return value;
10512
zIndex:{refine:true,
10228
}else if(dynamics[value]===undefined){if(value.charAt(0)==="/"||value.charAt(0)==="."||value.indexOf("http://")===0||value.indexOf("https://")==="0"||value.indexOf("file://")===0){dynamics[value]=false;
10513
init:1e8},
10229
return value;
10514
top:{refine:true,
10230
}var alias=value.substring(0,
10515
init:0},
10231
value.indexOf("/"));
10516
left:{refine:true,
10232
var resolved=this._aliases[alias];
10517
init:0},
10233
if(resolved!==undefined){dynamics[value]=resolved+value.substring(alias.length);
10518
width:{refine:true,
10234
}}return value;
10519
init:"100%"},
10235
},
10520
height:{refine:true,
10236
add:function(alias,
10521
init:"100%"},
10237
base){this._aliases[alias]=base;
10522
display:{refine:true,
10238
var dynamics=this._dynamic;
10523
init:false}},
10239
var reg=this._registry;
10524
members:{getFocusRoot:function(){return null;
10240
var entry;
10241
var paths={};
10242
for(var path in dynamics){if(path.substring(0,
10243
path.indexOf("/"))===alias){dynamics[path]=base+path.substring(alias.length);
10244
paths[path]=true;
10245
}}for(var key in reg){entry=reg[key];
10246
if(paths[entry.value]){entry.callback.call(entry.object,
10247
dynamics[entry.value]);
10248
}}},
10249
remove:function(alias){delete this._aliases[alias];
10250
},
10251
resolve:function(path){if(path!==null){path=this._preprocess(path);
10252
}return this._dynamic[path]||path;
10253
}},
10254
destruct:function(){this._disposeFields("_aliases");
10255
}});
10256
10257
10258
10259
10260
/* ID: qx.theme.manager.Widget */
10261
qx.Class.define("qx.theme.manager.Widget",
10262
{type:"singleton",
10263
extend:qx.core.Target,
10264
properties:{widgetTheme:{check:"Theme",
10265
nullable:true,
10266
apply:"_applyWidgetTheme",
10267
event:"changeWidgetTheme"}},
10268
members:{_applyWidgetTheme:function(value,
10269
old){if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncWidgetTheme();
10270
}},
10271
syncWidgetTheme:function(){var value=this.getWidgetTheme();
10272
var alias=qx.io.Alias.getInstance();
10273
value?alias.add("widget",
10274
value.widgets.uri):alias.remove("widget");
10525
}}});
10275
}}});
10526
10276
10527
10277
Lines 10565-10663 Link Here
10565
if(z1!=z2){return z1-z2;
10315
if(z1!=z2){return z1-z2;
10566
}return 0;
10316
}return 0;
10567
},
10317
},
10568
getFirstWidget:function(parentContainer){return this._getFirst(parentContainer,
10318
getFirstWidget:function(parentContainer){return this._getFirst(parentContainer,
10569
null);
10319
null);
10320
},
10321
getLastWidget:function(parentContainer){return this._getLast(parentContainer,
10322
null);
10323
},
10324
getWidgetAfter:function(parentContainer,
10325
widget){if(parentContainer==widget){return this.getFirstWidget(parentContainer);
10326
}
10327
if(widget.getAnonymous()){widget=widget.getParent();
10328
}
10329
if(widget==null){return [];
10330
}var vAll=[];
10331
this._getAllAfter(parentContainer,
10332
widget,
10333
vAll);
10334
vAll.sort(this.compareTabOrder);
10335
return vAll.length>0?vAll[0]:this.getFirstWidget(parentContainer);
10336
},
10337
getWidgetBefore:function(parentContainer,
10338
widget){if(parentContainer==widget){return this.getLastWidget(parentContainer);
10339
}
10340
if(widget.getAnonymous()){widget=widget.getParent();
10341
}
10342
if(widget==null){return [];
10343
}var vAll=[];
10344
this._getAllBefore(parentContainer,
10345
widget,
10346
vAll);
10347
vAll.sort(this.compareTabOrder);
10348
var len=vAll.length;
10349
return len>0?vAll[len-1]:this.getLastWidget(parentContainer);
10350
},
10351
_getAllAfter:function(parent,
10352
widget,
10353
arr){var children=parent.getChildren();
10354
var child;
10355
var len=children.length;
10356
for(var i=0;i<len;i++){child=children[i];
10357
if(!(child instanceof qx.ui.core.Parent)&&!(child instanceof qx.ui.basic.Terminator)){continue;
10358
}
10359
if(child.isFocusable()&&child.getTabIndex()>0&&this.compareTabOrder(widget,
10360
child)<0){arr.push(children[i]);
10361
}
10362
if(!child.isFocusRoot()&&child instanceof qx.ui.core.Parent){this._getAllAfter(child,
10363
widget,
10364
arr);
10365
}}},
10366
_getAllBefore:function(parent,
10367
widget,
10368
arr){var children=parent.getChildren();
10369
var child;
10370
var len=children.length;
10371
for(var i=0;i<len;i++){child=children[i];
10372
if(!(child instanceof qx.ui.core.Parent)&&!(child instanceof qx.ui.basic.Terminator)){continue;
10373
}
10374
if(child.isFocusable()&&child.getTabIndex()>0&&this.compareTabOrder(widget,
10375
child)>0){arr.push(child);
10376
}
10377
if(!child.isFocusRoot()&&child instanceof qx.ui.core.Parent){this._getAllBefore(child,
10378
widget,
10379
arr);
10380
}}},
10381
_getFirst:function(parent,
10382
firstWidget){var children=parent.getChildren();
10383
var child;
10384
var len=children.length;
10385
for(var i=0;i<len;i++){child=children[i];
10386
if(!(child instanceof qx.ui.core.Parent)&&!(child instanceof qx.ui.basic.Terminator)){continue;
10387
}
10388
if(child.isFocusable()&&child.getTabIndex()>0){if(firstWidget==null||this.compareTabOrder(child,
10389
firstWidget)<0){firstWidget=child;
10390
}}
10391
if(!child.isFocusRoot()&&child instanceof qx.ui.core.Parent){firstWidget=this._getFirst(child,
10392
firstWidget);
10393
}}return firstWidget;
10394
},
10395
_getLast:function(parent,
10396
lastWidget){var children=parent.getChildren();
10397
var child;
10398
var len=children.length;
10399
for(var i=0;i<len;i++){child=children[i];
10400
if(!(child instanceof qx.ui.core.Parent)&&!(child instanceof qx.ui.basic.Terminator)){continue;
10401
}
10402
if(child.isFocusable()&&child.getTabIndex()>0){if(lastWidget==null||this.compareTabOrder(child,
10403
lastWidget)>0){lastWidget=child;
10404
}}
10405
if(!child.isFocusRoot()&&child instanceof qx.ui.core.Parent){lastWidget=this._getLast(child,
10406
lastWidget);
10407
}}return lastWidget;
10408
}},
10409
destruct:function(){this._disposeFields("_attachedWidget");
10410
}});
10411
10412
10413
10414
10415
/* ID: qx.html.Location */
10416
qx.Class.define("qx.html.Location",
10417
{statics:{getPageOuterLeft:function(el){return qx.html.Location.getPageBoxLeft(el)-qx.html.Style.getMarginLeft(el);
10418
},
10419
getPageOuterTop:function(el){return qx.html.Location.getPageBoxTop(el)-qx.html.Style.getMarginTop(el);
10420
},
10421
getPageOuterRight:function(el){return qx.html.Location.getPageBoxRight(el)+qx.html.Style.getMarginRight(el);
10422
},
10423
getPageOuterBottom:function(el){return qx.html.Location.getPageBoxBottom(el)+qx.html.Style.getMarginBottom(el);
10424
},
10425
getClientOuterLeft:function(el){return qx.html.Location.getClientBoxLeft(el)-qx.html.Style.getMarginLeft(el);
10426
},
10427
getClientOuterTop:function(el){return qx.html.Location.getClientBoxTop(el)-qx.html.Style.getMarginTop(el);
10428
},
10429
getClientOuterRight:function(el){return qx.html.Location.getClientBoxRight(el)+qx.html.Style.getMarginRight(el);
10430
},
10431
getClientOuterBottom:function(el){return qx.html.Location.getClientBoxBottom(el)+qx.html.Style.getMarginBottom(el);
10432
},
10433
getClientBoxLeft:qx.core.Variant.select("qx.client",
10434
{"mshtml":function(el){return el.getBoundingClientRect().left;
10435
},
10436
"gecko":function(el){return qx.html.Location.getClientAreaLeft(el)-qx.html.Style.getBorderLeft(el);
10437
},
10438
"default":function(el){var sum=el.offsetLeft;
10439
while(el.tagName.toLowerCase()!="body"){el=el.offsetParent;
10440
sum+=el.offsetLeft-el.scrollLeft;
10441
}return sum;
10442
}}),
10443
getClientBoxTop:qx.core.Variant.select("qx.client",
10444
{"mshtml":function(el){return el.getBoundingClientRect().top;
10445
},
10446
"gecko":function(el){return qx.html.Location.getClientAreaTop(el)-qx.html.Style.getBorderTop(el);
10447
},
10448
"default":function(el){var sum=el.offsetTop;
10449
while(el.tagName.toLowerCase()!="body"){el=el.offsetParent;
10450
sum+=el.offsetTop-el.scrollTop;
10451
}return sum;
10452
}}),
10453
getClientBoxRight:qx.core.Variant.select("qx.client",
10454
{"mshtml":function(el){return el.getBoundingClientRect().right;
10455
},
10456
"default":function(el){return qx.html.Location.getClientBoxLeft(el)+qx.html.Dimension.getBoxWidth(el);
10457
}}),
10458
getClientBoxBottom:qx.core.Variant.select("qx.client",
10459
{"mshtml":function(el){return el.getBoundingClientRect().bottom;
10460
},
10461
"default":function(el){return qx.html.Location.getClientBoxTop(el)+qx.html.Dimension.getBoxHeight(el);
10462
}}),
10463
getPageBoxLeft:qx.core.Variant.select("qx.client",
10464
{"mshtml":function(el){return qx.html.Location.getClientBoxLeft(el)+qx.html.Scroll.getLeftSum(el);
10465
},
10466
"gecko":function(el){return qx.html.Location.getPageAreaLeft(el)-qx.html.Style.getBorderLeft(el);
10467
},
10468
"default":function(el){var sum=el.offsetLeft;
10469
while(el.tagName.toLowerCase()!="body"){el=el.offsetParent;
10470
sum+=el.offsetLeft;
10471
}return sum;
10472
}}),
10473
getPageBoxTop:qx.core.Variant.select("qx.client",
10474
{"mshtml":function(el){return qx.html.Location.getClientBoxTop(el)+qx.html.Scroll.getTopSum(el);
10475
},
10476
"gecko":function(el){return qx.html.Location.getPageAreaTop(el)-qx.html.Style.getBorderTop(el);
10477
},
10478
"default":function(el){var sum=el.offsetTop;
10479
while(el.tagName.toLowerCase()!="body"){el=el.offsetParent;
10480
sum+=el.offsetTop;
10481
}return sum;
10482
}}),
10483
getPageBoxRight:qx.core.Variant.select("qx.client",
10484
{"mshtml":function(el){return qx.html.Location.getClientBoxRight(el)+qx.html.Scroll.getLeftSum(el);
10485
},
10486
"default":function(el){return qx.html.Location.getPageBoxLeft(el)+qx.html.Dimension.getBoxWidth(el);
10487
}}),
10488
getPageBoxBottom:qx.core.Variant.select("qx.client",
10489
{"mshtml":function(el){return qx.html.Location.getClientBoxBottom(el)+qx.html.Scroll.getTopSum(el);
10490
},
10491
"default":function(el){return qx.html.Location.getPageBoxTop(el)+qx.html.Dimension.getBoxHeight(el);
10492
}}),
10493
getClientAreaLeft:qx.core.Variant.select("qx.client",
10494
{"gecko":function(el){return qx.html.Location.getPageAreaLeft(el)-qx.html.Scroll.getLeftSum(el);
10495
},
10496
"default":function(el){return qx.html.Location.getClientBoxLeft(el)+qx.html.Style.getBorderLeft(el);
10497
}}),
10498
getClientAreaTop:qx.core.Variant.select("qx.client",
10499
{"gecko":function(el){return qx.html.Location.getPageAreaTop(el)-qx.html.Scroll.getTopSum(el);
10500
},
10501
"default":function(el){return qx.html.Location.getClientBoxTop(el)+qx.html.Style.getBorderTop(el);
10502
}}),
10503
getClientAreaRight:function(el){return qx.html.Location.getClientAreaLeft(el)+qx.html.Dimension.getAreaWidth(el);
10504
},
10505
getClientAreaBottom:function(el){return qx.html.Location.getClientAreaTop(el)+qx.html.Dimension.getAreaHeight(el);
10506
},
10507
getPageAreaLeft:qx.core.Variant.select("qx.client",
10508
{"gecko":function(el){return el.ownerDocument.getBoxObjectFor(el).x;
10509
},
10510
"default":function(el){return qx.html.Location.getPageBoxLeft(el)+qx.html.Style.getBorderLeft(el);
10511
}}),
10512
getPageAreaTop:qx.core.Variant.select("qx.client",
10513
{"gecko":function(el){return el.ownerDocument.getBoxObjectFor(el).y;
10514
},
10515
"default":function(el){return qx.html.Location.getPageBoxTop(el)+qx.html.Style.getBorderTop(el);
10516
}}),
10517
getPageAreaRight:function(el){return qx.html.Location.getPageAreaLeft(el)+qx.html.Dimension.getAreaWidth(el);
10518
},
10519
getPageAreaBottom:function(el){return qx.html.Location.getPageAreaTop(el)+qx.html.Dimension.getAreaHeight(el);
10520
},
10521
getClientInnerLeft:function(el){return qx.html.Location.getClientAreaLeft(el)+qx.html.Style.getPaddingLeft(el);
10522
},
10523
getClientInnerTop:function(el){return qx.html.Location.getClientAreaTop(el)+qx.html.Style.getPaddingTop(el);
10524
},
10525
getClientInnerRight:function(el){return qx.html.Location.getClientInnerLeft(el)+qx.html.Dimension.getInnerWidth(el);
10526
},
10527
getClientInnerBottom:function(el){return qx.html.Location.getClientInnerTop(el)+qx.html.Dimension.getInnerHeight(el);
10528
},
10529
getPageInnerLeft:function(el){return qx.html.Location.getPageAreaLeft(el)+qx.html.Style.getPaddingLeft(el);
10530
},
10531
getPageInnerTop:function(el){return qx.html.Location.getPageAreaTop(el)+qx.html.Style.getPaddingTop(el);
10532
},
10533
getPageInnerRight:function(el){return qx.html.Location.getPageInnerLeft(el)+qx.html.Dimension.getInnerWidth(el);
10534
},
10535
getPageInnerBottom:function(el){return qx.html.Location.getPageInnerTop(el)+qx.html.Dimension.getInnerHeight(el);
10536
},
10537
getScreenBoxLeft:qx.core.Variant.select("qx.client",
10538
{"gecko":function(el){var sum=0;
10539
var p=el.parentNode;
10540
while(p.nodeType==1){sum+=p.scrollLeft;
10541
p=p.parentNode;
10542
}return el.ownerDocument.getBoxObjectFor(el).screenX-sum;
10543
},
10544
"default":function(el){return qx.html.Location.getScreenDocumentLeft(el)+qx.html.Location.getPageBoxLeft(el);
10545
}}),
10546
getScreenBoxTop:qx.core.Variant.select("qx.client",
10547
{"gecko":function(el){var sum=0;
10548
var p=el.parentNode;
10549
while(p.nodeType==1){sum+=p.scrollTop;
10550
p=p.parentNode;
10551
}return el.ownerDocument.getBoxObjectFor(el).screenY-sum;
10552
},
10553
"default":function(el){return qx.html.Location.getScreenDocumentTop(el)+qx.html.Location.getPageBoxTop(el);
10554
}}),
10555
getScreenBoxRight:function(el){return qx.html.Location.getScreenBoxLeft(el)+qx.html.Dimension.getBoxWidth(el);
10556
},
10557
getScreenBoxBottom:function(el){return qx.html.Location.getScreenBoxTop(el)+qx.html.Dimension.getBoxHeight(el);
10558
},
10559
getScreenOuterLeft:function(el){return qx.html.Location.getScreenBoxLeft(el)-qx.html.Style.getMarginLeft(el);
10560
},
10561
getScreenOuterTop:function(el){return qx.html.Location.getScreenBoxTop(el)-qx.html.Style.getMarginTop(el);
10562
},
10563
getScreenOuterRight:function(el){return qx.html.Location.getScreenBoxRight(el)+qx.html.Style.getMarginRight(el);
10570
},
10564
},
10571
getLastWidget:function(parentContainer){return this._getLast(parentContainer,
10565
getScreenOuterBottom:function(el){return qx.html.Location.getScreenBoxBottom(el)+qx.html.Style.getMarginBottom(el);
10572
null);
10573
},
10566
},
10574
getWidgetAfter:function(parentContainer,
10567
getScreenAreaLeft:function(el){return qx.html.Location.getScreenBoxLeft(el)+qx.html.Dimension.getInsetLeft(el);
10575
widget){if(parentContainer==widget){return this.getFirstWidget(parentContainer);
10576
}
10577
if(widget.getAnonymous()){widget=widget.getParent();
10578
}
10579
if(widget==null){return [];
10580
}var vAll=[];
10581
this._getAllAfter(parentContainer,
10582
widget,
10583
vAll);
10584
vAll.sort(this.compareTabOrder);
10585
return vAll.length>0?vAll[0]:this.getFirstWidget(parentContainer);
10586
},
10568
},
10587
getWidgetBefore:function(parentContainer,
10569
getScreenAreaTop:function(el){return qx.html.Location.getScreenBoxTop(el)+qx.html.Dimension.getInsetTop(el);
10588
widget){if(parentContainer==widget){return this.getLastWidget(parentContainer);
10589
}
10590
if(widget.getAnonymous()){widget=widget.getParent();
10591
}
10592
if(widget==null){return [];
10593
}var vAll=[];
10594
this._getAllBefore(parentContainer,
10595
widget,
10596
vAll);
10597
vAll.sort(this.compareTabOrder);
10598
var len=vAll.length;
10599
return len>0?vAll[len-1]:this.getLastWidget(parentContainer);
10600
},
10570
},
10601
_getAllAfter:function(parent,
10571
getScreenAreaRight:function(el){return qx.html.Location.getScreenBoxRight(el)-qx.html.Dimension.getInsetRight(el);
10602
widget,
10603
arr){var children=parent.getChildren();
10604
var child;
10605
var len=children.length;
10606
for(var i=0;i<len;i++){child=children[i];
10607
if(!(child instanceof qx.ui.core.Parent)&&!(child instanceof qx.ui.basic.Terminator)){continue;
10608
}
10609
if(child.isFocusable()&&child.getTabIndex()>0&&this.compareTabOrder(widget,
10610
child)<0){arr.push(children[i]);
10611
}
10612
if(!child.isFocusRoot()&&child instanceof qx.ui.core.Parent){this._getAllAfter(child,
10613
widget,
10614
arr);
10615
}}},
10616
_getAllBefore:function(parent,
10617
widget,
10618
arr){var children=parent.getChildren();
10619
var child;
10620
var len=children.length;
10621
for(var i=0;i<len;i++){child=children[i];
10622
if(!(child instanceof qx.ui.core.Parent)&&!(child instanceof qx.ui.basic.Terminator)){continue;
10623
}
10624
if(child.isFocusable()&&child.getTabIndex()>0&&this.compareTabOrder(widget,
10625
child)>0){arr.push(child);
10626
}
10627
if(!child.isFocusRoot()&&child instanceof qx.ui.core.Parent){this._getAllBefore(child,
10628
widget,
10629
arr);
10630
}}},
10631
_getFirst:function(parent,
10632
firstWidget){var children=parent.getChildren();
10633
var child;
10634
var len=children.length;
10635
for(var i=0;i<len;i++){child=children[i];
10636
if(!(child instanceof qx.ui.core.Parent)&&!(child instanceof qx.ui.basic.Terminator)){continue;
10637
}
10638
if(child.isFocusable()&&child.getTabIndex()>0){if(firstWidget==null||this.compareTabOrder(child,
10639
firstWidget)<0){firstWidget=child;
10640
}}
10641
if(!child.isFocusRoot()&&child instanceof qx.ui.core.Parent){firstWidget=this._getFirst(child,
10642
firstWidget);
10643
}}return firstWidget;
10644
},
10572
},
10645
_getLast:function(parent,
10573
getScreenAreaBottom:function(el){return qx.html.Location.getScreenBoxBottom(el)-qx.html.Dimension.getInsetBottom(el);
10646
lastWidget){var children=parent.getChildren();
10574
},
10647
var child;
10575
getScreenInnerLeft:function(el){return qx.html.Location.getScreenAreaLeft(el)+qx.html.Style.getPaddingLeft(el);
10648
var len=children.length;
10576
},
10649
for(var i=0;i<len;i++){child=children[i];
10577
getScreenInnerTop:function(el){return qx.html.Location.getScreenAreaTop(el)+qx.html.Style.getPaddingTop(el);
10650
if(!(child instanceof qx.ui.core.Parent)&&!(child instanceof qx.ui.basic.Terminator)){continue;
10578
},
10651
}
10579
getScreenInnerRight:function(el){return qx.html.Location.getScreenAreaRight(el)-qx.html.Style.getPaddingRight(el);
10652
if(child.isFocusable()&&child.getTabIndex()>0){if(lastWidget==null||this.compareTabOrder(child,
10580
},
10653
lastWidget)>0){lastWidget=child;
10581
getScreenInnerBottom:function(el){return qx.html.Location.getScreenAreaBottom(el)-qx.html.Style.getPaddingBottom(el);
10654
}}
10582
},
10655
if(!child.isFocusRoot()&&child instanceof qx.ui.core.Parent){lastWidget=this._getLast(child,
10583
getScreenDocumentLeft:qx.core.Variant.select("qx.client",
10656
lastWidget);
10584
{"gecko":function(el){return qx.html.Location.getScreenOuterLeft(el.ownerDocument.body);
10657
}}return lastWidget;
10585
},
10658
}},
10586
"default":function(el){return el.document.parentWindow.screenLeft;
10659
destruct:function(){this._disposeFields("_attachedWidget");
10587
}}),
10660
}});
10588
getScreenDocumentTop:qx.core.Variant.select("qx.client",
10589
{"gecko":function(el){return qx.html.Location.getScreenOuterTop(el.ownerDocument.body);
10590
},
10591
"default":function(el){return el.document.parentWindow.screenTop;
10592
}}),
10593
getScreenDocumentRight:qx.core.Variant.select("qx.client",
10594
{"gecko":function(el){return qx.html.Location.getScreenOuterRight(el.ownerDocument.body);
10595
},
10596
"default":function(el){}}),
10597
getScreenDocumentBottom:qx.core.Variant.select("qx.client",
10598
{"gecko":function(el){return qx.html.Location.getScreenOuterBottom(el.ownerDocument.body);
10599
},
10600
"default":function(el){}})}});
10601
10602
10603
10604
10605
/* ID: qx.html.Scroll */
10606
qx.Class.define("qx.html.Scroll",
10607
{statics:{getLeftSum:function(el){var sum=0;
10608
var p=el.parentNode;
10609
while(p.nodeType==1){sum+=p.scrollLeft;
10610
p=p.parentNode;
10611
}return sum;
10612
},
10613
getTopSum:function(el){var sum=0;
10614
var p=el.parentNode;
10615
while(p.nodeType==1){sum+=p.scrollTop;
10616
p=p.parentNode;
10617
}return sum;
10618
}}});
10661
10619
10662
10620
10663
10621
Lines 10706-10899 Link Here
10706
10664
10707
10665
10708
10666
10709
/* ID: qx.client.Command */
10667
/* ID: qx.html.Offset */
10710
qx.Class.define("qx.client.Command",
10668
qx.Class.define("qx.html.Offset",
10711
{extend:qx.core.Target,
10669
{statics:{getLeft:qx.core.Variant.select("qx.client",
10712
events:{"execute":"qx.event.type.DataEvent"},
10670
{"gecko":function(el){var val=el.offsetLeft;
10713
construct:function(shortcut,
10671
var pa=el.parentNode;
10714
keyCode){this.base(arguments);
10672
var pose=qx.html.Style.getStyleProperty(el,
10715
this.__modifier={};
10673
"position");
10716
this.__key=null;
10674
var posp=qx.html.Style.getStyleProperty(pa,
10717
if(shortcut!=null){this.setShortcut(shortcut);
10675
"position");
10718
}
10676
if(pose!="absolute"&&pose!="fixed"){val-=qx.html.Style.getBorderLeft(pa);
10719
if(keyCode!=null){this.warn("The use of keyCode in command is deprecated. Use keyIdentifier instead.");
10677
}if(posp!="absolute"&&posp!="fixed"){while(pa){pa=pa.parentNode;
10720
this.setKeyCode(keyCode);
10678
if(!pa||typeof pa.tagName!=="string"){break;
10721
}{if(this.__modifier.Alt&&this.__key&&this.__key.length==1){if((this.__key>="A"&&this.__key<="Z")||(this.__key>="0"&&this.__key<="9")){this.warn("A shortcut containing Alt and a letter or number will not work under OS X!");
10679
}var posi=qx.html.Style.getStyleProperty(pa,
10722
}}};
10680
"position");
10723
qx.event.handler.EventHandler.getInstance().addCommand(this);
10681
if(posi=="absolute"||posi=="fixed"){val-=qx.html.Style.getBorderLeft(pa)+qx.html.Style.getPaddingLeft(pa);
10724
},
10682
break;
10725
properties:{enabled:{init:true,
10683
}}}return val;
10726
check:"Boolean",
10684
},
10727
event:"changeEnabled"},
10685
"default":function(el){return el.offsetLeft;
10728
shortcut:{check:"String",
10686
}}),
10729
apply:"_applyShortcut",
10687
getTop:qx.core.Variant.select("qx.client",
10730
nullable:true},
10688
{"gecko":function(el){var val=el.offsetTop;
10731
keyCode:{check:"Number",
10689
var pa=el.parentNode;
10732
nullable:true},
10690
var pose=qx.html.Style.getStyleProperty(el,
10733
keyIdentifier:{check:"String",
10691
"position");
10734
nullable:true}},
10692
var posp=qx.html.Style.getStyleProperty(pa,
10735
members:{getKeyCode:function(){return this._keyCode;
10693
"position");
10736
},
10694
if(pose!="absolute"&&pose!="fixed"){val-=qx.html.Style.getBorderTop(pa);
10737
setKeyCode:function(code){qx.log.Logger.deprecatedMethodWarning(arguments.callee);
10695
}if(posp!="absolute"&&posp!="fixed"){while(pa){pa=pa.parentNode;
10738
this._keyCode=code;
10696
if(!pa||typeof pa.tagName!=="string"){break;
10739
},
10697
}var posi=qx.html.Style.getStyleProperty(pa,
10740
execute:function(vTarget){if(this.hasEventListeners("execute")){var event=new qx.event.type.DataEvent("execute",
10698
"position");
10741
vTarget);
10699
if(posi=="absolute"||posi=="fixed"){val-=qx.html.Style.getBorderTop(pa)+qx.html.Style.getPaddingTop(pa);
10742
this.dispatchEvent(event,
10700
break;
10743
true);
10701
}}}return val;
10744
}return false;
10702
},
10745
},
10703
"default":function(el){return el.offsetTop;
10746
_applyShortcut:function(value,
10704
}})}});
10747
old){if(value){this.__modifier={};
10748
this.__key=null;
10749
var a=value.split(/[-+\s]+/);
10750
var al=a.length;
10751
for(var i=0;i<al;i++){var identifier=this.__oldKeyNameToKeyIdentifier(a[i]);
10752
switch(identifier){case "Control":case "Shift":case "Meta":case "Alt":this.__modifier[identifier]=true;
10753
break;
10754
case "Unidentified":var msg="Not a valid key name for a command: "+a[i];
10755
this.error(msg);
10756
throw msg;
10757
default:if(this.__key){var msg="You can only specify one non modifier key!";
10758
this.error(msg);
10759
throw msg;
10760
}this.__key=identifier;
10761
}}}return true;
10762
},
10763
matchesKeyEvent:function(e){var key=this.__key||this.getKeyIdentifier();
10764
if(!key&&!this.getKeyCode()){return ;
10765
}if((this.__modifier.Shift&&!e.isShiftPressed())||
10766
(this.__modifier.Control&&!e.isCtrlPressed())||
10767
(this.__modifier.Alt&&!e.isAltPressed())){return false;
10768
}
10769
if(key){if(key==e.getKeyIdentifier()){return true;
10770
}}else{if(this.getKeyCode()==e.getKeyCode()){return true;
10771
}}return false;
10772
},
10773
__oldKeyNameToKeyIdentifierMap:{esc:"Escape",
10774
ctrl:"Control",
10775
print:"PrintScreen",
10776
del:"Delete",
10777
pageup:"PageUp",
10778
pagedown:"PageDown",
10779
numlock:"NumLock",
10780
numpad_0:"0",
10781
numpad_1:"1",
10782
numpad_2:"2",
10783
numpad_3:"3",
10784
numpad_4:"4",
10785
numpad_5:"5",
10786
numpad_6:"6",
10787
numpad_7:"7",
10788
numpad_8:"8",
10789
numpad_9:"9",
10790
numpad_divide:"/",
10791
numpad_multiply:"*",
10792
numpad_minus:"-",
10793
numpad_plus:"+"},
10794
__oldKeyNameToKeyIdentifier:function(keyName){var keyHandler=qx.event.handler.KeyEventHandler.getInstance();
10795
var keyIdentifier="Unidentified";
10796
if(keyHandler.isValidKeyIdentifier(keyName)){return keyName;
10797
}
10798
if(keyName.length==1&&keyName>="a"&&keyName<="z"){return keyName.toUpperCase();
10799
}keyName=keyName.toLowerCase();
10800
if(!qx.event.type.KeyEvent.keys[keyName]){return "Unidentified";
10801
}var keyIdentifier=this.__oldKeyNameToKeyIdentifierMap[keyName];
10802
if(keyIdentifier){return keyIdentifier;
10803
}else{return qx.lang.String.toFirstUp(keyName);
10804
}},
10805
toString:function(){var keyCode=this.getKeyCode();
10806
var key=this.__key||this.getKeyIdentifier();
10807
var str=[];
10808
for(var modifier in this.__modifier){str.push(qx.locale.Key.getKeyName("short",
10809
modifier));
10810
}
10811
if(key){str.push(qx.locale.Key.getKeyName("short",
10812
key));
10813
}
10814
if(keyCode!=null){var vTemp=qx.event.type.KeyEvent.codes[keyCode];
10815
str.push(vTemp?qx.lang.String.toFirstUp(vTemp):String(keyCode));
10816
}return str.join("-");
10817
}},
10818
destruct:function(){var mgr=qx.event.handler.EventHandler.getInstance();
10819
if(mgr){mgr.removeCommand(this);
10820
}this._disposeFields("__modifier",
10821
"__key");
10822
}});
10823
10824
10825
10705
10826
10706
10827
/* ID: qx.locale.Key */
10707
10828
qx.Class.define("qx.locale.Key",
10708
10829
{statics:{getKeyName:function(size,
10709
/* ID: qx.html.ScrollIntoView */
10830
keyIdentifier,
10710
qx.Class.define("qx.html.ScrollIntoView",
10831
locale){if(size!="short"&&size!="full"){throw new Error('format must be one of: "short", "full"');
10711
{statics:{scrollX:function(vElement,
10832
}var key="key_"+size+"_"+keyIdentifier;
10712
vAlignLeft){var vParentWidth,
10833
var localizedKey=new qx.locale.LocalizedString(key,
10713
vParentScrollLeft,
10834
[],
10714
vWidth,
10835
locale);
10715
vHasScroll;
10836
if(localizedKey==key){return qx.locale.Key._keyNames[key]||keyIdentifier;
10716
var vParent=vElement.parentNode;
10837
}else{return localizedKey.toString();
10717
var vOffset=vElement.offsetLeft;
10838
}}},
10718
var vWidth=vElement.offsetWidth;
10839
defer:function(statics,
10719
while(vParent){switch(qx.html.Style.getStyleProperty(vParent,
10840
members,
10720
"overflow")){case "scroll":case "auto":case "-moz-scrollbars-horizontal":vHasScroll=true;
10841
properties){var keyNames={};
10721
break;
10842
var Manager=qx.locale.Manager;
10722
default:switch(qx.html.Style.getStyleProperty(vParent,
10843
keyNames[Manager.marktr("key_short_Backspace")]="Backspace";
10723
"overflowX")){case "scroll":case "auto":vHasScroll=true;
10844
keyNames[Manager.marktr("key_short_Tab")]="Tab";
10724
break;
10845
keyNames[Manager.marktr("key_short_Space")]="Space";
10725
default:vHasScroll=false;
10846
keyNames[Manager.marktr("key_short_Enter")]="Enter";
10726
}}
10847
keyNames[Manager.marktr("key_short_Shift")]="Shift";
10727
if(vHasScroll){vParentWidth=vParent.clientWidth;
10848
keyNames[Manager.marktr("key_short_Control")]="Ctrl";
10728
vParentScrollLeft=vParent.scrollLeft;
10849
keyNames[Manager.marktr("key_short_Alt")]="Alt";
10729
if(vAlignLeft){vParent.scrollLeft=vOffset;
10850
keyNames[Manager.marktr("key_short_CapsLock")]="Caps";
10730
}else if(vAlignLeft==false){vParent.scrollLeft=vOffset+vWidth-vParentWidth;
10851
keyNames[Manager.marktr("key_short_Meta")]="Meta";
10731
}else if(vWidth>vParentWidth||vOffset<vParentScrollLeft){vParent.scrollLeft=vOffset;
10852
keyNames[Manager.marktr("key_short_Escape")]="Esc";
10732
}else if((vOffset+vWidth)>(vParentScrollLeft+vParentWidth)){vParent.scrollLeft=vOffset+vWidth-vParentWidth;
10853
keyNames[Manager.marktr("key_short_Left")]="Left";
10733
}vOffset=vParent.offsetLeft;
10854
keyNames[Manager.marktr("key_short_Up")]="Up";
10734
vWidth=vParent.offsetWidth;
10855
keyNames[Manager.marktr("key_short_Right")]="Right";
10735
}else{vOffset+=vParent.offsetLeft;
10856
keyNames[Manager.marktr("key_short_Down")]="Down";
10736
}
10857
keyNames[Manager.marktr("key_short_PageUp")]="PgUp";
10737
if(vParent.tagName.toLowerCase()=="body"){break;
10858
keyNames[Manager.marktr("key_short_PageDown")]="PgDn";
10738
}vParent=vParent.offsetParent;
10859
keyNames[Manager.marktr("key_short_End")]="End";
10739
}return true;
10860
keyNames[Manager.marktr("key_short_Home")]="Home";
10740
},
10861
keyNames[Manager.marktr("key_short_Insert")]="Ins";
10741
scrollY:function(vElement,
10862
keyNames[Manager.marktr("key_short_Delete")]="Del";
10742
vAlignTop){var vParentHeight,
10863
keyNames[Manager.marktr("key_short_NumLock")]="Num";
10743
vParentScrollTop,
10864
keyNames[Manager.marktr("key_short_PrintScreen")]="Print";
10744
vHeight,
10865
keyNames[Manager.marktr("key_short_Scroll")]="Scroll";
10745
vHasScroll;
10866
keyNames[Manager.marktr("key_short_Pause")]="Pause";
10746
var vParent=vElement.parentNode;
10867
keyNames[Manager.marktr("key_short_Win")]="Win";
10747
var vOffset=vElement.offsetTop;
10868
keyNames[Manager.marktr("key_short_Apps")]="Apps";
10748
var vHeight=vElement.offsetHeight;
10869
keyNames[Manager.marktr("key_full_Backspace")]="Backspace";
10749
while(vParent){switch(qx.html.Style.getStyleProperty(vParent,
10870
keyNames[Manager.marktr("key_full_Tab")]="Tabulator";
10750
"overflow")){case "scroll":case "auto":case "-moz-scrollbars-vertical":vHasScroll=true;
10871
keyNames[Manager.marktr("key_full_Space")]="Space";
10751
break;
10872
keyNames[Manager.marktr("key_full_Enter")]="Enter";
10752
default:switch(qx.html.Style.getStyleProperty(vParent,
10873
keyNames[Manager.marktr("key_full_Shift")]="Shift";
10753
"overflowY")){case "scroll":case "auto":vHasScroll=true;
10874
keyNames[Manager.marktr("key_full_Control")]="Control";
10754
break;
10875
keyNames[Manager.marktr("key_full_Alt")]="Alt";
10755
default:vHasScroll=false;
10876
keyNames[Manager.marktr("key_full_CapsLock")]="CapsLock";
10756
}}
10877
keyNames[Manager.marktr("key_full_Meta")]="Meta";
10757
if(vHasScroll){vParentHeight=vParent.clientHeight;
10878
keyNames[Manager.marktr("key_full_Escape")]="Escape";
10758
vParentScrollTop=vParent.scrollTop;
10879
keyNames[Manager.marktr("key_full_Left")]="Left";
10759
if(vAlignTop){vParent.scrollTop=vOffset;
10880
keyNames[Manager.marktr("key_full_Up")]="Up";
10760
}else if(vAlignTop==false){vParent.scrollTop=vOffset+vHeight-vParentHeight;
10881
keyNames[Manager.marktr("key_full_Right")]="Right";
10761
}else if(vHeight>vParentHeight||vOffset<vParentScrollTop){vParent.scrollTop=vOffset;
10882
keyNames[Manager.marktr("key_full_Down")]="Down";
10762
}else if((vOffset+vHeight)>(vParentScrollTop+vParentHeight)){vParent.scrollTop=vOffset+vHeight-vParentHeight;
10883
keyNames[Manager.marktr("key_full_PageUp")]="PageUp";
10763
}vOffset=vParent.offsetTop;
10884
keyNames[Manager.marktr("key_full_PageDown")]="PageDown";
10764
vHeight=vParent.offsetHeight;
10885
keyNames[Manager.marktr("key_full_End")]="End";
10765
}else{vOffset+=vParent.offsetTop;
10886
keyNames[Manager.marktr("key_full_Home")]="Home";
10766
}
10887
keyNames[Manager.marktr("key_full_Insert")]="Insert";
10767
if(vParent.tagName.toLowerCase()=="body"){break;
10888
keyNames[Manager.marktr("key_full_Delete")]="Delete";
10768
}vParent=vParent.offsetParent;
10889
keyNames[Manager.marktr("key_full_NumLock")]="NumLock";
10769
}return true;
10890
keyNames[Manager.marktr("key_full_PrintScreen")]="PrintScreen";
10770
}}});
10891
keyNames[Manager.marktr("key_full_Scroll")]="Scroll";
10892
keyNames[Manager.marktr("key_full_Pause")]="Pause";
10893
keyNames[Manager.marktr("key_full_Win")]="Win";
10894
keyNames[Manager.marktr("key_full_Apps")]="Apps";
10895
statics._keyNames=keyNames;
10896
}});
10897
10771
10898
10772
10899
10773
Lines 11033-11097 Link Here
11033
if(this.hasEventListeners("load")){this.dispatchEvent(new qx.event.type.Event("load"),
10907
if(this.hasEventListeners("load")){this.dispatchEvent(new qx.event.type.Event("load"),
11034
true);
10908
true);
11035
}},
10909
}},
11036
__onerror:function(){if(this._isLoaded||this._isErroneous){return;
10910
__onerror:function(){if(this._isLoaded||this._isErroneous){return;
11037
}this.debug("Could not load: "+this._source);
10911
}this.debug("Could not load: "+this._source);
11038
this._isLoaded=false;
10912
this._isLoaded=false;
11039
this._isErroneous=true;
10913
this._isErroneous=true;
11040
if(this.hasEventListeners("error")){this.dispatchEvent(new qx.event.type.Event("error"),
10914
if(this.hasEventListeners("error")){this.dispatchEvent(new qx.event.type.Event("error"),
11041
true);
10915
true);
11042
}}},
10916
}}},
11043
destruct:function(){if(this._element){this._element.onload=this._element.onerror=null;
10917
destruct:function(){if(this._element){this._element.onload=this._element.onerror=null;
11044
}this._disposeFields("_element",
10918
}this._disposeFields("_element",
11045
"_isLoaded",
10919
"_isLoaded",
11046
"_isErroneous",
10920
"_isErroneous",
11047
"_isPng");
10921
"_isPng");
10922
}});
10923
10924
10925
10926
10927
/* ID: qx.client.Command */
10928
qx.Class.define("qx.client.Command",
10929
{extend:qx.core.Target,
10930
events:{"execute":"qx.event.type.DataEvent"},
10931
construct:function(shortcut,
10932
keyCode){this.base(arguments);
10933
this.__modifier={};
10934
this.__key=null;
10935
if(shortcut!=null){this.setShortcut(shortcut);
10936
}
10937
if(keyCode!=null){this.warn("The use of keyCode in command is deprecated. Use keyIdentifier instead.");
10938
this.setKeyCode(keyCode);
10939
}{if(this.__modifier.Alt&&this.__key&&this.__key.length==1){if((this.__key>="A"&&this.__key<="Z")||(this.__key>="0"&&this.__key<="9")){this.warn("A shortcut containing Alt and a letter or number will not work under OS X!");
10940
}}};
10941
qx.event.handler.EventHandler.getInstance().addCommand(this);
10942
},
10943
properties:{enabled:{init:true,
10944
check:"Boolean",
10945
event:"changeEnabled"},
10946
shortcut:{check:"String",
10947
apply:"_applyShortcut",
10948
nullable:true},
10949
keyCode:{check:"Number",
10950
nullable:true},
10951
keyIdentifier:{check:"String",
10952
nullable:true}},
10953
members:{getKeyCode:function(){return this._keyCode;
10954
},
10955
setKeyCode:function(code){qx.log.Logger.deprecatedMethodWarning(arguments.callee);
10956
this._keyCode=code;
10957
},
10958
execute:function(vTarget){if(this.hasEventListeners("execute")){var event=new qx.event.type.DataEvent("execute",
10959
vTarget);
10960
this.dispatchEvent(event,
10961
true);
10962
}return false;
10963
},
10964
_applyShortcut:function(value,
10965
old){if(value){this.__modifier={};
10966
this.__key=null;
10967
var a=value.split(/[-+\s]+/);
10968
var al=a.length;
10969
for(var i=0;i<al;i++){var identifier=this.__oldKeyNameToKeyIdentifier(a[i]);
10970
switch(identifier){case "Control":case "Shift":case "Meta":case "Alt":this.__modifier[identifier]=true;
10971
break;
10972
case "Unidentified":var msg="Not a valid key name for a command: "+a[i];
10973
this.error(msg);
10974
throw msg;
10975
default:if(this.__key){var msg="You can only specify one non modifier key!";
10976
this.error(msg);
10977
throw msg;
10978
}this.__key=identifier;
10979
}}}return true;
10980
},
10981
matchesKeyEvent:function(e){var key=this.__key||this.getKeyIdentifier();
10982
if(!key&&!this.getKeyCode()){return ;
10983
}if((this.__modifier.Shift&&!e.isShiftPressed())||
10984
(this.__modifier.Control&&!e.isCtrlPressed())||
10985
(this.__modifier.Alt&&!e.isAltPressed())){return false;
10986
}
10987
if(key){if(key==e.getKeyIdentifier()){return true;
10988
}}else{if(this.getKeyCode()==e.getKeyCode()){return true;
10989
}}return false;
10990
},
10991
__oldKeyNameToKeyIdentifierMap:{esc:"Escape",
10992
ctrl:"Control",
10993
print:"PrintScreen",
10994
del:"Delete",
10995
pageup:"PageUp",
10996
pagedown:"PageDown",
10997
numlock:"NumLock",
10998
numpad_0:"0",
10999
numpad_1:"1",
11000
numpad_2:"2",
11001
numpad_3:"3",
11002
numpad_4:"4",
11003
numpad_5:"5",
11004
numpad_6:"6",
11005
numpad_7:"7",
11006
numpad_8:"8",
11007
numpad_9:"9",
11008
numpad_divide:"/",
11009
numpad_multiply:"*",
11010
numpad_minus:"-",
11011
numpad_plus:"+"},
11012
__oldKeyNameToKeyIdentifier:function(keyName){var keyHandler=qx.event.handler.KeyEventHandler.getInstance();
11013
var keyIdentifier="Unidentified";
11014
if(keyHandler.isValidKeyIdentifier(keyName)){return keyName;
11015
}
11016
if(keyName.length==1&&keyName>="a"&&keyName<="z"){return keyName.toUpperCase();
11017
}keyName=keyName.toLowerCase();
11018
if(!qx.event.type.KeyEvent.keys[keyName]){return "Unidentified";
11019
}var keyIdentifier=this.__oldKeyNameToKeyIdentifierMap[keyName];
11020
if(keyIdentifier){return keyIdentifier;
11021
}else{return qx.lang.String.toFirstUp(keyName);
11022
}},
11023
toString:function(){var keyCode=this.getKeyCode();
11024
var key=this.__key||this.getKeyIdentifier();
11025
var str=[];
11026
for(var modifier in this.__modifier){str.push(qx.locale.Key.getKeyName("short",
11027
modifier));
11028
}
11029
if(key){str.push(qx.locale.Key.getKeyName("short",
11030
key));
11031
}
11032
if(keyCode!=null){var vTemp=qx.event.type.KeyEvent.codes[keyCode];
11033
str.push(vTemp?qx.lang.String.toFirstUp(vTemp):String(keyCode));
11034
}return str.join("-");
11035
}},
11036
destruct:function(){var mgr=qx.event.handler.EventHandler.getInstance();
11037
if(mgr){mgr.removeCommand(this);
11038
}this._disposeFields("__modifier",
11039
"__key");
11048
}});
11040
}});
11049
11041
11050
11042
11051
11043
11052
11044
11053
/* ID: qx.application.Gui */
11045
/* ID: qx.locale.Key */
11054
qx.Class.define("qx.application.Gui",
11046
qx.Class.define("qx.locale.Key",
11055
{extend:qx.core.Target,
11047
{statics:{getKeyName:function(size,
11056
implement:qx.application.IApplication,
11048
keyIdentifier,
11057
properties:{uiReady:{check:"Boolean",
11049
locale){if(size!="short"&&size!="full"){throw new Error('format must be one of: "short", "full"');
11058
init:false}},
11050
}var key="key_"+size+"_"+keyIdentifier;
11059
members:{main:function(){qx.ui.core.Widget.initScrollbarWidth();
11051
var localizedKey=new qx.locale.LocalizedString(key,
11060
qx.theme.manager.Meta.getInstance().initialize();
11052
[],
11061
qx.event.handler.EventHandler.getInstance();
11053
locale);
11062
qx.ui.core.ClientDocument.getInstance();
11054
if(localizedKey==key){return qx.locale.Key._keyNames[key]||keyIdentifier;
11063
qx.client.Timer.once(this._preload,
11055
}else{return localizedKey.toString();
11064
this,
11056
}}},
11065
0);
11057
defer:function(statics,
11066
},
11058
members,
11067
close:function(){},
11059
properties){var keyNames={};
11068
terminate:function(){},
11060
var Manager=qx.locale.Manager;
11069
_preload:function(){this.debug("preloading visible images...");
11061
keyNames[Manager.marktr("key_short_Backspace")]="Backspace";
11070
this.__preloader=new qx.io.image.PreloaderSystem(qx.io.image.Manager.getInstance().getVisibleImages(),
11062
keyNames[Manager.marktr("key_short_Tab")]="Tab";
11071
this._preloaderDone,
11063
keyNames[Manager.marktr("key_short_Space")]="Space";
11072
this);
11064
keyNames[Manager.marktr("key_short_Enter")]="Enter";
11073
this.__preloader.start();
11065
keyNames[Manager.marktr("key_short_Shift")]="Shift";
11074
},
11066
keyNames[Manager.marktr("key_short_Control")]="Ctrl";
11075
_preloaderDone:function(){this.setUiReady(true);
11067
keyNames[Manager.marktr("key_short_Alt")]="Alt";
11076
this.__preloader.dispose();
11068
keyNames[Manager.marktr("key_short_CapsLock")]="Caps";
11077
this.__preloader=null;
11069
keyNames[Manager.marktr("key_short_Meta")]="Meta";
11078
var start=(new Date).valueOf();
11070
keyNames[Manager.marktr("key_short_Escape")]="Esc";
11079
qx.ui.core.Widget.flushGlobalQueues();
11071
keyNames[Manager.marktr("key_short_Left")]="Left";
11080
this.info("render runtime: "+(new Date-start)+"ms");
11072
keyNames[Manager.marktr("key_short_Up")]="Up";
11081
qx.event.handler.EventHandler.getInstance().attachEvents();
11073
keyNames[Manager.marktr("key_short_Right")]="Right";
11082
qx.client.Timer.once(this._postload,
11074
keyNames[Manager.marktr("key_short_Down")]="Down";
11083
this,
11075
keyNames[Manager.marktr("key_short_PageUp")]="PgUp";
11084
100);
11076
keyNames[Manager.marktr("key_short_PageDown")]="PgDn";
11085
},
11077
keyNames[Manager.marktr("key_short_End")]="End";
11086
_postload:function(){this.debug("preloading hidden images...");
11078
keyNames[Manager.marktr("key_short_Home")]="Home";
11087
this.__postloader=new qx.io.image.PreloaderSystem(qx.io.image.Manager.getInstance().getHiddenImages(),
11079
keyNames[Manager.marktr("key_short_Insert")]="Ins";
11088
this._postloaderDone,
11080
keyNames[Manager.marktr("key_short_Delete")]="Del";
11089
this);
11081
keyNames[Manager.marktr("key_short_NumLock")]="Num";
11090
this.__postloader.start();
11082
keyNames[Manager.marktr("key_short_PrintScreen")]="Print";
11091
},
11083
keyNames[Manager.marktr("key_short_Scroll")]="Scroll";
11092
_postloaderDone:function(){this.__postloader.dispose();
11084
keyNames[Manager.marktr("key_short_Pause")]="Pause";
11093
this.__postloader=null;
11085
keyNames[Manager.marktr("key_short_Win")]="Win";
11094
}}});
11086
keyNames[Manager.marktr("key_short_Apps")]="Apps";
11087
keyNames[Manager.marktr("key_full_Backspace")]="Backspace";
11088
keyNames[Manager.marktr("key_full_Tab")]="Tabulator";
11089
keyNames[Manager.marktr("key_full_Space")]="Space";
11090
keyNames[Manager.marktr("key_full_Enter")]="Enter";
11091
keyNames[Manager.marktr("key_full_Shift")]="Shift";
11092
keyNames[Manager.marktr("key_full_Control")]="Control";
11093
keyNames[Manager.marktr("key_full_Alt")]="Alt";
11094
keyNames[Manager.marktr("key_full_CapsLock")]="CapsLock";
11095
keyNames[Manager.marktr("key_full_Meta")]="Meta";
11096
keyNames[Manager.marktr("key_full_Escape")]="Escape";
11097
keyNames[Manager.marktr("key_full_Left")]="Left";
11098
keyNames[Manager.marktr("key_full_Up")]="Up";
11099
keyNames[Manager.marktr("key_full_Right")]="Right";
11100
keyNames[Manager.marktr("key_full_Down")]="Down";
11101
keyNames[Manager.marktr("key_full_PageUp")]="PageUp";
11102
keyNames[Manager.marktr("key_full_PageDown")]="PageDown";
11103
keyNames[Manager.marktr("key_full_End")]="End";
11104
keyNames[Manager.marktr("key_full_Home")]="Home";
11105
keyNames[Manager.marktr("key_full_Insert")]="Insert";
11106
keyNames[Manager.marktr("key_full_Delete")]="Delete";
11107
keyNames[Manager.marktr("key_full_NumLock")]="NumLock";
11108
keyNames[Manager.marktr("key_full_PrintScreen")]="PrintScreen";
11109
keyNames[Manager.marktr("key_full_Scroll")]="Scroll";
11110
keyNames[Manager.marktr("key_full_Pause")]="Pause";
11111
keyNames[Manager.marktr("key_full_Win")]="Win";
11112
keyNames[Manager.marktr("key_full_Apps")]="Apps";
11113
statics._keyNames=keyNames;
11114
}});
11095
11115
11096
11116
11097
11117
Lines 15193-15291 Link Here
15193
15213
15194
15214
15195
15215
15196
15216
15197
/* ID: qx.ui.popup.ToolTipManager */
15217
/* ID: qx.ui.popup.ToolTipManager */
15198
qx.Class.define("qx.ui.popup.ToolTipManager",
15218
qx.Class.define("qx.ui.popup.ToolTipManager",
15199
{type:"singleton",
15219
{type:"singleton",
15200
extend:qx.util.manager.Object,
15220
extend:qx.util.manager.Object,
15201
properties:{currentToolTip:{check:"qx.ui.popup.ToolTip",
15221
properties:{currentToolTip:{check:"qx.ui.popup.ToolTip",
15202
nullable:true,
15222
nullable:true,
15203
apply:"_applyCurrentToolTip"}},
15223
apply:"_applyCurrentToolTip"}},
15204
members:{_applyCurrentToolTip:function(value,
15224
members:{_applyCurrentToolTip:function(value,
15205
old){if(old&&old.contains(value)){return;
15225
old){if(old&&old.contains(value)){return;
15206
}if(old&&!old.isDisposed()){old.hide();
15226
}if(old&&!old.isDisposed()){old.hide();
15207
old._stopShowTimer();
15227
old._stopShowTimer();
15208
old._stopHideTimer();
15228
old._stopHideTimer();
15209
}if(value){value._startShowTimer();
15229
}if(value){value._startShowTimer();
15210
}},
15230
}},
15211
handleMouseOver:function(e){var vTarget=e.getTarget();
15231
handleMouseOver:function(e){var vTarget=e.getTarget();
15212
var vToolTip;
15232
var vToolTip;
15213
if(!(vTarget instanceof qx.ui.core.Widget)&&vTarget.nodeType==1){vTarget=qx.event.handler.EventHandler.getTargetObject(vTarget);
15233
if(!(vTarget instanceof qx.ui.core.Widget)&&vTarget.nodeType==1){vTarget=qx.event.handler.EventHandler.getTargetObject(vTarget);
15214
}while(vTarget!=null&&!(vToolTip=vTarget.getToolTip())){vTarget=vTarget.getParent();
15234
}while(vTarget!=null&&!(vToolTip=vTarget.getToolTip())){vTarget=vTarget.getParent();
15215
}if(vToolTip!=null){vToolTip.setBoundToWidget(vTarget);
15235
}if(vToolTip!=null){vToolTip.setBoundToWidget(vTarget);
15216
}this.setCurrentToolTip(vToolTip);
15236
}this.setCurrentToolTip(vToolTip);
15217
},
15218
handleMouseOut:function(e){var vTarget=e.getTarget();
15219
var vRelatedTarget=e.getRelatedTarget();
15220
var vToolTip=this.getCurrentToolTip();
15221
if(vToolTip&&(vRelatedTarget==vToolTip||vToolTip.contains(vRelatedTarget))){return;
15222
}if(vRelatedTarget&&vTarget&&vTarget.contains(vRelatedTarget)){return;
15223
}if(vToolTip&&!vRelatedTarget){this.setCurrentToolTip(null);
15224
}},
15225
handleFocus:function(e){var vTarget=e.getTarget();
15226
var vToolTip=vTarget.getToolTip();
15227
if(vToolTip!=null){vToolTip.setBoundToWidget(vTarget);
15228
this.setCurrentToolTip(vToolTip);
15229
}},
15230
handleBlur:function(e){var vTarget=e.getTarget();
15231
if(!vTarget){return;
15232
}var vToolTip=this.getCurrentToolTip();
15233
if(vToolTip&&vToolTip==vTarget.getToolTip()){this.setCurrentToolTip(null);
15234
}}}});
15235
15236
15237
15238
15239
/* ID: qx.ui.pageview.AbstractPageView */
15240
qx.Class.define("qx.ui.pageview.AbstractPageView",
15241
{type:"abstract",
15242
extend:qx.ui.layout.BoxLayout,
15243
construct:function(vBarClass,
15244
vPaneClass){this.base(arguments);
15245
this._bar=new vBarClass;
15246
this._pane=new vPaneClass;
15247
this.add(this._bar,
15248
this._pane);
15249
},
15250
members:{getPane:function(){return this._pane;
15251
},
15252
getBar:function(){return this._bar;
15253
}},
15254
destruct:function(){this._disposeObjects("_bar",
15255
"_pane");
15256
}});
15257
15258
15259
15260
15261
/* ID: qx.ui.pageview.tabview.TabView */
15262
qx.Class.define("qx.ui.pageview.tabview.TabView",
15263
{extend:qx.ui.pageview.AbstractPageView,
15264
construct:function(){this.base(arguments,
15265
qx.ui.pageview.tabview.Bar,
15266
qx.ui.pageview.tabview.Pane);
15267
},
15268
properties:{appearance:{refine:true,
15269
init:"tab-view"},
15270
orientation:{refine:true,
15271
init:"vertical"},
15272
alignTabsToLeft:{check:"Boolean",
15273
init:true,
15274
apply:"_applyAlignTabsToLeft"},
15275
placeBarOnTop:{check:"Boolean",
15276
init:true,
15277
apply:"_applyPlaceBarOnTop"}},
15278
members:{_applyAlignTabsToLeft:function(value,
15279
old){var vBar=this._bar;
15280
vBar.setHorizontalChildrenAlign(value?"left":"right");
15281
vBar._addChildrenToStateQueue();
15282
},
15237
},
15283
_applyPlaceBarOnTop:function(value,
15238
handleMouseOut:function(e){var vTarget=e.getTarget();
15284
old){var vBar=this._bar;
15239
var vRelatedTarget=e.getRelatedTarget();
15285
if(value){vBar.moveSelfToBegin();
15240
var vToolTip=this.getCurrentToolTip();
15286
}else{vBar.moveSelfToEnd();
15241
if(vToolTip&&(vRelatedTarget==vToolTip||vToolTip.contains(vRelatedTarget))){return;
15287
}vBar._addChildrenToStateQueue();
15242
}if(vRelatedTarget&&vTarget&&vTarget.contains(vRelatedTarget)){return;
15288
}}});
15243
}if(vToolTip&&!vRelatedTarget){this.setCurrentToolTip(null);
15244
}},
15245
handleFocus:function(e){var vTarget=e.getTarget();
15246
var vToolTip=vTarget.getToolTip();
15247
if(vToolTip!=null){vToolTip.setBoundToWidget(vTarget);
15248
this.setCurrentToolTip(vToolTip);
15249
}},
15250
handleBlur:function(e){var vTarget=e.getTarget();
15251
if(!vTarget){return;
15252
}var vToolTip=this.getCurrentToolTip();
15253
if(vToolTip&&vToolTip==vTarget.getToolTip()){this.setCurrentToolTip(null);
15254
}}}});
15289
15255
15290
15256
15291
15257
Lines 15424-15454 Link Here
15424
15390
15425
15391
15426
15392
15427
/* ID: qx.ui.pageview.AbstractPane */
15428
qx.Class.define("qx.ui.pageview.AbstractPane",
15429
{type:"abstract",
15430
extend:qx.ui.layout.CanvasLayout});
15431
15432
15433
15434
15435
/* ID: qx.ui.pageview.tabview.Pane */
15436
qx.Class.define("qx.ui.pageview.tabview.Pane",
15437
{extend:qx.ui.pageview.AbstractPane,
15438
construct:function(){this.base(arguments);
15439
this.initZIndex();
15440
this.initHeight();
15441
},
15442
properties:{appearance:{refine:true,
15443
init:"tab-view-pane"},
15444
zIndex:{refine:true,
15445
init:1},
15446
height:{refine:true,
15447
init:"1*"}}});
15448
15449
15450
15451
15452
/* ID: qx.ui.pageview.AbstractButton */
15393
/* ID: qx.ui.pageview.AbstractButton */
15453
qx.Class.define("qx.ui.pageview.AbstractButton",
15394
qx.Class.define("qx.ui.pageview.AbstractButton",
15454
{type:"abstract",
15395
{type:"abstract",
Lines 15642-15647 Link Here
15642
15583
15643
15584
15644
15585
15586
/* ID: qx.ui.pageview.AbstractPane */
15587
qx.Class.define("qx.ui.pageview.AbstractPane",
15588
{type:"abstract",
15589
extend:qx.ui.layout.CanvasLayout});
15590
15591
15592
15593
15594
/* ID: qx.ui.pageview.tabview.Pane */
15595
qx.Class.define("qx.ui.pageview.tabview.Pane",
15596
{extend:qx.ui.pageview.AbstractPane,
15597
construct:function(){this.base(arguments);
15598
this.initZIndex();
15599
this.initHeight();
15600
},
15601
properties:{appearance:{refine:true,
15602
init:"tab-view-pane"},
15603
zIndex:{refine:true,
15604
init:1},
15605
height:{refine:true,
15606
init:"1*"}}});
15607
15608
15609
15610
15611
/* ID: qx.ui.pageview.AbstractPageView */
15612
qx.Class.define("qx.ui.pageview.AbstractPageView",
15613
{type:"abstract",
15614
extend:qx.ui.layout.BoxLayout,
15615
construct:function(vBarClass,
15616
vPaneClass){this.base(arguments);
15617
this._bar=new vBarClass;
15618
this._pane=new vPaneClass;
15619
this.add(this._bar,
15620
this._pane);
15621
},
15622
members:{getPane:function(){return this._pane;
15623
},
15624
getBar:function(){return this._bar;
15625
}},
15626
destruct:function(){this._disposeObjects("_bar",
15627
"_pane");
15628
}});
15629
15630
15631
15632
15633
/* ID: qx.ui.pageview.tabview.TabView */
15634
qx.Class.define("qx.ui.pageview.tabview.TabView",
15635
{extend:qx.ui.pageview.AbstractPageView,
15636
construct:function(){this.base(arguments,
15637
qx.ui.pageview.tabview.Bar,
15638
qx.ui.pageview.tabview.Pane);
15639
},
15640
properties:{appearance:{refine:true,
15641
init:"tab-view"},
15642
orientation:{refine:true,
15643
init:"vertical"},
15644
alignTabsToLeft:{check:"Boolean",
15645
init:true,
15646
apply:"_applyAlignTabsToLeft"},
15647
placeBarOnTop:{check:"Boolean",
15648
init:true,
15649
apply:"_applyPlaceBarOnTop"}},
15650
members:{_applyAlignTabsToLeft:function(value,
15651
old){var vBar=this._bar;
15652
vBar.setHorizontalChildrenAlign(value?"left":"right");
15653
vBar._addChildrenToStateQueue();
15654
},
15655
_applyPlaceBarOnTop:function(value,
15656
old){var vBar=this._bar;
15657
if(value){vBar.moveSelfToBegin();
15658
}else{vBar.moveSelfToEnd();
15659
}vBar._addChildrenToStateQueue();
15660
}}});
15661
15662
15663
15664
15645
/* ID: qx.ui.toolbar.Button */
15665
/* ID: qx.ui.toolbar.Button */
15646
qx.Class.define("qx.ui.toolbar.Button",
15666
qx.Class.define("qx.ui.toolbar.Button",
15647
{extend:qx.ui.form.Button,
15667
{extend:qx.ui.form.Button,
Lines 15690-15709 Link Here
15690
15710
15691
15711
15692
15712
15693
/* ID: qx.ui.toolbar.PartHandle */
15694
qx.Class.define("qx.ui.toolbar.PartHandle",
15695
{extend:qx.ui.layout.CanvasLayout,
15696
construct:function(){this.base(arguments);
15697
var l=new qx.ui.basic.Terminator;
15698
l.setAppearance("toolbar-part-handle-line");
15699
this.add(l);
15700
},
15701
properties:{appearance:{refine:true,
15702
init:"toolbar-part-handle"}}});
15703
15704
15705
15706
15707
/* ID: qx.ui.toolbar.MenuButton */
15713
/* ID: qx.ui.toolbar.MenuButton */
15708
qx.Class.define("qx.ui.toolbar.MenuButton",
15714
qx.Class.define("qx.ui.toolbar.MenuButton",
15709
{extend:qx.ui.toolbar.Button,
15715
{extend:qx.ui.toolbar.Button,
Lines 15821-15826 Link Here
15821
15827
15822
15828
15823
15829
15830
/* ID: qx.ui.toolbar.PartHandle */
15831
qx.Class.define("qx.ui.toolbar.PartHandle",
15832
{extend:qx.ui.layout.CanvasLayout,
15833
construct:function(){this.base(arguments);
15834
var l=new qx.ui.basic.Terminator;
15835
l.setAppearance("toolbar-part-handle-line");
15836
this.add(l);
15837
},
15838
properties:{appearance:{refine:true,
15839
init:"toolbar-part-handle"}}});
15840
15841
15842
15843
15824
/* ID: qx.ui.toolbar.ToolBar */
15844
/* ID: qx.ui.toolbar.ToolBar */
15825
qx.Class.define("qx.ui.toolbar.ToolBar",
15845
qx.Class.define("qx.ui.toolbar.ToolBar",
15826
{extend:qx.ui.layout.HorizontalBoxLayout,
15846
{extend:qx.ui.layout.HorizontalBoxLayout,
Lines 15928-15947 Link Here
15928
15948
15929
15949
15930
15950
15931
/* ID: qx.ui.toolbar.Separator */
15932
qx.Class.define("qx.ui.toolbar.Separator",
15933
{extend:qx.ui.layout.CanvasLayout,
15934
construct:function(){this.base(arguments);
15935
var l=new qx.ui.basic.Terminator;
15936
l.setAppearance("toolbar-separator-line");
15937
this.add(l);
15938
},
15939
properties:{appearance:{refine:true,
15940
init:"toolbar-separator"}}});
15941
15942
15943
15944
15945
/* ID: qx.ui.toolbar.RadioButton */
15951
/* ID: qx.ui.toolbar.RadioButton */
15946
qx.Class.define("qx.ui.toolbar.RadioButton",
15952
qx.Class.define("qx.ui.toolbar.RadioButton",
15947
{extend:qx.ui.toolbar.CheckBox,
15953
{extend:qx.ui.toolbar.CheckBox,
Lines 15977-15982 Link Here
15977
15983
15978
15984
15979
15985
15986
/* ID: qx.ui.toolbar.Separator */
15987
qx.Class.define("qx.ui.toolbar.Separator",
15988
{extend:qx.ui.layout.CanvasLayout,
15989
construct:function(){this.base(arguments);
15990
var l=new qx.ui.basic.Terminator;
15991
l.setAppearance("toolbar-separator-line");
15992
this.add(l);
15993
},
15994
properties:{appearance:{refine:true,
15995
init:"toolbar-separator"}}});
15996
15997
15998
15999
15980
/* ID: qx.ui.form.CheckBox */
16000
/* ID: qx.ui.form.CheckBox */
15981
qx.Class.define("qx.ui.form.CheckBox",
16001
qx.Class.define("qx.ui.form.CheckBox",
15982
{extend:qx.ui.basic.Atom,
16002
{extend:qx.ui.basic.Atom,
Lines 16104-16435 Link Here
16104
return this.base(arguments,
16124
return this.base(arguments,
16105
value,
16125
value,
16106
old);
16126
old);
16107
}},
16127
}},
16108
defer:function(statics,
16128
defer:function(statics,
16109
members){members.getBoxWidth=members.getPreferredBoxWidth;
16129
members){members.getBoxWidth=members.getPreferredBoxWidth;
16110
members.getBoxHeight=members.getPreferredBoxHeight;
16130
members.getBoxHeight=members.getPreferredBoxHeight;
16111
members.getInnerWidth=members.getPreferredBoxWidth;
16131
members.getInnerWidth=members.getPreferredBoxWidth;
16112
members.getInnerHeight=members.getPreferredBoxHeight;
16132
members.getInnerHeight=members.getPreferredBoxHeight;
16113
}});
16133
}});
16114
16134
16115
16135
16116
16136
16117
16137
16118
/* ID: qx.ui.form.Spinner */
16138
/* ID: qx.ui.form.ComboBox */
16119
qx.Class.define("qx.ui.form.Spinner",
16139
qx.Class.define("qx.ui.form.ComboBox",
16120
{extend:qx.ui.layout.HorizontalBoxLayout,
16140
{extend:qx.ui.layout.HorizontalBoxLayout,
16121
construct:function(vMin,
16141
construct:function(){this.base(arguments);
16122
vValue,
16142
var l=this._list=new qx.ui.form.List;
16123
vMax){this.base(arguments);
16143
l.setAppearance("combo-box-list");
16124
if(qx.core.Variant.isSet("qx.client",
16144
l.setTabIndex(-1);
16125
"mshtml")){this.setStyleProperty("fontSize",
16145
l.setEdge(0);
16126
"0px");
16146
var m=this._manager=this._list.getManager();
16127
}this._textfield=new qx.ui.form.TextField;
16147
m.setMultiSelection(false);
16128
this._textfield.setBorder(null);
16148
m.setDragSelection(false);
16129
this._textfield.setWidth("1*");
16149
var p=this._popup=new qx.ui.popup.Popup;
16130
this._textfield.setAllowStretchY(true);
16150
p.setAppearance("combo-box-popup");
16131
this._textfield.setHeight(null);
16151
p.setRestrictToPageLeft(-100000);
16132
this._textfield.setLiveUpdate(true);
16152
p.setRestrictToPageRight(-100000);
16133
this._textfield.setVerticalAlign("middle");
16153
p.setAutoHide(false);
16134
this._textfield.setAppearance("spinner-text-field");
16154
p.setHeight("auto");
16135
this.add(this._textfield);
16155
p.add(l);
16136
this._buttonlayout=new qx.ui.layout.VerticalBoxLayout;
16156
var f=this._field=new qx.ui.form.TextField;
16137
this._buttonlayout.setWidth("auto");
16157
f.setAppearance("combo-box-text-field");
16138
this.add(this._buttonlayout);
16158
f.setTabIndex(-1);
16139
this._upbutton=new qx.ui.basic.Image;
16159
f.setWidth("1*");
16140
this._upbutton.setAppearance("spinner-button-up");
16160
f.setAllowStretchY(true);
16141
this._upbutton.setHeight("1*");
16161
f.setHeight(null);
16142
this._buttonlayout.add(this._upbutton);
16162
this.add(f);
16143
this._downbutton=new qx.ui.basic.Image;
16163
var b=this._button=new qx.ui.basic.Atom;
16144
this._downbutton.setAppearance("spinner-button-down");
16164
b.setAppearance("combo-box-button");
16145
this._downbutton.setHeight("1*");
16165
b.setAllowStretchY(true);
16146
this._buttonlayout.add(this._downbutton);
16166
b.setTabIndex(-1);
16147
this._timer=new qx.client.Timer(this.getInterval());
16167
b.setHeight(null);
16148
this.setManager(new qx.util.range.Range());
16168
this.add(b);
16149
this.initWrap();
16169
this.addEventListener("mousedown",
16150
this.addEventListener("keypress",
16170
this._onmousedown);
16151
this._onkeypress,
16171
this.addEventListener("mouseup",
16152
this);
16172
this._onmouseup);
16153
this.addEventListener("keydown",
16173
this.addEventListener("click",
16154
this._onkeydown,
16174
this._onclick);
16155
this);
16175
this.addEventListener("mouseover",
16156
this.addEventListener("keyup",
16176
this._onmouseover);
16157
this._onkeyup,
16158
this);
16159
this.addEventListener("mousewheel",
16177
this.addEventListener("mousewheel",
16160
this._onmousewheel,
16178
this._onmousewheel);
16161
this);
16179
this.addEventListener("keydown",
16162
this._textfield.addEventListener("changeValue",
16180
this._onkeydown);
16163
this._ontextchange,
16181
this.addEventListener("keypress",
16182
this._onkeypress);
16183
this.addEventListener("keyinput",
16184
this._onkeyinput);
16185
this.addEventListener("beforeDisappear",
16186
this._onbeforedisappear);
16187
this._popup.addEventListener("appear",
16188
this._onpopupappear,
16164
this);
16189
this);
16165
this._textfield.addEventListener("input",
16190
this._field.addEventListener("input",
16166
this._oninput,
16191
this._oninput,
16167
this);
16192
this);
16168
this._textfield.addEventListener("blur",
16193
qx.locale.Manager.getInstance().addEventListener("changeLocale",
16169
this._onblur,
16194
this._onlocalechange,
16170
this);
16171
this._upbutton.addEventListener("mousedown",
16172
this._onmousedown,
16173
this);
16174
this._downbutton.addEventListener("mousedown",
16175
this._onmousedown,
16176
this);
16195
this);
16177
this._timer.addEventListener("interval",
16196
var vDoc=qx.ui.core.ClientDocument.getInstance();
16178
this._oninterval,
16197
vDoc.addEventListener("windowblur",
16198
this._testClosePopup,
16179
this);
16199
this);
16180
if(vMin!=null){this.setMin(vMin);
16200
this.remapChildrenHandlingTo(l);
16181
}
16201
this.initEditable();
16182
if(vMax!=null){this.setMax(vMax);
16202
this.initTabIndex();
16183
}
16184
if(vValue!=null){this.setValue(vValue);
16185
}this._checkValue=this.__checkValue;
16186
this._numberFormat=null;
16187
this.initWidth();
16203
this.initWidth();
16188
this.initHeight();
16204
this.initHeight();
16189
this._last_value="";
16205
this.initMinWidth();
16190
},
16206
},
16191
events:{"change":"qx.event.type.DataEvent"},
16207
events:{"beforeInitialOpen":"qx.event.type.Event"},
16192
properties:{appearance:{refine:true,
16208
properties:{appearance:{refine:true,
16193
init:"spinner"},
16209
init:"combo-box"},
16210
allowStretchY:{refine:true,
16211
init:false},
16194
width:{refine:true,
16212
width:{refine:true,
16195
init:60},
16213
init:120},
16196
height:{refine:true,
16214
height:{refine:true,
16197
init:22},
16215
init:"auto"},
16198
incrementAmount:{check:"Number",
16216
minWidth:{refine:true,
16199
init:1,
16217
init:40},
16200
apply:"_applyIncrementAmount"},
16218
tabIndex:{refine:true,
16201
wheelIncrementAmount:{check:"Number",
16202
init:1},
16219
init:1},
16203
pageIncrementAmount:{check:"Number",
16204
init:10},
16205
interval:{check:"Integer",
16206
init:100},
16207
firstInterval:{check:"Integer",
16208
init:500},
16209
minTimer:{check:"Integer",
16210
init:20},
16211
timerDecrease:{check:"Integer",
16212
init:2},
16213
amountGrowth:{check:"Number",
16214
init:1.01},
16215
wrap:{check:"Boolean",
16216
init:false,
16217
apply:"_applyWrap"},
16218
editable:{check:"Boolean",
16220
editable:{check:"Boolean",
16219
init:true,
16221
apply:"_applyEditable",
16220
apply:"_applyEditable"},
16222
event:"changeEditable",
16221
manager:{check:"qx.util.range.IRange",
16223
init:false},
16222
apply:"_applyManager",
16224
selected:{check:"qx.ui.form.ListItem",
16223
dispose:true},
16225
nullable:true,
16224
checkValueFunction:{apply:"_applyCheckValueFunction"},
16226
apply:"_applySelected",
16225
numberFormat:{check:"qx.util.format.NumberFormat",
16227
event:"changeSelected"},
16226
apply:"_applyNumberFormat"},
16228
value:{check:"String",
16227
selectTextOnInteract:{check:"Boolean",
16229
nullable:true,
16228
init:true}},
16230
apply:"_applyValue",
16229
members:{_applyIncrementAmount:function(value,
16231
event:"changeValue"},
16230
old){this._computedIncrementAmount=value;
16232
pagingInterval:{check:"Integer",
16233
init:10}},
16234
members:{getManager:function(){return this._manager;
16235
},
16236
getPopup:function(){return this._popup;
16237
},
16238
getList:function(){return this._list;
16239
},
16240
getField:function(){return this._field;
16241
},
16242
getButton:function(){return this._button;
16243
},
16244
_applySelected:function(value,
16245
old){this._fromSelected=true;
16246
if(!this._fromValue){this.setValue(value?value.getLabel().toString():"");
16247
}this._manager.setLeadItem(value);
16248
this._manager.setAnchorItem(value);
16249
if(value){this._manager.setSelectedItem(value);
16250
}else{this._manager.deselectAll();
16251
}delete this._fromSelected;
16252
},
16253
_applyValue:function(value,
16254
old){this._fromValue=true;
16255
if(!this._fromInput){if(this._field.getValue()==value){this._field.setValue(null);
16256
}this._field.setValue(value);
16257
}delete this._fromValue;
16231
},
16258
},
16232
_applyEditable:function(value,
16259
_applyEditable:function(value,
16233
old){if(this._textfield){this._textfield.setReadOnly(!value);
16260
old){var f=this._field;
16234
}},
16261
f.setReadOnly(!value);
16235
_applyWrap:function(value,
16262
f.setCursor(value?null:"default");
16236
old){this.getManager().setWrap(value);
16263
f.setSelectable(value);
16237
this._onchange();
16238
},
16264
},
16239
_applyManager:function(value,
16265
_oldSelected:null,
16240
old){if(old){old.removeEventListener("change",
16266
_openPopup:function(){var p=this._popup;
16241
this._onchange,
16267
var el=this.getElement();
16242
this);
16268
if(!p.isCreated()){this.createDispatchEvent("beforeInitialOpen");
16243
}
16269
}
16244
if(value){value.addEventListener("change",
16270
if(this._list.getChildrenLength()==0){return;
16245
this._onchange,
16271
}p.positionRelativeTo(el,
16246
this);
16272
1,
16247
}this._onchange();
16273
qx.html.Dimension.getBoxHeight(el));
16274
p.setWidth(this.getBoxWidth()-2);
16275
p.setParent(this.getTopLevelWidget());
16276
p.show();
16277
this._oldSelected=this.getSelected();
16278
this.setCapture(true);
16248
},
16279
},
16249
_applyCheckValueFunction:function(value,
16280
_closePopup:function(){this._popup.hide();
16250
old){this._checkValue=value;
16281
this.setCapture(false);
16251
},
16282
},
16252
_applyNumberFormat:function(value,
16283
_testClosePopup:function(){if(this._popup.isSeeable()){this._closePopup();
16253
old){this._numberFormat=value;
16284
}},
16254
this.getManager().setPrecision(value.getMaximumFractionDigits());
16285
_togglePopup:function(){this._popup.isSeeable()?this._closePopup():this._openPopup();
16255
this._onchange();
16256
},
16286
},
16257
_computePreferredInnerWidth:function(){return 50;
16287
_onpopupappear:function(e){var vSelItem=this.getSelected();
16288
if(vSelItem){vSelItem.scrollIntoView();
16289
}},
16290
_oninput:function(e){this._fromInput=true;
16291
this.setValue(this._field.getComputedValue());
16292
var vSelected=this.getSelected();
16293
if(vSelected&&vSelected.getLabel()!=this.getValue()){this.resetSelected();
16294
}delete this._fromInput;
16258
},
16295
},
16259
_computePreferredInnerHeight:function(){return 14;
16296
_onbeforedisappear:function(e){this._testClosePopup();
16260
},
16297
},
16261
_onkeypress:function(e){var vIdentifier=e.getKeyIdentifier();
16298
_onlocalechange:function(e){var selected=this.getSelected();
16262
if(vIdentifier=="Enter"&&!e.isAltPressed()){this._checkValue(true,
16299
this._applySelected(selected,
16263
false);
16300
selected);
16264
if(this.getSelectTextOnInteract()){this._textfield.selectAll();
16301
},
16265
}}else{switch(vIdentifier){case "Up":case "Down":case "Left":case "Right":case "Shift":case "Control":case "Alt":case "Escape":case "Delete":case "Backspace":case "Insert":case "Home":case "End":case "PageUp":case "PageDown":case "NumLock":case "Tab":break;
16302
_onmousedown:function(e){if(!e.isLeftButtonPressed()){return;
16266
default:if((vIdentifier>="0"&&vIdentifier<="9")||(vIdentifier=='-')){return;
16303
}var vTarget=e.getTarget();
16267
}
16304
switch(vTarget){case this._field:if(this.getEditable()){break;
16268
if(this._numberFormat){var locale=this._numberFormat._locale;
16305
}case this._button:this._button.addState("pressed");
16269
if((vIdentifier==qx.locale.Number.getGroupSeparator(locale))||(vIdentifier==qx.locale.Number.getDecimalSeparator(locale)))return;
16306
this._togglePopup();
16270
}if(e.getModifiers()==0){e.preventDefault();
16307
this.setCapture(true);
16271
}}}},
16272
_onkeydown:function(e){var vIdentifier=e.getKeyIdentifier();
16273
if(this._intervalIncrease==null){switch(vIdentifier){case "Up":case "Down":this._intervalIncrease=vIdentifier=="Up";
16274
this._intervalMode="single";
16275
this._resetIncrements();
16276
this._checkValue(true,
16277
false);
16278
this._increment();
16279
this._timer.startWith(this.getFirstInterval());
16280
break;
16281
case "PageUp":case "PageDown":this._intervalIncrease=vIdentifier=="PageUp";
16282
this._intervalMode="page";
16283
this._resetIncrements();
16284
this._checkValue(true,
16285
false);
16286
this._pageIncrement();
16287
this._timer.startWith(this.getFirstInterval());
16288
break;
16308
break;
16309
default:break;
16310
}e.stopPropagation();
16311
},
16312
_onclick:function(e){if(!e.isLeftButtonPressed()){return;
16313
}var vTarget=e.getTarget();
16314
switch(vTarget){case this._field:case this._button:case this:case this._list:break;
16315
default:if(vTarget instanceof qx.ui.form.ListItem&&vTarget.getParent()==this._list){this._list._onmousedown(e);
16316
this.setSelected(this._list.getSelectedItem());
16317
this._closePopup();
16318
this.setFocused(true);
16319
}else if(this._popup.isSeeable()){this._popup.hide();
16320
this.setCapture(false);
16289
}}},
16321
}}},
16290
_onkeyup:function(e){if(this._intervalIncrease!=null){switch(e.getKeyIdentifier()){case "Up":case "Down":case "PageUp":case "PageDown":this._timer.stop();
16322
_onmouseup:function(e){this._button.removeState("pressed");
16291
this._intervalIncrease=null;
16323
if(!this._popup.isSeeable()){this.setCapture(false);
16292
this._intervalMode=null;
16324
}},
16325
_onmouseover:function(e){var vTarget=e.getTarget();
16326
if(vTarget instanceof qx.ui.form.ListItem){var vManager=this._manager;
16327
vManager.deselectAll();
16328
vManager.setLeadItem(vTarget);
16329
vManager.setAnchorItem(vTarget);
16330
vManager.setSelectedItem(vTarget);
16331
}},
16332
_onmousewheel:function(e){if(!this._popup.isSeeable()){var toSelect;
16333
var isSelected=this.getSelected();
16334
if(e.getWheelDelta()<0){toSelect=isSelected?this._manager.getNext(isSelected):this._manager.getFirst();
16335
}else{toSelect=isSelected?this._manager.getPrevious(isSelected):this._manager.getLast();
16336
}
16337
if(toSelect){this.setSelected(toSelect);
16338
}}else{var vTarget=e.getTarget();
16339
if(vTarget!=this&&vTarget.getParent()!=this._list){this._popup.hide();
16340
this.setCapture(false);
16293
}}},
16341
}}},
16294
_onmousedown:function(e){if(!e.isLeftButtonPressed()){return;
16342
_onkeydown:function(e){var vManager=this._manager;
16295
}this._checkValue(true);
16343
var vVisible=this._popup.isSeeable();
16296
var vButton=e.getCurrentTarget();
16344
switch(e.getKeyIdentifier()){case "Enter":if(vVisible){this.setSelected(this._manager.getSelectedItem());
16297
vButton.addState("pressed");
16345
this._closePopup();
16298
vButton.addEventListener("mouseup",
16346
this.setFocused(true);
16299
this._onmouseup,
16347
}else{this._openPopup();
16300
this);
16348
}e.stopPropagation();
16301
vButton.addEventListener("mouseout",
16349
return;
16302
this._onmouseup,
16350
case "Escape":if(vVisible){vManager.setLeadItem(this._oldSelected);
16303
this);
16351
vManager.setAnchorItem(this._oldSelected);
16304
this._intervalIncrease=vButton==this._upbutton;
16352
vManager.setSelectedItem(this._oldSelected);
16305
this._resetIncrements();
16353
this._field.setValue(this._oldSelected?this._oldSelected.getLabel():"");
16306
this._increment();
16354
this._closePopup();
16307
if(this.getSelectTextOnInteract()){this._textfield.selectAll();
16355
this.setFocused(true);
16308
}this._timer.setInterval(this.getFirstInterval());
16356
e.stopPropagation();
16309
this._timer.start();
16357
}return;
16358
case "Down":if(e.isAltPressed()){this._togglePopup();
16359
return;
16360
}break;
16361
}},
16362
_onkeypress:function(e){var vVisible=this._popup.isSeeable();
16363
var vManager=this._manager;
16364
switch(e.getKeyIdentifier()){case "PageUp":if(!vVisible){var vPrevious;
16365
var vTemp=this.getSelected();
16366
if(vTemp){var vInterval=this.getPagingInterval();
16367
do{vPrevious=vTemp;
16368
}while(--vInterval&&(vTemp=vManager.getPrevious(vPrevious)));
16369
}else{vPrevious=vManager.getLast();
16370
}this.setSelected(vPrevious);
16371
return;
16372
}break;
16373
case "PageDown":if(!vVisible){var vNext;
16374
var vTemp=this.getSelected();
16375
if(vTemp){var vInterval=this.getPagingInterval();
16376
do{vNext=vTemp;
16377
}while(--vInterval&&(vTemp=vManager.getNext(vNext)));
16378
}else{vNext=vManager.getFirst();
16379
}this.setSelected(vNext||null);
16380
return;
16381
}break;
16382
}if(!this.isEditable()||vVisible){this._list._onkeypress(e);
16383
}},
16384
_onkeyinput:function(e){var vVisible=this._popup.isSeeable();
16385
if(!this.isEditable()||vVisible){this._list._onkeyinput(e);
16386
}},
16387
_visualizeBlur:function(){this.getField()._visualizeBlur();
16388
this.removeState("focused");
16310
},
16389
},
16311
_onmouseup:function(e){var vButton=e.getCurrentTarget();
16390
_visualizeFocus:function(){this.getField()._visualizeFocus();
16312
vButton.removeState("pressed");
16391
this.getField().selectAll();
16313
vButton.removeEventListener("mouseup",
16392
this.addState("focused");
16314
this._onmouseup,
16393
}},
16394
destruct:function(){if(this._popup&&!qx.core.Object.inGlobalDispose()){this._popup.setParent(null);
16395
}var vDoc=qx.ui.core.ClientDocument.getInstance();
16396
vDoc.removeEventListener("windowblur",
16397
this._testClosePopup,
16315
this);
16398
this);
16316
vButton.removeEventListener("mouseout",
16399
var vMgr=qx.locale.Manager.getInstance();
16317
this._onmouseup,
16400
vMgr.removeEventListener("changeLocale",
16401
this._onlocalechange,
16318
this);
16402
this);
16319
if(this.getSelectTextOnInteract()){this._textfield.selectAll();
16403
this._disposeObjects("_popup",
16320
}this._textfield.setFocused(true);
16404
"_list",
16321
this._timer.stop();
16405
"_manager",
16322
this._intervalIncrease=null;
16406
"_field",
16323
},
16407
"_button");
16324
_onmousewheel:function(e){this._checkValue(true);
16408
}});
16325
if(this.getManager().incrementValue){this.getManager().incrementValue(this.getWheelIncrementAmount()*e.getWheelDelta());
16409
16326
}else{var value=this.getManager().getValue()+(this.getWheelIncrementAmount()*e.getWheelDelta());
16410
16327
value=this.getManager().limit(value);
16411
16328
this.getManager().setValue(value);
16412
16329
}this._textfield.selectAll();
16413
/* ID: qx.ui.form.List */
16414
qx.Class.define("qx.ui.form.List",
16415
{extend:qx.ui.layout.VerticalBoxLayout,
16416
construct:function(){this.base(arguments);
16417
this._manager=new qx.ui.selection.SelectionManager(this);
16418
this.addEventListener("mouseover",
16419
this._onmouseover);
16420
this.addEventListener("mousedown",
16421
this._onmousedown);
16422
this.addEventListener("mouseup",
16423
this._onmouseup);
16424
this.addEventListener("click",
16425
this._onclick);
16426
this.addEventListener("dblclick",
16427
this._ondblclick);
16428
this.addEventListener("keydown",
16429
this._onkeydown);
16430
this.addEventListener("keypress",
16431
this._onkeypress);
16432
this.addEventListener("keyinput",
16433
this._onkeyinput);
16434
this.initOverflow();
16435
this.initTabIndex();
16330
},
16436
},
16331
_ontextchange:function(e){this._last_value=e.getOldValue();
16437
properties:{appearance:{refine:true,
16438
init:"list"},
16439
overflow:{refine:true,
16440
init:"hidden"},
16441
tabIndex:{refine:true,
16442
init:1},
16443
enableInlineFind:{check:"Boolean",
16444
init:true},
16445
markLeadingItem:{check:"Boolean",
16446
init:false}},
16447
members:{_pressedString:"",
16448
getManager:function(){return this._manager;
16332
},
16449
},
16333
_oninput:function(e){this._checkValue(true,
16450
getListItemTarget:function(vItem){while(vItem!=null&&vItem.getParent()!=this){vItem=vItem.getParent();
16334
true);
16451
}return vItem;
16335
},
16452
},
16336
_onchange:function(e){var vValue=this.getManager().getValue();
16453
getSelectedItem:function(){return this.getSelectedItems()[0]||null;
16337
if(this._numberFormat){this._textfield.setValue(this._numberFormat.format(vValue));
16338
}else{this._textfield.setValue(String(vValue));
16339
}
16340
if(vValue==this.getMin()&&!this.getWrap()){this._downbutton.removeState("pressed");
16341
this._downbutton.setEnabled(false);
16342
this._timer.stop();
16343
}else{this._downbutton.resetEnabled();
16344
}
16345
if(vValue==this.getMax()&&!this.getWrap()){this._upbutton.removeState("pressed");
16346
this._upbutton.setEnabled(false);
16347
this._timer.stop();
16348
}else{this._upbutton.resetEnabled();
16349
}this.createDispatchDataEvent("change",
16350
vValue);
16351
},
16454
},
16352
_onblur:function(e){this._checkValue(false);
16455
getSelectedItems:function(){return this._manager.getSelectedItems();
16353
},
16456
},
16354
setValue:function(nValue){this.getManager().setValue(this.getManager().limit(nValue));
16457
_onmouseover:function(e){var vItem=this.getListItemTarget(e.getTarget());
16458
if(vItem){this._manager.handleMouseOver(vItem,
16459
e);
16460
}},
16461
_onmousedown:function(e){var vItem=this.getListItemTarget(e.getTarget());
16462
if(vItem){this._manager.handleMouseDown(vItem,
16463
e);
16464
}},
16465
_onmouseup:function(e){var vItem=this.getListItemTarget(e.getTarget());
16466
if(vItem){this._manager.handleMouseUp(vItem,
16467
e);
16468
}},
16469
_onclick:function(e){var vItem=this.getListItemTarget(e.getTarget());
16470
if(vItem){this._manager.handleClick(vItem,
16471
e);
16472
}},
16473
_ondblclick:function(e){var vItem=this.getListItemTarget(e.getTarget());
16474
if(vItem){this._manager.handleDblClick(vItem,
16475
e);
16476
}},
16477
_onkeydown:function(e){if(e.getKeyIdentifier()=="Enter"&&!e.isAltPressed()){var items=this.getSelectedItems();
16478
for(var i=0;i<items.length;i++){items[i].createDispatchEvent("action");
16479
}}},
16480
_onkeypress:function(e){this._manager.handleKeyPress(e);
16355
},
16481
},
16356
getValue:function(){this._checkValue(true);
16482
_lastKeyPress:0,
16357
return this.getManager().getValue();
16483
_onkeyinput:function(e){if(!this.getEnableInlineFind()){return;
16484
}if(((new Date).valueOf()-this._lastKeyPress)>1000){this._pressedString="";
16485
}this._pressedString+=String.fromCharCode(e.getCharCode());
16486
var matchedItem=this.findString(this._pressedString,
16487
null);
16488
if(matchedItem){var oldVal=this._manager._getChangeValue();
16489
var oldFireChange=this._manager.getFireChange();
16490
this._manager.setFireChange(false);
16491
this._manager._deselectAll();
16492
this._manager.setItemSelected(matchedItem,
16493
true);
16494
this._manager.setAnchorItem(matchedItem);
16495
this._manager.setLeadItem(matchedItem);
16496
matchedItem.scrollIntoView();
16497
this._manager.setFireChange(oldFireChange);
16498
if(oldFireChange&&this._manager._hasChanged(oldVal)){this._manager._dispatchChange();
16499
}}this._lastKeyPress=(new Date).valueOf();
16500
e.preventDefault();
16358
},
16501
},
16359
resetValue:function(){this.getManager().resetValue();
16502
_findItem:function(vUserValue,
16503
vStartIndex,
16504
vType){var vAllItems=this.getChildren();
16505
if(vStartIndex==null){vStartIndex=vAllItems.indexOf(this.getSelectedItem());
16506
if(vStartIndex==-1){vStartIndex=0;
16507
}}var methodName="matches"+vType;
16508
for(var i=vStartIndex;i<vAllItems.length;i++){if(vAllItems[i][methodName](vUserValue)){return vAllItems[i];
16509
}}for(var i=0;i<vStartIndex;i++){if(vAllItems[i][methodName](vUserValue)){return vAllItems[i];
16510
}}return null;
16360
},
16511
},
16361
setMax:function(vMax){return this.getManager().setMax(vMax);
16512
findString:function(vText,
16513
vStartIndex){return this._findItem(vText,
16514
vStartIndex||0,
16515
"String");
16362
},
16516
},
16363
getMax:function(){return this.getManager().getMax();
16517
findStringExact:function(vText,
16518
vStartIndex){return this._findItem(vText,
16519
vStartIndex||0,
16520
"StringExact");
16364
},
16521
},
16365
setMin:function(vMin){return this.getManager().setMin(vMin);
16522
findValue:function(vText,
16523
vStartIndex){return this._findItem(vText,
16524
vStartIndex||0,
16525
"Value");
16366
},
16526
},
16367
getMin:function(){return this.getManager().getMin();
16527
findValueExact:function(vText,
16528
vStartIndex){return this._findItem(vText,
16529
vStartIndex||0,
16530
"ValueExact");
16368
},
16531
},
16369
_intervalIncrease:null,
16532
_sortItemsCompare:function(a,
16370
_oninterval:function(e){this._timer.stop();
16533
b){return a.key<b.key?-1:a.key==b.key?0:1;
16371
this.setInterval(Math.max(this.getMinTimer(),
16372
this.getInterval()-this.getTimerDecrease()));
16373
if(this._intervalMode=="page"){this._pageIncrement();
16374
}else{if(this.getInterval()==this.getMinTimer()){this._computedIncrementAmount=this.getAmountGrowth()*this._computedIncrementAmount;
16375
}this._increment();
16376
}var wrap=this.getManager().getWrap();
16377
switch(this._intervalIncrease){case true:if(this.getValue()==this.getMax()&&!wrap){return;
16378
}case false:if(this.getValue()==this.getMin()&&!wrap){return;
16379
}}this._timer.restartWith(this.getInterval());
16380
},
16534
},
16381
__checkValue:function(acceptEmpty,
16535
sortItemsByString:function(vReverse){var sortitems=[];
16382
acceptEdit){var el=this._textfield.getInputElement();
16536
var items=this.getChildren();
16383
if(!el){return;
16537
for(var i=0,
16384
}
16538
l=items.length;i<l;i++){sortitems[i]={key:items[i].getLabel(),
16385
if((el.value=="")||(el.value=="-")){if(!acceptEmpty){this.resetValue();
16539
item:items[i]};
16386
return;
16540
}sortitems.sort(this._sortItemsCompare);
16387
}}else{var str_val=el.value;
16541
if(vReverse){sortitems.reverse();
16388
var parsable_str;
16389
if(this._numberFormat){var groupSepEsc=qx.lang.String.escapeRegexpChars(qx.locale.Number.getGroupSeparator(this._numberFormat._locale)+"");
16390
var decimalSepEsc=qx.lang.String.escapeRegexpChars(qx.locale.Number.getDecimalSeparator(this._numberFormat._locale)+"");
16391
parsable_str=str_val.replace(new RegExp(decimalSepEsc),
16392
".");
16393
parsable_str=parsable_str.replace(new RegExp(groupSepEsc,
16394
"g"),
16395
"");
16396
}else{parsable_str=str_val;
16397
}var val=parseFloat(parsable_str);
16398
var limitedVal=this.getManager().limit(val);
16399
var oldValue=this.getManager().getValue();
16400
var fixedVal=limitedVal;
16401
if(isNaN(val)||(limitedVal!=val)||(val!=parsable_str)){if(acceptEdit){this._textfield.setValue(this._last_value);
16402
}else{if(isNaN(limitedVal)){fixedVal=oldValue;
16403
}else{fixedVal=limitedVal;
16404
}}}
16405
if(acceptEdit)return;
16406
var formattedValue;
16407
if(this._numberFormat){formattedValue=this._numberFormat.format(fixedVal);
16408
}else{formattedValue=String(fixedVal);
16409
}
16542
}
16410
if((fixedVal===oldValue)&&(str_val!==formattedValue)){this._textfield.setValue(formattedValue);
16543
for(var i=0;i<l;i++){this.addAt(sortitems[i].item,
16411
}this.getManager().setValue(fixedVal);
16544
i);
16412
}},
16413
_increment:function(){if(this.getManager().incrementValue){this.getManager().incrementValue((this._intervalIncrease?1:-1)*this._computedIncrementAmount);
16414
}else{var value=this.getManager().getValue()+((this._intervalIncrease?1:-1)*this._computedIncrementAmount);
16415
value=this.getManager().limit(value);
16416
this.getManager().setValue(value);
16417
}},
16418
_pageIncrement:function(){if(this.getManager().pageIncrementValue){this.getManager().pageIncrementValue();
16419
}else{var value=this.getManager().getValue()+((this._intervalIncrease?1:-1)*this.getPageIncrementAmount());
16420
value=this.getManager().limit(value);
16421
this.getManager().setValue(value);
16422
}},
16423
_resetIncrements:function(){this._computedIncrementAmount=this.getIncrementAmount();
16424
this.resetInterval();
16425
}},
16545
}},
16426
destruct:function(){var mgr=this.getManager();
16546
sortItemsByValue:function(vReverse){var sortitems=[];
16427
if(mgr){mgr.dispose();
16547
var items=this.getChildren();
16428
}this._disposeObjects("_textfield",
16548
for(var i=0,
16429
"_buttonlayout",
16549
l=items.length;i<l;i++){sortitems[i]={key:items[i].getValue(),
16430
"_upbutton",
16550
item:items[i]};
16431
"_downbutton",
16551
}sortitems.sort(this._sortItemsCompare);
16432
"_timer");
16552
if(vReverse){sortitems.reverse();
16553
}
16554
for(var i=0;i<l;i++){this.addAt(sortitems[i].item,
16555
i);
16556
}}},
16557
destruct:function(){this._disposeObjects("_manager");
16433
}});
16558
}});
16434
16559
16435
16560
Lines 16576-17018 Link Here
16576
_applyEnabled:function(value,
16701
_applyEnabled:function(value,
16577
old){if(this._inputElement){this._inputElement.disabled=value===false;
16702
old){if(this._inputElement){this._inputElement.disabled=value===false;
16578
}return this.base(arguments,
16703
}return this.base(arguments,
16579
value,
16704
value,
16580
old);
16705
old);
16581
},
16582
_applyValue:function(value,
16583
old){this._inValueProperty=true;
16584
if(this._inputElement){if(value===null){value="";
16585
}
16586
if(this._inputElement.value!==value){this._inputElement.value=value;
16587
}}delete this._inValueProperty;
16588
},
16589
_applyMaxLength:function(value,
16590
old){if(this._inputElement){this._inputElement.maxLength=value==null?"":value;
16591
}},
16592
_applyReadOnly:function(value,
16593
old){if(this._inputElement){this._inputElement.readOnly=value;
16594
}
16595
if(value){this.addState("readonly");
16596
}else{this.removeState("readonly");
16597
}},
16598
_applyTextColor:function(value,
16599
old){qx.theme.manager.Color.getInstance().connect(this._styleTextColor,
16600
this,
16601
value);
16602
},
16603
_styleTextColor:function(value){this.__textColor=value;
16604
this._renderTextColor();
16605
},
16606
_renderTextColor:function(){var inp=this._inputElement;
16607
if(inp){inp.style.color=this.__textColor||"";
16608
}},
16609
_applyFont:function(value,
16610
old){qx.theme.manager.Font.getInstance().connect(this._styleFont,
16611
this,
16612
value);
16613
},
16614
_styleFont:function(value){this.__font=value;
16615
this._renderFont();
16616
},
16617
_renderFont:function(){var inp=this._inputElement;
16618
if(inp){var value=this.__font;
16619
value?value.renderElement(inp):qx.ui.core.Font.resetElement(inp);
16620
}},
16621
_visualizeFocus:function(){this.base(arguments);
16622
if(!qx.event.handler.FocusHandler.mouseFocus&&this.getEnableElementFocus()){try{this._inputElement.focus();
16623
}catch(ex){}}},
16624
_visualizeBlur:function(){this.base(arguments);
16625
if(!qx.event.handler.FocusHandler.mouseFocus){try{this._inputElement.blur();
16626
}catch(ex){}}},
16627
getComputedValue:function(){if(this._inputElement){return this._inputElement.value;
16628
}return this.getValue();
16629
},
16630
getInputElement:function(){return this._inputElement||null;
16631
},
16632
isValid:function(){var vValidator=this.getValidator();
16633
return !vValidator||vValidator(this.getValue());
16634
},
16635
isComputedValid:function(){var vValidator=this.getValidator();
16636
return !vValidator||vValidator(this.getComputedValue());
16637
},
16638
_computePreferredInnerWidth:function(){return 120;
16639
},
16640
_computePreferredInnerHeight:function(){return 16;
16641
},
16642
_ieFirstInputFix:qx.core.Variant.select("qx.client",
16643
{"mshtml":function(){this._inValueProperty=true;
16644
this._inputElement.value=this.getValue()===null?"":this.getValue();
16645
this._firstInputFixApplied=true;
16646
delete this._inValueProperty;
16647
},
16648
"default":null}),
16649
_afterAppear:qx.core.Variant.select("qx.client",
16650
{"mshtml":function(){this.base(arguments);
16651
if(!this._firstInputFixApplied&&this._inputElement){qx.client.Timer.once(this._ieFirstInputFix,
16652
this,
16653
1);
16654
}},
16655
"default":function(){this.base(arguments);
16656
}}),
16657
_firstInputFixApplied:false,
16658
_textOnFocus:null,
16659
_oninputDom:qx.core.Variant.select("qx.client",
16660
{"mshtml":function(e){if(!this._inValueProperty&&e.propertyName==="value"){this.createDispatchDataEvent("input",
16661
this.getComputedValue());
16662
}},
16663
"default":function(e){this.createDispatchDataEvent("input",
16664
this.getComputedValue());
16665
}}),
16666
_ontabfocus:function(){this.selectAll();
16667
},
16668
_onfocus:function(){this._textOnFocus=this.getComputedValue();
16669
},
16670
_onblur:function(){var vValue=this.getComputedValue().toString();
16671
if(this._textOnFocus!=vValue){this.setValue(vValue);
16672
}if(this.getParent()!=null){this.setSelectionLength(0);
16673
}},
16674
_oninput:function(){if(!this.isLiveUpdate()){return;
16675
}var vValue=this.getComputedValue().toString();
16676
this.setValue(vValue);
16677
},
16678
_onkeydown:function(e){if(e.getKeyIdentifier()=="Backspace"&&this.getReadOnly()){e.preventDefault();
16679
}},
16680
__getRange:qx.core.Variant.select("qx.client",
16681
{"mshtml":function(){this._visualPropertyCheck();
16682
return this._inputElement.createTextRange();
16683
},
16684
"default":null}),
16685
__getSelectionRange:qx.core.Variant.select("qx.client",
16686
{"mshtml":function(){this._visualPropertyCheck();
16687
return this.getTopLevelWidget().getDocumentElement().selection.createRange();
16688
},
16689
"default":null}),
16690
setSelectionStart:qx.core.Variant.select("qx.client",
16691
{"mshtml":function(vStart){this._visualPropertyCheck();
16692
var vText=this._inputElement.value;
16693
var i=0;
16694
while(i<vStart){i=vText.indexOf("\r\n",
16695
i);
16696
if(i==-1){break;
16697
}vStart--;
16698
i++;
16699
}var vRange=this.__getRange();
16700
vRange.collapse();
16701
vRange.move("character",
16702
vStart);
16703
vRange.select();
16704
},
16705
"default":function(vStart){this._visualPropertyCheck();
16706
this._inputElement.selectionStart=vStart;
16707
}}),
16708
getSelectionStart:qx.core.Variant.select("qx.client",
16709
{"mshtml":function(){this._visualPropertyCheck();
16710
var vSelectionRange=this.__getSelectionRange();
16711
if(!this._inputElement.contains(vSelectionRange.parentElement())){return -1;
16712
}var vRange=this.__getRange();
16713
var len=this._inputElement.value.length;
16714
vRange.moveToBookmark(vSelectionRange.getBookmark());
16715
vRange.moveEnd('character',
16716
len);
16717
return len-vRange.text.length;
16718
},
16719
"default":function(){this._visualPropertyCheck();
16720
return this._inputElement.selectionStart;
16721
}}),
16722
setSelectionLength:qx.core.Variant.select("qx.client",
16723
{"mshtml":function(vLength){this._visualPropertyCheck();
16724
var vSelectionRange=this.__getSelectionRange();
16725
if(!this._inputElement.contains(vSelectionRange.parentElement())){return;
16726
}vSelectionRange.collapse();
16727
vSelectionRange.moveEnd("character",
16728
vLength);
16729
vSelectionRange.select();
16730
},
16706
},
16731
"default":function(vLength){this._visualPropertyCheck();
16707
_applyValue:function(value,
16732
var el=this._inputElement;
16708
old){this._inValueProperty=true;
16733
if(qx.util.Validation.isValidString(el.value)&&this.getVisibility()){el.selectionEnd=el.selectionStart+vLength;
16709
if(this._inputElement){if(value===null){value="";
16734
}}}),
16710
}
16735
getSelectionLength:qx.core.Variant.select("qx.client",
16711
if(this._inputElement.value!==value){this._inputElement.value=value;
16736
{"mshtml":function(){this._visualPropertyCheck();
16712
}}delete this._inValueProperty;
16737
var vSelectionRange=this.__getSelectionRange();
16738
if(!this._inputElement.contains(vSelectionRange.parentElement())){return 0;
16739
}return vSelectionRange.text.length;
16740
},
16713
},
16741
"default":function(){this._visualPropertyCheck();
16714
_applyMaxLength:function(value,
16742
var el=this._inputElement;
16715
old){if(this._inputElement){this._inputElement.maxLength=value==null?"":value;
16743
return el.selectionEnd-el.selectionStart;
16716
}},
16744
}}),
16717
_applyReadOnly:function(value,
16745
setSelectionText:qx.core.Variant.select("qx.client",
16718
old){if(this._inputElement){this._inputElement.readOnly=value;
16746
{"mshtml":function(vText){this._visualPropertyCheck();
16719
}
16747
var vStart=this.getSelectionStart();
16720
if(value){this.addState("readonly");
16748
var vSelectionRange=this.__getSelectionRange();
16721
}else{this.removeState("readonly");
16749
if(!this._inputElement.contains(vSelectionRange.parentElement())){return;
16722
}},
16750
}vSelectionRange.text=vText;
16723
_applyTextColor:function(value,
16751
this.setValue(this._inputElement.value);
16724
old){qx.theme.manager.Color.getInstance().connect(this._styleTextColor,
16752
this.setSelectionStart(vStart);
16725
this,
16753
this.setSelectionLength(vText.length);
16726
value);
16754
},
16727
},
16755
"default":function(vText){this._visualPropertyCheck();
16728
_styleTextColor:function(value){this.__textColor=value;
16756
var el=this._inputElement;
16729
this._renderTextColor();
16757
var vOldText=el.value;
16758
var vStart=el.selectionStart;
16759
var vOldTextBefore=vOldText.substr(0,
16760
vStart);
16761
var vOldTextAfter=vOldText.substr(el.selectionEnd);
16762
var vValue=el.value=vOldTextBefore+vText+vOldTextAfter;
16763
el.selectionStart=vStart;
16764
el.selectionEnd=vStart+vText.length;
16765
this.setValue(vValue);
16766
}}),
16767
getSelectionText:qx.core.Variant.select("qx.client",
16768
{"mshtml":function(){this._visualPropertyCheck();
16769
var vSelectionRange=this.__getSelectionRange();
16770
if(!this._inputElement.contains(vSelectionRange.parentElement())){return "";
16771
}return vSelectionRange.text;
16772
},
16730
},
16773
"default":function(){this._visualPropertyCheck();
16731
_renderTextColor:function(){var inp=this._inputElement;
16774
return this._inputElement.value.substr(this.getSelectionStart(),
16732
if(inp){inp.style.color=this.__textColor||"";
16775
this.getSelectionLength());
16733
}},
16776
}}),
16734
_applyFont:function(value,
16777
selectAll:function(){this._visualPropertyCheck();
16735
old){qx.theme.manager.Font.getInstance().connect(this._styleFont,
16778
if(this.getValue()!=null){this.setSelectionStart(0);
16736
this,
16779
this.setSelectionLength(this._inputElement.value.length);
16737
value);
16780
}this._inputElement.select();
16781
this._inputElement.focus();
16782
},
16738
},
16783
selectFromTo:qx.core.Variant.select("qx.client",
16739
_styleFont:function(value){this.__font=value;
16784
{"mshtml":function(vStart,
16740
this._renderFont();
16785
vEnd){this._visualPropertyCheck();
16786
this.setSelectionStart(vStart);
16787
this.setSelectionLength(vEnd-vStart);
16788
},
16741
},
16789
"default":function(vStart,
16742
_renderFont:function(){var inp=this._inputElement;
16790
vEnd){this._visualPropertyCheck();
16743
if(inp){var value=this.__font;
16791
var el=this._inputElement;
16744
value?value.renderElement(inp):qx.ui.core.Font.resetElement(inp);
16792
el.selectionStart=vStart;
16745
}},
16793
el.selectionEnd=vEnd;
16746
_visualizeFocus:function(){this.base(arguments);
16794
}})},
16747
if(!qx.event.handler.FocusHandler.mouseFocus&&this.getEnableElementFocus()){try{this._inputElement.focus();
16795
destruct:function(){if(this._inputElement){if(qx.core.Variant.isSet("qx.client",
16748
}catch(ex){}}},
16796
"mshtml")){this._inputElement.onpropertychange=null;
16749
_visualizeBlur:function(){this.base(arguments);
16797
}else{this._inputElement.removeEventListener("input",
16750
if(!qx.event.handler.FocusHandler.mouseFocus){try{this._inputElement.blur();
16798
this.__oninput,
16751
}catch(ex){}}},
16799
false);
16752
getComputedValue:function(){if(this._inputElement){return this._inputElement.value;
16800
}}this._disposeFields("_inputElement",
16753
}return this.getValue();
16801
"__font",
16802
"__oninput");
16803
}});
16804
16805
16806
16807
16808
/* ID: qx.util.range.IRange */
16809
qx.Interface.define("qx.util.range.IRange",
16810
{properties:{value:{},
16811
min:{},
16812
max:{},
16813
wrap:{}},
16814
members:{limit:function(value){return true;
16815
}}});
16816
16817
16818
16819
16820
/* ID: qx.util.range.Range */
16821
qx.Class.define("qx.util.range.Range",
16822
{extend:qx.core.Target,
16823
implement:[qx.util.range.IRange],
16824
events:{"change":"qx.event.type.Event"},
16825
properties:{value:{check:"!isNaN(value)&&value>=this.getMin()&&value<=this.getMax()",
16826
nullable:true,
16827
event:"change",
16828
init:0},
16829
precision:{check:"Integer",
16830
nullable:true,
16831
event:"change",
16832
init:0},
16833
min:{check:"Number",
16834
apply:"_applyMin",
16835
event:"change",
16836
init:0},
16837
max:{check:"Number",
16838
apply:"_applyMax",
16839
event:"change",
16840
init:100},
16841
wrap:{check:"Boolean",
16842
init:false}},
16843
members:{_applyMax:function(value,
16844
old){this.setValue(Math.min(this.getValue(),
16845
value));
16846
},
16754
},
16847
_applyMin:function(value,
16755
getInputElement:function(){return this._inputElement||null;
16848
old){this.setValue(Math.max(this.getValue(),
16849
value));
16850
},
16756
},
16851
limit:function(value){var precision=this.getPrecision();
16757
isValid:function(){var vValidator=this.getValidator();
16852
if(precision!=null)var mover=Math.pow(10,
16758
return !vValidator||vValidator(this.getValue());
16853
precision);
16854
if(this.getWrap()){if(precision!=null){var value=Math.round(value*mover)/mover;
16855
}
16856
if(value<this.getMin()){return (this.getMax()-(this.getMin()-value))+1;
16857
}
16858
if(value>this.getMax()){return (this.getMin()+(value-this.getMax()))-1;
16859
}}
16860
if(value<this.getMin()){return this.getMin();
16861
}
16862
if(value>this.getMax()){return this.getMax();
16863
}
16864
if(precision!=null){return Math.round(value*mover)/mover;
16865
}else{return value;
16866
}}}});
16867
16868
16869
16870
16871
/* ID: qx.ui.form.List */
16872
qx.Class.define("qx.ui.form.List",
16873
{extend:qx.ui.layout.VerticalBoxLayout,
16874
construct:function(){this.base(arguments);
16875
this._manager=new qx.ui.selection.SelectionManager(this);
16876
this.addEventListener("mouseover",
16877
this._onmouseover);
16878
this.addEventListener("mousedown",
16879
this._onmousedown);
16880
this.addEventListener("mouseup",
16881
this._onmouseup);
16882
this.addEventListener("click",
16883
this._onclick);
16884
this.addEventListener("dblclick",
16885
this._ondblclick);
16886
this.addEventListener("keydown",
16887
this._onkeydown);
16888
this.addEventListener("keypress",
16889
this._onkeypress);
16890
this.addEventListener("keyinput",
16891
this._onkeyinput);
16892
this.initOverflow();
16893
this.initTabIndex();
16894
},
16759
},
16895
properties:{appearance:{refine:true,
16760
isComputedValid:function(){var vValidator=this.getValidator();
16896
init:"list"},
16761
return !vValidator||vValidator(this.getComputedValue());
16897
overflow:{refine:true,
16898
init:"hidden"},
16899
tabIndex:{refine:true,
16900
init:1},
16901
enableInlineFind:{check:"Boolean",
16902
init:true},
16903
markLeadingItem:{check:"Boolean",
16904
init:false}},
16905
members:{_pressedString:"",
16906
getManager:function(){return this._manager;
16907
},
16762
},
16908
getListItemTarget:function(vItem){while(vItem!=null&&vItem.getParent()!=this){vItem=vItem.getParent();
16763
_computePreferredInnerWidth:function(){return 120;
16909
}return vItem;
16910
},
16764
},
16911
getSelectedItem:function(){return this.getSelectedItems()[0]||null;
16765
_computePreferredInnerHeight:function(){return 16;
16912
},
16766
},
16913
getSelectedItems:function(){return this._manager.getSelectedItems();
16767
_ieFirstInputFix:qx.core.Variant.select("qx.client",
16768
{"mshtml":function(){this._inValueProperty=true;
16769
this._inputElement.value=this.getValue()===null?"":this.getValue();
16770
this._firstInputFixApplied=true;
16771
delete this._inValueProperty;
16914
},
16772
},
16915
_onmouseover:function(e){var vItem=this.getListItemTarget(e.getTarget());
16773
"default":null}),
16916
if(vItem){this._manager.handleMouseOver(vItem,
16774
_afterAppear:qx.core.Variant.select("qx.client",
16917
e);
16775
{"mshtml":function(){this.base(arguments);
16918
}},
16776
if(!this._firstInputFixApplied&&this._inputElement){qx.client.Timer.once(this._ieFirstInputFix,
16919
_onmousedown:function(e){var vItem=this.getListItemTarget(e.getTarget());
16777
this,
16920
if(vItem){this._manager.handleMouseDown(vItem,
16778
1);
16921
e);
16922
}},
16779
}},
16923
_onmouseup:function(e){var vItem=this.getListItemTarget(e.getTarget());
16780
"default":function(){this.base(arguments);
16924
if(vItem){this._manager.handleMouseUp(vItem,
16781
}}),
16925
e);
16782
_firstInputFixApplied:false,
16783
_textOnFocus:null,
16784
_oninputDom:qx.core.Variant.select("qx.client",
16785
{"mshtml":function(e){if(!this._inValueProperty&&e.propertyName==="value"){this.createDispatchDataEvent("input",
16786
this.getComputedValue());
16926
}},
16787
}},
16927
_onclick:function(e){var vItem=this.getListItemTarget(e.getTarget());
16788
"default":function(e){this.createDispatchDataEvent("input",
16928
if(vItem){this._manager.handleClick(vItem,
16789
this.getComputedValue());
16929
e);
16790
}}),
16791
_ontabfocus:function(){this.selectAll();
16792
},
16793
_onfocus:function(){this._textOnFocus=this.getComputedValue();
16794
},
16795
_onblur:function(){var vValue=this.getComputedValue().toString();
16796
if(this._textOnFocus!=vValue){this.setValue(vValue);
16797
}if(this.getParent()!=null){this.setSelectionLength(0);
16930
}},
16798
}},
16931
_ondblclick:function(e){var vItem=this.getListItemTarget(e.getTarget());
16799
_oninput:function(){if(!this.isLiveUpdate()){return;
16932
if(vItem){this._manager.handleDblClick(vItem,
16800
}var vValue=this.getComputedValue().toString();
16933
e);
16801
this.setValue(vValue);
16802
},
16803
_onkeydown:function(e){if(e.getKeyIdentifier()=="Backspace"&&this.getReadOnly()){e.preventDefault();
16934
}},
16804
}},
16935
_onkeydown:function(e){if(e.getKeyIdentifier()=="Enter"&&!e.isAltPressed()){var items=this.getSelectedItems();
16805
__getRange:qx.core.Variant.select("qx.client",
16936
for(var i=0;i<items.length;i++){items[i].createDispatchEvent("action");
16806
{"mshtml":function(){this._visualPropertyCheck();
16937
}}},
16807
return this._inputElement.createTextRange();
16938
_onkeypress:function(e){this._manager.handleKeyPress(e);
16939
},
16808
},
16940
_lastKeyPress:0,
16809
"default":null}),
16941
_onkeyinput:function(e){if(!this.getEnableInlineFind()){return;
16810
__getSelectionRange:qx.core.Variant.select("qx.client",
16942
}if(((new Date).valueOf()-this._lastKeyPress)>1000){this._pressedString="";
16811
{"mshtml":function(){this._visualPropertyCheck();
16943
}this._pressedString+=String.fromCharCode(e.getCharCode());
16812
return this.getTopLevelWidget().getDocumentElement().selection.createRange();
16944
var matchedItem=this.findString(this._pressedString,
16945
null);
16946
if(matchedItem){var oldVal=this._manager._getChangeValue();
16947
var oldFireChange=this._manager.getFireChange();
16948
this._manager.setFireChange(false);
16949
this._manager._deselectAll();
16950
this._manager.setItemSelected(matchedItem,
16951
true);
16952
this._manager.setAnchorItem(matchedItem);
16953
this._manager.setLeadItem(matchedItem);
16954
matchedItem.scrollIntoView();
16955
this._manager.setFireChange(oldFireChange);
16956
if(oldFireChange&&this._manager._hasChanged(oldVal)){this._manager._dispatchChange();
16957
}}this._lastKeyPress=(new Date).valueOf();
16958
e.preventDefault();
16959
},
16813
},
16960
_findItem:function(vUserValue,
16814
"default":null}),
16961
vStartIndex,
16815
setSelectionStart:qx.core.Variant.select("qx.client",
16962
vType){var vAllItems=this.getChildren();
16816
{"mshtml":function(vStart){this._visualPropertyCheck();
16963
if(vStartIndex==null){vStartIndex=vAllItems.indexOf(this.getSelectedItem());
16817
var vText=this._inputElement.value;
16964
if(vStartIndex==-1){vStartIndex=0;
16818
var i=0;
16965
}}var methodName="matches"+vType;
16819
while(i<vStart){i=vText.indexOf("\r\n",
16966
for(var i=vStartIndex;i<vAllItems.length;i++){if(vAllItems[i][methodName](vUserValue)){return vAllItems[i];
16820
i);
16967
}}for(var i=0;i<vStartIndex;i++){if(vAllItems[i][methodName](vUserValue)){return vAllItems[i];
16821
if(i==-1){break;
16968
}}return null;
16822
}vStart--;
16823
i++;
16824
}var vRange=this.__getRange();
16825
vRange.collapse();
16826
vRange.move("character",
16827
vStart);
16828
vRange.select();
16969
},
16829
},
16970
findString:function(vText,
16830
"default":function(vStart){this._visualPropertyCheck();
16971
vStartIndex){return this._findItem(vText,
16831
this._inputElement.selectionStart=vStart;
16972
vStartIndex||0,
16832
}}),
16973
"String");
16833
getSelectionStart:qx.core.Variant.select("qx.client",
16834
{"mshtml":function(){this._visualPropertyCheck();
16835
var vSelectionRange=this.__getSelectionRange();
16836
if(!this._inputElement.contains(vSelectionRange.parentElement())){return -1;
16837
}var vRange=this.__getRange();
16838
var len=this._inputElement.value.length;
16839
vRange.moveToBookmark(vSelectionRange.getBookmark());
16840
vRange.moveEnd('character',
16841
len);
16842
return len-vRange.text.length;
16974
},
16843
},
16975
findStringExact:function(vText,
16844
"default":function(){this._visualPropertyCheck();
16976
vStartIndex){return this._findItem(vText,
16845
return this._inputElement.selectionStart;
16977
vStartIndex||0,
16846
}}),
16978
"StringExact");
16847
setSelectionLength:qx.core.Variant.select("qx.client",
16848
{"mshtml":function(vLength){this._visualPropertyCheck();
16849
var vSelectionRange=this.__getSelectionRange();
16850
if(!this._inputElement.contains(vSelectionRange.parentElement())){return;
16851
}vSelectionRange.collapse();
16852
vSelectionRange.moveEnd("character",
16853
vLength);
16854
vSelectionRange.select();
16979
},
16855
},
16980
findValue:function(vText,
16856
"default":function(vLength){this._visualPropertyCheck();
16981
vStartIndex){return this._findItem(vText,
16857
var el=this._inputElement;
16982
vStartIndex||0,
16858
if(qx.util.Validation.isValidString(el.value)&&this.getVisibility()){el.selectionEnd=el.selectionStart+vLength;
16983
"Value");
16859
}}}),
16860
getSelectionLength:qx.core.Variant.select("qx.client",
16861
{"mshtml":function(){this._visualPropertyCheck();
16862
var vSelectionRange=this.__getSelectionRange();
16863
if(!this._inputElement.contains(vSelectionRange.parentElement())){return 0;
16864
}return vSelectionRange.text.length;
16984
},
16865
},
16985
findValueExact:function(vText,
16866
"default":function(){this._visualPropertyCheck();
16986
vStartIndex){return this._findItem(vText,
16867
var el=this._inputElement;
16987
vStartIndex||0,
16868
return el.selectionEnd-el.selectionStart;
16988
"ValueExact");
16869
}}),
16870
setSelectionText:qx.core.Variant.select("qx.client",
16871
{"mshtml":function(vText){this._visualPropertyCheck();
16872
var vStart=this.getSelectionStart();
16873
var vSelectionRange=this.__getSelectionRange();
16874
if(!this._inputElement.contains(vSelectionRange.parentElement())){return;
16875
}vSelectionRange.text=vText;
16876
this.setValue(this._inputElement.value);
16877
this.setSelectionStart(vStart);
16878
this.setSelectionLength(vText.length);
16989
},
16879
},
16990
_sortItemsCompare:function(a,
16880
"default":function(vText){this._visualPropertyCheck();
16991
b){return a.key<b.key?-1:a.key==b.key?0:1;
16881
var el=this._inputElement;
16882
var vOldText=el.value;
16883
var vStart=el.selectionStart;
16884
var vOldTextBefore=vOldText.substr(0,
16885
vStart);
16886
var vOldTextAfter=vOldText.substr(el.selectionEnd);
16887
var vValue=el.value=vOldTextBefore+vText+vOldTextAfter;
16888
el.selectionStart=vStart;
16889
el.selectionEnd=vStart+vText.length;
16890
this.setValue(vValue);
16891
}}),
16892
getSelectionText:qx.core.Variant.select("qx.client",
16893
{"mshtml":function(){this._visualPropertyCheck();
16894
var vSelectionRange=this.__getSelectionRange();
16895
if(!this._inputElement.contains(vSelectionRange.parentElement())){return "";
16896
}return vSelectionRange.text;
16992
},
16897
},
16993
sortItemsByString:function(vReverse){var sortitems=[];
16898
"default":function(){this._visualPropertyCheck();
16994
var items=this.getChildren();
16899
return this._inputElement.value.substr(this.getSelectionStart(),
16995
for(var i=0,
16900
this.getSelectionLength());
16996
l=items.length;i<l;i++){sortitems[i]={key:items[i].getLabel(),
16901
}}),
16997
item:items[i]};
16902
selectAll:function(){this._visualPropertyCheck();
16998
}sortitems.sort(this._sortItemsCompare);
16903
if(this.getValue()!=null){this.setSelectionStart(0);
16999
if(vReverse){sortitems.reverse();
16904
this.setSelectionLength(this._inputElement.value.length);
17000
}
16905
}this._inputElement.select();
17001
for(var i=0;i<l;i++){this.addAt(sortitems[i].item,
16906
this._inputElement.focus();
17002
i);
16907
},
17003
}},
16908
selectFromTo:qx.core.Variant.select("qx.client",
17004
sortItemsByValue:function(vReverse){var sortitems=[];
16909
{"mshtml":function(vStart,
17005
var items=this.getChildren();
16910
vEnd){this._visualPropertyCheck();
17006
for(var i=0,
16911
this.setSelectionStart(vStart);
17007
l=items.length;i<l;i++){sortitems[i]={key:items[i].getValue(),
16912
this.setSelectionLength(vEnd-vStart);
17008
item:items[i]};
16913
},
17009
}sortitems.sort(this._sortItemsCompare);
16914
"default":function(vStart,
17010
if(vReverse){sortitems.reverse();
16915
vEnd){this._visualPropertyCheck();
17011
}
16916
var el=this._inputElement;
17012
for(var i=0;i<l;i++){this.addAt(sortitems[i].item,
16917
el.selectionStart=vStart;
17013
i);
16918
el.selectionEnd=vEnd;
17014
}}},
16919
}})},
17015
destruct:function(){this._disposeObjects("_manager");
16920
destruct:function(){if(this._inputElement){if(qx.core.Variant.isSet("qx.client",
16921
"mshtml")){this._inputElement.onpropertychange=null;
16922
}else{this._inputElement.removeEventListener("input",
16923
this.__oninput,
16924
false);
16925
}}this._disposeFields("_inputElement",
16926
"__font",
16927
"__oninput");
17016
}});
16928
}});
17017
16929
17018
16930
Lines 17070-17075 Link Here
17070
16982
17071
16983
17072
16984
16985
/* ID: qx.ui.form.PasswordField */
16986
qx.Class.define("qx.ui.form.PasswordField",
16987
{extend:qx.ui.form.TextField,
16988
members:{_inputType:"password"}});
16989
16990
16991
16992
17073
/* ID: qx.ui.form.RadioButton */
16993
/* ID: qx.ui.form.RadioButton */
17074
qx.Class.define("qx.ui.form.RadioButton",
16994
qx.Class.define("qx.ui.form.RadioButton",
17075
{extend:qx.ui.form.CheckBox,
16995
{extend:qx.ui.form.CheckBox,
Lines 17107-17454 Link Here
17107
if(this.getManager()){this.getManager().setName(value);
17027
if(this.getManager()){this.getManager().setName(value);
17108
}},
17028
}},
17109
_applyValue:function(value,
17029
_applyValue:function(value,
17110
old){if(this.isCreated()&&this._iconObject){this._iconObject.setValue(value);
17030
old){if(this.isCreated()&&this._iconObject){this._iconObject.setValue(value);
17111
}},
17112
_onkeydown:function(e){if(e.getKeyIdentifier()=="Enter"&&!e.isAltPressed()){this.setChecked(true);
17113
}},
17114
_onkeypress:function(e){switch(e.getKeyIdentifier()){case "Left":case "Up":qx.event.handler.FocusHandler.mouseFocus=false;
17115
qx.event.handler.FocusHandler.mouseFocus=false;
17116
return this.getManager()?this.getManager().selectPrevious(this):true;
17117
case "Right":case "Down":qx.event.handler.FocusHandler.mouseFocus=false;
17118
return this.getManager()?this.getManager().selectNext(this):true;
17119
}},
17120
_onclick:function(e){this.setChecked(true);
17121
},
17122
_onkeyup:function(e){if(e.getKeyIdentifier()=="Space"){this.setChecked(true);
17123
}}}});
17124
17125
17126
17127
17128
/* ID: qx.ui.form.TextArea */
17129
qx.Class.define("qx.ui.form.TextArea",
17130
{extend:qx.ui.form.TextField,
17131
properties:{appearance:{refine:true,
17132
init:"text-area"},
17133
allowStretchY:{refine:true,
17134
init:true},
17135
spellCheck:{refine:true,
17136
init:true},
17137
wrap:{check:"Boolean",
17138
init:true,
17139
apply:"_applyWrap"}},
17140
members:{_inputTag:"textarea",
17141
_inputType:null,
17142
_inputOverflow:"auto",
17143
_applyElement:function(value,
17144
old){this.base(arguments,
17145
value,
17146
old);
17147
this._styleWrap();
17148
},
17149
_applyWrap:function(value,
17150
old){this._styleWrap();
17151
},
17152
_styleWrap:qx.core.Variant.select("qx.client",
17153
{"mshtml":function(){if(this._inputElement){this._inputElement.wrap=this.getWrap()?"soft":"off";
17154
}},
17031
}},
17155
"gecko":function(){if(this._inputElement){var wrapValue=this.getWrap()?"soft":"off";
17032
_onkeydown:function(e){if(e.getKeyIdentifier()=="Enter"&&!e.isAltPressed()){this.setChecked(true);
17156
var styleValue=this.getWrap()?"":"auto";
17157
this._inputElement.setAttribute('wrap',
17158
wrapValue);
17159
this._inputElement.style.overflow=styleValue;
17160
}},
17033
}},
17161
"default":function(){if(this._inputElement){this._inputElement.style.whiteSpace=this.getWrap()?"normal":"nowrap";
17034
_onkeypress:function(e){switch(e.getKeyIdentifier()){case "Left":case "Up":qx.event.handler.FocusHandler.mouseFocus=false;
17162
}}}),
17035
qx.event.handler.FocusHandler.mouseFocus=false;
17163
_computePreferredInnerHeight:function(){return 60;
17036
return this.getManager()?this.getManager().selectPrevious(this):true;
17164
}}});
17037
case "Right":case "Down":qx.event.handler.FocusHandler.mouseFocus=false;
17165
17038
return this.getManager()?this.getManager().selectNext(this):true;
17166
17039
}},
17167
17040
_onclick:function(e){this.setChecked(true);
17168
17041
},
17169
/* ID: qx.ui.form.PasswordField */
17042
_onkeyup:function(e){if(e.getKeyIdentifier()=="Space"){this.setChecked(true);
17170
qx.Class.define("qx.ui.form.PasswordField",
17043
}}}});
17171
{extend:qx.ui.form.TextField,
17172
members:{_inputType:"password"}});
17173
17044
17174
17045
17175
17046
17176
17047
17177
/* ID: qx.ui.form.ComboBox */
17048
/* ID: qx.ui.form.Spinner */
17178
qx.Class.define("qx.ui.form.ComboBox",
17049
qx.Class.define("qx.ui.form.Spinner",
17179
{extend:qx.ui.layout.HorizontalBoxLayout,
17050
{extend:qx.ui.layout.HorizontalBoxLayout,
17180
construct:function(){this.base(arguments);
17051
construct:function(vMin,
17181
var l=this._list=new qx.ui.form.List;
17052
vValue,
17182
l.setAppearance("combo-box-list");
17053
vMax){this.base(arguments);
17183
l.setTabIndex(-1);
17054
if(qx.core.Variant.isSet("qx.client",
17184
l.setEdge(0);
17055
"mshtml")){this.setStyleProperty("fontSize",
17185
var m=this._manager=this._list.getManager();
17056
"0px");
17186
m.setMultiSelection(false);
17057
}this._textfield=new qx.ui.form.TextField;
17187
m.setDragSelection(false);
17058
this._textfield.setBorder(null);
17188
var p=this._popup=new qx.ui.popup.Popup;
17059
this._textfield.setWidth("1*");
17189
p.setAppearance("combo-box-popup");
17060
this._textfield.setAllowStretchY(true);
17190
p.setRestrictToPageLeft(-100000);
17061
this._textfield.setHeight(null);
17191
p.setRestrictToPageRight(-100000);
17062
this._textfield.setLiveUpdate(true);
17192
p.setAutoHide(false);
17063
this._textfield.setVerticalAlign("middle");
17193
p.setHeight("auto");
17064
this._textfield.setAppearance("spinner-text-field");
17194
p.add(l);
17065
this.add(this._textfield);
17195
var f=this._field=new qx.ui.form.TextField;
17066
this._buttonlayout=new qx.ui.layout.VerticalBoxLayout;
17196
f.setAppearance("combo-box-text-field");
17067
this._buttonlayout.setWidth("auto");
17197
f.setTabIndex(-1);
17068
this.add(this._buttonlayout);
17198
f.setWidth("1*");
17069
this._upbutton=new qx.ui.basic.Image;
17199
f.setAllowStretchY(true);
17070
this._upbutton.setAppearance("spinner-button-up");
17200
f.setHeight(null);
17071
this._upbutton.setHeight("1*");
17201
this.add(f);
17072
this._buttonlayout.add(this._upbutton);
17202
var b=this._button=new qx.ui.basic.Atom;
17073
this._downbutton=new qx.ui.basic.Image;
17203
b.setAppearance("combo-box-button");
17074
this._downbutton.setAppearance("spinner-button-down");
17204
b.setAllowStretchY(true);
17075
this._downbutton.setHeight("1*");
17205
b.setTabIndex(-1);
17076
this._buttonlayout.add(this._downbutton);
17206
b.setHeight(null);
17077
this._timer=new qx.client.Timer(this.getInterval());
17207
this.add(b);
17078
this.setManager(new qx.util.range.Range());
17208
this.addEventListener("mousedown",
17079
this.initWrap();
17209
this._onmousedown);
17210
this.addEventListener("mouseup",
17211
this._onmouseup);
17212
this.addEventListener("click",
17213
this._onclick);
17214
this.addEventListener("mouseover",
17215
this._onmouseover);
17216
this.addEventListener("mousewheel",
17217
this._onmousewheel);
17218
this.addEventListener("keydown",
17219
this._onkeydown);
17220
this.addEventListener("keypress",
17080
this.addEventListener("keypress",
17221
this._onkeypress);
17081
this._onkeypress,
17222
this.addEventListener("keyinput",
17223
this._onkeyinput);
17224
this.addEventListener("beforeDisappear",
17225
this._onbeforedisappear);
17226
this._popup.addEventListener("appear",
17227
this._onpopupappear,
17228
this);
17082
this);
17229
this._field.addEventListener("input",
17083
this.addEventListener("keydown",
17084
this._onkeydown,
17085
this);
17086
this.addEventListener("keyup",
17087
this._onkeyup,
17088
this);
17089
this.addEventListener("mousewheel",
17090
this._onmousewheel,
17091
this);
17092
this._textfield.addEventListener("changeValue",
17093
this._ontextchange,
17094
this);
17095
this._textfield.addEventListener("input",
17230
this._oninput,
17096
this._oninput,
17231
this);
17097
this);
17232
qx.locale.Manager.getInstance().addEventListener("changeLocale",
17098
this._textfield.addEventListener("blur",
17233
this._onlocalechange,
17099
this._onblur,
17100
this);
17101
this._upbutton.addEventListener("mousedown",
17102
this._onmousedown,
17103
this);
17104
this._downbutton.addEventListener("mousedown",
17105
this._onmousedown,
17106
this);
17107
this._timer.addEventListener("interval",
17108
this._oninterval,
17109
this);
17110
if(vMin!=null){this.setMin(vMin);
17111
}
17112
if(vMax!=null){this.setMax(vMax);
17113
}
17114
if(vValue!=null){this.setValue(vValue);
17115
}this._checkValue=this.__checkValue;
17116
this._numberFormat=null;
17117
this.initWidth();
17118
this.initHeight();
17119
this._last_value="";
17120
},
17121
events:{"change":"qx.event.type.DataEvent"},
17122
properties:{appearance:{refine:true,
17123
init:"spinner"},
17124
width:{refine:true,
17125
init:60},
17126
height:{refine:true,
17127
init:22},
17128
incrementAmount:{check:"Number",
17129
init:1,
17130
apply:"_applyIncrementAmount"},
17131
wheelIncrementAmount:{check:"Number",
17132
init:1},
17133
pageIncrementAmount:{check:"Number",
17134
init:10},
17135
interval:{check:"Integer",
17136
init:100},
17137
firstInterval:{check:"Integer",
17138
init:500},
17139
minTimer:{check:"Integer",
17140
init:20},
17141
timerDecrease:{check:"Integer",
17142
init:2},
17143
amountGrowth:{check:"Number",
17144
init:1.01},
17145
wrap:{check:"Boolean",
17146
init:false,
17147
apply:"_applyWrap"},
17148
editable:{check:"Boolean",
17149
init:true,
17150
apply:"_applyEditable"},
17151
manager:{check:"qx.util.range.IRange",
17152
apply:"_applyManager",
17153
dispose:true},
17154
checkValueFunction:{apply:"_applyCheckValueFunction"},
17155
numberFormat:{check:"qx.util.format.NumberFormat",
17156
apply:"_applyNumberFormat"},
17157
selectTextOnInteract:{check:"Boolean",
17158
init:true}},
17159
members:{_applyIncrementAmount:function(value,
17160
old){this._computedIncrementAmount=value;
17161
},
17162
_applyEditable:function(value,
17163
old){if(this._textfield){this._textfield.setReadOnly(!value);
17164
}},
17165
_applyWrap:function(value,
17166
old){this.getManager().setWrap(value);
17167
this._onchange();
17168
},
17169
_applyManager:function(value,
17170
old){if(old){old.removeEventListener("change",
17171
this._onchange,
17172
this);
17173
}
17174
if(value){value.addEventListener("change",
17175
this._onchange,
17176
this);
17177
}this._onchange();
17178
},
17179
_applyCheckValueFunction:function(value,
17180
old){this._checkValue=value;
17181
},
17182
_applyNumberFormat:function(value,
17183
old){this._numberFormat=value;
17184
this.getManager().setPrecision(value.getMaximumFractionDigits());
17185
this._onchange();
17186
},
17187
_computePreferredInnerWidth:function(){return 50;
17188
},
17189
_computePreferredInnerHeight:function(){return 14;
17190
},
17191
_onkeypress:function(e){var vIdentifier=e.getKeyIdentifier();
17192
if(vIdentifier=="Enter"&&!e.isAltPressed()){this._checkValue(true,
17193
false);
17194
if(this.getSelectTextOnInteract()){this._textfield.selectAll();
17195
}}else{switch(vIdentifier){case "Up":case "Down":case "Left":case "Right":case "Shift":case "Control":case "Alt":case "Escape":case "Delete":case "Backspace":case "Insert":case "Home":case "End":case "PageUp":case "PageDown":case "NumLock":case "Tab":break;
17196
default:if((vIdentifier>="0"&&vIdentifier<="9")||(vIdentifier=='-')){return;
17197
}
17198
if(this._numberFormat){var locale=this._numberFormat._locale;
17199
if((vIdentifier==qx.locale.Number.getGroupSeparator(locale))||(vIdentifier==qx.locale.Number.getDecimalSeparator(locale)))return;
17200
}if(e.getModifiers()==0){e.preventDefault();
17201
}}}},
17202
_onkeydown:function(e){var vIdentifier=e.getKeyIdentifier();
17203
if(this._intervalIncrease==null){switch(vIdentifier){case "Up":case "Down":this._intervalIncrease=vIdentifier=="Up";
17204
this._intervalMode="single";
17205
this._resetIncrements();
17206
this._checkValue(true,
17207
false);
17208
this._increment();
17209
this._timer.startWith(this.getFirstInterval());
17210
break;
17211
case "PageUp":case "PageDown":this._intervalIncrease=vIdentifier=="PageUp";
17212
this._intervalMode="page";
17213
this._resetIncrements();
17214
this._checkValue(true,
17215
false);
17216
this._pageIncrement();
17217
this._timer.startWith(this.getFirstInterval());
17218
break;
17219
}}},
17220
_onkeyup:function(e){if(this._intervalIncrease!=null){switch(e.getKeyIdentifier()){case "Up":case "Down":case "PageUp":case "PageDown":this._timer.stop();
17221
this._intervalIncrease=null;
17222
this._intervalMode=null;
17223
}}},
17224
_onmousedown:function(e){if(!e.isLeftButtonPressed()){return;
17225
}this._checkValue(true);
17226
var vButton=e.getCurrentTarget();
17227
vButton.addState("pressed");
17228
vButton.addEventListener("mouseup",
17229
this._onmouseup,
17234
this);
17230
this);
17235
var vDoc=qx.ui.core.ClientDocument.getInstance();
17231
vButton.addEventListener("mouseout",
17236
vDoc.addEventListener("windowblur",
17232
this._onmouseup,
17237
this._testClosePopup,
17238
this);
17233
this);
17239
this.remapChildrenHandlingTo(l);
17234
this._intervalIncrease=vButton==this._upbutton;
17240
this.initEditable();
17235
this._resetIncrements();
17241
this.initTabIndex();
17236
this._increment();
17242
this.initWidth();
17237
if(this.getSelectTextOnInteract()){this._textfield.selectAll();
17243
this.initHeight();
17238
}this._timer.setInterval(this.getFirstInterval());
17244
this.initMinWidth();
17239
this._timer.start();
17245
},
17246
events:{"beforeInitialOpen":"qx.event.type.Event"},
17247
properties:{appearance:{refine:true,
17248
init:"combo-box"},
17249
allowStretchY:{refine:true,
17250
init:false},
17251
width:{refine:true,
17252
init:120},
17253
height:{refine:true,
17254
init:"auto"},
17255
minWidth:{refine:true,
17256
init:40},
17257
tabIndex:{refine:true,
17258
init:1},
17259
editable:{check:"Boolean",
17260
apply:"_applyEditable",
17261
event:"changeEditable",
17262
init:false},
17263
selected:{check:"qx.ui.form.ListItem",
17264
nullable:true,
17265
apply:"_applySelected",
17266
event:"changeSelected"},
17267
value:{check:"String",
17268
nullable:true,
17269
apply:"_applyValue",
17270
event:"changeValue"},
17271
pagingInterval:{check:"Integer",
17272
init:10}},
17273
members:{getManager:function(){return this._manager;
17274
},
17240
},
17275
getPopup:function(){return this._popup;
17241
_onmouseup:function(e){var vButton=e.getCurrentTarget();
17242
vButton.removeState("pressed");
17243
vButton.removeEventListener("mouseup",
17244
this._onmouseup,
17245
this);
17246
vButton.removeEventListener("mouseout",
17247
this._onmouseup,
17248
this);
17249
if(this.getSelectTextOnInteract()){this._textfield.selectAll();
17250
}this._textfield.setFocused(true);
17251
this._timer.stop();
17252
this._intervalIncrease=null;
17276
},
17253
},
17277
getList:function(){return this._list;
17254
_onmousewheel:function(e){this._checkValue(true);
17255
if(this.getManager().incrementValue){this.getManager().incrementValue(this.getWheelIncrementAmount()*e.getWheelDelta());
17256
}else{var value=this.getManager().getValue()+(this.getWheelIncrementAmount()*e.getWheelDelta());
17257
value=this.getManager().limit(value);
17258
this.getManager().setValue(value);
17259
}this._textfield.selectAll();
17278
},
17260
},
17279
getField:function(){return this._field;
17261
_ontextchange:function(e){this._last_value=e.getOldValue();
17280
},
17262
},
17281
getButton:function(){return this._button;
17263
_oninput:function(e){this._checkValue(true,
17264
true);
17282
},
17265
},
17283
_applySelected:function(value,
17266
_onchange:function(e){var vValue=this.getManager().getValue();
17284
old){this._fromSelected=true;
17267
if(this._numberFormat){this._textfield.setValue(this._numberFormat.format(vValue));
17285
if(!this._fromValue){this.setValue(value?value.getLabel().toString():"");
17268
}else{this._textfield.setValue(String(vValue));
17286
}this._manager.setLeadItem(value);
17269
}
17287
this._manager.setAnchorItem(value);
17270
if(vValue==this.getMin()&&!this.getWrap()){this._downbutton.removeState("pressed");
17288
if(value){this._manager.setSelectedItem(value);
17271
this._downbutton.setEnabled(false);
17289
}else{this._manager.deselectAll();
17272
this._timer.stop();
17290
}delete this._fromSelected;
17273
}else{this._downbutton.resetEnabled();
17274
}
17275
if(vValue==this.getMax()&&!this.getWrap()){this._upbutton.removeState("pressed");
17276
this._upbutton.setEnabled(false);
17277
this._timer.stop();
17278
}else{this._upbutton.resetEnabled();
17279
}this.createDispatchDataEvent("change",
17280
vValue);
17291
},
17281
},
17292
_applyValue:function(value,
17282
_onblur:function(e){this._checkValue(false);
17293
old){this._fromValue=true;
17294
if(!this._fromInput){if(this._field.getValue()==value){this._field.setValue(null);
17295
}this._field.setValue(value);
17296
}delete this._fromValue;
17297
},
17283
},
17298
_applyEditable:function(value,
17284
setValue:function(nValue){this.getManager().setValue(this.getManager().limit(nValue));
17299
old){var f=this._field;
17300
f.setReadOnly(!value);
17301
f.setCursor(value?null:"default");
17302
f.setSelectable(value);
17303
},
17285
},
17304
_oldSelected:null,
17286
getValue:function(){this._checkValue(true);
17305
_openPopup:function(){var p=this._popup;
17287
return this.getManager().getValue();
17306
var el=this.getElement();
17307
if(!p.isCreated()){this.createDispatchEvent("beforeInitialOpen");
17308
}
17309
if(this._list.getChildrenLength()==0){return;
17310
}p.positionRelativeTo(el,
17311
1,
17312
qx.html.Dimension.getBoxHeight(el));
17313
p.setWidth(this.getBoxWidth()-2);
17314
p.setParent(this.getTopLevelWidget());
17315
p.show();
17316
this._oldSelected=this.getSelected();
17317
this.setCapture(true);
17318
},
17288
},
17319
_closePopup:function(){this._popup.hide();
17289
resetValue:function(){this.getManager().resetValue();
17320
this.setCapture(false);
17321
},
17290
},
17322
_testClosePopup:function(){if(this._popup.isSeeable()){this._closePopup();
17291
setMax:function(vMax){return this.getManager().setMax(vMax);
17323
}},
17324
_togglePopup:function(){this._popup.isSeeable()?this._closePopup():this._openPopup();
17325
},
17292
},
17326
_onpopupappear:function(e){var vSelItem=this.getSelected();
17293
getMax:function(){return this.getManager().getMax();
17327
if(vSelItem){vSelItem.scrollIntoView();
17328
}},
17329
_oninput:function(e){this._fromInput=true;
17330
this.setValue(this._field.getComputedValue());
17331
var vSelected=this.getSelected();
17332
if(vSelected&&vSelected.getLabel()!=this.getValue()){this.resetSelected();
17333
}delete this._fromInput;
17334
},
17294
},
17335
_onbeforedisappear:function(e){this._testClosePopup();
17295
setMin:function(vMin){return this.getManager().setMin(vMin);
17336
},
17296
},
17337
_onlocalechange:function(e){var selected=this.getSelected();
17297
getMin:function(){return this.getManager().getMin();
17338
this._applySelected(selected,
17339
selected);
17340
},
17298
},
17341
_onmousedown:function(e){if(!e.isLeftButtonPressed()){return;
17299
_intervalIncrease:null,
17342
}var vTarget=e.getTarget();
17300
_oninterval:function(e){this._timer.stop();
17343
switch(vTarget){case this._field:if(this.getEditable()){break;
17301
this.setInterval(Math.max(this.getMinTimer(),
17344
}case this._button:this._button.addState("pressed");
17302
this.getInterval()-this.getTimerDecrease()));
17345
this._togglePopup();
17303
if(this._intervalMode=="page"){this._pageIncrement();
17346
this.setCapture(true);
17304
}else{if(this.getInterval()==this.getMinTimer()){this._computedIncrementAmount=this.getAmountGrowth()*this._computedIncrementAmount;
17347
break;
17305
}this._increment();
17348
default:break;
17306
}var wrap=this.getManager().getWrap();
17349
}e.stopPropagation();
17307
switch(this._intervalIncrease){case true:if(this.getValue()==this.getMax()&&!wrap){return;
17308
}case false:if(this.getValue()==this.getMin()&&!wrap){return;
17309
}}this._timer.restartWith(this.getInterval());
17350
},
17310
},
17351
_onclick:function(e){if(!e.isLeftButtonPressed()){return;
17311
__checkValue:function(acceptEmpty,
17352
}var vTarget=e.getTarget();
17312
acceptEdit){var el=this._textfield.getInputElement();
17353
switch(vTarget){case this._field:case this._button:case this:case this._list:break;
17313
if(!el){return;
17354
default:if(vTarget instanceof qx.ui.form.ListItem&&vTarget.getParent()==this._list){this._list._onmousedown(e);
17355
this.setSelected(this._list.getSelectedItem());
17356
this._closePopup();
17357
this.setFocused(true);
17358
}else if(this._popup.isSeeable()){this._popup.hide();
17359
this.setCapture(false);
17360
}}},
17361
_onmouseup:function(e){this._button.removeState("pressed");
17362
if(!this._popup.isSeeable()){this.setCapture(false);
17363
}},
17364
_onmouseover:function(e){var vTarget=e.getTarget();
17365
if(vTarget instanceof qx.ui.form.ListItem){var vManager=this._manager;
17366
vManager.deselectAll();
17367
vManager.setLeadItem(vTarget);
17368
vManager.setAnchorItem(vTarget);
17369
vManager.setSelectedItem(vTarget);
17370
}},
17371
_onmousewheel:function(e){if(!this._popup.isSeeable()){var toSelect;
17372
var isSelected=this.getSelected();
17373
if(e.getWheelDelta()<0){toSelect=isSelected?this._manager.getNext(isSelected):this._manager.getFirst();
17374
}else{toSelect=isSelected?this._manager.getPrevious(isSelected):this._manager.getLast();
17375
}
17314
}
17376
if(toSelect){this.setSelected(toSelect);
17315
if((el.value=="")||(el.value=="-")){if(!acceptEmpty){this.resetValue();
17377
}}else{var vTarget=e.getTarget();
17378
if(vTarget!=this&&vTarget.getParent()!=this._list){this._popup.hide();
17379
this.setCapture(false);
17380
}}},
17381
_onkeydown:function(e){var vManager=this._manager;
17382
var vVisible=this._popup.isSeeable();
17383
switch(e.getKeyIdentifier()){case "Enter":if(vVisible){this.setSelected(this._manager.getSelectedItem());
17384
this._closePopup();
17385
this.setFocused(true);
17386
}else{this._openPopup();
17387
}e.stopPropagation();
17388
return;
17389
case "Escape":if(vVisible){vManager.setLeadItem(this._oldSelected);
17390
vManager.setAnchorItem(this._oldSelected);
17391
vManager.setSelectedItem(this._oldSelected);
17392
this._field.setValue(this._oldSelected?this._oldSelected.getLabel():"");
17393
this._closePopup();
17394
this.setFocused(true);
17395
e.stopPropagation();
17396
}return;
17397
case "Down":if(e.isAltPressed()){this._togglePopup();
17398
return;
17399
}break;
17400
}},
17401
_onkeypress:function(e){var vVisible=this._popup.isSeeable();
17402
var vManager=this._manager;
17403
switch(e.getKeyIdentifier()){case "PageUp":if(!vVisible){var vPrevious;
17404
var vTemp=this.getSelected();
17405
if(vTemp){var vInterval=this.getPagingInterval();
17406
do{vPrevious=vTemp;
17407
}while(--vInterval&&(vTemp=vManager.getPrevious(vPrevious)));
17408
}else{vPrevious=vManager.getLast();
17409
}this.setSelected(vPrevious);
17410
return;
17411
}break;
17412
case "PageDown":if(!vVisible){var vNext;
17413
var vTemp=this.getSelected();
17414
if(vTemp){var vInterval=this.getPagingInterval();
17415
do{vNext=vTemp;
17416
}while(--vInterval&&(vTemp=vManager.getNext(vNext)));
17417
}else{vNext=vManager.getFirst();
17418
}this.setSelected(vNext||null);
17419
return;
17316
return;
17420
}break;
17317
}}else{var str_val=el.value;
17421
}if(!this.isEditable()||vVisible){this._list._onkeypress(e);
17318
var parsable_str;
17319
if(this._numberFormat){var groupSepEsc=qx.lang.String.escapeRegexpChars(qx.locale.Number.getGroupSeparator(this._numberFormat._locale)+"");
17320
var decimalSepEsc=qx.lang.String.escapeRegexpChars(qx.locale.Number.getDecimalSeparator(this._numberFormat._locale)+"");
17321
parsable_str=str_val.replace(new RegExp(decimalSepEsc),
17322
".");
17323
parsable_str=parsable_str.replace(new RegExp(groupSepEsc,
17324
"g"),
17325
"");
17326
}else{parsable_str=str_val;
17327
}var val=parseFloat(parsable_str);
17328
var limitedVal=this.getManager().limit(val);
17329
var oldValue=this.getManager().getValue();
17330
var fixedVal=limitedVal;
17331
if(isNaN(val)||(limitedVal!=val)||(val!=parsable_str)){if(acceptEdit){this._textfield.setValue(this._last_value);
17332
}else{if(isNaN(limitedVal)){fixedVal=oldValue;
17333
}else{fixedVal=limitedVal;
17334
}}}
17335
if(acceptEdit)return;
17336
var formattedValue;
17337
if(this._numberFormat){formattedValue=this._numberFormat.format(fixedVal);
17338
}else{formattedValue=String(fixedVal);
17339
}
17340
if((fixedVal===oldValue)&&(str_val!==formattedValue)){this._textfield.setValue(formattedValue);
17341
}this.getManager().setValue(fixedVal);
17422
}},
17342
}},
17423
_onkeyinput:function(e){var vVisible=this._popup.isSeeable();
17343
_increment:function(){if(this.getManager().incrementValue){this.getManager().incrementValue((this._intervalIncrease?1:-1)*this._computedIncrementAmount);
17424
if(!this.isEditable()||vVisible){this._list._onkeyinput(e);
17344
}else{var value=this.getManager().getValue()+((this._intervalIncrease?1:-1)*this._computedIncrementAmount);
17345
value=this.getManager().limit(value);
17346
this.getManager().setValue(value);
17425
}},
17347
}},
17426
_visualizeBlur:function(){this.getField()._visualizeBlur();
17348
_pageIncrement:function(){if(this.getManager().pageIncrementValue){this.getManager().pageIncrementValue();
17427
this.removeState("focused");
17349
}else{var value=this.getManager().getValue()+((this._intervalIncrease?1:-1)*this.getPageIncrementAmount());
17428
},
17350
value=this.getManager().limit(value);
17429
_visualizeFocus:function(){this.getField()._visualizeFocus();
17351
this.getManager().setValue(value);
17430
this.getField().selectAll();
17431
this.addState("focused");
17432
}},
17352
}},
17433
destruct:function(){if(this._popup&&!qx.core.Object.inGlobalDispose()){this._popup.setParent(null);
17353
_resetIncrements:function(){this._computedIncrementAmount=this.getIncrementAmount();
17434
}var vDoc=qx.ui.core.ClientDocument.getInstance();
17354
this.resetInterval();
17435
vDoc.removeEventListener("windowblur",
17355
}},
17436
this._testClosePopup,
17356
destruct:function(){var mgr=this.getManager();
17437
this);
17357
if(mgr){mgr.dispose();
17438
var vMgr=qx.locale.Manager.getInstance();
17358
}this._disposeObjects("_textfield",
17439
vMgr.removeEventListener("changeLocale",
17359
"_buttonlayout",
17440
this._onlocalechange,
17360
"_upbutton",
17441
this);
17361
"_downbutton",
17442
this._disposeObjects("_popup",
17362
"_timer");
17443
"_list",
17444
"_manager",
17445
"_field",
17446
"_button");
17447
}});
17363
}});
17448
17364
17449
17365
17450
17366
17451
17367
17368
/* ID: qx.util.range.IRange */
17369
qx.Interface.define("qx.util.range.IRange",
17370
{properties:{value:{},
17371
min:{},
17372
max:{},
17373
wrap:{}},
17374
members:{limit:function(value){return true;
17375
}}});
17376
17377
17378
17379
17380
/* ID: qx.util.range.Range */
17381
qx.Class.define("qx.util.range.Range",
17382
{extend:qx.core.Target,
17383
implement:[qx.util.range.IRange],
17384
events:{"change":"qx.event.type.Event"},
17385
properties:{value:{check:"!isNaN(value)&&value>=this.getMin()&&value<=this.getMax()",
17386
nullable:true,
17387
event:"change",
17388
init:0},
17389
precision:{check:"Integer",
17390
nullable:true,
17391
event:"change",
17392
init:0},
17393
min:{check:"Number",
17394
apply:"_applyMin",
17395
event:"change",
17396
init:0},
17397
max:{check:"Number",
17398
apply:"_applyMax",
17399
event:"change",
17400
init:100},
17401
wrap:{check:"Boolean",
17402
init:false}},
17403
members:{_applyMax:function(value,
17404
old){this.setValue(Math.min(this.getValue(),
17405
value));
17406
},
17407
_applyMin:function(value,
17408
old){this.setValue(Math.max(this.getValue(),
17409
value));
17410
},
17411
limit:function(value){var precision=this.getPrecision();
17412
if(precision!=null)var mover=Math.pow(10,
17413
precision);
17414
if(this.getWrap()){if(precision!=null){var value=Math.round(value*mover)/mover;
17415
}
17416
if(value<this.getMin()){return (this.getMax()-(this.getMin()-value))+1;
17417
}
17418
if(value>this.getMax()){return (this.getMin()+(value-this.getMax()))-1;
17419
}}
17420
if(value<this.getMin()){return this.getMin();
17421
}
17422
if(value>this.getMax()){return this.getMax();
17423
}
17424
if(precision!=null){return Math.round(value*mover)/mover;
17425
}else{return value;
17426
}}}});
17427
17428
17429
17430
17431
/* ID: qx.ui.form.TextArea */
17432
qx.Class.define("qx.ui.form.TextArea",
17433
{extend:qx.ui.form.TextField,
17434
properties:{appearance:{refine:true,
17435
init:"text-area"},
17436
allowStretchY:{refine:true,
17437
init:true},
17438
spellCheck:{refine:true,
17439
init:true},
17440
wrap:{check:"Boolean",
17441
init:true,
17442
apply:"_applyWrap"}},
17443
members:{_inputTag:"textarea",
17444
_inputType:null,
17445
_inputOverflow:"auto",
17446
_applyElement:function(value,
17447
old){this.base(arguments,
17448
value,
17449
old);
17450
this._styleWrap();
17451
},
17452
_applyWrap:function(value,
17453
old){this._styleWrap();
17454
},
17455
_styleWrap:qx.core.Variant.select("qx.client",
17456
{"mshtml":function(){if(this._inputElement){this._inputElement.wrap=this.getWrap()?"soft":"off";
17457
}},
17458
"gecko":function(){if(this._inputElement){var wrapValue=this.getWrap()?"soft":"off";
17459
var styleValue=this.getWrap()?"":"auto";
17460
this._inputElement.setAttribute('wrap',
17461
wrapValue);
17462
this._inputElement.style.overflow=styleValue;
17463
}},
17464
"default":function(){if(this._inputElement){this._inputElement.style.whiteSpace=this.getWrap()?"normal":"nowrap";
17465
}}}),
17466
_computePreferredInnerHeight:function(){return 60;
17467
}}});
17468
17469
17470
17471
17452
/* ID: qx.ui.groupbox.GroupBox */
17472
/* ID: qx.ui.groupbox.GroupBox */
17453
qx.Class.define("qx.ui.groupbox.GroupBox",
17473
qx.Class.define("qx.ui.groupbox.GroupBox",
17454
{extend:qx.ui.layout.CanvasLayout,
17474
{extend:qx.ui.layout.CanvasLayout,
Lines 18110-18222 Link Here
18110
old){value===true?this.addState("checked"):this.removeState("checked");
18130
old){value===true?this.addState("checked"):this.removeState("checked");
18111
},
18131
},
18112
execute:function(){this._processExecute();
18132
execute:function(){this._processExecute();
18113
this.base(arguments);
18133
this.base(arguments);
18114
},
18134
},
18115
_processExecute:function(){this.toggleChecked();
18135
_processExecute:function(){this.toggleChecked();
18116
}}});
18136
}}});
18117
18137
18118
18138
18119
18139
18120
18140
18121
/* ID: qx.ui.menu.RadioButton */
18141
/* ID: qx.ui.menu.RadioButton */
18122
qx.Class.define("qx.ui.menu.RadioButton",
18142
qx.Class.define("qx.ui.menu.RadioButton",
18123
{extend:qx.ui.menu.CheckBox,
18143
{extend:qx.ui.menu.CheckBox,
18124
properties:{appearance:{refine:true,
18144
properties:{appearance:{refine:true,
18125
init:"menu-radio-button"},
18145
init:"menu-radio-button"},
18126
manager:{check:"qx.ui.selection.RadioManager",
18146
manager:{check:"qx.ui.selection.RadioManager",
18127
nullable:true,
18147
nullable:true,
18128
apply:"_applyManager"}},
18148
apply:"_applyManager"}},
18129
members:{_applyChecked:function(value,
18149
members:{_applyChecked:function(value,
18130
old){this.base(arguments,
18150
old){this.base(arguments,
18131
value,
18151
value,
18132
old);
18152
old);
18133
var vManager=this.getManager();
18153
var vManager=this.getManager();
18134
if(vManager){vManager.handleItemChecked(this,
18154
if(vManager){vManager.handleItemChecked(this,
18135
value);
18155
value);
18136
}},
18137
_applyManager:function(value,
18138
old){if(old){old.remove(this);
18139
}
18140
if(value){value.add(this);
18141
}},
18142
_applyName:function(value,
18143
old){if(this.getManager()){this.getManager().setName(value);
18144
}},
18145
_processExecute:function(){this.setChecked(true);
18146
}}});
18147
18148
18149
18150
18151
/* ID: qx.ui.menubar.MenuBar */
18152
qx.Class.define("qx.ui.menubar.MenuBar",
18153
{extend:qx.ui.toolbar.ToolBar});
18154
18155
18156
18157
18158
/* ID: qx.ui.menubar.Button */
18159
qx.Class.define("qx.ui.menubar.Button",
18160
{extend:qx.ui.toolbar.MenuButton});
18161
18162
18163
18164
18165
/* ID: qx.event.type.DragEvent */
18166
qx.Class.define("qx.event.type.DragEvent",
18167
{extend:qx.event.type.MouseEvent,
18168
construct:function(vType,
18169
vMouseEvent,
18170
vTarget,
18171
vRelatedTarget){this._mouseEvent=vMouseEvent;
18172
var vOriginalTarget=null;
18173
switch(vType){case "dragstart":case "dragover":vOriginalTarget=vMouseEvent.getOriginalTarget();
18174
}this.base(arguments,
18175
vType,
18176
vMouseEvent.getDomEvent(),
18177
vTarget.getElement(),
18178
vTarget,
18179
vOriginalTarget,
18180
vRelatedTarget);
18181
},
18182
members:{getMouseEvent:function(){return this._mouseEvent;
18183
},
18184
startDrag:function(){if(this.getType()!="dragstart"){throw new Error("qx.event.type.DragEvent startDrag can only be called during the dragstart event: "+this.getType());
18185
}this.stopPropagation();
18186
qx.event.handler.DragAndDropHandler.getInstance().startDrag();
18187
},
18188
addData:function(sType,
18189
oData){qx.event.handler.DragAndDropHandler.getInstance().addData(sType,
18190
oData);
18191
},
18192
getData:function(sType){return qx.event.handler.DragAndDropHandler.getInstance().getData(sType);
18193
},
18194
clearData:function(){qx.event.handler.DragAndDropHandler.getInstance().clearData();
18195
},
18196
getDropDataTypes:function(){return qx.event.handler.DragAndDropHandler.getInstance().getDropDataTypes();
18197
},
18198
addAction:function(sAction){qx.event.handler.DragAndDropHandler.getInstance().addAction(sAction);
18199
},
18200
removeAction:function(sAction){qx.event.handler.DragAndDropHandler.getInstance().removeAction(sAction);
18201
},
18202
getAction:function(){return qx.event.handler.DragAndDropHandler.getInstance().getCurrentAction();
18203
},
18204
clearActions:function(){qx.event.handler.DragAndDropHandler.getInstance().clearActions();
18205
},
18206
setFeedbackWidget:function(widget,
18207
deltaX,
18208
deltaY,
18209
autoDisposeWidget){qx.event.handler.DragAndDropHandler.getInstance().setFeedbackWidget(widget,
18210
deltaX,
18211
deltaY,
18212
autoDisposeWidget);
18213
},
18214
setCursorPosition:function(deltaX,
18215
deltaY){qx.event.handler.DragAndDropHandler.getInstance().setCursorPosition(deltaX,
18216
deltaY);
18217
}},
18156
}},
18218
destruct:function(){this._disposeFields("_mouseEvent");
18157
_applyManager:function(value,
18219
}});
18158
old){if(old){old.remove(this);
18159
}
18160
if(value){value.add(this);
18161
}},
18162
_applyName:function(value,
18163
old){if(this.getManager()){this.getManager().setName(value);
18164
}},
18165
_processExecute:function(){this.setChecked(true);
18166
}}});
18167
18168
18169
18170
18171
/* ID: qx.ui.menubar.Button */
18172
qx.Class.define("qx.ui.menubar.Button",
18173
{extend:qx.ui.toolbar.MenuButton});
18174
18175
18176
18177
18178
/* ID: qx.ui.menubar.MenuBar */
18179
qx.Class.define("qx.ui.menubar.MenuBar",
18180
{extend:qx.ui.toolbar.ToolBar});
18220
18181
18221
18182
18222
18183
Lines 18438-18517 Link Here
18438
if(vNewCursor!=vOldCursor){vNewCursor._style.display="";
18399
if(vNewCursor!=vOldCursor){vNewCursor._style.display="";
18439
}this.__cursor=vNewCursor;
18400
}this.__cursor=vNewCursor;
18440
},
18401
},
18441
supportsDrop:function(vWidget){var vTypes=vWidget.getDropDataTypes();
18402
supportsDrop:function(vWidget){var vTypes=vWidget.getDropDataTypes();
18442
if(!vTypes){return false;
18403
if(!vTypes){return false;
18443
}
18404
}
18444
for(var i=0;i<vTypes.length;i++){if(vTypes[i] in this.__data){return true;
18405
for(var i=0;i<vTypes.length;i++){if(vTypes[i] in this.__data){return true;
18445
}}return false;
18406
}}return false;
18407
},
18408
addAction:function(vAction,
18409
vForce){this.__actions[vAction]=true;
18410
if(vForce||this.getCurrentAction()==null){this.setCurrentAction(vAction);
18411
}},
18412
clearActions:function(){this.__actions={};
18413
this.setCurrentAction(null);
18414
},
18415
removeAction:function(vAction){delete this.__actions[vAction];
18416
if(this.getCurrentAction()==vAction){this.setCurrentAction(null);
18417
}},
18418
setAction:function(vAction){if(vAction!=null&&!(vAction in this.__actions)){this.addAction(vAction,
18419
true);
18420
}else{this.setCurrentAction(vAction);
18421
}},
18422
_evalNewAction:function(vKeyShift,
18423
vKeyCtrl,
18424
vKeyAlt){if(vKeyShift&&vKeyCtrl&&"alias" in this.__actions){return "alias";
18425
}else if(vKeyShift&&vKeyAlt&&"copy" in this.__actions){return "copy";
18426
}else if(vKeyShift&&"move" in this.__actions){return "move";
18427
}else if(vKeyAlt&&"alias" in this.__actions){return "alias";
18428
}else if(vKeyCtrl&&"copy" in this.__actions){return "copy";
18429
}else{for(var vAction in this.__actions){return vAction;
18430
}}return null;
18431
},
18432
setFeedbackWidget:function(widget,
18433
deltaX,
18434
deltaY,
18435
autoDisposeWidget){this.__feedbackWidget=widget;
18436
this.__feedbackDeltaX=(deltaX!=null)?deltaX:10;
18437
this.__feedbackDeltaY=(deltaY!=null)?deltaY:10;
18438
this.__feedbackAutoDispose=autoDisposeWidget?true:false;
18439
},
18440
_renderFeedbackWidget:function(){if(this.__feedbackWidget){this.__feedbackWidget.setVisibility(true);
18441
this.__feedbackWidget._renderRuntimeLeft(this.__dragCache.pageX+this.__feedbackDeltaX);
18442
this.__feedbackWidget._renderRuntimeTop(this.__dragCache.pageY+this.__feedbackDeltaY);
18443
}}},
18444
destruct:function(){this._disposeObjectDeep("__cursors",
18445
1);
18446
this._disposeObjects("__feedbackWidget");
18447
this._disposeFields("__dragCache",
18448
"__data",
18449
"__actions",
18450
"__lastDestinationEvent");
18451
}});
18452
18453
18454
18455
18456
/* ID: qx.event.type.DragEvent */
18457
qx.Class.define("qx.event.type.DragEvent",
18458
{extend:qx.event.type.MouseEvent,
18459
construct:function(vType,
18460
vMouseEvent,
18461
vTarget,
18462
vRelatedTarget){this._mouseEvent=vMouseEvent;
18463
var vOriginalTarget=null;
18464
switch(vType){case "dragstart":case "dragover":vOriginalTarget=vMouseEvent.getOriginalTarget();
18465
}this.base(arguments,
18466
vType,
18467
vMouseEvent.getDomEvent(),
18468
vTarget.getElement(),
18469
vTarget,
18470
vOriginalTarget,
18471
vRelatedTarget);
18472
},
18473
members:{getMouseEvent:function(){return this._mouseEvent;
18474
},
18475
startDrag:function(){if(this.getType()!="dragstart"){throw new Error("qx.event.type.DragEvent startDrag can only be called during the dragstart event: "+this.getType());
18476
}this.stopPropagation();
18477
qx.event.handler.DragAndDropHandler.getInstance().startDrag();
18478
},
18479
addData:function(sType,
18480
oData){qx.event.handler.DragAndDropHandler.getInstance().addData(sType,
18481
oData);
18482
},
18483
getData:function(sType){return qx.event.handler.DragAndDropHandler.getInstance().getData(sType);
18484
},
18485
clearData:function(){qx.event.handler.DragAndDropHandler.getInstance().clearData();
18486
},
18487
getDropDataTypes:function(){return qx.event.handler.DragAndDropHandler.getInstance().getDropDataTypes();
18488
},
18489
addAction:function(sAction){qx.event.handler.DragAndDropHandler.getInstance().addAction(sAction);
18490
},
18491
removeAction:function(sAction){qx.event.handler.DragAndDropHandler.getInstance().removeAction(sAction);
18492
},
18493
getAction:function(){return qx.event.handler.DragAndDropHandler.getInstance().getCurrentAction();
18494
},
18495
clearActions:function(){qx.event.handler.DragAndDropHandler.getInstance().clearActions();
18496
},
18497
setFeedbackWidget:function(widget,
18498
deltaX,
18499
deltaY,
18500
autoDisposeWidget){qx.event.handler.DragAndDropHandler.getInstance().setFeedbackWidget(widget,
18501
deltaX,
18502
deltaY,
18503
autoDisposeWidget);
18504
},
18505
setCursorPosition:function(deltaX,
18506
deltaY){qx.event.handler.DragAndDropHandler.getInstance().setCursorPosition(deltaX,
18507
deltaY);
18508
}},
18509
destruct:function(){this._disposeFields("_mouseEvent");
18510
}});
18511
18512
18513
18514
18515
/* ID: qx.html.Iframe */
18516
qx.Class.define("qx.html.Iframe",
18517
{statics:{getWindow:qx.core.Variant.select("qx.client",
18518
{"mshtml":function(vIframe){try{return vIframe.contentWindow;
18519
}catch(ex){return null;
18520
}},
18521
"default":function(vIframe){try{var vDoc=qx.html.Iframe.getDocument(vIframe);
18522
return vDoc?vDoc.defaultView:null;
18523
}catch(ex){return null;
18524
}}}),
18525
getDocument:qx.core.Variant.select("qx.client",
18526
{"mshtml":function(vIframe){try{var vWin=qx.html.Iframe.getWindow(vIframe);
18527
return vWin?vWin.document:null;
18528
}catch(ex){return null;
18529
}},
18530
"default":function(vIframe){try{return vIframe.contentDocument;
18531
}catch(ex){return null;
18532
}}}),
18533
getBody:function(vIframe){var vDoc=qx.html.Iframe.getDocument(vIframe);
18534
return vDoc?vDoc.getElementsByTagName("body")[0]:null;
18535
}}});
18536
18537
18538
18539
18540
/* ID: qx.io.remote.AbstractRemoteTransport */
18541
qx.Class.define("qx.io.remote.AbstractRemoteTransport",
18542
{type:"abstract",
18543
extend:qx.core.Target,
18544
construct:function(){this.base(arguments);
18545
},
18546
events:{"created":"qx.event.type.Event",
18547
"configured":"qx.event.type.Event",
18548
"sending":"qx.event.type.Event",
18549
"receiving":"qx.event.type.Event",
18550
"completed":"qx.event.type.Event",
18551
"aborted":"qx.event.type.Event",
18552
"failed":"qx.event.type.Event",
18553
"timeout":"qx.event.type.Event"},
18554
properties:{url:{check:"String",
18555
nullable:true},
18556
method:{check:"String",
18557
nullable:true},
18558
asynchronous:{check:"Boolean",
18559
nullable:true},
18560
data:{check:"String",
18561
nullable:true},
18562
username:{check:"String",
18563
nullable:true},
18564
password:{check:"String",
18565
nullable:true},
18566
state:{check:["created",
18567
"configured",
18568
"sending",
18569
"receiving",
18570
"completed",
18571
"aborted",
18572
"timeout",
18573
"failed"],
18574
init:"created",
18575
event:"changeState",
18576
apply:"_applyState"},
18577
requestHeaders:{check:"Object",
18578
nullable:true},
18579
parameters:{check:"Object",
18580
nullable:true},
18581
formFields:{check:"Object",
18582
nullable:true},
18583
responseType:{check:"String",
18584
nullable:true},
18585
useBasicHttpAuth:{check:"Boolean",
18586
nullable:true}},
18587
members:{send:function(){throw new Error("send is abstract");
18588
},
18589
abort:function(){{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.warn("Aborting...");
18590
}};
18591
this.setState("aborted");
18592
},
18593
timeout:function(){{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.warn("Timeout...");
18594
}};
18595
this.setState("timeout");
18596
},
18597
failed:function(){{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.warn("Failed...");
18598
}};
18599
this.setState("failed");
18600
},
18601
setRequestHeader:function(vLabel,
18602
vValue){throw new Error("setRequestHeader is abstract");
18603
},
18604
getResponseHeader:function(vLabel){throw new Error("getResponseHeader is abstract");
18605
},
18606
getResponseHeaders:function(){throw new Error("getResponseHeaders is abstract");
18607
},
18608
getStatusCode:function(){throw new Error("getStatusCode is abstract");
18609
},
18610
getStatusText:function(){throw new Error("getStatusText is abstract");
18446
},
18611
},
18447
addAction:function(vAction,
18612
getResponseText:function(){throw new Error("getResponseText is abstract");
18448
vForce){this.__actions[vAction]=true;
18449
if(vForce||this.getCurrentAction()==null){this.setCurrentAction(vAction);
18450
}},
18451
clearActions:function(){this.__actions={};
18452
this.setCurrentAction(null);
18453
},
18613
},
18454
removeAction:function(vAction){delete this.__actions[vAction];
18614
getResponseXml:function(){throw new Error("getResponseXml is abstract");
18455
if(this.getCurrentAction()==vAction){this.setCurrentAction(null);
18456
}},
18457
setAction:function(vAction){if(vAction!=null&&!(vAction in this.__actions)){this.addAction(vAction,
18458
true);
18459
}else{this.setCurrentAction(vAction);
18460
}},
18461
_evalNewAction:function(vKeyShift,
18462
vKeyCtrl,
18463
vKeyAlt){if(vKeyShift&&vKeyCtrl&&"alias" in this.__actions){return "alias";
18464
}else if(vKeyShift&&vKeyAlt&&"copy" in this.__actions){return "copy";
18465
}else if(vKeyShift&&"move" in this.__actions){return "move";
18466
}else if(vKeyAlt&&"alias" in this.__actions){return "alias";
18467
}else if(vKeyCtrl&&"copy" in this.__actions){return "copy";
18468
}else{for(var vAction in this.__actions){return vAction;
18469
}}return null;
18470
},
18615
},
18471
setFeedbackWidget:function(widget,
18616
getFetchedLength:function(){throw new Error("getFetchedLength is abstract");
18472
deltaX,
18473
deltaY,
18474
autoDisposeWidget){this.__feedbackWidget=widget;
18475
this.__feedbackDeltaX=(deltaX!=null)?deltaX:10;
18476
this.__feedbackDeltaY=(deltaY!=null)?deltaY:10;
18477
this.__feedbackAutoDispose=autoDisposeWidget?true:false;
18478
},
18617
},
18479
_renderFeedbackWidget:function(){if(this.__feedbackWidget){this.__feedbackWidget.setVisibility(true);
18618
_applyState:function(value,
18480
this.__feedbackWidget._renderRuntimeLeft(this.__dragCache.pageX+this.__feedbackDeltaX);
18619
old){{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.debug("State: "+value);
18481
this.__feedbackWidget._renderRuntimeTop(this.__dragCache.pageY+this.__feedbackDeltaY);
18620
}};
18482
}}},
18621
switch(value){case "created":this.createDispatchEvent("created");
18483
destruct:function(){this._disposeObjectDeep("__cursors",
18622
break;
18484
1);
18623
case "configured":this.createDispatchEvent("configured");
18485
this._disposeObjects("__feedbackWidget");
18624
break;
18486
this._disposeFields("__dragCache",
18625
case "sending":this.createDispatchEvent("sending");
18487
"__data",
18626
break;
18488
"__actions",
18627
case "receiving":this.createDispatchEvent("receiving");
18489
"__lastDestinationEvent");
18628
break;
18490
}});
18629
case "completed":this.createDispatchEvent("completed");
18491
18630
break;
18492
18631
case "aborted":this.createDispatchEvent("aborted");
18493
18632
break;
18494
18633
case "failed":this.createDispatchEvent("failed");
18495
/* ID: qx.html.Iframe */
18634
break;
18496
qx.Class.define("qx.html.Iframe",
18635
case "timeout":this.createDispatchEvent("timeout");
18497
{statics:{getWindow:qx.core.Variant.select("qx.client",
18636
break;
18498
{"mshtml":function(vIframe){try{return vIframe.contentWindow;
18637
}return true;
18499
}catch(ex){return null;
18500
}},
18501
"default":function(vIframe){try{var vDoc=qx.html.Iframe.getDocument(vIframe);
18502
return vDoc?vDoc.defaultView:null;
18503
}catch(ex){return null;
18504
}}}),
18505
getDocument:qx.core.Variant.select("qx.client",
18506
{"mshtml":function(vIframe){try{var vWin=qx.html.Iframe.getWindow(vIframe);
18507
return vWin?vWin.document:null;
18508
}catch(ex){return null;
18509
}},
18510
"default":function(vIframe){try{return vIframe.contentDocument;
18511
}catch(ex){return null;
18512
}}}),
18513
getBody:function(vIframe){var vDoc=qx.html.Iframe.getDocument(vIframe);
18514
return vDoc?vDoc.getElementsByTagName("body")[0]:null;
18515
}}});
18638
}}});
18516
18639
18517
18640
Lines 18724-18910 Link Here
18724
value.setAsynchronous(vRequest.getAsynchronous());
18847
value.setAsynchronous(vRequest.getAsynchronous());
18725
value.setUsername(vRequest.getUsername());
18848
value.setUsername(vRequest.getUsername());
18726
value.setPassword(vRequest.getPassword());
18849
value.setPassword(vRequest.getPassword());
18727
value.setParameters(vRequest.getParameters());
18850
value.setParameters(vRequest.getParameters());
18728
value.setFormFields(vRequest.getFormFields());
18851
value.setFormFields(vRequest.getFormFields());
18729
value.setRequestHeaders(vRequest.getRequestHeaders());
18852
value.setRequestHeaders(vRequest.getRequestHeaders());
18730
value.setData(vRequest.getData());
18853
value.setData(vRequest.getData());
18731
value.setResponseType(vRequest.getResponseType());
18854
value.setResponseType(vRequest.getResponseType());
18732
value.addEventListener("sending",
18855
value.addEventListener("sending",
18733
this._onsending,
18856
this._onsending,
18734
this);
18857
this);
18735
value.addEventListener("receiving",
18858
value.addEventListener("receiving",
18736
this._onreceiving,
18859
this._onreceiving,
18737
this);
18860
this);
18738
value.addEventListener("completed",
18861
value.addEventListener("completed",
18739
this._oncompleted,
18862
this._oncompleted,
18740
this);
18863
this);
18741
value.addEventListener("aborted",
18864
value.addEventListener("aborted",
18742
this._onabort,
18865
this._onabort,
18743
this);
18866
this);
18744
value.addEventListener("timeout",
18867
value.addEventListener("timeout",
18745
this._ontimeout,
18868
this._ontimeout,
18746
this);
18869
this);
18747
value.addEventListener("failed",
18870
value.addEventListener("failed",
18748
this._onfailed,
18871
this._onfailed,
18749
this);
18872
this);
18750
}},
18873
}},
18751
_applyState:function(value,
18752
old){{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.debug("State: "+old+" => "+value);
18753
}};
18754
switch(value){case "sending":this.createDispatchEvent("sending");
18755
break;
18756
case "receiving":this.createDispatchEvent("receiving");
18757
break;
18758
case "completed":case "aborted":case "timeout":case "failed":var vImpl=this.getImplementation();
18759
if(!vImpl){break;
18760
}
18761
if(this.hasEventListeners(value)){var vResponse=new qx.io.remote.Response(value);
18762
if(value=="completed"){var vContent=vImpl.getResponseContent();
18763
vResponse.setContent(vContent);
18764
if(vContent===null){{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.debug("Altered State: "+value+" => failed");
18765
}};
18766
value="failed";
18767
}}vResponse.setStatusCode(vImpl.getStatusCode());
18768
vResponse.setResponseHeaders(vImpl.getResponseHeaders());
18769
this.dispatchEvent(vResponse);
18770
}this.setImplementation(null);
18771
vImpl.dispose();
18772
break;
18773
}}},
18774
settings:{"qx.ioRemoteDebug":false,
18775
"qx.ioRemoteDebugData":false},
18776
destruct:function(){var vImpl=this.getImplementation();
18777
if(vImpl){this.setImplementation(null);
18778
vImpl.dispose();
18779
}this.setRequest(null);
18780
}});
18781
18782
18783
18784
18785
/* ID: qx.io.remote.Response */
18786
qx.Class.define("qx.io.remote.Response",
18787
{extend:qx.event.type.Event,
18788
construct:function(eventType){this.base(arguments,
18789
eventType);
18790
},
18791
properties:{state:{check:"Integer",
18792
nullable:true},
18793
statusCode:{check:"Integer",
18794
nullable:true},
18795
content:{nullable:true},
18796
responseHeaders:{check:"Object",
18797
nullable:true}},
18798
members:{getResponseHeader:function(vHeader){var vAll=this.getResponseHeaders();
18799
if(vAll){return vAll[vHeader]||null;
18800
}return null;
18801
},
18802
getData:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,
18803
"This method is no longer needed since the event object is now an instance of the Response class.");
18804
return this;
18805
}}});
18806
18807
18808
18809
18810
/* ID: qx.io.remote.AbstractRemoteTransport */
18811
qx.Class.define("qx.io.remote.AbstractRemoteTransport",
18812
{type:"abstract",
18813
extend:qx.core.Target,
18814
construct:function(){this.base(arguments);
18815
},
18816
events:{"created":"qx.event.type.Event",
18817
"configured":"qx.event.type.Event",
18818
"sending":"qx.event.type.Event",
18819
"receiving":"qx.event.type.Event",
18820
"completed":"qx.event.type.Event",
18821
"aborted":"qx.event.type.Event",
18822
"failed":"qx.event.type.Event",
18823
"timeout":"qx.event.type.Event"},
18824
properties:{url:{check:"String",
18825
nullable:true},
18826
method:{check:"String",
18827
nullable:true},
18828
asynchronous:{check:"Boolean",
18829
nullable:true},
18830
data:{check:"String",
18831
nullable:true},
18832
username:{check:"String",
18833
nullable:true},
18834
password:{check:"String",
18835
nullable:true},
18836
state:{check:["created",
18837
"configured",
18838
"sending",
18839
"receiving",
18840
"completed",
18841
"aborted",
18842
"timeout",
18843
"failed"],
18844
init:"created",
18845
event:"changeState",
18846
apply:"_applyState"},
18847
requestHeaders:{check:"Object",
18848
nullable:true},
18849
parameters:{check:"Object",
18850
nullable:true},
18851
formFields:{check:"Object",
18852
nullable:true},
18853
responseType:{check:"String",
18854
nullable:true},
18855
useBasicHttpAuth:{check:"Boolean",
18856
nullable:true}},
18857
members:{send:function(){throw new Error("send is abstract");
18858
},
18859
abort:function(){{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.warn("Aborting...");
18860
}};
18861
this.setState("aborted");
18862
},
18863
timeout:function(){{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.warn("Timeout...");
18864
}};
18865
this.setState("timeout");
18866
},
18867
failed:function(){{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.warn("Failed...");
18868
}};
18869
this.setState("failed");
18870
},
18871
setRequestHeader:function(vLabel,
18872
vValue){throw new Error("setRequestHeader is abstract");
18873
},
18874
getResponseHeader:function(vLabel){throw new Error("getResponseHeader is abstract");
18875
},
18876
getResponseHeaders:function(){throw new Error("getResponseHeaders is abstract");
18877
},
18878
getStatusCode:function(){throw new Error("getStatusCode is abstract");
18879
},
18880
getStatusText:function(){throw new Error("getStatusText is abstract");
18881
},
18882
getResponseText:function(){throw new Error("getResponseText is abstract");
18883
},
18884
getResponseXml:function(){throw new Error("getResponseXml is abstract");
18885
},
18886
getFetchedLength:function(){throw new Error("getFetchedLength is abstract");
18887
},
18888
_applyState:function(value,
18874
_applyState:function(value,
18889
old){{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.debug("State: "+value);
18875
old){{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.debug("State: "+old+" => "+value);
18890
}};
18876
}};
18891
switch(value){case "created":this.createDispatchEvent("created");
18877
switch(value){case "sending":this.createDispatchEvent("sending");
18892
break;
18893
case "configured":this.createDispatchEvent("configured");
18894
break;
18895
case "sending":this.createDispatchEvent("sending");
18896
break;
18878
break;
18897
case "receiving":this.createDispatchEvent("receiving");
18879
case "receiving":this.createDispatchEvent("receiving");
18898
break;
18880
break;
18899
case "completed":this.createDispatchEvent("completed");
18881
case "completed":case "aborted":case "timeout":case "failed":var vImpl=this.getImplementation();
18900
break;
18882
if(!vImpl){break;
18901
case "aborted":this.createDispatchEvent("aborted");
18883
}
18902
break;
18884
if(this.hasEventListeners(value)){var vResponse=new qx.io.remote.Response(value);
18903
case "failed":this.createDispatchEvent("failed");
18885
if(value=="completed"){var vContent=vImpl.getResponseContent();
18904
break;
18886
vResponse.setContent(vContent);
18905
case "timeout":this.createDispatchEvent("timeout");
18887
if(vContent===null){{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.debug("Altered State: "+value+" => failed");
18888
}};
18889
value="failed";
18890
}}vResponse.setStatusCode(vImpl.getStatusCode());
18891
vResponse.setResponseHeaders(vImpl.getResponseHeaders());
18892
this.dispatchEvent(vResponse);
18893
}this.setImplementation(null);
18894
vImpl.dispose();
18906
break;
18895
break;
18907
}return true;
18896
}}},
18897
settings:{"qx.ioRemoteDebug":false,
18898
"qx.ioRemoteDebugData":false},
18899
destruct:function(){var vImpl=this.getImplementation();
18900
if(vImpl){this.setImplementation(null);
18901
vImpl.dispose();
18902
}this.setRequest(null);
18903
}});
18904
18905
18906
18907
18908
/* ID: qx.io.remote.Response */
18909
qx.Class.define("qx.io.remote.Response",
18910
{extend:qx.event.type.Event,
18911
construct:function(eventType){this.base(arguments,
18912
eventType);
18913
},
18914
properties:{state:{check:"Integer",
18915
nullable:true},
18916
statusCode:{check:"Integer",
18917
nullable:true},
18918
content:{nullable:true},
18919
responseHeaders:{check:"Object",
18920
nullable:true}},
18921
members:{getResponseHeader:function(vHeader){var vAll=this.getResponseHeaders();
18922
if(vAll){return vAll[vHeader]||null;
18923
}return null;
18924
},
18925
getData:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,
18926
"This method is no longer needed since the event object is now an instance of the Response class.");
18927
return this;
18908
}}});
18928
}}});
18909
18929
18910
18930
Lines 18995-19003 Link Here
18995
}while(i<input.length);
19015
}while(i<input.length);
18996
return output;
19016
return output;
18997
};
19017
};
18998
vRequest.onreadystatechange=qx.lang.Function.bind(this._onreadystatechange,
19018
var xxx=qx.lang.Function.bind(this._onreadystatechange,
18999
this);
19019
this);
19000
if(this.getUsername()){if(this.getUseBasicHttpAuth()){vRequest.open(vMethod,
19020
if(vAsynchronous){vRequest.onreadystatechange=xxx;
19021
}if(this.getUsername()){if(this.getUseBasicHttpAuth()){vRequest.open(vMethod,
19001
vUrl,
19022
vUrl,
19002
vAsynchronous);
19023
vAsynchronous);
19003
vRequest.setRequestHeader('Authorization',
19024
vRequest.setRequestHeader('Authorization',
Lines 19023-19029 Link Here
19023
"send");
19044
"send");
19024
this.failed();
19045
this.failed();
19025
}return;
19046
}return;
19026
}if(!vAsynchronous){this._onreadystatechange();
19047
}if(!vAsynchronous){xxx();
19027
}},
19048
}},
19028
failedLocally:function(){if(this.getState()==="failed"){return;
19049
failedLocally:function(){if(this.getState()==="failed"){return;
19029
}this.warn("Could not load from file: "+this.getUrl());
19050
}this.warn("Could not load from file: "+this.getUrl());
Lines 19253-19480 Link Here
19253
}this._form.action=vUrl;
19274
}this._form.action=vUrl;
19254
this._form.method=vMethod;
19275
this._form.method=vMethod;
19255
this._data.appendChild(document.createTextNode(this.getData()));
19276
this._data.appendChild(document.createTextNode(this.getData()));
19256
this._form.submit();
19277
this._form.submit();
19257
this.setState("sending");
19278
this.setState("sending");
19258
},
19259
_onload:function(e){if(this._form.src){return;
19260
}this._switchReadyState(qx.io.remote.IframeTransport._numericMap.complete);
19261
},
19262
_onreadystatechange:function(e){this._switchReadyState(qx.io.remote.IframeTransport._numericMap[this._frame.readyState]);
19263
},
19264
_switchReadyState:function(vReadyState){switch(this.getState()){case "completed":case "aborted":case "failed":case "timeout":this.warn("Ignore Ready State Change");
19265
return;
19266
}while(this._lastReadyState<vReadyState){this.setState(qx.io.remote.Exchange._nativeMap[++this._lastReadyState]);
19267
}},
19268
setRequestHeader:function(vLabel,
19269
vValue){},
19270
getResponseHeader:function(vLabel){return null;
19271
},
19272
getResponseHeaders:function(){return {};
19273
},
19274
getStatusCode:function(){return 200;
19275
},
19276
getStatusText:function(){return "";
19277
},
19278
getIframeWindow:function(){return qx.html.Iframe.getWindow(this._frame);
19279
},
19280
getIframeDocument:function(){return qx.html.Iframe.getDocument(this._frame);
19281
},
19282
getIframeBody:function(){return qx.html.Iframe.getBody(this._frame);
19283
},
19284
getIframeTextContent:function(){var vBody=this.getIframeBody();
19285
if(!vBody){return null;
19286
}
19287
if(!vBody.firstChild){return "";
19288
}if(vBody.firstChild.tagName&&vBody.firstChild.tagName.toLowerCase()=="pre"){return vBody.firstChild.innerHTML;
19289
}else{return vBody.innerHTML;
19290
}},
19291
getIframeHtmlContent:function(){var vBody=this.getIframeBody();
19292
return vBody?vBody.innerHTML:null;
19293
},
19294
getFetchedLength:function(){return 0;
19295
},
19296
getResponseContent:function(){if(this.getState()!=="completed"){{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.warn("Transfer not complete, ignoring content!");
19297
}};
19298
return null;
19299
}{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.debug("Returning content for responseType: "+this.getResponseType());
19300
}};
19301
var vText=this.getIframeTextContent();
19302
switch(this.getResponseType()){case qx.util.Mime.TEXT:{if(qx.core.Setting.get("qx.ioRemoteDebugData")){this.debug("Response: "+this._responseContent);
19303
}};
19304
return vText;
19305
break;
19306
case qx.util.Mime.HTML:vText=this.getIframeHtmlContent();
19307
{if(qx.core.Setting.get("qx.ioRemoteDebugData")){this.debug("Response: "+this._responseContent);
19308
}};
19309
return vText;
19310
break;
19311
case qx.util.Mime.JSON:vText=this.getIframeHtmlContent();
19312
{if(qx.core.Setting.get("qx.ioRemoteDebugData")){this.debug("Response: "+this._responseContent);
19313
}};
19314
try{return vText&&vText.length>0?qx.io.Json.parseQx(vText):null;
19315
}catch(ex){return this.error("Could not execute json: ("+vText+")",
19316
ex);
19317
}case qx.util.Mime.JAVASCRIPT:vText=this.getIframeHtmlContent();
19318
{if(qx.core.Setting.get("qx.ioRemoteDebugData")){this.debug("Response: "+this._responseContent);
19319
}};
19320
try{return vText&&vText.length>0?window.eval(vText):null;
19321
}catch(ex){return this.error("Could not execute javascript: ("+vText+")",
19322
ex);
19323
}case qx.util.Mime.XML:vText=this.getIframeDocument();
19324
{if(qx.core.Setting.get("qx.ioRemoteDebugData")){this.debug("Response: "+this._responseContent);
19325
}};
19326
return vText;
19327
default:this.warn("No valid responseType specified ("+this.getResponseType()+")!");
19328
return null;
19329
}}},
19330
defer:function(statics,
19331
members,
19332
properties){qx.io.remote.Exchange.registerType(qx.io.remote.IframeTransport,
19333
"qx.io.remote.IframeTransport");
19334
},
19335
destruct:function(){if(this._frame){this._frame.onload=null;
19336
this._frame.onreadystatechange=null;
19337
if(qx.core.Variant.isSet("qx.client",
19338
"gecko")){this._frame.src=qx.io.Alias.getInstance().resolve("static/image/blank.gif");
19339
}document.body.removeChild(this._frame);
19340
}
19341
if(this._form){document.body.removeChild(this._form);
19342
}this._disposeFields("_frame",
19343
"_form");
19344
}});
19345
19346
19347
19348
19349
/* ID: qx.io.remote.RequestQueue */
19350
qx.Class.define("qx.io.remote.RequestQueue",
19351
{type:"singleton",
19352
extend:qx.core.Target,
19353
construct:function(){this.base(arguments);
19354
this._queue=[];
19355
this._active=[];
19356
this._totalRequests=0;
19357
this._timer=new qx.client.Timer(500);
19358
this._timer.addEventListener("interval",
19359
this._oninterval,
19360
this);
19361
},
19362
properties:{enabled:{init:true,
19363
check:"Boolean",
19364
apply:"_applyEnabled"},
19365
maxTotalRequests:{check:"Integer",
19366
nullable:true},
19367
maxConcurrentRequests:{check:"Integer",
19368
init:3},
19369
defaultTimeout:{check:"Integer",
19370
init:5000}},
19371
members:{_debug:function(){var vText=this._active.length+"/"+(this._queue.length+this._active.length);
19372
{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.debug("Progress: "+vText);
19373
window.status="Request-Queue Progress: "+vText;
19374
}};
19375
},
19376
_check:function(){this._debug();
19377
if(this._active.length==0&&this._queue.length==0){this._timer.stop();
19378
}if(!this.getEnabled()){return;
19379
}if(this._active.length>=this.getMaxConcurrentRequests()||this._queue.length==0){return;
19380
}if(this.getMaxTotalRequests()!=null&&this._totalRequests>=this.getMaxTotalRequests()){return;
19381
}var vRequest=this._queue.shift();
19382
var vTransport=new qx.io.remote.Exchange(vRequest);
19383
this._totalRequests++;
19384
this._active.push(vTransport);
19385
this._debug();
19386
vTransport.addEventListener("sending",
19387
vRequest._onsending,
19388
vRequest);
19389
vTransport.addEventListener("receiving",
19390
vRequest._onreceiving,
19391
vRequest);
19392
vTransport.addEventListener("completed",
19393
vRequest._oncompleted,
19394
vRequest);
19395
vTransport.addEventListener("aborted",
19396
vRequest._onaborted,
19397
vRequest);
19398
vTransport.addEventListener("timeout",
19399
vRequest._ontimeout,
19400
vRequest);
19401
vTransport.addEventListener("failed",
19402
vRequest._onfailed,
19403
vRequest);
19404
vTransport.addEventListener("sending",
19405
this._onsending,
19406
this);
19407
vTransport.addEventListener("completed",
19408
this._oncompleted,
19409
this);
19410
vTransport.addEventListener("aborted",
19411
this._oncompleted,
19412
this);
19413
vTransport.addEventListener("timeout",
19414
this._oncompleted,
19415
this);
19416
vTransport.addEventListener("failed",
19417
this._oncompleted,
19418
this);
19419
vTransport._start=(new Date).valueOf();
19420
vTransport.send();
19421
if(this._queue.length>0){this._check();
19422
}},
19423
_remove:function(vTransport){qx.lang.Array.remove(this._active,
19424
vTransport);
19425
vTransport.dispose();
19426
this._check();
19427
},
19279
},
19428
_activeCount:0,
19280
_onload:function(e){if(this._form.src){return;
19429
_onsending:function(e){{if(qx.core.Setting.get("qx.ioRemoteDebug")){this._activeCount++;
19281
}this._switchReadyState(qx.io.remote.IframeTransport._numericMap.complete);
19430
e.getTarget()._counted=true;
19431
this.debug("ActiveCount: "+this._activeCount);
19432
}};
19433
},
19282
},
19434
_oncompleted:function(e){{if(qx.core.Setting.get("qx.ioRemoteDebug")){if(e.getTarget()._counted){this._activeCount--;
19283
_onreadystatechange:function(e){this._switchReadyState(qx.io.remote.IframeTransport._numericMap[this._frame.readyState]);
19435
this.debug("ActiveCount: "+this._activeCount);
19436
}}};
19437
this._remove(e.getTarget());
19438
},
19284
},
19439
_oninterval:function(e){var vActive=this._active;
19285
_switchReadyState:function(vReadyState){switch(this.getState()){case "completed":case "aborted":case "failed":case "timeout":this.warn("Ignore Ready State Change");
19440
if(vActive.length==0){this._timer.stop();
19441
return;
19286
return;
19442
}var vCurrent=(new Date).valueOf();
19287
}while(this._lastReadyState<vReadyState){this.setState(qx.io.remote.Exchange._nativeMap[++this._lastReadyState]);
19443
var vTransport;
19288
}},
19444
var vRequest;
19289
setRequestHeader:function(vLabel,
19445
var vDefaultTimeout=this.getDefaultTimeout();
19290
vValue){},
19446
var vTimeout;
19291
getResponseHeader:function(vLabel){return null;
19447
var vTime;
19448
for(var i=vActive.length-1;i>=0;i--){vTransport=vActive[i];
19449
vRequest=vTransport.getRequest();
19450
if(vRequest.isAsynchronous()){vTimeout=vRequest.getTimeout();
19451
if(vTimeout==0){continue;
19452
}
19453
if(vTimeout==null){vTimeout=vDefaultTimeout;
19454
}vTime=vCurrent-vTransport._start;
19455
if(vTime>vTimeout){this.warn("Timeout: transport "+vTransport.toHashCode());
19456
this.warn(vTime+"ms > "+vTimeout+"ms");
19457
vTransport.timeout();
19458
}}}},
19459
_applyEnabled:function(value,
19460
old){if(value){this._check();
19461
}this._timer.setEnabled(value);
19462
},
19292
},
19463
add:function(vRequest){vRequest.setState("queued");
19293
getResponseHeaders:function(){return {};
19464
this._queue.push(vRequest);
19294
},
19465
this._check();
19295
getStatusCode:function(){return 200;
19466
if(this.getEnabled()){this._timer.start();
19296
},
19297
getStatusText:function(){return "";
19298
},
19299
getIframeWindow:function(){return qx.html.Iframe.getWindow(this._frame);
19300
},
19301
getIframeDocument:function(){return qx.html.Iframe.getDocument(this._frame);
19302
},
19303
getIframeBody:function(){return qx.html.Iframe.getBody(this._frame);
19304
},
19305
getIframeTextContent:function(){var vBody=this.getIframeBody();
19306
if(!vBody){return null;
19307
}
19308
if(!vBody.firstChild){return "";
19309
}if(vBody.firstChild.tagName&&vBody.firstChild.tagName.toLowerCase()=="pre"){return vBody.firstChild.innerHTML;
19310
}else{return vBody.innerHTML;
19467
}},
19311
}},
19468
abort:function(vRequest){var vTransport=vRequest.getTransport();
19312
getIframeHtmlContent:function(){var vBody=this.getIframeBody();
19469
if(vTransport){vTransport.abort();
19313
return vBody?vBody.innerHTML:null;
19470
}else if(qx.lang.Array.contains(this._queue,
19314
},
19471
vRequest)){qx.lang.Array.remove(this._queue,
19315
getFetchedLength:function(){return 0;
19472
vRequest);
19316
},
19317
getResponseContent:function(){if(this.getState()!=="completed"){{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.warn("Transfer not complete, ignoring content!");
19318
}};
19319
return null;
19320
}{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.debug("Returning content for responseType: "+this.getResponseType());
19321
}};
19322
var vText=this.getIframeTextContent();
19323
switch(this.getResponseType()){case qx.util.Mime.TEXT:{if(qx.core.Setting.get("qx.ioRemoteDebugData")){this.debug("Response: "+this._responseContent);
19324
}};
19325
return vText;
19326
break;
19327
case qx.util.Mime.HTML:vText=this.getIframeHtmlContent();
19328
{if(qx.core.Setting.get("qx.ioRemoteDebugData")){this.debug("Response: "+this._responseContent);
19329
}};
19330
return vText;
19331
break;
19332
case qx.util.Mime.JSON:vText=this.getIframeHtmlContent();
19333
{if(qx.core.Setting.get("qx.ioRemoteDebugData")){this.debug("Response: "+this._responseContent);
19334
}};
19335
try{return vText&&vText.length>0?qx.io.Json.parseQx(vText):null;
19336
}catch(ex){return this.error("Could not execute json: ("+vText+")",
19337
ex);
19338
}case qx.util.Mime.JAVASCRIPT:vText=this.getIframeHtmlContent();
19339
{if(qx.core.Setting.get("qx.ioRemoteDebugData")){this.debug("Response: "+this._responseContent);
19340
}};
19341
try{return vText&&vText.length>0?window.eval(vText):null;
19342
}catch(ex){return this.error("Could not execute javascript: ("+vText+")",
19343
ex);
19344
}case qx.util.Mime.XML:vText=this.getIframeDocument();
19345
{if(qx.core.Setting.get("qx.ioRemoteDebugData")){this.debug("Response: "+this._responseContent);
19346
}};
19347
return vText;
19348
default:this.warn("No valid responseType specified ("+this.getResponseType()+")!");
19349
return null;
19473
}}},
19350
}}},
19474
destruct:function(){this._disposeObjectDeep("_active",
19351
defer:function(statics,
19475
1);
19352
members,
19476
this._disposeObjects("_timer");
19353
properties){qx.io.remote.Exchange.registerType(qx.io.remote.IframeTransport,
19477
this._disposeFields("_queue");
19354
"qx.io.remote.IframeTransport");
19355
},
19356
destruct:function(){if(this._frame){this._frame.onload=null;
19357
this._frame.onreadystatechange=null;
19358
if(qx.core.Variant.isSet("qx.client",
19359
"gecko")){this._frame.src=qx.io.Alias.getInstance().resolve("static/image/blank.gif");
19360
}document.body.removeChild(this._frame);
19361
}
19362
if(this._form){document.body.removeChild(this._form);
19363
}this._disposeFields("_frame",
19364
"_form");
19478
}});
19365
}});
19479
19366
19480
19367
Lines 19680-19685 Link Here
19680
19567
19681
19568
19682
19569
19570
/* ID: qx.io.remote.RequestQueue */
19571
qx.Class.define("qx.io.remote.RequestQueue",
19572
{type:"singleton",
19573
extend:qx.core.Target,
19574
construct:function(){this.base(arguments);
19575
this._queue=[];
19576
this._active=[];
19577
this._totalRequests=0;
19578
this._timer=new qx.client.Timer(500);
19579
this._timer.addEventListener("interval",
19580
this._oninterval,
19581
this);
19582
},
19583
properties:{enabled:{init:true,
19584
check:"Boolean",
19585
apply:"_applyEnabled"},
19586
maxTotalRequests:{check:"Integer",
19587
nullable:true},
19588
maxConcurrentRequests:{check:"Integer",
19589
init:3},
19590
defaultTimeout:{check:"Integer",
19591
init:5000}},
19592
members:{_debug:function(){var vText=this._active.length+"/"+(this._queue.length+this._active.length);
19593
{if(qx.core.Setting.get("qx.ioRemoteDebug")){this.debug("Progress: "+vText);
19594
window.status="Request-Queue Progress: "+vText;
19595
}};
19596
},
19597
_check:function(){this._debug();
19598
if(this._active.length==0&&this._queue.length==0){this._timer.stop();
19599
}if(!this.getEnabled()){return;
19600
}if((this._queue.length>0&&this._queue[0].isAsynchronous()&&this._active.length>=this.getMaxConcurrentRequests())||this._queue.length==0){return;
19601
}if(this.getMaxTotalRequests()!=null&&this._totalRequests>=this.getMaxTotalRequests()){return;
19602
}var vRequest=this._queue.shift();
19603
var vTransport=new qx.io.remote.Exchange(vRequest);
19604
this._totalRequests++;
19605
this._active.push(vTransport);
19606
this._debug();
19607
vTransport.addEventListener("sending",
19608
vRequest._onsending,
19609
vRequest);
19610
vTransport.addEventListener("receiving",
19611
vRequest._onreceiving,
19612
vRequest);
19613
vTransport.addEventListener("completed",
19614
vRequest._oncompleted,
19615
vRequest);
19616
vTransport.addEventListener("aborted",
19617
vRequest._onaborted,
19618
vRequest);
19619
vTransport.addEventListener("timeout",
19620
vRequest._ontimeout,
19621
vRequest);
19622
vTransport.addEventListener("failed",
19623
vRequest._onfailed,
19624
vRequest);
19625
vTransport.addEventListener("sending",
19626
this._onsending,
19627
this);
19628
vTransport.addEventListener("completed",
19629
this._oncompleted,
19630
this);
19631
vTransport.addEventListener("aborted",
19632
this._oncompleted,
19633
this);
19634
vTransport.addEventListener("timeout",
19635
this._oncompleted,
19636
this);
19637
vTransport.addEventListener("failed",
19638
this._oncompleted,
19639
this);
19640
vTransport._start=(new Date).valueOf();
19641
vTransport.send();
19642
if(this._queue.length>0){this._check();
19643
}},
19644
_remove:function(vTransport){qx.lang.Array.remove(this._active,
19645
vTransport);
19646
vTransport.dispose();
19647
this._check();
19648
},
19649
_activeCount:0,
19650
_onsending:function(e){{if(qx.core.Setting.get("qx.ioRemoteDebug")){this._activeCount++;
19651
e.getTarget()._counted=true;
19652
this.debug("ActiveCount: "+this._activeCount);
19653
}};
19654
},
19655
_oncompleted:function(e){{if(qx.core.Setting.get("qx.ioRemoteDebug")){if(e.getTarget()._counted){this._activeCount--;
19656
this.debug("ActiveCount: "+this._activeCount);
19657
}}};
19658
this._remove(e.getTarget());
19659
},
19660
_oninterval:function(e){var vActive=this._active;
19661
if(vActive.length==0){this._timer.stop();
19662
return;
19663
}var vCurrent=(new Date).valueOf();
19664
var vTransport;
19665
var vRequest;
19666
var vDefaultTimeout=this.getDefaultTimeout();
19667
var vTimeout;
19668
var vTime;
19669
for(var i=vActive.length-1;i>=0;i--){vTransport=vActive[i];
19670
vRequest=vTransport.getRequest();
19671
if(vRequest.isAsynchronous()){vTimeout=vRequest.getTimeout();
19672
if(vTimeout==0){continue;
19673
}
19674
if(vTimeout==null){vTimeout=vDefaultTimeout;
19675
}vTime=vCurrent-vTransport._start;
19676
if(vTime>vTimeout){this.warn("Timeout: transport "+vTransport.toHashCode());
19677
this.warn(vTime+"ms > "+vTimeout+"ms");
19678
vTransport.timeout();
19679
}}}},
19680
_applyEnabled:function(value,
19681
old){if(value){this._check();
19682
}this._timer.setEnabled(value);
19683
},
19684
add:function(vRequest){vRequest.setState("queued");
19685
if(vRequest.isAsynchronous())this._queue.push(vRequest);
19686
else this._queue.unshift(vRequest);
19687
this._check();
19688
if(this.getEnabled()){this._timer.start();
19689
}},
19690
abort:function(vRequest){var vTransport=vRequest.getTransport();
19691
if(vTransport){vTransport.abort();
19692
}else if(qx.lang.Array.contains(this._queue,
19693
vRequest)){qx.lang.Array.remove(this._queue,
19694
vRequest);
19695
}}},
19696
destruct:function(){this._disposeObjectDeep("_active",
19697
1);
19698
this._disposeObjects("_timer");
19699
this._disposeFields("_queue");
19700
}});
19701
19702
19703
19704
19683
/* ID: qx.ui.embed.Iframe */
19705
/* ID: qx.ui.embed.Iframe */
19684
qx.Class.define("qx.ui.embed.Iframe",
19706
qx.Class.define("qx.ui.embed.Iframe",
19685
{extend:qx.ui.basic.Terminator,
19707
{extend:qx.ui.basic.Terminator,
(-)js/qx.js (-167 / +167 lines)
Lines 1-191 Link Here
1
$=["","qx.client","Boolean","auto","qx.event.type.Event","Integer","String","none","string","right",';',"left","mousedown","mshtml","pressed","completed","keydown","bottom","singleton","Number","top","gecko","mouseup","on",".","set","scroll","failed","object","sending","width","height","timeout","aborted",'computed=this.',"abandoned","hidden","function","px","receiving","keypress","0","solid","over","style",'=value;',"Enter",":","other",'this.',"number","abstract","0px","click","absolute","off","100%","center","boolean","active","Left","mouseover","middle","overflow","Right","undefined","qx.ui.core.Widget","div","borderTopWidth","Up","maximized","configured","borderLeftWidth","minWidth","maxWidth","maxHeight","Down","minHeight","position",";","init","frame","load"," ","Space","interval","qx.event.type.MouseEvent","PageUp","keyup","input","Color","CSS1Compat","selected","&","qx.io.remote.Response","error",'</span>','if(this.',"qx.event.type.DataEvent","PageDown","locationX",",",'}',"shorthand","dblclick","mouseout","reset","change","qx.aspects",'"',"both","scrollY","scrollX","locationY","get","]","inherit","vertical",'delete this.',"Object","unstyle","Theme","checked","fixed","changeValue","Control","body","NumLock","execute","Escape","created","unload","horizontal","icon",'!==undefined)',"/","Alt","-","1*","translucent","*","ie4+","Shift","qx.event.type.DragEvent","filter",")","refresh","webkit","mousemove","dragover","Home","qx.ui.popup.ToolTipManager","qx.ui.menu.Manager","marginTop","opera","_","normal","khtml","display","marginLeft","qx.ui.menu.Menu","1px","End","alias","copy","_applyChecked","qx.ui.popup.PopupManager","dotted","qx.event.type.FocusEvent","Delete","groove","double","9","%","A","overflowX","qx.ui.selection.RadioManager","dragstart","static","overflowY","\n","_applyIcon",'return this.','else if(this.',"mousewheel","disabled","qx.event.type.KeyEvent","dashed","Tab","_applyManager","outset","Backspace","inset","appear","?","label","ridge","=","queued","blur","MozOutline","white","resize","Insert","hand","1px dotted invert","_applyResizable","$",'!==undefined){',"_applyValue","fontSize","marginBottom","Unidentified","_manager","outline","paddingTop","widget","left-reversed","this.","contextmenu","changeLocale","top-reversed","textarea","Meta","focused","marginRight","minimized",'=true;',"middle-reversed","center-reversed",'old=this.',"paddingBottom","move","color",": ","qx.event.handler.DragAndDropHandler","focus","PrintScreen","border-box","iframe","opaque","qx.ui.popup.ToolTip","paddingLeft","_applyClip","textAlign","paddingRight","+","safari2","Pause","_labelObject","only_plus","beforeunload","100px","focusin","text","value","_applyLabel","down","short","dragenter","_applyName","changeSelected","qx.ui.embed.IframeManager","qx.deprecationWarnings","justify","focusout","Scroll","_applySelected","=''","changeShow","changeChecked","_applyWrap","disappear",'","',"-moz-scrollbars-vertical","  ","lead","}","bold","Apps","Label","-moz-scrollbars-horizontal","n-resize","windowblur","_timer","dragdrop","Win","_applyTextAlign","qx.resourceUri","g","changeState",'typeof value === "number" && isFinite(value)',"pointer","qx.io.remote.XmlHttpTransport","qx.io.remote.IframeTransport","default","_applyState","_iconObject","lastChild",')',"keyinput","only_minus","_applyEnabled","qx.ui.form.Button","underline","e-resize","qx.ui.core.Parent","_frame",'",value);',"zIndex","Connection dropped","dragout","_childrenQueue","a","_compute","F1","(","addAtEnd","treeClose","appearances","_applyEditable","nowrap","removeAll","cursor","indexOf","qx.application.Gui","Content-Type","addAfter","win","_element","nw-resize","F2","__init$","fontStyle","'","&lt;","_list","styleTop","plus","F12","dragleave","log","borderBottomWidth","parent","_layout","F3","8",":content-box;","6","up","meta","gecko|opera|webkit","padding","nocache","tabIndex","F11","opacity","qx.ui.embed.Flash","styleRight","KhtmlOpacity","unknown","styleLeft","F4","7","windowresize","_applySource","Value",":border-box;","no-cache","MozUserSelect","line","F10","backgroundRepeat","clipHeight","soft","italic","_invalidate",'  </div>',"Assertion Failure","Pragma","fontWeight",'if(old===computed)return value;',"KhtmlUserSelect","noComputed","F5","4","]);",'else ','<span class="objectBox-number">',"removeChild","treeOpenWhileEmpty","colors","changeSource","alignLeft","character","Ready","barBottom","|","treeOpenWithContent",'";',"colorBottom","beforeDisappear","5","F6","DOMMouseScroll","widthBottom","addAt",'undefined',"CapsLock","#FCE1D8","drag","qx.allowUrlSettings","cross","Array","whiteSpace","qx.io.image.Preloader","toggle","colorTop","2","F7","-khtml-box-sizing","add","]\n","borderRightWidth","page","0 none","qx.enableAspect","Cache-Control","ne-resize","margin","_pane","_recompute","3","F8","&#","(a[","backgroundImage","qx.io.remote.AbstractRemoteTransport","text/css","F9","qx.allowUrlVariants","file:","alignRight","hasComputed","minus","styleBottom","widthRight","before","_applyMenu","dragexit","{","toString","clipTop","qx.ui.pageview.AbstractPage","lazyopaque","static/image/blank.gif","qx.event.type.ChangeEvent"," messages removed)","boxSizing","anchor",'.$$properties.',"qx.log.appender.Native","changeEnabled","fonts",'if(computed===undefined)computed=null;',"textDecoration","_applyElement","qx.util.range.IRange","_objects","qx.ui.pageview.AbstractButton","draggesture","Function","fontFamily","widthTop","end","first","Margin","v","&amp;",":constructor","addBefore","event","1","Padding","<br>","icons","colorRight","addAtBegin","backgroundColor","dragend","qx.client.Command","_blocker","concat","qx.core.Object",'!(',"qx.ui.form.ListItem","MozOpacity","Z","ignore","__user$","readonly","return this.","qx.ui.window.Window","tree-folder","barTop","changeName","head","qx.ui.window.Manager","slice","qx.io.remote.Exchange","qx.event.handler.FocusHandler","[","WebkitUserSelect","qx.io.remote.Request","removeAt","dragmove","clipLeft",'@import "',"Element","borders",'',"lineHeight","onscroll","widgets","userSelect","();","widthLeft","clipWidth","qx.client.NativeWindow",'if(old===undefined)old=null;',"remove","colorLeft","changeSelection","lastIndexOf","s","\r\n","menu-button-arrow","qx.Class.","_focusHandler","Border",'    * { box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box }',"_applyActive","_valueOriginalTarget","__feedbackWidget","pre","javascript:void(0)","Linux","borderBottomStyle","Font","Use proxy","qx.ui.menu.CheckBox","resizableEast","qx.Interface","qx.ui.tree.TreeFolder",'value !== null && window.document','    <input id="marker" type="button" value="Add divider"/> &#160; &#160; Filter: <input name="filter" id="filter" type="text" value="',"qx.ui.form.TextField",')a[i].',"_applyFocusRoot","qx.ui.basic.Inline","_applyAllowClose","Not implemented","localeCompare",'    html, body, input, pre{ font-size: 11px; font-family: Tahoma, sans-serif; line-height : 1 }','var inherit=prop.$$inherit;',"Not modified","_applyLocale","text-field","./resource","pixelBottom","menu-layout"," (nightly)","_cachedVisibleChildren","_applyText","qx.html.Dimension","_applyFont","Use getValue() instead!","_applySpacing","Macintosh","_hideTimer","tab-view-pane"," - ","progress","static/html/blank.html","qx.lang.Core","__inherit$","matches","changeBorderTheme","Use removeHtmlProperty instead","radio-button","_applySize","border","resizableNorth","qx.core.Log.debug","this.removeStyleProperty('padding","Partial content","MacPPC","quote","Print","qx.application"," &nbsp;","__onload","qx.Class","qx.logAppender","qx.event.handler.EventHandler","Win32","qx.iconTheme","forEach","1.0","qx.ui.menu.Separator",'  <div id="control">',"autoComplete",' is not (yet) ready!");',"changeElement","key_full_Meta","(measure start) ","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='","Height","qx.version","qx.log.appender.Window","_layoutChanges","changeParent","_applyMarginBottom","_applySelectable","_applyPreloader","qx.bom.element.Dimension","_applyAnchorItem","cursor:","application/x-www-form-urlencoded","extend","Pixel","qx.ui.toolbar.RadioButton","_applyBackgroundImage","firefox","qx.ui.menu.MenuLayoutImpl","n","changeTextColor","borderBottom",'computed=value;',"qx.boxModelCorrection"," WARN:  ",'Does not allow any arguments!',"__states",'return value;'," DEBUG: ","complete","_horizontalLayout","changeAnonymous","key_short_NumLock","qx.locale.Manager","key_short_Left","_applyOpen","toolbar-button","qx.io.image.Manager","OmniWeb","_applyMinHeight","[^\\.0-9]","key_short_Right","ms","See other",'!',"-webkit-box-sizing","tree-icon","_data_","_showTimer","qx.net.Http","line-through","qx.ui.form.ComboBox","_captionTitle",'if(!clazz.$$propertiesAttached)qx.core.Property.attach(clazz);',"changeActiveChild","U",']._autoCloseWindow()}catch(e){}">',"_applyShowInterval","var a=arguments[0] instanceof Array?arguments[0]:arguments;",'</div>',"C","Bad gateway",'value !== null && value.$$type === "Mixin"',"_applyBoundToWidget","icon/16/places/folder.png","qx.ui.pageview.AbstractPane","gray","split","_applyBackgroundRepeat","Log window message: Starting error recording, any errors below this line will prevent the log window from closing","list",'=computed;',"qx.ui.popup.Popup","qx.locale.Key","Type","qx.util.format.NumberFormat","replace","qx.ui.menubar.MenuBar","qx.io.Alias","_captionBar","<hr/>","_applyBottom","tab-view-button","_valueRelatedTarget","changeResizeMethod",":constructor wrapper","_closeTimer","_applyRootOpenClose",'value !== null && value.$$type === "Interface"',"qx.Mixin","_applyBorder","beforeAppear",'">',"_applyRight","__cache","_applyMax","_check","o","_indentObject","property","qx.ui.layout.BoxLayout","_applyMaxHeight","Galeon","force","after","userFocus","tab-view-page","parentPaddingBottom","qx.lang.Generics","qx.ui.basic.ScrollBar","key_short_End","warn","changeLeadItem",'  <div id="lines">',"client-document-blocker","push","qx.core.Log.error","qx.log.DefaultFilter","qx.util.Normalization","key_full_Win","Log window message: Stopping error recording, discarding ","key_full_Up","key_full_PrintScreen","_selectedItems","hasOwnProperty","qx.ui.basic.Image","_applyColorBottom","_atom","_icons","key_short_Delete","Request-URL too large","Not acceptable","toolbar-part-handle-line","_applyAllowMaximize",'_treeRowStructureFields','typeof value === "number" && isFinite(value) && value%1 === 0',"_applyNumberFormat","_buttonlayout",'!(value instanceof ','value !== null && qx.theme.manager.Font.getInstance().isDynamic(value)',"qx.html.Scroll","changeIcon","html,body { margin:0;border:0;padding:0; } ","_applyMin","_applyStretchChildrenOrthogonalAxis","<img style=\"position:absolute;top:0px;left:","pixelHeight","qx.ui.pageview.AbstractBar"," !important","_lastMouseDownDispatchTarget","key_full_Control",'(backup);',"[Mixin ","Tabulator","__all","_applyFocused","lines","qx.ui.tree.Tree",'if(computed===inherit){',"qx.log.Filter","_scrollBar","key_full_Down","Connection closed by server","native","key_full_Alt","PgDn","_applyScrolling","borderTop",'<body onload="qx = opener.qx;" onunload="try{qx.log.WindowAppender._registeredAppenders[',"sort","key_full_Space","qx.ui.pageview.tabview.TabView",'  </style>',"safari","scrollbar-blocker","_applyPaddingTop","qx.ui.core.Font","changeEditable","qx.ui.layout.impl.LayoutImpl","_applyCheckValueFunction",';}',"changeRight","\\\"","unshift","Ins","menu-check-box","Windows","tab-view-bar",'!==undefined&&',"iconSelected","getFirstActiveChild","qx.core.Log.info","Null","changeFont","_applyOverflow",'<iframe name="','value instanceof Date',"/static","borderLeftStyle","window-captionbar-restore-button",'if((computed===undefined||computed===inherit)&&','character',"_applyHideInterval","transparent","_applyReadOnly","BODY","_applyIncrementAmount","qx.ui.form.InputCheckSymbol","changeFocusedChild",'(value);',"changeHtml","changeColorTheme"," errors have been recorded, keeping log window open.</b>","a=qx.lang.Array.fromShortHand(qx.lang.Array.fromArguments(a));","(passed time: ",">>> ",'_labelObject','<span class="objectBox-function">',"last","_resetRuntime","_handle","qooxdoo","Moved temporarily","_applyButton",'    hr { border: 0 none; border-bottom: 1px solid #ccc; margin: 8px 0; padding: 0; height: 1px }','if(clazz.$$includes){var mixins=clazz.$$flatIncludes;','wrap',"scrolling","verticalAlign","substring","[object Error]","match",'#',"https://","destructor","icon/16/status/folder-open.png",'value !== null && value.$$type === "Class"',"_applyAutoSync","ValueExact","  at ",'typeof value === "string" && qx.util.ColorUtil.isValid(value)',"key_short_Backspace","__",'var a=this.getChildren();if(a)for(var i=0,l=a.length;i<l;i++){',"qx.ui.layout.impl.VerticalBoxLayoutImpl","qx.log.appender.HtmlElement","parentPaddingLeft","debug","_applyAppearance","_blockerNode","_styleProperties","_applyOpacity","qx.html.Offset","reverseChildrenOrder",",height=","qxvariant",'if(mixins[i].$$constructor){mixins[i].$$constructor.apply(this,arguments);}}}',"Alpha(Opacity=",'Authorization',"charAt","_applyBorderTheme","\\$1","parentPaddingRight","_applyZIndex","')","_aliases","check-box","_applyOpenInterval","window","px\" src=\"",'var backup=computed;',"_applyPaddingLeft","qx.core.LegacyProperty","true","_lastUpDownType",'for(var i=0,l=mixins.length;i<l;i++){',"_applyFontTheme","Please use getKeyIdentifier() instead.","_applyTabIndex",'if(this.classname===',"start_plus","qx.debug",'if(value!==inherit)',"key_short_Scroll","HTTP version not supported",'if(a[i].',"(!this.","font-size:","single","MSXML2.XMLHTTP.4.0","qx.locale.LocalizedString","combo-box-popup","qx.ui.menubar.Button","changeBackgroundColor","qx.fontTheme","[Interface ","_translationCatalog","qx.theme.manager.Color","_restoreButton","nodrop","_captionFlex",'var clazz=arguments.callee.constructor;',"borderTopStyle","window-captionbar-close-button","__useinit$","changeModal",'Undefined value is not allowed!',"Interface","__actions","window-statusbar","qx.bom.element.Style",'Is invalid!',"colorInnerBottom","id","netnewswire","qx.ui.layout.HorizontalBoxLayout","': ","&gt;","client-document","borderRightStyle","changeMoveMethod","X-Qooxdoo-Response-Type","key_short_Space",'</span></td>',"_markerBtn","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","_applyMaxLength","Firefox","-moz-box-sizing","img","_showTimeStamp","_field","Gray() Alpha(Opacity=30)","_htmlAttributes",'){',"qx.application.IApplication","key_short_CapsLock","qx.minLogLevel","anonymous: ","MozBoxSizing"," (#","Use getUseDoubleClick instead","_closeButtonImage","spinner-button-down","tree-element-label","0.0","info","__onmouseevent","key_full_Scroll","=((v==null)?0:v)+'px'","_valueDomEvent","qx.io.remote.RequestQueue","_applyColorInnerBottom","qx.ui.toolbar.CheckBox","_applyLeft","window-captionbar","_borderElement","[object ","_maximizeButton","qx.appearanceTheme","Server timeout","__onwindowblur","clip","Mozilla","Log window message: <b>Note: ","_applyCloseInterval","dir",'</span></td></tr>',"Server error",'var prop=qx.core.Property;',"changeBottom","width=500,height=250,dependent=yes,resizable=yes,status=no,location=no,menubar=no,toolbar=no,scrollbars=no",'<table>',"qx.ui.resizer.IResizable","Del","_mouseEvent","_layoutImpl","_applyShowCloseButton","_cached","0px none",'<span class="selectorId">#',')prop.error(this,5,"',"qx.theme.manager.Icon","qx.core.Version","Num","_openTimer","tree-folder-icon","toLocaleUpperCase",'&nbsp;<span class="nodeName">','\", "',"Width","qx.theme.manager.Border","pixelWidth","_applyVerticalChildrenAlign","group-box","__manager","qx.log.Logger","key_full_PageDown","  [not readable: ","key_full_Escape","ae","initial","_computed","_applyShowClose","tab-view","_applyTheme","0x","__key","_requestHeaders"," ms) ","_applyPage","omniweb",'-','!==inherit){',"changeOpen","changeFocused","changeTheme","qx.eventMonitorNoListeners","key_short_Insert",'X',"end_minus","getLastActiveChild",'value !== null && (qx.locale.Manager.getInstance().isDynamic(value) || typeof value === "string")',"_fields","_applyIconWidth","_lastMouseEventDate","_statusBar","_queue","_applyGlobalCursor","_applyStyleBottom","MaxWidth","image","qx.core.Package","_applyInterval","galeon","join","qx.ui.resizer.MResizable","qx.html.StyleSheet","_appenderArr","AppleWebKit","Legacy properties are deprecated","Use setHtmlProperty instead","_remappingChildTable","toolbar=no,scrollbars=no,resizable=yes,","qx.ui.core.ClientDocument","qx.util.manager.Object","right-reversed","toolbar-part-handle","qx.ui.form.RadioButton",">","other gecko","form","qx.util.Compare","no","resizer-frame","qx.ui.groupbox.GroupBox","qx.ui.basic.Atom","Percent","window-captionbar-icon","_applyBackgroundColor","combo-box-button","_applyCaption","qx.colorTheme","http://",'.classname)this.$$initialized=true;',"menu-radio-button","_applyResponseType","_valueData",'else{',"key_full_Enter","qx.core.Init","_applyHorizontalChildrenAlign","Ae",'<span class="selectorTag">',"Conflict",'#lines { width: 100%; height: expression((document.body.offsetHeight - 30) + "px"); }',"changeCapture","map","O","__theme$","_applyShowMaximize",'value !== null && value.nodeType !== undefined',"_filterArr",'></iframe>',"Ctrl","key_short_Home","rgb(",'computed=undefined;delete this.',"RealPlayer","_lastMouseEventType","font-style:","qx.core.Log.assert","_applyMarginTop","_applyHoverItem","Microsoft.XMLHTTP",'return retval;',"_applyVisibility",'if(computed===undefined||computed===inherit){',"splice","qx.theme.ClassicRoyale","_applyMaxWidth",'typeof value === "string"',"resizableWest","changeZIndex",'if(value!==null)',"--- Object: ",'typeof value === "string" && value.length > 0',"_applyActiveWindow","popup","_hideTimeStamp","Unknown status code","key_","create","Not available","_inlineEvents","_applyIconTheme","_applyWidthRight","qx.lang.Object","_window","key_short_PageDown","_upbutton","member","key_full_Tab",'throw new Error("Property ',"visibility","_applyStatus",'value !== null && qx.theme.manager.Border.getInstance().isDynamic(value)',"MacIntel","spinner-button-up","No content","changeMode","_applyFocusHandler","qx.core.Log.log","z","Top","qx.core.Log.warn","command","qx.ui.form.Spinner","This method is no longer needed since the event object is now an instance of the Response class.","_applyDisplay","_document","styleFloat","_attachedWidget","qx.ui.tree.SelectionManager","valueOf","__user$excludeSpecificTreeLines","start_minus","_applyShowStatusbar","mozBoxSizing",'name="',"form_","qx.dom.String","ue","qx.io.remote.ScriptTransport","_applyHtml","unix","changeFontTheme",'<span class="objectBox-null">',"body {}","type","qx.ui.form.PasswordField","search","key_short_Down","qx.core.Aspect"," errors.","mac","qx.ui.core.Border",'Requires exactly one argument!',"_divDataSets","toolbar",'if(value===null)prop.error(this,4,"',"_widget","Parsed","_previousParentFolder","qx.bom.Document",'Basic ',"qx.ui.toolbar.ToolBar","window-captionbar-maximize-button",'value !== null && value.$$type === "Theme"',"key_short_Tab","_lastKeyCode",'    pre { margin: 0; padding: 4px 8px; font-family: Consolas, "Bitstream Vera Sans Mono", monospace; }',"MSIE","Forbidden","qx.html.Entity","_applyCaptureWidget","anonymous","_lastMouseDown",'</span>=&quot;<span class="nodeValue">',"cssFloat","toolbar-part","qx.ui.tree.TreeRowStructure",'Referer','!(value && qx.Class.hasInterface(value.constructor, ',"qx.ui.basic.Label",".gif","qx.ui.basic.ScrollArea","Use getUseTreeLines instead","[Theme ","_popup","Proxy authentication required","qx.ui.popup.PopupAtom","group-box-legend","beforeInsertDom","_applyAutoCloseWithErrors","_legendObject","qx.io.image.PreloaderSystem","Use getHideNode instead","qx.html.EventRegistration","_innerStyle","icon/16/actions/document-new.png","verticalChildrenAlign","qx.html.Window","qx.bom.element.Location","Ue","_applyStyleRight",'===value)return value;',"-1","Object is null","<html><head><title>","=[not readable: ","end_plus"," in method ","qx.ui.basic.Terminator","_applyColorRight","__dragCache","_iframeNode","_applyWidthBottom",'if(value===undefined)prop.error(this,2,"',"#FEF0D2","_oldParent","key_short_Up","_applyItalic","key_full_Insert",'value=this.',"_statusText","_formFields","tree",'<span class="objectBox-selector">',"menu-button","_minimizeButton","qx.ui.selection.SelectionManager","_active","qx.ui.tree.AbstractTreeElement","_applyAllowMinimize","MSXML2.XMLHTTP.3.0","_applyHideFocus","progid:DXImageTransform.Microsoft.Shadow(color='Gray', Direction=135, Strength=4)","qx.ui.embed.HtmlEmbed","_applyLeadItem","bottom-reversed","commandLine","_applyImplementation","qx.core.Log.dir","qx.core.MUserData",'value instanceof RegExp',"_logEventQueue","toolbar-separator-line","qx.event.type.DomEvent","<pre>Could not execute json: \n","__ondragevent","_valueOldValue","_applyLoaded","())","qx.util.range.Range","_applyParent","qx.core.Variant","qx.core.Target","&quot;","/source/class/","__listeners","beforeRemoveDom","_applyColorInnerRight","frame_","_applyMarginLeft","Request entity too large","qx.html.Location","Gecko","qx.log.LogEventProcessor","_closeButton","pixelTop","&#39;",' of an instance of ',"text-decoration:","_applyShow","_applyFocusedChild",'<div class="objectBox-element">',"changeAnchorItem","password","key_short_Alt","_parentLogger",'    #lines{ top: 30px; left: 0; right: 0; bottom: 0; position: absolute; overflow: auto; }',"qx.lang.Array","_applyColorLeft",'</div><div class="objectBox-element">&lt;/<span class="nodeTag">',"toLocaleLowerCase","KDE","_children","Esc","qx.ui.pageview.tabview.Pane","yes","_applyMethod","_modify","qx.ui.pageview.tabview.Page","</title></head>","every","\\\\","addChild","changeValidator","__font","qx.util.Mime","_change","box-sizing","_applyIconPosition","changeDisplay","_applyWidth",'/&gt;</div>',"changeMaxHeight","qx.locale.MTranslation","changeMinHeight",'return null;',"unselectable","Caps","qx.ui.layout.CanvasLayout","spinner","_remappingChildTarget","_applyWidgetTheme","html { border:0 none; } ","cursor-dnd-","_image","', ((v==null)?0:v)+'px')","atom","_value",'_indentObject',"qx.preloaderTimeout","changeShowCloseButton","shift","qx.theme.manager.Appearance","org.w3c.dom.svg","Current stack trace",'Null value is not allowed!','<iframe onload="parent.qx.ui.embed.Iframe.load(this)"',"pixelLeft","toolbar-separator","file://","qx.event.handler.KeyEventHandler","key_full_Shift","Request time-out","Bad request","key_full_NumLock"," with incoming value '","menu-separator","key_full_End","link",'Could not change or apply init value after constructing phase!'," &#160;","qxsetting","orientation","changeOverflow","qx.ui.toolbar.Part","__stateMap","_applyCurrentToolTip",'value instanceof Function',"_htmlProperties","...","__intervalHandler","qx.ui.menu.ButtonLayoutImpl","_req","qx.log.appender.FireBug","parseerror","_valueCurrentTarget","qx.core.Log.dirxml","__oninput","_applySpellCheck","window-statusbar-text","width=","toLowerCase",'<span class="objectBox-string">&quot;',"key_full_Delete"," of class ","icon/16/actions/dialog-cancel.png","cross_plus","_applyMinWidth","\" />","Multiple choices","Win64","changeIconTheme","_applyCommand","menu-separator-line","w","qx.ui.menu.Button","qx.html.Iframe","PgUp",'", computed, old);',"borderRight",",top=","_applyAlignTabsToLeft","1px 0",'value !== null && typeof value === "object"','value instanceof Array',"_applyFrameName","_applyAlwaysShowPlusMinusSymbol",'<tr>',"changeWindowManager","__visible","qx.ui.layout.impl.HorizontalBoxLayoutImpl","key_full_Apps","name","_filterTextWords",",left=","qx_log_","_applyTextColor","changeCaption","e","_applyColorInnerTop","pixelRight","_applyMaximum","} ","MozUserFocus","qx.theme.manager.Widget","_applyMarginRight","_applyStyleLeft","Flex","removeDom","key_full_Pause","font-family:",'var computed, old=this.',"_applyHeight","qx.core.Log","key_full_PageUp",'    html, body{ padding: 0; margin: 0; border : 0 none; }',"_modalNativeWindow","_isErroneous","[Class ","resizer","_applyWidthTop","_style","changeLeft","_valueDomTarget","changeWidth","changeTop","__cursors","menu","__onselectevent","Payment required","font-weight:","_bar",'</span>&quot;',"constructor","qx.ui.resizer.ResizablePopup",'<span class="objectBox-object">',"this.setStyleProperty('padding","windowfocus",':',"BSD","qx.core.Log.clear","qx.ui.menu.Layout","konqueror","changeMoveable","qx.Theme","qx.ui.pageview.tabview.Bar","gif","_applyHideNode","_applyUseTreeLines","_valueValue","Moved permanently","_applyShortcut","changeStatus","qx.ui.toolbar.MenuButton","_captionIcon","_parameters",'&quot;</span>',"qx.util.Validation","qx.util.ColorUtil","_valueTarget","-resize","borderLeft","cross_minus","changeActive","_arrowObject","horizontalChildrenAlign"," INFO:  ","_applyShowCaption","_applyTop","changeGlobalCursor",'<td class="propertyNameCell"><span class="propertyName">',"()","key_short_PrintScreen","MSHTML-specific HTTP status code","toUpperCase","_button",'var pa=this.getParent();if(pa)computed=pa.',"_applyDestinationWidget","_dynamic"," logRow-","firstChild","reverse","changeHeight","ss","X-Requested-With","qx.theme","qx.ui.selection.Selection","spinner-text-field","insertDom","oe","_applyFamily","combo-box","key_short_Enter","stretchChildrenOrthogonalAxis","tree-folder-label","window-captionbar-minimize-button",'value !== null && value.type !== undefined',"combo-box-text-field","Error: Could not get a reference to the sheet object",'value !== null && value.nodeType === 1 && value.attributes',"Not found",'value !== null && typeof value === "object" && !(value instanceof Array) && !(value instanceof qx.core.Object)',"_applyShowMinimize","qx.ui.embed.Iframe","_applyShowIcon",'(computed, old);',"changeAppearance",'</table>',"qx.ui.pageview.AbstractPageView","is","tree-element-icon",'()</span>','value !== null && value.nodeType === 9 && value.documentElement',"Gone","#FFEEEE","\n</pre>","Unauthorized","_applyPaddingBottom",".apply(this._remappingChildTarget, arguments)","You can only specify one non modifier key!","_registry","closetab","*{","action","_applyOrientation","qx.ui.toolbar.PartHandle","qx.borderTheme","qx.log.MLogging",'old=computed=this.',"_applyColorTheme","qx.core.Client","qx.ui.toolbar.Separator","qx.theme.manager.Meta","changeSpacing","key_short_Apps","key_short_Win","_applyIconHeight",'&lt;<span class="nodeTag">',"shiira",'===undefined)return;',"_applyActiveChild","substr","MaxHeight",'<span class="selectorClass">.',"null","_modalWidgets","qx.dom.Node","_applyCursor","__storage","changeVisibility","__lastDestinationEvent","colorInnerTop","realplayer","other webkit","_lastMouseDownDomTarget","_isPng","_applyUseAdvancedFlexAllocation","text-area","dirxml","list-item"," ---\n","qx.html.String",'))',"_filterInput","key_full_Home",'var retval=clazz.$$original.apply(this,arguments);',"camino",'    #control { top: 0; left: 0; right: 0; padding: 4px 8px; background: #eee; border-bottom: 1px solid #ccc; height: 30px }',"__data","qx.ui.core.ClientDocumentBlocker"," ERROR: ","u","activeX","qx.client.Timer","[object Object]","qx.lang.Function","Out of resources","qx.dev.StackTrace","qx.core.Setting","qx.ui.menu.RadioButton","_applyModal","_globalCursorStyleSheet","_line","Oe","/static/log/log.html","Method not allowed","_applyAppearanceTheme","content-box","Ok",'if(','value instanceof Error','anonymous',"Unsupported media type","#F1FBF3","key_full_Left","qx.core.Property","qx.ui.form.List","Precondition failed","changeMenu","combo-box-list","__borderObject","_form","Error in property ","<","_applyProhibitCaching","_applyType","MinWidth","this._style.","_applyExcludeSpecificTreeLines","tree-label","_applyStyleTop","getFirstChild","marker",'"></iframe>',"window-captionbar-title"," (r","Gateway time-out","resizableSouth","html",'else if(computed===undefined)',"qx.core.Log.timeEnd",'&gt;</div><div class="nodeChildren">',"qx.widgetTheme","spacing","__modifier","X-Qooxdoo-Version","Alpha(Opacity=0)","-moz-scrollbars-none",'else this.',"_textfield","visible","Bottom","explorer","qx.core.Log.time","colorInnerLeft","_applyOpenItem"," FATAL: ","Safari","hideFocus","MSXML2.XMLHTTP.6.0","_applyDisabledIcon","_applyPaddingRight","changeBorder",'&gt;</span></div>',"en","__userData","beforeInitialOpen","Length required","_applyWidthLeft","--- End of object ---","qx.isSource","_logLinesDiv","logRow","_inputElement","__onwindowresize","changeCurrentAction","changeMinWidth",'var computed, old;','}else{',"stylesheet","_isCreated",'<td><span class="propertyValue">',"qx.util.manager.Value","qx.core.Bootstrap","toLocaleString","_shortcutObject","parentPaddingTop","horizontalAlign","qx.enableApplicationLayout","_jobQueue","key_short_Escape","some",'</body></html>',"_containerObject","StringExact","qx.ui.toolbar.Button","Not a valid key name for a command: ",'typeof value === "boolean"',"changeDirection","Mixin","charCodeAt","qx.net.HttpRequest","qx.lang.Number","box","',sizingMethod='scale')","[\xE4\xF6\xFC\xDF\xC4\xD6\xDC]","changeTabIndex","qx.lang.String","_renderRuntime","_applyCapture","_appender",'.checkMap[value]===undefined','.check.call(this, value)',"tool-tip","overline","getLastChild","qx.html.ScrollIntoView","key_short_Meta","_applyReverseChildrenOrder","key_short_PageUp","key_short_Pause","_applyDecoration","qx.widgetDebugId","!isNaN(value)&&value>=this.getMin()&&value<=this.getMax()","rect(","colorInnerRight","_isLoaded","_downbutton","MSXML2.XMLHTTP","_applyCloseButtonImage","_items","__onwindowfocus","qx.ui.layout.VerticalBoxLayout","_applyPlaceBarOnTop","full","Auto","pop","BackgroundImageCache","isPrototypeOf","qx.ui.form.CheckBox","qx.application.Basic","X11",'_iconObject',"NetNewsWire","qx.compatibility","_applyColorInnerLeft","qx.ui.form.TextArea","qx.bom.Viewport","key_full_Right","group-box-frame","url(","img{","button","key_full_Backspace","_applyBold","changeWidgetTheme",'    <pre id="log" wrap="wrap"></pre>','this.createDispatchChangeEvent("',"_applyColorTop","html,body{width:100%;height:100%;overflow:hidden;}","changeOpenMenu","qx.log.appender.Abstract","qx.html.Style","_scrollContent","qx.locale.Locale","_checkValue","useAdvancedFlexAllocation","return this._remappingChildTarget.","changeOrientation","key_short_Shift","qx.ui.pageview.tabview.Button","__oninterval","key_short_Control","qx.ui.basic.HorizontalSpacer","Shiira","qx.theme.manager.Font","changeMaxWidth","MinHeight","key_full_CapsLock","qx.io.image.PreloaderManager","Camino","qx.ui.layout.impl.CanvasLayoutImpl","qx.ui.tree.TreeFile","_commands","_applyMode","tree-element",'  <style type="text/css">','<div class="nodeText">',"_frameObject","changeAppearanceTheme"," ["];if(!window.qxsettings)qxsettings={};if(qxsettings["qx.theme"]==undefined)qxsettings["qx.theme"]="org.eclipse.swt.theme.Default";if(qxsettings["qx.logAppender"]==undefined)qxsettings["qx.logAppender"]="qx.log.appender.Native";if(qxsettings["qx.version"]==undefined)qxsettings["qx.version"]="0.7.3 (r11170)";if(qxsettings["qx.isSource"]==undefined)qxsettings["qx.isSource"]=false;if(!window.qxvariants)qxvariants={};qxvariants["qx.compatibility"]="off";qxvariants["qx.debug"]="off";qx={Class:{createNamespace:function($0,$1){var $2=$0.split($[24]);var $3=window;var $4=$2[0];for(var $5=0,$6=$2.length-1;$5<$6;$5++,$4=$2[$5]){if(!$3[$4]){$3=$3[$4]={};}else{$3=$3[$4];}}$3[$4]=$1;return $4;},define:function($0,$1){if(!$1){var $1={statics:{}};}this.createNamespace($0,$1.statics);if($1.defer){$1.defer($1.statics);}qx.core.Bootstrap.__registry[$0]=$1.statics;}}};qx.Class.define($[1694],{statics:{LOADSTART:new Date,time:function(){return new Date().getTime();},since:function(){return this.time()-this.LOADSTART;},__registry:{}}});
1
$=["","qx.client","Boolean","auto","qx.event.type.Event","Integer","String","none","string","right",';',"left","mousedown","mshtml","pressed","completed","keydown","bottom","singleton","Number","top","gecko","mouseup","on",".","set","scroll","failed","object","sending","width","height","timeout","aborted",'computed=this.',"abandoned","hidden","function","px","receiving","keypress","0","solid","over","style",'=value;',"Enter",":","other",'this.',"number","abstract","0px","click","absolute","off","100%","center","boolean","active","Left","mouseover","middle","overflow","Right","undefined","qx.ui.core.Widget","div","borderTopWidth","Up","maximized","configured","borderLeftWidth","minWidth","maxWidth","maxHeight","Down","minHeight","position",";","init","frame","load"," ","keyup","Space","interval","qx.event.type.MouseEvent","PageUp","input","Color","CSS1Compat","selected","&","qx.io.remote.Response","error",'</span>','if(this.',"qx.event.type.DataEvent","PageDown","locationX",",",'}',"shorthand","dblclick","mouseout","reset","change","qx.aspects",'"',"both","scrollY","scrollX","locationY","get","]","inherit","vertical",'delete this.',"Object","unstyle","Theme","checked","fixed","changeValue","Control","body","NumLock","execute","Escape","created","unload","horizontal","icon",'!==undefined)',"/","Alt","-","1*","translucent","*","ie4+","Shift","qx.event.type.DragEvent","filter",")","refresh","webkit","mousemove","dragover","Home","qx.ui.popup.ToolTipManager","qx.ui.menu.Manager","marginTop","opera","_","normal","khtml","display","marginLeft","qx.ui.menu.Menu","1px","End","alias","copy","_applyChecked","qx.ui.popup.PopupManager","dotted","qx.event.type.FocusEvent","Delete","groove","double","9","%","A","overflowX","qx.ui.selection.RadioManager","dragstart","static","overflowY","\n","_applyIcon",'return this.','else if(this.',"mousewheel","disabled","qx.event.type.KeyEvent","dashed","Tab","_applyManager","outset","Backspace","inset","appear","?","label","ridge","=","queued","blur","MozOutline","white","resize","Insert","hand","1px dotted invert","_applyResizable","$",'!==undefined){',"_applyValue","fontSize","marginBottom","Unidentified","_manager","outline","paddingTop","widget","left-reversed","this.","contextmenu","changeLocale","top-reversed","textarea","Meta","focused","marginRight","minimized",'=true;',"middle-reversed","center-reversed",'old=this.',"paddingBottom","move","color",": ","qx.event.handler.DragAndDropHandler","focus","PrintScreen","border-box","iframe","opaque","qx.ui.popup.ToolTip","paddingLeft","_applyClip","textAlign","paddingRight","+","safari2","Pause","_labelObject","only_plus","beforeunload","100px","focusin","text","value","_applyLabel","down","short","dragenter","_applyName","changeSelected","qx.ui.embed.IframeManager","qx.deprecationWarnings","justify","focusout","Scroll","_applySelected","=''","changeShow","changeChecked","_applyWrap","disappear",'","',"-moz-scrollbars-vertical","  ","lead","}","bold","Apps","Label","-moz-scrollbars-horizontal","n-resize","windowblur","_timer","dragdrop","Win","_applyTextAlign","qx.resourceUri","g","changeState",'typeof value === "number" && isFinite(value)',"pointer","qx.io.remote.XmlHttpTransport","qx.io.remote.IframeTransport","default","_applyState","_iconObject","lastChild",')',"keyinput","only_minus","_applyEnabled","qx.ui.form.Button","underline","e-resize","qx.ui.core.Parent","_frame",'",value);',"zIndex","Connection dropped","dragout","_childrenQueue","a","_compute","F1","(","addAtEnd","treeClose","appearances","_applyEditable","nowrap","removeAll","cursor","indexOf","qx.application.Gui","Content-Type","addAfter","win","_element","nw-resize","F2","__init$","fontStyle","'","&lt;","_list","styleTop","plus","dragleave","log","borderBottomWidth","parent","_layout","F3","8",":content-box;","6","up","meta","gecko|opera|webkit","padding","nocache","tabIndex","F11","opacity","qx.ui.embed.Flash","styleRight","KhtmlOpacity","unknown","styleLeft","F4","7","windowresize","_applySource","Value",":border-box;","no-cache","MozUserSelect","line","F10","backgroundRepeat","clipHeight","soft","italic","_invalidate",'  </div>',"colorRight","Assertion Failure","Pragma","fontWeight",'if(old===computed)return value;',"KhtmlUserSelect","noComputed","F5","4","]);","remove",'else ','<span class="objectBox-number">',"removeChild","treeOpenWhileEmpty","colors","changeSource","alignLeft","character","Ready","barBottom","|","treeOpenWithContent",'";',"colorBottom","beforeDisappear","5","F6","DOMMouseScroll","widthBottom","addAt",'undefined',"CapsLock","#FCE1D8","drag","qx.allowUrlSettings","cross","Array","whiteSpace","qx.io.image.Preloader","toggle","colorTop","2","F7","-khtml-box-sizing","add","]\n","borderRightWidth","page","0 none","qx.enableAspect","Cache-Control","ne-resize","margin","_pane","_recompute","3","F8","&#","(a[","backgroundImage","qx.io.remote.AbstractRemoteTransport","text/css","F9","qx.allowUrlVariants","file:","alignRight","hasComputed","minus","styleBottom","widthRight","before","_applyMenu","dragexit","{","toString","clipTop","qx.ui.pageview.AbstractPage","lazyopaque","static/image/blank.gif","qx.event.type.ChangeEvent"," messages removed)","boxSizing","anchor",'.$$properties.',"qx.log.appender.Native","changeEnabled","addBefore","fonts",'if(computed===undefined)computed=null;',"textDecoration","_applyElement","qx.util.range.IRange","qx.ui.pageview.AbstractButton","draggesture","Function","fontFamily","widthTop","end","first","Margin","v","&amp;",":constructor","event","1","Padding","<br>","icons","addAtBegin","backgroundColor","dragend","qx.client.Command","_blocker","F12","concat","qx.core.Object",'!(',"qx.ui.form.ListItem","MozOpacity","_objects","Z","ignore","__user$","readonly","return this.","qx.ui.window.Window","tree-folder","barTop","changeName","head","qx.ui.window.Manager","slice","qx.io.remote.Exchange","qx.event.handler.FocusHandler","[","WebkitUserSelect","qx.io.remote.Request","removeAt","dragmove","clipLeft",'@import "',"Element","borders",'',"lineHeight","onscroll","widgets","userSelect","();","widthLeft","clipWidth","qx.client.NativeWindow",'if(old===undefined)old=null;',"colorLeft","changeSelection","lastIndexOf","s","\r\n","menu-button-arrow","qx.Class.","_focusHandler","Border",'    * { box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box }',"_applyActive","_valueOriginalTarget","__feedbackWidget","pre","javascript:void(0)","Linux","borderBottomStyle","Font","Use proxy","qx.ui.menu.CheckBox","resizableEast","qx.Interface","qx.ui.tree.TreeFolder",'value !== null && window.document','    <input id="marker" type="button" value="Add divider"/> &#160; &#160; Filter: <input name="filter" id="filter" type="text" value="',"qx.ui.form.TextField",')a[i].',"_applyFocusRoot","qx.ui.basic.Inline","_applyAllowClose","Not implemented","localeCompare",'    html, body, input, pre{ font-size: 11px; font-family: Tahoma, sans-serif; line-height : 1 }','var inherit=prop.$$inherit;',"Not modified","_applyLocale","text-field","./resource","pixelBottom","menu-layout"," (nightly)","_cachedVisibleChildren","_applyText","qx.html.Dimension","_applyFont","Use getValue() instead!","_applySpacing","Macintosh","_hideTimer","tab-view-pane"," - ","progress","static/html/blank.html","qx.lang.Core","__inherit$","matches","changeBorderTheme","Use removeHtmlProperty instead","radio-button","_applySize","border","resizableNorth","qx.core.Log.debug","this.removeStyleProperty('padding","Partial content","MacPPC","quote","Print","qx.application"," &nbsp;","__onload","qx.Class","qx.logAppender","qx.event.handler.EventHandler","Win32","qx.iconTheme","forEach","1.0","qx.ui.menu.Separator",'  <div id="control">',"autoComplete",' is not (yet) ready!");',"changeElement","key_full_Meta","(measure start) ","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='","Height","qx.version","qx.log.appender.Window","_layoutChanges","changeParent","_applyMarginBottom","_applySelectable","_applyPreloader","qx.bom.element.Dimension","_applyAnchorItem","cursor:","application/x-www-form-urlencoded","extend","Pixel","qx.ui.toolbar.RadioButton","_applyBackgroundImage","firefox","qx.ui.menu.MenuLayoutImpl","n","changeTextColor","borderBottom",'computed=value;',"qx.boxModelCorrection"," WARN:  ",'Does not allow any arguments!',"__states",'return value;'," DEBUG: ","complete","_horizontalLayout","changeAnonymous","key_short_NumLock","qx.locale.Manager","key_short_Left","_applyOpen","toolbar-button","qx.io.image.Manager","OmniWeb","_applyMinHeight","[^\\.0-9]","key_short_Right","ms","See other",'!',"-webkit-box-sizing","tree-icon","_data_","_showTimer","qx.net.Http","line-through","qx.ui.form.ComboBox","qx_log_","_captionTitle",'if(!clazz.$$propertiesAttached)qx.core.Property.attach(clazz);',"changeActiveChild","U",']._autoCloseWindow()}catch(e){}">',"_applyShowInterval","var a=arguments[0] instanceof Array?arguments[0]:arguments;",'</div>',"C","Bad gateway",'value !== null && value.$$type === "Mixin"',"_applyBoundToWidget","icon/16/places/folder.png","qx.ui.pageview.AbstractPane","gray","split","_applyBackgroundRepeat","Log window message: Starting error recording, any errors below this line will prevent the log window from closing","list",'=computed;',"qx.ui.popup.Popup","qx.locale.Key","Type","qx.util.format.NumberFormat","replace","qx.ui.menubar.MenuBar","qx.io.Alias","_captionBar","<hr/>","_applyBottom","tab-view-button","_valueRelatedTarget","changeResizeMethod",":constructor wrapper","_closeTimer","_applyRootOpenClose",'value !== null && value.$$type === "Interface"',"qx.Mixin","_applyBorder","beforeAppear",'">',"_applyRight","__cache","_applyMax","_check","o","_indentObject","property","qx.ui.layout.BoxLayout","_applyMaxHeight","Galeon","force","after","userFocus","tab-view-page","parentPaddingBottom","qx.lang.Generics","qx.ui.basic.ScrollBar","key_short_End","warn","changeLeadItem",'  <div id="lines">',"client-document-blocker","push","qx.core.Log.error","qx.log.DefaultFilter","qx.util.Normalization","key_full_Win","Log window message: Stopping error recording, discarding ","key_full_Up","key_full_PrintScreen","_selectedItems","hasOwnProperty","qx.ui.basic.Image","_applyColorBottom","_atom","_icons","key_short_Delete","Request-URL too large","Not acceptable","toolbar-part-handle-line","_applyAllowMaximize",'_treeRowStructureFields','typeof value === "number" && isFinite(value) && value%1 === 0',"_applyNumberFormat","_buttonlayout",'!(value instanceof ','value !== null && qx.theme.manager.Font.getInstance().isDynamic(value)',"qx.html.Scroll","changeIcon","html,body { margin:0;border:0;padding:0; } ","_applyMin","_applyStretchChildrenOrthogonalAxis","<img style=\"position:absolute;top:0px;left:","pixelHeight","qx.ui.pageview.AbstractBar"," !important","_lastMouseDownDispatchTarget","key_full_Control",'(backup);',"[Mixin ","Tabulator","__all","_applyFocused","lines","qx.ui.tree.Tree",'if(computed===inherit){',"qx.log.Filter","_scrollBar","key_full_Down","Connection closed by server","native","key_full_Alt","PgDn","_applyScrolling","borderTop",'<body onload="qx = opener.qx;" onunload="try{qx.log.WindowAppender._registeredAppenders[',"sort","key_full_Space","qx.ui.pageview.tabview.TabView",'  </style>',"safari","scrollbar-blocker","_applyPaddingTop","qx.ui.core.Font","changeEditable","qx.ui.layout.impl.LayoutImpl","_applyCheckValueFunction",';}',"qx.fontTheme","\\\"","unshift","Ins","menu-check-box","Windows","tab-view-bar",'!==undefined&&',"iconSelected","getFirstActiveChild","qx.core.Log.info","Null","changeFont","_applyOverflow",'<iframe name="','value instanceof Date',"/static","borderLeftStyle","window-captionbar-restore-button",'if((computed===undefined||computed===inherit)&&','character',"_applyHideInterval","transparent","_applyReadOnly","BODY","_applyIncrementAmount","qx.ui.form.InputCheckSymbol","changeFocusedChild",'(value);',"changeHtml","changeColorTheme"," errors have been recorded, keeping log window open.</b>","a=qx.lang.Array.fromShortHand(qx.lang.Array.fromArguments(a));","(passed time: ",">>> ",'_labelObject','<span class="objectBox-function">',"last","_resetRuntime","_handle","qooxdoo","Moved temporarily","_applyButton",'    hr { border: 0 none; border-bottom: 1px solid #ccc; margin: 8px 0; padding: 0; height: 1px }','if(clazz.$$includes){var mixins=clazz.$$flatIncludes;','wrap',"scrolling","verticalAlign","substring","[object Error]","match",'#',"https://","destructor","icon/16/status/folder-open.png",'value !== null && value.$$type === "Class"',"_applyAutoSync","ValueExact","  at ",'typeof value === "string" && qx.util.ColorUtil.isValid(value)',"key_short_Backspace","__",'var a=this.getChildren();if(a)for(var i=0,l=a.length;i<l;i++){',"qx.ui.layout.impl.VerticalBoxLayoutImpl","qx.log.appender.HtmlElement","debug","_applyAppearance","_blockerNode","_styleProperties","_applyOpacity","qx.html.Offset","reverseChildrenOrder",",height=","qxvariant",'if(mixins[i].$$constructor){mixins[i].$$constructor.apply(this,arguments);}}}',"Alpha(Opacity=",'Authorization',"charAt","_applyBorderTheme","\\$1","parentPaddingRight","_applyZIndex","')","_aliases","check-box","_applyOpenInterval","window","px\" src=\"",'var backup=computed;',"_applyPaddingLeft","qx.core.LegacyProperty","true","_lastUpDownType",'for(var i=0,l=mixins.length;i<l;i++){',"_applyFontTheme","Please use getKeyIdentifier() instead.","_applyTabIndex",'if(this.classname===',"start_plus","qx.debug",'if(value!==inherit)',"key_short_Scroll","HTTP version not supported",'if(a[i].',"(!this.","font-size:","single","MSXML2.XMLHTTP.4.0","qx.locale.LocalizedString","combo-box-popup","qx.ui.menubar.Button","changeBackgroundColor","changeRight","[Interface ","_translationCatalog","qx.theme.manager.Color","_restoreButton","nodrop","_captionFlex","borderTopStyle","window-captionbar-close-button","__useinit$","changeModal",'Undefined value is not allowed!',"Interface","__actions","window-statusbar","qx.bom.element.Style",'Is invalid!',"colorInnerBottom","id","netnewswire","qx.ui.layout.HorizontalBoxLayout","': ","&gt;","client-document","borderRightStyle","changeMoveMethod","X-Qooxdoo-Response-Type","key_short_Space",'</span></td>',"_markerBtn","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","_applyMaxLength","Firefox","-moz-box-sizing","img","_showTimeStamp","_field","Gray() Alpha(Opacity=30)","_htmlAttributes",'){',"qx.application.IApplication","key_short_CapsLock","qx.minLogLevel","anonymous: ","MozBoxSizing"," (#","Use getUseDoubleClick instead","_closeButtonImage","spinner-button-down","tree-element-label","0.0","info","__onmouseevent","key_full_Scroll","=((v==null)?0:v)+'px'","_valueDomEvent","qx.io.remote.RequestQueue","_applyColorInnerBottom","qx.ui.toolbar.CheckBox","_applyLeft","window-captionbar","_borderElement","[object ","_maximizeButton","qx.appearanceTheme","Server timeout","__onwindowblur","clip","Mozilla","Log window message: <b>Note: ","_applyCloseInterval","dir",'</span></td></tr>',"Server error",'var prop=qx.core.Property;',"changeBottom","width=500,height=250,dependent=yes,resizable=yes,status=no,location=no,menubar=no,toolbar=no,scrollbars=no",'<table>',"qx.ui.resizer.IResizable","Del","_mouseEvent","_layoutImpl","_applyShowCloseButton","_cached","0px none",'<span class="selectorId">#',')prop.error(this,5,"',"qx.theme.manager.Icon","qx.core.Version","Num","_openTimer","tree-folder-icon","toLocaleUpperCase",'&nbsp;<span class="nodeName">','\", "',"Width","qx.theme.manager.Border","pixelWidth","_applyVerticalChildrenAlign","group-box","__manager","qx.log.Logger","key_full_PageDown","  [not readable: ","key_full_Escape","ae","explorer","_computed","_applyShowClose","tab-view","_applyTheme","0x","__key","_requestHeaders"," ms) ","_applyPage","omniweb",'-','!==inherit){',"changeOpen","changeFocused","changeTheme","qx.eventMonitorNoListeners","key_short_Insert",'X',"end_minus","getLastActiveChild",'value !== null && (qx.locale.Manager.getInstance().isDynamic(value) || typeof value === "string")',"_fields","_applyIconWidth","_lastMouseEventDate","_statusBar","_queue","_applyGlobalCursor","_applyStyleBottom","MaxWidth","image","qx.core.Package","_applyInterval","galeon","join","removeDom","qx.ui.resizer.MResizable","qx.html.StyleSheet","_appenderArr","AppleWebKit","Legacy properties are deprecated","Use setHtmlProperty instead","_remappingChildTable","toolbar=no,scrollbars=no,resizable=yes,","qx.ui.core.ClientDocument","qx.util.manager.Object","right-reversed","toolbar-part-handle","qx.ui.form.RadioButton",">","other gecko","form","qx.util.Compare","no","resizer-frame","qx.ui.groupbox.GroupBox","qx.ui.basic.Atom","Percent","window-captionbar-icon","_applyBackgroundColor","combo-box-button","_applyCaption","qx.colorTheme","http://",'.classname)this.$$initialized=true;',"menu-radio-button","_applyResponseType","_valueData",'else{',"key_full_Enter","qx.core.Init","_applyHorizontalChildrenAlign","Ae",'<span class="selectorTag">',"Conflict",'#lines { width: 100%; height: expression((document.body.offsetHeight - 30) + "px"); }',"changeCapture","map","O","__theme$","_applyShowMaximize",'value !== null && value.nodeType !== undefined',"_filterArr",'></iframe>',"Ctrl","key_short_Home","rgb(",'computed=undefined;delete this.',"RealPlayer","_lastMouseEventType","font-style:","qx.core.Log.assert","_applyMarginTop","_applyHoverItem","Microsoft.XMLHTTP",'return retval;',"_applyVisibility",'if(computed===undefined||computed===inherit){',"splice","qx.theme.ClassicRoyale","_applyMaxWidth",'typeof value === "string"',"changeZIndex",'if(value!==null)',"--- Object: ",'typeof value === "string" && value.length > 0',"_applyActiveWindow","popup","_hideTimeStamp","Unknown status code","key_","create","Not available","_inlineEvents","_applyIconTheme","_applyWidthRight","qx.lang.Object","_window","key_short_PageDown","_upbutton","member","key_full_Tab",'throw new Error("Property ',"visibility","_applyStatus",'value !== null && qx.theme.manager.Border.getInstance().isDynamic(value)',"MacIntel","spinner-button-up","No content","changeMode","_applyFocusHandler","qx.core.Log.log","z","Top","qx.core.Log.warn","command","qx.ui.form.Spinner","This method is no longer needed since the event object is now an instance of the Response class.","_applyDisplay","_document","styleFloat","_attachedWidget","qx.ui.tree.SelectionManager","valueOf","__user$excludeSpecificTreeLines","start_minus","_applyShowStatusbar","mozBoxSizing",'name="',"form_","qx.dom.String","ue","qx.io.remote.ScriptTransport","_applyHtml","unix","changeFontTheme",'<span class="objectBox-null">',"body {}","type","qx.ui.form.PasswordField","search","key_short_Down","qx.core.Aspect"," errors.","mac","qx.ui.core.Border",'Requires exactly one argument!',"_divDataSets","toolbar",'if(value===null)prop.error(this,4,"',"_widget","Parsed","_previousParentFolder","qx.bom.Document",'Basic ',"qx.ui.toolbar.ToolBar","window-captionbar-maximize-button",'value !== null && value.$$type === "Theme"',"key_short_Tab","_lastKeyCode",'    pre { margin: 0; padding: 4px 8px; font-family: Consolas, "Bitstream Vera Sans Mono", monospace; }',"MSIE","Forbidden","qx.html.Entity","_applyCaptureWidget","anonymous","_lastMouseDown",'</span>=&quot;<span class="nodeValue">',"cssFloat","toolbar-part","qx.ui.tree.TreeRowStructure",'Referer','!(value && qx.Class.hasInterface(value.constructor, ',"qx.ui.basic.Label",".gif","qx.ui.basic.ScrollArea","Use getUseTreeLines instead","[Theme ","_popup","Proxy authentication required","qx.ui.popup.PopupAtom","group-box-legend","beforeInsertDom","_applyAutoCloseWithErrors","_legendObject","qx.io.image.PreloaderSystem","Use getHideNode instead","qx.html.EventRegistration","_innerStyle","icon/16/actions/document-new.png","verticalChildrenAlign","qx.html.Window","qx.bom.element.Location","Ue","_applyStyleRight",'===value)return value;',"-1","Object is null","<html><head><title>","=[not readable: ","end_plus"," in method ","qx.ui.basic.Terminator","_applyColorRight","__dragCache","_iframeNode","_applyWidthBottom",'if(value===undefined)prop.error(this,2,"',"#FEF0D2","_oldParent","key_short_Up","_applyItalic","key_full_Insert",'value=this.',"_statusText","_formFields","tree",'<span class="objectBox-selector">',"menu-button","_minimizeButton","qx.ui.selection.SelectionManager","_active","qx.ui.tree.AbstractTreeElement","_applyAllowMinimize","MSXML2.XMLHTTP.3.0","_applyHideFocus","progid:DXImageTransform.Microsoft.Shadow(color='Gray', Direction=135, Strength=4)","qx.ui.embed.HtmlEmbed","_applyLeadItem","bottom-reversed","commandLine","_applyImplementation","qx.core.Log.dir","qx.core.MUserData",'value instanceof RegExp',"_logEventQueue","toolbar-separator-line","qx.event.type.DomEvent","<pre>Could not execute json: \n","__ondragevent","_valueOldValue","_applyLoaded","())","qx.util.range.Range","_applyParent","qx.core.Variant","qx.core.Target","&quot;","/source/class/","__listeners","beforeRemoveDom","frame_","_applyMarginLeft","Request entity too large","qx.html.Location","Gecko","qx.log.LogEventProcessor","_closeButton","pixelTop","&#39;",' of an instance of ',"text-decoration:","_applyShow","_applyFocusedChild",'<div class="objectBox-element">',"changeWidth","changeAnchorItem","password","key_short_Alt","_parentLogger",'    #lines{ top: 30px; left: 0; right: 0; bottom: 0; position: absolute; overflow: auto; }',"qx.lang.Array","_applyColorLeft",'</div><div class="objectBox-element">&lt;/<span class="nodeTag">',"toLocaleLowerCase","KDE","_children","Esc","qx.ui.pageview.tabview.Pane","yes","_applyMethod","_modify","qx.ui.pageview.tabview.Page","</title></head>","every","\\\\","addChild","changeValidator","__font","qx.util.Mime","_change","box-sizing","_applyIconPosition","changeDisplay","_applyWidth","_applyColorInnerRight",'/&gt;</div>',"changeMaxHeight","qx.locale.MTranslation","changeMinHeight",'return null;',"unselectable","Caps","qx.ui.layout.CanvasLayout","spinner","_remappingChildTarget","_applyWidgetTheme","html { border:0 none; } ","cursor-dnd-","_image","', ((v==null)?0:v)+'px')","atom","_value",'_indentObject',"qx.preloaderTimeout","changeShowCloseButton","shift","qx.theme.manager.Appearance","parentPaddingLeft","org.w3c.dom.svg","Current stack trace",'Null value is not allowed!','<iframe onload="parent.qx.ui.embed.Iframe.load(this)"',"pixelLeft","toolbar-separator","file://","qx.event.handler.KeyEventHandler","key_full_Shift","Request time-out","Bad request","key_full_NumLock"," with incoming value '","menu-separator","key_full_End","link",'Could not change or apply init value after constructing phase!'," &#160;","qxsetting","orientation","changeOverflow","qx.ui.toolbar.Part","__stateMap","_applyCurrentToolTip",'value instanceof Function',"_htmlProperties","...","__intervalHandler","qx.ui.menu.ButtonLayoutImpl","_req","qx.log.appender.FireBug","parseerror","_valueCurrentTarget","qx.core.Log.dirxml","__oninput","_applySpellCheck","window-statusbar-text","width=","toLowerCase",'<span class="objectBox-string">&quot;',"key_full_Delete"," of class ","icon/16/actions/dialog-cancel.png","cross_plus","_applyMinWidth","\" />","Multiple choices","Win64","changeIconTheme","_applyCommand","menu-separator-line","w","qx.ui.menu.Button","qx.html.Iframe","PgUp",'", computed, old);',"borderRight",",top=","_applyAlignTabsToLeft","1px 0",'value !== null && typeof value === "object"','value instanceof Array',"_applyFrameName","_applyAlwaysShowPlusMinusSymbol",'<tr>',"changeWindowManager","__visible","qx.ui.layout.impl.HorizontalBoxLayoutImpl","key_full_Apps","name","_filterTextWords",",left=","_applyTextColor","changeCaption","e","_applyColorInnerTop","pixelRight","_applyMaximum","} ","MozUserFocus","qx.theme.manager.Widget","_applyMarginRight","_applyStyleLeft","Flex","key_full_Pause","font-family:",'var computed, old=this.',"_applyHeight","qx.core.Log","key_full_PageUp",'    html, body{ padding: 0; margin: 0; border : 0 none; }',"_modalNativeWindow","_isErroneous","resizableWest","[Class ","resizer","_applyWidthTop","_style","changeLeft","_valueDomTarget","changeTop","__cursors","menu","__onselectevent","Payment required","font-weight:","_bar",'</span>&quot;',"constructor","qx.ui.resizer.ResizablePopup",'<span class="objectBox-object">',"this.setStyleProperty('padding","windowfocus",':',"BSD","qx.core.Log.clear","qx.ui.menu.Layout","konqueror","changeMoveable","qx.Theme","qx.ui.pageview.tabview.Bar","gif","_applyHideNode","_applyUseTreeLines","_valueValue","Moved permanently","_applyShortcut","changeStatus","qx.ui.toolbar.MenuButton","_captionIcon","_parameters",'&quot;</span>',"qx.util.Validation","qx.util.ColorUtil","_valueTarget","-resize","borderLeft","cross_minus","changeActive","_arrowObject","horizontalChildrenAlign"," INFO:  ","_applyShowCaption","_applyTop","changeGlobalCursor",'<td class="propertyNameCell"><span class="propertyName">',"()","key_short_PrintScreen","MSHTML-specific HTTP status code","toUpperCase","_button",'var pa=this.getParent();if(pa)computed=pa.',"_applyDestinationWidget","_dynamic"," logRow-","firstChild","reverse","changeHeight","ss","X-Requested-With","qx.theme","qx.ui.selection.Selection","spinner-text-field","insertDom","oe","_applyFamily","combo-box","key_short_Enter","stretchChildrenOrthogonalAxis","tree-folder-label","window-captionbar-minimize-button","qx.borderTheme",'value !== null && value.type !== undefined',"combo-box-text-field","Error: Could not get a reference to the sheet object",'value !== null && value.nodeType === 1 && value.attributes',"Not found",'value !== null && typeof value === "object" && !(value instanceof Array) && !(value instanceof qx.core.Object)',"_applyShowMinimize","qx.ui.embed.Iframe","_applyShowIcon",'(computed, old);',"changeAppearance",'</table>',"qx.ui.pageview.AbstractPageView","is","tree-element-icon",'()</span>','value !== null && value.nodeType === 9 && value.documentElement',"Gone","#FFEEEE","\n</pre>","Unauthorized","_applyPaddingBottom",".apply(this._remappingChildTarget, arguments)","You can only specify one non modifier key!","_registry","closetab","*{","action","_applyOrientation","qx.ui.toolbar.PartHandle","qx.log.MLogging",'old=computed=this.',"_applyColorTheme","qx.core.Client","qx.ui.toolbar.Separator","qx.theme.manager.Meta","changeSpacing","key_short_Apps","key_short_Win","_applyIconHeight",'&lt;<span class="nodeTag">',"shiira",'===undefined)return;',"_applyActiveChild","substr","MaxHeight",'<span class="selectorClass">.',"null","_modalWidgets","qx.dom.Node","_applyCursor","__storage","changeVisibility","__lastDestinationEvent","colorInnerTop","realplayer","other webkit","_lastMouseDownDomTarget","_isPng","_applyUseAdvancedFlexAllocation","text-area","dirxml","list-item"," ---\n","qx.html.String",'))',"_filterInput","key_full_Home",'var retval=clazz.$$original.apply(this,arguments);',"camino",'    #control { top: 0; left: 0; right: 0; padding: 4px 8px; background: #eee; border-bottom: 1px solid #ccc; height: 30px }',"__data","qx.ui.core.ClientDocumentBlocker"," ERROR: ","u","activeX","qx.client.Timer","[object Object]","qx.lang.Function","Out of resources","qx.dev.StackTrace","qx.core.Setting","qx.ui.menu.RadioButton","_applyModal","_globalCursorStyleSheet","_line","Oe","/static/log/log.html","Method not allowed","_applyAppearanceTheme","content-box","Ok",'if(','value instanceof Error','anonymous',"Unsupported media type","#F1FBF3","key_full_Left","qx.core.Property","qx.ui.form.List","Precondition failed","changeMenu","combo-box-list","__borderObject","_form","Error in property ","<","_applyProhibitCaching","_applyType","MinWidth","this._style.","_applyExcludeSpecificTreeLines","tree-label","_applyStyleTop","getFirstChild","marker",'"></iframe>',"window-captionbar-title"," (r","Gateway time-out","resizableSouth","html",'else if(computed===undefined)',"qx.core.Log.timeEnd",'&gt;</div><div class="nodeChildren">',"qx.widgetTheme","spacing","__modifier","X-Qooxdoo-Version","Alpha(Opacity=0)","-moz-scrollbars-none",'else this.',"_textfield","visible","Bottom","initial","qx.core.Log.time","colorInnerLeft","_applyOpenItem"," FATAL: ","Safari","hideFocus","MSXML2.XMLHTTP.6.0","_applyDisabledIcon","_applyPaddingRight","changeBorder",'&gt;</span></div>',"en","__userData","beforeInitialOpen","Length required","_applyWidthLeft","--- End of object ---","qx.isSource","_logLinesDiv","logRow",'var clazz=arguments.callee.constructor;',"_inputElement","__onwindowresize","changeCurrentAction","changeMinWidth",'var computed, old;','}else{',"stylesheet","_isCreated",'<td><span class="propertyValue">',"qx.util.manager.Value","qx.core.Bootstrap","toLocaleString","_shortcutObject","parentPaddingTop","horizontalAlign","qx.enableApplicationLayout","_jobQueue","key_short_Escape","some",'</body></html>',"_containerObject","StringExact","qx.ui.toolbar.Button","Not a valid key name for a command: ",'typeof value === "boolean"',"changeDirection","Mixin","charCodeAt","qx.net.HttpRequest","qx.lang.Number","box","',sizingMethod='scale')","[\xE4\xF6\xFC\xDF\xC4\xD6\xDC]","changeTabIndex","qx.lang.String","_renderRuntime","_applyCapture","_appender",'.checkMap[value]===undefined','.check.call(this, value)',"tool-tip","overline","getLastChild","qx.html.ScrollIntoView","key_short_Meta","_applyReverseChildrenOrder","key_short_PageUp","key_short_Pause","_applyDecoration","qx.widgetDebugId","!isNaN(value)&&value>=this.getMin()&&value<=this.getMax()","rect(","colorInnerRight","_isLoaded","_downbutton","MSXML2.XMLHTTP","_applyCloseButtonImage","_items","__onwindowfocus","qx.ui.layout.VerticalBoxLayout","_applyPlaceBarOnTop","full","Auto","pop","BackgroundImageCache","isPrototypeOf","qx.ui.form.CheckBox","qx.application.Basic","X11",'_iconObject',"NetNewsWire","qx.compatibility","_applyColorInnerLeft","qx.ui.form.TextArea","qx.bom.Viewport","key_full_Right","group-box-frame","url(","img{","button","key_full_Backspace","_applyBold","changeWidgetTheme",'    <pre id="log" wrap="wrap"></pre>','this.createDispatchChangeEvent("',"_applyColorTop","html,body{width:100%;height:100%;overflow:hidden;}","changeOpenMenu","qx.log.appender.Abstract","qx.html.Style","_scrollContent","qx.locale.Locale","_checkValue","useAdvancedFlexAllocation","return this._remappingChildTarget.","changeOrientation","key_short_Shift","qx.ui.pageview.tabview.Button","__oninterval","key_short_Control","qx.ui.basic.HorizontalSpacer","Shiira","qx.theme.manager.Font","changeMaxWidth","MinHeight","key_full_CapsLock","qx.io.image.PreloaderManager","Camino","qx.ui.layout.impl.CanvasLayoutImpl","qx.ui.tree.TreeFile","_commands","_applyMode","tree-element",'  <style type="text/css">','<div class="nodeText">',"_frameObject","changeAppearanceTheme"," ["];if(!window.qxsettings)qxsettings={};if(qxsettings["qx.theme"]==undefined)qxsettings["qx.theme"]="org.eclipse.swt.theme.Default";if(qxsettings["qx.logAppender"]==undefined)qxsettings["qx.logAppender"]="qx.log.appender.Native";if(qxsettings["qx.version"]==undefined)qxsettings["qx.version"]="0.7.3 (r11170)";if(qxsettings["qx.isSource"]==undefined)qxsettings["qx.isSource"]=false;if(!window.qxvariants)qxvariants={};qxvariants["qx.compatibility"]="off";qxvariants["qx.debug"]="off";qx={Class:{createNamespace:function($0,$1){var $2=$0.split($[24]);var $3=window;var $4=$2[0];for(var $5=0,$6=$2.length-1;$5<$6;$5++,$4=$2[$5]){if(!$3[$4]){$3=$3[$4]={};}else{$3=$3[$4];}}$3[$4]=$1;return $4;},define:function($0,$1){if(!$1){var $1={statics:{}};}this.createNamespace($0,$1.statics);if($1.defer){$1.defer($1.statics);}qx.core.Bootstrap.__registry[$0]=$1.statics;}}};qx.Class.define($[1694],{statics:{LOADSTART:new Date,time:function(){return new Date().getTime();},since:function(){return this.time()-this.LOADSTART;},__registry:{}}});
2
qx.Class.define($[584]);if(!Error.prototype.toString||Error.prototype.toString()==$[846]){Error.prototype.toString=function(){return this.message;};}if(!Array.prototype.indexOf){Array.prototype.indexOf=function($0,$1){if($1==null){$1=0;}else if($1<0){$1=Math.max(0,this.length+$1);}for(var $2=$1;$2<this.length;$2++){if(this[$2]===$0){return $2;}}return -1;};}if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function($0,$1){if($1==null){$1=this.length-1;}else if($1<0){$1=Math.max(0,this.length+$1);}for(var $2=$1;$2>=0;$2--){if(this[$2]===$0){return $2;}}return -1;};}if(!Array.prototype.forEach){Array.prototype.forEach=function($0,$1){var $2=this.length;for(var $3=0;$3<$2;$3++){$0.call($1,this[$3],$3,this);}};}if(!Array.prototype.filter){Array.prototype.filter=function($0,$1){var $2=this.length;var $3=[];for(var $4=0;$4<$2;$4++){if($0.call($1,this[$4],$4,this)){$3.push(this[$4]);}}return $3;};}if(!Array.prototype.map){Array.prototype.map=function($0,$1){var $2=this.length;var $3=[];for(var $4=0;$4<$2;$4++){$3.push($0.call($1,this[$4],$4,this));}return $3;};}if(!Array.prototype.some){Array.prototype.some=function($0,$1){var $2=this.length;for(var $3=0;$3<$2;$3++){if($0.call($1,this[$3],$3,this)){return true;}}return false;};}if(!Array.prototype.every){Array.prototype.every=function($0,$1){var $2=this.length;for(var $3=0;$3<$2;$3++){if(!$0.call($1,this[$3],$3,this)){return false;}}return true;};}if(!String.prototype.quote){String.prototype.quote=function(){return $[109]+this.replace(/\\/g,$[1322]).replace(/\"/g,$[798])+$[109];};}
2
qx.Class.define($[584]);if(!Error.prototype.toString||Error.prototype.toString()==$[847]){Error.prototype.toString=function(){return this.message;};}if(!Array.prototype.indexOf){Array.prototype.indexOf=function($0,$1){if($1==null){$1=0;}else if($1<0){$1=Math.max(0,this.length+$1);}for(var $2=$1;$2<this.length;$2++){if(this[$2]===$0){return $2;}}return -1;};}if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function($0,$1){if($1==null){$1=this.length-1;}else if($1<0){$1=Math.max(0,this.length+$1);}for(var $2=$1;$2>=0;$2--){if(this[$2]===$0){return $2;}}return -1;};}if(!Array.prototype.forEach){Array.prototype.forEach=function($0,$1){var $2=this.length;for(var $3=0;$3<$2;$3++){$0.call($1,this[$3],$3,this);}};}if(!Array.prototype.filter){Array.prototype.filter=function($0,$1){var $2=this.length;var $3=[];for(var $4=0;$4<$2;$4++){if($0.call($1,this[$4],$4,this)){$3.push(this[$4]);}}return $3;};}if(!Array.prototype.map){Array.prototype.map=function($0,$1){var $2=this.length;var $3=[];for(var $4=0;$4<$2;$4++){$3.push($0.call($1,this[$4],$4,this));}return $3;};}if(!Array.prototype.some){Array.prototype.some=function($0,$1){var $2=this.length;for(var $3=0;$3<$2;$3++){if($0.call($1,this[$3],$3,this)){return true;}}return false;};}if(!Array.prototype.every){Array.prototype.every=function($0,$1){var $2=this.length;for(var $3=0;$3<$2;$3++){if(!$0.call($1,this[$3],$3,this)){return false;}}return true;};}if(!String.prototype.quote){String.prototype.quote=function(){return $[109]+this.replace(/\\/g,$[1321]).replace(/\"/g,$[799])+$[109];};}
3
qx.Class.define($[724],{statics:{__map:{"Array":[$[1051],$[1512],$[785],$[731],$[1747],$[1352],$[799],$[1114],$[492],$[508],$[324],$[533],$[607],$[1093],$[144],$[1702],$[1321]],"String":[$[597],$[845],$[1392],$[1505],$[875],$[1711],$[324],$[533],$[1311],$[1003],$[562],$[847],$[1177],$[692],$[683],$[1572],$[492],$[508]]},__wrap:function($0,$1){return function($2){return $0.prototype[$1].apply($2,Array.prototype.slice.call(arguments,1));};},__init:function(){var $0=qx.lang.Generics.__map;for(var $1 in $0){var $2=window[$1];var $3=$0[$1];for(var $4=0,$5=$3.length;$4<$5;$4++){var $6=$3[$4];if(!$2[$6]){$2[$6]=qx.lang.Generics.__wrap($2,$6);}}}}},defer:function($0){$0.__init();}});
3
qx.Class.define($[725],{statics:{__map:{"Array":[$[1050],$[1511],$[786],$[732],$[1747],$[1352],$[800],$[1114],$[492],$[509],$[324],$[533],$[607],$[1093],$[144],$[1702],$[1320]],"String":[$[597],$[846],$[1393],$[1504],$[875],$[1711],$[324],$[533],$[1310],$[1002],$[562],$[848],$[1176],$[693],$[684],$[1571],$[492],$[509]]},__wrap:function($0,$1){return function($2){return $0.prototype[$1].apply($2,Array.prototype.slice.call(arguments,1));};},__init:function(){var $0=qx.lang.Generics.__map;for(var $1 in $0){var $2=window[$1];var $3=$0[$1];for(var $4=0,$5=$3.length;$4<$5;$4++){var $6=$3[$4];if(!$2[$6]){$2[$6]=qx.lang.Generics.__wrap($2,$6);}}}}},defer:function($0){$0.__init();}});
4
qx.Class.define($[1609],{statics:{__settings:{},define:function($0,$1){if($1===undefined){throw new Error('Default value of setting "'+$0+'" must be defined!');}if(!this.__settings[$0]){this.__settings[$0]={};}else if(this.__settings[$0].defaultValue!==undefined){throw new Error('Setting "'+$0+'" is already defined!');}this.__settings[$0].defaultValue=$1;},get:function($0){var $1=this.__settings[$0];if($1===undefined){throw new Error('Setting "'+$0+'" is not defined.');}if($1.value!==undefined){return $1.value;}return $1.defaultValue;},__init:function(){if(window.qxsettings){for(var $0 in qxsettings){if(($0.split($[24])).length<2){throw new Error('Malformed settings key "'+$0+'". Must be following the schema "namespace.key".');}if(!this.__settings[$0]){this.__settings[$0]={};}this.__settings[$0].value=qxsettings[$0];}window.qxsettings=undefined;try{delete window.qxsettings;}catch(ex){}this.__loadUrlSettings();}},__loadUrlSettings:function(){if(this.get($[411])!=true){return;}var $0=document.location.search.slice(1).split($[93]);for(var $1=0;$1<$0.length;$1++){var $2=$0[$1].split($[47]);if($2.length!=3||$2[0]!=$[1372]){continue;}var $3=$2[1];if(!this.__settings[$3]){this.__settings[$3]={};}this.__settings[$3].value=decodeURIComponent($2[2]);}}},defer:function($0){$0.define($[411],false);$0.define($[440],false);$0.define($[288],$[568]);$0.define($[1681],true);$0.__init();}});
4
qx.Class.define($[1608],{statics:{__settings:{},define:function($0,$1){if($1===undefined){throw new Error('Default value of setting "'+$0+'" must be defined!');}if(!this.__settings[$0]){this.__settings[$0]={};}else if(this.__settings[$0].defaultValue!==undefined){throw new Error('Setting "'+$0+'" is already defined!');}this.__settings[$0].defaultValue=$1;},get:function($0){var $1=this.__settings[$0];if($1===undefined){throw new Error('Setting "'+$0+'" is not defined.');}if($1.value!==undefined){return $1.value;}return $1.defaultValue;},__init:function(){if(window.qxsettings){for(var $0 in qxsettings){if(($0.split($[24])).length<2){throw new Error('Malformed settings key "'+$0+'". Must be following the schema "namespace.key".');}if(!this.__settings[$0]){this.__settings[$0]={};}this.__settings[$0].value=qxsettings[$0];}window.qxsettings=undefined;try{delete window.qxsettings;}catch(ex){}this.__loadUrlSettings();}},__loadUrlSettings:function(){if(this.get($[412])!=true){return;}var $0=document.location.search.slice(1).split($[93]);for(var $1=0;$1<$0.length;$1++){var $2=$0[$1].split($[47]);if($2.length!=3||$2[0]!=$[1373]){continue;}var $3=$2[1];if(!this.__settings[$3]){this.__settings[$3]={};}this.__settings[$3].value=decodeURIComponent($2[2]);}}},defer:function($0){$0.define($[412],false);$0.define($[441],false);$0.define($[288],$[568]);$0.define($[1680],true);$0.__init();}});
5
qx.Class.define($[1308],{statics:{fromArguments:function($0){return Array.prototype.slice.call($0,0);},fromCollection:function($0){return Array.prototype.slice.call($0,0);},fromShortHand:function($0){var $1=$0.length;if($1>4||$1==0){this.error("Invalid number of arguments!");}var $2=qx.lang.Array.copy($0);switch($1){case 1:$2[1]=$2[2]=$2[3]=$2[0];break;case 2:$2[2]=$2[0];case 3:$2[3]=$2[1];}return $2;},copy:function($0){return $0.concat();},clone:function($0){return $0.concat();},getLast:function($0){return $0[$0.length-1];},getFirst:function($0){return $0[0];},insertAt:function($0,$1,$2){$0.splice($2,0,$1);return $0;},insertBefore:function($0,$1,$2){var $3=$0.indexOf($2);if($3==-1){$0.push($1);}else{$0.splice($3,0,$1);}return $0;},insertAfter:function($0,$1,$2){var $3=$0.indexOf($2);if($3==-1||$3==($0.length-1)){$0.push($1);}else{$0.splice($3+1,0,$1);}return $0;},removeAt:function($0,$1){return $0.splice($1,1)[0];},removeAll:function($0){return $0.length=0;},append:function($0,$1){{};Array.prototype.push.apply($0,$1);return $0;},remove:function($0,$1){var $2=$0.indexOf($1);if($2!=-1){$0.splice($2,1);return $1;}},contains:function($0,$1){return $0.indexOf($1)!=-1;},equals:function($0,$1){if($0.length!==$1.length){return false;}for(var $2=0,$3=$0.length;$2<$3;$2++){if($0[$2]!==$1[$2]){return false;}}return true;}}});
5
qx.Class.define($[1307],{statics:{fromArguments:function($0){return Array.prototype.slice.call($0,0);},fromCollection:function($0){return Array.prototype.slice.call($0,0);},fromShortHand:function($0){var $1=$0.length;if($1>4||$1==0){this.error("Invalid number of arguments!");}var $2=qx.lang.Array.copy($0);switch($1){case 1:$2[1]=$2[2]=$2[3]=$2[0];break;case 2:$2[2]=$2[0];case 3:$2[3]=$2[1];}return $2;},copy:function($0){return $0.concat();},clone:function($0){return $0.concat();},getLast:function($0){return $0[$0.length-1];},getFirst:function($0){return $0[0];},insertAt:function($0,$1,$2){$0.splice($2,0,$1);return $0;},insertBefore:function($0,$1,$2){var $3=$0.indexOf($2);if($3==-1){$0.push($1);}else{$0.splice($3,0,$1);}return $0;},insertAfter:function($0,$1,$2){var $3=$0.indexOf($2);if($3==-1||$3==($0.length-1)){$0.push($1);}else{$0.splice($3+1,0,$1);}return $0;},removeAt:function($0,$1){return $0.splice($1,1)[0];},removeAll:function($0){return $0.length=0;},append:function($0,$1){{};Array.prototype.push.apply($0,$1);return $0;},remove:function($0,$1){var $2=$0.indexOf($1);if($2!=-1){$0.splice($2,1);return $1;}},contains:function($0,$1){return $0.indexOf($1)!=-1;},equals:function($0,$1){if($0.length!==$1.length){return false;}for(var $2=0,$3=$0.length;$2<$3;$2++){if($0[$2]!==$1[$2]){return false;}}return true;}}});
6
qx.Class.define($[1282],{statics:{__variants:{},__cache:{},compilerIsSet:function(){return true;},define:function($0,$1,$2){{};if(!this.__variants[$0]){this.__variants[$0]={};}else{}this.__variants[$0].allowedValues=$1;this.__variants[$0].defaultValue=$2;},get:function($0){var $1=this.__variants[$0];{};if($1.value!==undefined){return $1.value;}return $1.defaultValue;},__init:function(){if(window.qxvariants){for(var $0 in qxvariants){{};if(!this.__variants[$0]){this.__variants[$0]={};}this.__variants[$0].value=qxvariants[$0];}window.qxvariants=undefined;try{delete window.qxvariants;}catch(ex){}this.__loadUrlVariants(this.__variants);}},__loadUrlVariants:function(){if(qx.core.Setting.get($[440])!=true){return;}var $0=document.location.search.slice(1).split($[93]);for(var $1=0;$1<$0.length;$1++){var $2=$0[$1].split($[47]);if($2.length!=3||$2[0]!=$[871]){continue;}var $3=$2[1];if(!this.__variants[$3]){this.__variants[$3]={};}this.__variants[$3].value=decodeURIComponent($2[2]);}},select:function($0,$1){{};for(var $2 in $1){if(this.isSet($0,$2)){return $1[$2];}}if($1[$[295]]!==undefined){return $1[$[295]];}{};},isSet:function($0,$1){var $2=$0+$[207]+$1;if(this.__cache[$2]!==undefined){return this.__cache[$2];}var $3=false;if($1.indexOf($[397])<0){$3=this.get($0)===$1;}else{var $4=$1.split($[397]);for(var $5=0,$6=$4.length;$5<$6;$5++){if(this.get($0)===$4[$5]){$3=true;break;}}}this.__cache[$2]=$3;return $3;},__isValidArray:function($0){return typeof $0===$[28]&&$0!==null&&$0 instanceof Array;},__isValidObject:function($0){return typeof $0===$[28]&&$0!==null&&!($0 instanceof Array);},__arrayContains:function($0,$1){for(var $2=0,$3=$0.length;$2<$3;$2++){if($0[$2]==$1){return true;}}return false;}},defer:function($0){$0.define($[897],[$[23],$[55]],$[23]);$0.define($[1755],[$[23],$[55]],$[23]);$0.define($[1033],[$[23],$[55]],$[55]);$0.define($[108],[$[23],$[55]],$[55]);$0.define($[263],[$[23],$[55]],$[23]);$0.__init();}});
6
qx.Class.define($[1281],{statics:{__variants:{},__cache:{},compilerIsSet:function(){return true;},define:function($0,$1,$2){{};if(!this.__variants[$0]){this.__variants[$0]={};}else{}this.__variants[$0].allowedValues=$1;this.__variants[$0].defaultValue=$2;},get:function($0){var $1=this.__variants[$0];{};if($1.value!==undefined){return $1.value;}return $1.defaultValue;},__init:function(){if(window.qxvariants){for(var $0 in qxvariants){{};if(!this.__variants[$0]){this.__variants[$0]={};}this.__variants[$0].value=qxvariants[$0];}window.qxvariants=undefined;try{delete window.qxvariants;}catch(ex){}this.__loadUrlVariants(this.__variants);}},__loadUrlVariants:function(){if(qx.core.Setting.get($[441])!=true){return;}var $0=document.location.search.slice(1).split($[93]);for(var $1=0;$1<$0.length;$1++){var $2=$0[$1].split($[47]);if($2.length!=3||$2[0]!=$[871]){continue;}var $3=$2[1];if(!this.__variants[$3]){this.__variants[$3]={};}this.__variants[$3].value=decodeURIComponent($2[2]);}},select:function($0,$1){{};for(var $2 in $1){if(this.isSet($0,$2)){return $1[$2];}}if($1[$[295]]!==undefined){return $1[$[295]];}{};},isSet:function($0,$1){var $2=$0+$[207]+$1;if(this.__cache[$2]!==undefined){return this.__cache[$2];}var $3=false;if($1.indexOf($[398])<0){$3=this.get($0)===$1;}else{var $4=$1.split($[398]);for(var $5=0,$6=$4.length;$5<$6;$5++){if(this.get($0)===$4[$5]){$3=true;break;}}}this.__cache[$2]=$3;return $3;},__isValidArray:function($0){return typeof $0===$[28]&&$0!==null&&$0 instanceof Array;},__isValidObject:function($0){return typeof $0===$[28]&&$0!==null&&!($0 instanceof Array);},__arrayContains:function($0,$1){for(var $2=0,$3=$0.length;$2<$3;$2++){if($0[$2]==$1){return true;}}return false;}},defer:function($0){$0.define($[897],[$[23],$[55]],$[23]);$0.define($[1755],[$[23],$[55]],$[23]);$0.define($[1032],[$[23],$[55]],$[55]);$0.define($[108],[$[23],$[55]],$[55]);$0.define($[263],[$[23],$[55]],$[23]);$0.__init();}});
7
qx.Class.define($[1179],{statics:{__registry:[],wrap:function($0,$1,$2){if(!qx.core.Setting.get($[426])){return $1;}var $3=[];var $4=[];for(var $5=0;$5<this.__registry.length;$5++){var $6=this.__registry[$5];if($0.match($6.re)&&($2==$6.type||$6.type==$[140])){var $7=$6.pos;if($7==$[447]){$3.push($6.fcn);}else{$4.push($6.fcn);}}}if($3.length==0&&$4.length==0){return $1;}var $8=function(){for(var $5=0;$5<$3.length;$5++){$3[$5].call(this,$0,$1,$2,arguments);}var $9=$1.apply(this,arguments);for(var $5=0;$5<$4.length;$5++){$4[$5].call(this,$0,$1,$2,arguments,$9);}return $9;};if($2!=$[178]){$8.self=$1.self;$8.base=$1.base;}$1.wrapper=$8;return $8;},addAdvice:function($0,$1,$2,$3){if($0!=$[447]&&$0!=$[720]){throw new Error("Unknown position: '"+$0+"'");}this.__registry.push({pos:$0,type:$1,re:$2,fcn:$3});}},defer:function(){qx.core.Setting.define($[426],false);}});
7
qx.Class.define($[1178],{statics:{__registry:[],wrap:function($0,$1,$2){if(!qx.core.Setting.get($[427])){return $1;}var $3=[];var $4=[];for(var $5=0;$5<this.__registry.length;$5++){var $6=this.__registry[$5];if($0.match($6.re)&&($2==$6.type||$6.type==$[140])){var $7=$6.pos;if($7==$[448]){$3.push($6.fcn);}else{$4.push($6.fcn);}}}if($3.length==0&&$4.length==0){return $1;}var $8=function(){for(var $5=0;$5<$3.length;$5++){$3[$5].call(this,$0,$1,$2,arguments);}var $9=$1.apply(this,arguments);for(var $5=0;$5<$4.length;$5++){$4[$5].call(this,$0,$1,$2,arguments,$9);}return $9;};if($2!=$[178]){$8.self=$1.self;$8.base=$1.base;}$1.wrapper=$8;return $8;},addAdvice:function($0,$1,$2,$3){if($0!=$[448]&&$0!=$[721]){throw new Error("Unknown position: '"+$0+"'");}this.__registry.push({pos:$0,type:$1,re:$2,fcn:$3});}},defer:function(){qx.core.Setting.define($[427],false);}});
8
qx.Class.define($[1561],{statics:{__init:function(){var $0=window.location.protocol===$[441];var $1=navigator.userAgent;var $2=navigator.vendor;var $3=navigator.product;var $4=navigator.platform;var $5=false;var $6;var $7=null;var $8=null;var $9=0;var $a=0;var $b=0;var $c=0;var $d=null;var $e=null;var $f;if(window.opera&&/Opera[\s\/]([0-9\.]*)/.test($1)){$7=$[154];$8=RegExp.$1;$6=$[154];$8=$8.substring(0,3)+$[24]+$8.substring(3);$d=$1.indexOf($[1198])!==-1?$[13]:$1.indexOf($[979])!==-1?$[21]:null;}else if(typeof $2===$[8]&&$2===$[1312]&&/KHTML\/([0-9-\.]*)/.test($1)){$7=$[157];$6=$[1473];$8=RegExp.$1;}else if($1.indexOf($[1055])!=-1&&/AppleWebKit\/([^ ]+)/.test($1)){$7=$[147];$8=RegExp.$1;$e=$8.indexOf($[246])!=-1;var $g=RegExp($[656]).exec($8);if($g){$8=$8.slice(0,$g.index);}if($1.indexOf($[1668])!=-1){$6=$[789];}else if($1.indexOf($[654])!=-1){$6=$[1027];}else if($1.indexOf($[1785])!=-1){$6=$[1569];}else if($1.indexOf($[1754])!=-1){$6=$[930];}else if($1.indexOf($[1104])!=-1){$6=$[1583];}else{$6=$[1584];}if($e){$6+=$[571];}}else if(window.controllers&&typeof $3===$[8]&&$3===$[1293]&&/rv\:([^\);]+)(\)|;)/.test($1)){$7=$[21];$8=RegExp.$1;if($1.indexOf($[943])!=-1){$6=$[633];}else if($1.indexOf($[1791])!=-1){$6=$[1597];}else if($1.indexOf($[718])!=-1){$6=$[1050];}else{$6=$[1066];}}else if(/MSIE\s+([^\);]+)(\)|;)/.test($1)){$7=$[13];$8=RegExp.$1;$6=$[1663];$5=!window.external;}if($8){$f=$8.split($[24]);$9=$f[0]||0;$a=$f[1]||0;$b=$f[2]||0;$c=$f[3]||0;}var $h=[];switch($7){case $[21]:$h.push($[944]);break;case $[157]:$h.push($[420]);break;case $[147]:$h.push($[420]);$h.push($[661]);break;case $[13]:break;default:break;}$h.push($[1328]);var $i=document.compatMode!==$[91];var $j=$[1675];var $k=($7==$[13]?navigator.userLanguage:navigator.language).toLowerCase();var $l=null;var $m=$k.indexOf($[137]);if($m!=-1){$l=$k.substr($m+1);$k=$k.substr(0,$m);}var $n=$[7];var $o=false;var $p=false;var $q=false;var $r=false;if($4.indexOf($[802])!=-1||$4.indexOf($[605])!=-1||$4.indexOf($[1401])!=-1){$o=true;$n=$[328];}else if($4.indexOf($[578])!=-1||$4.indexOf($[596])!=-1||$4.indexOf($[1143])!=-1){$p=true;$n=$[1181];}else if($4.indexOf($[1752])!=-1||$4.indexOf($[546])!=-1||$4.indexOf($[1470])!=-1){$q=true;$n=$[1171];}else{$r=true;$n=$[48];}var $s=false;var $t=false;var $u=false;var $v=false;if($7==$[13]){$s=true;}if(document.implementation&&document.implementation.hasFeature){if(document.implementation.hasFeature($[1354],$[608])){$t=$u=true;}}this._runsLocally=$0;this._engineName=$7;this._engineNameMshtml=$7===$[13];this._engineNameGecko=$7===$[21];this._engineNameOpera=$7===$[154];this._engineNameKhtml=$7===$[157];this._engineNameWebkit=$7===$[147];this._engineVersion=parseFloat($8);this._engineVersionMajor=parseInt($9);this._engineVersionMinor=parseInt($a);this._engineVersionRevision=parseInt($b);this._engineVersionBuild=parseInt($c);this._engineQuirksMode=$i;this._engineBoxSizingAttributes=$h;this._engineEmulation=$d;this._browserName=$6;this._defaultLocale=$j;this._browserPlatform=$n;this._browserPlatformWindows=$o;this._browserPlatformMacintosh=$p;this._browserPlatformUnix=$q;this._browserPlatformOther=$r;this._browserModeHta=$5;this._browserLocale=$k;this._browserLocaleVariant=$l;this._gfxVml=$s;this._gfxSvg=$t;this._gfxSvgBuiltin=$u;this._gfxSvgPlugin=$v;this._fireBugActive=(window.console&&console.log&&console.debug&&console.assert);this._supportsTextContent=(document.documentElement.textContent!==undefined);this._supportsInnerText=(document.documentElement.innerText!==undefined);this._supportsXPath=!!document.evaluate;this._supportsElementExtensions=!!window.HTMLElement;},getRunsLocally:function(){return this._runsLocally;},getEngine:function(){return this._engineName;},getBrowser:function(){return this._browserName;},getVersion:function(){return this._engineVersion;},getMajor:function(){return this._engineVersionMajor;},getMinor:function(){return this._engineVersionMinor;},getRevision:function(){return this._engineVersionRevision;},getBuild:function(){return this._engineVersionBuild;},getEmulation:function(){return this._engineEmulation;},isMshtml:function(){return this._engineNameMshtml;},isGecko:function(){return this._engineNameGecko;},isOpera:function(){return this._engineNameOpera;},isKhtml:function(){return this._engineNameKhtml;},isWebkit:function(){return this._engineNameWebkit;},isSafari2:function(){return this._engineNameWebkit&&(this._engineVersion<420);},isInQuirksMode:function(){return this._engineQuirksMode;},getLocale:function(){return this._browserLocale;},getLocaleVariant:function(){return this._browserLocaleVariant;},getDefaultLocale:function(){return this._defaultLocale;},usesDefaultLocale:function(){return this._browserLocale===this._defaultLocale;},getEngineBoxSizingAttributes:function(){return this._engineBoxSizingAttributes;},getPlatform:function(){return this._browserPlatform;},runsOnWindows:function(){return this._browserPlatformWindows;},runsOnMacintosh:function(){return this._browserPlatformMacintosh;},runsOnUnix:function(){return this._browserPlatformUnix;},supportsVml:function(){return this._gfxVml;},supportsSvg:function(){return this._gfxSvg;},usesSvgBuiltin:function(){return this._gfxSvgBuiltin;},usesSvgPlugin:function(){return this._gfxSvgPlugin;},isFireBugActive:function(){return this._fireBugActive;},supportsTextContent:function(){return this._supportsTextContent;},supportsInnerText:function(){return this._supportsInnerText;},getInstance:function(){return this;}},defer:function($0,$1,$2){$0.__init();qx.core.Variant.define($[1],[$[21],$[13],$[154],$[147],$[157]],qx.core.Client.getInstance().getEngine());}});
8
qx.Class.define($[1560],{statics:{__init:function(){var $0=window.location.protocol===$[442];var $1=navigator.userAgent;var $2=navigator.vendor;var $3=navigator.product;var $4=navigator.platform;var $5=false;var $6;var $7=null;var $8=null;var $9=0;var $a=0;var $b=0;var $c=0;var $d=null;var $e=null;var $f;if(window.opera&&/Opera[\s\/]([0-9\.]*)/.test($1)){$7=$[154];$8=RegExp.$1;$6=$[154];$8=$8.substring(0,3)+$[24]+$8.substring(3);$d=$1.indexOf($[1197])!==-1?$[13]:$1.indexOf($[978])!==-1?$[21]:null;}else if(typeof $2===$[8]&&$2===$[1311]&&/KHTML\/([0-9-\.]*)/.test($1)){$7=$[157];$6=$[1472];$8=RegExp.$1;}else if($1.indexOf($[1055])!=-1&&/AppleWebKit\/([^ ]+)/.test($1)){$7=$[147];$8=RegExp.$1;$e=$8.indexOf($[246])!=-1;var $g=RegExp($[656]).exec($8);if($g){$8=$8.slice(0,$g.index);}if($1.indexOf($[1667])!=-1){$6=$[790];}else if($1.indexOf($[654])!=-1){$6=$[1026];}else if($1.indexOf($[1785])!=-1){$6=$[1568];}else if($1.indexOf($[1754])!=-1){$6=$[929];}else if($1.indexOf($[1104])!=-1){$6=$[1582];}else{$6=$[1583];}if($e){$6+=$[571];}}else if(window.controllers&&typeof $3===$[8]&&$3===$[1291]&&/rv\:([^\);]+)(\)|;)/.test($1)){$7=$[21];$8=RegExp.$1;if($1.indexOf($[942])!=-1){$6=$[633];}else if($1.indexOf($[1791])!=-1){$6=$[1596];}else if($1.indexOf($[719])!=-1){$6=$[1049];}else{$6=$[1066];}}else if(/MSIE\s+([^\);]+)(\)|;)/.test($1)){$7=$[13];$8=RegExp.$1;$6=$[1016];$5=!window.external;}if($8){$f=$8.split($[24]);$9=$f[0]||0;$a=$f[1]||0;$b=$f[2]||0;$c=$f[3]||0;}var $h=[];switch($7){case $[21]:$h.push($[943]);break;case $[157]:$h.push($[421]);break;case $[147]:$h.push($[421]);$h.push($[661]);break;case $[13]:break;default:break;}$h.push($[1327]);var $i=document.compatMode!==$[91];var $j=$[1674];var $k=($7==$[13]?navigator.userLanguage:navigator.language).toLowerCase();var $l=null;var $m=$k.indexOf($[137]);if($m!=-1){$l=$k.substr($m+1);$k=$k.substr(0,$m);}var $n=$[7];var $o=false;var $p=false;var $q=false;var $r=false;if($4.indexOf($[803])!=-1||$4.indexOf($[605])!=-1||$4.indexOf($[1402])!=-1){$o=true;$n=$[328];}else if($4.indexOf($[578])!=-1||$4.indexOf($[596])!=-1||$4.indexOf($[1142])!=-1){$p=true;$n=$[1180];}else if($4.indexOf($[1752])!=-1||$4.indexOf($[546])!=-1||$4.indexOf($[1469])!=-1){$q=true;$n=$[1170];}else{$r=true;$n=$[48];}var $s=false;var $t=false;var $u=false;var $v=false;if($7==$[13]){$s=true;}if(document.implementation&&document.implementation.hasFeature){if(document.implementation.hasFeature($[1355],$[608])){$t=$u=true;}}this._runsLocally=$0;this._engineName=$7;this._engineNameMshtml=$7===$[13];this._engineNameGecko=$7===$[21];this._engineNameOpera=$7===$[154];this._engineNameKhtml=$7===$[157];this._engineNameWebkit=$7===$[147];this._engineVersion=parseFloat($8);this._engineVersionMajor=parseInt($9);this._engineVersionMinor=parseInt($a);this._engineVersionRevision=parseInt($b);this._engineVersionBuild=parseInt($c);this._engineQuirksMode=$i;this._engineBoxSizingAttributes=$h;this._engineEmulation=$d;this._browserName=$6;this._defaultLocale=$j;this._browserPlatform=$n;this._browserPlatformWindows=$o;this._browserPlatformMacintosh=$p;this._browserPlatformUnix=$q;this._browserPlatformOther=$r;this._browserModeHta=$5;this._browserLocale=$k;this._browserLocaleVariant=$l;this._gfxVml=$s;this._gfxSvg=$t;this._gfxSvgBuiltin=$u;this._gfxSvgPlugin=$v;this._fireBugActive=(window.console&&console.log&&console.debug&&console.assert);this._supportsTextContent=(document.documentElement.textContent!==undefined);this._supportsInnerText=(document.documentElement.innerText!==undefined);this._supportsXPath=!!document.evaluate;this._supportsElementExtensions=!!window.HTMLElement;},getRunsLocally:function(){return this._runsLocally;},getEngine:function(){return this._engineName;},getBrowser:function(){return this._browserName;},getVersion:function(){return this._engineVersion;},getMajor:function(){return this._engineVersionMajor;},getMinor:function(){return this._engineVersionMinor;},getRevision:function(){return this._engineVersionRevision;},getBuild:function(){return this._engineVersionBuild;},getEmulation:function(){return this._engineEmulation;},isMshtml:function(){return this._engineNameMshtml;},isGecko:function(){return this._engineNameGecko;},isOpera:function(){return this._engineNameOpera;},isKhtml:function(){return this._engineNameKhtml;},isWebkit:function(){return this._engineNameWebkit;},isSafari2:function(){return this._engineNameWebkit&&(this._engineVersion<420);},isInQuirksMode:function(){return this._engineQuirksMode;},getLocale:function(){return this._browserLocale;},getLocaleVariant:function(){return this._browserLocaleVariant;},getDefaultLocale:function(){return this._defaultLocale;},usesDefaultLocale:function(){return this._browserLocale===this._defaultLocale;},getEngineBoxSizingAttributes:function(){return this._engineBoxSizingAttributes;},getPlatform:function(){return this._browserPlatform;},runsOnWindows:function(){return this._browserPlatformWindows;},runsOnMacintosh:function(){return this._browserPlatformMacintosh;},runsOnUnix:function(){return this._browserPlatformUnix;},supportsVml:function(){return this._gfxVml;},supportsSvg:function(){return this._gfxSvg;},usesSvgBuiltin:function(){return this._gfxSvgBuiltin;},usesSvgPlugin:function(){return this._gfxSvgPlugin;},isFireBugActive:function(){return this._fireBugActive;},supportsTextContent:function(){return this._supportsTextContent;},supportsInnerText:function(){return this._supportsInnerText;},getInstance:function(){return this;}},defer:function($0,$1,$2){$0.__init();qx.core.Variant.define($[1],[$[21],$[13],$[154],$[147],$[157]],qx.core.Client.getInstance().getEngine());}});
9
qx.Class.define($[1133],{statics:{isEmpty:function($0){for(var $1 in $0){return false;}return true;},hasMinLength:function($0,$1){var $2=0;for(var $3 in $0){if((++$2)>=$1){return true;}}return false;},getLength:function($0){var $1=0;for(var $2 in $0){$1++;}return $1;},_shadowedKeys:[$[1749],$[740],$[1695],$[451],$[1160]],getKeys:qx.core.Variant.select($[1],{"mshtml":function($0){var $1=[];for(var $2 in $0){$1.push($2);}for(var $3=0,$4=this._shadowedKeys,$5=$4.length;$3<$5;$3++){if($0.hasOwnProperty($4[$3])){$1.push($4[$3]);}}return $1;},"default":function($0){var $1=[];for(var $2 in $0){$1.push($2);}return $1;}}),getKeysAsString:function($0){var $1=qx.lang.Object.getKeys($0);if($1.length==0){return $[0];}return $[109]+$1.join($[1005])+$[109];},getValues:function($0){var $1=[];for(var $2 in $0){$1.push($0[$2]);}return $1;},mergeWith:function($0,$1,$2){if($2===undefined){$2=true;}for(var $3 in $1){if($2||$0[$3]===undefined){$0[$3]=$1[$3];}}return $0;},carefullyMergeWith:function($0,$1){qx.log.Logger.deprecatedMethodWarning(arguments.callee);return qx.lang.Object.mergeWith($0,$1,false);},merge:function($0,$1){var $2=arguments.length;for(var $3=1;$3<$2;$3++){qx.lang.Object.mergeWith($0,arguments[$3]);}return $0;},copy:function($0){var $1={};for(var $2 in $0){$1[$2]=$0[$2];}return $1;},invert:function($0){var $1={};for(var $2 in $0){$1[$0[$2].toString()]=$2;}return $1;},getKeyFromValue:function($0,$1){for(var $2 in $0){if($0[$2]===$1){return $2;}}return null;},select:function($0,$1){return $1[$0];},fromArray:function($0){var $1={};for(var $2=0,$3=$0.length;$2<$3;$2++){{};$1[$0[$2].toString()]=true;}return $1;}}});
9
qx.Class.define($[1132],{statics:{isEmpty:function($0){for(var $1 in $0){return false;}return true;},hasMinLength:function($0,$1){var $2=0;for(var $3 in $0){if((++$2)>=$1){return true;}}return false;},getLength:function($0){var $1=0;for(var $2 in $0){$1++;}return $1;},_shadowedKeys:[$[1749],$[741],$[1695],$[452],$[1159]],getKeys:qx.core.Variant.select($[1],{"mshtml":function($0){var $1=[];for(var $2 in $0){$1.push($2);}for(var $3=0,$4=this._shadowedKeys,$5=$4.length;$3<$5;$3++){if($0.hasOwnProperty($4[$3])){$1.push($4[$3]);}}return $1;},"default":function($0){var $1=[];for(var $2 in $0){$1.push($2);}return $1;}}),getKeysAsString:function($0){var $1=qx.lang.Object.getKeys($0);if($1.length==0){return $[0];}return $[109]+$1.join($[1004])+$[109];},getValues:function($0){var $1=[];for(var $2 in $0){$1.push($0[$2]);}return $1;},mergeWith:function($0,$1,$2){if($2===undefined){$2=true;}for(var $3 in $1){if($2||$0[$3]===undefined){$0[$3]=$1[$3];}}return $0;},carefullyMergeWith:function($0,$1){qx.log.Logger.deprecatedMethodWarning(arguments.callee);return qx.lang.Object.mergeWith($0,$1,false);},merge:function($0,$1){var $2=arguments.length;for(var $3=1;$3<$2;$3++){qx.lang.Object.mergeWith($0,arguments[$3]);}return $0;},copy:function($0){var $1={};for(var $2 in $0){$1[$2]=$0[$2];}return $1;},invert:function($0){var $1={};for(var $2 in $0){$1[$0[$2].toString()]=$2;}return $1;},getKeyFromValue:function($0,$1){for(var $2 in $0){if($0[$2]===$1){return $2;}}return null;},select:function($0,$1){return $1[$0];},fromArray:function($0){var $1={};for(var $2=0,$3=$0.length;$2<$3;$2++){{};$1[$0[$2].toString()]=true;}return $1;}}});
10
qx.Class.define($[602],{statics:{define:function($0,$1){if(!$1){var $1={};}if($1.include&&!($1.include instanceof Array)){$1.include=[$1.include];}if($1.implement&&!($1.implement instanceof Array)){$1.implement=[$1.implement];}if(!$1.hasOwnProperty($[629])&&!$1.type){$1.type=$[178];}{};var $2=this.__createClass($0,$1.type,$1.extend,$1.statics,$1.construct,$1.destruct);if($1.extend){if($1.properties){this.__addProperties($2,$1.properties,true);}if($1.members){this.__addMembers($2,$1.members,true,true);}if($1.events){this.__addEvents($2,$1.events,true);}if($1.include){for(var $3=0,$4=$1.include.length;$3<$4;$3++){this.__addMixin($2,$1.include[$3],false);}}}if($1.settings){for(var $5 in $1.settings){qx.core.Setting.define($5,$1.settings[$5]);}}if($1.variants){for(var $5 in $1.variants){qx.core.Variant.define($5,$1.variants[$5].allowedValues,$1.variants[$5].defaultValue);}}if($1.defer){$1.defer.self=$2;$1.defer($2,$2.prototype,{add:function($0,$1){var $6={};$6[$0]=$1;qx.Class.__addProperties($2,$6,true);}});}if($1.implement){for(var $3=0,$4=$1.implement.length;$3<$4;$3++){this.__addInterface($2,$1.implement[$3]);}}},createNamespace:function($0,$1){var $2=$0.split($[24]);var $3=window;var $4=$2[0];for(var $5=0,$6=$2.length-1;$5<$6;$5++,$4=$2[$5]){if(!$3[$4]){$3=$3[$4]={};}else{$3=$3[$4];}}{};$3[$4]=$1;return $4;},isDefined:function($0){return this.getByName($0)!==undefined;},getTotalNumber:function(){return qx.lang.Object.getLength(this.__registry);},getByName:function($0){return this.__registry[$0];},include:function($0,$1){{};qx.Class.__addMixin($0,$1,false);},patch:function($0,$1){{};qx.Class.__addMixin($0,$1,true);},isSubClassOf:function($0,$1){if(!$0){return false;}if($0==$1){return true;}if($0.prototype instanceof $1){return true;}return false;},getPropertyDefinition:function($0,$1){while($0){if($0.$$properties&&$0.$$properties[$1]){return $0.$$properties[$1];}$0=$0.superclass;}return null;},getByProperty:function($0,$1){while($0){if($0.$$properties&&$0.$$properties[$1]){return $0;}$0=$0.superclass;}return null;},hasProperty:function($0,$1){return !!this.getPropertyDefinition($0,$1);},getEventType:function($0,$1){var $0=$0.constructor;while($0.superclass){if($0.$$events&&$0.$$events[$1]!==undefined){return $0.$$events[$1];}$0=$0.superclass;}return null;},supportsEvent:function($0,$1){return !!this.getEventType($0,$1);},hasOwnMixin:function($0,$1){return $0.$$includes&&$0.$$includes.indexOf($1)!==-1;},getByMixin:function($0,$1){var $2,$3,$4;while($0){if($0.$$includes){$2=$0.$$flatIncludes;for($3=0,$4=$2.length;$3<$4;$3++){if($2[$3]===$1){return $0;}}}$0=$0.superclass;}return null;},getMixins:function($0){var $1=[];while($0){if($0.$$includes){$1.push.apply($1,$0.$$flatIncludes);}$0=$0.superclass;}return $1;},hasMixin:function($0,$1){return !!this.getByMixin($0,$1);},hasOwnInterface:function($0,$1){return $0.$$implements&&$0.$$implements.indexOf($1)!==-1;},getByInterface:function($0,$1){var $2,$3,$4;while($0){if($0.$$implements){$2=$0.$$flatImplements;for($3=0,$4=$2.length;$3<$4;$3++){if($2[$3]===$1){return $0;}}}$0=$0.superclass;}return null;},getInterfaces:function($0){var $1=[];while($0){if($0.$$implements){$1.push.apply($1,$0.$$flatImplements);}$0=$0.superclass;}return $1;},hasInterface:function($0,$1){return !!this.getByInterface($0,$1);},implementsInterface:function($0,$1){if(this.hasInterface($0,$1)){return true;}try{qx.Interface.assert($0,$1,false);return true;}catch(ex){}return false;},getInstance:function(){if(!this.$$instance){this.$$allowconstruct=true;this.$$instance=new this;delete this.$$allowconstruct;}return this.$$instance;},genericToString:function(){return $[1449]+this.classname+$[115];},__registry:qx.core.Bootstrap.__registry,__allowedKeys:null,__staticAllowedKeys:null,__validateConfig:function(){},__createClass:function($0,$1,$2,$3,$4,$5){var $6;if(!$2&&qx.core.Variant.isSet($[108],$[55])){$6=$3||{};}else{$6={};if($2){if(!$4){$4=this.__createDefaultConstructor();}$6=this.__wrapConstructor($4,$0,$1);}if($3){var $7;for(var $8=0,$9=qx.lang.Object.getKeys($3),$a=$9.length;$8<$a;$8++){$7=$9[$8];if(qx.core.Variant.isSet($[108],$[23])){var $b=$3[$7];if($b instanceof Function){$b=qx.core.Aspect.wrap($0+$[24]+$7,$b,$[178]);}$6[$7]=$b;}else{$6[$7]=$3[$7];}}}}var $c=this.createNamespace($0,$6,false);$6.name=$6.classname=$0;$6.basename=$c;if(!$6.hasOwnProperty($[451])){$6.toString=this.genericToString;}if($2){var $d=$2.prototype;var $e=this.__createEmptyFunction();$e.prototype=$d;var $f=new $e;$6.prototype=$f;$f.name=$f.classname=$0;$f.basename=$c;$4.base=$6.superclass=$2;$4.self=$6.constructor=$f.constructor=$6;if($5){if(qx.core.Variant.isSet($[108],$[23])){$5=qx.core.Aspect.wrap($0,$5,$[850]);}$6.$$destructor=$5;}}{};this.__registry[$0]=$6;return $6;},__addEvents:function($0,$1,$2){var $3,$3;if($0.$$events){for(var $3 in $1){$0.$$events[$3]=$1[$3];}}else{$0.$$events=$1;}},__addProperties:function($0,$1,$2){var $3;if($2===undefined){$2=false;}var $4=!!$0.$$propertiesAttached;for(var $5 in $1){$3=$1[$5];{};$3.name=$5;if(!$3.refine){if($0.$$properties===undefined){$0.$$properties={};}$0.$$properties[$5]=$3;}if($3.init!==undefined){$0.prototype[$[332]+$5]=$3.init;}if($3.event!==undefined){var $6={};$6[$3.event]=$[456];this.__addEvents($0,$6,$2);}if($3.inheritable){qx.core.Property.$$inheritable[$5]=true;}if($4){qx.core.Property.attachMethods($0,$5,$3);}if($3._fast){qx.core.LegacyProperty.addFastProperty($3,$0.prototype);}else if($3._cached){qx.core.LegacyProperty.addCachedProperty($3,$0.prototype);}else if($3._legacy){qx.core.LegacyProperty.addProperty($3,$0.prototype);}}},__validateProperty:null,__addMembers:function($0,$1,$2,$3){var $4=$0.prototype;var $5,$6;for(var $7=0,$8=qx.lang.Object.getKeys($1),$9=$8.length;$7<$9;$7++){$5=$8[$7];$6=$1[$5];{};if($3!==false&&$6 instanceof Function){if($4[$5]){$6.base=$4[$5];}$6.self=$0;if(qx.core.Variant.isSet($[108],$[23])){$6=qx.core.Aspect.wrap($0.classname+$[24]+$5,$6,$[1137]);}}$4[$5]=$6;}},__addInterface:function($0,$1){{};var $2=qx.Interface.flatten([$1]);if($0.$$implements){$0.$$implements.push($1);$0.$$flatImplements.push.apply($0.$$flatImplements,$2);}else{$0.$$implements=[$1];$0.$$flatImplements=$2;}},__addMixin:function($0,$1,$2){{};var $3=qx.Mixin.flatten([$1]);var $4;for(var $5=0,$6=$3.length;$5<$6;$5++){$4=$3[$5];if($4.$$events){this.__addEvents($0,$4.$$events,$2);}if($4.$$properties){this.__addProperties($0,$4.$$properties,$2);}if($4.$$members){this.__addMembers($0,$4.$$members,$2,false);}}if($0.$$includes){$0.$$includes.push($1);$0.$$flatIncludes.push.apply($0.$$flatIncludes,$3);}else{$0.$$includes=[$1];$0.$$flatIncludes=$3;}},__createDefaultConstructor:function(){function $0(){arguments.callee.base.apply(this,arguments);}return $0;},__createEmptyFunction:function(){return function(){};},__wrapConstructor:function($0,$1,$2){var $3=[];$3.push($[917]);{};$3.push($[669]);$3.push($[1596]);$3.push($[841]);$3.push($[891]);$3.push($[872]);$3.push($[895],$1,$[1080]);$3.push($[1111]);var $4=new Function($3.join($[0]));if(qx.core.Variant.isSet($[108],$[23])){var $5=qx.core.Aspect.wrap($1,$4,$[1464]);$4.$$original=$0;$4.constructor=$5;$4=$5;}if($2===$[18]){$4.getInstance=this.getInstance;}$4.$$original=$0;$0.wrapper=$4;return $4;}},defer:function($0){if(qx.core.Variant.isSet($[108],$[23])){for(var $1 in $0){if($0[$1] instanceof Function){$0[$1]=qx.core.Aspect.wrap($[537]+$1,$0[$1],$[178]);}}}}});
10
qx.Class.define($[602],{statics:{define:function($0,$1){if(!$1){var $1={};}if($1.include&&!($1.include instanceof Array)){$1.include=[$1.include];}if($1.implement&&!($1.implement instanceof Array)){$1.implement=[$1.implement];}if(!$1.hasOwnProperty($[629])&&!$1.type){$1.type=$[178];}{};var $2=this.__createClass($0,$1.type,$1.extend,$1.statics,$1.construct,$1.destruct);if($1.extend){if($1.properties){this.__addProperties($2,$1.properties,true);}if($1.members){this.__addMembers($2,$1.members,true,true,false);}if($1.events){this.__addEvents($2,$1.events,true);}if($1.include){for(var $3=0,$4=$1.include.length;$3<$4;$3++){this.__addMixin($2,$1.include[$3],false);}}}if($1.settings){for(var $5 in $1.settings){qx.core.Setting.define($5,$1.settings[$5]);}}if($1.variants){for(var $5 in $1.variants){qx.core.Variant.define($5,$1.variants[$5].allowedValues,$1.variants[$5].defaultValue);}}if($1.defer){$1.defer.self=$2;$1.defer($2,$2.prototype,{add:function($0,$1){var $6={};$6[$0]=$1;qx.Class.__addProperties($2,$6,true);}});}if($1.implement){for(var $3=0,$4=$1.implement.length;$3<$4;$3++){this.__addInterface($2,$1.implement[$3]);}}},createNamespace:function($0,$1){var $2=$0.split($[24]);var $3=window;var $4=$2[0];for(var $5=0,$6=$2.length-1;$5<$6;$5++,$4=$2[$5]){if(!$3[$4]){$3=$3[$4]={};}else{$3=$3[$4];}}{};$3[$4]=$1;return $4;},isDefined:function($0){return this.getByName($0)!==undefined;},getTotalNumber:function(){return qx.lang.Object.getLength(this.__registry);},getByName:function($0){return this.__registry[$0];},include:function($0,$1){{};qx.Class.__addMixin($0,$1,false);},patch:function($0,$1){{};qx.Class.__addMixin($0,$1,true);},isSubClassOf:function($0,$1){if(!$0){return false;}if($0==$1){return true;}if($0.prototype instanceof $1){return true;}return false;},getPropertyDefinition:function($0,$1){while($0){if($0.$$properties&&$0.$$properties[$1]){return $0.$$properties[$1];}$0=$0.superclass;}return null;},getByProperty:function($0,$1){while($0){if($0.$$properties&&$0.$$properties[$1]){return $0;}$0=$0.superclass;}return null;},hasProperty:function($0,$1){return !!this.getPropertyDefinition($0,$1);},getEventType:function($0,$1){var $0=$0.constructor;while($0.superclass){if($0.$$events&&$0.$$events[$1]!==undefined){return $0.$$events[$1];}$0=$0.superclass;}return null;},supportsEvent:function($0,$1){return !!this.getEventType($0,$1);},hasOwnMixin:function($0,$1){return $0.$$includes&&$0.$$includes.indexOf($1)!==-1;},getByMixin:function($0,$1){var $2,$3,$4;while($0){if($0.$$includes){$2=$0.$$flatIncludes;for($3=0,$4=$2.length;$3<$4;$3++){if($2[$3]===$1){return $0;}}}$0=$0.superclass;}return null;},getMixins:function($0){var $1=[];while($0){if($0.$$includes){$1.push.apply($1,$0.$$flatIncludes);}$0=$0.superclass;}return $1;},hasMixin:function($0,$1){return !!this.getByMixin($0,$1);},hasOwnInterface:function($0,$1){return $0.$$implements&&$0.$$implements.indexOf($1)!==-1;},getByInterface:function($0,$1){var $2,$3,$4;while($0){if($0.$$implements){$2=$0.$$flatImplements;for($3=0,$4=$2.length;$3<$4;$3++){if($2[$3]===$1){return $0;}}}$0=$0.superclass;}return null;},getInterfaces:function($0){var $1=[];while($0){if($0.$$implements){$1.push.apply($1,$0.$$flatImplements);}$0=$0.superclass;}return $1;},hasInterface:function($0,$1){return !!this.getByInterface($0,$1);},implementsInterface:function($0,$1){if(this.hasInterface($0,$1)){return true;}try{qx.Interface.assert($0,$1,false);return true;}catch(ex){}return false;},getInstance:function(){if(!this.$$instance){this.$$allowconstruct=true;this.$$instance=new this;delete this.$$allowconstruct;}return this.$$instance;},genericToString:function(){return $[1449]+this.classname+$[115];},__registry:qx.core.Bootstrap.__registry,__allowedKeys:null,__staticAllowedKeys:null,__validateConfig:function(){},__createClass:function($0,$1,$2,$3,$4,$5){var $6;if(!$2&&qx.core.Variant.isSet($[108],$[55])){$6=$3||{};}else{$6={};if($2){if(!$4){$4=this.__createDefaultConstructor();}$6=this.__wrapConstructor($4,$0,$1);}if($3){var $7;for(var $8=0,$9=qx.lang.Object.getKeys($3),$a=$9.length;$8<$a;$8++){$7=$9[$8];if(qx.core.Variant.isSet($[108],$[23])){var $b=$3[$7];if($b instanceof Function){$b=qx.core.Aspect.wrap($0+$[24]+$7,$b,$[178]);}$6[$7]=$b;}else{$6[$7]=$3[$7];}}}}var $c=this.createNamespace($0,$6,false);$6.name=$6.classname=$0;$6.basename=$c;if(!$6.hasOwnProperty($[452])){$6.toString=this.genericToString;}if($2){var $d=$2.prototype;var $e=this.__createEmptyFunction();$e.prototype=$d;var $f=new $e;$6.prototype=$f;$f.name=$f.classname=$0;$f.basename=$c;$4.base=$6.superclass=$2;$4.self=$6.constructor=$f.constructor=$6;if($5){if(qx.core.Variant.isSet($[108],$[23])){$5=qx.core.Aspect.wrap($0,$5,$[851]);}$6.$$destructor=$5;}}{};this.__registry[$0]=$6;return $6;},__addEvents:function($0,$1,$2){var $3,$3;if($0.$$events){for(var $3 in $1){$0.$$events[$3]=$1[$3];}}else{$0.$$events=$1;}},__addProperties:function($0,$1,$2){var $3;if($2===undefined){$2=false;}var $4=!!$0.$$propertiesAttached;for(var $5 in $1){$3=$1[$5];{};$3.name=$5;if(!$3.refine){if($0.$$properties===undefined){$0.$$properties={};}$0.$$properties[$5]=$3;}if($3.init!==undefined){$0.prototype[$[332]+$5]=$3.init;}if($3.event!==undefined){var $6={};$6[$3.event]=$[457];this.__addEvents($0,$6,$2);}if($3.inheritable){qx.core.Property.$$inheritable[$5]=true;}if($4){qx.core.Property.attachMethods($0,$5,$3);}if($3._fast){qx.core.LegacyProperty.addFastProperty($3,$0.prototype);}else if($3._cached){qx.core.LegacyProperty.addCachedProperty($3,$0.prototype);}else if($3._legacy){qx.core.LegacyProperty.addProperty($3,$0.prototype);}}},__validateProperty:null,__addMembers:function($0,$1,$2,$3,$4){var $5=$0.prototype;var $6,$7;for(var $8=0,$9=qx.lang.Object.getKeys($1),$a=$9.length;$8<$a;$8++){$6=$9[$8];$7=$1[$6];{};if($3!==false&&$7 instanceof Function){if($4==true){$7=this.__mixinMemberWrapper($7,$5[$6]);}else{if($5[$6]){$7.base=$5[$6];}$7.self=$0;}if(qx.core.Variant.isSet($[108],$[23])){$7=qx.core.Aspect.wrap($0.classname+$[24]+$6,$7,$[1136]);}}$5[$6]=$7;}},__mixinMemberWrapper:function($0,$1){if($1){return function(){var $2=$0.base;$0.base=$1;var $3=$0.apply(this,arguments);$0.base=$2;return $3;};}else{return $0;}},__addInterface:function($0,$1){{};var $2=qx.Interface.flatten([$1]);if($0.$$implements){$0.$$implements.push($1);$0.$$flatImplements.push.apply($0.$$flatImplements,$2);}else{$0.$$implements=[$1];$0.$$flatImplements=$2;}},__addMixin:function($0,$1,$2){{};var $3=qx.Mixin.flatten([$1]);var $4;for(var $5=0,$6=$3.length;$5<$6;$5++){$4=$3[$5];if($4.$$events){this.__addEvents($0,$4.$$events,$2);}if($4.$$properties){this.__addProperties($0,$4.$$properties,$2);}if($4.$$members){this.__addMembers($0,$4.$$members,$2,$2,$2);}}if($0.$$includes){$0.$$includes.push($1);$0.$$flatIncludes.push.apply($0.$$flatIncludes,$3);}else{$0.$$includes=[$1];$0.$$flatIncludes=$3;}},__createDefaultConstructor:function(){function $0(){arguments.callee.base.apply(this,arguments);}return $0;},__createEmptyFunction:function(){return function(){};},__wrapConstructor:function($0,$1,$2){var $3=[];$3.push($[1683]);{};$3.push($[670]);$3.push($[1595]);$3.push($[842]);$3.push($[891]);$3.push($[872]);$3.push($[895],$1,$[1080]);$3.push($[1111]);var $4=new Function($3.join($[0]));if(qx.core.Variant.isSet($[108],$[23])){var $5=qx.core.Aspect.wrap($1,$4,$[1463]);$4.$$original=$0;$4.constructor=$5;$4=$5;}if($2===$[18]){$4.getInstance=this.getInstance;}$4.$$original=$0;$0.wrapper=$4;return $4;}},defer:function($0){if(qx.core.Variant.isSet($[108],$[23])){for(var $1 in $0){if($0[$1] instanceof Function){$0[$1]=qx.core.Aspect.wrap($[537]+$1,$0[$1],$[178]);}}}}});
11
qx.Class.define($[705],{statics:{define:function($0,$1){if($1){if($1.include&&!($1.include instanceof Array)){$1.include=[$1.include];}{};var $2=$1.statics?$1.statics:{};for(var $3 in $2){$2[$3].mixin=$2;}if($1.construct){$2.$$constructor=$1.construct;}if($1.include){$2.$$includes=$1.include;}if($1.properties){$2.$$properties=$1.properties;}if($1.members){$2.$$members=$1.members;}for(var $3 in $2.$$members){if($2.$$members[$3] instanceof Function){$2.$$members[$3].mixin=$2;}}if($1.events){$2.$$events=$1.events;}if($1.destruct){$2.$$destructor=$1.destruct;}}else{var $2={};}$2.$$type=$[1710];$2.name=$0;$2.toString=this.genericToString;$2.basename=qx.Class.createNamespace($0,$2);this.__registry[$0]=$2;return $2;},checkCompatibility:function($0){var $1=this.flatten($0);var $2=$1.length;if($2<2){return true;}var $3={};var $4={};var $5={};var $6;for(var $7=0;$7<$2;$7++){$6=$1[$7];for(var $8 in $6.events){if($5[$8]){throw new Error('Conflict between mixin "'+$6.name+'" and "'+$5[$8]+'" in member "'+$8+'"!');}$5[$8]=$6.name;}for(var $8 in $6.properties){if($3[$8]){throw new Error('Conflict between mixin "'+$6.name+'" and "'+$3[$8]+'" in property "'+$8+'"!');}$3[$8]=$6.name;}for(var $8 in $6.members){if($4[$8]){throw new Error('Conflict between mixin "'+$6.name+'" and "'+$4[$8]+'" in member "'+$8+'"!');}$4[$8]=$6.name;}}return true;},isCompatible:function($0,$1){var $2=qx.Class.getMixins($1);$2.push($0);return qx.Mixin.checkCompatibility($2);},getByName:function($0){return this.__registry[$0];},isDefined:function($0){return this.getByName($0)!==undefined;},getTotalNumber:function(){return qx.lang.Object.getLength(this.__registry);},flatten:function($0){if(!$0){return [];}var $1=$0.concat();for(var $2=0,$3=$0.length;$2<$3;$2++){if($0[$2].$$includes){$1.push.apply($1,this.flatten($0[$2].$$includes));}}return $1;},genericToString:function(){return $[768]+this.name+$[115];},__registry:{},__allowedKeys:null,__validateConfig:function(){}}});
11
qx.Class.define($[706],{statics:{define:function($0,$1){if($1){if($1.include&&!($1.include instanceof Array)){$1.include=[$1.include];}{};var $2=$1.statics?$1.statics:{};for(var $3 in $2){$2[$3].mixin=$2;}if($1.construct){$2.$$constructor=$1.construct;}if($1.include){$2.$$includes=$1.include;}if($1.properties){$2.$$properties=$1.properties;}if($1.members){$2.$$members=$1.members;}for(var $3 in $2.$$members){if($2.$$members[$3] instanceof Function){$2.$$members[$3].mixin=$2;}}if($1.events){$2.$$events=$1.events;}if($1.destruct){$2.$$destructor=$1.destruct;}}else{var $2={};}$2.$$type=$[1710];$2.name=$0;$2.toString=this.genericToString;$2.basename=qx.Class.createNamespace($0,$2);this.__registry[$0]=$2;return $2;},checkCompatibility:function($0){var $1=this.flatten($0);var $2=$1.length;if($2<2){return true;}var $3={};var $4={};var $5={};var $6;for(var $7=0;$7<$2;$7++){$6=$1[$7];for(var $8 in $6.events){if($5[$8]){throw new Error('Conflict between mixin "'+$6.name+'" and "'+$5[$8]+'" in member "'+$8+'"!');}$5[$8]=$6.name;}for(var $8 in $6.properties){if($3[$8]){throw new Error('Conflict between mixin "'+$6.name+'" and "'+$3[$8]+'" in property "'+$8+'"!');}$3[$8]=$6.name;}for(var $8 in $6.members){if($4[$8]){throw new Error('Conflict between mixin "'+$6.name+'" and "'+$4[$8]+'" in member "'+$8+'"!');}$4[$8]=$6.name;}}return true;},isCompatible:function($0,$1){var $2=qx.Class.getMixins($1);$2.push($0);return qx.Mixin.checkCompatibility($2);},getByName:function($0){return this.__registry[$0];},isDefined:function($0){return this.getByName($0)!==undefined;},getTotalNumber:function(){return qx.lang.Object.getLength(this.__registry);},flatten:function($0){if(!$0){return [];}var $1=$0.concat();for(var $2=0,$3=$0.length;$2<$3;$2++){if($0[$2].$$includes){$1.push.apply($1,this.flatten($0[$2].$$includes));}}return $1;},genericToString:function(){return $[769]+this.name+$[115];},__registry:{},__allowedKeys:null,__validateConfig:function(){}}});
12
qx.Class.define($[552],{statics:{define:function($0,$1){if($1){if($1.extend&&!($1.extend instanceof Array)){$1.extend=[$1.extend];}{};var $2=$1.statics?$1.statics:{};if($1.extend){$2.$$extends=$1.extend;}if($1.properties){$2.$$properties=$1.properties;}if($1.members){$2.$$members=$1.members;}if($1.events){$2.$$events=$1.events;}}else{var $2={};}$2.$$type=$[923];$2.name=$0;$2.toString=this.genericToString;$2.basename=qx.Class.createNamespace($0,$2);qx.Interface.__registry[$0]=$2;return $2;},getByName:function($0){return this.__registry[$0];},isDefined:function($0){return this.getByName($0)!==undefined;},getTotalNumber:function(){return qx.lang.Object.getLength(this.__registry);},flatten:function($0){if(!$0){return [];}var $1=$0.concat();for(var $2=0,$3=$0.length;$2<$3;$2++){if($0[$2].$$extends){$1.push.apply($1,this.flatten($0[$2].$$extends));}}return $1;},assert:function($0,$1,$2){var $3=$1.$$members;if($3){var $4=$0.prototype;for(var $5 in $3){if(typeof $3[$5]===$[37]){if(typeof $4[$5]!==$[37]){throw new Error('Implementation of method "'+$5+'" is missing in class "'+$0.classname+'" required by interface "'+$1.name+'"');}if($2===true&&!qx.Class.hasInterface($0,$1)){$4[$5]=this.__wrapInterfaceMember($1,$4[$5],$5,$3[$5]);}}else{if(typeof $4[$5]===undefined){if(typeof $4[$5]!==$[37]){throw new Error('Implementation of member "'+$5+'" is missing in class "'+$0.classname+'" required by interface "'+$1.name+'"');}}}}}if($1.$$properties){for(var $5 in $1.$$properties){if(!qx.Class.hasProperty($0,$5)){throw new Error('The property "'+$5+'" is not supported by Class "'+$0.classname+'"!');}}}if($1.$$events){for(var $5 in $1.$$events){if(!qx.Class.supportsEvent($0,$5)){throw new Error('The event "'+$5+'" is not supported by Class "'+$0.classname+'"!');}}}var $6=$1.$$extends;if($6){for(var $7=0,$8=$6.length;$7<$8;$7++){this.assert($0,$6[$7],$2);}}},genericToString:function(){return $[911]+this.name+$[115];},__registry:{},__wrapInterfaceMember:function(){},__allowedKeys:null,__validateConfig:function(){}}});
12
qx.Class.define($[552],{statics:{define:function($0,$1){if($1){if($1.extend&&!($1.extend instanceof Array)){$1.extend=[$1.extend];}{};var $2=$1.statics?$1.statics:{};if($1.extend){$2.$$extends=$1.extend;}if($1.properties){$2.$$properties=$1.properties;}if($1.members){$2.$$members=$1.members;}if($1.events){$2.$$events=$1.events;}}else{var $2={};}$2.$$type=$[922];$2.name=$0;$2.toString=this.genericToString;$2.basename=qx.Class.createNamespace($0,$2);qx.Interface.__registry[$0]=$2;return $2;},getByName:function($0){return this.__registry[$0];},isDefined:function($0){return this.getByName($0)!==undefined;},getTotalNumber:function(){return qx.lang.Object.getLength(this.__registry);},flatten:function($0){if(!$0){return [];}var $1=$0.concat();for(var $2=0,$3=$0.length;$2<$3;$2++){if($0[$2].$$extends){$1.push.apply($1,this.flatten($0[$2].$$extends));}}return $1;},assert:function($0,$1,$2){var $3=$1.$$members;if($3){var $4=$0.prototype;for(var $5 in $3){if(typeof $3[$5]===$[37]){if(typeof $4[$5]!==$[37]){throw new Error('Implementation of method "'+$5+'" is missing in class "'+$0.classname+'" required by interface "'+$1.name+'"');}if($2===true&&!qx.Class.hasInterface($0,$1)){$4[$5]=this.__wrapInterfaceMember($1,$4[$5],$5,$3[$5]);}}else{if(typeof $4[$5]===undefined){if(typeof $4[$5]!==$[37]){throw new Error('Implementation of member "'+$5+'" is missing in class "'+$0.classname+'" required by interface "'+$1.name+'"');}}}}}if($1.$$properties){for(var $5 in $1.$$properties){if(!qx.Class.hasProperty($0,$5)){throw new Error('The property "'+$5+'" is not supported by Class "'+$0.classname+'"!');}}}if($1.$$events){for(var $5 in $1.$$events){if(!qx.Class.supportsEvent($0,$5)){throw new Error('The event "'+$5+'" is not supported by Class "'+$0.classname+'"!');}}}var $6=$1.$$extends;if($6){for(var $7=0,$8=$6.length;$7<$8;$7++){this.assert($0,$6[$7],$2);}}},genericToString:function(){return $[911]+this.name+$[115];},__registry:{},__wrapInterfaceMember:function(){},__allowedKeys:null,__validateConfig:function(){}}});
13
qx.Mixin.define($[1334],{members:{tr:function($0,$1){var $2=qx.locale.Manager;if($2){return $2.tr.apply($2,arguments);}throw new Error("To enable localization please include qx.locale.Manager into your build!");},trn:function($0,$1,$2,$3){var $4=qx.locale.Manager;if($4){return $4.trn.apply($4,arguments);}throw new Error("To enable localization please include qx.locale.Manager into your build!");},marktr:function($0){var $1=qx.locale.Manager;if($1){return $1.marktr.apply($1,arguments);}throw new Error("To enable localization please include qx.locale.Manager into your build!");}}});
13
qx.Mixin.define($[1334],{members:{tr:function($0,$1){var $2=qx.locale.Manager;if($2){return $2.tr.apply($2,arguments);}throw new Error("To enable localization please include qx.locale.Manager into your build!");},trn:function($0,$1,$2,$3){var $4=qx.locale.Manager;if($4){return $4.trn.apply($4,arguments);}throw new Error("To enable localization please include qx.locale.Manager into your build!");},marktr:function($0){var $1=qx.locale.Manager;if($1){return $1.marktr.apply($1,arguments);}throw new Error("To enable localization please include qx.locale.Manager into your build!");}}});
14
qx.Mixin.define($[1558],{members:{getLogger:function(){if(qx.log.Logger){return qx.log.Logger.getClassLogger(this.constructor);}throw new Error("To enable logging please include qx.log.Logger into your build!");},debug:function($0,$1){this.getLogger().debug($0,this.toHashCode(),$1);},info:function($0,$1){this.getLogger().info($0,this.toHashCode(),$1);},warn:function($0,$1){this.getLogger().warn($0,this.toHashCode(),$1);},error:function($0,$1){this.getLogger().error($0,this.toHashCode(),$1);},printStackTrace:function(){this.getLogger().printStackTrace();}}});
14
qx.Mixin.define($[1557],{members:{getLogger:function(){if(qx.log.Logger){return qx.log.Logger.getClassLogger(this.constructor);}throw new Error("To enable logging please include qx.log.Logger into your build!");},debug:function($0,$1){this.getLogger().debug($0,this.toHashCode(),$1);},info:function($0,$1){this.getLogger().info($0,this.toHashCode(),$1);},warn:function($0,$1){this.getLogger().warn($0,this.toHashCode(),$1);},error:function($0,$1){this.getLogger().error($0,this.toHashCode(),$1);},printStackTrace:function(){this.getLogger().printStackTrace();}}});
15
qx.Mixin.define($[1270],{members:{setUserData:function($0,$1){if(!this.__userData){this.__userData={};}this.__userData[$0]=$1;},getUserData:function($0){if(!this.__userData){return null;}return this.__userData[$0];}},destruct:function(){this._disposeFields($[1676]);}});
15
qx.Mixin.define($[1269],{members:{setUserData:function($0,$1){if(!this.__userData){this.__userData={};}this.__userData[$0]=$1;},getUserData:function($0){if(!this.__userData){return null;}return this.__userData[$0];}},destruct:function(){this._disposeFields($[1675]);}});
16
qx.Class.define($[888],{statics:{getSetterName:function($0){return qx.core.Property.$$method.set[$0];},getGetterName:function($0){return qx.core.Property.$$method.get[$0];},getResetterName:function($0){return qx.core.Property.$$method.reset[$0];},addFastProperty:function($0,$1){var $2=$0.name;var $3=qx.lang.String.toFirstUp($2);var $4=$[1348]+$3;var $5=$[114]+$3;var $6=$[25]+$3;var $7=$[314]+$3;$1[$4]=typeof $0.defaultValue!==$[65]?$0.defaultValue:null;if($0.noCompute){$1[$5]=function(){return this[$4];};}else{$1[$5]=function(){return this[$4]==null?this[$4]=this[$7]():this[$4];};}$1[$5].self=$1.constructor;if($0.setOnlyOnce){$1[$6]=function($8){this[$4]=$8;this[$6]=null;return $8;};}else{$1[$6]=function($8){return this[$4]=$8;};}$1[$6].self=$1.constructor;if(!$0.noCompute){$1[$7]=function(){return null;};$1[$7].self=$1.constructor;}},addCachedProperty:function($0,$1){var $2=$0.name;var $3=qx.lang.String.toFirstUp($2);var $4=$[994]+$3;var $5=$[314]+$3;var $6=$[1327]+$3;if(typeof $0.defaultValue!==$[65]){$1[$4]=$0.defaultValue;}$1[$[114]+$3]=function(){if(this[$4]==null){this[$4]=this[$5]();}return this[$4];};$1[$[376]+$3]=function(){if(this[$4]!=null){this[$4]=null;if($0.addToQueueRuntime){this.addToQueueRuntime($0.name);}}};$1[$[431]+$3]=function(){var $7=this[$4];var $8=this[$5]();if($8!=$7){this[$4]=$8;this[$6]($8,$7);return true;}return false;};$1[$6]=function($8,$7){};$1[$5]=function(){return null;};$1[$[114]+$3].self=$1.constructor;$1[$[376]+$3].self=$1.constructor;$1[$[431]+$3].self=$1.constructor;},addProperty:function($0,$1){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[1056]);if(typeof $0!==$[28]){throw new Error("AddProperty: Param should be an object!");}if(typeof $0.name!==$[8]){throw new Error("AddProperty: Malformed input parameters: name needed!");}if($0.dispose===undefined&&($0.type==$[37]||$0.type==$[28])){$0.dispose=true;}$0.method=qx.lang.String.toFirstUp($0.name);$0.implMethod=$0.impl?qx.lang.String.toFirstUp($0.impl):$0.method;if($0.defaultValue==undefined){$0.defaultValue=null;}$0.allowNull=$0.allowNull!==false;$0.allowMultipleArguments=$0.allowMultipleArguments===true;if(typeof $0.type===$[8]){$0.hasType=true;}else if(typeof $0.type!==$[65]){throw new Error("AddProperty: Invalid type definition for property "+$0.name+": "+$0.type);}else{$0.hasType=false;}if(typeof $0.instance===$[8]){$0.hasInstance=true;}else if(typeof $0.instance!==$[65]){throw new Error("AddProperty: Invalid instance definition for property "+$0.name+": "+$0.instance);}else{$0.hasInstance=false;}if(typeof $0.classname===$[8]){$0.hasClassName=true;}else if(typeof $0.classname!==$[65]){throw new Error("AddProperty: Invalid classname definition for property "+$0.name+": "+$0.classname);}else{$0.hasClassName=false;}$0.hasConvert=$0.convert!=null;$0.hasPossibleValues=$0.possibleValues!=null;$0.addToQueue=$0.addToQueue||false;$0.addToQueueRuntime=$0.addToQueueRuntime||false;$0.up=$0.name.toUpperCase();var $2=qx.core.Property.$$store.user[$0.name]=$[499]+$0.name;var $3=$[107]+$0.method;var $4=$[1318]+$0.implMethod;var $5=$[712]+$0.implMethod;var $6=qx.core.Property.$$method;if(!$6.set[$0.name]){$6.set[$0.name]=$[25]+$0.method;$6.get[$0.name]=$[114]+$0.method;$6.reset[$0.name]=$[106]+$0.method;}$1[$2]=$0.defaultValue;$1[$[114]+$0.method]=function(){return this[$2];};$1[$[719]+$0.method]=function($7){return this[$2]=$7;};$1[$[106]+$0.method]=function(){return this[$[25]+$0.method]($0.defaultValue);};if($0.type===$[58]){$1[$[416]+$0.method]=function($7){return this[$[25]+$0.method](!this[$2]);};}if($0.allowMultipleArguments||$0.hasConvert||$0.hasInstance||$0.hasClassName||$0.hasPossibleValues||$0.hasUnitDetection||$0.addToQueue||$0.addToQueueRuntime||$0.addToStateQueue){$1[$[25]+$0.method]=function($7){if($0.allowMultipleArguments&&arguments.length>1){$7=qx.lang.Array.fromArguments(arguments);}if($0.hasConvert){try{$7=$0.convert.call(this,$7,$0);}catch(ex){throw new Error("Attention! Could not convert new value for "+$0.name+": "+$7+": "+ex);}}var $8=this[$2];if($7===$8){return $7;}if(!($0.allowNull&&$7==null)){if($0.hasType&&typeof $7!==$0.type){throw new Error("Attention! The value \""+$7+"\" is an invalid value for the property \""+$0.name+"\" which must be typeof \""+$0.type+"\" but is typeof \""+typeof $7+"\"!");}if(qx.Class.getByName($0.instance)){if($0.hasInstance&&!($7 instanceof qx.Class.getByName($0.instance))){throw new Error("Attention! The value \""+$7+"\" is an invalid value for the property \""+$0.name+"\" which must be an instance of \""+$0.instance+"\"!");}}else{}if($0.hasClassName&&$7.classname!=$0.classname){throw new Error("Attention! The value \""+$7+"\" is an invalid value for the property \""+$0.name+"\" which must be an object with the classname \""+$0.classname+"\"!");}if($0.hasPossibleValues&&$7!=null&&!qx.lang.Array.contains($0.possibleValues,$7)){throw new Error("Failed to save value for "+$0.name+". '"+$7+"' is not a possible value!");}}if(this[$5]){try{$7=this[$5]($7,$0);if($7===$8){return $7;}}catch(ex){return this.error("Failed to check property "+$0.name,ex);}}this[$2]=$7;if(this[$4]){try{this[$4]($7,$8,$0);}catch(ex){return this.error("Modification of property \""+$0.name+"\" failed with exception",ex);}}if($0.addToQueue){this.addToQueue($0.name);}if($0.addToQueueRuntime){this.addToQueueRuntime($0.name);}if($0.addToStateQueue){this.addToStateQueue();}if(this.hasEventListeners&&this.hasEventListeners($3)){try{this.createDispatchDataEvent($3,$7);}catch(ex){throw new Error("Property "+$0.name+" modified: Failed to dispatch change event: "+ex);}}return $7;};}else{$1[$[25]+$0.method]=function($7){var $8=this[$2];if($7===$8){return $7;}if(!($0.allowNull&&$7==null)){if($0.hasType&&typeof $7!==$0.type){throw new Error("Attention! The value \""+$7+"\" is an invalid value for the property \""+$0.name+"\" which must be typeof \""+$0.type+"\" but is typeof \""+typeof $7+"\"!");}}if(this[$5]){try{$7=this[$5]($7,$0);if($7===$8){return $7;}}catch(ex){return this.error("Failed to check property "+$0.name,ex);}}this[$2]=$7;if(this[$4]){try{this[$4]($7,$8,$0);}catch(ex){var $9=new String($7).substring(0,50);this.error("Setting property \""+$0.name+"\" to \""+$9+"\" failed with exception",ex);}}if(this.hasEventListeners&&this.hasEventListeners($3)){var $a=new qx.event.type.DataEvent($3,$7,$8,false);$a.setTarget(this);try{this.dispatchEvent($a,true);}catch(ex){throw new Error("Property "+$0.name+" modified: Failed to dispatch change event: "+ex);}}return $7;};}$1[$[25]+$0.method].self=$1.constructor;if(typeof $0.getAlias===$[8]){$1[$0.getAlias]=$1[$[114]+$0.method];}if(typeof $0.setAlias===$[8]){$1[$0.setAlias]=$1[$[25]+$0.method];}}}});
16
qx.Class.define($[888],{statics:{getSetterName:function($0){return qx.core.Property.$$method.set[$0];},getGetterName:function($0){return qx.core.Property.$$method.get[$0];},getResetterName:function($0){return qx.core.Property.$$method.reset[$0];},addFastProperty:function($0,$1){var $2=$0.name;var $3=qx.lang.String.toFirstUp($2);var $4=$[1348]+$3;var $5=$[114]+$3;var $6=$[25]+$3;var $7=$[314]+$3;$1[$4]=typeof $0.defaultValue!==$[65]?$0.defaultValue:null;if($0.noCompute){$1[$5]=function(){return this[$4];};}else{$1[$5]=function(){return this[$4]==null?this[$4]=this[$7]():this[$4];};}$1[$5].self=$1.constructor;if($0.setOnlyOnce){$1[$6]=function($8){this[$4]=$8;this[$6]=null;return $8;};}else{$1[$6]=function($8){return this[$4]=$8;};}$1[$6].self=$1.constructor;if(!$0.noCompute){$1[$7]=function(){return null;};$1[$7].self=$1.constructor;}},addCachedProperty:function($0,$1){var $2=$0.name;var $3=qx.lang.String.toFirstUp($2);var $4=$[993]+$3;var $5=$[314]+$3;var $6=$[1326]+$3;if(typeof $0.defaultValue!==$[65]){$1[$4]=$0.defaultValue;}$1[$[114]+$3]=function(){if(this[$4]==null){this[$4]=this[$5]();}return this[$4];};$1[$[375]+$3]=function(){if(this[$4]!=null){this[$4]=null;if($0.addToQueueRuntime){this.addToQueueRuntime($0.name);}}};$1[$[432]+$3]=function(){var $7=this[$4];var $8=this[$5]();if($8!=$7){this[$4]=$8;this[$6]($8,$7);return true;}return false;};$1[$6]=function($8,$7){};$1[$5]=function(){return null;};$1[$[114]+$3].self=$1.constructor;$1[$[375]+$3].self=$1.constructor;$1[$[432]+$3].self=$1.constructor;},addProperty:function($0,$1){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[1056]);if(typeof $0!==$[28]){throw new Error("AddProperty: Param should be an object!");}if(typeof $0.name!==$[8]){throw new Error("AddProperty: Malformed input parameters: name needed!");}if($0.dispose===undefined&&($0.type==$[37]||$0.type==$[28])){$0.dispose=true;}$0.method=qx.lang.String.toFirstUp($0.name);$0.implMethod=$0.impl?qx.lang.String.toFirstUp($0.impl):$0.method;if($0.defaultValue==undefined){$0.defaultValue=null;}$0.allowNull=$0.allowNull!==false;$0.allowMultipleArguments=$0.allowMultipleArguments===true;if(typeof $0.type===$[8]){$0.hasType=true;}else if(typeof $0.type!==$[65]){throw new Error("AddProperty: Invalid type definition for property "+$0.name+": "+$0.type);}else{$0.hasType=false;}if(typeof $0.instance===$[8]){$0.hasInstance=true;}else if(typeof $0.instance!==$[65]){throw new Error("AddProperty: Invalid instance definition for property "+$0.name+": "+$0.instance);}else{$0.hasInstance=false;}if(typeof $0.classname===$[8]){$0.hasClassName=true;}else if(typeof $0.classname!==$[65]){throw new Error("AddProperty: Invalid classname definition for property "+$0.name+": "+$0.classname);}else{$0.hasClassName=false;}$0.hasConvert=$0.convert!=null;$0.hasPossibleValues=$0.possibleValues!=null;$0.addToQueue=$0.addToQueue||false;$0.addToQueueRuntime=$0.addToQueueRuntime||false;$0.up=$0.name.toUpperCase();var $2=qx.core.Property.$$store.user[$0.name]=$[500]+$0.name;var $3=$[107]+$0.method;var $4=$[1317]+$0.implMethod;var $5=$[713]+$0.implMethod;var $6=qx.core.Property.$$method;if(!$6.set[$0.name]){$6.set[$0.name]=$[25]+$0.method;$6.get[$0.name]=$[114]+$0.method;$6.reset[$0.name]=$[106]+$0.method;}$1[$2]=$0.defaultValue;$1[$[114]+$0.method]=function(){return this[$2];};$1[$[720]+$0.method]=function($7){return this[$2]=$7;};$1[$[106]+$0.method]=function(){return this[$[25]+$0.method]($0.defaultValue);};if($0.type===$[58]){$1[$[417]+$0.method]=function($7){return this[$[25]+$0.method](!this[$2]);};}if($0.allowMultipleArguments||$0.hasConvert||$0.hasInstance||$0.hasClassName||$0.hasPossibleValues||$0.hasUnitDetection||$0.addToQueue||$0.addToQueueRuntime||$0.addToStateQueue){$1[$[25]+$0.method]=function($7){if($0.allowMultipleArguments&&arguments.length>1){$7=qx.lang.Array.fromArguments(arguments);}if($0.hasConvert){try{$7=$0.convert.call(this,$7,$0);}catch(ex){throw new Error("Attention! Could not convert new value for "+$0.name+": "+$7+": "+ex);}}var $8=this[$2];if($7===$8){return $7;}if(!($0.allowNull&&$7==null)){if($0.hasType&&typeof $7!==$0.type){throw new Error("Attention! The value \""+$7+"\" is an invalid value for the property \""+$0.name+"\" which must be typeof \""+$0.type+"\" but is typeof \""+typeof $7+"\"!");}if(qx.Class.getByName($0.instance)){if($0.hasInstance&&!($7 instanceof qx.Class.getByName($0.instance))){throw new Error("Attention! The value \""+$7+"\" is an invalid value for the property \""+$0.name+"\" which must be an instance of \""+$0.instance+"\"!");}}else{}if($0.hasClassName&&$7.classname!=$0.classname){throw new Error("Attention! The value \""+$7+"\" is an invalid value for the property \""+$0.name+"\" which must be an object with the classname \""+$0.classname+"\"!");}if($0.hasPossibleValues&&$7!=null&&!qx.lang.Array.contains($0.possibleValues,$7)){throw new Error("Failed to save value for "+$0.name+". '"+$7+"' is not a possible value!");}}if(this[$5]){try{$7=this[$5]($7,$0);if($7===$8){return $7;}}catch(ex){return this.error("Failed to check property "+$0.name,ex);}}this[$2]=$7;if(this[$4]){try{this[$4]($7,$8,$0);}catch(ex){return this.error("Modification of property \""+$0.name+"\" failed with exception",ex);}}if($0.addToQueue){this.addToQueue($0.name);}if($0.addToQueueRuntime){this.addToQueueRuntime($0.name);}if($0.addToStateQueue){this.addToStateQueue();}if(this.hasEventListeners&&this.hasEventListeners($3)){try{this.createDispatchDataEvent($3,$7);}catch(ex){throw new Error("Property "+$0.name+" modified: Failed to dispatch change event: "+ex);}}return $7;};}else{$1[$[25]+$0.method]=function($7){var $8=this[$2];if($7===$8){return $7;}if(!($0.allowNull&&$7==null)){if($0.hasType&&typeof $7!==$0.type){throw new Error("Attention! The value \""+$7+"\" is an invalid value for the property \""+$0.name+"\" which must be typeof \""+$0.type+"\" but is typeof \""+typeof $7+"\"!");}}if(this[$5]){try{$7=this[$5]($7,$0);if($7===$8){return $7;}}catch(ex){return this.error("Failed to check property "+$0.name,ex);}}this[$2]=$7;if(this[$4]){try{this[$4]($7,$8,$0);}catch(ex){var $9=new String($7).substring(0,50);this.error("Setting property \""+$0.name+"\" to \""+$9+"\" failed with exception",ex);}}if(this.hasEventListeners&&this.hasEventListeners($3)){var $a=new qx.event.type.DataEvent($3,$7,$8,false);$a.setTarget(this);try{this.dispatchEvent($a,true);}catch(ex){throw new Error("Property "+$0.name+" modified: Failed to dispatch change event: "+ex);}}return $7;};}$1[$[25]+$0.method].self=$1.constructor;if(typeof $0.getAlias===$[8]){$1[$0.getAlias]=$1[$[114]+$0.method];}if(typeof $0.setAlias===$[8]){$1[$0.setAlias]=$1[$[25]+$0.method];}}}});
17
qx.Class.define($[1626],{statics:{__checks:{"Boolean":$[1708],"String":$[1117],"NonEmptyString":$[1122],"Number":$[291],"Integer":$[751],"Float":$[291],"Double":$[291],"Error":$[1621],"RegExp":$[1271],"Object":$[1414],"Array":$[1415],"Map":$[1532],"Function":$[1378],"Date":$[812],"Node":$[1097],"Element":$[1530],"Document":$[1543],"Window":$[554],"Event":$[1527],"Class":$[852],"Mixin":$[678],"Interface":$[704],"Theme":$[1194],"Color":$[856],"Border":$[1142],"Font":$[755],"Label":$[1038]},__dispose:{"Object":true,"Array":true,"Map":true,"Function":true,"Date":true,"Node":true,"Element":true,"Document":true,"Window":true,"Event":true,"Class":true,"Mixin":true,"Interface":true,"Theme":true,"Border":true,"Font":true},$$inherit:$[116],$$idcounter:0,$$store:{user:{},theme:{},inherit:{},init:{},useinit:{}},$$method:{get:{},set:{},reset:{},init:{},refresh:{},style:{},unstyle:{}},$$allowedKeys:{name:$[8],dispose:$[58],inheritable:$[58],nullable:$[58],themeable:$[58],refine:$[58],init:null,apply:$[8],event:$[8],check:null,transform:$[8]},$$allowedGroupKeys:{name:$[8],group:$[28],mode:$[8],themeable:$[58]},$$inheritable:{},refresh:function($0){var $1=$0.getParent();if($1){var $2=$0.constructor;var $3=this.$$store.inherit;var $4=this.$$method.refresh;var $5;{};while($2){$5=$2.$$properties;if($5){for(var $6 in this.$$inheritable){if($5[$6]&&$0[$4[$6]]){{};$0[$4[$6]]($1[$3[$6]]);}}}$2=$2.superclass;}}},attach:function($0){var $1=$0.$$properties;if($1){for(var $2 in $1){this.attachMethods($0,$2,$1[$2]);}}$0.$$propertiesAttached=true;},attachMethods:function($0,$1,$2){if($2._legacy||$2._fast||$2._cached){return;}var $3,$4;if($1.charAt(0)===$[155]){if($1.charAt(1)===$[155]){$3=$[858];$4=qx.lang.String.toFirstUp($1.substring(2));}else{$3=$[155];$4=qx.lang.String.toFirstUp($1.substring(1));}}else{$3=$[0];$4=qx.lang.String.toFirstUp($1);}$2.group?this.__attachGroupMethods($0,$2,$3,$4):this.__attachPropertyMethods($0,$2,$3,$4);},__attachGroupMethods:function($0,$1,$2,$3){var $4=$0.prototype;var $5=$1.name;var $6=$1.themeable===true;{};var $7=[];var $8=[];if($6){var $9=[];var $a=[];}var $b=$[674];$7.push($b);if($6){$9.push($b);}if($1.mode==$[103]){var $c=$[829];$7.push($c);if($6){$9.push($c);}}for(var $d=0,$e=$1.group,$f=$e.length;$d<$f;$d++){{};$7.push($[218],this.$$method.set[$e[$d]],$[435],$d,$[386]);$8.push($[218],this.$$method.reset[$e[$d]],$[525]);if($6){{};$9.push($[218],this.$$method.style[$e[$d]],$[435],$d,$[386]);$a.push($[218],this.$$method.unstyle[$e[$d]],$[525]);}}this.$$method.set[$5]=$2+$[25]+$3;$4[this.$$method.set[$5]]=new Function($7.join($[0]));this.$$method.reset[$5]=$2+$[106]+$3;$4[this.$$method.reset[$5]]=new Function($8.join($[0]));if($6){this.$$method.style[$5]=$2+$[44]+$3;$4[this.$$method.style[$5]]=new Function($9.join($[0]));this.$$method.unstyle[$5]=$2+$[120]+$3;$4[this.$$method.unstyle[$5]]=new Function($a.join($[0]));}},__attachPropertyMethods:function($0,$1,$2,$3){var $4=$0.prototype;var $5=$1.name;{};if($1.dispose===undefined&&typeof $1.check===$[8]){$1.dispose=this.__dispose[$1.check]||qx.Class.isDefined($1.check)||qx.Interface.isDefined($1.check);}var $6=this.$$method;var $7=this.$$store;$7.user[$5]=$[499]+$5;$7.theme[$5]=$[1095]+$5;$7.init[$5]=$[332]+$5;$7.inherit[$5]=$[585]+$5;$7.useinit[$5]=$[920]+$5;$6.get[$5]=$2+$[114]+$3;$4[$6.get[$5]]=function(){return qx.core.Property.executeOptimizedGetter(this,$0,$5,$[114]);};$6.set[$5]=$2+$[25]+$3;$4[$6.set[$5]]=function($8){return qx.core.Property.executeOptimizedSetter(this,$0,$5,$[25],arguments);};$6.reset[$5]=$2+$[106]+$3;$4[$6.reset[$5]]=function(){return qx.core.Property.executeOptimizedSetter(this,$0,$5,$[106]);};if($1.inheritable||$1.apply||$1.event){$6.init[$5]=$2+$[80]+$3;$4[$6.init[$5]]=function($8){return qx.core.Property.executeOptimizedSetter(this,$0,$5,$[80],arguments);};}if($1.inheritable){$6.refresh[$5]=$2+$[146]+$3;$4[$6.refresh[$5]]=function($8){return qx.core.Property.executeOptimizedSetter(this,$0,$5,$[146],arguments);};}if($1.themeable){$6.style[$5]=$2+$[44]+$3;$4[$6.style[$5]]=function($8){return qx.core.Property.executeOptimizedSetter(this,$0,$5,$[44],arguments);};$6.unstyle[$5]=$2+$[120]+$3;$4[$6.unstyle[$5]]=function(){return qx.core.Property.executeOptimizedSetter(this,$0,$5,$[120]);};}if($1.check===$[2]){$4[$2+$[416]+$3]=new Function($[501]+$6.set[$5]+$[902]+$6.get[$5]+$[1279]);$4[$2+$[1540]+$3]=new Function($[501]+$6.get[$5]+$[1502]);}},__errors:{0:$[1370],1:$[1183],2:$[922],3:$[641],4:$[1356],5:$[927]},error:function($0,$1,$2,$3,$4){var $5=$0.constructor.classname;var $6=$[1633]+$2+$[1395]+$5+$[1238]+this.$$method[$3][$2]+$[1366]+$4+$[932];$0.printStackTrace();$0.error($6+(this.__errors[$1]||"Unknown reason: "+$1));throw new Error($6+(this.__errors[$1]||"Unknown reason: "+$1));},__unwrapFunctionFromCode:function($0,$1,$2,$3,$4,$5){var $6=this.$$method[$3][$2];{$1[$6]=new Function($[255],$4.join($[0]));};if(qx.core.Variant.isSet($[108],$[23])){$1[$6]=qx.core.Aspect.wrap($0.classname+$[24]+$6,$1[$6],$[715]);}if($5===undefined){return $0[$6]();}else{return $0[$6]($5[0]);}},executeOptimizedGetter:function($0,$1,$2,$3){var $4=$1.$$properties[$2];var $5=$1.prototype;var $6=[];if($4.inheritable){$6.push($[97],this.$$store.inherit[$2],$[134]);$6.push($[182],this.$$store.inherit[$2],$[10]);$6.push($[387]);}$6.push($[97],this.$$store.user[$2],$[134]);$6.push($[182],this.$$store.user[$2],$[10]);if($4.themeable){$6.push($[183],this.$$store.theme[$2],$[134]);$6.push($[182],this.$$store.theme[$2],$[10]);}if($4.deferredInit&&$4.init===undefined){$6.push($[183],this.$$store.init[$2],$[134]);$6.push($[182],this.$$store.init[$2],$[10]);}$6.push($[387]);if($4.init!==undefined){$6.push($[182],this.$$store.init[$2],$[10]);}else if($4.inheritable||$4.nullable){$6.push($[1336]);}else{$6.push($[1139],$2,$[1298],$1.classname,$[612]);}return this.__unwrapFunctionFromCode($0,$5,$2,$3,$6);},executeOptimizedSetter:function($0,$1,$2,$3,$4){var $5=$1.$$properties[$2];var $6=$1.prototype;var $7=[];var $8=$3===$[25]||$3===$[44]||($3===$[80]&&$5.init===undefined);var $9=$3===$[106]||$3===$[120];var $a=$5.apply||$5.event||$5.inheritable;if($3===$[44]||$3===$[120]){var $b=this.$$store.theme[$2];}else if($3===$[80]){var $b=this.$$store.init[$2];}else{var $b=this.$$store.user[$2];}{if(!$5.nullable||$5.check||$5.inheritable){$7.push($[985]);}if(false&&$3===$[25]){$7.push($[1244]+$2+$[273]+$3+$[308]);}};if($8){if($5.transform){$7.push($[1250],$5.transform,$[825]);}}if($a){if($8){$7.push($[97],$b,$[1232]);}else if($9){$7.push($[97],$b,$[1570]);}}if($5.inheritable){$7.push($[564]);}if($8&&false){if(!$5.nullable){$7.push($[1186]+$2+$[273]+$3+$[308]);}if($5.check!==undefined){if($5.nullable){$7.push($[1120]);}if($5.inheritable){$7.push($[898]);}$7.push($[1620]);if(this.__checks[$5.check]!==undefined){$7.push($[494],this.__checks[$5.check],$[299]);}else if(qx.Class.isDefined($5.check)){$7.push($[754],$5.check,$[299]);}else if(qx.Interface.isDefined($5.check)){$7.push($[1209],$5.check,$[1593]);}else if(typeof $5.check===$[37]){$7.push($[660],$1.classname,$[460],$2);$7.push($[1723]);}else if(typeof $5.check===$[8]){$7.push($[494],$5.check,$[299]);}else if($5.check instanceof Array){$5.checkMap=qx.lang.Object.fromArray($5.check);$7.push($1.classname,$[460],$2);$7.push($[1722]);}else{throw new Error("Could not add check to property "+$2+" of class "+$1.classname);}$7.push($[997]+$2+$[273]+$3+$[308]);}}if(!$a){if($3===$[25]){$7.push($[49],this.$$store.user[$2],$[45]);}else if($3===$[106]){$7.push($[97],this.$$store.user[$2],$[134]);$7.push($[118],this.$$store.user[$2],$[10]);}else if($3===$[44]){$7.push($[49],this.$$store.theme[$2],$[45]);}else if($3===$[120]){$7.push($[97],this.$$store.theme[$2],$[134]);$7.push($[118],this.$$store.theme[$2],$[10]);}else if($3===$[80]&&$8){$7.push($[49],this.$$store.init[$2],$[45]);}}else{if($5.inheritable){$7.push($[1442],this.$$store.inherit[$2],$[10]);}else{$7.push($[1688]);}$7.push($[97],this.$$store.user[$2],$[208]);if($3===$[25]){if(!$5.inheritable){$7.push($[230],this.$$store.user[$2],$[10]);}$7.push($[34],this.$$store.user[$2],$[45]);}else if($3===$[106]){if(!$5.inheritable){$7.push($[230],this.$$store.user[$2],$[10]);}$7.push($[118],this.$$store.user[$2],$[10]);$7.push($[97],this.$$store.theme[$2],$[134]);$7.push($[34],this.$$store.theme[$2],$[10]);$7.push($[183],this.$$store.init[$2],$[208]);$7.push($[34],this.$$store.init[$2],$[10]);$7.push($[49],this.$$store.useinit[$2],$[227]);$7.push($[102]);}else{if($5.inheritable){$7.push($[34],this.$$store.user[$2],$[10]);}else{$7.push($[1559],this.$$store.user[$2],$[10]);}if($3===$[44]){$7.push($[49],this.$$store.theme[$2],$[45]);}else if($3===$[120]){$7.push($[118],this.$$store.theme[$2],$[10]);}else if($3===$[80]&&$8){$7.push($[49],this.$$store.init[$2],$[45]);}}$7.push($[102]);if($5.themeable){$7.push($[183],this.$$store.theme[$2],$[208]);if(!$5.inheritable){$7.push($[230],this.$$store.theme[$2],$[10]);}if($3===$[25]){$7.push($[34],this.$$store.user[$2],$[45]);}else if($3===$[44]){$7.push($[34],this.$$store.theme[$2],$[45]);}else if($3===$[120]){$7.push($[118],this.$$store.theme[$2],$[10]);$7.push($[97],this.$$store.init[$2],$[208]);$7.push($[34],this.$$store.init[$2],$[10]);$7.push($[49],this.$$store.useinit[$2],$[227]);$7.push($[102]);}else if($3===$[80]){if($8){$7.push($[49],this.$$store.init[$2],$[45]);}$7.push($[34],this.$$store.theme[$2],$[10]);}else if($3===$[146]){$7.push($[34],this.$$store.theme[$2],$[10]);}$7.push($[102]);}$7.push($[183],this.$$store.useinit[$2],$[950]);if(!$5.inheritable){$7.push($[230],this.$$store.init[$2],$[10]);}if($3===$[80]){if($8){$7.push($[34],this.$$store.init[$2],$[45]);}else{$7.push($[34],this.$$store.init[$2],$[10]);}}else if($3===$[25]||$3===$[44]||$3===$[146]){$7.push($[118],this.$$store.useinit[$2],$[10]);if($3===$[25]){$7.push($[34],this.$$store.user[$2],$[45]);}else if($3===$[44]){$7.push($[34],this.$$store.theme[$2],$[45]);}else if($3===$[146]){$7.push($[34],this.$$store.init[$2],$[10]);}}$7.push($[102]);if($3===$[25]||$3===$[44]||$3===$[80]){$7.push($[1084]);if($3===$[25]){$7.push($[34],this.$$store.user[$2],$[45]);}else if($3===$[44]){$7.push($[34],this.$$store.theme[$2],$[45]);}else if($3===$[80]){if($8){$7.push($[34],this.$$store.init[$2],$[45]);}else{$7.push($[34],this.$$store.init[$2],$[10]);}$7.push($[49],this.$$store.useinit[$2],$[227]);}$7.push($[102]);}}if($5.inheritable){$7.push($[1113]);if($3===$[146]){$7.push($[638]);}else{$7.push($[1507],this.$$store.inherit[$2],$[10]);}$7.push($[816]);$7.push($[49],this.$$store.init[$2],$[804]);$7.push($[49],this.$$store.init[$2],$[1029]);$7.push($[34],this.$$store.init[$2],$[10]);$7.push($[49],this.$$store.useinit[$2],$[227]);$7.push($[1689]);$7.push($[118],this.$$store.useinit[$2],$[796]);$7.push($[102]);$7.push($[381]);$7.push($[774]);$7.push($[1103],this.$$store.inherit[$2],$[10]);$7.push($[102]);$7.push($[1650]);$7.push($[118],this.$$store.inherit[$2],$[10]);$7.push($[1659],this.$$store.inherit[$2],$[687]);$7.push($[886]);$7.push($[464]);$7.push($[529]);}else if($a){if($3!==$[25]&&$3!==$[44]){$7.push($[464]);}$7.push($[381]);$7.push($[529]);}if($a){if($5.apply){$7.push($[49],$5.apply,$[1536]);}if($5.event){$7.push($[1768],$5.event,$[1409]);}if($5.inheritable&&$6.getChildren){$7.push($[859]);$7.push($[901],this.$$method.refresh[$2],$[557],this.$$method.refresh[$2],$[767]);$7.push($[102]);}}if($8){$7.push($[643]);}return this.__unwrapFunctionFromCode($0,$6,$2,$3,$7,$4);}},settings:{"qx.propertyDebugLevel":0}});
17
qx.Class.define($[1625],{statics:{__checks:{"Boolean":$[1708],"String":$[1117],"NonEmptyString":$[1121],"Number":$[291],"Integer":$[752],"Float":$[291],"Double":$[291],"Error":$[1620],"RegExp":$[1270],"Object":$[1415],"Array":$[1416],"Map":$[1532],"Function":$[1379],"Date":$[813],"Node":$[1097],"Element":$[1530],"Document":$[1543],"Window":$[554],"Event":$[1527],"Class":$[853],"Mixin":$[679],"Interface":$[705],"Theme":$[1193],"Color":$[857],"Border":$[1141],"Font":$[756],"Label":$[1037]},__dispose:{"Object":true,"Array":true,"Map":true,"Function":true,"Date":true,"Node":true,"Element":true,"Document":true,"Window":true,"Event":true,"Class":true,"Mixin":true,"Interface":true,"Theme":true,"Border":true,"Font":true},$$inherit:$[116],$$idcounter:0,$$store:{user:{},theme:{},inherit:{},init:{},useinit:{}},$$method:{get:{},set:{},reset:{},init:{},refresh:{},style:{},unstyle:{}},$$allowedKeys:{name:$[8],dispose:$[58],inheritable:$[58],nullable:$[58],themeable:$[58],refine:$[58],init:null,apply:$[8],event:$[8],check:null,transform:$[8]},$$allowedGroupKeys:{name:$[8],group:$[28],mode:$[8],themeable:$[58]},$$inheritable:{},refresh:function($0){var $1=$0.getParent();if($1){var $2=$0.constructor;var $3=this.$$store.inherit;var $4=this.$$method.refresh;var $5;{};while($2){$5=$2.$$properties;if($5){for(var $6 in this.$$inheritable){if($5[$6]&&$0[$4[$6]]){{};$0[$4[$6]]($1[$3[$6]]);}}}$2=$2.superclass;}}},attach:function($0){var $1=$0.$$properties;if($1){for(var $2 in $1){this.attachMethods($0,$2,$1[$2]);}}$0.$$propertiesAttached=true;},attachMethods:function($0,$1,$2){if($2._legacy||$2._fast||$2._cached){return;}var $3,$4;if($1.charAt(0)===$[155]){if($1.charAt(1)===$[155]){$3=$[859];$4=qx.lang.String.toFirstUp($1.substring(2));}else{$3=$[155];$4=qx.lang.String.toFirstUp($1.substring(1));}}else{$3=$[0];$4=qx.lang.String.toFirstUp($1);}$2.group?this.__attachGroupMethods($0,$2,$3,$4):this.__attachPropertyMethods($0,$2,$3,$4);},__attachGroupMethods:function($0,$1,$2,$3){var $4=$0.prototype;var $5=$1.name;var $6=$1.themeable===true;{};var $7=[];var $8=[];if($6){var $9=[];var $a=[];}var $b=$[675];$7.push($b);if($6){$9.push($b);}if($1.mode==$[103]){var $c=$[830];$7.push($c);if($6){$9.push($c);}}for(var $d=0,$e=$1.group,$f=$e.length;$d<$f;$d++){{};$7.push($[218],this.$$method.set[$e[$d]],$[436],$d,$[386]);$8.push($[218],this.$$method.reset[$e[$d]],$[526]);if($6){{};$9.push($[218],this.$$method.style[$e[$d]],$[436],$d,$[386]);$a.push($[218],this.$$method.unstyle[$e[$d]],$[526]);}}this.$$method.set[$5]=$2+$[25]+$3;$4[this.$$method.set[$5]]=new Function($7.join($[0]));this.$$method.reset[$5]=$2+$[106]+$3;$4[this.$$method.reset[$5]]=new Function($8.join($[0]));if($6){this.$$method.style[$5]=$2+$[44]+$3;$4[this.$$method.style[$5]]=new Function($9.join($[0]));this.$$method.unstyle[$5]=$2+$[120]+$3;$4[this.$$method.unstyle[$5]]=new Function($a.join($[0]));}},__attachPropertyMethods:function($0,$1,$2,$3){var $4=$0.prototype;var $5=$1.name;{};if($1.dispose===undefined&&typeof $1.check===$[8]){$1.dispose=this.__dispose[$1.check]||qx.Class.isDefined($1.check)||qx.Interface.isDefined($1.check);}var $6=this.$$method;var $7=this.$$store;$7.user[$5]=$[500]+$5;$7.theme[$5]=$[1095]+$5;$7.init[$5]=$[332]+$5;$7.inherit[$5]=$[585]+$5;$7.useinit[$5]=$[919]+$5;$6.get[$5]=$2+$[114]+$3;$4[$6.get[$5]]=function(){return qx.core.Property.executeOptimizedGetter(this,$0,$5,$[114]);};$6.set[$5]=$2+$[25]+$3;$4[$6.set[$5]]=function($8){return qx.core.Property.executeOptimizedSetter(this,$0,$5,$[25],arguments);};$6.reset[$5]=$2+$[106]+$3;$4[$6.reset[$5]]=function(){return qx.core.Property.executeOptimizedSetter(this,$0,$5,$[106]);};if($1.inheritable||$1.apply||$1.event){$6.init[$5]=$2+$[80]+$3;$4[$6.init[$5]]=function($8){return qx.core.Property.executeOptimizedSetter(this,$0,$5,$[80],arguments);};}if($1.inheritable){$6.refresh[$5]=$2+$[146]+$3;$4[$6.refresh[$5]]=function($8){return qx.core.Property.executeOptimizedSetter(this,$0,$5,$[146],arguments);};}if($1.themeable){$6.style[$5]=$2+$[44]+$3;$4[$6.style[$5]]=function($8){return qx.core.Property.executeOptimizedSetter(this,$0,$5,$[44],arguments);};$6.unstyle[$5]=$2+$[120]+$3;$4[$6.unstyle[$5]]=function(){return qx.core.Property.executeOptimizedSetter(this,$0,$5,$[120]);};}if($1.check===$[2]){$4[$2+$[417]+$3]=new Function($[502]+$6.set[$5]+$[902]+$6.get[$5]+$[1278]);$4[$2+$[1540]+$3]=new Function($[502]+$6.get[$5]+$[1501]);}},__errors:{0:$[1371],1:$[1182],2:$[921],3:$[641],4:$[1357],5:$[926]},error:function($0,$1,$2,$3,$4){var $5=$0.constructor.classname;var $6=$[1632]+$2+$[1396]+$5+$[1237]+this.$$method[$3][$2]+$[1367]+$4+$[931];$0.printStackTrace();$0.error($6+(this.__errors[$1]||"Unknown reason: "+$1));throw new Error($6+(this.__errors[$1]||"Unknown reason: "+$1));},__unwrapFunctionFromCode:function($0,$1,$2,$3,$4,$5){var $6=this.$$method[$3][$2];{$1[$6]=new Function($[255],$4.join($[0]));};if(qx.core.Variant.isSet($[108],$[23])){$1[$6]=qx.core.Aspect.wrap($0.classname+$[24]+$6,$1[$6],$[716]);}if($5===undefined){return $0[$6]();}else{return $0[$6]($5[0]);}},executeOptimizedGetter:function($0,$1,$2,$3){var $4=$1.$$properties[$2];var $5=$1.prototype;var $6=[];if($4.inheritable){$6.push($[97],this.$$store.inherit[$2],$[134]);$6.push($[182],this.$$store.inherit[$2],$[10]);$6.push($[388]);}$6.push($[97],this.$$store.user[$2],$[134]);$6.push($[182],this.$$store.user[$2],$[10]);if($4.themeable){$6.push($[183],this.$$store.theme[$2],$[134]);$6.push($[182],this.$$store.theme[$2],$[10]);}if($4.deferredInit&&$4.init===undefined){$6.push($[183],this.$$store.init[$2],$[134]);$6.push($[182],this.$$store.init[$2],$[10]);}$6.push($[388]);if($4.init!==undefined){$6.push($[182],this.$$store.init[$2],$[10]);}else if($4.inheritable||$4.nullable){$6.push($[1336]);}else{$6.push($[1138],$2,$[1296],$1.classname,$[612]);}return this.__unwrapFunctionFromCode($0,$5,$2,$3,$6);},executeOptimizedSetter:function($0,$1,$2,$3,$4){var $5=$1.$$properties[$2];var $6=$1.prototype;var $7=[];var $8=$3===$[25]||$3===$[44]||($3===$[80]&&$5.init===undefined);var $9=$3===$[106]||$3===$[120];var $a=$5.apply||$5.event||$5.inheritable;if($3===$[44]||$3===$[120]){var $b=this.$$store.theme[$2];}else if($3===$[80]){var $b=this.$$store.init[$2];}else{var $b=this.$$store.user[$2];}{if(!$5.nullable||$5.check||$5.inheritable){$7.push($[984]);}if(false&&$3===$[25]){$7.push($[1243]+$2+$[273]+$3+$[308]);}};if($8){if($5.transform){$7.push($[1249],$5.transform,$[826]);}}if($a){if($8){$7.push($[97],$b,$[1231]);}else if($9){$7.push($[97],$b,$[1569]);}}if($5.inheritable){$7.push($[564]);}if($8&&false){if(!$5.nullable){$7.push($[1185]+$2+$[273]+$3+$[308]);}if($5.check!==undefined){if($5.nullable){$7.push($[1119]);}if($5.inheritable){$7.push($[898]);}$7.push($[1619]);if(this.__checks[$5.check]!==undefined){$7.push($[494],this.__checks[$5.check],$[299]);}else if(qx.Class.isDefined($5.check)){$7.push($[755],$5.check,$[299]);}else if(qx.Interface.isDefined($5.check)){$7.push($[1208],$5.check,$[1592]);}else if(typeof $5.check===$[37]){$7.push($[660],$1.classname,$[461],$2);$7.push($[1723]);}else if(typeof $5.check===$[8]){$7.push($[494],$5.check,$[299]);}else if($5.check instanceof Array){$5.checkMap=qx.lang.Object.fromArray($5.check);$7.push($1.classname,$[461],$2);$7.push($[1722]);}else{throw new Error("Could not add check to property "+$2+" of class "+$1.classname);}$7.push($[996]+$2+$[273]+$3+$[308]);}}if(!$a){if($3===$[25]){$7.push($[49],this.$$store.user[$2],$[45]);}else if($3===$[106]){$7.push($[97],this.$$store.user[$2],$[134]);$7.push($[118],this.$$store.user[$2],$[10]);}else if($3===$[44]){$7.push($[49],this.$$store.theme[$2],$[45]);}else if($3===$[120]){$7.push($[97],this.$$store.theme[$2],$[134]);$7.push($[118],this.$$store.theme[$2],$[10]);}else if($3===$[80]&&$8){$7.push($[49],this.$$store.init[$2],$[45]);}}else{if($5.inheritable){$7.push($[1441],this.$$store.inherit[$2],$[10]);}else{$7.push($[1688]);}$7.push($[97],this.$$store.user[$2],$[208]);if($3===$[25]){if(!$5.inheritable){$7.push($[230],this.$$store.user[$2],$[10]);}$7.push($[34],this.$$store.user[$2],$[45]);}else if($3===$[106]){if(!$5.inheritable){$7.push($[230],this.$$store.user[$2],$[10]);}$7.push($[118],this.$$store.user[$2],$[10]);$7.push($[97],this.$$store.theme[$2],$[134]);$7.push($[34],this.$$store.theme[$2],$[10]);$7.push($[183],this.$$store.init[$2],$[208]);$7.push($[34],this.$$store.init[$2],$[10]);$7.push($[49],this.$$store.useinit[$2],$[227]);$7.push($[102]);}else{if($5.inheritable){$7.push($[34],this.$$store.user[$2],$[10]);}else{$7.push($[1558],this.$$store.user[$2],$[10]);}if($3===$[44]){$7.push($[49],this.$$store.theme[$2],$[45]);}else if($3===$[120]){$7.push($[118],this.$$store.theme[$2],$[10]);}else if($3===$[80]&&$8){$7.push($[49],this.$$store.init[$2],$[45]);}}$7.push($[102]);if($5.themeable){$7.push($[183],this.$$store.theme[$2],$[208]);if(!$5.inheritable){$7.push($[230],this.$$store.theme[$2],$[10]);}if($3===$[25]){$7.push($[34],this.$$store.user[$2],$[45]);}else if($3===$[44]){$7.push($[34],this.$$store.theme[$2],$[45]);}else if($3===$[120]){$7.push($[118],this.$$store.theme[$2],$[10]);$7.push($[97],this.$$store.init[$2],$[208]);$7.push($[34],this.$$store.init[$2],$[10]);$7.push($[49],this.$$store.useinit[$2],$[227]);$7.push($[102]);}else if($3===$[80]){if($8){$7.push($[49],this.$$store.init[$2],$[45]);}$7.push($[34],this.$$store.theme[$2],$[10]);}else if($3===$[146]){$7.push($[34],this.$$store.theme[$2],$[10]);}$7.push($[102]);}$7.push($[183],this.$$store.useinit[$2],$[949]);if(!$5.inheritable){$7.push($[230],this.$$store.init[$2],$[10]);}if($3===$[80]){if($8){$7.push($[34],this.$$store.init[$2],$[45]);}else{$7.push($[34],this.$$store.init[$2],$[10]);}}else if($3===$[25]||$3===$[44]||$3===$[146]){$7.push($[118],this.$$store.useinit[$2],$[10]);if($3===$[25]){$7.push($[34],this.$$store.user[$2],$[45]);}else if($3===$[44]){$7.push($[34],this.$$store.theme[$2],$[45]);}else if($3===$[146]){$7.push($[34],this.$$store.init[$2],$[10]);}}$7.push($[102]);if($3===$[25]||$3===$[44]||$3===$[80]){$7.push($[1084]);if($3===$[25]){$7.push($[34],this.$$store.user[$2],$[45]);}else if($3===$[44]){$7.push($[34],this.$$store.theme[$2],$[45]);}else if($3===$[80]){if($8){$7.push($[34],this.$$store.init[$2],$[45]);}else{$7.push($[34],this.$$store.init[$2],$[10]);}$7.push($[49],this.$$store.useinit[$2],$[227]);}$7.push($[102]);}}if($5.inheritable){$7.push($[1113]);if($3===$[146]){$7.push($[638]);}else{$7.push($[1506],this.$$store.inherit[$2],$[10]);}$7.push($[817]);$7.push($[49],this.$$store.init[$2],$[805]);$7.push($[49],this.$$store.init[$2],$[1028]);$7.push($[34],this.$$store.init[$2],$[10]);$7.push($[49],this.$$store.useinit[$2],$[227]);$7.push($[1689]);$7.push($[118],this.$$store.useinit[$2],$[797]);$7.push($[102]);$7.push($[381]);$7.push($[775]);$7.push($[1103],this.$$store.inherit[$2],$[10]);$7.push($[102]);$7.push($[1649]);$7.push($[118],this.$$store.inherit[$2],$[10]);$7.push($[1658],this.$$store.inherit[$2],$[688]);$7.push($[886]);$7.push($[466]);$7.push($[530]);}else if($a){if($3!==$[25]&&$3!==$[44]){$7.push($[466]);}$7.push($[381]);$7.push($[530]);}if($a){if($5.apply){$7.push($[49],$5.apply,$[1536]);}if($5.event){$7.push($[1768],$5.event,$[1410]);}if($5.inheritable&&$6.getChildren){$7.push($[860]);$7.push($[901],this.$$method.refresh[$2],$[557],this.$$method.refresh[$2],$[768]);$7.push($[102]);}}if($8){$7.push($[643]);}return this.__unwrapFunctionFromCode($0,$6,$2,$3,$7,$4);}},settings:{"qx.propertyDebugLevel":0}});
18
qx.Class.define($[1718],{statics:{toCamelCase:function($0){return $0.replace(/\-([a-z])/g,function($1,$2){return $2.toUpperCase();});},trimLeft:function($0){return $0.replace(/^\s+/,$[0]);},trimRight:function($0){return $0.replace(/\s+$/,$[0]);},trim:function($0){return $0.replace(/^\s+|\s+$/g,$[0]);},startsWith:function($0,$1){return !$0.indexOf($1);},startsWithAlternate:function($0,$1){return $0.substring(0,$1.length)===$1;},endsWith:function($0,$1){return $0.lastIndexOf($1)===$0.length-$1.length;},endsWithAlternate:function($0,$1){return $0.substring($0.length-$1.length,$0.length)===$1;},pad:function($0,$1,$2,$3){if(typeof $2===$[65]){$2=$[41];}var $4=$[0];for(var $5=$0.length;$5<$1;$5++){$4+=$2;}if($3==true){return $0+$4;}else{return $4+$0;}},toFirstUp:function($0){return $0.charAt(0).toUpperCase()+$0.substr(1);},toFirstLower:function($0){return $0.charAt(0).toLowerCase()+$0.substr(1);},addListItem:function($0,$1,$2){if($0==$1||$0==$[0]){return $1;}if($2==null){$2=$[101];}var $3=$0.split($2);if($3.indexOf($1)==-1){$3.push($1);return $3.join($2);}else{return $0;}},removeListItem:function($0,$1,$2){if($0==$1||$0==$[0]){return $[0];}else{if($2==null){$2=$[101];}var $3=$0.split($2);var $4=$3.indexOf($1);if($4===-1){return $0;}do{$3.splice($4,1);}while(($4=$3.indexOf($1))!=-1);return $3.join($2);}},contains:function($0,$1){return $0.indexOf($1)!=-1;},format:function($0,$1){var $2=$0;for(var $3=0;$3<$1.length;$3++){$2=$2.replace(new RegExp($[173]+($3+1),$[289]),$1[$3]);}return $2;},escapeRegexpChars:function($0){return $0.replace(/([\\\.\(\)\[\]\{\}\^\$\?\+\*])/g,$[877]);},toArray:function($0){return $0.split(/\B|\b/g);}}});
18
qx.Class.define($[1718],{statics:{toCamelCase:function($0){return $0.replace(/\-([a-z])/g,function($1,$2){return $2.toUpperCase();});},trimLeft:function($0){return $0.replace(/^\s+/,$[0]);},trimRight:function($0){return $0.replace(/\s+$/,$[0]);},trim:function($0){return $0.replace(/^\s+|\s+$/g,$[0]);},startsWith:function($0,$1){return !$0.indexOf($1);},startsWithAlternate:function($0,$1){return $0.substring(0,$1.length)===$1;},endsWith:function($0,$1){return $0.lastIndexOf($1)===$0.length-$1.length;},endsWithAlternate:function($0,$1){return $0.substring($0.length-$1.length,$0.length)===$1;},pad:function($0,$1,$2,$3){if(typeof $2===$[65]){$2=$[41];}var $4=$[0];for(var $5=$0.length;$5<$1;$5++){$4+=$2;}if($3==true){return $0+$4;}else{return $4+$0;}},toFirstUp:function($0){return $0.charAt(0).toUpperCase()+$0.substr(1);},toFirstLower:function($0){return $0.charAt(0).toLowerCase()+$0.substr(1);},addListItem:function($0,$1,$2){if($0==$1||$0==$[0]){return $1;}if($2==null){$2=$[101];}var $3=$0.split($2);if($3.indexOf($1)==-1){$3.push($1);return $3.join($2);}else{return $0;}},removeListItem:function($0,$1,$2){if($0==$1||$0==$[0]){return $[0];}else{if($2==null){$2=$[101];}var $3=$0.split($2);var $4=$3.indexOf($1);if($4===-1){return $0;}do{$3.splice($4,1);}while(($4=$3.indexOf($1))!=-1);return $3.join($2);}},contains:function($0,$1){return $0.indexOf($1)!=-1;},format:function($0,$1){var $2=$0;for(var $3=0;$3<$1.length;$3++){$2=$2.replace(new RegExp($[173]+($3+1),$[289]),$1[$3]);}return $2;},escapeRegexpChars:function($0){return $0.replace(/([\\\.\(\)\[\]\{\}\^\$\?\+\*])/g,$[877]);},toArray:function($0){return $0.split(/\B|\b/g);}}});
19
qx.Class.define($[493],{extend:Object,include:[qx.locale.MTranslation,qx.log.MLogging,qx.core.MUserData],construct:function(){this._hashCode=qx.core.Object.__availableHashCode++;if(this._autoDispose){this.__dbKey=qx.core.Object.__db.length;qx.core.Object.__db.push(this);}},statics:{__availableHashCode:0,__db:[],__disposeAll:false,$$type:$[119],toHashCode:function($0){if($0._hashCode!=null){return $0._hashCode;}return $0._hashCode=this.__availableHashCode++;},getDb:function(){return this.__db;},dispose:function($0){if(this.__disposed){return;}this.__disposed=true;this.__unload=$0||false;var $1;var $2,$3=this.__db;for(var $4=$3.length-1;$4>=0;$4--){$2=$3[$4];if($2&&$2.__disposed===false){try{$2.dispose();}catch(ex){{};}}}var $5,$4,$6,$7,$8,$9;},inGlobalDispose:function(){return this.__disposed||false;},isPageUnload:function(){return this.__unload||false;}},members:{_autoDispose:true,toHashCode:function(){return this._hashCode;},toString:function(){if(this.classname){return $[973]+this.classname+$[115];}return $[1605];},base:function($0,$1){if(arguments.length===1){return $0.callee.base.call(this);}else{return $0.callee.base.apply(this,Array.prototype.slice.call(arguments,1));}},self:function($0){return $0.callee.self;},getDbKey:function(){return this.__dbKey;},set:function($0,$1){var $2=qx.core.Property.$$method.set;if(typeof $0===$[8]){{};return this[$2[$0]]($1);}else{for(var $3 in $0){{};this[$2[$3]]($0[$3]);}return this;}},get:function($0){var $1=qx.core.Property.$$method.get;{};return this[$1[$0]]();},reset:function($0){var $1=qx.core.Property.$$method.reset;{};this[$1[$0]]();},__disposed:false,getDisposed:function(){return this.__disposed;},isDisposed:function(){return this.__disposed;},dispose:function(){if(this.__disposed){return;}this.__disposed=true;{};var $0=this.constructor;var $1;while($0.superclass){if($0.$$destructor){$0.$$destructor.call(this);}if($0.$$includes){$1=$0.$$flatIncludes;for(var $2=0,$3=$1.length;$2<$3;$2++){if($1[$2].$$destructor){$1[$2].$$destructor.call(this);}}}$0=$0.superclass;}var $4,$5;},_disposeFields:function($0){var $1;for(var $2=0,$3=arguments.length;$2<$3;$2++){var $1=arguments[$2];if(this[$1]==null){continue;}if(!this.hasOwnProperty($1)){{};continue;}this[$1]=null;}},_disposeObjects:function($0){var $1;for(var $2=0,$3=arguments.length;$2<$3;$2++){var $1=arguments[$2];if(this[$1]==null){continue;}if(!this.hasOwnProperty($1)){{};continue;}if(!this[$1].dispose){throw new Error(this.classname+" has no own object "+$1);}this[$1].dispose();this[$1]=null;}},_disposeObjectDeep:function($0,$1){var $0;if(this[$0]==null){return;}if(!this.hasOwnProperty($0)){{};return;}{};this.__disposeObjectsDeepRecurser(this[$0],$1||0);this[$0]=null;},__disposeObjectsDeepRecurser:function($0,$1){if($0 instanceof qx.core.Object){{};$0.dispose();}else if($0 instanceof Array){for(var $2=0,$3=$0.length;$2<$3;$2++){var $4=$0[$2];if($4==null){continue;}if(typeof $4==$[28]){if($1>0){{};this.__disposeObjectsDeepRecurser($4,$1-1);}{};$0[$2]=null;}else if(typeof $4==$[37]){{};$0[$2]=null;}}}else if($0 instanceof Object){for(var $5 in $0){if($0[$5]==null||!$0.hasOwnProperty($5)){continue;}var $4=$0[$5];if(typeof $4==$[28]){if($1>0){{};this.__disposeObjectsDeepRecurser($4,$1-1);}{};$0[$5]=null;}else if(typeof $4==$[37]){{};$0[$5]=null;}}}}},settings:{"qx.disposerDebugLevel":0},destruct:function(){var $0=this.constructor;var $1;var $2=qx.core.Property.$$store;var $3=$2.user;var $4=$2.theme;var $5=$2.inherit;var $6=$2.useinit;var $7=$2.init;while($0){$1=$0.$$properties;if($1){for(var $8 in $1){if($1[$8].dispose){this[$3[$8]]=this[$4[$8]]=this[$5[$8]]=this[$6[$8]]=this[$7[$8]]=undefined;}}}$0=$0.superclass;}if(this.__dbKey!=null){if(qx.core.Object.__disposeAll){qx.core.Object.__db[this.__dbKey]=null;}else{delete qx.core.Object.__db[this.__dbKey];}}}});
19
qx.Class.define($[493],{extend:Object,include:[qx.locale.MTranslation,qx.log.MLogging,qx.core.MUserData],construct:function(){this._hashCode=qx.core.Object.__availableHashCode++;if(this._autoDispose){this.__dbKey=qx.core.Object.__db.length;qx.core.Object.__db.push(this);}},statics:{__availableHashCode:0,__db:[],__disposeAll:false,$$type:$[119],toHashCode:function($0){if($0._hashCode!=null){return $0._hashCode;}return $0._hashCode=this.__availableHashCode++;},getDb:function(){return this.__db;},dispose:function($0){if(this.__disposed){return;}this.__disposed=true;this.__unload=$0||false;var $1;var $2,$3=this.__db;for(var $4=$3.length-1;$4>=0;$4--){$2=$3[$4];if($2&&$2.__disposed===false){try{$2.dispose();}catch(ex){{};}}}var $5,$4,$6,$7,$8,$9;},inGlobalDispose:function(){return this.__disposed||false;},isPageUnload:function(){return this.__unload||false;}},members:{_autoDispose:true,toHashCode:function(){return this._hashCode;},toString:function(){if(this.classname){return $[972]+this.classname+$[115];}return $[1604];},base:function($0,$1){if(arguments.length===1){return $0.callee.base.call(this);}else{return $0.callee.base.apply(this,Array.prototype.slice.call(arguments,1));}},self:function($0){return $0.callee.self;},getDbKey:function(){return this.__dbKey;},set:function($0,$1){var $2=qx.core.Property.$$method.set;if(typeof $0===$[8]){{};return this[$2[$0]]($1);}else{for(var $3 in $0){{};this[$2[$3]]($0[$3]);}return this;}},get:function($0){var $1=qx.core.Property.$$method.get;{};return this[$1[$0]]();},reset:function($0){var $1=qx.core.Property.$$method.reset;{};this[$1[$0]]();},__disposed:false,getDisposed:function(){return this.__disposed;},isDisposed:function(){return this.__disposed;},dispose:function(){if(this.__disposed){return;}this.__disposed=true;{};var $0=this.constructor;var $1;while($0.superclass){if($0.$$destructor){$0.$$destructor.call(this);}if($0.$$includes){$1=$0.$$flatIncludes;for(var $2=0,$3=$1.length;$2<$3;$2++){if($1[$2].$$destructor){$1[$2].$$destructor.call(this);}}}$0=$0.superclass;}var $4,$5;},_disposeFields:function($0){var $1;for(var $2=0,$3=arguments.length;$2<$3;$2++){var $1=arguments[$2];if(this[$1]==null){continue;}if(!this.hasOwnProperty($1)){{};continue;}this[$1]=null;}},_disposeObjects:function($0){var $1;for(var $2=0,$3=arguments.length;$2<$3;$2++){var $1=arguments[$2];if(this[$1]==null){continue;}if(!this.hasOwnProperty($1)){{};continue;}if(!this[$1].dispose){throw new Error(this.classname+" has no own object "+$1);}this[$1].dispose();this[$1]=null;}},_disposeObjectDeep:function($0,$1){var $0;if(this[$0]==null){return;}if(!this.hasOwnProperty($0)){{};return;}{};this.__disposeObjectsDeepRecurser(this[$0],$1||0);this[$0]=null;},__disposeObjectsDeepRecurser:function($0,$1){if($0 instanceof qx.core.Object){{};$0.dispose();}else if($0 instanceof Array){for(var $2=0,$3=$0.length;$2<$3;$2++){var $4=$0[$2];if($4==null){continue;}if(typeof $4==$[28]){if($1>0){{};this.__disposeObjectsDeepRecurser($4,$1-1);}{};$0[$2]=null;}else if(typeof $4==$[37]){{};$0[$2]=null;}}}else if($0 instanceof Object){for(var $5 in $0){if($0[$5]==null||!$0.hasOwnProperty($5)){continue;}var $4=$0[$5];if(typeof $4==$[28]){if($1>0){{};this.__disposeObjectsDeepRecurser($4,$1-1);}{};$0[$5]=null;}else if(typeof $4==$[37]){{};$0[$5]=null;}}}}},settings:{"qx.disposerDebugLevel":0},destruct:function(){var $0=this.constructor;var $1;var $2=qx.core.Property.$$store;var $3=$2.user;var $4=$2.theme;var $5=$2.inherit;var $6=$2.useinit;var $7=$2.init;while($0){$1=$0.$$properties;if($1){for(var $8 in $1){if($1[$8].dispose){this[$3[$8]]=this[$4[$8]]=this[$5[$8]]=this[$6[$8]]=this[$7[$8]]=undefined;}}}$0=$0.superclass;}if(this.__dbKey!=null){if(qx.core.Object.__disposeAll){qx.core.Object.__db[this.__dbKey]=null;}else{delete qx.core.Object.__db[this.__dbKey];}}}});
20
qx.Class.define($[1444],{statics:{log:function($0){this._logFormatted(arguments,$[0]);},debug:function($0){this._logFormatted(arguments,$[863]);},info:function($0){this._logFormatted(arguments,$[962]);},warn:function($0){this._logFormatted(arguments,$[727]);},error:function($0){this._logFormatted(arguments,$[95]);},assert:function($0,$1,$2){if(!$0){var $3=[];for(var $4=1;$4<arguments.length;++$4)$3.push(arguments[$4]);this._logFormatted($3.length?$3:[$[378]],$[95]);throw $1?$1:$[378];}},dir:function($0){var $1=[];var $2=[];for(var $3 in $0){try{$2.push([$3,$0[$3]]);}catch(exc){}}$2.sort(function($4,$5){return $4[0]<$5[0]?-1:1;});$1.push($[988]);for(var $6=0;$6<$2.length;++$6){var $3=$2[$6][0],$7=$2[$6][1];$1.push($[1418],$[1501],this._escapeHTML($3),$[939],$[1692]);this._appendObject($7,$1);$1.push($[983]);}$1.push($[1538]);this._logRow($1,$[982]);},dirxml:function($0){var $1=[];this._appendNode($0,$1);this._logRow($1,$[1589]);},time:function($0){this._timeMap[$0]=(new Date()).getTime();},timeEnd:function($0){if($0 in this._timeMap){var $1=(new Date()).getTime()-this._timeMap[$0];this._logFormatted([$0+$[47],$1+$[658]]);delete this._timeMap[$0];}},clear:function(){this._consoleLog.innerHTML=$[0];},trace:function(){if(qx.dev&&qx.dev.StackTrace){var $0=qx.dev.StackTrace.getStackTrace();this.debug("Current stack trace: ");for(var $1=1,$2=$0.length;$1<$2;$1++){this.debug("  - "+$0[$1]);}}else{this.warn("Stacktraces are not support by your build!");}},_consoleLog:null,_commandLine:null,_messageQueue:[],_timeMap:{},_clPrefix:$[831],_consoleShortcuts:{log:$[1148],info:$[807],debug:$[593],warn:$[1151],error:$[732],assert:$[1107],dir:$[1269],dirxml:$[1387],time:$[1664],timeEnd:$[1651],clear:$[1471]},_focusCommandLine:function(){if(this._commandLine){this._commandLine.focus();}},_initializeWindow:function(){if(this._consoleWindow){return;}if(qx.core.Setting){var $0=qx.core.Setting.get($[288])+$[1615];this._consoleWindow=window.open($0,$[328],$[987]);}},_onLogReady:function($0){var $1=$0.document;this._consoleWindow=$0;this._consoleDocument=$1;this._consoleLog=$1.getElementById($[341]);this._commandLine=$1.getElementById($[1267]);this._onUnloadWrapped=qx.lang.Function.bind(this._onUnload,this);this._onResizeWrapped=qx.lang.Function.bind(this._onResize,this);this._onCommandLineKeyDownWrapped=qx.lang.Function.bind(this._onCommandLineKeyDown,this);this._addEvent(window,$[131],this._onUnloadWrapped);this._addEvent($0,$[131],this._onUnloadWrapped);this._addEvent($0,$[202],this._onResizeWrapped);this._addEvent(this._commandLine,$[16],this._onCommandLineKeyDownWrapped);this._syncLayout();this._flush();},_syncLayout:function(){this._consoleLog.style.height=(qx.bom.Viewport.getHeight(this._consoleWindow)-42)+$[38];},_evalCommandLine:function(){var $0=this._commandLine.value;this._commandLine.value=$[0];this._logRow([this._clPrefix,$0],$[1152]);var $1=/^([a-z]+)\(/;var $2=$1.exec($0);if($2!=null){if(this._consoleShortcuts[$2[1]]){$0=this._consoleShortcuts[$2[1]]+$0.substring($2[1].length);}}var $3;try{$3=eval($0);}catch(ex){this.error(ex);}if($3!==undefined){this.log($3);}},_logRow:function($0,$1){if(this._consoleLog){this._writeMessage($0,$1);}else{this._messageQueue.push([$0,$1]);this._initializeWindow();}},_flush:function(){var $0=this._messageQueue;this._messageQueue=[];for(var $1=0;$1<$0.length;++$1){this._writeMessage($0[$1][0],$0[$1][1]);}},_writeMessage:function($0,$1){var $2=this._consoleLog.scrollTop+this._consoleLog.offsetHeight>=this._consoleLog.scrollHeight;this._writeRow($0,$1);if($2){this._consoleLog.scrollTop=this._consoleLog.scrollHeight-this._consoleLog.offsetHeight;}},_appendRow:function($0){this._consoleLog.appendChild($0);},_writeRow:function($0,$1){var $2=this._consoleLog.ownerDocument.createElement($[67]);$2.className=$[1683]+($1?$[1510]+$1:$[0]);$2.innerHTML=$0.join($[0]);this._appendRow($2);},_logFormatted:function($0,$1){if(window.__firebug__&&window.console){return window.console[$1].apply(window.console,$0);}var $2=[];var $3=$0[0];var $4=0;if(typeof ($3)!=$[8]){$3=$[0];$4=-1;}var $5=this._parseFormat($3);for(var $6=0;$6<$5.length;++$6){var $7=$5[$6];if($7&&typeof ($7)==$[28]){var $8=$0[++$4];$7.appender($8,$2);}else this._appendText($7,$2);}for(var $6=$4+1;$6<$0.length;++$6){this._appendText($[83],$2);var $8=$0[$6];if(typeof ($8)==$[8])this._appendText($8,$2);else this._appendObject($8,$2);}this._logRow($2,$1);},_parseFormat:function($0){var $1=[];var $2=/((^%|[^\\]%)(\d+)?(\.)([a-zA-Z]))|((^%|[^\\]%)([a-zA-Z]))/;var $3={s:this._appendText,d:this._appendInteger,i:this._appendInteger,f:this._appendFloat};for(var $4=$2.exec($0);$4;$4=$2.exec($0)){var $5=$4[8]?$4[8]:$4[5];var $6=$5 in $3?$3[$5]:this._appendObject;var $7=$4[3]?parseInt($4[3]):($4[4]==$[24]?-1:0);$1.push($0.substr(0,$4[0][0]==$[173]?$4.index:$4.index+1));$1.push({appender:$6,precision:$7});$0=$0.substr($4.index+$4[0].length);}$1.push($0);return $1;},_escapeHTML:function($0){function $1($2){switch($2){case $[1634]:return $[335];case $[1065]:return $[933];case $[93]:return $[478];case $[334]:return $[1297];case $[109]:return $[1284];}return $[194];}return String($0).replace(/[<>&"']/g,$1);},_objectToString:function($0){try{return $0+$[0];}catch(exc){return null;}},_appendText:function($0,$1){$1.push(this._escapeHTML(this._objectToString($0)));},_appendNull:function($0,$1){$1.push($[1173],this._escapeHTML(this._objectToString($0)),$[96]);},_appendString:function($0,$1){$1.push($[1393],this._escapeHTML(this._objectToString($0)),$[1487]);},_appendInteger:function($0,$1){$1.push($[388],this._escapeHTML(this._objectToString($0)),$[96]);},_appendFloat:function($0,$1){$1.push($[388],this._escapeHTML(this._objectToString($0)),$[96]);},_appendFunction:function($0,$1){var $2=/function ?(.*?)\(/;var $3=$2.exec(this._objectToString($0));var $4=$3?$3[1]:$[37];$1.push($[833],this._escapeHTML($4),$[1542]);},_appendObject:function($0,$1){try{if($0==undefined)this._appendNull($[65],$1);else if($0==null)this._appendNull($[1575],$1);else if(typeof $0==$[8])this._appendString($0,$1);else if(typeof $0==$[50])this._appendInteger($0,$1);else if($0.toString)this._appendText($0.toString(),$1);else if(typeof $0==$[37])this._appendFunction($0,$1);else if($0.nodeType==1)this._appendSelector($0,$1);else if(typeof $0==$[28])this._appendObjectFormatted($0,$1);else this._appendText($0,$1);}catch(exc){}},_appendObjectFormatted:function($0,$1){var $2=this._objectToString($0);var $3=/\[object (.*?)\]/;var $4=$3.exec($2);$1.push($[1466],$4?$4[1]:$2,$[96]);},_appendSelector:function($0,$1){$1.push($[1254]);$1.push($[1089],this._escapeHTML($0.nodeName.toLowerCase()),$[96]);if($0.id)$1.push($[996],this._escapeHTML($0.id),$[96]);if($0.className)$1.push($[1574],this._escapeHTML($0.className),$[96]);$1.push($[96]);},_appendNode:function($0,$1){if($0.nodeType==1){$1.push($[1302],$[1568],$0.nodeName.toLowerCase(),$[96]);for(var $2=0;$2<$0.attributes.length;++$2){var $3=$0.attributes[$2];if(!$3.specified)continue;$1.push($[1004],$3.nodeName.toLowerCase(),$[1204],this._escapeHTML($3.nodeValue),$[1463]);}if($0.firstChild){$1.push($[1652]);for(var $4=$0.firstChild;$4;$4=$4.nextSibling)this._appendNode($4,$1);$1.push($[1310],$0.nodeName.toLowerCase(),$[1674]);}else $1.push($[1332]);}else if($0.nodeType==3){$1.push($[1798],this._escapeHTML($0.nodeValue),$[675]);}},_addEvent:function($0,$1,$2){if(document.all)$0.attachEvent($[23]+$1,$2);else $0.addEventListener($1,$2,false);},_removeEvent:function($0,$1,$2){if(document.all)$0.detachEvent($[23]+$1,$2);else $0.removeEventListener($1,$2,false);},_cancelEvent:function($0){if(document.all)$0.cancelBubble=true;else $0.stopPropagation();},_onCommandLineKeyDown:function($0){if($0.keyCode==13)this._evalCommandLine();else if($0.keyCode==27)this._commandLine.value=$[0];},_onResize:function($0){this._syncLayout();},_onUnload:function($0){var $1=this._consoleWindow;var $2=this._commandLine;this._consoleWindow=null;this._consoleDocument=null;this._consoleLog=null;this._commandLine=null;this._removeEvent(window,$[131],this._onUnloadWrapped);if($1){try{$1.close();}catch(ex){}this._removeEvent($1,$[131],this._onUnloadWrapped);this._removeEvent($1,$[202],this._onResizeWrapped);}if($2){this._removeEvent($2,$[16],this._onCommandLineKeyDownWrapped);}}}});
20
qx.Class.define($[1443],{statics:{log:function($0){this._logFormatted(arguments,$[0]);},debug:function($0){this._logFormatted(arguments,$[863]);},info:function($0){this._logFormatted(arguments,$[961]);},warn:function($0){this._logFormatted(arguments,$[728]);},error:function($0){this._logFormatted(arguments,$[95]);},assert:function($0,$1,$2){if(!$0){var $3=[];for(var $4=1;$4<arguments.length;++$4)$3.push(arguments[$4]);this._logFormatted($3.length?$3:[$[378]],$[95]);throw $1?$1:$[378];}},dir:function($0){var $1=[];var $2=[];for(var $3 in $0){try{$2.push([$3,$0[$3]]);}catch(exc){}}$2.sort(function($4,$5){return $4[0]<$5[0]?-1:1;});$1.push($[987]);for(var $6=0;$6<$2.length;++$6){var $3=$2[$6][0],$7=$2[$6][1];$1.push($[1419],$[1500],this._escapeHTML($3),$[938],$[1692]);this._appendObject($7,$1);$1.push($[982]);}$1.push($[1538]);this._logRow($1,$[981]);},dirxml:function($0){var $1=[];this._appendNode($0,$1);this._logRow($1,$[1588]);},time:function($0){this._timeMap[$0]=(new Date()).getTime();},timeEnd:function($0){if($0 in this._timeMap){var $1=(new Date()).getTime()-this._timeMap[$0];this._logFormatted([$0+$[47],$1+$[658]]);delete this._timeMap[$0];}},clear:function(){this._consoleLog.innerHTML=$[0];},trace:function(){if(qx.dev&&qx.dev.StackTrace){var $0=qx.dev.StackTrace.getStackTrace();this.debug("Current stack trace: ");for(var $1=1,$2=$0.length;$1<$2;$1++){this.debug("  - "+$0[$1]);}}else{this.warn("Stacktraces are not support by your build!");}},_consoleLog:null,_commandLine:null,_messageQueue:[],_timeMap:{},_clPrefix:$[832],_consoleShortcuts:{log:$[1147],info:$[808],debug:$[593],warn:$[1150],error:$[733],assert:$[1107],dir:$[1268],dirxml:$[1388],time:$[1663],timeEnd:$[1650],clear:$[1470]},_focusCommandLine:function(){if(this._commandLine){this._commandLine.focus();}},_initializeWindow:function(){if(this._consoleWindow){return;}if(qx.core.Setting){var $0=qx.core.Setting.get($[288])+$[1614];this._consoleWindow=window.open($0,$[328],$[986]);}},_onLogReady:function($0){var $1=$0.document;this._consoleWindow=$0;this._consoleDocument=$1;this._consoleLog=$1.getElementById($[340]);this._commandLine=$1.getElementById($[1266]);this._onUnloadWrapped=qx.lang.Function.bind(this._onUnload,this);this._onResizeWrapped=qx.lang.Function.bind(this._onResize,this);this._onCommandLineKeyDownWrapped=qx.lang.Function.bind(this._onCommandLineKeyDown,this);this._addEvent(window,$[131],this._onUnloadWrapped);this._addEvent($0,$[131],this._onUnloadWrapped);this._addEvent($0,$[202],this._onResizeWrapped);this._addEvent(this._commandLine,$[16],this._onCommandLineKeyDownWrapped);this._syncLayout();this._flush();},_syncLayout:function(){this._consoleLog.style.height=(qx.bom.Viewport.getHeight(this._consoleWindow)-42)+$[38];},_evalCommandLine:function(){var $0=this._commandLine.value;this._commandLine.value=$[0];this._logRow([this._clPrefix,$0],$[1151]);var $1=/^([a-z]+)\(/;var $2=$1.exec($0);if($2!=null){if(this._consoleShortcuts[$2[1]]){$0=this._consoleShortcuts[$2[1]]+$0.substring($2[1].length);}}var $3;try{$3=eval($0);}catch(ex){this.error(ex);}if($3!==undefined){this.log($3);}},_logRow:function($0,$1){if(this._consoleLog){this._writeMessage($0,$1);}else{this._messageQueue.push([$0,$1]);this._initializeWindow();}},_flush:function(){var $0=this._messageQueue;this._messageQueue=[];for(var $1=0;$1<$0.length;++$1){this._writeMessage($0[$1][0],$0[$1][1]);}},_writeMessage:function($0,$1){var $2=this._consoleLog.scrollTop+this._consoleLog.offsetHeight>=this._consoleLog.scrollHeight;this._writeRow($0,$1);if($2){this._consoleLog.scrollTop=this._consoleLog.scrollHeight-this._consoleLog.offsetHeight;}},_appendRow:function($0){this._consoleLog.appendChild($0);},_writeRow:function($0,$1){var $2=this._consoleLog.ownerDocument.createElement($[67]);$2.className=$[1682]+($1?$[1509]+$1:$[0]);$2.innerHTML=$0.join($[0]);this._appendRow($2);},_logFormatted:function($0,$1){if(window.__firebug__&&window.console){return window.console[$1].apply(window.console,$0);}var $2=[];var $3=$0[0];var $4=0;if(typeof ($3)!=$[8]){$3=$[0];$4=-1;}var $5=this._parseFormat($3);for(var $6=0;$6<$5.length;++$6){var $7=$5[$6];if($7&&typeof ($7)==$[28]){var $8=$0[++$4];$7.appender($8,$2);}else this._appendText($7,$2);}for(var $6=$4+1;$6<$0.length;++$6){this._appendText($[83],$2);var $8=$0[$6];if(typeof ($8)==$[8])this._appendText($8,$2);else this._appendObject($8,$2);}this._logRow($2,$1);},_parseFormat:function($0){var $1=[];var $2=/((^%|[^\\]%)(\d+)?(\.)([a-zA-Z]))|((^%|[^\\]%)([a-zA-Z]))/;var $3={s:this._appendText,d:this._appendInteger,i:this._appendInteger,f:this._appendFloat};for(var $4=$2.exec($0);$4;$4=$2.exec($0)){var $5=$4[8]?$4[8]:$4[5];var $6=$5 in $3?$3[$5]:this._appendObject;var $7=$4[3]?parseInt($4[3]):($4[4]==$[24]?-1:0);$1.push($0.substr(0,$4[0][0]==$[173]?$4.index:$4.index+1));$1.push({appender:$6,precision:$7});$0=$0.substr($4.index+$4[0].length);}$1.push($0);return $1;},_escapeHTML:function($0){function $1($2){switch($2){case $[1633]:return $[335];case $[1065]:return $[932];case $[93]:return $[479];case $[334]:return $[1295];case $[109]:return $[1283];}return $[194];}return String($0).replace(/[<>&"']/g,$1);},_objectToString:function($0){try{return $0+$[0];}catch(exc){return null;}},_appendText:function($0,$1){$1.push(this._escapeHTML(this._objectToString($0)));},_appendNull:function($0,$1){$1.push($[1172],this._escapeHTML(this._objectToString($0)),$[96]);},_appendString:function($0,$1){$1.push($[1394],this._escapeHTML(this._objectToString($0)),$[1486]);},_appendInteger:function($0,$1){$1.push($[389],this._escapeHTML(this._objectToString($0)),$[96]);},_appendFloat:function($0,$1){$1.push($[389],this._escapeHTML(this._objectToString($0)),$[96]);},_appendFunction:function($0,$1){var $2=/function ?(.*?)\(/;var $3=$2.exec(this._objectToString($0));var $4=$3?$3[1]:$[37];$1.push($[834],this._escapeHTML($4),$[1542]);},_appendObject:function($0,$1){try{if($0==undefined)this._appendNull($[65],$1);else if($0==null)this._appendNull($[1574],$1);else if(typeof $0==$[8])this._appendString($0,$1);else if(typeof $0==$[50])this._appendInteger($0,$1);else if($0.toString)this._appendText($0.toString(),$1);else if(typeof $0==$[37])this._appendFunction($0,$1);else if($0.nodeType==1)this._appendSelector($0,$1);else if(typeof $0==$[28])this._appendObjectFormatted($0,$1);else this._appendText($0,$1);}catch(exc){}},_appendObjectFormatted:function($0,$1){var $2=this._objectToString($0);var $3=/\[object (.*?)\]/;var $4=$3.exec($2);$1.push($[1465],$4?$4[1]:$2,$[96]);},_appendSelector:function($0,$1){$1.push($[1253]);$1.push($[1089],this._escapeHTML($0.nodeName.toLowerCase()),$[96]);if($0.id)$1.push($[995],this._escapeHTML($0.id),$[96]);if($0.className)$1.push($[1573],this._escapeHTML($0.className),$[96]);$1.push($[96]);},_appendNode:function($0,$1){if($0.nodeType==1){$1.push($[1300],$[1567],$0.nodeName.toLowerCase(),$[96]);for(var $2=0;$2<$0.attributes.length;++$2){var $3=$0.attributes[$2];if(!$3.specified)continue;$1.push($[1003],$3.nodeName.toLowerCase(),$[1203],this._escapeHTML($3.nodeValue),$[1462]);}if($0.firstChild){$1.push($[1651]);for(var $4=$0.firstChild;$4;$4=$4.nextSibling)this._appendNode($4,$1);$1.push($[1309],$0.nodeName.toLowerCase(),$[1673]);}else $1.push($[1332]);}else if($0.nodeType==3){$1.push($[1798],this._escapeHTML($0.nodeValue),$[676]);}},_addEvent:function($0,$1,$2){if(document.all)$0.attachEvent($[23]+$1,$2);else $0.addEventListener($1,$2,false);},_removeEvent:function($0,$1,$2){if(document.all)$0.detachEvent($[23]+$1,$2);else $0.removeEventListener($1,$2,false);},_cancelEvent:function($0){if(document.all)$0.cancelBubble=true;else $0.stopPropagation();},_onCommandLineKeyDown:function($0){if($0.keyCode==13)this._evalCommandLine();else if($0.keyCode==27)this._commandLine.value=$[0];},_onResize:function($0){this._syncLayout();},_onUnload:function($0){var $1=this._consoleWindow;var $2=this._commandLine;this._consoleWindow=null;this._consoleDocument=null;this._consoleLog=null;this._commandLine=null;this._removeEvent(window,$[131],this._onUnloadWrapped);if($1){try{$1.close();}catch(ex){}this._removeEvent($1,$[131],this._onUnloadWrapped);this._removeEvent($1,$[202],this._onResizeWrapped);}if($2){this._removeEvent($2,$[16],this._onCommandLineKeyDownWrapped);}}}});
21
qx.Class.define($[1606],{statics:{globalEval:function($0){if(window.execScript){window.execScript($0);}else{eval.call(window,$0);}},returnTrue:function(){return true;},returnFalse:function(){return false;},returnNull:function(){return null;},returnThis:function(){return this;},returnInstance:function(){if(!this._instance){this._instance=new this;}return this._instance;},returnZero:function(){return 0;},returnNegativeIndex:function(){return -1;},bind:function($0,$1,$2){{};if(arguments.length>2){var $3=Array.prototype.slice.call(arguments,2);var $4=function(){$0.context=$1;var $5=$0.apply($1,$3.concat(qx.lang.Array.fromArguments(arguments)));$0.context=null;return $5;};}else{var $4=function(){$0.context=$1;var $5=$0.apply($1,arguments);$0.context=null;return $5;};}$4.self=$0.self?$0.self.constructor:$1;return $4;},bindEvent:function($0,$1){{};var $2=function($3){$0.context=$1;var $4=$0.call($1,$3||window.event);$0.context=null;return $4;};$2.self=$0.self?$0.self.constructor:$1;return $2;},getCaller:function($0){return $0.caller?$0.caller.callee:$0.callee.caller;}}});
21
qx.Class.define($[1605],{statics:{globalEval:function($0){if(window.execScript){window.execScript($0);}else{eval.call(window,$0);}},returnTrue:function(){return true;},returnFalse:function(){return false;},returnNull:function(){return null;},returnThis:function(){return this;},returnInstance:function(){if(!this._instance){this._instance=new this;}return this._instance;},returnZero:function(){return 0;},returnNegativeIndex:function(){return -1;},bind:function($0,$1,$2){{};if(arguments.length>2){var $3=Array.prototype.slice.call(arguments,2);var $4=function(){$0.context=$1;var $5=$0.apply($1,$3.concat(qx.lang.Array.fromArguments(arguments)));$0.context=null;return $5;};}else{var $4=function(){$0.context=$1;var $5=$0.apply($1,arguments);$0.context=null;return $5;};}$4.self=$0.self?$0.self.constructor:$1;return $4;},bindEvent:function($0,$1){{};var $2=function($3){$0.context=$1;var $4=$0.call($1,$3||window.event);$0.context=null;return $4;};$2.self=$0.self?$0.self.constructor:$1;return $2;},getCaller:function($0){return $0.caller?$0.caller.callee:$0.callee.caller;}}});
22
qx.Class.define($[1758],{statics:{getWidth:qx.core.Variant.select($[1],{"opera":function($0){return ($0||window).document.body.clientWidth;},"webkit":function($0){return ($0||window).innerWidth;},"default":function($0){var $1=($0||window).document;return $1.compatMode===$[91]?$1.documentElement.clientWidth:$1.body.clientWidth;}}),getHeight:qx.core.Variant.select($[1],{"opera":function($0){return ($0||window).document.body.clientHeight;},"webkit":function($0){return ($0||window).innerHeight;},"default":function($0){var $1=($0||window).document;return $1.compatMode===$[91]?$1.documentElement.clientHeight:$1.body.clientHeight;}}),getScrollLeft:qx.core.Variant.select($[1],{"mshtml":function($0){var $1=($0||window).document;return $1.documentElement.scrollLeft||$1.body.scrollLeft;},"default":function($0){return ($0||window).pageXOffset;}}),getScrollTop:qx.core.Variant.select($[1],{"mshtml":function($0){var $1=($0||window).document;return $1.documentElement.scrollTop||$1.body.scrollTop;},"default":function($0){return ($0||window).pageYOffset;}})}});
22
qx.Class.define($[1758],{statics:{getWidth:qx.core.Variant.select($[1],{"opera":function($0){return ($0||window).document.body.clientWidth;},"webkit":function($0){return ($0||window).innerWidth;},"default":function($0){var $1=($0||window).document;return $1.compatMode===$[91]?$1.documentElement.clientWidth:$1.body.clientWidth;}}),getHeight:qx.core.Variant.select($[1],{"opera":function($0){return ($0||window).document.body.clientHeight;},"webkit":function($0){return ($0||window).innerHeight;},"default":function($0){var $1=($0||window).document;return $1.compatMode===$[91]?$1.documentElement.clientHeight:$1.body.clientHeight;}}),getScrollLeft:qx.core.Variant.select($[1],{"mshtml":function($0){var $1=($0||window).document;return $1.documentElement.scrollLeft||$1.body.scrollLeft;},"default":function($0){return ($0||window).pageXOffset;}}),getScrollTop:qx.core.Variant.select($[1],{"mshtml":function($0){var $1=($0||window).document;return $1.documentElement.scrollTop||$1.body.scrollTop;},"default":function($0){return ($0||window).pageYOffset;}})}});
23
qx.Class.define($[1475],{statics:{define:function($0,$1){if(!$1){var $1={};}if($1.include&&!($1.include instanceof Array)){$1.include=[$1.include];}{};var $2={$$type:$[121],name:$0,title:$1.title,toString:this.genericToString};if($1.extend){$2.supertheme=$1.extend;}$2.basename=qx.Class.createNamespace($0,$2);this.__convert($2,$1);this.__registry[$0]=$2;if($1.include){for(var $3=0,$4=$1.include,$5=$4.length;$3<$5;$3++){this.include($2,$4[$3]);}}},getAll:function(){return this.__registry;},getByName:function($0){return this.__registry[$0];},isDefined:function($0){return this.getByName($0)!==undefined;},getTotalNumber:function(){return qx.lang.Object.getLength(this.__registry);},genericToString:function(){return $[1214]+this.name+$[115];},__extractType:function($0){for(var $1=0,$2=this.__inheritableKeys,$3=$2.length;$1<$3;$1++){if($0[$2[$1]]){return $2[$1];}}},__convert:function($0,$1){var $2=this.__extractType($1);if($1.extend&&!$2){$2=$1.extend.type;}$0.type=$2||$[48];if(!$2){return;}var $3=function(){};if($1.extend){$3.prototype=new $1.extend.$$clazz;}var $4=$3.prototype;var $5=$1[$2];for(var $6 in $5){$4[$6]=$5[$6];if($4[$6].base){{};$4[$6].base=$1.extend;}}$0.$$clazz=$3;$0[$2]=new $3;},__registry:{},__inheritableKeys:[$[391],$[519],$[463],$[485],$[523],$[319],$[350]],__allowedKeys:null,__metaKeys:null,__validateConfig:function(){},patch:function($0,$1){var $2=this.__extractType($1);if($2!==this.__extractType($0)){throw new Error("The mixins '"+$0.name+"' are not compatible '"+$1.name+"'!");}var $3=$1[$2];var $4=$0[$2];for(var $5 in $3){$4[$5]=$3[$5];}},include:function($0,$1){var $2=$1.type;if($2!==$0.type){throw new Error("The mixins '"+$0.name+"' are not compatible '"+$1.name+"'!");}var $3=$1[$2];var $4=$0[$2];for(var $5 in $3){if($4[$5]!==undefined){throw new Error("It is not allowed to overwrite the key '"+$5+"' of theme '"+$0.name+"' by mixin theme '"+$1.name+"'.");}$4[$5]=$3[$5];}}}});
23
qx.Class.define($[1474],{statics:{define:function($0,$1){if(!$1){var $1={};}if($1.include&&!($1.include instanceof Array)){$1.include=[$1.include];}{};var $2={$$type:$[121],name:$0,title:$1.title,toString:this.genericToString};if($1.extend){$2.supertheme=$1.extend;}$2.basename=qx.Class.createNamespace($0,$2);this.__convert($2,$1);this.__registry[$0]=$2;if($1.include){for(var $3=0,$4=$1.include,$5=$4.length;$3<$5;$3++){this.include($2,$4[$3]);}}},getAll:function(){return this.__registry;},getByName:function($0){return this.__registry[$0];},isDefined:function($0){return this.getByName($0)!==undefined;},getTotalNumber:function(){return qx.lang.Object.getLength(this.__registry);},genericToString:function(){return $[1213]+this.name+$[115];},__extractType:function($0){for(var $1=0,$2=this.__inheritableKeys,$3=$2.length;$1<$3;$1++){if($0[$2[$1]]){return $2[$1];}}},__convert:function($0,$1){var $2=this.__extractType($1);if($1.extend&&!$2){$2=$1.extend.type;}$0.type=$2||$[48];if(!$2){return;}var $3=function(){};if($1.extend){$3.prototype=new $1.extend.$$clazz;}var $4=$3.prototype;var $5=$1[$2];for(var $6 in $5){$4[$6]=$5[$6];if($4[$6].base){{};$4[$6].base=$1.extend;}}$0.$$clazz=$3;$0[$2]=new $3;},__registry:{},__inheritableKeys:[$[392],$[520],$[465],$[485],$[524],$[319],$[349]],__allowedKeys:null,__metaKeys:null,__validateConfig:function(){},patch:function($0,$1){var $2=this.__extractType($1);if($2!==this.__extractType($0)){throw new Error("The mixins '"+$0.name+"' are not compatible '"+$1.name+"'!");}var $3=$1[$2];var $4=$0[$2];for(var $5 in $3){$4[$5]=$3[$5];}},include:function($0,$1){var $2=$1.type;if($2!==$0.type){throw new Error("The mixins '"+$0.name+"' are not compatible '"+$1.name+"'!");}var $3=$1[$2];var $4=$0[$2];for(var $5 in $3){if($4[$5]!==undefined){throw new Error("It is not allowed to overwrite the key '"+$5+"' of theme '"+$0.name+"' by mixin theme '"+$1.name+"'.");}$4[$5]=$3[$5];}}}});
24
qx.Class.define($[1283],{extend:qx.core.Object,construct:function(){arguments.callee.base.call(this);},members:{addEventListener:function($0,$1,$2){if(this.getDisposed()){return;}{};if(this.__listeners===undefined){this.__listeners={};}if(this.__listeners[$0]===undefined){this.__listeners[$0]={};}var $3=$[481]+qx.core.Object.toHashCode($1)+($2?$[207]+qx.core.Object.toHashCode($2):$[0]);this.__listeners[$0][$3]={handler:$1,object:$2};},removeEventListener:function($0,$1,$2){if(this.getDisposed()){return;}var $3=this.__listeners;if(!$3||$3[$0]===undefined){return;}if(typeof $1!==$[37]){throw new Error("qx.core.Target: removeEventListener("+$0+"): '"+$1+"' is not a function!");}var $4=$[481]+qx.core.Object.toHashCode($1)+($2?$[207]+qx.core.Object.toHashCode($2):$[0]);delete this.__listeners[$0][$4];},hasEventListeners:function($0){return this.__listeners&&this.__listeners[$0]!==undefined&&!qx.lang.Object.isEmpty(this.__listeners[$0]);},createDispatchEvent:function($0){if(this.hasEventListeners($0)){this.dispatchEvent(new qx.event.type.Event($0),true);}},createDispatchDataEvent:function($0,$1){if(this.hasEventListeners($0)){this.dispatchEvent(new qx.event.type.DataEvent($0,$1),true);}},createDispatchChangeEvent:function($0,$1,$2){if(this.hasEventListeners($0)){this.dispatchEvent(new qx.event.type.ChangeEvent($0,$1,$2),true);}},dispatchEvent:function($0,$1){if(this.getDisposed()){return;}if($0.getTarget()==null){$0.setTarget(this);}if($0.getCurrentTarget()==null){$0.setCurrentTarget(this);}this._dispatchEvent($0,$1);var $2=$0.getDefaultPrevented();$1&&$0.dispose();return !$2;},_dispatchEvent:function($0){var $1=this.__listeners;if($1){$0.setCurrentTarget(this);var $2=$1[$0.getType()];if($2){var $3,$4;for(var $5 in $2){$3=$2[$5].handler;$4=$2[$5].object||this;$3.call($4,$0);}}}if($0.getBubbles()&&!$0.getPropagationStopped()&&typeof (this.getParent)==$[37]){var $6=this.getParent();if($6&&!$6.getDisposed()&&$6.getEnabled()){$6._dispatchEvent($0);}}}},destruct:function(){this._disposeObjectDeep($[1286],2);}});
24
qx.Class.define($[1282],{extend:qx.core.Object,construct:function(){arguments.callee.base.call(this);},members:{addEventListener:function($0,$1,$2){if(this.getDisposed()){return;}{};if(this.__listeners===undefined){this.__listeners={};}if(this.__listeners[$0]===undefined){this.__listeners[$0]={};}var $3=$[481]+qx.core.Object.toHashCode($1)+($2?$[207]+qx.core.Object.toHashCode($2):$[0]);this.__listeners[$0][$3]={handler:$1,object:$2};},removeEventListener:function($0,$1,$2){if(this.getDisposed()){return;}var $3=this.__listeners;if(!$3||$3[$0]===undefined){return;}if(typeof $1!==$[37]){throw new Error("qx.core.Target: removeEventListener("+$0+"): '"+$1+"' is not a function!");}var $4=$[481]+qx.core.Object.toHashCode($1)+($2?$[207]+qx.core.Object.toHashCode($2):$[0]);delete this.__listeners[$0][$4];},hasEventListeners:function($0){return this.__listeners&&this.__listeners[$0]!==undefined&&!qx.lang.Object.isEmpty(this.__listeners[$0]);},createDispatchEvent:function($0){if(this.hasEventListeners($0)){this.dispatchEvent(new qx.event.type.Event($0),true);}},createDispatchDataEvent:function($0,$1){if(this.hasEventListeners($0)){this.dispatchEvent(new qx.event.type.DataEvent($0,$1),true);}},createDispatchChangeEvent:function($0,$1,$2){if(this.hasEventListeners($0)){this.dispatchEvent(new qx.event.type.ChangeEvent($0,$1,$2),true);}},dispatchEvent:function($0,$1){if(this.getDisposed()){return;}if($0.getTarget()==null){$0.setTarget(this);}if($0.getCurrentTarget()==null){$0.setCurrentTarget(this);}this._dispatchEvent($0,$1);var $2=$0.getDefaultPrevented();$1&&$0.dispose();return !$2;},_dispatchEvent:function($0){var $1=this.__listeners;if($1){$0.setCurrentTarget(this);var $2=$1[$0.getType()];if($2){var $3,$4;for(var $5 in $2){$3=$2[$5].handler;$4=$2[$5].object||this;$3.call($4,$0);}}}if($0.getBubbles()&&!$0.getPropagationStopped()&&typeof (this.getParent)==$[37]){var $6=this.getParent();if($6&&!$6.getDisposed()&&$6.getEnabled()){$6._dispatchEvent($0);}}}},destruct:function(){this._disposeObjectDeep($[1285],2);}});
25
qx.Class.define($[4],{extend:qx.core.Object,construct:function($0){arguments.callee.base.call(this);this.setType($0);},properties:{type:{_fast:true,setOnlyOnce:true},originalTarget:{_fast:true,setOnlyOnce:true},target:{_fast:true,setOnlyOnce:true},relatedTarget:{_fast:true,setOnlyOnce:true},currentTarget:{_fast:true},bubbles:{_fast:true,defaultValue:false,noCompute:true},propagationStopped:{_fast:true,defaultValue:true,noCompute:true},defaultPrevented:{_fast:true,defaultValue:false,noCompute:true}},members:{_autoDispose:false,preventDefault:function(){this.setDefaultPrevented(true);},stopPropagation:function(){this.setPropagationStopped(true);}},destruct:function(){this._disposeFields($[542],$[1490],$[699],$[1386]);}});
25
qx.Class.define($[4],{extend:qx.core.Object,construct:function($0){arguments.callee.base.call(this);this.setType($0);},properties:{type:{_fast:true,setOnlyOnce:true},originalTarget:{_fast:true,setOnlyOnce:true},target:{_fast:true,setOnlyOnce:true},relatedTarget:{_fast:true,setOnlyOnce:true},currentTarget:{_fast:true},bubbles:{_fast:true,defaultValue:false,noCompute:true},propagationStopped:{_fast:true,defaultValue:true,noCompute:true},defaultPrevented:{_fast:true,defaultValue:false,noCompute:true}},members:{_autoDispose:false,preventDefault:function(){this.setDefaultPrevented(true);},stopPropagation:function(){this.setPropagationStopped(true);}},destruct:function(){this._disposeFields($[542],$[1489],$[700],$[1387]);}});
26
qx.Class.define($[98],{extend:qx.event.type.Event,construct:function($0,$1){arguments.callee.base.call(this,$0);this.setData($1);},properties:{propagationStopped:{_fast:true,defaultValue:false},data:{_fast:true}},destruct:function(){this._disposeFields($[1083]);}});
26
qx.Class.define($[98],{extend:qx.event.type.Event,construct:function($0,$1){arguments.callee.base.call(this,$0);this.setData($1);},properties:{propagationStopped:{_fast:true,defaultValue:false},data:{_fast:true}},destruct:function(){this._disposeFields($[1083]);}});
27
qx.Class.define($[456],{extend:qx.event.type.Event,construct:function($0,$1,$2){arguments.callee.base.call(this,$0);this.setValue($1);this.setOldValue($2);},properties:{value:{_fast:true},oldValue:{_fast:true}},members:{getData:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[576]);return this.getValue();}},destruct:function(){this._disposeFields($[1480],$[1277]);}});
27
qx.Class.define($[457],{extend:qx.event.type.Event,construct:function($0,$1,$2){arguments.callee.base.call(this,$0);this.setValue($1);this.setOldValue($2);},properties:{value:{_fast:true},oldValue:{_fast:true}},members:{getData:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[576]);return this.getValue();}},destruct:function(){this._disposeFields($[1479],$[1276]);}});
28
qx.Class.define($[775],{extend:qx.core.Object,type:$[51],construct:function(){arguments.callee.base.call(this);},statics:{ACCEPT:1,DENY:2,NEUTRAL:3},members:{decide:function($0){throw new Error("decide is abstract");}}});
28
qx.Class.define($[776],{extend:qx.core.Object,type:$[51],construct:function(){arguments.callee.base.call(this);},statics:{ACCEPT:1,DENY:2,NEUTRAL:3},members:{decide:function($0){throw new Error("decide is abstract");}}});
29
qx.Class.define($[733],{extend:qx.log.Filter,construct:function(){arguments.callee.base.call(this);},properties:{enabled:{check:$[2],init:true},minLevel:{check:$[19],nullable:true}},members:{decide:function($0){var $1=qx.log.Filter;if(!this.getEnabled()){return $1.DENY;}else if(this.getMinLevel()==null){return $1.NEUTRAL;}else{return ($0.level>=this.getMinLevel())?$1.ACCEPT:$1.DENY;}}}});
29
qx.Class.define($[734],{extend:qx.log.Filter,construct:function(){arguments.callee.base.call(this);},properties:{enabled:{check:$[2],init:true},minLevel:{check:$[19],nullable:true}},members:{decide:function($0){var $1=qx.log.Filter;if(!this.getEnabled()){return $1.DENY;}else if(this.getMinLevel()==null){return $1.NEUTRAL;}else{return ($0.level>=this.getMinLevel())?$1.ACCEPT:$1.DENY;}}}});
30
qx.Class.define($[1294],{extend:qx.core.Object,type:$[51],construct:function(){arguments.callee.base.call(this);},members:{addFilter:function($0){if(this._filterArr==null){this._filterArr=[];}this._filterArr.push($0);},clearFilters:function(){this._filterArr=null;},getHeadFilter:function(){return (this._filterArr==null||this._filterArr.length==0)?null:this._filterArr[0];},_getDefaultFilter:function(){var $0=this.getHeadFilter();if(!($0 instanceof qx.log.DefaultFilter)){this.clearFilters();$0=new qx.log.DefaultFilter();this.addFilter($0);}return $0;},setEnabled:function($0){this._getDefaultFilter().setEnabled($0);},setMinLevel:function($0){this._getDefaultFilter().setMinLevel($0);},decideLogEvent:function($0){var $1=qx.log.Filter.NEUTRAL;if(this._filterArr!=null){for(var $2=0;$2<this._filterArr.length;$2++){var $3=this._filterArr[$2].decide($0);if($3!=$1){return $3;}}}return $1;},handleLogEvent:function($0){throw new Error("handleLogEvent is abstract");}},destruct:function(){this._disposeFields($[1098]);}});
30
qx.Class.define($[1292],{extend:qx.core.Object,type:$[51],construct:function(){arguments.callee.base.call(this);},members:{addFilter:function($0){if(this._filterArr==null){this._filterArr=[];}this._filterArr.push($0);},clearFilters:function(){this._filterArr=null;},getHeadFilter:function(){return (this._filterArr==null||this._filterArr.length==0)?null:this._filterArr[0];},_getDefaultFilter:function(){var $0=this.getHeadFilter();if(!($0 instanceof qx.log.DefaultFilter)){this.clearFilters();$0=new qx.log.DefaultFilter();this.addFilter($0);}return $0;},setEnabled:function($0){this._getDefaultFilter().setEnabled($0);},setMinLevel:function($0){this._getDefaultFilter().setMinLevel($0);},decideLogEvent:function($0){var $1=qx.log.Filter.NEUTRAL;if(this._filterArr!=null){for(var $2=0;$2<this._filterArr.length;$2++){var $3=this._filterArr[$2].decide($0);if($3!=$1){return $3;}}}return $1;},handleLogEvent:function($0){throw new Error("handleLogEvent is abstract");}},destruct:function(){this._disposeFields($[1098]);}});
31
qx.Class.define($[1772],{extend:qx.log.LogEventProcessor,type:$[51],construct:function(){arguments.callee.base.call(this);},properties:{useLongFormat:{check:$[2],init:true}},members:{handleLogEvent:function($0){if(this.decideLogEvent($0)!=qx.log.Filter.DENY){this.appendLogEvent($0);}},appendLogEvent:function($0){throw new Error("appendLogEvent is abstract");},formatLogEvent:function($0){var $1=qx.log.Logger;var $2=$[0];var $3=new String(new Date().getTime()-qx.core.Bootstrap.LOADSTART);while($3.length<6){$3=$[41]+$3;}$2+=$3;if(this.getUseLongFormat()){switch($0.level){case $1.LEVEL_DEBUG:$2+=$[644];break;case $1.LEVEL_INFO:$2+=$[1497];break;case $1.LEVEL_WARN:$2+=$[640];break;case $1.LEVEL_ERROR:$2+=$[1601];break;case $1.LEVEL_FATAL:$2+=$[1667];break;}}else{$2+=$[234];}var $4=$[0];for(var $5=0;$5<$0.indent;$5++){$4+=$[275];}$2+=$4;if(this.getUseLongFormat()){$2+=$0.logger.getName();if($0.instanceId!=null){$2+=$[511]+$0.instanceId+$[115];}$2+=$[234];}if(typeof $0.message==$[8]){$2+=$0.message;}else{var $6=$0.message;if($6==null){$2+=$[1234];}else{$2+=$[1121]+$6+$[1591];var $7=new Array();try{for(var $8 in $6){$7.push($8);}}catch(exc){$2+=$4+$[1014]+exc+$[422];}$7.sort();for(var $5=0;$5<$7.length;$5++){try{$2+=$4+$[275]+$7[$5]+$[197]+$6[$7[$5]]+$[180];}catch(exc){$2+=$4+$[275]+$7[$5]+$[1236]+exc+$[422];}}$2+=$4+$[1680];}}if($0.throwable!=null){var $9=$0.throwable;if($9.name==null){$2+=$[234]+$9;}else{$2+=$[234]+$9.name;}if($9.message!=null){$2+=$[581]+$9.message;}if($9.number!=null){$2+=$[956]+$9.number+$[145];}var $a=qx.dev.StackTrace.getStackTraceFromError($9);}if($0.trace){var $a=$0.trace;}if($a&&$a.length>0){$2+=$[180];for(var $5=0;$5<$a.length;$5++){$2+=$[855]+$a[$5]+$[180];}}return $2;}}});
31
qx.Class.define($[1772],{extend:qx.log.LogEventProcessor,type:$[51],construct:function(){arguments.callee.base.call(this);},properties:{useLongFormat:{check:$[2],init:true}},members:{handleLogEvent:function($0){if(this.decideLogEvent($0)!=qx.log.Filter.DENY){this.appendLogEvent($0);}},appendLogEvent:function($0){throw new Error("appendLogEvent is abstract");},formatLogEvent:function($0){var $1=qx.log.Logger;var $2=$[0];var $3=new String(new Date().getTime()-qx.core.Bootstrap.LOADSTART);while($3.length<6){$3=$[41]+$3;}$2+=$3;if(this.getUseLongFormat()){switch($0.level){case $1.LEVEL_DEBUG:$2+=$[644];break;case $1.LEVEL_INFO:$2+=$[1496];break;case $1.LEVEL_WARN:$2+=$[640];break;case $1.LEVEL_ERROR:$2+=$[1600];break;case $1.LEVEL_FATAL:$2+=$[1666];break;}}else{$2+=$[234];}var $4=$[0];for(var $5=0;$5<$0.indent;$5++){$4+=$[275];}$2+=$4;if(this.getUseLongFormat()){$2+=$0.logger.getName();if($0.instanceId!=null){$2+=$[512]+$0.instanceId+$[115];}$2+=$[234];}if(typeof $0.message==$[8]){$2+=$0.message;}else{var $6=$0.message;if($6==null){$2+=$[1233];}else{$2+=$[1120]+$6+$[1590];var $7=new Array();try{for(var $8 in $6){$7.push($8);}}catch(exc){$2+=$4+$[1013]+exc+$[423];}$7.sort();for(var $5=0;$5<$7.length;$5++){try{$2+=$4+$[275]+$7[$5]+$[197]+$6[$7[$5]]+$[180];}catch(exc){$2+=$4+$[275]+$7[$5]+$[1235]+exc+$[423];}}$2+=$4+$[1679];}}if($0.throwable!=null){var $9=$0.throwable;if($9.name==null){$2+=$[234]+$9;}else{$2+=$[234]+$9.name;}if($9.message!=null){$2+=$[581]+$9.message;}if($9.number!=null){$2+=$[955]+$9.number+$[145];}var $a=qx.dev.StackTrace.getStackTraceFromError($9);}if($0.trace){var $a=$0.trace;}if($a&&$a.length>0){$2+=$[180];for(var $5=0;$5<$a.length;$5++){$2+=$[856]+$a[$5]+$[180];}}return $2;}}});
32
qx.Class.define($[619],{extend:qx.log.appender.Abstract,construct:function($0){arguments.callee.base.call(this);this._id=qx.log.appender.Window.register(this);this._name=$0;if(this._name==null){var $1=window.location.href;var $2=0;for(var $3=0;$3<$1.length;$3++){$2=($2+$1.charCodeAt($3))%10000000;}this._name=$[1426]+$2;}this._errorsPreventingAutoCloseCount=0;this._divDataSets=[];this._filterTextWords=[];this._filterText=$[0];},statics:{_nextId:1,_registeredAppenders:{},register:function($0){var $1=qx.log.appender.Window;var $2=$1._nextId++;$1._registeredAppenders[$2]=$0;return $2;},getAppender:function($0){return qx.log.appender.Window._registeredAppenders[$0];}},properties:{maxMessages:{check:$[5],init:500},popUnder:{check:$[2],init:false},autoCloseWithErrors:{check:$[2],init:true,apply:$[1220]},windowWidth:{check:$[5],init:600},windowHeight:{check:$[5],init:350},windowLeft:{check:$[5],nullable:true},windowTop:{check:$[5],nullable:true}},members:{openWindow:function(){if(this._inLogWindowCallback){return;}this._inLogWindowCallback=true;if(this._logWindow&&!this._logWindow.closed){return ;}var $0=this.getWindowWidth();var $1=this.getWindowHeight();var $2=this.getWindowLeft();if($2===null){$2=window.screen.width-$0;}var $3=this.getWindowTop();if($3===null){$3=window.screen.height-$1;}var $4=$[1059]+$[1391]+$0+$[870]+$1+$[1425]+$2+$[1411]+$3;this._logWindow=window.open($[0],this._name,$4);qx.client.Timer.once(this._openWindowCallback,this,200);},_openWindowCallback:function(){delete this._inLogWindowCallback;if(!this._logWindow||this._logWindow.closed){if(this._popupBlockerWarning){return;}alert("Could not open log window. Please disable your popup blocker!");this._popupBlockerWarning=true;return;}this._popupBlockerWarning=false;if(this.getPopUnder()){this._logWindow.blur();window.focus();}var $0=this._logWindow.document;var $1=qx.core.Variant.isSet($[1],$[13])?$[1091]:$[520];$0.open();$0.write($[1235]+this._name+$[1320]+$[784]+this._id+$[672]+$[1797]+$[563]+$[1446]+$[540]+$[1307]+$[1598]+$[1197]+$[840]+$1+$[788]+$[610]+$[555]+this._filterText+$[708]+$[377]+$[729]+$[1767]+$[377]+$[1703]);$0.close();this._logElem=$0.getElementById($[341]);this._markerBtn=$0.getElementById($[1643]);this._filterInput=$0.getElementById($[144]);this._logLinesDiv=$0.getElementById($[772]);var $2=this;this._markerBtn.onclick=function(){$2._showMessageInLog($[696]);};this._filterInput.onkeyup=function(){$2.setFilterText($2._filterInput.value);};if(this._logEventQueue!=null){for(var $3=0;$3<this._logEventQueue.length;$3++){this.appendLogEvent(this._logEventQueue[$3]);}this._logEventQueue.length=0;}},closeWindow:function(){if(this._logWindow!=null){this._logWindow.close();this._logWindow=null;this._logElem=null;}},_autoCloseWindow:function(){if(this.getAutoCloseWithErrors()||this._errorsPreventingAutoCloseCount==0){this.closeWindow();}else{this._showMessageInLog($[980]+this._errorsPreventingAutoCloseCount+$[828]);}},_showMessageInLog:function($0){var $1={message:$0,isDummyEventForMessage:true};this.appendLogEvent($1);},appendLogEvent:function($0){if(!this._logWindow||this._logWindow.closed){if(!this._logEventQueue){this._logEventQueue=[];}this._logEventQueue.push($0);this.openWindow();}else if(this._logElem==null){this._logEventQueue.push($0);}else{var $1=this._logWindow.document.createElement($[67]);if($0.level>=qx.log.Logger.LEVEL_ERROR){$1.style.backgroundColor=$[1545];if(!this.getAutoCloseWithErrors()){this._errorsPreventingAutoCloseCount+=1;}}else if($0.level==qx.log.Logger.LEVEL_DEBUG){$1.style.color=$[682];}var $2;if($0.isDummyEventForMessage){$2=$0.message;}else{$2=qx.html.String.fromText(this.formatLogEvent($0));}$1.innerHTML=$2;this._logElem.appendChild($1);var $3={txt:$2.toUpperCase(),elem:$1};this._divDataSets.push($3);this._setDivVisibility($3);while(this._logElem.childNodes.length>this.getMaxMessages()){this._logElem.removeChild(this._logElem.firstChild);if(this._removedMessageCount==null){this._removedMessageCount=1;}else{this._removedMessageCount++;}}if(this._removedMessageCount!=null){this._logElem.firstChild.innerHTML=$[316]+this._removedMessageCount+$[457];}this._logLinesDiv.scrollTop=this._logLinesDiv.scrollHeight;}},setFilterText:function($0){if($0==null){$0=$[0];}this._filterText=$0;$0=$0.toUpperCase();this._filterTextWords=$0.split($[83]);for(var $1=0;$1<this._divDataSets.length;$1++){this._setDivVisibility(this._divDataSets[$1]);}},_setDivVisibility:function($0){var $1=true;for(var $2=0;$1&&($2<this._filterTextWords.length);$2++){$1=$0.txt.indexOf(this._filterTextWords[$2])>=0;}$0.elem.style[$[158]]=($1?$[0]:$[7]);},_applyAutoCloseWithErrors:function($0,$1){if(!$0&&$1){this._errorsPreventingAutoCloseCount=0;this._showMessageInLog($[685]);}else if($0&&!$1){this._showMessageInLog($[736]+this._errorsPreventingAutoCloseCount+$[1180]);}}},destruct:function(){try{if(this._markerBtn){this._markerBtn.onclick=null;}if(this._filterInput){this._filterInput.onkeyup=null;}}catch(ex){}this._autoCloseWindow();this._disposeFields($[940],$[1594],$[1682],$[1272],$[1424],$[1184]);}});
32
qx.Class.define($[619],{extend:qx.log.appender.Abstract,construct:function($0){arguments.callee.base.call(this);this._id=qx.log.appender.Window.register(this);this._name=$0;if(this._name==null){var $1=window.location.href;var $2=0;for(var $3=0;$3<$1.length;$3++){$2=($2+$1.charCodeAt($3))%10000000;}this._name=$[668]+$2;}this._errorsPreventingAutoCloseCount=0;this._divDataSets=[];this._filterTextWords=[];this._filterText=$[0];},statics:{_nextId:1,_registeredAppenders:{},register:function($0){var $1=qx.log.appender.Window;var $2=$1._nextId++;$1._registeredAppenders[$2]=$0;return $2;},getAppender:function($0){return qx.log.appender.Window._registeredAppenders[$0];}},properties:{maxMessages:{check:$[5],init:500},popUnder:{check:$[2],init:false},autoCloseWithErrors:{check:$[2],init:true,apply:$[1219]},windowWidth:{check:$[5],init:600},windowHeight:{check:$[5],init:350},windowLeft:{check:$[5],nullable:true},windowTop:{check:$[5],nullable:true}},members:{openWindow:function(){if(this._inLogWindowCallback){return;}this._inLogWindowCallback=true;if(this._logWindow&&!this._logWindow.closed){return ;}var $0=this.getWindowWidth();var $1=this.getWindowHeight();var $2=this.getWindowLeft();if($2===null){$2=window.screen.width-$0;}var $3=this.getWindowTop();if($3===null){$3=window.screen.height-$1;}var $4=$[1059]+$[1392]+$0+$[870]+$1+$[1426]+$2+$[1412]+$3;this._logWindow=window.open($[0],this._name,$4);qx.client.Timer.once(this._openWindowCallback,this,200);},_openWindowCallback:function(){delete this._inLogWindowCallback;if(!this._logWindow||this._logWindow.closed){if(this._popupBlockerWarning){return;}alert("Could not open log window. Please disable your popup blocker!");this._popupBlockerWarning=true;return;}this._popupBlockerWarning=false;if(this.getPopUnder()){this._logWindow.blur();window.focus();}var $0=this._logWindow.document;var $1=qx.core.Variant.isSet($[1],$[13])?$[1091]:$[521];$0.open();$0.write($[1234]+this._name+$[1319]+$[785]+this._id+$[673]+$[1797]+$[563]+$[1445]+$[540]+$[1306]+$[1597]+$[1196]+$[841]+$1+$[789]+$[610]+$[555]+this._filterText+$[709]+$[376]+$[730]+$[1767]+$[376]+$[1703]);$0.close();this._logElem=$0.getElementById($[340]);this._markerBtn=$0.getElementById($[1642]);this._filterInput=$0.getElementById($[144]);this._logLinesDiv=$0.getElementById($[773]);var $2=this;this._markerBtn.onclick=function(){$2._showMessageInLog($[697]);};this._filterInput.onkeyup=function(){$2.setFilterText($2._filterInput.value);};if(this._logEventQueue!=null){for(var $3=0;$3<this._logEventQueue.length;$3++){this.appendLogEvent(this._logEventQueue[$3]);}this._logEventQueue.length=0;}},closeWindow:function(){if(this._logWindow!=null){this._logWindow.close();this._logWindow=null;this._logElem=null;}},_autoCloseWindow:function(){if(this.getAutoCloseWithErrors()||this._errorsPreventingAutoCloseCount==0){this.closeWindow();}else{this._showMessageInLog($[979]+this._errorsPreventingAutoCloseCount+$[829]);}},_showMessageInLog:function($0){var $1={message:$0,isDummyEventForMessage:true};this.appendLogEvent($1);},appendLogEvent:function($0){if(!this._logWindow||this._logWindow.closed){if(!this._logEventQueue){this._logEventQueue=[];}this._logEventQueue.push($0);this.openWindow();}else if(this._logElem==null){this._logEventQueue.push($0);}else{var $1=this._logWindow.document.createElement($[67]);if($0.level>=qx.log.Logger.LEVEL_ERROR){$1.style.backgroundColor=$[1545];if(!this.getAutoCloseWithErrors()){this._errorsPreventingAutoCloseCount+=1;}}else if($0.level==qx.log.Logger.LEVEL_DEBUG){$1.style.color=$[683];}var $2;if($0.isDummyEventForMessage){$2=$0.message;}else{$2=qx.html.String.fromText(this.formatLogEvent($0));}$1.innerHTML=$2;this._logElem.appendChild($1);var $3={txt:$2.toUpperCase(),elem:$1};this._divDataSets.push($3);this._setDivVisibility($3);while(this._logElem.childNodes.length>this.getMaxMessages()){this._logElem.removeChild(this._logElem.firstChild);if(this._removedMessageCount==null){this._removedMessageCount=1;}else{this._removedMessageCount++;}}if(this._removedMessageCount!=null){this._logElem.firstChild.innerHTML=$[316]+this._removedMessageCount+$[458];}this._logLinesDiv.scrollTop=this._logLinesDiv.scrollHeight;}},setFilterText:function($0){if($0==null){$0=$[0];}this._filterText=$0;$0=$0.toUpperCase();this._filterTextWords=$0.split($[83]);for(var $1=0;$1<this._divDataSets.length;$1++){this._setDivVisibility(this._divDataSets[$1]);}},_setDivVisibility:function($0){var $1=true;for(var $2=0;$1&&($2<this._filterTextWords.length);$2++){$1=$0.txt.indexOf(this._filterTextWords[$2])>=0;}$0.elem.style[$[158]]=($1?$[0]:$[7]);},_applyAutoCloseWithErrors:function($0,$1){if(!$0&&$1){this._errorsPreventingAutoCloseCount=0;this._showMessageInLog($[686]);}else if($0&&!$1){this._showMessageInLog($[737]+this._errorsPreventingAutoCloseCount+$[1179]);}}},destruct:function(){try{if(this._markerBtn){this._markerBtn.onclick=null;}if(this._filterInput){this._filterInput.onkeyup=null;}}catch(ex){}this._autoCloseWindow();this._disposeFields($[939],$[1593],$[1681],$[1271],$[1425],$[1183]);}});
33
qx.Class.define($[1604],{extend:qx.core.Target,construct:function($0){arguments.callee.base.call(this);this.setEnabled(false);if($0!=null){this.setInterval($0);}this.__oninterval=qx.lang.Function.bind(this._oninterval,this);},events:{"interval":$[4]},statics:{once:function($0,$1,$2){var $3=new qx.client.Timer($2);$3.addEventListener($[85],function($4){$3.dispose();$0.call($1,$4);$1=null;},$1);$3.start();}},properties:{enabled:{init:true,check:$[2],apply:$[302]},interval:{check:$[5],init:1000,apply:$[1049]}},members:{__intervalHandler:null,_applyInterval:function($0,$1){if(this.getEnabled()){this.restart();}},_applyEnabled:function($0,$1){if($1){window.clearInterval(this.__intervalHandler);this.__intervalHandler=null;}else if($0){this.__intervalHandler=window.setInterval(this.__oninterval,this.getInterval());}},start:function(){this.setEnabled(true);},startWith:function($0){this.setInterval($0);this.start();},stop:function(){this.setEnabled(false);},restart:function(){this.stop();this.start();},restartWith:function($0){this.stop();this.startWith($0);},_oninterval:function(){if(this.getEnabled()){this.createDispatchEvent($[85]);}}},destruct:function(){if(this.__intervalHandler){window.clearInterval(this.__intervalHandler);}this._disposeFields($[1381],$[1782]);}});
33
qx.Class.define($[1603],{extend:qx.core.Target,construct:function($0){arguments.callee.base.call(this);this.setEnabled(false);if($0!=null){this.setInterval($0);}this.__oninterval=qx.lang.Function.bind(this._oninterval,this);},events:{"interval":$[4]},statics:{once:function($0,$1,$2){var $3=new qx.client.Timer($2);$3.addEventListener($[86],function($4){$3.dispose();$0.call($1,$4);$1=null;},$1);$3.start();}},properties:{enabled:{init:true,check:$[2],apply:$[302]},interval:{check:$[5],init:1000,apply:$[1048]}},members:{__intervalHandler:null,_applyInterval:function($0,$1){if(this.getEnabled()){this.restart();}},_applyEnabled:function($0,$1){if($1){window.clearInterval(this.__intervalHandler);this.__intervalHandler=null;}else if($0){this.__intervalHandler=window.setInterval(this.__oninterval,this.getInterval());}},start:function(){this.setEnabled(true);},startWith:function($0){this.setInterval($0);this.start();},stop:function(){this.setEnabled(false);},restart:function(){this.stop();this.start();},restartWith:function($0){this.stop();this.startWith($0);},_oninterval:function(){if(this.getEnabled()){this.createDispatchEvent($[86]);}}},destruct:function(){if(this.__intervalHandler){window.clearInterval(this.__intervalHandler);}this._disposeFields($[1382],$[1782]);}});
34
qx.Class.define($[1384],{extend:qx.log.appender.Abstract,construct:function(){arguments.callee.base.call(this);},members:{appendLogEvent:function($0){if(typeof console!=$[407]){var $1=qx.log.Logger;var $2=this.formatLogEvent($0);switch($0.level){case $1.LEVEL_DEBUG:if(console.debug){console.debug($2);}break;case $1.LEVEL_INFO:if(console.info){console.info($2);}break;case $1.LEVEL_WARN:if(console.warn){console.warn($2);}break;default:if(console.error){console.error($2);}break;}if($0.level>=$1.LEVEL_WARN&&(!$0.throwable||!$0.throwable.stack)&&console.trace){console.trace();}}}}});
34
qx.Class.define($[1385],{extend:qx.log.appender.Abstract,construct:function(){arguments.callee.base.call(this);},members:{appendLogEvent:function($0){if(typeof console!=$[408]){var $1=qx.log.Logger;var $2=this.formatLogEvent($0);switch($0.level){case $1.LEVEL_DEBUG:if(console.debug){console.debug($2);}break;case $1.LEVEL_INFO:if(console.info){console.info($2);}break;case $1.LEVEL_WARN:if(console.warn){console.warn($2);}break;default:if(console.error){console.error($2);}break;}if($0.level>=$1.LEVEL_WARN&&(!$0.throwable||!$0.throwable.stack)&&console.trace){console.trace();}}}}});
35
qx.Class.define($[461],{extend:qx.log.appender.Abstract,construct:function(){arguments.callee.base.call(this);if(typeof console!=$[407]&&console.debug&&!console.emu){this._appender=new qx.log.appender.FireBug;}else{this._appender=new qx.log.appender.Window;}},members:{appendLogEvent:function($0){if(this._appender){return this._appender.appendLogEvent($0);}}},destruct:function(){this._disposeObjects($[1721]);}});
35
qx.Class.define($[462],{extend:qx.log.appender.Abstract,construct:function(){arguments.callee.base.call(this);if(typeof console!=$[408]&&console.debug&&!console.emu){this._appender=new qx.log.appender.FireBug;}else{this._appender=new qx.log.appender.Window;}},members:{appendLogEvent:function($0){if(this._appender){return this._appender.appendLogEvent($0);}}},destruct:function(){this._disposeObjects($[1721]);}});
36
qx.Class.define($[1012],{extend:qx.log.LogEventProcessor,construct:function($0,$1){arguments.callee.base.call(this);this._name=$0;this._parentLogger=$1;},statics:{deprecatedMethodWarning:function($0,$1){if(qx.core.Variant.isSet($[263],$[23])){var $2=qx.log.Logger.getClassLogger($0.self||this);var $3=qx.dev.StackTrace.getFunctionName($0);var $4=$0.self?$0.self.classname:$[360];$2.warn("The method '"+$3+"' of class '"+$4+"' is deprecated: "+$1||"Please consult the API documentation of this method for alternatives.");$2.printStackTrace();}},deprecatedClassWarning:function($0,$1){if(qx.core.Variant.isSet($[263],$[23])){var $2=qx.log.Logger.getClassLogger($0);var $3=$0.self?$0.self.classname:$[360];$2.warn("The method class '"+$3+"' is deprecated: "+$1||"Please consult the API documentation of this class for alternatives.");$2.printStackTrace();}},getClassLogger:function($0){var $1=$0._logger;if($1==null){var $2=$0.classname;var $3=$2.split($[24]);var $4=window;var $5=$[0];var $6=qx.log.Logger.ROOT_LOGGER;for(var $7=0;$7<$3.length-1;$7++){$4=$4[$3[$7]];$5+=(($7!=0)?$[24]:$[0])+$3[$7];if($4._logger==null){$4._logger=new qx.log.Logger($5,$6);}$6=$4._logger;}$1=new qx.log.Logger($2,$6);$0._logger=$1;}return $1;},_indent:0,LEVEL_ALL:0,LEVEL_DEBUG:200,LEVEL_INFO:500,LEVEL_WARN:600,LEVEL_ERROR:700,LEVEL_FATAL:800,LEVEL_OFF:1000,ROOT_LOGGER:null},members:{getName:function(){return this._name;},getParentLogger:function(){return this._parentLogger;},indent:function(){qx.log.Logger._indent++;},unindent:function(){qx.log.Logger._indent--;},addAppender:function($0){if(this._appenderArr==null){this._appenderArr=[];}this._appenderArr.push($0);},removeAppender:function($0){if(this._appenderArr!=null){this._appenderArr.remove($0);}},removeAllAppenders:function(){this._appenderArr=null;},handleLogEvent:function($0){var $1=qx.log.Filter;var $2=$1.NEUTRAL;var $3=this;while($2==$1.NEUTRAL&&$3!=null){$2=$3.decideLogEvent($0);$3=$3.getParentLogger();}if($2!=$1.DENY){this.appendLogEvent($0);}},appendLogEvent:function($0){if(this._appenderArr!=null&&this._appenderArr.length!=0){for(var $1=0;$1<this._appenderArr.length;$1++){this._appenderArr[$1].handleLogEvent($0);}}else if(this._parentLogger!=null){this._parentLogger.appendLogEvent($0);}},log:function($0,$1,$2,$3,$4){var $5={logger:this,level:$0,message:$1,throwable:$3,trace:$4,indent:qx.log.Logger._indent,instanceId:$2};this.handleLogEvent($5);},debug:function($0,$1,$2){this.log(qx.log.Logger.LEVEL_DEBUG,$0,$1,$2);},info:function($0,$1,$2){this.log(qx.log.Logger.LEVEL_INFO,$0,$1,$2);},warn:function($0,$1,$2){this.log(qx.log.Logger.LEVEL_WARN,$0,$1,$2);},error:function($0,$1,$2){this.log(qx.log.Logger.LEVEL_ERROR,$0,$1,$2);},fatal:function($0,$1,$2){this.log(qx.log.Logger.LEVEL_FATAL,$0,$1,$2);},measureReset:function(){if(this._totalMeasureTime!=null){this.debug("Measure reset. Total measure time: "+this._totalMeasureTime+" ms");}this._lastMeasureTime=null;this._totalMeasureTime=null;},measure:function($0,$1,$2){if(this._lastMeasureTime==null){$0=$[615]+$0;}else{var $3=new Date().getTime()-this._lastMeasureTime;if(this._totalMeasureTime==null){this._totalMeasureTime=0;}this._totalMeasureTime+=$3;$0=$[830]+$3+$[1025]+$0;}this.debug($0,$1,$2);this._lastMeasureTime=new Date().getTime();},printStackTrace:function(){var $0=qx.dev.StackTrace.getStackTrace();qx.lang.Array.removeAt($0,0);this.log(qx.log.Logger.LEVEL_DEBUG,$[1355],$[0],null,$0);}},settings:{"qx.logAppender":$[461],"qx.minLogLevel":200},defer:function($0){$0.ROOT_LOGGER=new $0("root",null);$0.ROOT_LOGGER.setMinLevel(qx.core.Setting.get($[953]));$0.ROOT_LOGGER.addAppender(new (qx.Class.getByName(qx.core.Setting.get($[603]))));},destruct:function(){this._disposeFields($[1306],$[1054]);}});
36
qx.Class.define($[1011],{extend:qx.log.LogEventProcessor,construct:function($0,$1){arguments.callee.base.call(this);this._name=$0;this._parentLogger=$1;},statics:{deprecatedMethodWarning:function($0,$1){if(qx.core.Variant.isSet($[263],$[23])){var $2=qx.log.Logger.getClassLogger($0.self||this);var $3=qx.dev.StackTrace.getFunctionName($0);var $4=$0.self?$0.self.classname:$[359];$2.warn("The method '"+$3+"' of class '"+$4+"' is deprecated: "+$1||"Please consult the API documentation of this method for alternatives.");$2.printStackTrace();}},deprecatedClassWarning:function($0,$1){if(qx.core.Variant.isSet($[263],$[23])){var $2=qx.log.Logger.getClassLogger($0);var $3=$0.self?$0.self.classname:$[359];$2.warn("The method class '"+$3+"' is deprecated: "+$1||"Please consult the API documentation of this class for alternatives.");$2.printStackTrace();}},getClassLogger:function($0){var $1=$0._logger;if($1==null){var $2=$0.classname;var $3=$2.split($[24]);var $4=window;var $5=$[0];var $6=qx.log.Logger.ROOT_LOGGER;for(var $7=0;$7<$3.length-1;$7++){$4=$4[$3[$7]];$5+=(($7!=0)?$[24]:$[0])+$3[$7];if($4._logger==null){$4._logger=new qx.log.Logger($5,$6);}$6=$4._logger;}$1=new qx.log.Logger($2,$6);$0._logger=$1;}return $1;},_indent:0,LEVEL_ALL:0,LEVEL_DEBUG:200,LEVEL_INFO:500,LEVEL_WARN:600,LEVEL_ERROR:700,LEVEL_FATAL:800,LEVEL_OFF:1000,ROOT_LOGGER:null},members:{getName:function(){return this._name;},getParentLogger:function(){return this._parentLogger;},indent:function(){qx.log.Logger._indent++;},unindent:function(){qx.log.Logger._indent--;},addAppender:function($0){if(this._appenderArr==null){this._appenderArr=[];}this._appenderArr.push($0);},removeAppender:function($0){if(this._appenderArr!=null){this._appenderArr.remove($0);}},removeAllAppenders:function(){this._appenderArr=null;},handleLogEvent:function($0){var $1=qx.log.Filter;var $2=$1.NEUTRAL;var $3=this;while($2==$1.NEUTRAL&&$3!=null){$2=$3.decideLogEvent($0);$3=$3.getParentLogger();}if($2!=$1.DENY){this.appendLogEvent($0);}},appendLogEvent:function($0){if(this._appenderArr!=null&&this._appenderArr.length!=0){for(var $1=0;$1<this._appenderArr.length;$1++){this._appenderArr[$1].handleLogEvent($0);}}else if(this._parentLogger!=null){this._parentLogger.appendLogEvent($0);}},log:function($0,$1,$2,$3,$4){var $5={logger:this,level:$0,message:$1,throwable:$3,trace:$4,indent:qx.log.Logger._indent,instanceId:$2};this.handleLogEvent($5);},debug:function($0,$1,$2){this.log(qx.log.Logger.LEVEL_DEBUG,$0,$1,$2);},info:function($0,$1,$2){this.log(qx.log.Logger.LEVEL_INFO,$0,$1,$2);},warn:function($0,$1,$2){this.log(qx.log.Logger.LEVEL_WARN,$0,$1,$2);},error:function($0,$1,$2){this.log(qx.log.Logger.LEVEL_ERROR,$0,$1,$2);},fatal:function($0,$1,$2){this.log(qx.log.Logger.LEVEL_FATAL,$0,$1,$2);},measureReset:function(){if(this._totalMeasureTime!=null){this.debug("Measure reset. Total measure time: "+this._totalMeasureTime+" ms");}this._lastMeasureTime=null;this._totalMeasureTime=null;},measure:function($0,$1,$2){if(this._lastMeasureTime==null){$0=$[615]+$0;}else{var $3=new Date().getTime()-this._lastMeasureTime;if(this._totalMeasureTime==null){this._totalMeasureTime=0;}this._totalMeasureTime+=$3;$0=$[831]+$3+$[1024]+$0;}this.debug($0,$1,$2);this._lastMeasureTime=new Date().getTime();},printStackTrace:function(){var $0=qx.dev.StackTrace.getStackTrace();qx.lang.Array.removeAt($0,0);this.log(qx.log.Logger.LEVEL_DEBUG,$[1356],$[0],null,$0);}},settings:{"qx.logAppender":$[462],"qx.minLogLevel":200},defer:function($0){$0.ROOT_LOGGER=new $0("root",null);$0.ROOT_LOGGER.setMinLevel(qx.core.Setting.get($[952]));$0.ROOT_LOGGER.addAppender(new (qx.Class.getByName(qx.core.Setting.get($[603]))));},destruct:function(){this._disposeFields($[1305],$[1054]);}});
37
qx.Class.define($[1608],{statics:{getStackTrace:qx.core.Variant.select($[1],{"gecko":function(){try{throw new Error();}catch(e){var $0=this.getStackTraceFromError(e);qx.lang.Array.removeAt($0,0);var $1=this.getStackTraceFromCaller(arguments);var $2=$1.length>$0.length?$1:$0;for(var $3=0;$3<Math.min($1.length,$0.length);$3++){var $4=$1[$3];if($4.indexOf($[1202])>=0){continue;}var $5=$4.split($[47]);if($5.length!=2){continue;}var $6=$5[0];var $7=$5[1];var $8=$0[$3];var $9=$8.split($[47]);var $a=$9[0];var $b=$9[1];if(qx.Class.getByName($a)){var $c=$a;}else{$c=$6;}var $d=$c+$[47];if($7){$d+=$7+$[47];}$d+=$b;$2[$3]=$d;}return $2;}},"mshtml|webkit":function(){return this.getStackTraceFromCaller(arguments);},"opera":function(){var $0;try{$0.bar();}catch(e){var $1=this.getStackTraceFromError(e);qx.lang.Array.removeAt($1,0);return $1;}return [];}}),getStackTraceFromCaller:qx.core.Variant.select($[1],{"opera":function($0){return [];},"default":function($0){var $1=[];var $2=qx.lang.Function.getCaller($0);var $3={};while($2){var $4=this.getFunctionName($2);$1.push($4);try{$2=$2.caller;}catch(e){break;}if(!$2){break;}var $5=qx.core.Object.toHashCode($2);if($3[$5]){$1.push($[1380]);break;}$3[$5]=$2;}return $1;}}),getStackTraceFromError:qx.core.Variant.select($[1],{"gecko":function($0){if(!$0.stack){return [];}var $1=/@(.+):(\d+)$/gm;var $2;var $3=[];while(($2=$1.exec($0.stack))!=null){var $4=$2[1];var $5=$2[2];var $6=this.__fileNameToClassName($4);$3.push($6+$[47]+$5);}return $3;},"webkit":function($0){if($0.sourceURL&&$0.line){return [this.__fileNameToClassName($0.sourceURL)+$[47]+$0.line];}},"opera":function($0){if($0.message.indexOf("Backtrace:")<0){return [];}var $1=[];var $2=qx.lang.String.trim($0.message.split("Backtrace:")[1]);var $3=$2.split($[180]);for(var $4=0;$4<$3.length;$4++){var $5=$3[$4].match(/\s*Line ([0-9]+) of.* (\S.*)/);if($5&&$5.length>=2){var $6=$5[1];var $7=this.__fileNameToClassName($5[2]);$1.push($7+$[47]+$6);}}return $1;},"default":function(){return [];}}),getFunctionName:function($0){if($0.$$original){return $0.classname+$[701];}if($0.wrapper){return $0.wrapper.classname+$[479];}if($0.classname){return $0.classname+$[479];}if($0.mixin){for(var $1 in $0.mixin.$$members){if($0.mixin.$$members[$1]==$0){return $0.mixin.name+$[47]+$1;}}for(var $1 in $0.mixin){if($0.mixin[$1]==$0){return $0.mixin.name+$[47]+$1;}}}if($0.self){var $2=$0.self.constructor;if($2){for(var $1 in $2.prototype){if($2.prototype[$1]==$0){return $2.classname+$[47]+$1;}}for(var $1 in $2){if($2[$1]==$0){return $2.classname+$[47]+$1;}}}}var $3=$0.toString().match(/(function\s*\w*\(.*?\))/);if($3&&$3.length>=1&&$3[1]){return $3[1];}var $3=$0.toString().match(/(function\s*\(.*?\))/);if($3&&$3.length>=1&&$3[1]){return $[954]+$3[1];}return $[1622];},__fileNameToClassName:function($0){var $1=$[1285];var $2=$0.indexOf($1);var $3=($2==-1)?$0:$0.substring($2+$1.length).replace(/\//g,$[24]).replace(/\.js$/,$[0]);return $3;}}});
37
qx.Class.define($[1607],{statics:{getStackTrace:qx.core.Variant.select($[1],{"gecko":function(){try{throw new Error();}catch(e){var $0=this.getStackTraceFromError(e);qx.lang.Array.removeAt($0,0);var $1=this.getStackTraceFromCaller(arguments);var $2=$1.length>$0.length?$1:$0;for(var $3=0;$3<Math.min($1.length,$0.length);$3++){var $4=$1[$3];if($4.indexOf($[1201])>=0){continue;}var $5=$4.split($[47]);if($5.length!=2){continue;}var $6=$5[0];var $7=$5[1];var $8=$0[$3];var $9=$8.split($[47]);var $a=$9[0];var $b=$9[1];if(qx.Class.getByName($a)){var $c=$a;}else{$c=$6;}var $d=$c+$[47];if($7){$d+=$7+$[47];}$d+=$b;$2[$3]=$d;}return $2;}},"mshtml|webkit":function(){return this.getStackTraceFromCaller(arguments);},"opera":function(){var $0;try{$0.bar();}catch(e){var $1=this.getStackTraceFromError(e);qx.lang.Array.removeAt($1,0);return $1;}return [];}}),getStackTraceFromCaller:qx.core.Variant.select($[1],{"opera":function($0){return [];},"default":function($0){var $1=[];var $2=qx.lang.Function.getCaller($0);var $3={};while($2){var $4=this.getFunctionName($2);$1.push($4);try{$2=$2.caller;}catch(e){break;}if(!$2){break;}var $5=qx.core.Object.toHashCode($2);if($3[$5]){$1.push($[1381]);break;}$3[$5]=$2;}return $1;}}),getStackTraceFromError:qx.core.Variant.select($[1],{"gecko":function($0){if(!$0.stack){return [];}var $1=/@(.+):(\d+)$/gm;var $2;var $3=[];while(($2=$1.exec($0.stack))!=null){var $4=$2[1];var $5=$2[2];var $6=this.__fileNameToClassName($4);$3.push($6+$[47]+$5);}return $3;},"webkit":function($0){if($0.sourceURL&&$0.line){return [this.__fileNameToClassName($0.sourceURL)+$[47]+$0.line];}},"opera":function($0){if($0.message.indexOf("Backtrace:")<0){return [];}var $1=[];var $2=qx.lang.String.trim($0.message.split("Backtrace:")[1]);var $3=$2.split($[180]);for(var $4=0;$4<$3.length;$4++){var $5=$3[$4].match(/\s*Line ([0-9]+) of.* (\S.*)/);if($5&&$5.length>=2){var $6=$5[1];var $7=this.__fileNameToClassName($5[2]);$1.push($7+$[47]+$6);}}return $1;},"default":function(){return [];}}),getFunctionName:function($0){if($0.$$original){return $0.classname+$[702];}if($0.wrapper){return $0.wrapper.classname+$[480];}if($0.classname){return $0.classname+$[480];}if($0.mixin){for(var $1 in $0.mixin.$$members){if($0.mixin.$$members[$1]==$0){return $0.mixin.name+$[47]+$1;}}for(var $1 in $0.mixin){if($0.mixin[$1]==$0){return $0.mixin.name+$[47]+$1;}}}if($0.self){var $2=$0.self.constructor;if($2){for(var $1 in $2.prototype){if($2.prototype[$1]==$0){return $2.classname+$[47]+$1;}}for(var $1 in $2){if($2[$1]==$0){return $2.classname+$[47]+$1;}}}}var $3=$0.toString().match(/(function\s*\w*\(.*?\))/);if($3&&$3.length>=1&&$3[1]){return $3[1];}var $3=$0.toString().match(/(function\s*\(.*?\))/);if($3&&$3.length>=1&&$3[1]){return $[953]+$3[1];}return $[1621];},__fileNameToClassName:function($0){var $1=$[1284];var $2=$0.indexOf($1);var $3=($2==-1)?$0:$0.substring($2+$1.length).replace(/\//g,$[24]).replace(/\.js$/,$[0]);return $3;}}});
38
qx.Class.define($[1592],{statics:{escape:function($0){return qx.dom.String.escapeEntities($0,qx.html.Entity.FROM_CHARCODE);},unescape:function($0){return qx.dom.String.unescapeEntities($0,qx.html.Entity.TO_CHARCODE);},fromText:function($0){return qx.html.String.escape($0).replace(/(  |\n)/g,function($1){var $2={"  ":$[600],"\n":$[484]};return $2[$1]||$1;});},toText:function($0){return qx.html.String.unescape($0.replace(/\s+|<([^>])+>/gi,function($1){if(/\s+/.test($1)){return $[83];}else if(/^<BR|^<br/gi.test($1)){return $[180];}else{return $[0];}}));}}});
38
qx.Class.define($[1591],{statics:{escape:function($0){return qx.dom.String.escapeEntities($0,qx.html.Entity.FROM_CHARCODE);},unescape:function($0){return qx.dom.String.unescapeEntities($0,qx.html.Entity.TO_CHARCODE);},fromText:function($0){return qx.html.String.escape($0).replace(/(  |\n)/g,function($1){var $2={"  ":$[600],"\n":$[484]};return $2[$1]||$1;});},toText:function($0){return qx.html.String.unescape($0.replace(/\s+|<([^>])+>/gi,function($1){if(/\s+/.test($1)){return $[83];}else if(/^<BR|^<br/gi.test($1)){return $[180];}else{return $[0];}}));}}});
39
qx.Class.define($[1167],{statics:{escapeEntities:qx.core.Variant.select($[1],{"mshtml":function($0,$1){var $2,$3=[];for(var $4=0,$5=$0.length;$4<$5;$4++){var $6=$0.charAt($4);var $7=$6.charCodeAt(0);if($1[$7]){$2=$[93]+$1[$7]+$[79];}else{if($7>0x7F){$2=$[434]+$7+$[79];}else{$2=$6;}}$3[$3.length]=$2;}return $3.join($[0]);},"default":function($0,$1){var $2,$3=$[0];for(var $4=0,$5=$0.length;$4<$5;$4++){var $6=$0.charAt($4);var $7=$6.charCodeAt(0);if($1[$7]){$2=$[93]+$1[$7]+$[79];}else{if($7>0x7F){$2=$[434]+$7+$[79];}else{$2=$6;}}$3+=$2;}return $3;}}),unescapeEntities:function($0,$1){return $0.replace(/&[#\w]+;/gi,function($2){var $3=$2;var $2=$2.substring(1,$2.length-1);var $4=$1[$2];if($4){$3=String.fromCharCode($4);}else{if($2.charAt(0)==$[848]){if($2.charAt(1).toUpperCase()==$[1035]){$4=$2.substring(2);if($4.match(/^[0-9A-Fa-f]+$/gi)){$3=String.fromCharCode(parseInt($[1022]+$4));}}else{$4=$2.substring(1);if($4.match(/^\d+$/gi)){$3=String.fromCharCode(parseInt($4));}}}}return $3;});},stripTags:function($0){return $0.replace(/<\/?[^>]+>/gi,$[0]);}}});
39
qx.Class.define($[1166],{statics:{escapeEntities:qx.core.Variant.select($[1],{"mshtml":function($0,$1){var $2,$3=[];for(var $4=0,$5=$0.length;$4<$5;$4++){var $6=$0.charAt($4);var $7=$6.charCodeAt(0);if($1[$7]){$2=$[93]+$1[$7]+$[79];}else{if($7>0x7F){$2=$[435]+$7+$[79];}else{$2=$6;}}$3[$3.length]=$2;}return $3.join($[0]);},"default":function($0,$1){var $2,$3=$[0];for(var $4=0,$5=$0.length;$4<$5;$4++){var $6=$0.charAt($4);var $7=$6.charCodeAt(0);if($1[$7]){$2=$[93]+$1[$7]+$[79];}else{if($7>0x7F){$2=$[435]+$7+$[79];}else{$2=$6;}}$3+=$2;}return $3;}}),unescapeEntities:function($0,$1){return $0.replace(/&[#\w]+;/gi,function($2){var $3=$2;var $2=$2.substring(1,$2.length-1);var $4=$1[$2];if($4){$3=String.fromCharCode($4);}else{if($2.charAt(0)==$[849]){if($2.charAt(1).toUpperCase()==$[1034]){$4=$2.substring(2);if($4.match(/^[0-9A-Fa-f]+$/gi)){$3=String.fromCharCode(parseInt($[1021]+$4));}}else{$4=$2.substring(1);if($4.match(/^\d+$/gi)){$3=String.fromCharCode(parseInt($4));}}}}return $3;});},stripTags:function($0){return $0.replace(/<\/?[^>]+>/gi,$[0]);}}});
40
qx.Class.define($[1200],{statics:{TO_CHARCODE:{"quot":34,"amp":38,"lt":60,"gt":62,"nbsp":160,"iexcl":161,"cent":162,"pound":163,"curren":164,"yen":165,"brvbar":166,"sect":167,"uml":168,"copy":169,"ordf":170,"laquo":171,"not":172,"shy":173,"reg":174,"macr":175,"deg":176,"plusmn":177,"sup2":178,"sup3":179,"acute":180,"micro":181,"para":182,"middot":183,"cedil":184,"sup1":185,"ordm":186,"raquo":187,"frac14":188,"frac12":189,"frac34":190,"iquest":191,"Agrave":192,"Aacute":193,"Acirc":194,"Atilde":195,"Auml":196,"Aring":197,"AElig":198,"Ccedil":199,"Egrave":200,"Eacute":201,"Ecirc":202,"Euml":203,"Igrave":204,"Iacute":205,"Icirc":206,"Iuml":207,"ETH":208,"Ntilde":209,"Ograve":210,"Oacute":211,"Ocirc":212,"Otilde":213,"Ouml":214,"times":215,"Oslash":216,"Ugrave":217,"Uacute":218,"Ucirc":219,"Uuml":220,"Yacute":221,"THORN":222,"szlig":223,"agrave":224,"aacute":225,"acirc":226,"atilde":227,"auml":228,"aring":229,"aelig":230,"ccedil":231,"egrave":232,"eacute":233,"ecirc":234,"euml":235,"igrave":236,"iacute":237,"icirc":238,"iuml":239,"eth":240,"ntilde":241,"ograve":242,"oacute":243,"ocirc":244,"otilde":245,"ouml":246,"divide":247,"oslash":248,"ugrave":249,"uacute":250,"ucirc":251,"uuml":252,"yacute":253,"thorn":254,"yuml":255,"fnof":402,"Alpha":913,"Beta":914,"Gamma":915,"Delta":916,"Epsilon":917,"Zeta":918,"Eta":919,"Theta":920,"Iota":921,"Kappa":922,"Lambda":923,"Mu":924,"Nu":925,"Xi":926,"Omicron":927,"Pi":928,"Rho":929,"Sigma":931,"Tau":932,"Upsilon":933,"Phi":934,"Chi":935,"Psi":936,"Omega":937,"alpha":945,"beta":946,"gamma":947,"delta":948,"epsilon":949,"zeta":950,"eta":951,"theta":952,"iota":953,"kappa":954,"lambda":955,"mu":956,"nu":957,"xi":958,"omicron":959,"pi":960,"rho":961,"sigmaf":962,"sigma":963,"tau":964,"upsilon":965,"phi":966,"chi":967,"psi":968,"omega":969,"thetasym":977,"upsih":978,"piv":982,"bull":8226,"hellip":8230,"prime":8242,"Prime":8243,"oline":8254,"frasl":8260,"weierp":8472,"image":8465,"real":8476,"trade":8482,"alefsym":8501,"larr":8592,"uarr":8593,"rarr":8594,"darr":8595,"harr":8596,"crarr":8629,"lArr":8656,"uArr":8657,"rArr":8658,"dArr":8659,"hArr":8660,"forall":8704,"part":8706,"exist":8707,"empty":8709,"nabla":8711,"isin":8712,"notin":8713,"ni":8715,"prod":8719,"sum":8721,"minus":8722,"lowast":8727,"radic":8730,"prop":8733,"infin":8734,"ang":8736,"and":8743,"or":8744,"cap":8745,"cup":8746,"int":8747,"there4":8756,"sim":8764,"cong":8773,"asymp":8776,"ne":8800,"equiv":8801,"le":8804,"ge":8805,"sub":8834,"sup":8835,"sube":8838,"supe":8839,"oplus":8853,"otimes":8855,"perp":8869,"sdot":8901,"lceil":8968,"rceil":8969,"lfloor":8970,"rfloor":8971,"lang":9001,"rang":9002,"loz":9674,"spades":9824,"clubs":9827,"hearts":9829,"diams":9830,"OElig":338,"oelig":339,"Scaron":352,"scaron":353,"Yuml":376,"circ":710,"tilde":732,"ensp":8194,"emsp":8195,"thinsp":8201,"zwnj":8204,"zwj":8205,"lrm":8206,"rlm":8207,"ndash":8211,"mdash":8212,"lsquo":8216,"rsquo":8217,"sbquo":8218,"ldquo":8220,"rdquo":8221,"bdquo":8222,"dagger":8224,"Dagger":8225,"permil":8240,"lsaquo":8249,"rsaquo":8250,"euro":8364}},defer:function($0,$1,$2){$0.FROM_CHARCODE=qx.lang.Object.invert($0.TO_CHARCODE);}});
40
qx.Class.define($[1199],{statics:{TO_CHARCODE:{"quot":34,"amp":38,"lt":60,"gt":62,"nbsp":160,"iexcl":161,"cent":162,"pound":163,"curren":164,"yen":165,"brvbar":166,"sect":167,"uml":168,"copy":169,"ordf":170,"laquo":171,"not":172,"shy":173,"reg":174,"macr":175,"deg":176,"plusmn":177,"sup2":178,"sup3":179,"acute":180,"micro":181,"para":182,"middot":183,"cedil":184,"sup1":185,"ordm":186,"raquo":187,"frac14":188,"frac12":189,"frac34":190,"iquest":191,"Agrave":192,"Aacute":193,"Acirc":194,"Atilde":195,"Auml":196,"Aring":197,"AElig":198,"Ccedil":199,"Egrave":200,"Eacute":201,"Ecirc":202,"Euml":203,"Igrave":204,"Iacute":205,"Icirc":206,"Iuml":207,"ETH":208,"Ntilde":209,"Ograve":210,"Oacute":211,"Ocirc":212,"Otilde":213,"Ouml":214,"times":215,"Oslash":216,"Ugrave":217,"Uacute":218,"Ucirc":219,"Uuml":220,"Yacute":221,"THORN":222,"szlig":223,"agrave":224,"aacute":225,"acirc":226,"atilde":227,"auml":228,"aring":229,"aelig":230,"ccedil":231,"egrave":232,"eacute":233,"ecirc":234,"euml":235,"igrave":236,"iacute":237,"icirc":238,"iuml":239,"eth":240,"ntilde":241,"ograve":242,"oacute":243,"ocirc":244,"otilde":245,"ouml":246,"divide":247,"oslash":248,"ugrave":249,"uacute":250,"ucirc":251,"uuml":252,"yacute":253,"thorn":254,"yuml":255,"fnof":402,"Alpha":913,"Beta":914,"Gamma":915,"Delta":916,"Epsilon":917,"Zeta":918,"Eta":919,"Theta":920,"Iota":921,"Kappa":922,"Lambda":923,"Mu":924,"Nu":925,"Xi":926,"Omicron":927,"Pi":928,"Rho":929,"Sigma":931,"Tau":932,"Upsilon":933,"Phi":934,"Chi":935,"Psi":936,"Omega":937,"alpha":945,"beta":946,"gamma":947,"delta":948,"epsilon":949,"zeta":950,"eta":951,"theta":952,"iota":953,"kappa":954,"lambda":955,"mu":956,"nu":957,"xi":958,"omicron":959,"pi":960,"rho":961,"sigmaf":962,"sigma":963,"tau":964,"upsilon":965,"phi":966,"chi":967,"psi":968,"omega":969,"thetasym":977,"upsih":978,"piv":982,"bull":8226,"hellip":8230,"prime":8242,"Prime":8243,"oline":8254,"frasl":8260,"weierp":8472,"image":8465,"real":8476,"trade":8482,"alefsym":8501,"larr":8592,"uarr":8593,"rarr":8594,"darr":8595,"harr":8596,"crarr":8629,"lArr":8656,"uArr":8657,"rArr":8658,"dArr":8659,"hArr":8660,"forall":8704,"part":8706,"exist":8707,"empty":8709,"nabla":8711,"isin":8712,"notin":8713,"ni":8715,"prod":8719,"sum":8721,"minus":8722,"lowast":8727,"radic":8730,"prop":8733,"infin":8734,"ang":8736,"and":8743,"or":8744,"cap":8745,"cup":8746,"int":8747,"there4":8756,"sim":8764,"cong":8773,"asymp":8776,"ne":8800,"equiv":8801,"le":8804,"ge":8805,"sub":8834,"sup":8835,"sube":8838,"supe":8839,"oplus":8853,"otimes":8855,"perp":8869,"sdot":8901,"lceil":8968,"rceil":8969,"lfloor":8970,"rfloor":8971,"lang":9001,"rang":9002,"loz":9674,"spades":9824,"clubs":9827,"hearts":9829,"diams":9830,"OElig":338,"oelig":339,"Scaron":352,"scaron":353,"Yuml":376,"circ":710,"tilde":732,"ensp":8194,"emsp":8195,"thinsp":8201,"zwnj":8204,"zwj":8205,"lrm":8206,"rlm":8207,"ndash":8211,"mdash":8212,"lsquo":8216,"rsquo":8217,"sbquo":8218,"ldquo":8220,"rdquo":8221,"bdquo":8222,"dagger":8224,"Dagger":8225,"permil":8240,"lsaquo":8249,"rsaquo":8250,"euro":8364}},defer:function($0,$1,$2){$0.FROM_CHARCODE=qx.lang.Object.invert($0.TO_CHARCODE);}});
41
qx.Class.define($[1224],{statics:{addEventListener:qx.core.Variant.select($[1],{"mshtml":function($0,$1,$2){$0.attachEvent($[23]+$1,$2);},"default":function($0,$1,$2){$0.addEventListener($1,$2,false);}}),removeEventListener:qx.core.Variant.select($[1],{"mshtml":function($0,$1,$2){$0.detachEvent($[23]+$1,$2);},"default":function($0,$1,$2){$0.removeEventListener($1,$2,false);}})}});
41
qx.Class.define($[1223],{statics:{addEventListener:qx.core.Variant.select($[1],{"mshtml":function($0,$1,$2){$0.attachEvent($[23]+$1,$2);},"default":function($0,$1,$2){$0.addEventListener($1,$2,false);}}),removeEventListener:qx.core.Variant.select($[1],{"mshtml":function($0,$1,$2){$0.detachEvent($[23]+$1,$2);},"default":function($0,$1,$2){$0.removeEventListener($1,$2,false);}})}});
42
qx.Class.define($[1086],{type:$[18],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this._onloadWrapped=qx.lang.Function.bind(this._onload,this);this._onbeforeunloadWrapped=qx.lang.Function.bind(this._onbeforeunload,this);this._onunloadWrapped=qx.lang.Function.bind(this._onunload,this);qx.html.EventRegistration.addEventListener(window,$[82],this._onloadWrapped);qx.html.EventRegistration.addEventListener(window,$[251],this._onbeforeunloadWrapped);qx.html.EventRegistration.addEventListener(window,$[131],this._onunloadWrapped);},events:{"load":$[4],"beforeunload":$[4],"unload":$[4]},properties:{application:{nullable:true,check:function($0){if(typeof $0==$[37]){throw new Error("The application property takes an application instance as parameter "+"and no longer a class/constructor. You may have to fix your 'index.html'.");}return $0&&qx.Class.hasInterface($0.constructor,qx.application.IApplication);}}},members:{_autoDispose:false,_onload:function($0){if(this._onloadDone){return;}this._onloadDone=true;this.createDispatchEvent($[82]);this.debug("qooxdoo "+qx.core.Version.toString());{};this.debug("loaded "+qx.Class.getTotalNumber()+" classes");this.debug("loaded "+qx.Interface.getTotalNumber()+" interfaces");this.debug("loaded "+qx.Mixin.getTotalNumber()+" mixins");if(qx.Theme){this.debug("loaded "+qx.Theme.getTotalNumber()+" themes");}if(qx.locale&&qx.locale.Manager){this.debug("loaded "+qx.locale.Manager.getInstance().getAvailableLocales().length+" locales");}var $1=qx.core.Client.getInstance();this.debug("client: "+$1.getEngine()+"-"+$1.getMajor()+"."+$1.getMinor()+"/"+$1.getPlatform()+"/"+$1.getLocale());this.debug("browser: "+$1.getBrowser()+"/"+($1.supportsSvg()?"svg":$1.supportsVml()?"vml":"none"));{};if(!this.getApplication()){var $2=qx.Class.getByName(qx.core.Setting.get($[599]));if($2){this.setApplication(new $2(this));}}if(!this.getApplication()){return;}this.debug("application: "+this.getApplication().classname+"["+this.getApplication().toHashCode()+"]");var $3=new Date;this.getApplication().main();this.info("main runtime: "+(new Date-$3)+"ms");},_onbeforeunload:function($0){this.createDispatchEvent($[251]);if(this.getApplication()){var $1=this.getApplication().close();if($1!=null){$0.returnValue=$1;}}},_onunload:function($0){this.createDispatchEvent($[131]);if(this.getApplication()){this.getApplication().terminate();}qx.core.Object.dispose(true);}},settings:{"qx.application":$[325]},destruct:function(){qx.html.EventRegistration.removeEventListener(window,$[82],this._onloadWrapped);qx.html.EventRegistration.removeEventListener(window,$[251],this._onbeforeunloadWrapped);qx.html.EventRegistration.removeEventListener(window,$[131],this._onunloadWrapped);},defer:function($0,$1,$2){$0.getInstance();}});
42
qx.Class.define($[1086],{type:$[18],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this._onloadWrapped=qx.lang.Function.bind(this._onload,this);this._onbeforeunloadWrapped=qx.lang.Function.bind(this._onbeforeunload,this);this._onunloadWrapped=qx.lang.Function.bind(this._onunload,this);qx.html.EventRegistration.addEventListener(window,$[82],this._onloadWrapped);qx.html.EventRegistration.addEventListener(window,$[251],this._onbeforeunloadWrapped);qx.html.EventRegistration.addEventListener(window,$[131],this._onunloadWrapped);},events:{"load":$[4],"beforeunload":$[4],"unload":$[4]},properties:{application:{nullable:true,check:function($0){if(typeof $0==$[37]){throw new Error("The application property takes an application instance as parameter "+"and no longer a class/constructor. You may have to fix your 'index.html'.");}return $0&&qx.Class.hasInterface($0.constructor,qx.application.IApplication);}}},members:{_autoDispose:false,_onload:function($0){if(this._onloadDone){return;}this._onloadDone=true;this.createDispatchEvent($[82]);this.debug("qooxdoo "+qx.core.Version.toString());{};this.debug("loaded "+qx.Class.getTotalNumber()+" classes");this.debug("loaded "+qx.Interface.getTotalNumber()+" interfaces");this.debug("loaded "+qx.Mixin.getTotalNumber()+" mixins");if(qx.Theme){this.debug("loaded "+qx.Theme.getTotalNumber()+" themes");}if(qx.locale&&qx.locale.Manager){this.debug("loaded "+qx.locale.Manager.getInstance().getAvailableLocales().length+" locales");}var $1=qx.core.Client.getInstance();this.debug("client: "+$1.getEngine()+"-"+$1.getMajor()+"."+$1.getMinor()+"/"+$1.getPlatform()+"/"+$1.getLocale());this.debug("browser: "+$1.getBrowser()+"/"+($1.supportsSvg()?"svg":$1.supportsVml()?"vml":"none"));{};if(!this.getApplication()){var $2=qx.Class.getByName(qx.core.Setting.get($[599]));if($2){this.setApplication(new $2(this));}}if(!this.getApplication()){return;}this.debug("application: "+this.getApplication().classname+"["+this.getApplication().toHashCode()+"]");var $3=new Date;this.getApplication().main();this.info("main runtime: "+(new Date-$3)+"ms");},_onbeforeunload:function($0){this.createDispatchEvent($[251]);if(this.getApplication()){var $1=this.getApplication().close();if($1!=null){$0.returnValue=$1;}}},_onunload:function($0){this.createDispatchEvent($[131]);if(this.getApplication()){this.getApplication().terminate();}qx.core.Object.dispose(true);}},settings:{"qx.application":$[325]},destruct:function(){qx.html.EventRegistration.removeEventListener(window,$[82],this._onloadWrapped);qx.html.EventRegistration.removeEventListener(window,$[251],this._onbeforeunloadWrapped);qx.html.EventRegistration.removeEventListener(window,$[131],this._onunloadWrapped);},defer:function($0,$1,$2){$0.getInstance();}});
43
qx.Interface.define($[951],{members:{main:function(){return true;},close:function(){return true;},terminate:function(){return true;}}});
43
qx.Interface.define($[950],{members:{main:function(){return true;},close:function(){return true;},terminate:function(){return true;}}});
44
qx.Class.define($[999],{statics:{major:0,minor:0,revision:0,state:$[0],svn:0,folder:$[0],toString:function(){return this.major+$[24]+this.minor+(this.revision==0?$[0]:$[24]+this.revision)+(this.state==$[0]?$[0]:$[137]+this.state)+(this.svn==0?$[0]:$[1646]+this.svn+$[145])+(this.folder==$[0]?$[0]:$[1801]+this.folder+$[115]);},__init:function(){var $0=qx.core.Setting.get($[618]).split($[83]);var $1=$0.shift();var $2=$0.join($[83]);if(/([0-9]+)\.([0-9]+)(\.([0-9]))?(-([a-z0-9]+))?/.test($1)){this.major=(RegExp.$1!=$[0]?parseInt(RegExp.$1):0);this.minor=(RegExp.$2!=$[0]?parseInt(RegExp.$2):0);this.revision=(RegExp.$4!=$[0]?parseInt(RegExp.$4):0);this.state=typeof RegExp.$6==$[8]?RegExp.$6:$[0];}if(/(\(r([0-9]+)\))?(\s\[([a-zA-Z0-9_-]+)\])?/.test($2)){this.svn=(RegExp.$2!=$[0]?parseInt(RegExp.$2):0);this.folder=typeof RegExp.$4==$[8]?RegExp.$4:$[0];}}},settings:{"qx.version":$[961]},defer:function($0){$0.__init();}});
44
qx.Class.define($[998],{statics:{major:0,minor:0,revision:0,state:$[0],svn:0,folder:$[0],toString:function(){return this.major+$[24]+this.minor+(this.revision==0?$[0]:$[24]+this.revision)+(this.state==$[0]?$[0]:$[137]+this.state)+(this.svn==0?$[0]:$[1645]+this.svn+$[145])+(this.folder==$[0]?$[0]:$[1801]+this.folder+$[115]);},__init:function(){var $0=qx.core.Setting.get($[618]).split($[83]);var $1=$0.shift();var $2=$0.join($[83]);if(/([0-9]+)\.([0-9]+)(\.([0-9]))?(-([a-z0-9]+))?/.test($1)){this.major=(RegExp.$1!=$[0]?parseInt(RegExp.$1):0);this.minor=(RegExp.$2!=$[0]?parseInt(RegExp.$2):0);this.revision=(RegExp.$4!=$[0]?parseInt(RegExp.$4):0);this.state=typeof RegExp.$6==$[8]?RegExp.$6:$[0];}if(/(\(r([0-9]+)\))?(\s\[([a-zA-Z0-9_-]+)\])?/.test($2)){this.svn=(RegExp.$2!=$[0]?parseInt(RegExp.$2):0);this.folder=typeof RegExp.$4==$[8]?RegExp.$4:$[0];}}},settings:{"qx.version":$[960]},defer:function($0){$0.__init();}});
45
qx.Class.define($[1751],{extend:qx.core.Target,implement:qx.application.IApplication,members:{main:function(){},close:function(){},terminate:function(){}}});
46
qx.Class.define($[1047],{statics:{loadPart:function($0,$1,$2){window.qxloader.loadPart($0,$1,$2);},loadScript:function($0,$1,$2){window.qxloader.loadScript($0,$1,$2);}}});
45
qx.Class.define($[1775],{statics:{define:function($0,$1){qx.Class.createNamespace($0,$1);qx.locale.Manager.getInstance().addTranslationFromClass($0,$1);}}});
47
qx.Class.define($[1775],{statics:{define:function($0,$1){qx.Class.createNamespace($0,$1);qx.locale.Manager.getInstance().addTranslationFromClass($0,$1);}}});
46
qx.Class.define($[1693],{type:$[51],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this._registry={};this._dynamic={};},members:{connect:function($0,$1,$2){{};var $3=$[477]+$1.toHashCode()+$[207]+qx.core.Object.toHashCode($0);var $4=this._registry;if($2!==null&&this._preprocess){$2=this._preprocess($2);}if(this.isDynamic($2)){$4[$3]={callback:$0,object:$1,value:$2};}else if($4[$3]){delete $4[$3];}$0.call($1,this.resolveDynamic($2)||$2);},resolveDynamic:function($0){return this._dynamic[$0];},isDynamic:function($0){return this._dynamic[$0]!==undefined;},_updateObjects:function(){var $0=this._registry;var $1;for(var $2 in $0){$1=$0[$2];$1.callback.call($1.object,this.resolveDynamic($1.value));}}},destruct:function(){this._disposeFields($[1551],$[1509]);}});
48
qx.Class.define($[1693],{type:$[51],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this._registry={};this._dynamic={};},members:{connect:function($0,$1,$2){{};var $3=$[478]+$1.toHashCode()+$[207]+qx.core.Object.toHashCode($0);var $4=this._registry;if($2!==null&&this._preprocess){$2=this._preprocess($2);}if(this.isDynamic($2)){$4[$3]={callback:$0,object:$1,value:$2};}else if($4[$3]){delete $4[$3];}$0.call($1,this.resolveDynamic($2)||$2);},resolveDynamic:function($0){return this._dynamic[$0];},isDynamic:function($0){return this._dynamic[$0]!==undefined;},_updateObjects:function(){var $0=this._registry;var $1;for(var $2 in $0){$1=$0[$2];$1.callback.call($1.object,this.resolveDynamic($1.value));}}},destruct:function(){this._disposeFields($[1551],$[1508]);}});
47
qx.Class.define($[649],{type:$[18],extend:qx.util.manager.Value,construct:function(){arguments.callee.base.call(this);this._translationCatalog={};this.setLocale(qx.core.Client.getInstance().getLocale()||this._defaultLocale);},statics:{tr:function($0,$1){var $2=qx.lang.Array.fromArguments(arguments);$2.splice(0,1);return new qx.locale.LocalizedString($0,$2);},trn:function($0,$1,$2,$3){var $4=qx.lang.Array.fromArguments(arguments);$4.splice(0,3);if($2>1){return new qx.locale.LocalizedString($1,$4);}else{return new qx.locale.LocalizedString($0,$4);}},trc:function($0,$1,$2){var $3=qx.lang.Array.fromArguments(arguments);$3.splice(0,2);return new qx.locale.LocalizedString($1,$3);},marktr:function($0){return $0;}},properties:{locale:{check:$[6],nullable:true,apply:$[566],event:$[220]}},members:{_defaultLocale:$[676],getLanguage:function(){return this._language;},getTerritory:function(){return this.getLocale().split($[155])[1]||$[0];},getAvailableLocales:function(){var $0=[];for(var $1 in this._translationCatalog){if($1!=this._defaultLocale){$0.push($1);}}return $0;},_extractLanguage:function($0){var $1;var $2=$0.indexOf($[155]);if($2==-1){$1=$0;}else{$1=$0.substring(0,$2);}return $1;},_applyLocale:function($0,$1){this._locale=$0;this._language=this._extractLanguage($0);this._updateObjects();},addTranslation:function($0,$1){if(this._translationCatalog[$0]){for(var $2 in $1){this._translationCatalog[$0][$2]=$1[$2];}}else{this._translationCatalog[$0]=$1;}},addTranslationFromClass:function($0,$1){this.addTranslation($0.substring($0.lastIndexOf($[24])+1),$1);},translate:function($0,$1,$2){var $3;if($2){var $4=this._extractLanguage($2);}else{$2=this._locale;$4=this._language;}if(!$3&&this._translationCatalog[$2]){$3=this._translationCatalog[$2][$0];}if(!$3&&this._translationCatalog[$4]){$3=this._translationCatalog[$4][$0];}if(!$3&&this._translationCatalog[this._defaultLocale]){$3=this._translationCatalog[this._defaultLocale][$0];}if(!$3){$3=$0;}if($1.length>0){$3=qx.lang.String.format($3,$1);}return $3;},isDynamic:function($0){return $0 instanceof qx.locale.LocalizedString;},resolveDynamic:function($0){return $0.toString();}},destruct:function(){this._disposeFields($[912]);}});
49
qx.Class.define($[649],{type:$[18],extend:qx.util.manager.Value,construct:function(){arguments.callee.base.call(this);this._translationCatalog={};this.setLocale(qx.core.Client.getInstance().getLocale()||this._defaultLocale);},statics:{tr:function($0,$1){var $2=qx.lang.Array.fromArguments(arguments);$2.splice(0,1);return new qx.locale.LocalizedString($0,$2);},trn:function($0,$1,$2,$3){var $4=qx.lang.Array.fromArguments(arguments);$4.splice(0,3);if($2>1){return new qx.locale.LocalizedString($1,$4);}else{return new qx.locale.LocalizedString($0,$4);}},trc:function($0,$1,$2){var $3=qx.lang.Array.fromArguments(arguments);$3.splice(0,2);return new qx.locale.LocalizedString($1,$3);},marktr:function($0){return $0;}},properties:{locale:{check:$[6],nullable:true,apply:$[566],event:$[220]}},members:{_defaultLocale:$[677],getLanguage:function(){return this._language;},getTerritory:function(){return this.getLocale().split($[155])[1]||$[0];},getAvailableLocales:function(){var $0=[];for(var $1 in this._translationCatalog){if($1!=this._defaultLocale){$0.push($1);}}return $0;},_extractLanguage:function($0){var $1;var $2=$0.indexOf($[155]);if($2==-1){$1=$0;}else{$1=$0.substring(0,$2);}return $1;},_applyLocale:function($0,$1){this._locale=$0;this._language=this._extractLanguage($0);this._updateObjects();},addTranslation:function($0,$1){if(this._translationCatalog[$0]){for(var $2 in $1){this._translationCatalog[$0][$2]=$1[$2];}}else{this._translationCatalog[$0]=$1;}},addTranslationFromClass:function($0,$1){this.addTranslation($0.substring($0.lastIndexOf($[24])+1),$1);},translate:function($0,$1,$2){var $3;if($2){var $4=this._extractLanguage($2);}else{$2=this._locale;$4=this._language;}if(!$3&&this._translationCatalog[$2]){$3=this._translationCatalog[$2][$0];}if(!$3&&this._translationCatalog[$4]){$3=this._translationCatalog[$4][$0];}if(!$3&&this._translationCatalog[this._defaultLocale]){$3=this._translationCatalog[this._defaultLocale][$0];}if(!$3){$3=$0;}if($1.length>0){$3=qx.lang.String.format($3,$1);}return $3;},isDynamic:function($0){return $0 instanceof qx.locale.LocalizedString;},resolveDynamic:function($0){return $0.toString();}},destruct:function(){this._disposeFields($[912]);}});
48
qx.Class.define($[906],{extend:qx.core.Object,construct:function($0,$1,$2){arguments.callee.base.call(this);this.setId($0);this._locale=$2;var $3=[];for(var $4=0;$4<$1.length;$4++){var $5=$1[$4];if($5 instanceof qx.locale.LocalizedString){$3.push($5);}else{$3.push($5+$[0]);}}this.setArgs($3);},properties:{id:{check:$[6],nullable:true},args:{nullable:true,dispose:true}},members:{_autoDispose:false,toString:function(){return qx.locale.Manager.getInstance().translate(this.getId(),this.getArgs(),this._locale);}}});
50
qx.Class.define($[906],{extend:qx.core.Object,construct:function($0,$1,$2){arguments.callee.base.call(this);this.setId($0);this._locale=$2;var $3=[];for(var $4=0;$4<$1.length;$4++){var $5=$1[$4];if($5 instanceof qx.locale.LocalizedString){$3.push($5);}else{$3.push($5+$[0]);}}this.setArgs($3);},properties:{id:{check:$[6],nullable:true},args:{nullable:true,dispose:true}},members:{_autoDispose:false,toString:function(){return qx.locale.Manager.getInstance().translate(this.getId(),this.getArgs(),this._locale);}}});
49
qx.Class.define($[1488],{statics:{isValid:function($0){switch(typeof $0){case $[65]:return false;case $[28]:return $0!==null;case $[8]:return $0!==$[0];case $[50]:return !isNaN($0);case $[37]:case $[58]:return true;}return false;},isInvalid:function($0){switch(typeof $0){case $[65]:return true;case $[28]:return $0===null;case $[8]:return $0===$[0];case $[50]:return isNaN($0);case $[37]:case $[58]:return false;}return true;},isValidNumber:function($0){return typeof $0===$[50]&&!isNaN($0);},isInvalidNumber:function($0){return typeof $0!==$[50]||isNaN($0);},isValidString:function($0){return typeof $0===$[8]&&$0!==$[0];},isInvalidString:function($0){return typeof $0!==$[8]||$0===$[0];},isValidArray:function($0){return typeof $0===$[28]&&$0!==null&&$0 instanceof Array;},isInvalidArray:function($0){return typeof $0!==$[28]||$0===null||!($0 instanceof Array);},isValidObject:function($0){return typeof $0===$[28]&&$0!==null&&!($0 instanceof Array);},isInvalidObject:function($0){return typeof $0!==$[28]||$0===null||$0 instanceof Array;},isValidNode:function($0){return typeof $0===$[28]&&$0!==null;},isInvalidNode:function($0){return typeof $0!==$[28]||$0===null;},isValidElement:function($0){return typeof $0===$[28]&&$0!==null||$0.nodeType!==1;},isInvalidElement:function($0){return typeof $0!==$[28]||$0===null||$0.nodeType!==1;},isValidFunction:function($0){return typeof $0===$[37];},isInvalidFunction:function($0){return typeof $0!==$[37];},isValidBoolean:function($0){return typeof $0===$[58];},isInvalidBoolean:function($0){return typeof $0!==$[58];},isValidStringOrNumber:function($0){switch(typeof $0){case $[8]:return $0!==$[0];case $[50]:return !isNaN($0);}return false;},isInvalidStringOrNumber:function($0){switch(typeof $0){case $[8]:return $0===$[0];case $[50]:return isNaN($0);}return false;}}});
51
qx.Class.define($[1487],{statics:{isValid:function($0){switch(typeof $0){case $[65]:return false;case $[28]:return $0!==null;case $[8]:return $0!==$[0];case $[50]:return !isNaN($0);case $[37]:case $[58]:return true;}return false;},isInvalid:function($0){switch(typeof $0){case $[65]:return true;case $[28]:return $0===null;case $[8]:return $0===$[0];case $[50]:return isNaN($0);case $[37]:case $[58]:return false;}return true;},isValidNumber:function($0){return typeof $0===$[50]&&!isNaN($0);},isInvalidNumber:function($0){return typeof $0!==$[50]||isNaN($0);},isValidString:function($0){return typeof $0===$[8]&&$0!==$[0];},isInvalidString:function($0){return typeof $0!==$[8]||$0===$[0];},isValidArray:function($0){return typeof $0===$[28]&&$0!==null&&$0 instanceof Array;},isInvalidArray:function($0){return typeof $0!==$[28]||$0===null||!($0 instanceof Array);},isValidObject:function($0){return typeof $0===$[28]&&$0!==null&&!($0 instanceof Array);},isInvalidObject:function($0){return typeof $0!==$[28]||$0===null||$0 instanceof Array;},isValidNode:function($0){return typeof $0===$[28]&&$0!==null;},isInvalidNode:function($0){return typeof $0!==$[28]||$0===null;},isValidElement:function($0){return typeof $0===$[28]&&$0!==null||$0.nodeType!==1;},isInvalidElement:function($0){return typeof $0!==$[28]||$0===null||$0.nodeType!==1;},isValidFunction:function($0){return typeof $0===$[37];},isInvalidFunction:function($0){return typeof $0!==$[37];},isValidBoolean:function($0){return typeof $0===$[58];},isInvalidBoolean:function($0){return typeof $0!==$[58];},isValidStringOrNumber:function($0){switch(typeof $0){case $[8]:return $0!==$[0];case $[50]:return !isNaN($0);}return false;},isInvalidStringOrNumber:function($0){switch(typeof $0){case $[8]:return $0===$[0];case $[50]:return isNaN($0);}return false;}}});
50
qx.Class.define($[1048],{statics:{loadPart:function($0,$1,$2){window.qxloader.loadPart($0,$1,$2);},loadScript:function($0,$1,$2){window.qxloader.loadScript($0,$1,$2);}}});
52
qx.Class.define($[325],{extend:qx.core.Target,implement:qx.application.IApplication,properties:{uiReady:{check:$[2],init:false}},members:{main:function(){qx.ui.core.Widget.initScrollbarWidth();qx.theme.manager.Meta.getInstance().initialize();qx.event.handler.EventHandler.getInstance();qx.ui.core.ClientDocument.getInstance();qx.client.Timer.once(this._preload,this,0);},close:function(){},terminate:function(){},_preload:function(){this.debug("preloading visible images...");this.__preloader=new qx.io.image.PreloaderSystem(qx.io.image.Manager.getInstance().getVisibleImages(),this._preloaderDone,this);this.__preloader.start();},_preloaderDone:function(){this.setUiReady(true);this.__preloader.dispose();this.__preloader=null;var $0=(new Date).valueOf();qx.ui.core.Widget.flushGlobalQueues();this.info("render runtime: "+(new Date-$0)+"ms");qx.event.handler.EventHandler.getInstance().attachEvents();qx.client.Timer.once(this._postload,this,100);},_postload:function(){this.debug("preloading hidden images...");this.__postloader=new qx.io.image.PreloaderSystem(qx.io.image.Manager.getInstance().getHiddenImages(),this._postloaderDone,this);this.__postloader.start();},_postloaderDone:function(){this.__postloader.dispose();this.__postloader=null;}}});
51
qx.Class.define($[1751],{extend:qx.core.Target,implement:qx.application.IApplication,members:{main:function(){},close:function(){},terminate:function(){}}});
53
qx.Class.define($[66],{extend:qx.core.Target,type:$[51],construct:function(){arguments.callee.base.call(this);this._layoutChanges={};if(qx.core.Setting.get($[1733])){this._generateHtmlId();}},events:{"beforeAppear":$[4],"appear":$[4],"beforeDisappear":$[4],"disappear":$[4],"beforeInsertDom":$[4],"insertDom":$[4],"beforeRemoveDom":$[4],"removeDom":$[4],"create":$[4],"execute":$[4],"mouseover":$[87],"mousemove":$[87],"mouseout":$[87],"mousedown":$[87],"mouseup":$[87],"mousewheel":$[87],"click":$[87],"dblclick":$[87],"contextmenu":$[87],"keydown":$[186],"keypress":$[186],"keyinput":$[186],"keyup":$[186],"focusout":$[168],"focusin":$[168],"blur":$[168],"focus":$[168],"dragdrop":$[143],"dragout":$[143],"dragover":$[143],"dragmove":$[143],"dragstart":$[143],"dragend":$[143]},statics:{create:function($0,$1){$0._appearance=$1;return new $0;},SCROLLBAR_SIZE:null,_autoFlushTimeout:null,_initAutoFlush:function(){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._autoFlushTimeout=window.setTimeout(qx.ui.core.Widget._autoFlushHelper,0);}},_removeAutoFlush:function(){if(qx.ui.core.Widget._autoFlushTimeout!=null){window.clearTimeout(qx.ui.core.Widget._autoFlushTimeout);qx.ui.core.Widget._autoFlushTimeout=null;}},_autoFlushHelper:function(){qx.ui.core.Widget._autoFlushTimeout=null;if(!qx.core.Object.inGlobalDispose()){qx.ui.core.Widget.flushGlobalQueues();}},flushGlobalQueues:function(){if(qx.ui.core.Widget._autoFlushTimeout!=null){qx.ui.core.Widget._removeAutoFlush();}if(qx.ui.core.Widget._inFlushGlobalQueues){return;}var $0=qx.core.Init.getInstance().getApplication();if($0.getUiReady&&!$0.getUiReady()){return;}qx.ui.core.Widget._inFlushGlobalQueues=true;qx.ui.core.Widget.flushGlobalWidgetQueue();qx.ui.core.Widget.flushGlobalStateQueue();qx.ui.core.Widget.flushGlobalElementQueue();qx.ui.core.Widget.flushGlobalJobQueue();qx.ui.core.Widget.flushGlobalLayoutQueue();qx.ui.core.Widget.flushGlobalDisplayQueue();delete qx.ui.core.Widget._inFlushGlobalQueues;},_globalWidgetQueue:[],addToGlobalWidgetQueue:function($0){if(!$0._isInGlobalWidgetQueue&&$0._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();}qx.ui.core.Widget._globalWidgetQueue.push($0);$0._isInGlobalWidgetQueue=true;}},removeFromGlobalWidgetQueue:function($0){if($0._isInGlobalWidgetQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalWidgetQueue,$0);delete $0._isInGlobalWidgetQueue;}},flushGlobalWidgetQueue:function(){var $0=qx.ui.core.Widget._globalWidgetQueue,$1,$2;while(($1=$0.length)>0){for(var $3=0;$3<$1;$3++){$2=$0[$3];$2.flushWidgetQueue();delete $2._isInGlobalWidgetQueue;}$0.splice(0,$1);}},_globalElementQueue:[],addToGlobalElementQueue:function($0){if(!$0._isInGlobalElementQueue&&$0._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();}qx.ui.core.Widget._globalElementQueue.push($0);$0._isInGlobalElementQueue=true;}},removeFromGlobalElementQueue:function($0){if($0._isInGlobalElementQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalElementQueue,$0);delete $0._isInGlobalElementQueue;}},flushGlobalElementQueue:function(){var $0=qx.ui.core.Widget._globalElementQueue,$1,$2;while(($1=$0.length)>0){for(var $3=0;$3<$1;$3++){$2=$0[$3];$2._createElementImpl();delete $2._isInGlobalElementQueue;}$0.splice(0,$1);}},_globalStateQueue:[],addToGlobalStateQueue:function($0){if(!$0._isInGlobalStateQueue&&$0._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();}qx.ui.core.Widget._globalStateQueue.push($0);$0._isInGlobalStateQueue=true;}},removeFromGlobalStateQueue:function($0){if($0._isInGlobalStateQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalStateQueue,$0);delete $0._isInGlobalStateQueue;}},flushGlobalStateQueue:function(){var $0=qx.ui.core.Widget._globalStateQueue,$1,$2;while(($1=$0.length)>0){for(var $3=0;$3<$1;$3++){$2=$0[$3];$2._renderAppearance();delete $2._isInGlobalStateQueue;}$0.splice(0,$1);}},_globalJobQueue:[],addToGlobalJobQueue:function($0){if(!$0._isInGlobalJobQueue&&$0._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();}qx.ui.core.Widget._globalJobQueue.push($0);$0._isInGlobalJobQueue=true;}},removeFromGlobalJobQueue:function($0){if($0._isInGlobalJobQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalJobQueue,$0);delete $0._isInGlobalJobQueue;}},flushGlobalJobQueue:function(){var $0=qx.ui.core.Widget._globalJobQueue,$1,$2;while(($1=$0.length)>0){for(var $3=0;$3<$1;$3++){$2=$0[$3];$2._flushJobQueue($2._jobQueue);delete $2._isInGlobalJobQueue;}$0.splice(0,$1);}},_globalLayoutQueue:[],addToGlobalLayoutQueue:function($0){if(!$0._isInGlobalLayoutQueue&&$0._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();}qx.ui.core.Widget._globalLayoutQueue.push($0);$0._isInGlobalLayoutQueue=true;}},removeFromGlobalLayoutQueue:function($0){if($0._isInGlobalLayoutQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalLayoutQueue,$0);delete $0._isInGlobalLayoutQueue;}},flushGlobalLayoutQueue:function(){var $0=qx.ui.core.Widget._globalLayoutQueue,$1,$2;while(($1=$0.length)>0){for(var $3=0;$3<$1;$3++){$2=$0[$3];$2._flushChildrenQueue();delete $2._isInGlobalLayoutQueue;}$0.splice(0,$1);}},_fastGlobalDisplayQueue:[],_lazyGlobalDisplayQueues:{},addToGlobalDisplayQueue:function($0){if(!$0._isInGlobalDisplayQueue&&$0._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();}var $1=$0.getParent();if($1.isSeeable()){var $2=$1.toHashCode();if(qx.ui.core.Widget._lazyGlobalDisplayQueues[$2]){qx.ui.core.Widget._lazyGlobalDisplayQueues[$2].push($0);}else{qx.ui.core.Widget._lazyGlobalDisplayQueues[$2]=[$0];}}else{qx.ui.core.Widget._fastGlobalDisplayQueue.push($0);}$0._isInGlobalDisplayQueue=true;}},removeFromGlobalDisplayQueue:function($0){},flushGlobalDisplayQueue:function(){var $0,$1,$2,$3;var $4=qx.ui.core.Widget._fastGlobalDisplayQueue;var $5=qx.ui.core.Widget._lazyGlobalDisplayQueues;for(var $6=0,$7=$4.length;$6<$7;$6++){$2=$4[$6];$2.getParent()._getTargetNode().appendChild($2.getElement());}if(qx.Class.isDefined($[559])){for($0 in $5){$1=$5[$0];for(var $6=0;$6<$1.length;$6++){$2=$1[$6];if($2 instanceof qx.ui.basic.Inline){$2._beforeInsertDom();try{document.getElementById($2.getInlineNodeId()).appendChild($2.getElement());}catch(ex){$2.debug("Could not append to inline id: "+$2.getInlineNodeId(),ex);}$2._afterInsertDom();$2._afterAppear();qx.lang.Array.remove($1,$2);$6--;delete $2._isInGlobalDisplayQueue;}}}}for($0 in $5){$1=$5[$0];if(document.createDocumentFragment&&$1.length>=3){$3=document.createDocumentFragment();for(var $6=0,$7=$1.length;$6<$7;$6++){$2=$1[$6];$2._beforeInsertDom();$3.appendChild($2.getElement());}$1[0].getParent()._getTargetNode().appendChild($3);for(var $6=0,$7=$1.length;$6<$7;$6++){$2=$1[$6];$2._afterInsertDom();}}else{for(var $6=0,$7=$1.length;$6<$7;$6++){$2=$1[$6];$2._beforeInsertDom();$2.getParent()._getTargetNode().appendChild($2.getElement());$2._afterInsertDom();}}}for($0 in $5){$1=$5[$0];for(var $6=0,$7=$1.length;$6<$7;$6++){$2=$1[$6];if($2.getVisibility()){$2._afterAppear();}delete $2._isInGlobalDisplayQueue;}delete $5[$0];}for(var $6=0,$7=$4.length;$6<$7;$6++){delete $4[$6]._isInGlobalDisplayQueue;}qx.lang.Array.removeAll($4);},getActiveSiblingHelperIgnore:function($0,$1){for(var $2=0;$2<$0.length;$2++){if($1 instanceof $0[$2]){return true;}}return false;},getActiveSiblingHelper:function($0,$1,$2,$3,$4){if(!$3){$3=[];}var $5=$1.getChildren();var $6=$4==null?$5.indexOf($0)+$2:$4===$[476]?0:$5.length-1;var $7=$5[$6];while($7&&(!$7.getEnabled()||qx.ui.core.Widget.getActiveSiblingHelperIgnore($3,$7))){$6+=$2;$7=$5[$6];if(!$7){return null;}}return $7;},__initApplyMethods:function($0){var $1=$[1719];var $2=$[836];var $3=$[1637];var $4=$[964];var $5=$[478];var $6=[$[11],$[9],$[20],$[17],$[30],$[31],$[73],$[74],$[77],$[75]];var $7=[$[60],$[64],$[1149],$[1661],$[1005],$[617],$[1636],$[1045],$[1788],$[1572]];var $8=$1+$[477];var $9=$2+$[477];var $a=$3+$[430];for(var $b=0;$b<4;$b++){$0[$8+$7[$b]]=new Function($5,$a+$7[$b]+$4);$0[$9+$7[$b]]=new Function($a+$7[$b]+$[268]);}var $c=$1+$[483];var $d=$2+$[483];var $e=$3+$[351];if(qx.core.Variant.isSet($[1],$[21])){for(var $b=0;$b<4;$b++){$0[$c+$7[$b]]=new Function($5,$e+$7[$b]+$4);$0[$d+$7[$b]]=new Function($e+$7[$b]+$[268]);}}else{for(var $b=0;$b<4;$b++){$0[$c+$7[$b]]=new Function($5,$[1466]+$7[$b]+$[1346]);$0[$d+$7[$b]]=new Function($[594]+$7[$b]+$[880]);}}for(var $b=0;$b<$6.length;$b++){$0[$1+$7[$b]]=new Function($5,$3+$6[$b]+$4);$0[$2+$7[$b]]=new Function($3+$6[$b]+$[268]);}},TYPE_NULL:0,TYPE_PIXEL:1,TYPE_PERCENT:2,TYPE_AUTO:3,TYPE_FLEX:4,layoutPropertyTypes:{},__initLayoutProperties:function($0){var $1=[$[30],$[31],$[73],$[74],$[77],$[75],$[11],$[9],$[20],$[17]];for(var $2=0,$3=$1.length,$4,$5,$6;$2<$3;$2++){$4=$1[$2];$5=$[1017]+qx.lang.String.toFirstUp($4);$6=$5+$[691];$0.layoutPropertyTypes[$4]={dataType:$6,dataParsed:$5+$[1187],dataValue:$5+$[365],typePixel:$6+$[630],typePercent:$6+$[1073],typeAuto:$6+$[1746],typeFlex:$6+$[1438],typeNull:$6+$[809]};}},initScrollbarWidth:function(){var $0=document.createElement($[67]);var $1=$0.style;$1.height=$1.width=$[252];$1.overflow=$[26];document.body.appendChild($0);var $2=qx.html.Dimension.getScrollBarSizeRight($0);qx.ui.core.Widget.SCROLLBAR_SIZE=$2?$2:16;document.body.removeChild($0);},_idCounter:0},properties:{enabled:{init:$[116],check:$[2],inheritable:true,apply:$[302],event:$[463]},parent:{check:$[306],nullable:true,event:$[621],apply:$[1280]},element:{check:$[519],nullable:true,apply:$[468],event:$[613]},visibility:{check:$[2],init:true,apply:$[1112],event:$[1579]},display:{check:$[2],init:true,apply:$[1154],event:$[1329]},anonymous:{check:$[2],init:false,event:$[647]},horizontalAlign:{check:[$[11],$[57],$[9]],themeable:true,nullable:true},verticalAlign:{check:[$[20],$[62],$[17]],themeable:true,nullable:true},allowStretchX:{check:$[2],init:true},allowStretchY:{check:$[2],init:true},zIndex:{check:$[19],apply:$[879],event:$[1118],themeable:true,nullable:true,init:null},backgroundColor:{nullable:true,init:null,check:$[90],apply:$[1075],event:$[909],themeable:true},textColor:{nullable:true,init:$[116],check:$[90],apply:$[1427],event:$[636],themeable:true,inheritable:true},border:{nullable:true,init:null,apply:$[707],event:$[1672],check:$[539],themeable:true},font:{nullable:true,init:$[116],apply:$[575],check:$[548],event:$[810],themeable:true,inheritable:true},opacity:{check:$[19],apply:$[867],themeable:true,nullable:true,init:null},cursor:{check:$[6],apply:$[1577],themeable:true,nullable:true,init:null},backgroundImage:{check:$[6],nullable:true,apply:$[632],themeable:true},backgroundRepeat:{check:$[6],nullable:true,apply:$[685],themeable:true},overflow:{check:[$[36],$[3],$[26],$[112],$[111]],nullable:true,apply:$[811],event:$[1375],themeable:true,init:null},clipLeft:{check:$[5],apply:$[243],themeable:true,nullable:true},clipTop:{check:$[5],apply:$[243],themeable:true,nullable:true},clipWidth:{check:$[5],apply:$[243],themeable:true,nullable:true},clipHeight:{check:$[5],apply:$[243],themeable:true,nullable:true},tabIndex:{check:$[5],nullable:true,init:null,apply:$[894],event:$[1717]},hideFocus:{check:$[2],init:false,apply:$[1261],themeable:true},enableElementFocus:{check:$[2],init:true},focused:{check:$[2],init:false,apply:$[772],event:$[1030]},selectable:{check:$[2],init:null,nullable:true,apply:$[623]},toolTip:{check:$[241],nullable:true},contextMenu:{check:$[160],nullable:true},capture:{check:$[2],init:false,apply:$[1720],event:$[1092]},dropDataTypes:{nullable:true,dispose:true},command:{check:$[489],nullable:true,apply:$[1404]},appearance:{check:$[6],init:$[216],apply:$[864],event:$[1537]},supportsDropMethod:{check:$[472],nullable:true,init:null},marginTop:{check:$[19],apply:$[1108],nullable:true,themeable:true},marginRight:{check:$[19],apply:$[1436],nullable:true,themeable:true},marginBottom:{check:$[19],apply:$[622],nullable:true,themeable:true},marginLeft:{check:$[19],apply:$[1288],nullable:true,themeable:true},paddingTop:{check:$[19],apply:$[792],nullable:true,themeable:true},paddingRight:{check:$[19],apply:$[1671],nullable:true,themeable:true},paddingBottom:{check:$[19],apply:$[1548],nullable:true,themeable:true},paddingLeft:{check:$[19],apply:$[887],nullable:true,themeable:true},left:{apply:$[969],event:$[1453],nullable:true,themeable:true,init:null},right:{apply:$[710],event:$[910],nullable:true,themeable:true,init:null},width:{apply:$[1330],event:$[1301],nullable:true,themeable:true,init:null},minWidth:{apply:$[1399],event:$[1687],nullable:true,themeable:true,init:null},maxWidth:{apply:$[1116],event:$[1787],nullable:true,themeable:true,init:null},top:{apply:$[1498],event:$[1455],nullable:true,themeable:true,init:null},bottom:{apply:$[698],event:$[985],nullable:true,themeable:true,init:null},height:{apply:$[1442],event:$[1512],nullable:true,themeable:true,init:null},minHeight:{apply:$[655],event:$[1335],nullable:true,themeable:true,init:null},maxHeight:{apply:$[718],event:$[1333],nullable:true,themeable:true,init:null},location:{group:[$[11],$[20]],themeable:true},dimension:{group:[$[30],$[31]],themeable:true},space:{group:[$[11],$[30],$[20],$[31]],themeable:true},edge:{group:[$[20],$[9],$[17],$[11]],themeable:true,mode:$[103]},padding:{group:[$[215],$[245],$[231],$[242]],mode:$[103],themeable:true},margin:{group:[$[153],$[225],$[211],$[159]],mode:$[103],themeable:true},heights:{group:[$[77],$[31],$[75]],themeable:true},widths:{group:[$[73],$[30],$[74]],themeable:true},align:{group:[$[1698],$[845]],themeable:true},clipLocation:{group:[$[517],$[453]]},clipDimension:{group:[$[528],$[372]]},clip:{group:[$[517],$[453],$[528],$[372]]},innerWidth:{_cached:true,defaultValue:null},innerHeight:{_cached:true,defaultValue:null},boxWidth:{_cached:true,defaultValue:null},boxHeight:{_cached:true,defaultValue:null},outerWidth:{_cached:true,defaultValue:null},outerHeight:{_cached:true,defaultValue:null},frameWidth:{_cached:true,defaultValue:null,addToQueueRuntime:true},frameHeight:{_cached:true,defaultValue:null,addToQueueRuntime:true},preferredInnerWidth:{_cached:true,defaultValue:null,addToQueueRuntime:true},preferredInnerHeight:{_cached:true,defaultValue:null,addToQueueRuntime:true},preferredBoxWidth:{_cached:true,defaultValue:null},preferredBoxHeight:{_cached:true,defaultValue:null},hasPercentX:{_cached:true,defaultValue:false},hasPercentY:{_cached:true,defaultValue:false},hasAutoX:{_cached:true,defaultValue:false},hasAutoY:{_cached:true,defaultValue:false},hasFlexX:{_cached:true,defaultValue:false},hasFlexY:{_cached:true,defaultValue:false}},members:{_computedLeftValue:null,_computedLeftParsed:null,_computedLeftType:null,_computedLeftTypeNull:true,_computedLeftTypePixel:false,_computedLeftTypePercent:false,_computedLeftTypeAuto:false,_computedLeftTypeFlex:false,_computedRightValue:null,_computedRightParsed:null,_computedRightType:null,_computedRightTypeNull:true,_computedRightTypePixel:false,_computedRightTypePercent:false,_computedRightTypeAuto:false,_computedRightTypeFlex:false,_computedTopValue:null,_computedTopParsed:null,_computedTopType:null,_computedTopTypeNull:true,_computedTopTypePixel:false,_computedTopTypePercent:false,_computedTopTypeAuto:false,_computedTopTypeFlex:false,_computedBottomValue:null,_computedBottomParsed:null,_computedBottomType:null,_computedBottomTypeNull:true,_computedBottomTypePixel:false,_computedBottomTypePercent:false,_computedBottomTypeAuto:false,_computedBottomTypeFlex:false,_computedWidthValue:null,_computedWidthParsed:null,_computedWidthType:null,_computedWidthTypeNull:true,_computedWidthTypePixel:false,_computedWidthTypePercent:false,_computedWidthTypeAuto:false,_computedWidthTypeFlex:false,_computedMinWidthValue:null,_computedMinWidthParsed:null,_computedMinWidthType:null,_computedMinWidthTypeNull:true,_computedMinWidthTypePixel:false,_computedMinWidthTypePercent:false,_computedMinWidthTypeAuto:false,_computedMinWidthTypeFlex:false,_computedMaxWidthValue:null,_computedMaxWidthParsed:null,_computedMaxWidthType:null,_computedMaxWidthTypeNull:true,_computedMaxWidthTypePixel:false,_computedMaxWidthTypePercent:false,_computedMaxWidthTypeAuto:false,_computedMaxWidthTypeFlex:false,_computedHeightValue:null,_computedHeightParsed:null,_computedHeightType:null,_computedHeightTypeNull:true,_computedHeightTypePixel:false,_computedHeightTypePercent:false,_computedHeightTypeAuto:false,_computedHeightTypeFlex:false,_computedMinHeightValue:null,_computedMinHeightParsed:null,_computedMinHeightType:null,_computedMinHeightTypeNull:true,_computedMinHeightTypePixel:false,_computedMinHeightTypePercent:false,_computedMinHeightTypeAuto:false,_computedMinHeightTypeFlex:false,_computedMaxHeightValue:null,_computedMaxHeightParsed:null,_computedMaxHeightType:null,_computedMaxHeightTypeNull:true,_computedMaxHeightTypePixel:false,_computedMaxHeightTypePercent:false,_computedMaxHeightTypeAuto:false,_computedMaxHeightTypeFlex:false,_applyLeft:function($0,$1){this._unitDetectionPixelPercent($[11],$0);this.addToQueue($[11]);},_applyRight:function($0,$1){this._unitDetectionPixelPercent($[9],$0);this.addToQueue($[9]);},_applyTop:function($0,$1){this._unitDetectionPixelPercent($[20],$0);this.addToQueue($[20]);},_applyBottom:function($0,$1){this._unitDetectionPixelPercent($[17],$0);this.addToQueue($[17]);},_applyWidth:function($0,$1){this._unitDetectionPixelPercentAutoFlex($[30],$0);this.addToQueue($[30]);},_applyMinWidth:function($0,$1){this._unitDetectionPixelPercentAuto($[73],$0);this.addToQueue($[73]);},_applyMaxWidth:function($0,$1){this._unitDetectionPixelPercentAuto($[74],$0);this.addToQueue($[74]);},_applyHeight:function($0,$1){this._unitDetectionPixelPercentAutoFlex($[31],$0);this.addToQueue($[31]);},_applyMinHeight:function($0,$1){this._unitDetectionPixelPercentAuto($[77],$0);this.addToQueue($[77]);},_applyMaxHeight:function($0,$1){this._unitDetectionPixelPercentAuto($[75],$0);this.addToQueue($[75]);},isMaterialized:function(){var $0=this._element;return (this._initialLayoutDone&&this._isDisplayable&&qx.html.Style.getStyleProperty($0,$[158])!=$[7]&&qx.html.Style.getStyleProperty($0,$[1139])!=$[36]&&$0.offsetWidth>0&&$0.offsetHeight>0);},pack:function(){this.setWidth(this.getPreferredBoxWidth());this.setHeight(this.getPreferredBoxHeight());},auto:function(){this.setWidth($[3]);this.setHeight($[3]);},getChildren:qx.lang.Function.returnNull,getChildrenLength:qx.lang.Function.returnZero,hasChildren:qx.lang.Function.returnFalse,isEmpty:qx.lang.Function.returnTrue,indexOf:qx.lang.Function.returnNegativeIndex,contains:qx.lang.Function.returnFalse,getVisibleChildren:qx.lang.Function.returnNull,getVisibleChildrenLength:qx.lang.Function.returnZero,hasVisibleChildren:qx.lang.Function.returnFalse,isVisibleEmpty:qx.lang.Function.returnTrue,_hasParent:false,_isDisplayable:false,isDisplayable:function(){return this._isDisplayable;},_checkParent:function($0,$1){if(this.contains($0)){throw new Error("Could not insert myself into a child "+$0+"!");}return $0;},_applyParent:function($0,$1){if($1){var $2=$1.getChildren().indexOf(this);this._computedWidthValue=this._computedMinWidthValue=this._computedMaxWidthValue=this._computedLeftValue=this._computedRightValue=null;this._computedHeightValue=this._computedMinHeightValue=this._computedMaxHeightValue=this._computedTopValue=this._computedBottomValue=null;this._cachedBoxWidth=this._cachedInnerWidth=this._cachedOuterWidth=null;this._cachedBoxHeight=this._cachedInnerHeight=this._cachedOuterHeight=null;qx.lang.Array.removeAt($1.getChildren(),$2);$1._invalidateVisibleChildren();$1._removeChildFromChildrenQueue(this);$1.getLayoutImpl().updateChildrenOnRemoveChild(this,$2);$1.addToJobQueue($[390]);$1._invalidatePreferredInnerDimensions();this._oldParent=$1;}if($0){this._hasParent=true;if(typeof this._insertIndex==$[50]){qx.lang.Array.insertAt($0.getChildren(),this,this._insertIndex);delete this._insertIndex;}else{$0.getChildren().push(this);}}else{this._hasParent=false;}qx.core.Property.refresh(this);return this._handleDisplayable($[342]);},_applyDisplay:function($0,$1){return this._handleDisplayable($[158]);},_handleDisplayable:function($0){var $1=this._computeDisplayable();if(this._isDisplayable==$1&&!($1&&$0==$[342])){return true;}this._isDisplayable=$1;var $2=this.getParent();if($2){$2._invalidateVisibleChildren();$2._invalidatePreferredInnerDimensions();}if($0&&this._oldParent&&this._oldParent._initialLayoutDone){var $3=this.getElement();if($3){if(this.getVisibility()){this._beforeDisappear();}this._beforeRemoveDom();try{this._oldParent._getTargetNode().removeChild($3);}catch(e){}this._afterRemoveDom();if(this.getVisibility()){this._afterDisappear();}}delete this._oldParent;}if($1){if($2._initialLayoutDone){$2.getLayoutImpl().updateChildrenOnAddChild(this,$2.getChildren().indexOf(this));$2.addToJobQueue($[1322]);}this.addToLayoutChanges($[1662]);this.addToCustomQueues($0);if(this.getVisibility()){this._beforeAppear();}if(!this._isCreated){qx.ui.core.Widget.addToGlobalElementQueue(this);}qx.ui.core.Widget.addToGlobalStateQueue(this);if(!qx.lang.Object.isEmpty(this._jobQueue)){qx.ui.core.Widget.addToGlobalJobQueue(this);}if(!qx.lang.Object.isEmpty(this._childrenQueue)){qx.ui.core.Widget.addToGlobalLayoutQueue(this);}}else{qx.ui.core.Widget.removeFromGlobalElementQueue(this);qx.ui.core.Widget.removeFromGlobalStateQueue(this);qx.ui.core.Widget.removeFromGlobalJobQueue(this);qx.ui.core.Widget.removeFromGlobalLayoutQueue(this);this.removeFromCustomQueues($0);if($2&&$0){if(this.getVisibility()){this._beforeDisappear();}if($2._initialLayoutDone&&this._initialLayoutDone){$2.getLayoutImpl().updateChildrenOnRemoveChild(this,$2.getChildren().indexOf(this));$2.addToJobQueue($[390]);this._beforeRemoveDom();var $4=this.getElement().parentNode;if($4){$4.removeChild(this.getElement());if($4&&$4!==$2._getTargetNode()){this.warn("Unexpected parent node: "+$4);}}this._afterRemoveDom();}$2._removeChildFromChildrenQueue(this);if(this.getVisibility()){this._afterDisappear();}}}this._handleDisplayableCustom($1,$2,$0);return true;},addToCustomQueues:qx.lang.Function.returnTrue,removeFromCustomQueues:qx.lang.Function.returnTrue,_handleDisplayableCustom:qx.lang.Function.returnTrue,_computeDisplayable:function(){return this.getDisplay()&&this.getParent()&&this.getParent()._isDisplayable?true:false;},_beforeAppear:function(){this.createDispatchEvent($[708]);},_afterAppear:function(){this._isSeeable=true;this.createDispatchEvent($[193]);},_beforeDisappear:function(){this.removeState($[43]);if(qx.Class.isDefined($[303])){this.removeState($[14]);this.removeState($[35]);}this.createDispatchEvent($[402]);},_afterDisappear:function(){this._isSeeable=false;this.createDispatchEvent($[272]);},_isSeeable:false,isSeeable:function(){return this._isSeeable;},isAppearRelevant:function(){return this.getVisibility()&&this._isDisplayable;},_beforeInsertDom:function(){this.createDispatchEvent($[1218]);},_afterInsertDom:function(){this.createDispatchEvent($[1518]);},_beforeRemoveDom:function(){this.createDispatchEvent($[1286]);},_afterRemoveDom:function(){this.createDispatchEvent($[1051]);},_applyVisibility:function($0,$1){if($0){if(this._isDisplayable){this._beforeAppear();}this.removeStyleProperty($[158]);if(this._isDisplayable){this._afterAppear();}}else{if(this._isDisplayable){this._beforeDisappear();}this.setStyleProperty($[158],$[7]);if(this._isDisplayable){this._afterDisappear();}}},show:function(){this.setVisibility(true);this.setDisplay(true);},hide:function(){this.setVisibility(false);},connect:function(){this.setDisplay(true);},disconnect:function(){this.setDisplay(false);},_isCreated:false,_getTargetNode:qx.core.Variant.select($[1],{"gecko":function(){return this._element;},"default":function(){return this._borderElement||this._element;}}),addToDocument:function(){qx.ui.core.ClientDocument.getInstance().add(this);},isCreated:function(){return this._isCreated;},_createElementImpl:function(){this.setElement(this.getTopLevelWidget().getDocumentElement().createElement($[67]));},_applyElement:function($0,$1){this._isCreated=$0!=null;if($1){$1.qx_Widget=null;}if($0){$0.qx_Widget=this;$0.style.position=$[54];this._element=$0;this._style=$0.style;this._applyStyleProperties($0);this._applyHtmlProperties($0);this._applyHtmlAttributes($0);this._applyElementData($0);this.createDispatchEvent($[1127]);this.addToStateQueue();}else{this._element=this._style=null;}},addToJobQueue:function($0){if(this._hasParent){qx.ui.core.Widget.addToGlobalJobQueue(this);}if(!this._jobQueue){this._jobQueue={};}this._jobQueue[$0]=true;return true;},_flushJobQueue:function($0){try{var $1=this._jobQueue;var $2=this.getParent();if(!$2||qx.lang.Object.isEmpty($1)){return;}var $3=this instanceof qx.ui.core.Parent?this.getLayoutImpl():null;if($3){$3.updateSelfOnJobQueueFlush($1);}}catch(ex){this.error("Flushing job queue (prechecks#1) failed",ex);}try{var $4=false;var $5=$1.marginLeft||$1.marginRight;var $6=$1.marginTop||$1.marginBottom;var $7=$1.frameWidth;var $8=$1.frameHeight;var $9=($1.frameWidth||$1.preferredInnerWidth)&&this._recomputePreferredBoxWidth();var $a=($1.frameHeight||$1.preferredInnerHeight)&&this._recomputePreferredBoxHeight();if($9){var $b=this.getPreferredBoxWidth();if(this._computedWidthTypeAuto){this._computedWidthValue=$b;$1.width=true;}if(this._computedMinWidthTypeAuto){this._computedMinWidthValue=$b;$1.minWidth=true;}if(this._computedMaxWidthTypeAuto){this._computedMaxWidthValue=$b;$1.maxWidth=true;}}if($a){var $b=this.getPreferredBoxHeight();if(this._computedHeightTypeAuto){this._computedHeightValue=$b;$1.height=true;}if(this._computedMinHeightTypeAuto){this._computedMinHeightValue=$b;$1.minHeight=true;}if(this._computedMaxHeightTypeAuto){this._computedMaxHeightValue=$b;$1.maxHeight=true;}}if(($1.width||$1.minWidth||$1.maxWidth||$1.left||$1.right)&&this._recomputeBoxWidth()){$5=$7=true;}if(($1.height||$1.minHeight||$1.maxHeight||$1.top||$1.bottom)&&this._recomputeBoxHeight()){$6=$8=true;}}catch(ex){this.error("Flushing job queue (recompute#2) failed",ex);}try{if(($5&&this._recomputeOuterWidth())||$9){$2._invalidatePreferredInnerWidth();$2.getLayoutImpl().updateSelfOnChildOuterWidthChange(this);$4=true;}if(($6&&this._recomputeOuterHeight())||$a){$2._invalidatePreferredInnerHeight();$2.getLayoutImpl().updateSelfOnChildOuterHeightChange(this);$4=true;}if($4){$2._flushJobQueue();}}catch(ex){this.error("Flushing job queue (parentsignals#3) failed",ex);}try{$2._addChildToChildrenQueue(this);for(var $c in $1){this._layoutChanges[$c]=true;}}catch(ex){this.error("Flushing job queue (addjobs#4) failed",ex);}try{if(this instanceof qx.ui.core.Parent&&($1.paddingLeft||$1.paddingRight||$1.paddingTop||$1.paddingBottom)){var $d=this.getChildren(),$e=$d.length;if($1.paddingLeft){for(var $c=0;$c<$e;$c++){$d[$c].addToLayoutChanges($[1354]);}}if($1.paddingRight){for(var $c=0;$c<$e;$c++){$d[$c].addToLayoutChanges($[878]);}}if($1.paddingTop){for(var $c=0;$c<$e;$c++){$d[$c].addToLayoutChanges($[1697]);}}if($1.paddingBottom){for(var $c=0;$c<$e;$c++){$d[$c].addToLayoutChanges($[724]);}}}if($7){this._recomputeInnerWidth();}if($8){this._recomputeInnerHeight();}if(this._initialLayoutDone){if($3){$3.updateChildrenOnJobQueueFlush($1);}}}catch(ex){this.error("Flushing job queue (childrensignals#5) failed",ex);}delete this._jobQueue;},_isWidthEssential:qx.lang.Function.returnTrue,_isHeightEssential:qx.lang.Function.returnTrue,_computeBoxWidthFallback:function(){return 0;},_computeBoxHeightFallback:function(){return 0;},_computeBoxWidth:function(){var $0=this.getParent().getLayoutImpl();return Math.max(0,qx.lang.Number.limit($0.computeChildBoxWidth(this),this.getMinWidthValue(),this.getMaxWidthValue()));},_computeBoxHeight:function(){var $0=this.getParent().getLayoutImpl();return Math.max(0,qx.lang.Number.limit($0.computeChildBoxHeight(this),this.getMinHeightValue(),this.getMaxHeightValue()));},_computeOuterWidth:function(){return Math.max(0,(this.getMarginLeft()+this.getBoxWidth()+this.getMarginRight()));},_computeOuterHeight:function(){return Math.max(0,(this.getMarginTop()+this.getBoxHeight()+this.getMarginBottom()));},_computeInnerWidth:function(){return Math.max(0,this.getBoxWidth()-this.getFrameWidth());},_computeInnerHeight:function(){return Math.max(0,this.getBoxHeight()-this.getFrameHeight());},getNeededWidth:function(){var $0=this.getParent().getLayoutImpl();return Math.max(0,$0.computeChildNeededWidth(this));},getNeededHeight:function(){var $0=this.getParent().getLayoutImpl();return Math.max(0,$0.computeChildNeededHeight(this));},_recomputeFlexX:function(){if(!this.getHasFlexX()){return false;}if(this._computedWidthTypeFlex){this._computedWidthValue=null;this.addToLayoutChanges($[30]);}return true;},_recomputeFlexY:function(){if(!this.getHasFlexY()){return false;}if(this._computedHeightTypeFlex){this._computedHeightValue=null;this.addToLayoutChanges($[31]);}return true;},_recomputePercentX:function(){if(!this.getHasPercentX()){return false;}if(this._computedWidthTypePercent){this._computedWidthValue=null;this.addToLayoutChanges($[30]);}if(this._computedMinWidthTypePercent){this._computedMinWidthValue=null;this.addToLayoutChanges($[73]);}if(this._computedMaxWidthTypePercent){this._computedMaxWidthValue=null;this.addToLayoutChanges($[74]);}if(this._computedLeftTypePercent){this._computedLeftValue=null;this.addToLayoutChanges($[11]);}if(this._computedRightTypePercent){this._computedRightValue=null;this.addToLayoutChanges($[9]);}return true;},_recomputePercentY:function(){if(!this.getHasPercentY()){return false;}if(this._computedHeightTypePercent){this._computedHeightValue=null;this.addToLayoutChanges($[31]);}if(this._computedMinHeightTypePercent){this._computedMinHeightValue=null;this.addToLayoutChanges($[77]);}if(this._computedMaxHeightTypePercent){this._computedMaxHeightValue=null;this.addToLayoutChanges($[75]);}if(this._computedTopTypePercent){this._computedTopValue=null;this.addToLayoutChanges($[20]);}if(this._computedBottomTypePercent){this._computedBottomValue=null;this.addToLayoutChanges($[17]);}return true;},_recomputeRangeX:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function(){if(this._computedLeftTypeNull||this._computedRightTypeNull){return false;}this.addToLayoutChanges($[30]);return true;},"default":function(){return !(this._computedLeftTypeNull||this._computedRightTypeNull);}}),_recomputeRangeY:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function(){if(this._computedTopTypeNull||this._computedBottomTypeNull){return false;}this.addToLayoutChanges($[31]);return true;},"default":function(){return !(this._computedTopTypeNull||this._computedBottomTypeNull);}}),_recomputeStretchingX:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function(){if(this.getAllowStretchX()&&this._computedWidthTypeNull){this._computedWidthValue=null;this.addToLayoutChanges($[30]);return true;}return false;},"default":function(){if(this.getAllowStretchX()&&this._computedWidthTypeNull){return true;}return false;}}),_recomputeStretchingY:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function(){if(this.getAllowStretchY()&&this._computedHeightTypeNull){this._computedHeightValue=null;this.addToLayoutChanges($[31]);return true;}return false;},"default":function(){if(this.getAllowStretchY()&&this._computedHeightTypeNull){return true;}return false;}}),_computeValuePixel:function($0){return Math.round($0);},_computeValuePixelLimit:function($0){return Math.max(0,this._computeValuePixel($0));},_computeValuePercentX:function($0){return Math.round(this.getParent().getInnerWidthForChild(this)*$0*0.01);},_computeValuePercentXLimit:function($0){return Math.max(0,this._computeValuePercentX($0));},_computeValuePercentY:function($0){return Math.round(this.getParent().getInnerHeightForChild(this)*$0*0.01);},_computeValuePercentYLimit:function($0){return Math.max(0,this._computeValuePercentY($0));},getWidthValue:function(){if(this._computedWidthValue!=null){return this._computedWidthValue;}switch(this._computedWidthType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedWidthParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedWidthParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedWidthValue=this.getPreferredBoxWidth();case qx.ui.core.Widget.TYPE_FLEX:if(this.getParent().getLayoutImpl().computeChildrenFlexWidth===undefined){throw new Error("Widget "+this+": having horizontal flex size (width="+this.getWidth()+") but parent layout "+this.getParent()+" does not support it");}this.getParent().getLayoutImpl().computeChildrenFlexWidth();return this._computedWidthValue=this._computedWidthFlexValue;}return null;},getMinWidthValue:function(){if(this._computedMinWidthValue!=null){return this._computedMinWidthValue;}switch(this._computedMinWidthType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedMinWidthParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedMinWidthParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedMinWidthValue=this.getPreferredBoxWidth();}return null;},getMaxWidthValue:function(){if(this._computedMaxWidthValue!=null){return this._computedMaxWidthValue;}switch(this._computedMaxWidthType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedMaxWidthParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedMaxWidthParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedMaxWidthValue=this.getPreferredBoxWidth();}return null;},getLeftValue:function(){if(this._computedLeftValue!=null){return this._computedLeftValue;}switch(this._computedLeftType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedLeftValue=this._computeValuePixel(this._computedLeftParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedLeftValue=this._computeValuePercentX(this._computedLeftParsed);}return null;},getRightValue:function(){if(this._computedRightValue!=null){return this._computedRightValue;}switch(this._computedRightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedRightValue=this._computeValuePixel(this._computedRightParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedRightValue=this._computeValuePercentX(this._computedRightParsed);}return null;},getHeightValue:function(){if(this._computedHeightValue!=null){return this._computedHeightValue;}switch(this._computedHeightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedHeightValue=this._computeValuePixelLimit(this._computedHeightParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedHeightValue=this._computeValuePercentYLimit(this._computedHeightParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedHeightValue=this.getPreferredBoxHeight();case qx.ui.core.Widget.TYPE_FLEX:if(this.getParent().getLayoutImpl().computeChildrenFlexHeight===undefined){throw new Error("Widget "+this+": having vertical flex size (height="+this.getHeight()+") but parent layout "+this.getParent()+" does not support it");}this.getParent().getLayoutImpl().computeChildrenFlexHeight();return this._computedHeightValue=this._computedHeightFlexValue;}return null;},getMinHeightValue:function(){if(this._computedMinHeightValue!=null){return this._computedMinHeightValue;}switch(this._computedMinHeightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedMinHeightValue=this._computeValuePixelLimit(this._computedMinHeightParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedMinHeightValue=this._computeValuePercentYLimit(this._computedMinHeightParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedMinHeightValue=this.getPreferredBoxHeight();}return null;},getMaxHeightValue:function(){if(this._computedMaxHeightValue!=null){return this._computedMaxHeightValue;}switch(this._computedMaxHeightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedMaxHeightValue=this._computeValuePixelLimit(this._computedMaxHeightParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedMaxHeightValue=this._computeValuePercentYLimit(this._computedMaxHeightParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedMaxHeightValue=this.getPreferredBoxHeight();}return null;},getTopValue:function(){if(this._computedTopValue!=null){return this._computedTopValue;}switch(this._computedTopType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedTopValue=this._computeValuePixel(this._computedTopParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedTopValue=this._computeValuePercentY(this._computedTopParsed);}return null;},getBottomValue:function(){if(this._computedBottomValue!=null){return this._computedBottomValue;}switch(this._computedBottomType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedBottomValue=this._computeValuePixel(this._computedBottomParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedBottomValue=this._computeValuePercentY(this._computedBottomParsed);}return null;},_computeFrameWidth:function(){var $0=this._cachedBorderLeft+this.getPaddingLeft()+this.getPaddingRight()+this._cachedBorderRight;switch(this.getOverflow()){case $[26]:case $[111]:$0+=qx.ui.core.Widget.SCROLLBAR_SIZE;break;case $[3]:break;}return $0;},_computeFrameHeight:function(){var $0=this._cachedBorderTop+this.getPaddingTop()+this.getPaddingBottom()+this._cachedBorderBottom;switch(this.getOverflow()){case $[26]:case $[112]:$0+=qx.ui.core.Widget.SCROLLBAR_SIZE;break;case $[3]:break;}return $0;},_invalidateFrameDimensions:function(){this._invalidateFrameWidth();this._invalidateFrameHeight();},_invalidatePreferredInnerDimensions:function(){this._invalidatePreferredInnerWidth();this._invalidatePreferredInnerHeight();},_computePreferredBoxWidth:function(){try{return Math.max(0,this.getPreferredInnerWidth()+this.getFrameWidth());}catch(ex){this.error("_computePreferredBoxWidth failed",ex);}},_computePreferredBoxHeight:function(){try{return Math.max(0,this.getPreferredInnerHeight()+this.getFrameHeight());}catch(ex){this.error("_computePreferredBoxHeight failed",ex);}},_initialLayoutDone:false,addToLayoutChanges:function($0){if(this._isDisplayable){this.getParent()._addChildToChildrenQueue(this);}return this._layoutChanges[$0]=true;},addToQueue:function($0){this._initialLayoutDone?this.addToJobQueue($0):this.addToLayoutChanges($0);},addToQueueRuntime:function($0){return !this._initialLayoutDone||this.addToJobQueue($0);},_computeHasPercentX:function(){return (this._computedLeftTypePercent||this._computedWidthTypePercent||this._computedMinWidthTypePercent||this._computedMaxWidthTypePercent||this._computedRightTypePercent);},_computeHasPercentY:function(){return (this._computedTopTypePercent||this._computedHeightTypePercent||this._computedMinHeightTypePercent||this._computedMaxHeightTypePercent||this._computedBottomTypePercent);},_computeHasAutoX:function(){return (this._computedWidthTypeAuto||this._computedMinWidthTypeAuto||this._computedMaxWidthTypeAuto);},_computeHasAutoY:function(){return (this._computedHeightTypeAuto||this._computedMinHeightTypeAuto||this._computedMaxHeightTypeAuto);},_computeHasFlexX:function(){return this._computedWidthTypeFlex;},_computeHasFlexY:function(){return this._computedHeightTypeFlex;},_evalUnitsPixelPercentAutoFlex:function($0){switch($0){case $[3]:return qx.ui.core.Widget.TYPE_AUTO;case Infinity:case -Infinity:return qx.ui.core.Widget.TYPE_NULL;}switch(typeof $0){case $[50]:return isNaN($0)?qx.ui.core.Widget.TYPE_NULL:qx.ui.core.Widget.TYPE_PIXEL;case $[8]:return $0.indexOf($[173])!=-1?qx.ui.core.Widget.TYPE_PERCENT:$0.indexOf($[140])!=-1?qx.ui.core.Widget.TYPE_FLEX:qx.ui.core.Widget.TYPE_NULL;}return qx.ui.core.Widget.TYPE_NULL;},_evalUnitsPixelPercentAuto:function($0){switch($0){case $[3]:return qx.ui.core.Widget.TYPE_AUTO;case Infinity:case -Infinity:return qx.ui.core.Widget.TYPE_NULL;}switch(typeof $0){case $[50]:return isNaN($0)?qx.ui.core.Widget.TYPE_NULL:qx.ui.core.Widget.TYPE_PIXEL;case $[8]:return $0.indexOf($[173])!=-1?qx.ui.core.Widget.TYPE_PERCENT:qx.ui.core.Widget.TYPE_NULL;}return qx.ui.core.Widget.TYPE_NULL;},_evalUnitsPixelPercent:function($0){switch($0){case Infinity:case -Infinity:return qx.ui.core.Widget.TYPE_NULL;}switch(typeof $0){case $[50]:return isNaN($0)?qx.ui.core.Widget.TYPE_NULL:qx.ui.core.Widget.TYPE_PIXEL;case $[8]:return $0.indexOf($[173])!=-1?qx.ui.core.Widget.TYPE_PERCENT:qx.ui.core.Widget.TYPE_NULL;}return qx.ui.core.Widget.TYPE_NULL;},_unitDetectionPixelPercentAutoFlex:function($0,$1){var $2=qx.ui.core.Widget.layoutPropertyTypes[$0];var $3=$2.dataType;var $4=$2.dataParsed;var $5=$2.dataValue;var $6=$2.typePixel;var $7=$2.typePercent;var $8=$2.typeAuto;var $9=$2.typeFlex;var $a=$2.typeNull;var $b=this[$7];var $c=this[$8];var $d=this[$9];switch(this[$3]=this._evalUnitsPixelPercentAutoFlex($1)){case qx.ui.core.Widget.TYPE_PIXEL:this[$6]=true;this[$7]=this[$8]=this[$9]=this[$a]=false;this[$4]=this[$5]=Math.round($1);break;case qx.ui.core.Widget.TYPE_PERCENT:this[$7]=true;this[$6]=this[$8]=this[$9]=this[$a]=false;this[$4]=parseFloat($1);this[$5]=null;break;case qx.ui.core.Widget.TYPE_AUTO:this[$8]=true;this[$6]=this[$7]=this[$9]=this[$a]=false;this[$4]=this[$5]=null;break;case qx.ui.core.Widget.TYPE_FLEX:this[$9]=true;this[$6]=this[$7]=this[$8]=this[$a]=false;this[$4]=parseFloat($1);this[$5]=null;break;default:this[$a]=true;this[$6]=this[$7]=this[$8]=this[$9]=false;this[$4]=this[$5]=null;break;}if($b!=this[$7]){switch($0){case $[73]:case $[74]:case $[30]:case $[11]:case $[9]:this._invalidateHasPercentX();break;case $[75]:case $[77]:case $[31]:case $[20]:case $[17]:this._invalidateHasPercentY();break;}}if($c!=this[$8]){switch($0){case $[73]:case $[74]:case $[30]:this._invalidateHasAutoX();break;case $[77]:case $[75]:case $[31]:this._invalidateHasAutoY();break;}}if($d!=this[$9]){switch($0){case $[30]:this._invalidateHasFlexX();break;case $[31]:this._invalidateHasFlexY();break;}}},_unitDetectionPixelPercentAuto:function($0,$1){var $2=qx.ui.core.Widget.layoutPropertyTypes[$0];var $3=$2.dataType;var $4=$2.dataParsed;var $5=$2.dataValue;var $6=$2.typePixel;var $7=$2.typePercent;var $8=$2.typeAuto;var $9=$2.typeNull;var $a=this[$7];var $b=this[$8];switch(this[$3]=this._evalUnitsPixelPercentAuto($1)){case qx.ui.core.Widget.TYPE_PIXEL:this[$6]=true;this[$7]=this[$8]=this[$9]=false;this[$4]=this[$5]=Math.round($1);break;case qx.ui.core.Widget.TYPE_PERCENT:this[$7]=true;this[$6]=this[$8]=this[$9]=false;this[$4]=parseFloat($1);this[$5]=null;break;case qx.ui.core.Widget.TYPE_AUTO:this[$8]=true;this[$6]=this[$7]=this[$9]=false;this[$4]=this[$5]=null;break;default:this[$9]=true;this[$6]=this[$7]=this[$8]=false;this[$4]=this[$5]=null;break;}if($a!=this[$7]){switch($0){case $[73]:case $[74]:case $[30]:case $[11]:case $[9]:this._invalidateHasPercentX();break;case $[77]:case $[75]:case $[31]:case $[20]:case $[17]:this._invalidateHasPercentY();break;}}if($b!=this[$8]){switch($0){case $[73]:case $[74]:case $[30]:this._invalidateHasAutoX();break;case $[77]:case $[75]:case $[31]:this._invalidateHasAutoY();break;}}},_unitDetectionPixelPercent:function($0,$1){var $2=qx.ui.core.Widget.layoutPropertyTypes[$0];var $3=$2.dataType;var $4=$2.dataParsed;var $5=$2.dataValue;var $6=$2.typePixel;var $7=$2.typePercent;var $8=$2.typeNull;var $9=this[$7];switch(this[$3]=this._evalUnitsPixelPercent($1)){case qx.ui.core.Widget.TYPE_PIXEL:this[$6]=true;this[$7]=this[$8]=false;this[$4]=this[$5]=Math.round($1);break;case qx.ui.core.Widget.TYPE_PERCENT:this[$7]=true;this[$6]=this[$8]=false;this[$4]=parseFloat($1);this[$5]=null;break;default:this[$8]=true;this[$6]=this[$7]=false;this[$4]=this[$5]=null;break;}if($9!=this[$7]){switch($0){case $[73]:case $[74]:case $[30]:case $[11]:case $[9]:this._invalidateHasPercentX();break;case $[77]:case $[75]:case $[31]:case $[20]:case $[17]:this._invalidateHasPercentY();break;}}},getTopLevelWidget:function(){return this._hasParent?this.getParent().getTopLevelWidget():null;},moveSelfBefore:function($0){this.getParent().addBefore(this,$0);},moveSelfAfter:function($0){this.getParent().addAfter(this,$0);},moveSelfToBegin:function(){this.getParent().addAtBegin(this);},moveSelfToEnd:function(){this.getParent().addAtEnd(this);},getPreviousSibling:function(){var $0=this.getParent();if($0==null){return null;}var $1=$0.getChildren();return $1[$1.indexOf(this)-1];},getNextSibling:function(){var $0=this.getParent();if($0==null){return null;}var $1=$0.getChildren();return $1[$1.indexOf(this)+1];},getPreviousVisibleSibling:function(){if(!this._hasParent){return null;}var $0=this.getParent().getVisibleChildren();return $0[$0.indexOf(this)-1];},getNextVisibleSibling:function(){if(!this._hasParent){return null;}var $0=this.getParent().getVisibleChildren();return $0[$0.indexOf(this)+1];},getPreviousActiveSibling:function($0){var $1=qx.ui.core.Widget.getActiveSiblingHelper(this,this.getParent(),-1,$0,null);return $1?$1:this.getParent().getLastActiveChild();},getNextActiveSibling:function($0){var $1=qx.ui.core.Widget.getActiveSiblingHelper(this,this.getParent(),1,$0,null);return $1?$1:this.getParent().getFirstActiveChild();},isFirstChild:function(){return this._hasParent&&this.getParent().getFirstChild()==this;},isLastChild:function(){return this._hasParent&&this.getParent().getLastChild()==this;},isFirstVisibleChild:function(){return this._hasParent&&this.getParent().getFirstVisibleChild()==this;},isLastVisibleChild:function(){return this._hasParent&&this.getParent().getLastVisibleChild()==this;},hasState:function($0){return this.__states&&this.__states[$0]?true:false;},addState:function($0){if(!this.__states){this.__states={};}if(!this.__states[$0]){this.__states[$0]=true;if(this._hasParent){qx.ui.core.Widget.addToGlobalStateQueue(this);}}},removeState:function($0){if(this.__states&&this.__states[$0]){delete this.__states[$0];if(this._hasParent){qx.ui.core.Widget.addToGlobalStateQueue(this);}}},_styleFromMap:function($0){var $1=qx.core.Property.$$method.style;var $2=qx.core.Property.$$method.unstyle;var $3;var $4;for(var $4 in $0){$3=$0[$4];$3===$[65]?this[$2[$4]]():this[$1[$4]]($3);}},_unstyleFromArray:function($0){var $1=qx.core.Property.$$method.unstyle;var $2,$3;for(var $2=0,$3=$0.length;$2<$3;$2++){this[$1[$0[$2]]]();}},_renderAppearance:function(){if(!this.__states){this.__states={};}this._applyStateStyleFocus(this.__states);var $0=this.getAppearance();if($0){try{var $1=qx.theme.manager.Appearance.getInstance().styleFrom($0,this.__states);if($1){this._styleFromMap($1);}}catch(ex){this.error("Could not apply state appearance",ex);}}},_resetAppearanceThemeWrapper:function($0,$1){var $2=this.getAppearance();if($2){var $3=qx.theme.manager.Appearance.getInstance();var $4=$3.styleFromTheme($1,$2,this.__states);var $5=$3.styleFromTheme($0,$2,this.__states);var $6=[];for(var $7 in $4){if($5[$7]===undefined){$6.push($7);}}this._unstyleFromArray($6);this._styleFromMap($5);}},_applyStateStyleFocus:qx.core.Variant.select($[1],{"mshtml":function($0){},"gecko":function($0){if($0.focused){if(!qx.event.handler.FocusHandler.mouseFocus&&!this.getHideFocus()){this.setStyleProperty($[200],$[205]);}}else{this.removeStyleProperty($[200]);}},"default":function($0){if($0.focused){if(!qx.event.handler.FocusHandler.mouseFocus&&!this.getHideFocus()){this.setStyleProperty($[214],$[205]);}}else{this.removeStyleProperty($[214]);}}}),addToStateQueue:function(){qx.ui.core.Widget.addToGlobalStateQueue(this);},recursiveAddToStateQueue:function(){this.addToStateQueue();},_applyAppearance:function($0,$1){if(!this.__states){this.__states={};}var $2=qx.theme.manager.Appearance.getInstance();if($0){var $3=$2.styleFrom($0,this.__states)||{};}if($1){var $4=$2.styleFrom($1,this.__states)||{};var $5=[];for(var $6 in $4){if(!$3||!($6 in $3)){$5.push($6);}}}if($5){this._unstyleFromArray($5);}if($3){this._styleFromMap($3);}},_recursiveAppearanceThemeUpdate:function($0,$1){try{this._resetAppearanceThemeWrapper($0,$1);}catch(ex){this.error("Failed to update appearance theme",ex);}},_applyElementData:function($0){},setHtmlProperty:function($0,$1){if(!this._htmlProperties){this._htmlProperties={};}this._htmlProperties[$0]=$1;if(this._isCreated&&this.getElement()[$0]!=$1){this.getElement()[$0]=$1;}return true;},removeHtmlProperty:qx.core.Variant.select($[1],{"mshtml":function($0){if(!this._htmlProperties){return;}delete this._htmlProperties[$0];if(this._isCreated){this.getElement().removeAttribute($0);}return true;},"default":function($0){if(!this._htmlProperties){return;}delete this._htmlProperties[$0];if(this._isCreated){this.getElement().removeAttribute($0);delete this.getElement()[$0];}return true;}}),getHtmlProperty:function($0){if(!this._htmlProperties){return $[0];}return this._htmlProperties[$0]||$[0];},_applyHtmlProperties:function($0){var $1=this._htmlProperties;if($1){var $2;for($2 in $1){$0[$2]=$1[$2];}}},_generateHtmlId:function(){var $0=this.classname+$[24]+qx.ui.core.Widget._idCounter++;this.debug("setting autogenerated HTML id to "+$0);this.setHtmlProperty($[928],$0);},setHtmlAttribute:function($0,$1){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[1057]);if(!this._htmlAttributes){this._htmlAttributes={};}this._htmlAttributes[$0]=$1;if(this._isCreated){this.getElement().setAttribute($0,$1);}return true;},removeHtmlAttribute:function($0){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[588]);if(!this._htmlAttributes){return;}delete this._htmlAttributes[$0];if(this._isCreated){this.getElement().removeAttribute($0);}return true;},getHtmlAttribute:function($0){if(!this._htmlAttributes){return $[0];}return this._htmlAttributes[$0]||$[0];},_applyHtmlAttributes:function($0){var $1=this._htmlAttributes;if($1){var $2;for($2 in $1){$0.setAttribute($2,$1[$2]);}}},getStyleProperty:function($0){if(!this._styleProperties){return $[0];}return this._styleProperties[$0]||$[0];},__outerElementStyleProperties:{cursor:true,zIndex:true,filter:true,display:true,visibility:true},setStyleProperty:function($0,$1){if(!this._styleProperties){this._styleProperties={};}this._styleProperties[$0]=$1;if(this._isCreated){var $2=this.__outerElementStyleProperties[$0]?this.getElement():this._getTargetNode();if($2){$2.style[$0]=($1==null)?$[0]:$1;}}},removeStyleProperty:function($0){if(!this._styleProperties){return;}delete this._styleProperties[$0];if(this._isCreated){var $1=this.__outerElementStyleProperties[$0]?this.getElement():this._getTargetNode();if($1){$1.style[$0]=$[0];}}},_applyStyleProperties:function($0){var $1=this._styleProperties;if(!$1){return;}var $2;var $3=$0;var $4=this._getTargetNode();var $0;var $5;for($2 in $1){$0=this.__outerElementStyleProperties[$2]?$3:$4;$5=$1[$2];$0.style[$2]=($5==null)?$[0]:$5;}},_applyEnabled:function($0,$1){if($0===false){this.addState($[185]);this.removeState($[43]);if(qx.Class.isDefined($[303])){this.removeState($[35]);this.removeState($[14]);}}else{this.removeState($[185]);}},isFocusable:function(){return this.getEnabled()&&this.isSeeable()&&this.getTabIndex()>=0&&this.getTabIndex()!=null;},isFocusRoot:function(){return false;},getFocusRoot:function(){if(this._hasParent){return this.getParent().getFocusRoot();}return null;},getActiveChild:function(){var $0=this.getFocusRoot();if($0){return $0.getActiveChild();}return null;},_ontabfocus:qx.lang.Function.returnTrue,_applyFocused:function($0,$1){if(!this.isCreated()){return;}var $2=this.getFocusRoot();if($2){if($0){$2.setFocusedChild(this);this._visualizeFocus();}else{if($2.getFocusedChild()==this){$2.setFocusedChild(null);}this._visualizeBlur();}}},_applyHideFocus:qx.core.Variant.select($[1],{"mshtml":function($0,$1){this.setHtmlProperty($[1668],$0);},"default":qx.lang.Function.returnTrue}),_visualizeBlur:function(){if(this.getEnableElementFocus()&&(!this.getFocusRoot().getFocusedChild()||(this.getFocusRoot().getFocusedChild()&&this.getFocusRoot().getFocusedChild().getEnableElementFocus()))){try{this.getElement().blur();}catch(ex){}}this.removeState($[224]);},_visualizeFocus:function(){if(!qx.event.handler.FocusHandler.mouseFocus&&this.getEnableElementFocus()){try{this.getElement().focus();}catch(ex){}}this.addState($[224]);},focus:function(){delete qx.event.handler.FocusHandler.mouseFocus;this.setFocused(true);},blur:function(){delete qx.event.handler.FocusHandler.mouseFocus;this.setFocused(false);},_applyCapture:function($0,$1){var $2=qx.event.handler.EventHandler.getInstance();if($1){$2.setCaptureWidget(null);}else if($0){$2.setCaptureWidget(this);}},_applyZIndex:function($0,$1){if($0==null){this.removeStyleProperty($[309]);}else{this.setStyleProperty($[309],$0);}},_applyTabIndex:qx.core.Variant.select($[1],{"mshtml":function($0,$1){this.setHtmlProperty($[353],$0<0?-1:1);},"gecko":function($0,$1){this.setStyleProperty($[1434],($0<0?$[499]:$[156]));},"default":function($0,$1){this.setStyleProperty($[722],($0<0?$[499]:$[156]));this.setHtmlProperty($[353],$0<0?-1:1);}}),_applySelectable:qx.core.Variant.select($[1],{"mshtml":function($0,$1){},"gecko":function($0,$1){if($0){this.removeStyleProperty($[368]);}else{this.setStyleProperty($[368],$[7]);}},"webkit":function($0,$1){if($0){this.removeStyleProperty($[513]);}else{this.setStyleProperty($[513],$[7]);}},"khtml":function($0,$1){if($0){this.removeStyleProperty($[382]);}else{this.setStyleProperty($[382],$[7]);}},"default":function($0,$1){if($0){return this.removeStyleProperty($[525]);}else{this.setStyleProperty($[525],$[7]);}}}),_applyOpacity:qx.core.Variant.select($[1],{"mshtml":function($0,$1){if($0==null||$0>=1||$0<0){this.removeStyleProperty($[144]);}else{this.setStyleProperty($[144],($[873]+Math.round($0*100)+$[145]));}},"default":function($0,$1){if($0==null||$0>1){if(qx.core.Variant.isSet($[1],$[21])){this.removeStyleProperty($[496]);}else if(qx.core.Variant.isSet($[1],$[157])){this.removeStyleProperty($[358]);}this.removeStyleProperty($[355]);}else{$0=qx.lang.Number.limit($0,0,1);if(qx.core.Variant.isSet($[1],$[21])){this.setStyleProperty($[496],$0);}else if(qx.core.Variant.isSet($[1],$[157])){this.setStyleProperty($[358],$0);}this.setStyleProperty($[355],$0);}}}),__cursorMap:qx.core.Variant.select($[1],{"mshtml":{"cursor":$[204],"ew-resize":$[305],"ns-resize":$[282],"nesw-resize":$[429],"nwse-resize":$[330]},"opera":{"col-resize":$[305],"row-resize":$[282],"ew-resize":$[305],"ns-resize":$[282],"nesw-resize":$[429],"nwse-resize":$[330]},"default":{}}),_applyCursor:function($0,$1){if($0){this.setStyleProperty($[323],this.__cursorMap[$0]||$0);}else{this.removeStyleProperty($[323]);}},_applyCommand:function($0,$1){},_applyBackgroundImage:function($0,$1){var $2=qx.io.image.Manager.getInstance();var $3=qx.io.Alias.getInstance();if($1){$2.hide($1);}if($0){$2.show($0);}$3.connect(this._styleBackgroundImage,this,$0);},_styleBackgroundImage:function($0){$0?this.setStyleProperty($[437],$[1761]+$0+$[145]):this.removeStyleProperty($[437]);},_applyBackgroundRepeat:function($0,$1){$0?this.setStyleProperty($[371],$0):this.removeStyleProperty($[371]);},_applyClip:function($0,$1){return this._compileClipString();},_compileClipString:function(){var $0=this.getClipLeft();var $1=this.getClipTop();var $2=this.getClipWidth();var $3=this.getClipHeight();var $4,$5;if($0==null){$4=($2==null?$[3]:$2+$[38]);$0=$[3];}else{$4=($2==null?$[3]:$0+$2+$[38]);$0=$0+$[38];}if($1==null){$5=($3==null?$[3]:$3+$[38]);$1=$[3];}else{$5=($3==null?$[3]:$1+$3+$[38]);$1=$1+$[38];}return this.setStyleProperty($[977],($[1735]+$1+$[101]+$4+$[101]+$5+$[101]+$0+$[145]));},_applyOverflow:qx.core.Variant.select($[1],{"default":function($0,$1){var $2=$0;var $3=$[63];switch($0){case $[112]:$3=$[175];$2=$[26];break;case $[111]:$3=$[179];$2=$[26];break;}var $4=[$[63],$[175],$[179]];for(var $5=0;$5<$4.length;$5++){if($4[$5]!=$3){this.removeStyleProperty($4[$5]);}}switch($0){case $[112]:this.setStyleProperty($[179],$[36]);break;case $[111]:this.setStyleProperty($[175],$[36]);break;}this._renderOverflow($3,$2,$0,$1);this.addToQueue($[63]);},"gecko":function($0,$1){var $2=$0;var $3=$[63];switch($2){case $[36]:$2=$[1657];break;case $[112]:$2=$[281];break;case $[111]:$2=$[274];break;}this._renderOverflow($3,$2,$0,$1);this.addToQueue($[63]);},"opera":function($0,$1){var $2=$0;var $3=$[63];switch($2){case $[112]:case $[111]:$2=$[26];break;}this._renderOverflow($3,$2,$0,$1);this.addToQueue($[63]);}}),_renderOverflow:function($0,$1,$2,$3){this.setStyleProperty($0,$1||$[0]);this._invalidateFrameWidth();this._invalidateFrameHeight();},getOverflowX:function(){var $0=this.getOverflow();return $0==$[111]?$[36]:$0;},getOverflowY:function(){var $0=this.getOverflow();return $0==$[112]?$[36]:$0;},_applyBackgroundColor:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._styleBackgroundColor,this,$0);},_styleBackgroundColor:function($0){$0?this.setStyleProperty($[487],$0):this.removeStyleProperty($[487]);},_applyTextColor:function($0,$1){},_applyFont:function($0,$1){},_cachedBorderTop:0,_cachedBorderRight:0,_cachedBorderBottom:0,_cachedBorderLeft:0,_applyBorder:function($0,$1){qx.theme.manager.Border.getInstance().connect(this._queueBorder,this,$0);},__borderJobs:{top:$[784],right:$[1411],bottom:$[637],left:$[1491]},_queueBorder:function($0,$1){if(!$1){var $2=this.__borderJobs;for(var $3 in $2){this.addToQueue($2[$3]);}this.__reflowBorderX($0);this.__reflowBorderY($0);}else{if($1===$[11]||$1===$[9]){this.__reflowBorderX($0);}else{this.__reflowBorderY($0);}this.addToQueue(this.__borderJobs[$1]);}this.__borderObject=$0;},__reflowBorderX:function($0){var $1=this._cachedBorderLeft;var $2=this._cachedBorderRight;this._cachedBorderLeft=$0?$0.getWidthLeft():0;this._cachedBorderRight=$0?$0.getWidthRight():0;if(($1+$2)!=(this._cachedBorderLeft+this._cachedBorderRight)){this._invalidateFrameWidth();}},__reflowBorderY:function($0){var $1=this._cachedBorderTop;var $2=this._cachedBorderBottom;this._cachedBorderTop=$0?$0.getWidthTop():0;this._cachedBorderBottom=$0?$0.getWidthBottom():0;if(($1+$2)!=(this._cachedBorderTop+this._cachedBorderBottom)){this._invalidateFrameHeight();}},renderBorder:function($0){var $1=this.__borderObject;if($1){if($0.borderTop){$1.renderTop(this);}if($0.borderRight){$1.renderRight(this);}if($0.borderBottom){$1.renderBottom(this);}if($0.borderLeft){$1.renderLeft(this);}}else{var $2=qx.ui.core.Border;if($0.borderTop){$2.resetTop(this);}if($0.borderRight){$2.resetRight(this);}if($0.borderBottom){$2.resetBottom(this);}if($0.borderLeft){$2.resetLeft(this);}}},prepareEnhancedBorder:qx.core.Variant.select($[1],{"gecko":qx.lang.Function.returnTrue,"default":function(){var $0=this.getElement();var $1=this._borderElement=document.createElement($[67]);var $2=$0.style;var $3=this._innerStyle=$1.style;if(qx.core.Variant.isSet($[1],$[13])){}else{$3.width=$3.height=$[56];}$3.position=$[54];for(var $4 in this._styleProperties){switch($4){case $[309]:case $[144]:case $[158]:break;default:$3[$4]=$2[$4];$2[$4]=$[0];}}for(var $4 in this._htmlProperties){switch($4){case $[1337]:$1.unselectable=this._htmlProperties[$4];}}while($0.firstChild){$1.appendChild($0.firstChild);}$0.appendChild($1);}}),_applyPaddingTop:function($0,$1){this.addToQueue($[215]);this._invalidateFrameHeight();},_applyPaddingRight:function($0,$1){this.addToQueue($[245]);this._invalidateFrameWidth();},_applyPaddingBottom:function($0,$1){this.addToQueue($[231]);this._invalidateFrameHeight();},_applyPaddingLeft:function($0,$1){this.addToQueue($[242]);this._invalidateFrameWidth();},renderPadding:function($0){},_applyMarginLeft:function($0,$1){this.addToQueue($[159]);},_applyMarginRight:function($0,$1){this.addToQueue($[225]);},_applyMarginTop:function($0,$1){this.addToQueue($[153]);},_applyMarginBottom:function($0,$1){this.addToQueue($[211]);},execute:function(){var $0=this.getCommand();if($0){$0.execute(this);}this.createDispatchEvent($[128]);},_visualPropertyCheck:function(){if(!this.isCreated()){throw new Error(this.classname+": Element must be created previously!");}},setScrollLeft:function($0){this._visualPropertyCheck();this._getTargetNode().scrollLeft=$0;},setScrollTop:function($0){this._visualPropertyCheck();this._getTargetNode().scrollTop=$0;},getOffsetLeft:function(){this._visualPropertyCheck();return qx.html.Offset.getLeft(this.getElement());},getOffsetTop:function(){this._visualPropertyCheck();return qx.html.Offset.getTop(this.getElement());},getScrollLeft:function(){this._visualPropertyCheck();return this._getTargetNode().scrollLeft;},getScrollTop:function(){this._visualPropertyCheck();return this._getTargetNode().scrollTop;},getClientWidth:function(){this._visualPropertyCheck();return this._getTargetNode().clientWidth;},getClientHeight:function(){this._visualPropertyCheck();return this._getTargetNode().clientHeight;},getOffsetWidth:function(){this._visualPropertyCheck();return this.getElement().offsetWidth;},getOffsetHeight:function(){this._visualPropertyCheck();return this.getElement().offsetHeight;},getScrollWidth:function(){this._visualPropertyCheck();return this._getTargetNode().scrollWidth;},getScrollHeight:function(){this._visualPropertyCheck();return this._getTargetNode().scrollHeight;},scrollIntoView:function($0){this.scrollIntoViewX($0);this.scrollIntoViewY($0);},scrollIntoViewX:function($0){if(!this._isCreated||!this._isDisplayable){this.warn("The function scrollIntoViewX can only be called after the widget is created!");return false;}return qx.html.ScrollIntoView.scrollX(this.getElement(),$0);},scrollIntoViewY:function($0){if(!this._isCreated||!this._isDisplayable){this.warn("The function scrollIntoViewY can only be called after the widget is created!");return false;}return qx.html.ScrollIntoView.scrollY(this.getElement(),$0);},supportsDrop:function($0){var $1=this.getSupportsDropMethod();if($1!==null){return $1.call(this,$0);}return (this!=$0.sourceWidget);}},settings:{"qx.widgetQueueDebugging":false,"qx.widgetDebugId":false},defer:function($0,$1){$0.__initApplyMethods($1);if(qx.core.Variant.isSet($[1],$[13])){$1._renderRuntimeWidth=function($2){this._style.pixelWidth=($2==null)?0:$2;if(this._innerStyle){this._innerStyle.pixelWidth=($2==null)?0:$2-2;}};$1._renderRuntimeHeight=function($2){this._style.pixelHeight=($2==null)?0:$2;if(this._innerStyle){this._innerStyle.pixelHeight=($2==null)?0:$2-2;}};$1._resetRuntimeWidth=function(){this._style.width=$[0];if(this._innerStyle){this._innerStyle.width=$[0];}};$1._resetRuntimeHeight=function(){this._style.height=$[0];if(this._innerStyle){this._innerStyle.height=$[0];}};}$0.__initLayoutProperties($0);{};},destruct:function(){var $0=this.getElement();if($0){$0.qx_Widget=null;}this._disposeFields($[1691],$[1129],$[329],$[1452],$[971],$[1224],$[1245],$[866],$[1380],$[948],$[642],$[1700],$[620],$[1630]);}});
52
qx.Class.define($[1053],{statics:{includeFile:function($0){var $1=document.createElement($[1369]);$1.type=$[438];$1.rel=$[1690];$1.href=$0;var $2=document.getElementsByTagName($[506])[0];$2.appendChild($1);},createElement:qx.lang.Object.select(document.createStyleSheet?$[141]:$[48],{"ie4+":function($0){var $1=document.createStyleSheet();if($0){$1.cssText=$0;}return $1;},"other":function($0){var $1=document.createElement($[44]);$1.type=$[438];$1.appendChild(document.createTextNode($0||$[1174]));document.getElementsByTagName($[506])[0].appendChild($1);if($1.sheet){return $1.sheet;}else{var $2=document.styleSheets;for(var $3=$2.length-1;$3>=0;$3--){if($2[$3].ownerNode==$1){return $2[$3];}}}throw $[1529];}}),addRule:qx.lang.Object.select(document.createStyleSheet?$[141]:$[48],{"ie4+":function($0,$1,$2){$0.addRule($1,$2);},"other":qx.lang.Object.select(qx.core.Client.getInstance().isSafari2()?$[247]:$[48],{"safari2+":function($0,$1,$2){if(!$0._qxRules){$0._qxRules={};}if(!$0._qxRules[$1]){var $3=document.createTextNode($1+$[450]+$2+$[277]);$0.ownerNode.appendChild($3);$0._qxRules[$1]=$3;}},"other":function($0,$1,$2){$0.insertRule($1+$[450]+$2+$[277],$0.cssRules.length);}})}),removeRule:qx.lang.Object.select(document.createStyleSheet?$[141]:$[48],{"ie4+":function($0,$1){var $2=$0.rules;var $3=$2.length;for(var $4=$3-1;$4>=0;$4--){if($2[$4].selectorText==$1){$0.removeRule($4);}}},"other":qx.lang.Object.select(qx.core.Client.getInstance().isSafari2()?$[247]:$[48],{"safari2+":function($0,$1){var $2=function(){qx.log.Logger.ROOT_LOGGER.warn("In Safari/Webkit you can only remove rules that are created using qx.html.StyleSheet.addRule");};if(!$0._qxRules){$2();}var $3=$0._qxRules[$1];if($3){$0.ownerNode.removeChild($3);$0._qxRules[$1]=null;}else{$2();}},"other":function($0,$1){var $2=$0.cssRules;var $3=$2.length;for(var $4=$3-1;$4>=0;$4--){if($2[$4].selectorText==$1){$0.deleteRule($4);}}}})}),removeAllRules:qx.lang.Object.select(document.createStyleSheet?$[141]:$[48],{"ie4+":function($0){var $1=$0.rules;var $2=$1.length;for(var $3=$2-1;$3>=0;$3--){$0.removeRule($3);}},"other":qx.lang.Object.select(qx.core.Client.getInstance().isSafari2()?$[247]:$[48],{"safari2+":function($0){var $1=$0.ownerNode;var $2=$1.childNodes;while($2.length>0){$1.removeChild($2[0]);}},"other":function($0){var $1=$0.cssRules;var $2=$1.length;for(var $3=$2-1;$3>=0;$3--){$0.deleteRule($3);}}})}),addImport:qx.lang.Object.select(document.createStyleSheet?$[141]:$[48],{"ie4+":function($0,$1){$0.addImport($1);},"other":qx.lang.Object.select(qx.core.Client.getInstance().isSafari2()?$[247]:$[48],{"safari2+":function($0,$1){$0.ownerNode.appendChild(document.createTextNode($[517]+$1+$[399]));},"other":function($0,$1){$0.insertRule($[517]+$1+$[399],$0.cssRules.length);}})}),removeImport:qx.lang.Object.select(document.createStyleSheet?$[141]:$[48],{"ie4+":function($0,$1){var $2=$0.imports;var $3=$2.length;for(var $4=$3-1;$4>=0;$4--){if($2[$4].href==$1){$0.removeImport($4);}}},"other":function($0,$1){var $2=$0.cssRules;var $3=$2.length;for(var $4=$3-1;$4>=0;$4--){if($2[$4].href==$1){$0.deleteRule($4);}}}}),removeAllImports:qx.lang.Object.select(document.createStyleSheet?$[141]:$[48],{"ie4+":function($0){var $1=$0.imports;var $2=$1.length;for(var $3=$2-1;$3>=0;$3--){$0.removeImport($3);}},"other":function($0){var $1=$0.cssRules;var $2=$1.length;for(var $3=$2-1;$3>=0;$3--){if($1[$3].type==$1[$3].IMPORT_RULE){$0.deleteRule($3);}}}})}});
53
qx.Class.define($[756],{statics:{getLeftSum:function($0){var $1=0;var $2=$0.parentNode;while($2.nodeType==1){$1+=$2.scrollLeft;$2=$2.parentNode;}return $1;},getTopSum:function($0){var $1=0;var $2=$0.parentNode;while($2.nodeType==1){$1+=$2.scrollTop;$2=$2.parentNode;}return $1;}}});
54
qx.Class.define($[1727],{statics:{scrollX:function($0,$1){var $2,$3,$4,$5;var $6=$0.parentNode;var $7=$0.offsetLeft;var $4=$0.offsetWidth;while($6){switch(qx.html.Style.getStyleProperty($6,$[63])){case $[26]:case $[3]:case $[281]:$5=true;break;default:switch(qx.html.Style.getStyleProperty($6,$[175])){case $[26]:case $[3]:$5=true;break;default:$5=false;}}if($5){$2=$6.clientWidth;$3=$6.scrollLeft;if($1){$6.scrollLeft=$7;}else if($1==false){$6.scrollLeft=$7+$4-$2;}else if($4>$2||$7<$3){$6.scrollLeft=$7;}else if(($7+$4)>($3+$2)){$6.scrollLeft=$7+$4-$2;}$7=$6.offsetLeft;$4=$6.offsetWidth;}else{$7+=$6.offsetLeft;}if($6.tagName.toLowerCase()==$[126]){break;}$6=$6.offsetParent;}return true;},scrollY:function($0,$1){var $2,$3,$4,$5;var $6=$0.parentNode;var $7=$0.offsetTop;var $4=$0.offsetHeight;while($6){switch(qx.html.Style.getStyleProperty($6,$[63])){case $[26]:case $[3]:case $[274]:$5=true;break;default:switch(qx.html.Style.getStyleProperty($6,$[179])){case $[26]:case $[3]:$5=true;break;default:$5=false;}}if($5){$2=$6.clientHeight;$3=$6.scrollTop;if($1){$6.scrollTop=$7;}else if($1==false){$6.scrollTop=$7+$4-$2;}else if($4>$2||$7<$3){$6.scrollTop=$7;}else if(($7+$4)>($3+$2)){$6.scrollTop=$7+$4-$2;}$7=$6.offsetTop;$4=$6.offsetHeight;}else{$7+=$6.offsetTop;}if($6.tagName.toLowerCase()==$[126]){break;}$6=$6.offsetParent;}return true;}}});
55
qx.Class.define($[1773],{statics:{getStylePropertySure:qx.lang.Object.select((document.defaultView&&document.defaultView.getComputedStyle)?$[443]:$[383],{"hasComputed":function($0,$1){return !$0?null:$0.ownerDocument?$0.ownerDocument.defaultView.getComputedStyle($0,$[0])[$1]:$0.style[$1];},"noComputed":qx.core.Variant.select($[1],{"mshtml":function($0,$1){try{if(!$0){return null;}if($0.parentNode&&$0.currentStyle){return $0.currentStyle[$1];}else{var $2=$0.runtimeStyle[$1];if($2!=null&&typeof $2!=$[65]&&$2!=$[0]){return $2;}return $0.style[$1];}}catch(ex){throw new Error("Could not evaluate computed style: "+$0+"["+$1+"]: "+ex);}},"default":function($0,$1){return !$0?null:$0.style[$1];}})}),getStyleProperty:qx.lang.Object.select((document.defaultView&&document.defaultView.getComputedStyle)?$[443]:$[383],{"hasComputed":function($0,$1){try{return $0.ownerDocument.defaultView.getComputedStyle($0,$[0])[$1];}catch(ex){throw new Error("Could not evaluate computed style: "+$0+"["+$1+"]: "+ex);}},"noComputed":qx.core.Variant.select($[1],{"mshtml":function($0,$1){try{return $0.currentStyle[$1];}catch(ex){throw new Error("Could not evaluate computed style: "+$0+"["+$1+"]: "+ex);}},"default":function($0,$1){try{return $0.style[$1];}catch(ex){throw new Error("Could not evaluate computed style: "+$0+"["+$1+"]");}}})}),getStyleSize:function($0,$1){return parseInt(qx.html.Style.getStyleProperty($0,$1))||0;},getMarginLeft:function($0){return qx.html.Style.getStyleSize($0,$[159]);},getMarginTop:function($0){return qx.html.Style.getStyleSize($0,$[153]);},getMarginRight:function($0){return qx.html.Style.getStyleSize($0,$[225]);},getMarginBottom:function($0){return qx.html.Style.getStyleSize($0,$[211]);},getPaddingLeft:function($0){return qx.html.Style.getStyleSize($0,$[242]);},getPaddingTop:function($0){return qx.html.Style.getStyleSize($0,$[215]);},getPaddingRight:function($0){return qx.html.Style.getStyleSize($0,$[245]);},getPaddingBottom:function($0){return qx.html.Style.getStyleSize($0,$[231]);},getBorderLeft:function($0){return qx.html.Style.getStyleProperty($0,$[814])==$[7]?0:qx.html.Style.getStyleSize($0,$[72]);},getBorderTop:function($0){return qx.html.Style.getStyleProperty($0,$[918])==$[7]?0:qx.html.Style.getStyleSize($0,$[68]);},getBorderRight:function($0){return qx.html.Style.getStyleProperty($0,$[935])==$[7]?0:qx.html.Style.getStyleSize($0,$[423]);},getBorderBottom:function($0){return qx.html.Style.getStyleProperty($0,$[547])==$[7]?0:qx.html.Style.getStyleSize($0,$[342]);}}});
56
qx.Class.define($[1292],{statics:{getPageOuterLeft:function($0){return qx.html.Location.getPageBoxLeft($0)-qx.html.Style.getMarginLeft($0);},getPageOuterTop:function($0){return qx.html.Location.getPageBoxTop($0)-qx.html.Style.getMarginTop($0);},getPageOuterRight:function($0){return qx.html.Location.getPageBoxRight($0)+qx.html.Style.getMarginRight($0);},getPageOuterBottom:function($0){return qx.html.Location.getPageBoxBottom($0)+qx.html.Style.getMarginBottom($0);},getClientOuterLeft:function($0){return qx.html.Location.getClientBoxLeft($0)-qx.html.Style.getMarginLeft($0);},getClientOuterTop:function($0){return qx.html.Location.getClientBoxTop($0)-qx.html.Style.getMarginTop($0);},getClientOuterRight:function($0){return qx.html.Location.getClientBoxRight($0)+qx.html.Style.getMarginRight($0);},getClientOuterBottom:function($0){return qx.html.Location.getClientBoxBottom($0)+qx.html.Style.getMarginBottom($0);},getClientBoxLeft:qx.core.Variant.select($[1],{"mshtml":function($0){return $0.getBoundingClientRect().left;},"gecko":function($0){return qx.html.Location.getClientAreaLeft($0)-qx.html.Style.getBorderLeft($0);},"default":function($0){var $1=$0.offsetLeft;while($0.tagName.toLowerCase()!=$[126]){$0=$0.offsetParent;$1+=$0.offsetLeft-$0.scrollLeft;}return $1;}}),getClientBoxTop:qx.core.Variant.select($[1],{"mshtml":function($0){return $0.getBoundingClientRect().top;},"gecko":function($0){return qx.html.Location.getClientAreaTop($0)-qx.html.Style.getBorderTop($0);},"default":function($0){var $1=$0.offsetTop;while($0.tagName.toLowerCase()!=$[126]){$0=$0.offsetParent;$1+=$0.offsetTop-$0.scrollTop;}return $1;}}),getClientBoxRight:qx.core.Variant.select($[1],{"mshtml":function($0){return $0.getBoundingClientRect().right;},"default":function($0){return qx.html.Location.getClientBoxLeft($0)+qx.html.Dimension.getBoxWidth($0);}}),getClientBoxBottom:qx.core.Variant.select($[1],{"mshtml":function($0){return $0.getBoundingClientRect().bottom;},"default":function($0){return qx.html.Location.getClientBoxTop($0)+qx.html.Dimension.getBoxHeight($0);}}),getPageBoxLeft:qx.core.Variant.select($[1],{"mshtml":function($0){return qx.html.Location.getClientBoxLeft($0)+qx.html.Scroll.getLeftSum($0);},"gecko":function($0){return qx.html.Location.getPageAreaLeft($0)-qx.html.Style.getBorderLeft($0);},"default":function($0){var $1=$0.offsetLeft;while($0.tagName.toLowerCase()!=$[126]){$0=$0.offsetParent;$1+=$0.offsetLeft;}return $1;}}),getPageBoxTop:qx.core.Variant.select($[1],{"mshtml":function($0){return qx.html.Location.getClientBoxTop($0)+qx.html.Scroll.getTopSum($0);},"gecko":function($0){return qx.html.Location.getPageAreaTop($0)-qx.html.Style.getBorderTop($0);},"default":function($0){var $1=$0.offsetTop;while($0.tagName.toLowerCase()!=$[126]){$0=$0.offsetParent;$1+=$0.offsetTop;}return $1;}}),getPageBoxRight:qx.core.Variant.select($[1],{"mshtml":function($0){return qx.html.Location.getClientBoxRight($0)+qx.html.Scroll.getLeftSum($0);},"default":function($0){return qx.html.Location.getPageBoxLeft($0)+qx.html.Dimension.getBoxWidth($0);}}),getPageBoxBottom:qx.core.Variant.select($[1],{"mshtml":function($0){return qx.html.Location.getClientBoxBottom($0)+qx.html.Scroll.getTopSum($0);},"default":function($0){return qx.html.Location.getPageBoxTop($0)+qx.html.Dimension.getBoxHeight($0);}}),getClientAreaLeft:qx.core.Variant.select($[1],{"gecko":function($0){return qx.html.Location.getPageAreaLeft($0)-qx.html.Scroll.getLeftSum($0);},"default":function($0){return qx.html.Location.getClientBoxLeft($0)+qx.html.Style.getBorderLeft($0);}}),getClientAreaTop:qx.core.Variant.select($[1],{"gecko":function($0){return qx.html.Location.getPageAreaTop($0)-qx.html.Scroll.getTopSum($0);},"default":function($0){return qx.html.Location.getClientBoxTop($0)+qx.html.Style.getBorderTop($0);}}),getClientAreaRight:function($0){return qx.html.Location.getClientAreaLeft($0)+qx.html.Dimension.getAreaWidth($0);},getClientAreaBottom:function($0){return qx.html.Location.getClientAreaTop($0)+qx.html.Dimension.getAreaHeight($0);},getPageAreaLeft:qx.core.Variant.select($[1],{"gecko":function($0){return $0.ownerDocument.getBoxObjectFor($0).x;},"default":function($0){return qx.html.Location.getPageBoxLeft($0)+qx.html.Style.getBorderLeft($0);}}),getPageAreaTop:qx.core.Variant.select($[1],{"gecko":function($0){return $0.ownerDocument.getBoxObjectFor($0).y;},"default":function($0){return qx.html.Location.getPageBoxTop($0)+qx.html.Style.getBorderTop($0);}}),getPageAreaRight:function($0){return qx.html.Location.getPageAreaLeft($0)+qx.html.Dimension.getAreaWidth($0);},getPageAreaBottom:function($0){return qx.html.Location.getPageAreaTop($0)+qx.html.Dimension.getAreaHeight($0);},getClientInnerLeft:function($0){return qx.html.Location.getClientAreaLeft($0)+qx.html.Style.getPaddingLeft($0);},getClientInnerTop:function($0){return qx.html.Location.getClientAreaTop($0)+qx.html.Style.getPaddingTop($0);},getClientInnerRight:function($0){return qx.html.Location.getClientInnerLeft($0)+qx.html.Dimension.getInnerWidth($0);},getClientInnerBottom:function($0){return qx.html.Location.getClientInnerTop($0)+qx.html.Dimension.getInnerHeight($0);},getPageInnerLeft:function($0){return qx.html.Location.getPageAreaLeft($0)+qx.html.Style.getPaddingLeft($0);},getPageInnerTop:function($0){return qx.html.Location.getPageAreaTop($0)+qx.html.Style.getPaddingTop($0);},getPageInnerRight:function($0){return qx.html.Location.getPageInnerLeft($0)+qx.html.Dimension.getInnerWidth($0);},getPageInnerBottom:function($0){return qx.html.Location.getPageInnerTop($0)+qx.html.Dimension.getInnerHeight($0);},getScreenBoxLeft:qx.core.Variant.select($[1],{"gecko":function($0){var $1=0;var $2=$0.parentNode;while($2.nodeType==1){$1+=$2.scrollLeft;$2=$2.parentNode;}return $0.ownerDocument.getBoxObjectFor($0).screenX-$1;},"default":function($0){return qx.html.Location.getScreenDocumentLeft($0)+qx.html.Location.getPageBoxLeft($0);}}),getScreenBoxTop:qx.core.Variant.select($[1],{"gecko":function($0){var $1=0;var $2=$0.parentNode;while($2.nodeType==1){$1+=$2.scrollTop;$2=$2.parentNode;}return $0.ownerDocument.getBoxObjectFor($0).screenY-$1;},"default":function($0){return qx.html.Location.getScreenDocumentTop($0)+qx.html.Location.getPageBoxTop($0);}}),getScreenBoxRight:function($0){return qx.html.Location.getScreenBoxLeft($0)+qx.html.Dimension.getBoxWidth($0);},getScreenBoxBottom:function($0){return qx.html.Location.getScreenBoxTop($0)+qx.html.Dimension.getBoxHeight($0);},getScreenOuterLeft:function($0){return qx.html.Location.getScreenBoxLeft($0)-qx.html.Style.getMarginLeft($0);},getScreenOuterTop:function($0){return qx.html.Location.getScreenBoxTop($0)-qx.html.Style.getMarginTop($0);},getScreenOuterRight:function($0){return qx.html.Location.getScreenBoxRight($0)+qx.html.Style.getMarginRight($0);},getScreenOuterBottom:function($0){return qx.html.Location.getScreenBoxBottom($0)+qx.html.Style.getMarginBottom($0);},getScreenAreaLeft:function($0){return qx.html.Location.getScreenBoxLeft($0)+qx.html.Dimension.getInsetLeft($0);},getScreenAreaTop:function($0){return qx.html.Location.getScreenBoxTop($0)+qx.html.Dimension.getInsetTop($0);},getScreenAreaRight:function($0){return qx.html.Location.getScreenBoxRight($0)-qx.html.Dimension.getInsetRight($0);},getScreenAreaBottom:function($0){return qx.html.Location.getScreenBoxBottom($0)-qx.html.Dimension.getInsetBottom($0);},getScreenInnerLeft:function($0){return qx.html.Location.getScreenAreaLeft($0)+qx.html.Style.getPaddingLeft($0);},getScreenInnerTop:function($0){return qx.html.Location.getScreenAreaTop($0)+qx.html.Style.getPaddingTop($0);},getScreenInnerRight:function($0){return qx.html.Location.getScreenAreaRight($0)-qx.html.Style.getPaddingRight($0);},getScreenInnerBottom:function($0){return qx.html.Location.getScreenAreaBottom($0)-qx.html.Style.getPaddingBottom($0);},getScreenDocumentLeft:qx.core.Variant.select($[1],{"gecko":function($0){return qx.html.Location.getScreenOuterLeft($0.ownerDocument.body);},"default":function($0){return $0.document.parentWindow.screenLeft;}}),getScreenDocumentTop:qx.core.Variant.select($[1],{"gecko":function($0){return qx.html.Location.getScreenOuterTop($0.ownerDocument.body);},"default":function($0){return $0.document.parentWindow.screenTop;}}),getScreenDocumentRight:qx.core.Variant.select($[1],{"gecko":function($0){return qx.html.Location.getScreenOuterRight($0.ownerDocument.body);},"default":function($0){}}),getScreenDocumentBottom:qx.core.Variant.select($[1],{"gecko":function($0){return qx.html.Location.getScreenOuterBottom($0.ownerDocument.body);},"default":function($0){}})}});
57
qx.Class.define($[574],{statics:{getOuterWidth:function($0){return qx.html.Dimension.getBoxWidth($0)+qx.html.Style.getMarginLeft($0)+qx.html.Style.getMarginRight($0);},getOuterHeight:function($0){return qx.html.Dimension.getBoxHeight($0)+qx.html.Style.getMarginTop($0)+qx.html.Style.getMarginBottom($0);},getBoxWidthForZeroHeight:function($0){var $1=$0.offsetHeight;if($1==0){var $2=$0.style.height;$0.style.height=$[161];}var $3=$0.offsetWidth;if($1==0){$0.style.height=$2;}return $3;},getBoxHeightForZeroWidth:function($0){var $1=$0.offsetWidth;if($1==0){var $2=$0.style.width;$0.style.width=$[161];}var $3=$0.offsetHeight;if($1==0){$0.style.width=$2;}return $3;},getBoxWidth:function($0){return $0.offsetWidth;},getBoxHeight:function($0){return $0.offsetHeight;},getAreaWidth:qx.core.Variant.select($[1],{"gecko":function($0){if($0.clientWidth!=0&&$0.clientWidth!=(qx.html.Style.getBorderLeft($0)+qx.html.Style.getBorderRight($0))){return $0.clientWidth;}else{return qx.html.Dimension.getBoxWidth($0)-qx.html.Dimension.getInsetLeft($0)-qx.html.Dimension.getInsetRight($0);}},"default":function($0){return $0.clientWidth!=0?$0.clientWidth:(qx.html.Dimension.getBoxWidth($0)-qx.html.Dimension.getInsetLeft($0)-qx.html.Dimension.getInsetRight($0));}}),getAreaHeight:qx.core.Variant.select($[1],{"gecko":function($0){if($0.clientHeight!=0&&$0.clientHeight!=(qx.html.Style.getBorderTop($0)+qx.html.Style.getBorderBottom($0))){return $0.clientHeight;}else{return qx.html.Dimension.getBoxHeight($0)-qx.html.Dimension.getInsetTop($0)-qx.html.Dimension.getInsetBottom($0);}},"default":function($0){return $0.clientHeight!=0?$0.clientHeight:(qx.html.Dimension.getBoxHeight($0)-qx.html.Dimension.getInsetTop($0)-qx.html.Dimension.getInsetBottom($0));}}),getInnerWidth:function($0){return qx.html.Dimension.getAreaWidth($0)-qx.html.Style.getPaddingLeft($0)-qx.html.Style.getPaddingRight($0);},getInnerHeight:function($0){return qx.html.Dimension.getAreaHeight($0)-qx.html.Style.getPaddingTop($0)-qx.html.Style.getPaddingBottom($0);},getInsetLeft:qx.core.Variant.select($[1],{"mshtml":function($0){return $0.clientLeft;},"default":function($0){return qx.html.Style.getBorderLeft($0);}}),getInsetTop:qx.core.Variant.select($[1],{"mshtml":function($0){return $0.clientTop;},"default":function($0){return qx.html.Style.getBorderTop($0);}}),getInsetRight:qx.core.Variant.select($[1],{"mshtml":function($0){if(qx.html.Style.getStyleProperty($0,$[179])==$[36]||$0.clientWidth==0){return qx.html.Style.getBorderRight($0);}return Math.max(0,$0.offsetWidth-$0.clientLeft-$0.clientWidth);},"default":function($0){if($0.clientWidth==0){var $1=qx.html.Style.getStyleProperty($0,$[63]);var $2=$1==$[26]||$1==$[274]?16:0;return Math.max(0,qx.html.Style.getBorderRight($0)+$2);}return Math.max(0,$0.offsetWidth-$0.clientWidth-qx.html.Style.getBorderLeft($0));}}),getInsetBottom:qx.core.Variant.select($[1],{"mshtml":function($0){if(qx.html.Style.getStyleProperty($0,$[175])==$[36]||$0.clientHeight==0){return qx.html.Style.getBorderBottom($0);}return Math.max(0,$0.offsetHeight-$0.clientTop-$0.clientHeight);},"default":function($0){if($0.clientHeight==0){var $1=qx.html.Style.getStyleProperty($0,$[63]);var $2=$1==$[26]||$1==$[281]?16:0;return Math.max(0,qx.html.Style.getBorderBottom($0)+$2);}return Math.max(0,$0.offsetHeight-$0.clientHeight-qx.html.Style.getBorderTop($0));}}),getScrollBarSizeLeft:function($0){return 0;},getScrollBarSizeTop:function($0){return 0;},getScrollBarSizeRight:function($0){return qx.html.Dimension.getInsetRight($0)-qx.html.Style.getBorderRight($0);},getScrollBarSizeBottom:function($0){return qx.html.Dimension.getInsetBottom($0)-qx.html.Style.getBorderBottom($0);},getScrollBarVisibleX:function($0){return qx.html.Dimension.getScrollBarSizeRight($0)>0;},getScrollBarVisibleY:function($0){return qx.html.Dimension.getScrollBarSizeBottom($0)>0;}}});
54
qx.Class.define($[574],{statics:{getOuterWidth:function($0){return qx.html.Dimension.getBoxWidth($0)+qx.html.Style.getMarginLeft($0)+qx.html.Style.getMarginRight($0);},getOuterHeight:function($0){return qx.html.Dimension.getBoxHeight($0)+qx.html.Style.getMarginTop($0)+qx.html.Style.getMarginBottom($0);},getBoxWidthForZeroHeight:function($0){var $1=$0.offsetHeight;if($1==0){var $2=$0.style.height;$0.style.height=$[161];}var $3=$0.offsetWidth;if($1==0){$0.style.height=$2;}return $3;},getBoxHeightForZeroWidth:function($0){var $1=$0.offsetWidth;if($1==0){var $2=$0.style.width;$0.style.width=$[161];}var $3=$0.offsetHeight;if($1==0){$0.style.width=$2;}return $3;},getBoxWidth:function($0){return $0.offsetWidth;},getBoxHeight:function($0){return $0.offsetHeight;},getAreaWidth:qx.core.Variant.select($[1],{"gecko":function($0){if($0.clientWidth!=0&&$0.clientWidth!=(qx.html.Style.getBorderLeft($0)+qx.html.Style.getBorderRight($0))){return $0.clientWidth;}else{return qx.html.Dimension.getBoxWidth($0)-qx.html.Dimension.getInsetLeft($0)-qx.html.Dimension.getInsetRight($0);}},"default":function($0){return $0.clientWidth!=0?$0.clientWidth:(qx.html.Dimension.getBoxWidth($0)-qx.html.Dimension.getInsetLeft($0)-qx.html.Dimension.getInsetRight($0));}}),getAreaHeight:qx.core.Variant.select($[1],{"gecko":function($0){if($0.clientHeight!=0&&$0.clientHeight!=(qx.html.Style.getBorderTop($0)+qx.html.Style.getBorderBottom($0))){return $0.clientHeight;}else{return qx.html.Dimension.getBoxHeight($0)-qx.html.Dimension.getInsetTop($0)-qx.html.Dimension.getInsetBottom($0);}},"default":function($0){return $0.clientHeight!=0?$0.clientHeight:(qx.html.Dimension.getBoxHeight($0)-qx.html.Dimension.getInsetTop($0)-qx.html.Dimension.getInsetBottom($0));}}),getInnerWidth:function($0){return qx.html.Dimension.getAreaWidth($0)-qx.html.Style.getPaddingLeft($0)-qx.html.Style.getPaddingRight($0);},getInnerHeight:function($0){return qx.html.Dimension.getAreaHeight($0)-qx.html.Style.getPaddingTop($0)-qx.html.Style.getPaddingBottom($0);},getInsetLeft:qx.core.Variant.select($[1],{"mshtml":function($0){return $0.clientLeft;},"default":function($0){return qx.html.Style.getBorderLeft($0);}}),getInsetTop:qx.core.Variant.select($[1],{"mshtml":function($0){return $0.clientTop;},"default":function($0){return qx.html.Style.getBorderTop($0);}}),getInsetRight:qx.core.Variant.select($[1],{"mshtml":function($0){if(qx.html.Style.getStyleProperty($0,$[179])==$[36]||$0.clientWidth==0){return qx.html.Style.getBorderRight($0);}return Math.max(0,$0.offsetWidth-$0.clientLeft-$0.clientWidth);},"default":function($0){if($0.clientWidth==0){var $1=qx.html.Style.getStyleProperty($0,$[63]);var $2=$1==$[26]||$1==$[274]?16:0;return Math.max(0,qx.html.Style.getBorderRight($0)+$2);}return Math.max(0,$0.offsetWidth-$0.clientWidth-qx.html.Style.getBorderLeft($0));}}),getInsetBottom:qx.core.Variant.select($[1],{"mshtml":function($0){if(qx.html.Style.getStyleProperty($0,$[175])==$[36]||$0.clientHeight==0){return qx.html.Style.getBorderBottom($0);}return Math.max(0,$0.offsetHeight-$0.clientTop-$0.clientHeight);},"default":function($0){if($0.clientHeight==0){var $1=qx.html.Style.getStyleProperty($0,$[63]);var $2=$1==$[26]||$1==$[281]?16:0;return Math.max(0,qx.html.Style.getBorderBottom($0)+$2);}return Math.max(0,$0.offsetHeight-$0.clientHeight-qx.html.Style.getBorderTop($0));}}),getScrollBarSizeLeft:function($0){return 0;},getScrollBarSizeTop:function($0){return 0;},getScrollBarSizeRight:function($0){return qx.html.Dimension.getInsetRight($0)-qx.html.Style.getBorderRight($0);},getScrollBarSizeBottom:function($0){return qx.html.Dimension.getInsetBottom($0)-qx.html.Style.getBorderBottom($0);},getScrollBarVisibleX:function($0){return qx.html.Dimension.getScrollBarSizeRight($0)>0;},getScrollBarVisibleY:function($0){return qx.html.Dimension.getScrollBarSizeBottom($0)>0;}}});
58
qx.Class.define($[868],{statics:{getLeft:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0.offsetLeft;var $2=$0.parentNode;var $3=qx.html.Style.getStyleProperty($0,$[78]);var $4=qx.html.Style.getStyleProperty($2,$[78]);if($3!=$[54]&&$3!=$[123]){$1-=qx.html.Style.getBorderLeft($2);}if($4!=$[54]&&$4!=$[123]){while($2){$2=$2.parentNode;if(!$2||typeof $2.tagName!==$[8]){break;}var $5=qx.html.Style.getStyleProperty($2,$[78]);if($5==$[54]||$5==$[123]){$1-=qx.html.Style.getBorderLeft($2)+qx.html.Style.getPaddingLeft($2);break;}}}return $1;},"default":function($0){return $0.offsetLeft;}}),getTop:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0.offsetTop;var $2=$0.parentNode;var $3=qx.html.Style.getStyleProperty($0,$[78]);var $4=qx.html.Style.getStyleProperty($2,$[78]);if($3!=$[54]&&$3!=$[123]){$1-=qx.html.Style.getBorderTop($2);}if($4!=$[54]&&$4!=$[123]){while($2){$2=$2.parentNode;if(!$2||typeof $2.tagName!==$[8]){break;}var $5=qx.html.Style.getStyleProperty($2,$[78]);if($5==$[54]||$5==$[123]){$1-=qx.html.Style.getBorderTop($2)+qx.html.Style.getPaddingTop($2);break;}}}return $1;},"default":function($0){return $0.offsetTop;}})}});
55
qx.Class.define($[1773],{statics:{getStylePropertySure:qx.lang.Object.select((document.defaultView&&document.defaultView.getComputedStyle)?$[444]:$[383],{"hasComputed":function($0,$1){return !$0?null:$0.ownerDocument?$0.ownerDocument.defaultView.getComputedStyle($0,$[0])[$1]:$0.style[$1];},"noComputed":qx.core.Variant.select($[1],{"mshtml":function($0,$1){try{if(!$0){return null;}if($0.parentNode&&$0.currentStyle){return $0.currentStyle[$1];}else{var $2=$0.runtimeStyle[$1];if($2!=null&&typeof $2!=$[65]&&$2!=$[0]){return $2;}return $0.style[$1];}}catch(ex){throw new Error("Could not evaluate computed style: "+$0+"["+$1+"]: "+ex);}},"default":function($0,$1){return !$0?null:$0.style[$1];}})}),getStyleProperty:qx.lang.Object.select((document.defaultView&&document.defaultView.getComputedStyle)?$[444]:$[383],{"hasComputed":function($0,$1){try{return $0.ownerDocument.defaultView.getComputedStyle($0,$[0])[$1];}catch(ex){throw new Error("Could not evaluate computed style: "+$0+"["+$1+"]: "+ex);}},"noComputed":qx.core.Variant.select($[1],{"mshtml":function($0,$1){try{return $0.currentStyle[$1];}catch(ex){throw new Error("Could not evaluate computed style: "+$0+"["+$1+"]: "+ex);}},"default":function($0,$1){try{return $0.style[$1];}catch(ex){throw new Error("Could not evaluate computed style: "+$0+"["+$1+"]");}}})}),getStyleSize:function($0,$1){return parseInt(qx.html.Style.getStyleProperty($0,$1))||0;},getMarginLeft:function($0){return qx.html.Style.getStyleSize($0,$[159]);},getMarginTop:function($0){return qx.html.Style.getStyleSize($0,$[153]);},getMarginRight:function($0){return qx.html.Style.getStyleSize($0,$[225]);},getMarginBottom:function($0){return qx.html.Style.getStyleSize($0,$[211]);},getPaddingLeft:function($0){return qx.html.Style.getStyleSize($0,$[242]);},getPaddingTop:function($0){return qx.html.Style.getStyleSize($0,$[215]);},getPaddingRight:function($0){return qx.html.Style.getStyleSize($0,$[245]);},getPaddingBottom:function($0){return qx.html.Style.getStyleSize($0,$[231]);},getBorderLeft:function($0){return qx.html.Style.getStyleProperty($0,$[815])==$[7]?0:qx.html.Style.getStyleSize($0,$[72]);},getBorderTop:function($0){return qx.html.Style.getStyleProperty($0,$[917])==$[7]?0:qx.html.Style.getStyleSize($0,$[68]);},getBorderRight:function($0){return qx.html.Style.getStyleProperty($0,$[934])==$[7]?0:qx.html.Style.getStyleSize($0,$[424]);},getBorderBottom:function($0){return qx.html.Style.getStyleProperty($0,$[547])==$[7]?0:qx.html.Style.getStyleSize($0,$[341]);}}});
59
qx.Class.define($[913],{type:$[18],extend:qx.util.manager.Value,properties:{colorTheme:{check:$[121],nullable:true,apply:$[1560],event:$[827]}},members:{_applyColorTheme:function($0){var $1=this._dynamic={};if($0){var $2=$0.colors;var $3=qx.util.ColorUtil;var $4;for(var $5 in $2){$4=$2[$5];if(typeof $4===$[8]){if(!$3.isCssString($4)){throw new Error("Could not parse color: "+$4);}}else if($4 instanceof Array){$4=$3.rgbToRgbString($4);}else{throw new Error("Could not parse color: "+$4);}$1[$5]=$4;}}if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncColorTheme();}},syncColorTheme:function(){this._updateObjects();}}});
56
qx.Class.define($[1053],{statics:{includeFile:function($0){var $1=document.createElement($[1370]);$1.type=$[439];$1.rel=$[1690];$1.href=$0;var $2=document.getElementsByTagName($[507])[0];$2.appendChild($1);},createElement:qx.lang.Object.select(document.createStyleSheet?$[141]:$[48],{"ie4+":function($0){var $1=document.createStyleSheet();if($0){$1.cssText=$0;}return $1;},"other":function($0){var $1=document.createElement($[44]);$1.type=$[439];$1.appendChild(document.createTextNode($0||$[1173]));document.getElementsByTagName($[507])[0].appendChild($1);if($1.sheet){return $1.sheet;}else{var $2=document.styleSheets;for(var $3=$2.length-1;$3>=0;$3--){if($2[$3].ownerNode==$1){return $2[$3];}}}throw $[1529];}}),addRule:qx.lang.Object.select(document.createStyleSheet?$[141]:$[48],{"ie4+":function($0,$1,$2){$0.addRule($1,$2);},"other":qx.lang.Object.select(qx.core.Client.getInstance().isSafari2()?$[247]:$[48],{"safari2+":function($0,$1,$2){if(!$0._qxRules){$0._qxRules={};}if(!$0._qxRules[$1]){var $3=document.createTextNode($1+$[451]+$2+$[277]);$0.ownerNode.appendChild($3);$0._qxRules[$1]=$3;}},"other":function($0,$1,$2){$0.insertRule($1+$[451]+$2+$[277],$0.cssRules.length);}})}),removeRule:qx.lang.Object.select(document.createStyleSheet?$[141]:$[48],{"ie4+":function($0,$1){var $2=$0.rules;var $3=$2.length;for(var $4=$3-1;$4>=0;$4--){if($2[$4].selectorText==$1){$0.removeRule($4);}}},"other":qx.lang.Object.select(qx.core.Client.getInstance().isSafari2()?$[247]:$[48],{"safari2+":function($0,$1){var $2=function(){qx.log.Logger.ROOT_LOGGER.warn("In Safari/Webkit you can only remove rules that are created using qx.html.StyleSheet.addRule");};if(!$0._qxRules){$2();}var $3=$0._qxRules[$1];if($3){$0.ownerNode.removeChild($3);$0._qxRules[$1]=null;}else{$2();}},"other":function($0,$1){var $2=$0.cssRules;var $3=$2.length;for(var $4=$3-1;$4>=0;$4--){if($2[$4].selectorText==$1){$0.deleteRule($4);}}}})}),removeAllRules:qx.lang.Object.select(document.createStyleSheet?$[141]:$[48],{"ie4+":function($0){var $1=$0.rules;var $2=$1.length;for(var $3=$2-1;$3>=0;$3--){$0.removeRule($3);}},"other":qx.lang.Object.select(qx.core.Client.getInstance().isSafari2()?$[247]:$[48],{"safari2+":function($0){var $1=$0.ownerNode;var $2=$1.childNodes;while($2.length>0){$1.removeChild($2[0]);}},"other":function($0){var $1=$0.cssRules;var $2=$1.length;for(var $3=$2-1;$3>=0;$3--){$0.deleteRule($3);}}})}),addImport:qx.lang.Object.select(document.createStyleSheet?$[141]:$[48],{"ie4+":function($0,$1){$0.addImport($1);},"other":qx.lang.Object.select(qx.core.Client.getInstance().isSafari2()?$[247]:$[48],{"safari2+":function($0,$1){$0.ownerNode.appendChild(document.createTextNode($[518]+$1+$[400]));},"other":function($0,$1){$0.insertRule($[518]+$1+$[400],$0.cssRules.length);}})}),removeImport:qx.lang.Object.select(document.createStyleSheet?$[141]:$[48],{"ie4+":function($0,$1){var $2=$0.imports;var $3=$2.length;for(var $4=$3-1;$4>=0;$4--){if($2[$4].href==$1){$0.removeImport($4);}}},"other":function($0,$1){var $2=$0.cssRules;var $3=$2.length;for(var $4=$3-1;$4>=0;$4--){if($2[$4].href==$1){$0.deleteRule($4);}}}}),removeAllImports:qx.lang.Object.select(document.createStyleSheet?$[141]:$[48],{"ie4+":function($0){var $1=$0.imports;var $2=$1.length;for(var $3=$2-1;$3>=0;$3--){$0.removeImport($3);}},"other":function($0){var $1=$0.cssRules;var $2=$1.length;for(var $3=$2-1;$3>=0;$3--){if($1[$3].type==$1[$3].IMPORT_RULE){$0.deleteRule($3);}}}})}});
60
qx.Class.define($[1489],{statics:{REGEXP:{hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,rgb:/^rgb\(\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*\)$/},SYSTEM:{activeborder:true,activecaption:true,appworkspace:true,background:true,buttonface:true,buttonhighlight:true,buttonshadow:true,buttontext:true,captiontext:true,graytext:true,highlight:true,highlighttext:true,inactiveborder:true,inactivecaption:true,inactivecaptiontext:true,infobackground:true,infotext:true,menu:true,menutext:true,scrollbar:true,threeddarkshadow:true,threedface:true,threedhighlight:true,threedlightshadow:true,threedshadow:true,window:true,windowframe:true,windowtext:true},NAMED:{black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:[-1,-1,-1],grey:[128,128,128],magenta:[255,0,255],orange:[255,165,0],brown:[165,42,42]},isNamedColor:function($0){return this.NAMED[$0]!==undefined;},isSystemColor:function($0){return this.SYSTEM[$0]!==undefined;},isThemedColor:function($0){return qx.theme.manager.Color.getInstance().isDynamic($0);},stringToRgb:function($0){if(this.isThemedColor($0)){var $0=qx.theme.manager.Color.getInstance().resolveDynamic($0);}if(this.isNamedColor($0)){return this.NAMED[$0];}else if(this.isSystemColor($0)){throw new Error("Could not convert system colors to RGB: "+$0);}else if(this.isRgbString($0)){return this.__rgbStringToRgb();}else if(this.isHex3String($0)){return this.__hex3StringToRgb();}else if(this.isHex6String($0)){return this.__hex6StringToRgb();}throw new Error("Could not parse color: "+$0);},cssStringToRgb:function($0){if(this.isNamedColor($0)){return this.NAMED[$0];}else if(this.isSystemColor($0)){throw new Error("Could not convert system colors to RGB: "+$0);}else if(this.isRgbString($0)){return this.__rgbStringToRgb();}else if(this.isHex3String($0)){return this.__hex3StringToRgb();}else if(this.isHex6String($0)){return this.__hex6StringToRgb();}throw new Error("Could not parse color: "+$0);},stringToRgbString:function($0){return this.rgbToRgbString(this.stringToRgb($0));},rgbToRgbString:function($0){return $[1102]+$0[0]+$[101]+$0[1]+$[101]+$0[2]+$[145];},rgbToHexString:function($0){return (qx.lang.String.pad($0[0].toString(16).toUpperCase(),2)+qx.lang.String.pad($0[1].toString(16).toUpperCase(),2)+qx.lang.String.pad($0[2].toString(16).toUpperCase(),2));},isValid:function($0){return this.isThemedColor($0)||this.isCssString($0);},isCssString:function($0){return this.isSystemColor($0)||this.isNamedColor($0)||this.isHex3String($0)||this.isHex6String($0)||this.isRgbString($0);},isHex3String:function($0){return this.REGEXP.hex3.test($0);},isHex6String:function($0){return this.REGEXP.hex6.test($0);},isRgbString:function($0){return this.REGEXP.rgb.test($0);},__rgbStringToRgb:function(){var $0=parseInt(RegExp.$1);var $1=parseInt(RegExp.$2);var $2=parseInt(RegExp.$3);return [$0,$1,$2];},__hex3StringToRgb:function(){var $0=parseInt(RegExp.$1,16)*17;var $1=parseInt(RegExp.$2,16)*17;var $2=parseInt(RegExp.$3,16)*17;return [$0,$1,$2];},__hex6StringToRgb:function(){var $0=(parseInt(RegExp.$1,16)*16)+parseInt(RegExp.$2,16);var $1=(parseInt(RegExp.$3,16)*16)+parseInt(RegExp.$4,16);var $2=(parseInt(RegExp.$5,16)*16)+parseInt(RegExp.$6,16);return [$0,$1,$2];},hex3StringToRgb:function($0){if(this.isHex3String($0)){return this.__hex3StringToRgb($0);}throw new Error("Invalid hex3 value: "+$0);},hex6StringToRgb:function($0){if(this.isHex6String($0)){return this.__hex6StringToRgb($0);}throw new Error("Invalid hex6 value: "+$0);},hexStringToRgb:function($0){if(this.isHex3String($0)){return this.__hex3StringToRgb($0);}if(this.isHex6String($0)){return this.__hex6StringToRgb($0);}throw new Error("Invalid hex value: "+$0);},rgbToHsb:function($0){var $1,$2,$3;var $4=$0[0];var $5=$0[1];var $6=$0[2];var $7=($4>$5)?$4:$5;if($6>$7){$7=$6;}var $8=($4<$5)?$4:$5;if($6<$8){$8=$6;}$3=$7/255.0;if($7!=0){$2=($7-$8)/$7;}else{$2=0;}if($2==0){$1=0;}else{var $9=($7-$4)/($7-$8);var $a=($7-$5)/($7-$8);var $b=($7-$6)/($7-$8);if($4==$7){$1=$b-$a;}else if($5==$7){$1=2.0+$9-$b;}else{$1=4.0+$a-$9;}$1=$1/6.0;if($1<0){$1=$1+1.0;}}return [Math.round($1*360),Math.round($2*100),Math.round($3*100)];},hsbToRgb:function($0){var $1,$2,$3,$4,$5;var $6=$0[0]/360;var $7=$0[1]/100;var $8=$0[2]/100;if($6>=1.0){$6%=1.0;}if($7>1.0){$7=1.0;}if($8>1.0){$8=1.0;}var $9=Math.floor(255*$8);var $a={};if($7==0.0){$a.red=$a.green=$a.blue=$9;}else{$6*=6.0;$1=Math.floor($6);$2=$6-$1;$3=Math.floor($9*(1.0-$7));$4=Math.floor($9*(1.0-($7*$2)));$5=Math.floor($9*(1.0-($7*(1.0-$2))));switch($1){case 0:$a.red=$9;$a.green=$5;$a.blue=$3;break;case 1:$a.red=$4;$a.green=$9;$a.blue=$3;break;case 2:$a.red=$3;$a.green=$9;$a.blue=$5;break;case 3:$a.red=$3;$a.green=$4;$a.blue=$9;break;case 4:$a.red=$5;$a.green=$3;$a.blue=$9;break;case 5:$a.red=$9;$a.green=$3;$a.blue=$4;break;}}return $a;},randomColor:function(){var $0=Math.round(Math.random()*255);var $1=Math.round(Math.random()*255);var $2=Math.round(Math.random()*255);return this.rgbToRgbString([$0,$1,$2]);}}});
57
qx.Class.define($[306],{extend:qx.ui.core.Widget,type:$[51],construct:function(){arguments.callee.base.call(this);this._children=[];this._layoutImpl=this._createLayoutImpl();},properties:{focusHandler:{check:$[511],apply:$[1146],nullable:true},activeChild:{check:$[66],apply:$[1570],event:$[671],nullable:true},focusedChild:{check:$[66],apply:$[1299],event:$[825],nullable:true},visibleChildren:{_cached:true,defaultValue:null}},members:{isFocusRoot:function(){return this.getFocusHandler()!=null;},getFocusRoot:function(){if(this.isFocusRoot()){return this;}if(this._hasParent){return this.getParent().getFocusRoot();}return null;},activateFocusRoot:function(){if(this._focusHandler){return;}this._focusHandler=new qx.event.handler.FocusHandler(this);this.setFocusHandler(this._focusHandler);},_onfocuskeyevent:function($0){this.getFocusHandler()._onkeyevent(this,$0);},_applyFocusHandler:function($0,$1){if($0){this.addEventListener($[40],this._onfocuskeyevent);if(this.getTabIndex()<1){this.setTabIndex(1);}this.setHideFocus(true);this.setActiveChild(this);}else{this.removeEventListener($[16],this._onfocuskeyevent);this.removeEventListener($[40],this._onfocuskeyevent);this.setTabIndex(-1);this.setHideFocus(false);}},_applyActiveChild:function($0,$1){},_applyFocusedChild:function($0,$1){var $2=$0!=null;var $3=$1!=null;if(qx.Class.isDefined($[166])&&$2){var $4=qx.ui.popup.PopupManager.getInstance();if($4){$4.update($0);}}if($3){if($1.hasEventListeners($[265])){var $5=new qx.event.type.FocusEvent($[265],$1);if($2){$5.setRelatedTarget($0);}$1.dispatchEvent($5);$5.dispose();}}if($2){if($0.hasEventListeners($[253])){var $5=new qx.event.type.FocusEvent($[253],$0);if($3){$5.setRelatedTarget($1);}$0.dispatchEvent($5);$5.dispose();}}if($3){if(this.getActiveChild()==$1&&!$2){this.setActiveChild(null);}$1.setFocused(false);var $5=new qx.event.type.FocusEvent($[199],$1);if($2){$5.setRelatedTarget($0);}$1.dispatchEvent($5);if(qx.Class.isDefined($[151])){var $4=qx.ui.popup.ToolTipManager.getInstance();if($4){$4.handleBlur($5);}}$5.dispose();}if($2){this.setActiveChild($0);$0.setFocused(true);qx.event.handler.EventHandler.getInstance().setFocusRoot(this);var $5=new qx.event.type.FocusEvent($[236],$0);if($3){$5.setRelatedTarget($1);}$0.dispatchEvent($5);if(qx.Class.isDefined($[151])){var $4=qx.ui.popup.ToolTipManager.getInstance();if($4){$4.handleFocus($5);}}$5.dispose();}},_layoutImpl:null,_createLayoutImpl:function(){return null;},getLayoutImpl:function(){return this._layoutImpl;},getChildren:function(){return this._children;},getChildrenLength:function(){return this.getChildren().length;},hasChildren:function(){return this.getChildrenLength()>0;},isEmpty:function(){return this.getChildrenLength()==0;},indexOf:function($0){return this.getChildren().indexOf($0);},contains:function($0){switch($0){case null:return false;case this:return true;default:return this.contains($0.getParent());}},_computeVisibleChildren:function(){var $0=[];var $1=this.getChildren();if(!$1){return 0;}var $2=$1.length;for(var $3=0;$3<$2;$3++){var $4=$1[$3];if($4._isDisplayable){$0.push($4);}}return $0;},getVisibleChildrenLength:function(){return this.getVisibleChildren().length;},hasVisibleChildren:function(){return this.getVisibleChildrenLength()>0;},isVisibleEmpty:function(){return this.getVisibleChildrenLength()==0;},add:function($0){var $1;for(var $2=0,$3=arguments.length;$2<$3;$2++){$1=arguments[$2];if(!($1 instanceof qx.ui.core.Parent)&&!($1 instanceof qx.ui.basic.Terminator)){throw new Error("Invalid Widget: "+$1);}else{$1.setParent(this);}}return this;},addAt:function($0,$1){if($1==null||$1<0){throw new Error("Not a valid index for addAt(): "+$1);}if($0.getParent()==this){var $2=this.getChildren();var $3=$2.indexOf($0);if($3!=$1){if($3!=-1){qx.lang.Array.removeAt($2,$3);}qx.lang.Array.insertAt($2,$0,$1);if(this._initialLayoutDone){this._invalidateVisibleChildren();this.getLayoutImpl().updateChildrenOnMoveChild($0,$1,$3);}}}else{$0._insertIndex=$1;$0.setParent(this);}},addAtBegin:function($0){return this.addAt($0,0);},addAtEnd:function($0){var $1=this.getChildrenLength();return this.addAt($0,$0.getParent()==this?$1-1:$1);},addBefore:function($0,$1){var $2=this.getChildren();var $3=$2.indexOf($1);if($3==-1){throw new Error("Child to add before: "+$1+" is not inside this parent.");}var $4=$2.indexOf($0);if($4==-1||$4>$3){$3++;}return this.addAt($0,Math.max(0,$3-1));},addAfter:function($0,$1){var $2=this.getChildren();var $3=$2.indexOf($1);if($3==-1){throw new Error("Child to add after: "+$1+" is not inside this parent.");}var $4=$2.indexOf($0);if($4!=-1&&$4<$3){$3--;}return this.addAt($0,Math.min($2.length,$3+1));},remove:function($0){var $1;for(var $2=0,$3=arguments.length;$2<$3;$2++){$1=arguments[$2];if(!($1 instanceof qx.ui.core.Parent)&&!($1 instanceof qx.ui.basic.Terminator)){throw new Error("Invalid Widget: "+$1);}else if($1.getParent()==this){$1.setParent(null);}}},removeAt:function($0){var $1=this.getChildren()[$0];if($1){delete $1._insertIndex;$1.setParent(null);}},removeAll:function(){var $0=this.getChildren();var $1=$0[0];while($1){this.remove($1);$1=$0[0];}},getFirstChild:function(){return qx.lang.Array.getFirst(this.getChildren())||null;},getFirstVisibleChild:function(){return qx.lang.Array.getFirst(this.getVisibleChildren())||null;},getFirstActiveChild:function($0){return qx.ui.core.Widget.getActiveSiblingHelper(null,this,1,$0,$[476])||null;},getLastChild:function(){return qx.lang.Array.getLast(this.getChildren())||null;},getLastVisibleChild:function(){return qx.lang.Array.getLast(this.getVisibleChildren())||null;},getLastActiveChild:function($0){return qx.ui.core.Widget.getActiveSiblingHelper(null,this,-1,$0,$[835])||null;},forEachChild:function($0){var $1=this.getChildren(),$2,$3=-1;if(!$1){return;}while($2=$1[++$3]){$0.call($2,$3);}},forEachVisibleChild:function($0){var $1=this.getVisibleChildren(),$2,$3=-1;if(!$1){return;}while($2=$1[++$3]){$0.call($2,$3);}},_beforeAppear:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeAppear();}});},_afterAppear:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterAppear();}});},_beforeDisappear:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeDisappear();}});},_afterDisappear:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterDisappear();}});},_beforeInsertDom:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeInsertDom();}});},_afterInsertDom:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterInsertDom();}});},_beforeRemoveDom:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeRemoveDom();}});},_afterRemoveDom:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterRemoveDom();}});},_handleDisplayableCustom:function($0,$1,$2){this.forEachChild(function(){this._handleDisplayable();});},_addChildrenToStateQueue:function(){this.forEachVisibleChild(function(){this.addToStateQueue();});},recursiveAddToStateQueue:function(){this.addToStateQueue();this.forEachVisibleChild(function(){this.recursiveAddToStateQueue();});},_recursiveAppearanceThemeUpdate:function($0,$1){arguments.callee.base.call(this,$0,$1);this.forEachVisibleChild(function(){this._recursiveAppearanceThemeUpdate($0,$1);});},_addChildToChildrenQueue:function($0){if(!$0._isInParentChildrenQueue&&!$0._isDisplayable){this.warn("Ignoring invisible child: "+$0);}if(!$0._isInParentChildrenQueue&&$0._isDisplayable){qx.ui.core.Widget.addToGlobalLayoutQueue(this);if(!this._childrenQueue){this._childrenQueue={};}this._childrenQueue[$0.toHashCode()]=$0;}},_removeChildFromChildrenQueue:function($0){if(this._childrenQueue&&$0._isInParentChildrenQueue){delete this._childrenQueue[$0.toHashCode()];if(qx.lang.Object.isEmpty(this._childrenQueue)){qx.ui.core.Widget.removeFromGlobalLayoutQueue(this);}}},_flushChildrenQueue:function(){if(!qx.lang.Object.isEmpty(this._childrenQueue)){this.getLayoutImpl().flushChildrenQueue(this._childrenQueue);delete this._childrenQueue;}},_addChildrenToLayoutQueue:function($0){this.forEachChild(function(){this.addToLayoutChanges($0);});},_layoutChild:function($0){if(!$0._isDisplayable){return ;}var $1=$0._layoutChanges;try{if($0.renderBorder){if($1.borderTop||$1.borderRight||$1.borderBottom||$1.borderLeft){$0.renderBorder($1);}}}catch(ex){this.error("Could not apply border to child "+$0,ex);}try{if($0.renderPadding){if($1.paddingLeft||$1.paddingRight||$1.paddingTop||$1.paddingBottom){$0.renderPadding($1);}}}catch(ex){this.error("Could not apply padding to child "+$0,ex);}try{this.getLayoutImpl().layoutChild($0,$1);}catch(ex){this.error("Could not layout child "+$0+" through layout handler",ex);}try{$0._layoutPost($1);}catch(ex){this.error("Could not post layout child "+$0,ex);}try{if($1.initial){$0._initialLayoutDone=true;qx.ui.core.Widget.addToGlobalDisplayQueue($0);}}catch(ex){this.error("Could not handle display updates from layout flush for child "+$0,ex);}$0._layoutChanges={};delete $0._isInParentLayoutQueue;delete this._childrenQueue[$0.toHashCode()];},_layoutPost:qx.lang.Function.returnTrue,_computePreferredInnerWidth:function(){return this.getLayoutImpl().computeChildrenNeededWidth();},_computePreferredInnerHeight:function(){return this.getLayoutImpl().computeChildrenNeededHeight();},_changeInnerWidth:function($0,$1){var $2=this.getLayoutImpl();if($2.invalidateChildrenFlexWidth){$2.invalidateChildrenFlexWidth();}this.forEachVisibleChild(function(){if($2.updateChildOnInnerWidthChange(this)&&this._recomputeBoxWidth()){this._recomputeOuterWidth();this._recomputeInnerWidth();}});},_changeInnerHeight:function($0,$1){var $2=this.getLayoutImpl();if($2.invalidateChildrenFlexHeight){$2.invalidateChildrenFlexHeight();}this.forEachVisibleChild(function(){if($2.updateChildOnInnerHeightChange(this)&&this._recomputeBoxHeight()){this._recomputeOuterHeight();this._recomputeInnerHeight();}});},getInnerWidthForChild:function($0){return this.getInnerWidth();},getInnerHeightForChild:function($0){return this.getInnerHeight();},_remappingChildTable:[$[422],$[387],$[407],$[486],$[317],$[515],$[464],$[327],$[322]],_remapStart:$[1778],_remapStop:$[1549],remapChildrenHandlingTo:function($0){var $1=this._remappingChildTable;this._remappingChildTarget=$0;for(var $2=0,$3=$1.length,$4;$2<$3;$2++){$4=$1[$2];this[$4]=new Function(qx.ui.core.Parent.prototype._remapStart+$4+qx.ui.core.Parent.prototype._remapStop);}}},defer:function($0,$1,$2){if(qx.core.Variant.isSet($[1],$[154])){$1._layoutChildOrig=$1._layoutChild;$1._layoutChild=function($3){if(!$3._initialLayoutDone||!$3._layoutChanges.border){return this._layoutChildOrig($3);}var $4=$3.getElement().style;var $5=$4.display;$4.display=$[7];var $6=this._layoutChildOrig($3);$4.display=$5;return $6;};}},destruct:function(){this._disposeObjectDeep($[1312],1);this._disposeObjects($[991],$[538]);this._disposeFields($[312],$[312],$[1058],$[1341],$[572]);}});
61
qx.Class.define($[1563],{type:$[18],extend:qx.core.Target,properties:{theme:{check:$[121],nullable:true,apply:$[1021],event:$[1032]},autoSync:{check:$[2],init:true,apply:$[853]}},members:{_applyTheme:function($0,$1){var $2=null;var $3=null;var $4=null;var $5=null;var $6=null;var $7=null;if($0){$2=$0.meta.color||null;$3=$0.meta.border||null;$4=$0.meta.font||null;$5=$0.meta.widget||null;$6=$0.meta.icon||null;$7=$0.meta.appearance||null;}if($1){this.setAutoSync(false);}var $8=qx.theme.manager.Color.getInstance();var $9=qx.theme.manager.Border.getInstance();var $a=qx.theme.manager.Font.getInstance();var $b=qx.theme.manager.Icon.getInstance();var $c=qx.theme.manager.Widget.getInstance();var $d=qx.theme.manager.Appearance.getInstance();$8.setColorTheme($2);$9.setBorderTheme($3);$a.setFontTheme($4);$c.setWidgetTheme($5);$b.setIconTheme($6);$d.setAppearanceTheme($7);if($1){this.setAutoSync(true);}},_applyAutoSync:function($0,$1){if($0){qx.theme.manager.Appearance.getInstance().syncAppearanceTheme();qx.theme.manager.Icon.getInstance().syncIconTheme();qx.theme.manager.Widget.getInstance().syncWidgetTheme();qx.theme.manager.Font.getInstance().syncFontTheme();qx.theme.manager.Border.getInstance().syncBorderTheme();qx.theme.manager.Color.getInstance().syncColorTheme();}},initialize:function(){var $0=qx.core.Setting;var $1,$2;$1=$0.get($[1516]);if($1){$2=qx.Theme.getByName($1);if(!$2){throw new Error("The meta theme to use is not available: "+$1);}this.setTheme($2);}$1=$0.get($[1078]);if($1){$2=qx.Theme.getByName($1);if(!$2){throw new Error("The color theme to use is not available: "+$1);}qx.theme.manager.Color.getInstance().setColorTheme($2);}$1=$0.get($[1557]);if($1){$2=qx.Theme.getByName($1);if(!$2){throw new Error("The border theme to use is not available: "+$1);}qx.theme.manager.Border.getInstance().setBorderTheme($2);}$1=$0.get($[910]);if($1){$2=qx.Theme.getByName($1);if(!$2){throw new Error("The font theme to use is not available: "+$1);}qx.theme.manager.Font.getInstance().setFontTheme($2);}$1=$0.get($[1653]);if($1){$2=qx.Theme.getByName($1);if(!$2){throw new Error("The widget theme to use is not available: "+$1);}qx.theme.manager.Widget.getInstance().setWidgetTheme($2);}$1=$0.get($[606]);if($1){$2=qx.Theme.getByName($1);if(!$2){throw new Error("The icon theme to use is not available: "+$1);}qx.theme.manager.Icon.getInstance().setIconTheme($2);}$1=$0.get($[975]);if($1){$2=qx.Theme.getByName($1);if(!$2){throw new Error("The appearance theme to use is not available: "+$1);}qx.theme.manager.Appearance.getInstance().setAppearanceTheme($2);}},__queryThemes:function($0){var $1=qx.Theme.getAll();var $2;var $3=[];for(var $4 in $1){$2=$1[$4];if($2[$0]){$3.push($2);}}return $3;},getMetaThemes:function(){return this.__queryThemes($[350]);},getColorThemes:function(){return this.__queryThemes($[391]);},getBorderThemes:function(){return this.__queryThemes($[519]);},getFontThemes:function(){return this.__queryThemes($[463]);},getWidgetThemes:function(){return this.__queryThemes($[523]);},getIconThemes:function(){return this.__queryThemes($[485]);},getAppearanceThemes:function(){return this.__queryThemes($[319]);}},settings:{"qx.theme":$[1115],"qx.colorTheme":null,"qx.borderTheme":null,"qx.fontTheme":null,"qx.widgetTheme":null,"qx.appearanceTheme":null,"qx.iconTheme":null}});
62
qx.Class.define($[1007],{type:$[18],extend:qx.util.manager.Value,properties:{borderTheme:{check:$[121],nullable:true,apply:$[876],event:$[587]}},members:{resolveDynamic:function($0){return $0 instanceof qx.ui.core.Border?$0:this._dynamic[$0];},isDynamic:function($0){return $0&&($0 instanceof qx.ui.core.Border||this._dynamic[$0]!==undefined);},syncBorderTheme:function(){this._updateObjects();},updateObjectsEdge:function($0,$1){var $2=this._registry;var $3=this._dynamic;var $4;for(var $5 in $2){$4=$2[$5];if($4.value===$0||$3[$4.value]===$0){$4.callback.call($4.object,$0,$1);}}},_applyBorderTheme:function($0){var $1=this._dynamic;for(var $2 in $1){if($1[$2].themed){$1[$2].dispose();delete $1[$2];}}if($0){var $3=$0.borders;var $4=qx.ui.core.Border;for(var $2 in $3){$1[$2]=(new $4).set($3[$2]);$1[$2].themed=true;}}if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncBorderTheme();}}}});
63
qx.Class.define($[1182],{extend:qx.core.Object,construct:function($0,$1,$2){arguments.callee.base.call(this);if($0!==undefined){this.setWidth($0);}if($1!==undefined){this.setStyle($1);}if($2!==undefined){this.setColor($2);}},statics:{fromString:function($0){var $1=new qx.ui.core.Border;var $2=$0.split(/\s+/);var $3,$4;for(var $5=0,$6=$2.length;$5<$6;$5++){$3=$2[$5];switch($3){case $[170]:case $[196]:case $[192]:case $[190]:case $[42]:case $[167]:case $[187]:case $[171]:case $[7]:$1.setStyle($3);break;default:$4=parseInt($3);if($4===$3||qx.lang.String.contains($3,$[38])){$1.setWidth($4);}else{$1.setColor($3);}break;}}return $1;},fromConfig:function($0){var $1=new qx.ui.core.Border;$1.set($0);return $1;},resetTop:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0._style;if($1){$1.borderTopWidth=$1.borderTopStyle=$1.borderTopColor=$1.MozBorderTopColors=$[0];}},"default":function($0){var $1=$0._style;if($1){$1.borderTopWidth=$1.borderTopStyle=$1.borderTopColor=$[0];}$1=$0._innerStyle;if($1){$1.borderTopWidth=$1.borderTopStyle=$1.borderTopColor=$[0];}}}),resetRight:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0._style;if($1){$1.borderRightWidth=$1.borderRightStyle=$1.borderRightColor=$1.MozBorderRightColors=$[0];}},"default":function($0){var $1=$0._style;if($1){$1.borderRightWidth=$1.borderRightStyle=$1.borderRightColor=$[0];}$1=$0._innerStyle;if($1){$1.borderRightWidth=$1.borderRightStyle=$1.borderRightColor=$[0];}}}),resetBottom:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0._style;if($1){$1.borderBottomWidth=$1.borderBottomStyle=$1.borderBottomColor=$1.MozBorderBottomColors=$[0];}},"default":function($0){var $1=$0._style;if($1){$1.borderBottomWidth=$1.borderBottomStyle=$1.borderBottomColor=$[0];}$1=$0._innerStyle;if($1){$1.borderBottomWidth=$1.borderBottomStyle=$1.borderBottomColor=$[0];}}}),resetLeft:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0._style;if($1){$1.borderLeftWidth=$1.borderLeftStyle=$1.borderLeftColor=$1.MozBorderLeftColors=$[0];}},"default":function($0){var $1=$0._style;if($1){$1.borderLeftWidth=$1.borderLeftStyle=$1.borderLeftColor=$[0];}$1=$0._innerStyle;if($1){$1.borderLeftWidth=$1.borderLeftStyle=$1.borderLeftColor=$[0];}}})},properties:{widthTop:{check:$[19],init:0,apply:$[1451]},widthRight:{check:$[19],init:0,apply:$[1132]},widthBottom:{check:$[19],init:0,apply:$[1243]},widthLeft:{check:$[19],init:0,apply:$[1679]},styleTop:{nullable:true,check:[$[42],$[167],$[187],$[171],$[190],$[192],$[196],$[170]],init:$[42],apply:$[1641]},styleRight:{nullable:true,check:[$[42],$[167],$[187],$[171],$[190],$[192],$[196],$[170]],init:$[42],apply:$[1231]},styleBottom:{nullable:true,check:[$[42],$[167],$[187],$[171],$[190],$[192],$[196],$[170]],init:$[42],apply:$[1045]},styleLeft:{nullable:true,check:[$[42],$[167],$[187],$[171],$[190],$[192],$[196],$[170]],init:$[42],apply:$[1437]},colorTop:{nullable:true,check:$[90],apply:$[1769]},colorRight:{nullable:true,check:$[90],apply:$[1240]},colorBottom:{nullable:true,check:$[90],apply:$[742]},colorLeft:{nullable:true,check:$[90],apply:$[1309]},colorInnerTop:{nullable:true,check:$[90],apply:$[1430]},colorInnerRight:{nullable:true,check:$[90],apply:$[1288]},colorInnerBottom:{nullable:true,check:$[90],apply:$[968]},colorInnerLeft:{nullable:true,check:$[90],apply:$[1756]},left:{group:[$[526],$[361],$[531]]},right:{group:[$[446],$[358],$[486]]},top:{group:[$[473],$[337],$[417]]},bottom:{group:[$[405],$[445],$[400]]},width:{group:[$[473],$[446],$[405],$[526]],mode:$[103]},style:{group:[$[337],$[358],$[445],$[361]],mode:$[103]},color:{group:[$[417],$[486],$[400],$[531]],mode:$[103]},innerColor:{group:[$[1582],$[1736],$[928],$[1665]],mode:$[103]}},members:{_applyWidthTop:function($0,$1){this.__widthTop=$0==null?$[52]:$0+$[38];this.__computeComplexTop();this.__informManager($[20]);},_applyWidthRight:function($0,$1){this.__widthRight=$0==null?$[52]:$0+$[38];this.__computeComplexRight();this.__informManager($[9]);},_applyWidthBottom:function($0,$1){this.__widthBottom=$0==null?$[52]:$0+$[38];this.__computeComplexBottom();this.__informManager($[17]);},_applyWidthLeft:function($0,$1){this.__widthLeft=$0==null?$[52]:$0+$[38];this.__computeComplexLeft();this.__informManager($[11]);},_applyColorTop:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._changeColorTop,this,$0);},_applyColorRight:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._changeColorRight,this,$0);},_applyColorBottom:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._changeColorBottom,this,$0);},_applyColorLeft:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._changeColorLeft,this,$0);},_applyColorInnerTop:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._changeColorInnerTop,this,$0);},_applyColorInnerRight:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._changeColorInnerRight,this,$0);},_applyColorInnerBottom:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._changeColorInnerBottom,this,$0);},_applyColorInnerLeft:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._changeColorInnerLeft,this,$0);},_applyStyleTop:function(){this.__informManager($[20]);},_applyStyleRight:function(){this.__informManager($[9]);},_applyStyleBottom:function(){this.__informManager($[17]);},_applyStyleLeft:function(){this.__informManager($[11]);},_changeColorTop:function($0){this.__colorTop=$0;this.__computeComplexTop();this.__informManager($[20]);},_changeColorInnerTop:function($0){this.__colorInnerTop=$0;this.__computeComplexTop();this.__informManager($[20]);},_changeColorRight:function($0){this.__colorRight=$0;this.__computeComplexRight();this.__informManager($[9]);},_changeColorInnerRight:function($0){this.__colorInnerRight=$0;this.__computeComplexRight();this.__informManager($[9]);},_changeColorBottom:function($0){this.__colorBottom=$0;this.__computeComplexBottom();this.__informManager($[17]);},_changeColorInnerBottom:function($0){this.__colorInnerBottom=$0;this.__computeComplexBottom();this.__informManager($[17]);},_changeColorLeft:function($0){this.__colorLeft=$0;this.__computeComplexLeft();this.__informManager($[11]);},_changeColorInnerLeft:function($0){this.__colorInnerLeft=$0;this.__computeComplexLeft();this.__informManager($[11]);},__computeComplexTop:function(){this.__complexTop=this.getWidthTop()===2&&this.__colorInnerTop!=null&&this.__colorTop!=this.__colorInnerTop;},__computeComplexRight:function(){this.__complexRight=this.getWidthRight()===2&&this.__colorInnerRight!=null&&this.__colorRight!=this.__colorInnerRight;},__computeComplexBottom:function(){this.__complexBottom=this.getWidthBottom()===2&&this.__colorInnerBottom!=null&&this.__colorBottom!=this.__colorInnerBottom;},__computeComplexLeft:function(){this.__complexLeft=this.getWidthLeft()===2&&this.__colorInnerLeft!=null&&this.__colorLeft!=this.__colorInnerLeft;},__informManager:function($0){qx.theme.manager.Border.getInstance().updateObjectsEdge(this,$0);},renderTop:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0._style;$1.borderTopWidth=this.__widthTop||$[52];$1.borderTopColor=this.__colorTop||$[0];if(this.__complexTop){$1.borderTopStyle=$[42];$1.MozBorderTopColors=this.__colorTop+$[83]+this.__colorInnerTop;}else{$1.borderTopStyle=this.getStyleTop()||$[7];$1.MozBorderTopColors=$[0];}},"default":function($0){var $1=$0._style;var $2=$0._innerStyle;if(this.__complexTop){if(!$2){$0.prepareEnhancedBorder();$2=$0._innerStyle;}$1.borderTopWidth=$2.borderTopWidth=$[161];$1.borderTopStyle=$2.borderTopStyle=$[42];$1.borderTopColor=this.__colorTop;$2.borderTopColor=this.__colorInnerTop;}else{$1.borderTopWidth=this.__widthTop||$[52];$1.borderTopStyle=this.getStyleTop()||$[7];$1.borderTopColor=this.__colorTop||$[0];if($2){$2.borderTopWidth=$2.borderTopStyle=$2.borderTopColor=$[0];}}}}),renderRight:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0._style;$1.borderRightWidth=this.__widthRight||$[52];$1.borderRightColor=this.__colorRight||$[0];if(this.__complexRight){$1.borderRightStyle=$[42];$1.MozBorderRightColors=this.__colorRight+$[83]+this.__colorInnerRight;}else{$1.borderRightStyle=this.getStyleRight()||$[7];$1.MozBorderRightColors=$[0];}},"default":function($0){var $1=$0._style;var $2=$0._innerStyle;if(this.__complexRight){if(!$2){$0.prepareEnhancedBorder();$2=$0._innerStyle;}$1.borderRightWidth=$2.borderRightWidth=$[161];$1.borderRightStyle=$2.borderRightStyle=$[42];$1.borderRightColor=this.__colorRight;$2.borderRightColor=this.__colorInnerRight;}else{$1.borderRightWidth=this.__widthRight||$[52];$1.borderRightStyle=this.getStyleRight()||$[7];$1.borderRightColor=this.__colorRight||$[0];if($2){$2.borderRightWidth=$2.borderRightStyle=$2.borderRightColor=$[0];}}}}),renderBottom:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0._style;$1.borderBottomWidth=this.__widthBottom||$[52];$1.borderBottomColor=this.__colorBottom||$[0];if(this.__complexBottom){$1.borderBottomStyle=$[42];$1.MozBorderBottomColors=this.__colorBottom+$[83]+this.__colorInnerBottom;}else{$1.borderBottomStyle=this.getStyleBottom()||$[7];$1.MozBorderBottomColors=$[0];}},"default":function($0){var $1=$0._style;var $2=$0._innerStyle;if(this.__complexBottom){if(!$2){$0.prepareEnhancedBorder();$2=$0._innerStyle;}$1.borderBottomWidth=$2.borderBottomWidth=$[161];$1.borderBottomStyle=$2.borderBottomStyle=$[42];$1.borderBottomColor=this.__colorBottom;$2.borderBottomColor=this.__colorInnerBottom;}else{$1.borderBottomWidth=this.__widthBottom||$[52];$1.borderBottomStyle=this.getStyleBottom()||$[7];$1.borderBottomColor=this.__colorBottom||$[0];if($2){$2.borderBottomWidth=$2.borderBottomStyle=$2.borderBottomColor=$[0];}}}}),renderLeft:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0._style;$1.borderLeftWidth=this.__widthLeft||$[52];$1.borderLeftColor=this.__colorLeft||$[0];if(this.__complexLeft){$1.borderLeftStyle=$[42];$1.MozBorderLeftColors=this.__colorLeft+$[83]+this.__colorInnerLeft;}else{$1.borderLeftStyle=this.getStyleLeft()||$[7];$1.MozBorderLeftColors=$[0];}},"default":function($0){var $1=$0._style;var $2=$0._innerStyle;if(this.__complexLeft){if(!$2){$0.prepareEnhancedBorder();$2=$0._innerStyle;}$1.borderLeftWidth=$2.borderLeftWidth=$[161];$1.borderLeftStyle=$2.borderLeftStyle=$[42];$1.borderLeftColor=this.__colorLeft;$2.borderLeftColor=this.__colorInnerLeft;}else{$1.borderLeftWidth=this.__widthLeft||$[52];$1.borderLeftStyle=this.getStyleLeft()||$[7];$1.borderLeftColor=this.__colorLeft||$[0];if($2){$2.borderLeftWidth=$2.borderLeftStyle=$2.borderLeftColor=$[0];}}}})}});
64
qx.Class.define($[1786],{type:$[18],extend:qx.util.manager.Value,properties:{fontTheme:{check:$[121],nullable:true,apply:$[892],event:$[1172]}},members:{resolveDynamic:function($0){return $0 instanceof qx.ui.core.Font?$0:this._dynamic[$0];},isDynamic:function($0){return $0&&($0 instanceof qx.ui.core.Font||this._dynamic[$0]!==undefined);},syncFontTheme:function(){this._updateObjects();},_applyFontTheme:function($0){var $1=this._dynamic;for(var $2 in $1){if($1[$2].themed){$1[$2].dispose();delete $1[$2];}}if($0){var $3=$0.fonts;var $4=qx.ui.core.Font;for(var $2 in $3){$1[$2]=(new $4).set($3[$2]);$1[$2].themed=true;}}if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncFontTheme();}}}});
65
qx.Class.define($[792],{extend:qx.core.Object,construct:function($0,$1){arguments.callee.base.call(this);if($0!==undefined){this.setSize($0);}if($1!==undefined){this.setFamily($1);}},statics:{fromString:function($0){var $1=new qx.ui.core.Font;var $2=$0.split(/\s+/);var $3=[];var $4;for(var $5=0;$5<$2.length;$5++){switch($4=$2[$5]){case $[278]:$1.setBold(true);break;case $[375]:$1.setItalic(true);break;case $[304]:$1.setDecoration($[304]);break;default:var $6=parseInt($4);if($6==$4||qx.lang.String.contains($4,$[38])){$1.setSize($6);}else{$3.push($4);}break;}}if($3.length>0){$1.setFamily($3);}return $1;},fromConfig:function($0){var $1=new qx.ui.core.Font;$1.set($0);return $1;},reset:function($0){$0.removeStyleProperty($[472]);$0.removeStyleProperty($[210]);$0.removeStyleProperty($[380]);$0.removeStyleProperty($[333]);$0.removeStyleProperty($[465]);},resetElement:function($0){var $1=$0.style;$1.fontFamily=$[0];$1.fontSize=$[0];$1.fontWeight=$[0];$1.fontStyle=$[0];$1.textDecoration=$[0];},resetStyle:function($0){$0.fontFamily=$[0];$0.fontSize=$[0];$0.fontWeight=$[0];$0.fontStyle=$[0];$0.textDecoration=$[0];}},properties:{size:{check:$[5],nullable:true,apply:$[590]},family:{check:$[413],nullable:true,apply:$[1521]},bold:{check:$[2],nullable:true,apply:$[1765]},italic:{check:$[2],nullable:true,apply:$[1248]},decoration:{check:[$[304],$[666],$[1725]],nullable:true,apply:$[1732]}},members:{__size:null,__family:null,__bold:null,__italic:null,__decoration:null,_applySize:function($0,$1){this.__size=$0===null?null:$0+$[38];},_applyFamily:function($0,$1){var $2=$[0];for(var $3=0,$4=$0.length;$3<$4;$3++){if($0[$3].indexOf($[83])>0){$2+=$[109]+$0[$3]+$[109];}else{$2+=$0[$3];}if($3!=$4-1){$2+=$[101];}}this.__family=$2;},_applyBold:function($0,$1){this.__bold=$0===null?null:$0?$[278]:$[156];},_applyItalic:function($0,$1){this.__italic=$0===null?null:$0?$[375]:$[156];},_applyDecoration:function($0,$1){this.__decoration=$0===null?null:$0;},render:function($0){$0.setStyleProperty($[472],this.__family);$0.setStyleProperty($[210],this.__size);$0.setStyleProperty($[380],this.__bold);$0.setStyleProperty($[333],this.__italic);$0.setStyleProperty($[465],this.__decoration);},renderStyle:function($0){$0.fontFamily=this.__family||$[0];$0.fontSize=this.__size||$[0];$0.fontWeight=this.__bold||$[0];$0.fontStyle=this.__italic||$[0];$0.textDecoration=this.__decoration||$[0];},renderElement:function($0){var $1=$0.style;$1.fontFamily=this.__family||$[0];$1.fontSize=this.__size||$[0];$1.fontWeight=this.__bold||$[0];$1.fontStyle=this.__italic||$[0];$1.textDecoration=this.__decoration||$[0];},generateStyle:function(){return (this.__family?$[1441]+this.__family.replace(/\"/g,$[334])+$[79]:$[0])+(this.__size?$[903]+this.__size+$[79]:$[0])+(this.__weight?$[1461]+this.__weight+$[79]:$[0])+(this.__style?$[1106]+this.__style+$[79]:$[0])+(this.__decoration?$[1299]+this.__decoration+$[79]:$[0]);}}});
66
qx.Class.define($[998],{type:$[18],extend:qx.core.Target,properties:{iconTheme:{check:$[121],nullable:true,apply:$[1131],event:$[1402]}},members:{_applyIconTheme:function($0,$1){if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncIconTheme();}},syncIconTheme:function(){var $0=this.getIconTheme();var $1=qx.io.Alias.getInstance();$0?$1.add($[133],$0.icons.uri):$1.remove($[133]);}}});
67
qx.Class.define($[694],{type:$[18],extend:qx.util.manager.Value,construct:function(){arguments.callee.base.call(this);this._aliases={};this.add($[178],qx.core.Setting.get($[288])+$[813]);},members:{_preprocess:function($0){var $1=this._dynamic;if($1[$0]===false){return $0;}else if($1[$0]===undefined){if($0.charAt(0)===$[135]||$0.charAt(0)===$[24]||$0.indexOf($[1079])===0||$0.indexOf($[849])===$[41]||$0.indexOf($[1360])===0){$1[$0]=false;return $0;}var $2=$0.substring(0,$0.indexOf($[135]));var $3=this._aliases[$2];if($3!==undefined){$1[$0]=$3+$0.substring($2.length);}}return $0;},add:function($0,$1){this._aliases[$0]=$1;var $2=this._dynamic;var $3=this._registry;var $4;var $5={};for(var $6 in $2){if($6.substring(0,$6.indexOf($[135]))===$0){$2[$6]=$1+$6.substring($0.length);$5[$6]=true;}}for(var $7 in $3){$4=$3[$7];if($5[$4.value]){$4.callback.call($4.object,$2[$4.value]);}}},remove:function($0){delete this._aliases[$0];},resolve:function($0){if($0!==null){$0=this._preprocess($0);}return this._dynamic[$0]||$0;}},destruct:function(){this._disposeFields($[881]);}});
68
qx.Class.define($[1435],{type:$[18],extend:qx.core.Target,properties:{widgetTheme:{check:$[121],nullable:true,apply:$[1342],event:$[1766]}},members:{_applyWidgetTheme:function($0,$1){if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncWidgetTheme();}},syncWidgetTheme:function(){var $0=this.getWidgetTheme();var $1=qx.io.Alias.getInstance();$0?$1.add($[216],$0.widgets.uri):$1.remove($[216]);}}});
69
qx.Class.define($[1061],{extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this._objects={};},members:{add:function($0){if(this.getDisposed()){return;}this._objects[$0.toHashCode()]=$0;},remove:function($0){if(this.getDisposed()){return false;}delete this._objects[$0.toHashCode()];},has:function($0){return this._objects[$0.toHashCode()]!=null;},get:function($0){return this._objects[$0.toHashCode()];},getAll:function(){return this._objects;},enableAll:function(){for(var $0 in this._objects){this._objects[$0].setEnabled(true);}},disableAll:function(){for(var $0 in this._objects){this._objects[$0].setEnabled(false);}}},destruct:function(){this._disposeObjectDeep($[468]);}});
70
qx.Class.define($[1353],{type:$[18],extend:qx.util.manager.Object,construct:function(){arguments.callee.base.call(this);this.__cache={};this.__stateMap={};this.__stateMapLength=1;},properties:{appearanceTheme:{check:$[121],nullable:true,apply:$[1617],event:$[1800]}},members:{_applyAppearanceTheme:function($0,$1){this._currentTheme=$0;this._oldTheme=$1;if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncAppearanceTheme();}},syncAppearanceTheme:function(){if(!this._currentTheme&&!this._oldTheme){return;}if(this._currentTheme){this.__cache[this._currentTheme.name]={};}var $0=qx.core.Init.getInstance().getApplication();if($0&&$0.getUiReady()){qx.ui.core.ClientDocument.getInstance()._recursiveAppearanceThemeUpdate(this._currentTheme,this._oldTheme);}if(this._oldTheme){delete this.__cache[this._oldTheme.name];}delete this._currentTheme;delete this._oldTheme;},styleFrom:function($0,$1){var $2=this.getAppearanceTheme();if(!$2){return;}return this.styleFromTheme($2,$0,$1);},styleFromTheme:function($0,$1,$2){var $3=$0.appearances[$1];if(!$3){{};return null;}if(!$3.style){if($3.include){return this.styleFromTheme($0,$3.include,$2);}else{return null;}}var $4=this.__stateMap;var $5=[$1];for(var $6 in $2){if(!$4[$6]){$4[$6]=this.__stateMapLength++;}$5[$4[$6]]=true;}var $7=$5.join();var $8=this.__cache[$0.name];if($8&&$8[$7]!==undefined){return $8[$7];}var $9;if($3.include||$3.base){var $a=$3.style($2);var $b;if($3.include){$b=this.styleFromTheme($0,$3.include,$2);}$9={};if($3.base){var $c=this.styleFromTheme($3.base,$1,$2);if($3.include){for(var $d in $c){if($b[$d]===undefined&&$a[$d]===undefined){$9[$d]=$c[$d];}}}else{for(var $d in $c){if($a[$d]===undefined){$9[$d]=$c[$d];}}}}if($3.include){for(var $d in $b){if($a[$d]===undefined){$9[$d]=$b[$d];}}}for(var $d in $a){$9[$d]=$a[$d];}}else{$9=$3.style($2);}if($8){$8[$7]=$9||null;}return $9||null;}},destruct:function(){this._disposeFields($[710],$[1376]);}});
71
qx.Class.define($[66],{extend:qx.core.Target,type:$[51],construct:function(){arguments.callee.base.call(this);this._layoutChanges={};if(qx.core.Setting.get($[1733])){this._generateHtmlId();}},events:{"beforeAppear":$[4],"appear":$[4],"beforeDisappear":$[4],"disappear":$[4],"beforeInsertDom":$[4],"insertDom":$[4],"beforeRemoveDom":$[4],"removeDom":$[4],"create":$[4],"execute":$[4],"mouseover":$[86],"mousemove":$[86],"mouseout":$[86],"mousedown":$[86],"mouseup":$[86],"mousewheel":$[86],"click":$[86],"dblclick":$[86],"contextmenu":$[86],"keydown":$[186],"keypress":$[186],"keyinput":$[186],"keyup":$[186],"focusout":$[168],"focusin":$[168],"blur":$[168],"focus":$[168],"dragdrop":$[143],"dragout":$[143],"dragover":$[143],"dragmove":$[143],"dragstart":$[143],"dragend":$[143]},statics:{create:function($0,$1){$0._appearance=$1;return new $0;},SCROLLBAR_SIZE:null,_autoFlushTimeout:null,_initAutoFlush:function(){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._autoFlushTimeout=window.setTimeout(qx.ui.core.Widget._autoFlushHelper,0);}},_removeAutoFlush:function(){if(qx.ui.core.Widget._autoFlushTimeout!=null){window.clearTimeout(qx.ui.core.Widget._autoFlushTimeout);qx.ui.core.Widget._autoFlushTimeout=null;}},_autoFlushHelper:function(){qx.ui.core.Widget._autoFlushTimeout=null;if(!qx.core.Object.inGlobalDispose()){qx.ui.core.Widget.flushGlobalQueues();}},flushGlobalQueues:function(){if(qx.ui.core.Widget._autoFlushTimeout!=null){qx.ui.core.Widget._removeAutoFlush();}if(qx.ui.core.Widget._inFlushGlobalQueues){return;}var $0=qx.core.Init.getInstance().getApplication();if($0.getUiReady&&!$0.getUiReady()){return;}qx.ui.core.Widget._inFlushGlobalQueues=true;qx.ui.core.Widget.flushGlobalWidgetQueue();qx.ui.core.Widget.flushGlobalStateQueue();qx.ui.core.Widget.flushGlobalElementQueue();qx.ui.core.Widget.flushGlobalJobQueue();qx.ui.core.Widget.flushGlobalLayoutQueue();qx.ui.core.Widget.flushGlobalDisplayQueue();delete qx.ui.core.Widget._inFlushGlobalQueues;},_globalWidgetQueue:[],addToGlobalWidgetQueue:function($0){if(!$0._isInGlobalWidgetQueue&&$0._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();}qx.ui.core.Widget._globalWidgetQueue.push($0);$0._isInGlobalWidgetQueue=true;}},removeFromGlobalWidgetQueue:function($0){if($0._isInGlobalWidgetQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalWidgetQueue,$0);delete $0._isInGlobalWidgetQueue;}},flushGlobalWidgetQueue:function(){var $0=qx.ui.core.Widget._globalWidgetQueue,$1,$2;while(($1=$0.length)>0){for(var $3=0;$3<$1;$3++){$2=$0[$3];$2.flushWidgetQueue();delete $2._isInGlobalWidgetQueue;}$0.splice(0,$1);}},_globalElementQueue:[],addToGlobalElementQueue:function($0){if(!$0._isInGlobalElementQueue&&$0._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();}qx.ui.core.Widget._globalElementQueue.push($0);$0._isInGlobalElementQueue=true;}},removeFromGlobalElementQueue:function($0){if($0._isInGlobalElementQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalElementQueue,$0);delete $0._isInGlobalElementQueue;}},flushGlobalElementQueue:function(){var $0=qx.ui.core.Widget._globalElementQueue,$1,$2;while(($1=$0.length)>0){for(var $3=0;$3<$1;$3++){$2=$0[$3];$2._createElementImpl();delete $2._isInGlobalElementQueue;}$0.splice(0,$1);}},_globalStateQueue:[],addToGlobalStateQueue:function($0){if(!$0._isInGlobalStateQueue&&$0._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();}qx.ui.core.Widget._globalStateQueue.push($0);$0._isInGlobalStateQueue=true;}},removeFromGlobalStateQueue:function($0){if($0._isInGlobalStateQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalStateQueue,$0);delete $0._isInGlobalStateQueue;}},flushGlobalStateQueue:function(){var $0=qx.ui.core.Widget._globalStateQueue,$1,$2;while(($1=$0.length)>0){for(var $3=0;$3<$1;$3++){$2=$0[$3];$2._renderAppearance();delete $2._isInGlobalStateQueue;}$0.splice(0,$1);}},_globalJobQueue:[],addToGlobalJobQueue:function($0){if(!$0._isInGlobalJobQueue&&$0._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();}qx.ui.core.Widget._globalJobQueue.push($0);$0._isInGlobalJobQueue=true;}},removeFromGlobalJobQueue:function($0){if($0._isInGlobalJobQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalJobQueue,$0);delete $0._isInGlobalJobQueue;}},flushGlobalJobQueue:function(){var $0=qx.ui.core.Widget._globalJobQueue,$1,$2;while(($1=$0.length)>0){for(var $3=0;$3<$1;$3++){$2=$0[$3];$2._flushJobQueue($2._jobQueue);delete $2._isInGlobalJobQueue;}$0.splice(0,$1);}},_globalLayoutQueue:[],addToGlobalLayoutQueue:function($0){if(!$0._isInGlobalLayoutQueue&&$0._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();}qx.ui.core.Widget._globalLayoutQueue.push($0);$0._isInGlobalLayoutQueue=true;}},removeFromGlobalLayoutQueue:function($0){if($0._isInGlobalLayoutQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalLayoutQueue,$0);delete $0._isInGlobalLayoutQueue;}},flushGlobalLayoutQueue:function(){var $0=qx.ui.core.Widget._globalLayoutQueue,$1,$2;while(($1=$0.length)>0){for(var $3=0;$3<$1;$3++){$2=$0[$3];$2._flushChildrenQueue();delete $2._isInGlobalLayoutQueue;}$0.splice(0,$1);}},_fastGlobalDisplayQueue:[],_lazyGlobalDisplayQueues:{},addToGlobalDisplayQueue:function($0){if(!$0._isInGlobalDisplayQueue&&$0._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush();}var $1=$0.getParent();if($1.isSeeable()){var $2=$1.toHashCode();if(qx.ui.core.Widget._lazyGlobalDisplayQueues[$2]){qx.ui.core.Widget._lazyGlobalDisplayQueues[$2].push($0);}else{qx.ui.core.Widget._lazyGlobalDisplayQueues[$2]=[$0];}}else{qx.ui.core.Widget._fastGlobalDisplayQueue.push($0);}$0._isInGlobalDisplayQueue=true;}},removeFromGlobalDisplayQueue:function($0){},flushGlobalDisplayQueue:function(){var $0,$1,$2,$3;var $4=qx.ui.core.Widget._fastGlobalDisplayQueue;var $5=qx.ui.core.Widget._lazyGlobalDisplayQueues;for(var $6=0,$7=$4.length;$6<$7;$6++){$2=$4[$6];$2.getParent()._getTargetNode().appendChild($2.getElement());}if(qx.Class.isDefined($[559])){for($0 in $5){$1=$5[$0];for(var $6=0;$6<$1.length;$6++){$2=$1[$6];if($2 instanceof qx.ui.basic.Inline){$2._beforeInsertDom();try{document.getElementById($2.getInlineNodeId()).appendChild($2.getElement());}catch(ex){$2.debug("Could not append to inline id: "+$2.getInlineNodeId(),ex);}$2._afterInsertDom();$2._afterAppear();qx.lang.Array.remove($1,$2);$6--;delete $2._isInGlobalDisplayQueue;}}}}for($0 in $5){$1=$5[$0];if(document.createDocumentFragment&&$1.length>=3){$3=document.createDocumentFragment();for(var $6=0,$7=$1.length;$6<$7;$6++){$2=$1[$6];$2._beforeInsertDom();$3.appendChild($2.getElement());}$1[0].getParent()._getTargetNode().appendChild($3);for(var $6=0,$7=$1.length;$6<$7;$6++){$2=$1[$6];$2._afterInsertDom();}}else{for(var $6=0,$7=$1.length;$6<$7;$6++){$2=$1[$6];$2._beforeInsertDom();$2.getParent()._getTargetNode().appendChild($2.getElement());$2._afterInsertDom();}}}for($0 in $5){$1=$5[$0];for(var $6=0,$7=$1.length;$6<$7;$6++){$2=$1[$6];if($2.getVisibility()){$2._afterAppear();}delete $2._isInGlobalDisplayQueue;}delete $5[$0];}for(var $6=0,$7=$4.length;$6<$7;$6++){delete $4[$6]._isInGlobalDisplayQueue;}qx.lang.Array.removeAll($4);},getActiveSiblingHelperIgnore:function($0,$1){for(var $2=0;$2<$0.length;$2++){if($1 instanceof $0[$2]){return true;}}return false;},getActiveSiblingHelper:function($0,$1,$2,$3,$4){if(!$3){$3=[];}var $5=$1.getChildren();var $6=$4==null?$5.indexOf($0)+$2:$4===$[475]?0:$5.length-1;var $7=$5[$6];while($7&&(!$7.getEnabled()||qx.ui.core.Widget.getActiveSiblingHelperIgnore($3,$7))){$6+=$2;$7=$5[$6];if(!$7){return null;}}return $7;},__initApplyMethods:function($0){var $1=$[1719];var $2=$[835];var $3=$[1638];var $4=$[965];var $5=$[477];var $6=[$[11],$[9],$[20],$[17],$[30],$[31],$[73],$[74],$[77],$[75]];var $7=[$[60],$[64],$[1150],$[1662],$[1006],$[617],$[1637],$[1046],$[1788],$[1573]];var $8=$1+$[476];var $9=$2+$[476];var $a=$3+$[429];for(var $b=0;$b<4;$b++){$0[$8+$7[$b]]=new Function($5,$a+$7[$b]+$4);$0[$9+$7[$b]]=new Function($a+$7[$b]+$[268]);}var $c=$1+$[483];var $d=$2+$[483];var $e=$3+$[352];if(qx.core.Variant.isSet($[1],$[21])){for(var $b=0;$b<4;$b++){$0[$c+$7[$b]]=new Function($5,$e+$7[$b]+$4);$0[$d+$7[$b]]=new Function($e+$7[$b]+$[268]);}}else{for(var $b=0;$b<4;$b++){$0[$c+$7[$b]]=new Function($5,$[1467]+$7[$b]+$[1346]);$0[$d+$7[$b]]=new Function($[594]+$7[$b]+$[880]);}}for(var $b=0;$b<$6.length;$b++){$0[$1+$7[$b]]=new Function($5,$3+$6[$b]+$4);$0[$2+$7[$b]]=new Function($3+$6[$b]+$[268]);}},TYPE_NULL:0,TYPE_PIXEL:1,TYPE_PERCENT:2,TYPE_AUTO:3,TYPE_FLEX:4,layoutPropertyTypes:{},__initLayoutProperties:function($0){var $1=[$[30],$[31],$[73],$[74],$[77],$[75],$[11],$[9],$[20],$[17]];for(var $2=0,$3=$1.length,$4,$5,$6;$2<$3;$2++){$4=$1[$2];$5=$[1018]+qx.lang.String.toFirstUp($4);$6=$5+$[690];$0.layoutPropertyTypes[$4]={dataType:$6,dataParsed:$5+$[1188],dataValue:$5+$[366],typePixel:$6+$[630],typePercent:$6+$[1073],typeAuto:$6+$[1746],typeFlex:$6+$[1438],typeNull:$6+$[808]};}},initScrollbarWidth:function(){var $0=document.createElement($[67]);var $1=$0.style;$1.height=$1.width=$[252];$1.overflow=$[26];document.body.appendChild($0);var $2=qx.html.Dimension.getScrollBarSizeRight($0);qx.ui.core.Widget.SCROLLBAR_SIZE=$2?$2:16;document.body.removeChild($0);},_idCounter:0},properties:{enabled:{init:$[116],check:$[2],inheritable:true,apply:$[302],event:$[462]},parent:{check:$[306],nullable:true,event:$[621],apply:$[1281]},element:{check:$[518],nullable:true,apply:$[466],event:$[613]},visibility:{check:$[2],init:true,apply:$[1112],event:$[1580]},display:{check:$[2],init:true,apply:$[1155],event:$[1330]},anonymous:{check:$[2],init:false,event:$[647]},horizontalAlign:{check:[$[11],$[57],$[9]],themeable:true,nullable:true},verticalAlign:{check:[$[20],$[62],$[17]],themeable:true,nullable:true},allowStretchX:{check:$[2],init:true},allowStretchY:{check:$[2],init:true},zIndex:{check:$[19],apply:$[879],event:$[1119],themeable:true,nullable:true,init:null},backgroundColor:{nullable:true,init:null,check:$[90],apply:$[1075],event:$[909],themeable:true},textColor:{nullable:true,init:$[116],check:$[90],apply:$[1427],event:$[636],themeable:true,inheritable:true},border:{nullable:true,init:null,apply:$[706],event:$[1673],check:$[539],themeable:true},font:{nullable:true,init:$[116],apply:$[575],check:$[548],event:$[809],themeable:true,inheritable:true},opacity:{check:$[19],apply:$[867],themeable:true,nullable:true,init:null},cursor:{check:$[6],apply:$[1578],themeable:true,nullable:true,init:null},backgroundImage:{check:$[6],nullable:true,apply:$[632],themeable:true},backgroundRepeat:{check:$[6],nullable:true,apply:$[684],themeable:true},overflow:{check:[$[36],$[3],$[26],$[112],$[111]],nullable:true,apply:$[810],event:$[1374],themeable:true,init:null},clipLeft:{check:$[5],apply:$[243],themeable:true,nullable:true},clipTop:{check:$[5],apply:$[243],themeable:true,nullable:true},clipWidth:{check:$[5],apply:$[243],themeable:true,nullable:true},clipHeight:{check:$[5],apply:$[243],themeable:true,nullable:true},tabIndex:{check:$[5],nullable:true,init:null,apply:$[894],event:$[1717]},hideFocus:{check:$[2],init:false,apply:$[1262],themeable:true},enableElementFocus:{check:$[2],init:true},focused:{check:$[2],init:false,apply:$[771],event:$[1031]},selectable:{check:$[2],init:null,nullable:true,apply:$[623]},toolTip:{check:$[241],nullable:true},contextMenu:{check:$[160],nullable:true},capture:{check:$[2],init:false,apply:$[1720],event:$[1092]},dropDataTypes:{nullable:true,dispose:true},command:{check:$[490],nullable:true,apply:$[1403]},appearance:{check:$[6],init:$[216],apply:$[864],event:$[1537]},supportsDropMethod:{check:$[471],nullable:true,init:null},marginTop:{check:$[19],apply:$[1108],nullable:true,themeable:true},marginRight:{check:$[19],apply:$[1436],nullable:true,themeable:true},marginBottom:{check:$[19],apply:$[622],nullable:true,themeable:true},marginLeft:{check:$[19],apply:$[1290],nullable:true,themeable:true},paddingTop:{check:$[19],apply:$[791],nullable:true,themeable:true},paddingRight:{check:$[19],apply:$[1672],nullable:true,themeable:true},paddingBottom:{check:$[19],apply:$[1548],nullable:true,themeable:true},paddingLeft:{check:$[19],apply:$[887],nullable:true,themeable:true},left:{apply:$[970],event:$[1453],nullable:true,themeable:true,init:null},right:{apply:$[709],event:$[797],nullable:true,themeable:true,init:null},width:{apply:$[1331],event:$[1455],nullable:true,themeable:true,init:null},minWidth:{apply:$[1398],event:$[1687],nullable:true,themeable:true,init:null},maxWidth:{apply:$[1116],event:$[1787],nullable:true,themeable:true,init:null},top:{apply:$[1499],event:$[1456],nullable:true,themeable:true,init:null},bottom:{apply:$[697],event:$[986],nullable:true,themeable:true,init:null},height:{apply:$[1443],event:$[1513],nullable:true,themeable:true,init:null},minHeight:{apply:$[655],event:$[1335],nullable:true,themeable:true,init:null},maxHeight:{apply:$[717],event:$[1333],nullable:true,themeable:true,init:null},location:{group:[$[11],$[20]],themeable:true},dimension:{group:[$[30],$[31]],themeable:true},space:{group:[$[11],$[30],$[20],$[31]],themeable:true},edge:{group:[$[20],$[9],$[17],$[11]],themeable:true,mode:$[103]},padding:{group:[$[215],$[245],$[231],$[242]],mode:$[103],themeable:true},margin:{group:[$[153],$[225],$[211],$[159]],mode:$[103],themeable:true},heights:{group:[$[77],$[31],$[75]],themeable:true},widths:{group:[$[73],$[30],$[74]],themeable:true},align:{group:[$[1698],$[844]],themeable:true},clipLocation:{group:[$[516],$[452]]},clipDimension:{group:[$[527],$[373]]},clip:{group:[$[516],$[452],$[527],$[373]]},innerWidth:{_cached:true,defaultValue:null},innerHeight:{_cached:true,defaultValue:null},boxWidth:{_cached:true,defaultValue:null},boxHeight:{_cached:true,defaultValue:null},outerWidth:{_cached:true,defaultValue:null},outerHeight:{_cached:true,defaultValue:null},frameWidth:{_cached:true,defaultValue:null,addToQueueRuntime:true},frameHeight:{_cached:true,defaultValue:null,addToQueueRuntime:true},preferredInnerWidth:{_cached:true,defaultValue:null,addToQueueRuntime:true},preferredInnerHeight:{_cached:true,defaultValue:null,addToQueueRuntime:true},preferredBoxWidth:{_cached:true,defaultValue:null},preferredBoxHeight:{_cached:true,defaultValue:null},hasPercentX:{_cached:true,defaultValue:false},hasPercentY:{_cached:true,defaultValue:false},hasAutoX:{_cached:true,defaultValue:false},hasAutoY:{_cached:true,defaultValue:false},hasFlexX:{_cached:true,defaultValue:false},hasFlexY:{_cached:true,defaultValue:false}},members:{_computedLeftValue:null,_computedLeftParsed:null,_computedLeftType:null,_computedLeftTypeNull:true,_computedLeftTypePixel:false,_computedLeftTypePercent:false,_computedLeftTypeAuto:false,_computedLeftTypeFlex:false,_computedRightValue:null,_computedRightParsed:null,_computedRightType:null,_computedRightTypeNull:true,_computedRightTypePixel:false,_computedRightTypePercent:false,_computedRightTypeAuto:false,_computedRightTypeFlex:false,_computedTopValue:null,_computedTopParsed:null,_computedTopType:null,_computedTopTypeNull:true,_computedTopTypePixel:false,_computedTopTypePercent:false,_computedTopTypeAuto:false,_computedTopTypeFlex:false,_computedBottomValue:null,_computedBottomParsed:null,_computedBottomType:null,_computedBottomTypeNull:true,_computedBottomTypePixel:false,_computedBottomTypePercent:false,_computedBottomTypeAuto:false,_computedBottomTypeFlex:false,_computedWidthValue:null,_computedWidthParsed:null,_computedWidthType:null,_computedWidthTypeNull:true,_computedWidthTypePixel:false,_computedWidthTypePercent:false,_computedWidthTypeAuto:false,_computedWidthTypeFlex:false,_computedMinWidthValue:null,_computedMinWidthParsed:null,_computedMinWidthType:null,_computedMinWidthTypeNull:true,_computedMinWidthTypePixel:false,_computedMinWidthTypePercent:false,_computedMinWidthTypeAuto:false,_computedMinWidthTypeFlex:false,_computedMaxWidthValue:null,_computedMaxWidthParsed:null,_computedMaxWidthType:null,_computedMaxWidthTypeNull:true,_computedMaxWidthTypePixel:false,_computedMaxWidthTypePercent:false,_computedMaxWidthTypeAuto:false,_computedMaxWidthTypeFlex:false,_computedHeightValue:null,_computedHeightParsed:null,_computedHeightType:null,_computedHeightTypeNull:true,_computedHeightTypePixel:false,_computedHeightTypePercent:false,_computedHeightTypeAuto:false,_computedHeightTypeFlex:false,_computedMinHeightValue:null,_computedMinHeightParsed:null,_computedMinHeightType:null,_computedMinHeightTypeNull:true,_computedMinHeightTypePixel:false,_computedMinHeightTypePercent:false,_computedMinHeightTypeAuto:false,_computedMinHeightTypeFlex:false,_computedMaxHeightValue:null,_computedMaxHeightParsed:null,_computedMaxHeightType:null,_computedMaxHeightTypeNull:true,_computedMaxHeightTypePixel:false,_computedMaxHeightTypePercent:false,_computedMaxHeightTypeAuto:false,_computedMaxHeightTypeFlex:false,_applyLeft:function($0,$1){this._unitDetectionPixelPercent($[11],$0);this.addToQueue($[11]);},_applyRight:function($0,$1){this._unitDetectionPixelPercent($[9],$0);this.addToQueue($[9]);},_applyTop:function($0,$1){this._unitDetectionPixelPercent($[20],$0);this.addToQueue($[20]);},_applyBottom:function($0,$1){this._unitDetectionPixelPercent($[17],$0);this.addToQueue($[17]);},_applyWidth:function($0,$1){this._unitDetectionPixelPercentAutoFlex($[30],$0);this.addToQueue($[30]);},_applyMinWidth:function($0,$1){this._unitDetectionPixelPercentAuto($[73],$0);this.addToQueue($[73]);},_applyMaxWidth:function($0,$1){this._unitDetectionPixelPercentAuto($[74],$0);this.addToQueue($[74]);},_applyHeight:function($0,$1){this._unitDetectionPixelPercentAutoFlex($[31],$0);this.addToQueue($[31]);},_applyMinHeight:function($0,$1){this._unitDetectionPixelPercentAuto($[77],$0);this.addToQueue($[77]);},_applyMaxHeight:function($0,$1){this._unitDetectionPixelPercentAuto($[75],$0);this.addToQueue($[75]);},isMaterialized:function(){var $0=this._element;return (this._initialLayoutDone&&this._isDisplayable&&qx.html.Style.getStyleProperty($0,$[158])!=$[7]&&qx.html.Style.getStyleProperty($0,$[1140])!=$[36]&&$0.offsetWidth>0&&$0.offsetHeight>0);},pack:function(){this.setWidth(this.getPreferredBoxWidth());this.setHeight(this.getPreferredBoxHeight());},auto:function(){this.setWidth($[3]);this.setHeight($[3]);},getChildren:qx.lang.Function.returnNull,getChildrenLength:qx.lang.Function.returnZero,hasChildren:qx.lang.Function.returnFalse,isEmpty:qx.lang.Function.returnTrue,indexOf:qx.lang.Function.returnNegativeIndex,contains:qx.lang.Function.returnFalse,getVisibleChildren:qx.lang.Function.returnNull,getVisibleChildrenLength:qx.lang.Function.returnZero,hasVisibleChildren:qx.lang.Function.returnFalse,isVisibleEmpty:qx.lang.Function.returnTrue,_hasParent:false,_isDisplayable:false,isDisplayable:function(){return this._isDisplayable;},_checkParent:function($0,$1){if(this.contains($0)){throw new Error("Could not insert myself into a child "+$0+"!");}return $0;},_applyParent:function($0,$1){if($1){var $2=$1.getChildren().indexOf(this);this._computedWidthValue=this._computedMinWidthValue=this._computedMaxWidthValue=this._computedLeftValue=this._computedRightValue=null;this._computedHeightValue=this._computedMinHeightValue=this._computedMaxHeightValue=this._computedTopValue=this._computedBottomValue=null;this._cachedBoxWidth=this._cachedInnerWidth=this._cachedOuterWidth=null;this._cachedBoxHeight=this._cachedInnerHeight=this._cachedOuterHeight=null;qx.lang.Array.removeAt($1.getChildren(),$2);$1._invalidateVisibleChildren();$1._removeChildFromChildrenQueue(this);$1.getLayoutImpl().updateChildrenOnRemoveChild(this,$2);$1.addToJobQueue($[389]);$1._invalidatePreferredInnerDimensions();this._oldParent=$1;}if($0){this._hasParent=true;if(typeof this._insertIndex==$[50]){qx.lang.Array.insertAt($0.getChildren(),this,this._insertIndex);delete this._insertIndex;}else{$0.getChildren().push(this);}}else{this._hasParent=false;}qx.core.Property.refresh(this);return this._handleDisplayable($[343]);},_applyDisplay:function($0,$1){return this._handleDisplayable($[158]);},_handleDisplayable:function($0){var $1=this._computeDisplayable();if(this._isDisplayable==$1&&!($1&&$0==$[343])){return true;}this._isDisplayable=$1;var $2=this.getParent();if($2){$2._invalidateVisibleChildren();$2._invalidatePreferredInnerDimensions();}if($0&&this._oldParent&&this._oldParent._initialLayoutDone){var $3=this.getElement();if($3){if(this.getVisibility()){this._beforeDisappear();}this._beforeRemoveDom();try{this._oldParent._getTargetNode().removeChild($3);}catch(e){}this._afterRemoveDom();if(this.getVisibility()){this._afterDisappear();}}delete this._oldParent;}if($1){if($2._initialLayoutDone){$2.getLayoutImpl().updateChildrenOnAddChild(this,$2.getChildren().indexOf(this));$2.addToJobQueue($[1323]);}this.addToLayoutChanges($[1017]);this.addToCustomQueues($0);if(this.getVisibility()){this._beforeAppear();}if(!this._isCreated){qx.ui.core.Widget.addToGlobalElementQueue(this);}qx.ui.core.Widget.addToGlobalStateQueue(this);if(!qx.lang.Object.isEmpty(this._jobQueue)){qx.ui.core.Widget.addToGlobalJobQueue(this);}if(!qx.lang.Object.isEmpty(this._childrenQueue)){qx.ui.core.Widget.addToGlobalLayoutQueue(this);}}else{qx.ui.core.Widget.removeFromGlobalElementQueue(this);qx.ui.core.Widget.removeFromGlobalStateQueue(this);qx.ui.core.Widget.removeFromGlobalJobQueue(this);qx.ui.core.Widget.removeFromGlobalLayoutQueue(this);this.removeFromCustomQueues($0);if($2&&$0){if(this.getVisibility()){this._beforeDisappear();}if($2._initialLayoutDone&&this._initialLayoutDone){$2.getLayoutImpl().updateChildrenOnRemoveChild(this,$2.getChildren().indexOf(this));$2.addToJobQueue($[389]);this._beforeRemoveDom();var $4=this.getElement().parentNode;if($4){$4.removeChild(this.getElement());if($4&&$4!==$2._getTargetNode()){this.warn("Unexpected parent node: "+$4);}}this._afterRemoveDom();}$2._removeChildFromChildrenQueue(this);if(this.getVisibility()){this._afterDisappear();}}}this._handleDisplayableCustom($1,$2,$0);return true;},addToCustomQueues:qx.lang.Function.returnTrue,removeFromCustomQueues:qx.lang.Function.returnTrue,_handleDisplayableCustom:qx.lang.Function.returnTrue,_computeDisplayable:function(){return this.getDisplay()&&this.getParent()&&this.getParent()._isDisplayable?true:false;},_beforeAppear:function(){this.createDispatchEvent($[707]);},_afterAppear:function(){this._isSeeable=true;this.createDispatchEvent($[193]);},_beforeDisappear:function(){this.removeState($[43]);if(qx.Class.isDefined($[303])){this.removeState($[14]);this.removeState($[35]);}this.createDispatchEvent($[401]);},_afterDisappear:function(){this._isSeeable=false;this.createDispatchEvent($[272]);},_isSeeable:false,isSeeable:function(){return this._isSeeable;},isAppearRelevant:function(){return this.getVisibility()&&this._isDisplayable;},_beforeInsertDom:function(){this.createDispatchEvent($[1219]);},_afterInsertDom:function(){this.createDispatchEvent($[1519]);},_beforeRemoveDom:function(){this.createDispatchEvent($[1287]);},_afterRemoveDom:function(){this.createDispatchEvent($[1439]);},_applyVisibility:function($0,$1){if($0){if(this._isDisplayable){this._beforeAppear();}this.removeStyleProperty($[158]);if(this._isDisplayable){this._afterAppear();}}else{if(this._isDisplayable){this._beforeDisappear();}this.setStyleProperty($[158],$[7]);if(this._isDisplayable){this._afterDisappear();}}},show:function(){this.setVisibility(true);this.setDisplay(true);},hide:function(){this.setVisibility(false);},connect:function(){this.setDisplay(true);},disconnect:function(){this.setDisplay(false);},_isCreated:false,_getTargetNode:qx.core.Variant.select($[1],{"gecko":function(){return this._element;},"default":function(){return this._borderElement||this._element;}}),addToDocument:function(){qx.ui.core.ClientDocument.getInstance().add(this);},isCreated:function(){return this._isCreated;},_createElementImpl:function(){this.setElement(this.getTopLevelWidget().getDocumentElement().createElement($[67]));},_applyElement:function($0,$1){this._isCreated=$0!=null;if($1){$1.qx_Widget=null;}if($0){$0.qx_Widget=this;$0.style.position=$[54];this._element=$0;this._style=$0.style;this._applyStyleProperties($0);this._applyHtmlProperties($0);this._applyHtmlAttributes($0);this._applyElementData($0);this.createDispatchEvent($[1128]);this.addToStateQueue();}else{this._element=this._style=null;}},addToJobQueue:function($0){if(this._hasParent){qx.ui.core.Widget.addToGlobalJobQueue(this);}if(!this._jobQueue){this._jobQueue={};}this._jobQueue[$0]=true;return true;},_flushJobQueue:function($0){try{var $1=this._jobQueue;var $2=this.getParent();if(!$2||qx.lang.Object.isEmpty($1)){return;}var $3=this instanceof qx.ui.core.Parent?this.getLayoutImpl():null;if($3){$3.updateSelfOnJobQueueFlush($1);}}catch(ex){this.error("Flushing job queue (prechecks#1) failed",ex);}try{var $4=false;var $5=$1.marginLeft||$1.marginRight;var $6=$1.marginTop||$1.marginBottom;var $7=$1.frameWidth;var $8=$1.frameHeight;var $9=($1.frameWidth||$1.preferredInnerWidth)&&this._recomputePreferredBoxWidth();var $a=($1.frameHeight||$1.preferredInnerHeight)&&this._recomputePreferredBoxHeight();if($9){var $b=this.getPreferredBoxWidth();if(this._computedWidthTypeAuto){this._computedWidthValue=$b;$1.width=true;}if(this._computedMinWidthTypeAuto){this._computedMinWidthValue=$b;$1.minWidth=true;}if(this._computedMaxWidthTypeAuto){this._computedMaxWidthValue=$b;$1.maxWidth=true;}}if($a){var $b=this.getPreferredBoxHeight();if(this._computedHeightTypeAuto){this._computedHeightValue=$b;$1.height=true;}if(this._computedMinHeightTypeAuto){this._computedMinHeightValue=$b;$1.minHeight=true;}if(this._computedMaxHeightTypeAuto){this._computedMaxHeightValue=$b;$1.maxHeight=true;}}if(($1.width||$1.minWidth||$1.maxWidth||$1.left||$1.right)&&this._recomputeBoxWidth()){$5=$7=true;}if(($1.height||$1.minHeight||$1.maxHeight||$1.top||$1.bottom)&&this._recomputeBoxHeight()){$6=$8=true;}}catch(ex){this.error("Flushing job queue (recompute#2) failed",ex);}try{if(($5&&this._recomputeOuterWidth())||$9){$2._invalidatePreferredInnerWidth();$2.getLayoutImpl().updateSelfOnChildOuterWidthChange(this);$4=true;}if(($6&&this._recomputeOuterHeight())||$a){$2._invalidatePreferredInnerHeight();$2.getLayoutImpl().updateSelfOnChildOuterHeightChange(this);$4=true;}if($4){$2._flushJobQueue();}}catch(ex){this.error("Flushing job queue (parentsignals#3) failed",ex);}try{$2._addChildToChildrenQueue(this);for(var $c in $1){this._layoutChanges[$c]=true;}}catch(ex){this.error("Flushing job queue (addjobs#4) failed",ex);}try{if(this instanceof qx.ui.core.Parent&&($1.paddingLeft||$1.paddingRight||$1.paddingTop||$1.paddingBottom)){var $d=this.getChildren(),$e=$d.length;if($1.paddingLeft){for(var $c=0;$c<$e;$c++){$d[$c].addToLayoutChanges($[862]);}}if($1.paddingRight){for(var $c=0;$c<$e;$c++){$d[$c].addToLayoutChanges($[878]);}}if($1.paddingTop){for(var $c=0;$c<$e;$c++){$d[$c].addToLayoutChanges($[1697]);}}if($1.paddingBottom){for(var $c=0;$c<$e;$c++){$d[$c].addToLayoutChanges($[723]);}}}if($7){this._recomputeInnerWidth();}if($8){this._recomputeInnerHeight();}if(this._initialLayoutDone){if($3){$3.updateChildrenOnJobQueueFlush($1);}}}catch(ex){this.error("Flushing job queue (childrensignals#5) failed",ex);}delete this._jobQueue;},_isWidthEssential:qx.lang.Function.returnTrue,_isHeightEssential:qx.lang.Function.returnTrue,_computeBoxWidthFallback:function(){return 0;},_computeBoxHeightFallback:function(){return 0;},_computeBoxWidth:function(){var $0=this.getParent().getLayoutImpl();return Math.max(0,qx.lang.Number.limit($0.computeChildBoxWidth(this),this.getMinWidthValue(),this.getMaxWidthValue()));},_computeBoxHeight:function(){var $0=this.getParent().getLayoutImpl();return Math.max(0,qx.lang.Number.limit($0.computeChildBoxHeight(this),this.getMinHeightValue(),this.getMaxHeightValue()));},_computeOuterWidth:function(){return Math.max(0,(this.getMarginLeft()+this.getBoxWidth()+this.getMarginRight()));},_computeOuterHeight:function(){return Math.max(0,(this.getMarginTop()+this.getBoxHeight()+this.getMarginBottom()));},_computeInnerWidth:function(){return Math.max(0,this.getBoxWidth()-this.getFrameWidth());},_computeInnerHeight:function(){return Math.max(0,this.getBoxHeight()-this.getFrameHeight());},getNeededWidth:function(){var $0=this.getParent().getLayoutImpl();return Math.max(0,$0.computeChildNeededWidth(this));},getNeededHeight:function(){var $0=this.getParent().getLayoutImpl();return Math.max(0,$0.computeChildNeededHeight(this));},_recomputeFlexX:function(){if(!this.getHasFlexX()){return false;}if(this._computedWidthTypeFlex){this._computedWidthValue=null;this.addToLayoutChanges($[30]);}return true;},_recomputeFlexY:function(){if(!this.getHasFlexY()){return false;}if(this._computedHeightTypeFlex){this._computedHeightValue=null;this.addToLayoutChanges($[31]);}return true;},_recomputePercentX:function(){if(!this.getHasPercentX()){return false;}if(this._computedWidthTypePercent){this._computedWidthValue=null;this.addToLayoutChanges($[30]);}if(this._computedMinWidthTypePercent){this._computedMinWidthValue=null;this.addToLayoutChanges($[73]);}if(this._computedMaxWidthTypePercent){this._computedMaxWidthValue=null;this.addToLayoutChanges($[74]);}if(this._computedLeftTypePercent){this._computedLeftValue=null;this.addToLayoutChanges($[11]);}if(this._computedRightTypePercent){this._computedRightValue=null;this.addToLayoutChanges($[9]);}return true;},_recomputePercentY:function(){if(!this.getHasPercentY()){return false;}if(this._computedHeightTypePercent){this._computedHeightValue=null;this.addToLayoutChanges($[31]);}if(this._computedMinHeightTypePercent){this._computedMinHeightValue=null;this.addToLayoutChanges($[77]);}if(this._computedMaxHeightTypePercent){this._computedMaxHeightValue=null;this.addToLayoutChanges($[75]);}if(this._computedTopTypePercent){this._computedTopValue=null;this.addToLayoutChanges($[20]);}if(this._computedBottomTypePercent){this._computedBottomValue=null;this.addToLayoutChanges($[17]);}return true;},_recomputeRangeX:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function(){if(this._computedLeftTypeNull||this._computedRightTypeNull){return false;}this.addToLayoutChanges($[30]);return true;},"default":function(){return !(this._computedLeftTypeNull||this._computedRightTypeNull);}}),_recomputeRangeY:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function(){if(this._computedTopTypeNull||this._computedBottomTypeNull){return false;}this.addToLayoutChanges($[31]);return true;},"default":function(){return !(this._computedTopTypeNull||this._computedBottomTypeNull);}}),_recomputeStretchingX:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function(){if(this.getAllowStretchX()&&this._computedWidthTypeNull){this._computedWidthValue=null;this.addToLayoutChanges($[30]);return true;}return false;},"default":function(){if(this.getAllowStretchX()&&this._computedWidthTypeNull){return true;}return false;}}),_recomputeStretchingY:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function(){if(this.getAllowStretchY()&&this._computedHeightTypeNull){this._computedHeightValue=null;this.addToLayoutChanges($[31]);return true;}return false;},"default":function(){if(this.getAllowStretchY()&&this._computedHeightTypeNull){return true;}return false;}}),_computeValuePixel:function($0){return Math.round($0);},_computeValuePixelLimit:function($0){return Math.max(0,this._computeValuePixel($0));},_computeValuePercentX:function($0){return Math.round(this.getParent().getInnerWidthForChild(this)*$0*0.01);},_computeValuePercentXLimit:function($0){return Math.max(0,this._computeValuePercentX($0));},_computeValuePercentY:function($0){return Math.round(this.getParent().getInnerHeightForChild(this)*$0*0.01);},_computeValuePercentYLimit:function($0){return Math.max(0,this._computeValuePercentY($0));},getWidthValue:function(){if(this._computedWidthValue!=null){return this._computedWidthValue;}switch(this._computedWidthType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedWidthParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedWidthParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedWidthValue=this.getPreferredBoxWidth();case qx.ui.core.Widget.TYPE_FLEX:if(this.getParent().getLayoutImpl().computeChildrenFlexWidth===undefined){throw new Error("Widget "+this+": having horizontal flex size (width="+this.getWidth()+") but parent layout "+this.getParent()+" does not support it");}this.getParent().getLayoutImpl().computeChildrenFlexWidth();return this._computedWidthValue=this._computedWidthFlexValue;}return null;},getMinWidthValue:function(){if(this._computedMinWidthValue!=null){return this._computedMinWidthValue;}switch(this._computedMinWidthType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedMinWidthParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedMinWidthParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedMinWidthValue=this.getPreferredBoxWidth();}return null;},getMaxWidthValue:function(){if(this._computedMaxWidthValue!=null){return this._computedMaxWidthValue;}switch(this._computedMaxWidthType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedMaxWidthParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedMaxWidthParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedMaxWidthValue=this.getPreferredBoxWidth();}return null;},getLeftValue:function(){if(this._computedLeftValue!=null){return this._computedLeftValue;}switch(this._computedLeftType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedLeftValue=this._computeValuePixel(this._computedLeftParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedLeftValue=this._computeValuePercentX(this._computedLeftParsed);}return null;},getRightValue:function(){if(this._computedRightValue!=null){return this._computedRightValue;}switch(this._computedRightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedRightValue=this._computeValuePixel(this._computedRightParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedRightValue=this._computeValuePercentX(this._computedRightParsed);}return null;},getHeightValue:function(){if(this._computedHeightValue!=null){return this._computedHeightValue;}switch(this._computedHeightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedHeightValue=this._computeValuePixelLimit(this._computedHeightParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedHeightValue=this._computeValuePercentYLimit(this._computedHeightParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedHeightValue=this.getPreferredBoxHeight();case qx.ui.core.Widget.TYPE_FLEX:if(this.getParent().getLayoutImpl().computeChildrenFlexHeight===undefined){throw new Error("Widget "+this+": having vertical flex size (height="+this.getHeight()+") but parent layout "+this.getParent()+" does not support it");}this.getParent().getLayoutImpl().computeChildrenFlexHeight();return this._computedHeightValue=this._computedHeightFlexValue;}return null;},getMinHeightValue:function(){if(this._computedMinHeightValue!=null){return this._computedMinHeightValue;}switch(this._computedMinHeightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedMinHeightValue=this._computeValuePixelLimit(this._computedMinHeightParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedMinHeightValue=this._computeValuePercentYLimit(this._computedMinHeightParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedMinHeightValue=this.getPreferredBoxHeight();}return null;},getMaxHeightValue:function(){if(this._computedMaxHeightValue!=null){return this._computedMaxHeightValue;}switch(this._computedMaxHeightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedMaxHeightValue=this._computeValuePixelLimit(this._computedMaxHeightParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedMaxHeightValue=this._computeValuePercentYLimit(this._computedMaxHeightParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedMaxHeightValue=this.getPreferredBoxHeight();}return null;},getTopValue:function(){if(this._computedTopValue!=null){return this._computedTopValue;}switch(this._computedTopType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedTopValue=this._computeValuePixel(this._computedTopParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedTopValue=this._computeValuePercentY(this._computedTopParsed);}return null;},getBottomValue:function(){if(this._computedBottomValue!=null){return this._computedBottomValue;}switch(this._computedBottomType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedBottomValue=this._computeValuePixel(this._computedBottomParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedBottomValue=this._computeValuePercentY(this._computedBottomParsed);}return null;},_computeFrameWidth:function(){var $0=this._cachedBorderLeft+this.getPaddingLeft()+this.getPaddingRight()+this._cachedBorderRight;switch(this.getOverflow()){case $[26]:case $[111]:$0+=qx.ui.core.Widget.SCROLLBAR_SIZE;break;case $[3]:break;}return $0;},_computeFrameHeight:function(){var $0=this._cachedBorderTop+this.getPaddingTop()+this.getPaddingBottom()+this._cachedBorderBottom;switch(this.getOverflow()){case $[26]:case $[112]:$0+=qx.ui.core.Widget.SCROLLBAR_SIZE;break;case $[3]:break;}return $0;},_invalidateFrameDimensions:function(){this._invalidateFrameWidth();this._invalidateFrameHeight();},_invalidatePreferredInnerDimensions:function(){this._invalidatePreferredInnerWidth();this._invalidatePreferredInnerHeight();},_computePreferredBoxWidth:function(){try{return Math.max(0,this.getPreferredInnerWidth()+this.getFrameWidth());}catch(ex){this.error("_computePreferredBoxWidth failed",ex);}},_computePreferredBoxHeight:function(){try{return Math.max(0,this.getPreferredInnerHeight()+this.getFrameHeight());}catch(ex){this.error("_computePreferredBoxHeight failed",ex);}},_initialLayoutDone:false,addToLayoutChanges:function($0){if(this._isDisplayable){this.getParent()._addChildToChildrenQueue(this);}return this._layoutChanges[$0]=true;},addToQueue:function($0){this._initialLayoutDone?this.addToJobQueue($0):this.addToLayoutChanges($0);},addToQueueRuntime:function($0){return !this._initialLayoutDone||this.addToJobQueue($0);},_computeHasPercentX:function(){return (this._computedLeftTypePercent||this._computedWidthTypePercent||this._computedMinWidthTypePercent||this._computedMaxWidthTypePercent||this._computedRightTypePercent);},_computeHasPercentY:function(){return (this._computedTopTypePercent||this._computedHeightTypePercent||this._computedMinHeightTypePercent||this._computedMaxHeightTypePercent||this._computedBottomTypePercent);},_computeHasAutoX:function(){return (this._computedWidthTypeAuto||this._computedMinWidthTypeAuto||this._computedMaxWidthTypeAuto);},_computeHasAutoY:function(){return (this._computedHeightTypeAuto||this._computedMinHeightTypeAuto||this._computedMaxHeightTypeAuto);},_computeHasFlexX:function(){return this._computedWidthTypeFlex;},_computeHasFlexY:function(){return this._computedHeightTypeFlex;},_evalUnitsPixelPercentAutoFlex:function($0){switch($0){case $[3]:return qx.ui.core.Widget.TYPE_AUTO;case Infinity:case -Infinity:return qx.ui.core.Widget.TYPE_NULL;}switch(typeof $0){case $[50]:return isNaN($0)?qx.ui.core.Widget.TYPE_NULL:qx.ui.core.Widget.TYPE_PIXEL;case $[8]:return $0.indexOf($[173])!=-1?qx.ui.core.Widget.TYPE_PERCENT:$0.indexOf($[140])!=-1?qx.ui.core.Widget.TYPE_FLEX:qx.ui.core.Widget.TYPE_NULL;}return qx.ui.core.Widget.TYPE_NULL;},_evalUnitsPixelPercentAuto:function($0){switch($0){case $[3]:return qx.ui.core.Widget.TYPE_AUTO;case Infinity:case -Infinity:return qx.ui.core.Widget.TYPE_NULL;}switch(typeof $0){case $[50]:return isNaN($0)?qx.ui.core.Widget.TYPE_NULL:qx.ui.core.Widget.TYPE_PIXEL;case $[8]:return $0.indexOf($[173])!=-1?qx.ui.core.Widget.TYPE_PERCENT:qx.ui.core.Widget.TYPE_NULL;}return qx.ui.core.Widget.TYPE_NULL;},_evalUnitsPixelPercent:function($0){switch($0){case Infinity:case -Infinity:return qx.ui.core.Widget.TYPE_NULL;}switch(typeof $0){case $[50]:return isNaN($0)?qx.ui.core.Widget.TYPE_NULL:qx.ui.core.Widget.TYPE_PIXEL;case $[8]:return $0.indexOf($[173])!=-1?qx.ui.core.Widget.TYPE_PERCENT:qx.ui.core.Widget.TYPE_NULL;}return qx.ui.core.Widget.TYPE_NULL;},_unitDetectionPixelPercentAutoFlex:function($0,$1){var $2=qx.ui.core.Widget.layoutPropertyTypes[$0];var $3=$2.dataType;var $4=$2.dataParsed;var $5=$2.dataValue;var $6=$2.typePixel;var $7=$2.typePercent;var $8=$2.typeAuto;var $9=$2.typeFlex;var $a=$2.typeNull;var $b=this[$7];var $c=this[$8];var $d=this[$9];switch(this[$3]=this._evalUnitsPixelPercentAutoFlex($1)){case qx.ui.core.Widget.TYPE_PIXEL:this[$6]=true;this[$7]=this[$8]=this[$9]=this[$a]=false;this[$4]=this[$5]=Math.round($1);break;case qx.ui.core.Widget.TYPE_PERCENT:this[$7]=true;this[$6]=this[$8]=this[$9]=this[$a]=false;this[$4]=parseFloat($1);this[$5]=null;break;case qx.ui.core.Widget.TYPE_AUTO:this[$8]=true;this[$6]=this[$7]=this[$9]=this[$a]=false;this[$4]=this[$5]=null;break;case qx.ui.core.Widget.TYPE_FLEX:this[$9]=true;this[$6]=this[$7]=this[$8]=this[$a]=false;this[$4]=parseFloat($1);this[$5]=null;break;default:this[$a]=true;this[$6]=this[$7]=this[$8]=this[$9]=false;this[$4]=this[$5]=null;break;}if($b!=this[$7]){switch($0){case $[73]:case $[74]:case $[30]:case $[11]:case $[9]:this._invalidateHasPercentX();break;case $[75]:case $[77]:case $[31]:case $[20]:case $[17]:this._invalidateHasPercentY();break;}}if($c!=this[$8]){switch($0){case $[73]:case $[74]:case $[30]:this._invalidateHasAutoX();break;case $[77]:case $[75]:case $[31]:this._invalidateHasAutoY();break;}}if($d!=this[$9]){switch($0){case $[30]:this._invalidateHasFlexX();break;case $[31]:this._invalidateHasFlexY();break;}}},_unitDetectionPixelPercentAuto:function($0,$1){var $2=qx.ui.core.Widget.layoutPropertyTypes[$0];var $3=$2.dataType;var $4=$2.dataParsed;var $5=$2.dataValue;var $6=$2.typePixel;var $7=$2.typePercent;var $8=$2.typeAuto;var $9=$2.typeNull;var $a=this[$7];var $b=this[$8];switch(this[$3]=this._evalUnitsPixelPercentAuto($1)){case qx.ui.core.Widget.TYPE_PIXEL:this[$6]=true;this[$7]=this[$8]=this[$9]=false;this[$4]=this[$5]=Math.round($1);break;case qx.ui.core.Widget.TYPE_PERCENT:this[$7]=true;this[$6]=this[$8]=this[$9]=false;this[$4]=parseFloat($1);this[$5]=null;break;case qx.ui.core.Widget.TYPE_AUTO:this[$8]=true;this[$6]=this[$7]=this[$9]=false;this[$4]=this[$5]=null;break;default:this[$9]=true;this[$6]=this[$7]=this[$8]=false;this[$4]=this[$5]=null;break;}if($a!=this[$7]){switch($0){case $[73]:case $[74]:case $[30]:case $[11]:case $[9]:this._invalidateHasPercentX();break;case $[77]:case $[75]:case $[31]:case $[20]:case $[17]:this._invalidateHasPercentY();break;}}if($b!=this[$8]){switch($0){case $[73]:case $[74]:case $[30]:this._invalidateHasAutoX();break;case $[77]:case $[75]:case $[31]:this._invalidateHasAutoY();break;}}},_unitDetectionPixelPercent:function($0,$1){var $2=qx.ui.core.Widget.layoutPropertyTypes[$0];var $3=$2.dataType;var $4=$2.dataParsed;var $5=$2.dataValue;var $6=$2.typePixel;var $7=$2.typePercent;var $8=$2.typeNull;var $9=this[$7];switch(this[$3]=this._evalUnitsPixelPercent($1)){case qx.ui.core.Widget.TYPE_PIXEL:this[$6]=true;this[$7]=this[$8]=false;this[$4]=this[$5]=Math.round($1);break;case qx.ui.core.Widget.TYPE_PERCENT:this[$7]=true;this[$6]=this[$8]=false;this[$4]=parseFloat($1);this[$5]=null;break;default:this[$8]=true;this[$6]=this[$7]=false;this[$4]=this[$5]=null;break;}if($9!=this[$7]){switch($0){case $[73]:case $[74]:case $[30]:case $[11]:case $[9]:this._invalidateHasPercentX();break;case $[77]:case $[75]:case $[31]:case $[20]:case $[17]:this._invalidateHasPercentY();break;}}},getTopLevelWidget:function(){return this._hasParent?this.getParent().getTopLevelWidget():null;},moveSelfBefore:function($0){this.getParent().addBefore(this,$0);},moveSelfAfter:function($0){this.getParent().addAfter(this,$0);},moveSelfToBegin:function(){this.getParent().addAtBegin(this);},moveSelfToEnd:function(){this.getParent().addAtEnd(this);},getPreviousSibling:function(){var $0=this.getParent();if($0==null){return null;}var $1=$0.getChildren();return $1[$1.indexOf(this)-1];},getNextSibling:function(){var $0=this.getParent();if($0==null){return null;}var $1=$0.getChildren();return $1[$1.indexOf(this)+1];},getPreviousVisibleSibling:function(){if(!this._hasParent){return null;}var $0=this.getParent().getVisibleChildren();return $0[$0.indexOf(this)-1];},getNextVisibleSibling:function(){if(!this._hasParent){return null;}var $0=this.getParent().getVisibleChildren();return $0[$0.indexOf(this)+1];},getPreviousActiveSibling:function($0){var $1=qx.ui.core.Widget.getActiveSiblingHelper(this,this.getParent(),-1,$0,null);return $1?$1:this.getParent().getLastActiveChild();},getNextActiveSibling:function($0){var $1=qx.ui.core.Widget.getActiveSiblingHelper(this,this.getParent(),1,$0,null);return $1?$1:this.getParent().getFirstActiveChild();},isFirstChild:function(){return this._hasParent&&this.getParent().getFirstChild()==this;},isLastChild:function(){return this._hasParent&&this.getParent().getLastChild()==this;},isFirstVisibleChild:function(){return this._hasParent&&this.getParent().getFirstVisibleChild()==this;},isLastVisibleChild:function(){return this._hasParent&&this.getParent().getLastVisibleChild()==this;},hasState:function($0){return this.__states&&this.__states[$0]?true:false;},addState:function($0){if(!this.__states){this.__states={};}if(!this.__states[$0]){this.__states[$0]=true;if(this._hasParent){qx.ui.core.Widget.addToGlobalStateQueue(this);}}},removeState:function($0){if(this.__states&&this.__states[$0]){delete this.__states[$0];if(this._hasParent){qx.ui.core.Widget.addToGlobalStateQueue(this);}}},_styleFromMap:function($0){var $1=qx.core.Property.$$method.style;var $2=qx.core.Property.$$method.unstyle;var $3;var $4;for(var $4 in $0){$3=$0[$4];$3===$[65]?this[$2[$4]]():this[$1[$4]]($3);}},_unstyleFromArray:function($0){var $1=qx.core.Property.$$method.unstyle;var $2,$3;for(var $2=0,$3=$0.length;$2<$3;$2++){this[$1[$0[$2]]]();}},_renderAppearance:function(){if(!this.__states){this.__states={};}this._applyStateStyleFocus(this.__states);var $0=this.getAppearance();if($0){try{var $1=qx.theme.manager.Appearance.getInstance().styleFrom($0,this.__states);if($1){this._styleFromMap($1);}}catch(ex){this.error("Could not apply state appearance",ex);}}},_resetAppearanceThemeWrapper:function($0,$1){var $2=this.getAppearance();if($2){var $3=qx.theme.manager.Appearance.getInstance();var $4=$3.styleFromTheme($1,$2,this.__states);var $5=$3.styleFromTheme($0,$2,this.__states);var $6=[];for(var $7 in $4){if($5[$7]===undefined){$6.push($7);}}this._unstyleFromArray($6);this._styleFromMap($5);}},_applyStateStyleFocus:qx.core.Variant.select($[1],{"mshtml":function($0){},"gecko":function($0){if($0.focused){if(!qx.event.handler.FocusHandler.mouseFocus&&!this.getHideFocus()){this.setStyleProperty($[200],$[205]);}}else{this.removeStyleProperty($[200]);}},"default":function($0){if($0.focused){if(!qx.event.handler.FocusHandler.mouseFocus&&!this.getHideFocus()){this.setStyleProperty($[214],$[205]);}}else{this.removeStyleProperty($[214]);}}}),addToStateQueue:function(){qx.ui.core.Widget.addToGlobalStateQueue(this);},recursiveAddToStateQueue:function(){this.addToStateQueue();},_applyAppearance:function($0,$1){if(!this.__states){this.__states={};}var $2=qx.theme.manager.Appearance.getInstance();if($0){var $3=$2.styleFrom($0,this.__states)||{};}if($1){var $4=$2.styleFrom($1,this.__states)||{};var $5=[];for(var $6 in $4){if(!$3||!($6 in $3)){$5.push($6);}}}if($5){this._unstyleFromArray($5);}if($3){this._styleFromMap($3);}},_recursiveAppearanceThemeUpdate:function($0,$1){try{this._resetAppearanceThemeWrapper($0,$1);}catch(ex){this.error("Failed to update appearance theme",ex);}},_applyElementData:function($0){},setHtmlProperty:function($0,$1){if(!this._htmlProperties){this._htmlProperties={};}this._htmlProperties[$0]=$1;if(this._isCreated&&this.getElement()[$0]!=$1){this.getElement()[$0]=$1;}return true;},removeHtmlProperty:qx.core.Variant.select($[1],{"mshtml":function($0){if(!this._htmlProperties){return;}delete this._htmlProperties[$0];if(this._isCreated){this.getElement().removeAttribute($0);}return true;},"default":function($0){if(!this._htmlProperties){return;}delete this._htmlProperties[$0];if(this._isCreated){this.getElement().removeAttribute($0);delete this.getElement()[$0];}return true;}}),getHtmlProperty:function($0){if(!this._htmlProperties){return $[0];}return this._htmlProperties[$0]||$[0];},_applyHtmlProperties:function($0){var $1=this._htmlProperties;if($1){var $2;for($2 in $1){$0[$2]=$1[$2];}}},_generateHtmlId:function(){var $0=this.classname+$[24]+qx.ui.core.Widget._idCounter++;this.debug("setting autogenerated HTML id to "+$0);this.setHtmlProperty($[929],$0);},setHtmlAttribute:function($0,$1){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[1057]);if(!this._htmlAttributes){this._htmlAttributes={};}this._htmlAttributes[$0]=$1;if(this._isCreated){this.getElement().setAttribute($0,$1);}return true;},removeHtmlAttribute:function($0){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[588]);if(!this._htmlAttributes){return;}delete this._htmlAttributes[$0];if(this._isCreated){this.getElement().removeAttribute($0);}return true;},getHtmlAttribute:function($0){if(!this._htmlAttributes){return $[0];}return this._htmlAttributes[$0]||$[0];},_applyHtmlAttributes:function($0){var $1=this._htmlAttributes;if($1){var $2;for($2 in $1){$0.setAttribute($2,$1[$2]);}}},getStyleProperty:function($0){if(!this._styleProperties){return $[0];}return this._styleProperties[$0]||$[0];},__outerElementStyleProperties:{cursor:true,zIndex:true,filter:true,display:true,visibility:true},setStyleProperty:function($0,$1){if(!this._styleProperties){this._styleProperties={};}this._styleProperties[$0]=$1;if(this._isCreated){var $2=this.__outerElementStyleProperties[$0]?this.getElement():this._getTargetNode();if($2){$2.style[$0]=($1==null)?$[0]:$1;}}},removeStyleProperty:function($0){if(!this._styleProperties){return;}delete this._styleProperties[$0];if(this._isCreated){var $1=this.__outerElementStyleProperties[$0]?this.getElement():this._getTargetNode();if($1){$1.style[$0]=$[0];}}},_applyStyleProperties:function($0){var $1=this._styleProperties;if(!$1){return;}var $2;var $3=$0;var $4=this._getTargetNode();var $0;var $5;for($2 in $1){$0=this.__outerElementStyleProperties[$2]?$3:$4;$5=$1[$2];$0.style[$2]=($5==null)?$[0]:$5;}},_applyEnabled:function($0,$1){if($0===false){this.addState($[185]);this.removeState($[43]);if(qx.Class.isDefined($[303])){this.removeState($[35]);this.removeState($[14]);}}else{this.removeState($[185]);}},isFocusable:function(){return this.getEnabled()&&this.isSeeable()&&this.getTabIndex()>=0&&this.getTabIndex()!=null;},isFocusRoot:function(){return false;},getFocusRoot:function(){if(this._hasParent){return this.getParent().getFocusRoot();}return null;},getActiveChild:function(){var $0=this.getFocusRoot();if($0){return $0.getActiveChild();}return null;},_ontabfocus:qx.lang.Function.returnTrue,_applyFocused:function($0,$1){if(!this.isCreated()){return;}var $2=this.getFocusRoot();if($2){if($0){$2.setFocusedChild(this);this._visualizeFocus();}else{if($2.getFocusedChild()==this){$2.setFocusedChild(null);}this._visualizeBlur();}}},_applyHideFocus:qx.core.Variant.select($[1],{"mshtml":function($0,$1){this.setHtmlProperty($[1669],$0);},"default":qx.lang.Function.returnTrue}),_visualizeBlur:function(){if(this.getEnableElementFocus()&&(!this.getFocusRoot().getFocusedChild()||(this.getFocusRoot().getFocusedChild()&&this.getFocusRoot().getFocusedChild().getEnableElementFocus()))){try{this.getElement().blur();}catch(ex){}}this.removeState($[224]);},_visualizeFocus:function(){if(!qx.event.handler.FocusHandler.mouseFocus&&this.getEnableElementFocus()){try{this.getElement().focus();}catch(ex){}}this.addState($[224]);},focus:function(){delete qx.event.handler.FocusHandler.mouseFocus;this.setFocused(true);},blur:function(){delete qx.event.handler.FocusHandler.mouseFocus;this.setFocused(false);},_applyCapture:function($0,$1){var $2=qx.event.handler.EventHandler.getInstance();if($1){$2.setCaptureWidget(null);}else if($0){$2.setCaptureWidget(this);}},_applyZIndex:function($0,$1){if($0==null){this.removeStyleProperty($[309]);}else{this.setStyleProperty($[309],$0);}},_applyTabIndex:qx.core.Variant.select($[1],{"mshtml":function($0,$1){this.setHtmlProperty($[354],$0<0?-1:1);},"gecko":function($0,$1){this.setStyleProperty($[1434],($0<0?$[498]:$[156]));},"default":function($0,$1){this.setStyleProperty($[721],($0<0?$[498]:$[156]));this.setHtmlProperty($[354],$0<0?-1:1);}}),_applySelectable:qx.core.Variant.select($[1],{"mshtml":function($0,$1){},"gecko":function($0,$1){if($0){this.removeStyleProperty($[369]);}else{this.setStyleProperty($[369],$[7]);}},"webkit":function($0,$1){if($0){this.removeStyleProperty($[512]);}else{this.setStyleProperty($[512],$[7]);}},"khtml":function($0,$1){if($0){this.removeStyleProperty($[382]);}else{this.setStyleProperty($[382],$[7]);}},"default":function($0,$1){if($0){return this.removeStyleProperty($[524]);}else{this.setStyleProperty($[524],$[7]);}}}),_applyOpacity:qx.core.Variant.select($[1],{"mshtml":function($0,$1){if($0==null||$0>=1||$0<0){this.removeStyleProperty($[144]);}else{this.setStyleProperty($[144],($[873]+Math.round($0*100)+$[145]));}},"default":function($0,$1){if($0==null||$0>1){if(qx.core.Variant.isSet($[1],$[21])){this.removeStyleProperty($[496]);}else if(qx.core.Variant.isSet($[1],$[157])){this.removeStyleProperty($[359]);}this.removeStyleProperty($[356]);}else{$0=qx.lang.Number.limit($0,0,1);if(qx.core.Variant.isSet($[1],$[21])){this.setStyleProperty($[496],$0);}else if(qx.core.Variant.isSet($[1],$[157])){this.setStyleProperty($[359],$0);}this.setStyleProperty($[356],$0);}}}),__cursorMap:qx.core.Variant.select($[1],{"mshtml":{"cursor":$[204],"ew-resize":$[305],"ns-resize":$[282],"nesw-resize":$[428],"nwse-resize":$[330]},"opera":{"col-resize":$[305],"row-resize":$[282],"ew-resize":$[305],"ns-resize":$[282],"nesw-resize":$[428],"nwse-resize":$[330]},"default":{}}),_applyCursor:function($0,$1){if($0){this.setStyleProperty($[323],this.__cursorMap[$0]||$0);}else{this.removeStyleProperty($[323]);}},_applyCommand:function($0,$1){},_applyBackgroundImage:function($0,$1){var $2=qx.io.image.Manager.getInstance();var $3=qx.io.Alias.getInstance();if($1){$2.hide($1);}if($0){$2.show($0);}$3.connect(this._styleBackgroundImage,this,$0);},_styleBackgroundImage:function($0){$0?this.setStyleProperty($[436],$[1761]+$0+$[145]):this.removeStyleProperty($[436]);},_applyBackgroundRepeat:function($0,$1){$0?this.setStyleProperty($[372],$0):this.removeStyleProperty($[372]);},_applyClip:function($0,$1){return this._compileClipString();},_compileClipString:function(){var $0=this.getClipLeft();var $1=this.getClipTop();var $2=this.getClipWidth();var $3=this.getClipHeight();var $4,$5;if($0==null){$4=($2==null?$[3]:$2+$[38]);$0=$[3];}else{$4=($2==null?$[3]:$0+$2+$[38]);$0=$0+$[38];}if($1==null){$5=($3==null?$[3]:$3+$[38]);$1=$[3];}else{$5=($3==null?$[3]:$1+$3+$[38]);$1=$1+$[38];}return this.setStyleProperty($[978],($[1735]+$1+$[101]+$4+$[101]+$5+$[101]+$0+$[145]));},_applyOverflow:qx.core.Variant.select($[1],{"default":function($0,$1){var $2=$0;var $3=$[63];switch($0){case $[112]:$3=$[175];$2=$[26];break;case $[111]:$3=$[179];$2=$[26];break;}var $4=[$[63],$[175],$[179]];for(var $5=0;$5<$4.length;$5++){if($4[$5]!=$3){this.removeStyleProperty($4[$5]);}}switch($0){case $[112]:this.setStyleProperty($[179],$[36]);break;case $[111]:this.setStyleProperty($[175],$[36]);break;}this._renderOverflow($3,$2,$0,$1);this.addToQueue($[63]);},"gecko":function($0,$1){var $2=$0;var $3=$[63];switch($2){case $[36]:$2=$[1658];break;case $[112]:$2=$[281];break;case $[111]:$2=$[274];break;}this._renderOverflow($3,$2,$0,$1);this.addToQueue($[63]);},"opera":function($0,$1){var $2=$0;var $3=$[63];switch($2){case $[112]:case $[111]:$2=$[26];break;}this._renderOverflow($3,$2,$0,$1);this.addToQueue($[63]);}}),_renderOverflow:function($0,$1,$2,$3){this.setStyleProperty($0,$1||$[0]);this._invalidateFrameWidth();this._invalidateFrameHeight();},getOverflowX:function(){var $0=this.getOverflow();return $0==$[111]?$[36]:$0;},getOverflowY:function(){var $0=this.getOverflow();return $0==$[112]?$[36]:$0;},_applyBackgroundColor:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._styleBackgroundColor,this,$0);},_styleBackgroundColor:function($0){$0?this.setStyleProperty($[488],$0):this.removeStyleProperty($[488]);},_applyTextColor:function($0,$1){},_applyFont:function($0,$1){},_cachedBorderTop:0,_cachedBorderRight:0,_cachedBorderBottom:0,_cachedBorderLeft:0,_applyBorder:function($0,$1){qx.theme.manager.Border.getInstance().connect(this._queueBorder,this,$0);},__borderJobs:{top:$[783],right:$[1410],bottom:$[637],left:$[1492]},_queueBorder:function($0,$1){if(!$1){var $2=this.__borderJobs;for(var $3 in $2){this.addToQueue($2[$3]);}this.__reflowBorderX($0);this.__reflowBorderY($0);}else{if($1===$[11]||$1===$[9]){this.__reflowBorderX($0);}else{this.__reflowBorderY($0);}this.addToQueue(this.__borderJobs[$1]);}this.__borderObject=$0;},__reflowBorderX:function($0){var $1=this._cachedBorderLeft;var $2=this._cachedBorderRight;this._cachedBorderLeft=$0?$0.getWidthLeft():0;this._cachedBorderRight=$0?$0.getWidthRight():0;if(($1+$2)!=(this._cachedBorderLeft+this._cachedBorderRight)){this._invalidateFrameWidth();}},__reflowBorderY:function($0){var $1=this._cachedBorderTop;var $2=this._cachedBorderBottom;this._cachedBorderTop=$0?$0.getWidthTop():0;this._cachedBorderBottom=$0?$0.getWidthBottom():0;if(($1+$2)!=(this._cachedBorderTop+this._cachedBorderBottom)){this._invalidateFrameHeight();}},renderBorder:function($0){var $1=this.__borderObject;if($1){if($0.borderTop){$1.renderTop(this);}if($0.borderRight){$1.renderRight(this);}if($0.borderBottom){$1.renderBottom(this);}if($0.borderLeft){$1.renderLeft(this);}}else{var $2=qx.ui.core.Border;if($0.borderTop){$2.resetTop(this);}if($0.borderRight){$2.resetRight(this);}if($0.borderBottom){$2.resetBottom(this);}if($0.borderLeft){$2.resetLeft(this);}}},prepareEnhancedBorder:qx.core.Variant.select($[1],{"gecko":qx.lang.Function.returnTrue,"default":function(){var $0=this.getElement();var $1=this._borderElement=document.createElement($[67]);var $2=$0.style;var $3=this._innerStyle=$1.style;if(qx.core.Variant.isSet($[1],$[13])){}else{$3.width=$3.height=$[56];}$3.position=$[54];for(var $4 in this._styleProperties){switch($4){case $[309]:case $[144]:case $[158]:break;default:$3[$4]=$2[$4];$2[$4]=$[0];}}for(var $4 in this._htmlProperties){switch($4){case $[1337]:$1.unselectable=this._htmlProperties[$4];}}while($0.firstChild){$1.appendChild($0.firstChild);}$0.appendChild($1);}}),_applyPaddingTop:function($0,$1){this.addToQueue($[215]);this._invalidateFrameHeight();},_applyPaddingRight:function($0,$1){this.addToQueue($[245]);this._invalidateFrameWidth();},_applyPaddingBottom:function($0,$1){this.addToQueue($[231]);this._invalidateFrameHeight();},_applyPaddingLeft:function($0,$1){this.addToQueue($[242]);this._invalidateFrameWidth();},renderPadding:function($0){},_applyMarginLeft:function($0,$1){this.addToQueue($[159]);},_applyMarginRight:function($0,$1){this.addToQueue($[225]);},_applyMarginTop:function($0,$1){this.addToQueue($[153]);},_applyMarginBottom:function($0,$1){this.addToQueue($[211]);},execute:function(){var $0=this.getCommand();if($0){$0.execute(this);}this.createDispatchEvent($[128]);},_visualPropertyCheck:function(){if(!this.isCreated()){throw new Error(this.classname+": Element must be created previously!");}},setScrollLeft:function($0){this._visualPropertyCheck();this._getTargetNode().scrollLeft=$0;},setScrollTop:function($0){this._visualPropertyCheck();this._getTargetNode().scrollTop=$0;},getOffsetLeft:function(){this._visualPropertyCheck();return qx.html.Offset.getLeft(this.getElement());},getOffsetTop:function(){this._visualPropertyCheck();return qx.html.Offset.getTop(this.getElement());},getScrollLeft:function(){this._visualPropertyCheck();return this._getTargetNode().scrollLeft;},getScrollTop:function(){this._visualPropertyCheck();return this._getTargetNode().scrollTop;},getClientWidth:function(){this._visualPropertyCheck();return this._getTargetNode().clientWidth;},getClientHeight:function(){this._visualPropertyCheck();return this._getTargetNode().clientHeight;},getOffsetWidth:function(){this._visualPropertyCheck();return this.getElement().offsetWidth;},getOffsetHeight:function(){this._visualPropertyCheck();return this.getElement().offsetHeight;},getScrollWidth:function(){this._visualPropertyCheck();return this._getTargetNode().scrollWidth;},getScrollHeight:function(){this._visualPropertyCheck();return this._getTargetNode().scrollHeight;},scrollIntoView:function($0){this.scrollIntoViewX($0);this.scrollIntoViewY($0);},scrollIntoViewX:function($0){if(!this._isCreated||!this._isDisplayable){this.warn("The function scrollIntoViewX can only be called after the widget is created!");return false;}return qx.html.ScrollIntoView.scrollX(this.getElement(),$0);},scrollIntoViewY:function($0){if(!this._isCreated||!this._isDisplayable){this.warn("The function scrollIntoViewY can only be called after the widget is created!");return false;}return qx.html.ScrollIntoView.scrollY(this.getElement(),$0);},supportsDrop:function($0){var $1=this.getSupportsDropMethod();if($1!==null){return $1.call(this,$0);}return (this!=$0.sourceWidget);}},settings:{"qx.widgetQueueDebugging":false,"qx.widgetDebugId":false},defer:function($0,$1){$0.__initApplyMethods($1);if(qx.core.Variant.isSet($[1],$[13])){$1._renderRuntimeWidth=function($2){this._style.pixelWidth=($2==null)?0:$2;if(this._innerStyle){this._innerStyle.pixelWidth=($2==null)?0:$2-2;}};$1._renderRuntimeHeight=function($2){this._style.pixelHeight=($2==null)?0:$2;if(this._innerStyle){this._innerStyle.pixelHeight=($2==null)?0:$2-2;}};$1._resetRuntimeWidth=function(){this._style.width=$[0];if(this._innerStyle){this._innerStyle.width=$[0];}};$1._resetRuntimeHeight=function(){this._style.height=$[0];if(this._innerStyle){this._innerStyle.height=$[0];}};}$0.__initLayoutProperties($0);{};},destruct:function(){var $0=this.getElement();if($0){$0.qx_Widget=null;}this._disposeFields($[1691],$[1130],$[329],$[1452],$[972],$[1225],$[1246],$[866],$[1379],$[949],$[642],$[1700],$[620],$[1631]);}});
72
qx.Class.define($[306],{extend:qx.ui.core.Widget,type:$[51],construct:function(){arguments.callee.base.call(this);this._children=[];this._layoutImpl=this._createLayoutImpl();},properties:{focusHandler:{check:$[510],apply:$[1147],nullable:true},activeChild:{check:$[66],apply:$[1571],event:$[670],nullable:true},focusedChild:{check:$[66],apply:$[1301],event:$[824],nullable:true},visibleChildren:{_cached:true,defaultValue:null}},members:{isFocusRoot:function(){return this.getFocusHandler()!=null;},getFocusRoot:function(){if(this.isFocusRoot()){return this;}if(this._hasParent){return this.getParent().getFocusRoot();}return null;},activateFocusRoot:function(){if(this._focusHandler){return;}this._focusHandler=new qx.event.handler.FocusHandler(this);this.setFocusHandler(this._focusHandler);},_onfocuskeyevent:function($0){this.getFocusHandler()._onkeyevent(this,$0);},_applyFocusHandler:function($0,$1){if($0){this.addEventListener($[40],this._onfocuskeyevent);if(this.getTabIndex()<1){this.setTabIndex(1);}this.setHideFocus(true);this.setActiveChild(this);}else{this.removeEventListener($[16],this._onfocuskeyevent);this.removeEventListener($[40],this._onfocuskeyevent);this.setTabIndex(-1);this.setHideFocus(false);}},_applyActiveChild:function($0,$1){},_applyFocusedChild:function($0,$1){var $2=$0!=null;var $3=$1!=null;if(qx.Class.isDefined($[166])&&$2){var $4=qx.ui.popup.PopupManager.getInstance();if($4){$4.update($0);}}if($3){if($1.hasEventListeners($[265])){var $5=new qx.event.type.FocusEvent($[265],$1);if($2){$5.setRelatedTarget($0);}$1.dispatchEvent($5);$5.dispose();}}if($2){if($0.hasEventListeners($[253])){var $5=new qx.event.type.FocusEvent($[253],$0);if($3){$5.setRelatedTarget($1);}$0.dispatchEvent($5);$5.dispose();}}if($3){if(this.getActiveChild()==$1&&!$2){this.setActiveChild(null);}$1.setFocused(false);var $5=new qx.event.type.FocusEvent($[199],$1);if($2){$5.setRelatedTarget($0);}$1.dispatchEvent($5);if(qx.Class.isDefined($[151])){var $4=qx.ui.popup.ToolTipManager.getInstance();if($4){$4.handleBlur($5);}}$5.dispose();}if($2){this.setActiveChild($0);$0.setFocused(true);qx.event.handler.EventHandler.getInstance().setFocusRoot(this);var $5=new qx.event.type.FocusEvent($[236],$0);if($3){$5.setRelatedTarget($1);}$0.dispatchEvent($5);if(qx.Class.isDefined($[151])){var $4=qx.ui.popup.ToolTipManager.getInstance();if($4){$4.handleFocus($5);}}$5.dispose();}},_layoutImpl:null,_createLayoutImpl:function(){return null;},getLayoutImpl:function(){return this._layoutImpl;},getChildren:function(){return this._children;},getChildrenLength:function(){return this.getChildren().length;},hasChildren:function(){return this.getChildrenLength()>0;},isEmpty:function(){return this.getChildrenLength()==0;},indexOf:function($0){return this.getChildren().indexOf($0);},contains:function($0){switch($0){case null:return false;case this:return true;default:return this.contains($0.getParent());}},_computeVisibleChildren:function(){var $0=[];var $1=this.getChildren();if(!$1){return 0;}var $2=$1.length;for(var $3=0;$3<$2;$3++){var $4=$1[$3];if($4._isDisplayable){$0.push($4);}}return $0;},getVisibleChildrenLength:function(){return this.getVisibleChildren().length;},hasVisibleChildren:function(){return this.getVisibleChildrenLength()>0;},isVisibleEmpty:function(){return this.getVisibleChildrenLength()==0;},add:function($0){var $1;for(var $2=0,$3=arguments.length;$2<$3;$2++){$1=arguments[$2];if(!($1 instanceof qx.ui.core.Parent)&&!($1 instanceof qx.ui.basic.Terminator)){throw new Error("Invalid Widget: "+$1);}else{$1.setParent(this);}}return this;},addAt:function($0,$1){if($1==null||$1<0){throw new Error("Not a valid index for addAt(): "+$1);}if($0.getParent()==this){var $2=this.getChildren();var $3=$2.indexOf($0);if($3!=$1){if($3!=-1){qx.lang.Array.removeAt($2,$3);}qx.lang.Array.insertAt($2,$0,$1);if(this._initialLayoutDone){this._invalidateVisibleChildren();this.getLayoutImpl().updateChildrenOnMoveChild($0,$1,$3);}}}else{$0._insertIndex=$1;$0.setParent(this);}},addAtBegin:function($0){return this.addAt($0,0);},addAtEnd:function($0){var $1=this.getChildrenLength();return this.addAt($0,$0.getParent()==this?$1-1:$1);},addBefore:function($0,$1){var $2=this.getChildren();var $3=$2.indexOf($1);if($3==-1){throw new Error("Child to add before: "+$1+" is not inside this parent.");}var $4=$2.indexOf($0);if($4==-1||$4>$3){$3++;}return this.addAt($0,Math.max(0,$3-1));},addAfter:function($0,$1){var $2=this.getChildren();var $3=$2.indexOf($1);if($3==-1){throw new Error("Child to add after: "+$1+" is not inside this parent.");}var $4=$2.indexOf($0);if($4!=-1&&$4<$3){$3--;}return this.addAt($0,Math.min($2.length,$3+1));},remove:function($0){var $1;for(var $2=0,$3=arguments.length;$2<$3;$2++){$1=arguments[$2];if(!($1 instanceof qx.ui.core.Parent)&&!($1 instanceof qx.ui.basic.Terminator)){throw new Error("Invalid Widget: "+$1);}else if($1.getParent()==this){$1.setParent(null);}}},removeAt:function($0){var $1=this.getChildren()[$0];if($1){delete $1._insertIndex;$1.setParent(null);}},removeAll:function(){var $0=this.getChildren();var $1=$0[0];while($1){this.remove($1);$1=$0[0];}},getFirstChild:function(){return qx.lang.Array.getFirst(this.getChildren())||null;},getFirstVisibleChild:function(){return qx.lang.Array.getFirst(this.getVisibleChildren())||null;},getFirstActiveChild:function($0){return qx.ui.core.Widget.getActiveSiblingHelper(null,this,1,$0,$[475])||null;},getLastChild:function(){return qx.lang.Array.getLast(this.getChildren())||null;},getLastVisibleChild:function(){return qx.lang.Array.getLast(this.getVisibleChildren())||null;},getLastActiveChild:function($0){return qx.ui.core.Widget.getActiveSiblingHelper(null,this,-1,$0,$[834])||null;},forEachChild:function($0){var $1=this.getChildren(),$2,$3=-1;if(!$1){return;}while($2=$1[++$3]){$0.call($2,$3);}},forEachVisibleChild:function($0){var $1=this.getVisibleChildren(),$2,$3=-1;if(!$1){return;}while($2=$1[++$3]){$0.call($2,$3);}},_beforeAppear:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeAppear();}});},_afterAppear:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterAppear();}});},_beforeDisappear:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeDisappear();}});},_afterDisappear:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterDisappear();}});},_beforeInsertDom:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeInsertDom();}});},_afterInsertDom:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterInsertDom();}});},_beforeRemoveDom:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeRemoveDom();}});},_afterRemoveDom:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterRemoveDom();}});},_handleDisplayableCustom:function($0,$1,$2){this.forEachChild(function(){this._handleDisplayable();});},_addChildrenToStateQueue:function(){this.forEachVisibleChild(function(){this.addToStateQueue();});},recursiveAddToStateQueue:function(){this.addToStateQueue();this.forEachVisibleChild(function(){this.recursiveAddToStateQueue();});},_recursiveAppearanceThemeUpdate:function($0,$1){arguments.callee.base.call(this,$0,$1);this.forEachVisibleChild(function(){this._recursiveAppearanceThemeUpdate($0,$1);});},_addChildToChildrenQueue:function($0){if(!$0._isInParentChildrenQueue&&!$0._isDisplayable){this.warn("Ignoring invisible child: "+$0);}if(!$0._isInParentChildrenQueue&&$0._isDisplayable){qx.ui.core.Widget.addToGlobalLayoutQueue(this);if(!this._childrenQueue){this._childrenQueue={};}this._childrenQueue[$0.toHashCode()]=$0;}},_removeChildFromChildrenQueue:function($0){if(this._childrenQueue&&$0._isInParentChildrenQueue){delete this._childrenQueue[$0.toHashCode()];if(qx.lang.Object.isEmpty(this._childrenQueue)){qx.ui.core.Widget.removeFromGlobalLayoutQueue(this);}}},_flushChildrenQueue:function(){if(!qx.lang.Object.isEmpty(this._childrenQueue)){this.getLayoutImpl().flushChildrenQueue(this._childrenQueue);delete this._childrenQueue;}},_addChildrenToLayoutQueue:function($0){this.forEachChild(function(){this.addToLayoutChanges($0);});},_layoutChild:function($0){if(!$0._isDisplayable){return ;}var $1=$0._layoutChanges;try{if($0.renderBorder){if($1.borderTop||$1.borderRight||$1.borderBottom||$1.borderLeft){$0.renderBorder($1);}}}catch(ex){this.error("Could not apply border to child "+$0,ex);}try{if($0.renderPadding){if($1.paddingLeft||$1.paddingRight||$1.paddingTop||$1.paddingBottom){$0.renderPadding($1);}}}catch(ex){this.error("Could not apply padding to child "+$0,ex);}try{this.getLayoutImpl().layoutChild($0,$1);}catch(ex){this.error("Could not layout child "+$0+" through layout handler",ex);}try{$0._layoutPost($1);}catch(ex){this.error("Could not post layout child "+$0,ex);}try{if($1.initial){$0._initialLayoutDone=true;qx.ui.core.Widget.addToGlobalDisplayQueue($0);}}catch(ex){this.error("Could not handle display updates from layout flush for child "+$0,ex);}$0._layoutChanges={};delete $0._isInParentLayoutQueue;delete this._childrenQueue[$0.toHashCode()];},_layoutPost:qx.lang.Function.returnTrue,_computePreferredInnerWidth:function(){return this.getLayoutImpl().computeChildrenNeededWidth();},_computePreferredInnerHeight:function(){return this.getLayoutImpl().computeChildrenNeededHeight();},_changeInnerWidth:function($0,$1){var $2=this.getLayoutImpl();if($2.invalidateChildrenFlexWidth){$2.invalidateChildrenFlexWidth();}this.forEachVisibleChild(function(){if($2.updateChildOnInnerWidthChange(this)&&this._recomputeBoxWidth()){this._recomputeOuterWidth();this._recomputeInnerWidth();}});},_changeInnerHeight:function($0,$1){var $2=this.getLayoutImpl();if($2.invalidateChildrenFlexHeight){$2.invalidateChildrenFlexHeight();}this.forEachVisibleChild(function(){if($2.updateChildOnInnerHeightChange(this)&&this._recomputeBoxHeight()){this._recomputeOuterHeight();this._recomputeInnerHeight();}});},getInnerWidthForChild:function($0){return this.getInnerWidth();},getInnerHeightForChild:function($0){return this.getInnerHeight();},_remappingChildTable:[$[421],$[530],$[406],$[487],$[317],$[514],$[480],$[327],$[322]],_remapStart:$[1778],_remapStop:$[1549],remapChildrenHandlingTo:function($0){var $1=this._remappingChildTable;this._remappingChildTarget=$0;for(var $2=0,$3=$1.length,$4;$2<$3;$2++){$4=$1[$2];this[$4]=new Function(qx.ui.core.Parent.prototype._remapStart+$4+qx.ui.core.Parent.prototype._remapStop);}}},defer:function($0,$1,$2){if(qx.core.Variant.isSet($[1],$[154])){$1._layoutChildOrig=$1._layoutChild;$1._layoutChild=function($3){if(!$3._initialLayoutDone||!$3._layoutChanges.border){return this._layoutChildOrig($3);}var $4=$3.getElement().style;var $5=$4.display;$4.display=$[7];var $6=this._layoutChildOrig($3);$4.display=$5;return $6;};}},destruct:function(){this._disposeObjectDeep($[1313],1);this._disposeObjects($[992],$[538]);this._disposeFields($[312],$[312],$[1058],$[1341],$[572]);}});
73
qx.Class.define($[168],{extend:qx.event.type.Event,construct:function($0,$1){arguments.callee.base.call(this,$0);this.setTarget($1);switch($0){case $[253]:case $[265]:this.setBubbles(true);this.setPropagationStopped(false);}}});
58
qx.Class.define($[168],{extend:qx.event.type.Event,construct:function($0,$1){arguments.callee.base.call(this,$0);this.setTarget($1);switch($0){case $[253]:case $[265]:this.setBubbles(true);this.setPropagationStopped(false);}}});
74
qx.Class.define($[604],{type:$[18],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this.__onmouseevent=qx.lang.Function.bind(this._onmouseevent,this);this.__ondragevent=qx.lang.Function.bind(this._ondragevent,this);this.__onselectevent=qx.lang.Function.bind(this._onselectevent,this);this.__onwindowblur=qx.lang.Function.bind(this._onwindowblur,this);this.__onwindowfocus=qx.lang.Function.bind(this._onwindowfocus,this);this.__onwindowresize=qx.lang.Function.bind(this._onwindowresize,this);this._commands={};},events:{"error":$[98]},statics:{mouseEventTypes:[$[61],$[148],$[105],$[12],$[22],$[53],$[104],$[219],qx.core.Variant.isSet($[1],$[21])?$[404]:$[184]],keyEventTypes:[$[16],$[40],$[88]],dragEventTypes:qx.core.Variant.select($[1],{"gecko":[$[285],$[149],$[259],$[449],$[470]],"mshtml":[$[489],$[149],$[177],$[410],$[259],$[340]],"default":[$[177],$[285],$[149],$[410],$[340],$[259],$[449],$[470]]}),getDomTarget:qx.core.Variant.select($[1],{"mshtml":function($0){return $0.target||$0.srcElement;},"webkit":function($0){var $1=$0.target||$0.srcElement;if($1&&($1.nodeType==qx.dom.Node.TEXT)){$1=$1.parentNode;}return $1;},"default":function($0){return $0.target;}}),stopDomEvent:function($0){if($0.preventDefault){$0.preventDefault();}$0.returnValue=false;},getOriginalTargetObject:function($0){if($0==document.documentElement){$0=document.body;}while($0!=null&&$0.qx_Widget==null){try{$0=$0.parentNode;}catch(vDomEvent){$0=null;}}return $0?$0.qx_Widget:null;},getOriginalTargetObjectFromEvent:function($0,$1){var $2=qx.event.handler.EventHandler.getDomTarget($0);if($1){var $3=$1.document;if($2==$1||$2==$3||$2==$3.documentElement||$2==$3.body){return $3.body.qx_Widget;}}return qx.event.handler.EventHandler.getOriginalTargetObject($2);},getRelatedOriginalTargetObjectFromEvent:function($0){return qx.event.handler.EventHandler.getOriginalTargetObject($0.relatedTarget||($0.type==$[61]?$0.fromElement:$0.toElement));},getTargetObject:function($0,$1,$2){if(!$1){var $1=qx.event.handler.EventHandler.getOriginalTargetObject($0);if(!$1){return null;}}while($1){if(!$2&&!$1.getEnabled()){return null;}if(!$1.getAnonymous()){break;}$1=$1.getParent();}return $1;},getTargetObjectFromEvent:function($0){return qx.event.handler.EventHandler.getTargetObject(qx.event.handler.EventHandler.getDomTarget($0));},getRelatedTargetObjectFromEvent:function($0){var $1=$0.relatedTarget;if(!$1){if($0.type==$[61]){$1=$0.fromElement;}else{$1=$0.toElement;}}return qx.event.handler.EventHandler.getTargetObject($1);}},properties:{allowClientContextMenu:{check:$[2],init:false},allowClientSelectAll:{check:$[2],init:false},captureWidget:{check:$[66],nullable:true,apply:$[1201]},focusRoot:{check:$[306],nullable:true,apply:$[558]}},members:{_lastMouseEventType:null,_lastMouseDown:false,_lastMouseEventDate:0,_applyCaptureWidget:function($0,$1){if($1){$1.setCapture(false);}if($0){$0.setCapture(true);}},_applyFocusRoot:function($0,$1){if($1){$1.setFocusedChild(null);}if($0&&$0.getFocusedChild()==null){$0.setFocusedChild($0);}},addCommand:function($0){this._commands[$0.toHashCode()]=$0;},removeCommand:function($0){delete this._commands[$0.toHashCode()];},_checkKeyEventMatch:function($0){var $1;for(var $2 in this._commands){$1=this._commands[$2];if($1.getEnabled()&&$1.matchesKeyEvent($0)){if(!$1.execute($0.getTarget())){$0.preventDefault();}break;}}},attachEvents:function(){this.attachEventTypes(qx.event.handler.EventHandler.mouseEventTypes,this.__onmouseevent);this.attachEventTypes(qx.event.handler.EventHandler.dragEventTypes,this.__ondragevent);qx.event.handler.KeyEventHandler.getInstance()._attachEvents();qx.html.EventRegistration.addEventListener(window,$[199],this.__onwindowblur);qx.html.EventRegistration.addEventListener(window,$[236],this.__onwindowfocus);qx.html.EventRegistration.addEventListener(window,$[202],this.__onwindowresize);document.body.onselect=document.onselectstart=document.onselectionchange=this.__onselectevent;},detachEvents:function(){this.detachEventTypes(qx.event.handler.EventHandler.mouseEventTypes,this.__onmouseevent);this.detachEventTypes(qx.event.handler.EventHandler.dragEventTypes,this.__ondragevent);qx.event.handler.KeyEventHandler.getInstance()._detachEvents();qx.html.EventRegistration.removeEventListener(window,$[199],this.__onwindowblur);qx.html.EventRegistration.removeEventListener(window,$[236],this.__onwindowfocus);qx.html.EventRegistration.removeEventListener(window,$[202],this.__onwindowresize);document.body.onselect=document.onselectstart=document.onselectionchange=null;},attachEventTypes:function($0,$1){try{var $2=qx.core.Variant.isSet($[1],$[21])?window:document.body;for(var $3=0,$4=$0.length;$3<$4;$3++){qx.html.EventRegistration.addEventListener($2,$0[$3],$1);}}catch(ex){throw new Error("qx.event.handler.EventHandler: Failed to attach window event types: "+$0+": "+ex);}},detachEventTypes:function($0,$1){try{var $2=qx.core.Variant.isSet($[1],$[21])?window:document.body;for(var $3=0,$4=$0.length;$3<$4;$3++){qx.html.EventRegistration.removeEventListener($2,$0[$3],$1);}}catch(ex){throw new Error("qx.event.handler.EventHandler: Failed to detach window event types: "+$0+": "+ex);}},_onkeyevent_post:function($0,$1,$2,$3,$4){var $5=qx.event.handler.EventHandler.getDomTarget($0);var $6=this.getFocusRoot();var $7=this.getCaptureWidget()||($6==null?null:$6.getActiveChild());var $8=new qx.event.type.KeyEvent($1,$0,$5,$7,null,$2,$3,$4);if($1==$[16]){this._checkKeyEventMatch($8);}if($7!=null&&$7.getEnabled()){switch($4){case $[129]:case $[188]:if(qx.Class.isDefined($[152])){qx.ui.menu.Manager.getInstance().update($7,$1);}break;}if(!this.getAllowClientSelectAll()){if($0.ctrlKey&&$4==$[174]){switch($5.tagName.toLowerCase()){case $[89]:case $[222]:case $[239]:break;default:qx.event.handler.EventHandler.stopDomEvent($0);}}}$7.dispatchEvent($8);if(qx.Class.isDefined($[235])){qx.event.handler.DragAndDropHandler.getInstance().handleKeyEvent($8);}}$8.dispose();},_onmouseevent:qx.core.Variant.select($[1],{"mshtml":function($0){if(!$0){$0=window.event;}var $1=qx.event.handler.EventHandler.getDomTarget($0);var $2=$0.type;if($2==$[148]){if(this._mouseIsDown&&$0.button==0){this._onmouseevent_post($0,$[22]);this._mouseIsDown=false;}}else{if($2==$[12]){this._mouseIsDown=true;}else if($2==$[22]){this._mouseIsDown=false;}if($2==$[22]&&!this._lastMouseDown&&((new Date).valueOf()-this._lastMouseEventDate)<250){this._onmouseevent_post($0,$[12]);}else if($2==$[104]&&this._lastMouseEventType==$[22]&&((new Date).valueOf()-this._lastMouseEventDate)<250){this._onmouseevent_post($0,$[53]);}switch($2){case $[12]:case $[22]:case $[53]:case $[104]:case $[219]:this._lastMouseEventType=$2;this._lastMouseEventDate=(new Date).valueOf();this._lastMouseDown=$2==$[12];}}this._onmouseevent_post($0,$2,$1);},"default":function($0){var $1=qx.event.handler.EventHandler.getDomTarget($0);var $2=$0.type;switch($2){case $[404]:$2=$[184];break;case $[53]:case $[104]:if($0.which!==1){return;}}this._onmouseevent_post($0,$2,$1);}}),_onmouseevent_click_fix:qx.core.Variant.select($[1],{"gecko":function($0,$1,$2){var $3=false;switch($1){case $[12]:this._lastMouseDownDomTarget=$0;this._lastMouseDownDispatchTarget=$2;break;case $[22]:if(this._lastMouseDownDispatchTarget===$2&&$0!==this._lastMouseDownDomTarget){$3=true;}else{this._lastMouseDownDomTarget=null;this._lastMouseDownDispatchTarget=null;}}return $3;},"default":null}),_onmouseevent_post:function($0,$1,$2){var $3,$4,$5,$6,$7,$8,$9,$a;$4=this.getCaptureWidget();$7=qx.event.handler.EventHandler.getOriginalTargetObject($2);if(!$4){$5=$6=qx.event.handler.EventHandler.getTargetObject(null,$7,true);}else{$5=$4;$6=qx.event.handler.EventHandler.getTargetObject(null,$7,true);}if(!$6){return;}$a=$6.getEnabled();if(qx.core.Variant.isSet($[1],$[21])){$9=this._onmouseevent_click_fix($2,$1,$5);}if($1==$[219]&&!this.getAllowClientContextMenu()){qx.event.handler.EventHandler.stopDomEvent($0);}if($a&&$1==$[12]){qx.event.handler.FocusHandler.mouseFocus=true;var $b=$6.getFocusRoot();if($b){this.setFocusRoot($b);var $c=$6;while(!$c.isFocusable()&&$c!=$b){$c=$c.getParent();}$b.setFocusedChild($c);$b.setActiveChild($6);}}switch($1){case $[61]:case $[105]:$8=qx.event.handler.EventHandler.getRelatedTargetObjectFromEvent($0);if($8==$6){return;}}$3=new qx.event.type.MouseEvent($1,$0,$2,$6,$7,$8);qx.event.type.MouseEvent.storeEventState($3);if($a){var $d=false;$d=$5?$5.dispatchEvent($3):true;this._onmouseevent_special_post($1,$6,$7,$5,$d,$3,$0);}else{if($1==$[61]){if(qx.Class.isDefined($[151])){qx.ui.popup.ToolTipManager.getInstance().handleMouseOver($3);}}}$3.dispose();$3=null;qx.ui.core.Widget.flushGlobalQueues();if($9){this._onmouseevent_post($0,$[53],this._lastMouseDownDomTarget);this._lastMouseDownDomTarget=null;this._lastMouseDownDispatchTarget=null;}},_onmouseevent_special_post:function($0,$1,$2,$3,$4,$5,$6){switch($0){case $[12]:if(qx.Class.isDefined($[166])){qx.ui.popup.PopupManager.getInstance().update($1);}if(qx.Class.isDefined($[152])){qx.ui.menu.Manager.getInstance().update($1,$0);}if(qx.Class.isDefined($[262])){qx.ui.embed.IframeManager.getInstance().handleMouseDown($5);}break;case $[22]:if(qx.Class.isDefined($[152])){qx.ui.menu.Manager.getInstance().update($1,$0);}if(qx.Class.isDefined($[262])){qx.ui.embed.IframeManager.getInstance().handleMouseUp($5);}break;case $[61]:if(qx.Class.isDefined($[151])){qx.ui.popup.ToolTipManager.getInstance().handleMouseOver($5);}break;case $[105]:if(qx.Class.isDefined($[151])){qx.ui.popup.ToolTipManager.getInstance().handleMouseOut($5);}break;}this._ignoreWindowBlur=$0===$[12];if(qx.Class.isDefined($[235])&&$1){qx.event.handler.DragAndDropHandler.getInstance().handleMouseEvent($5);}},_ondragevent:function($0){if(!$0){$0=window.event;}qx.event.handler.EventHandler.stopDomEvent($0);},_onselectevent:function($0){if(!$0){$0=window.event;}var $1=qx.event.handler.EventHandler.getOriginalTargetObjectFromEvent($0);while($1){if($1.getSelectable()!=null){if(!$1.getSelectable()){qx.event.handler.EventHandler.stopDomEvent($0);}break;}$1=$1.getParent();}},_focused:false,_onwindowblur:function($0){if(!this._focused||this._ignoreWindowBlur){return;}this._focused=false;this.setCaptureWidget(null);if(qx.Class.isDefined($[166])){qx.ui.popup.PopupManager.getInstance().update();}if(qx.Class.isDefined($[152])){qx.ui.menu.Manager.getInstance().update();}if(qx.Class.isDefined($[235])){qx.event.handler.DragAndDropHandler.getInstance().globalCancelDrag();}qx.ui.core.ClientDocument.getInstance().createDispatchEvent($[283]);},_onwindowfocus:function($0){if(this._focused){return;}this._focused=true;qx.ui.core.ClientDocument.getInstance().createDispatchEvent($[1468]);},_onwindowresize:function($0){qx.ui.core.ClientDocument.getInstance().createDispatchEvent($[364]);}},destruct:function(){this.detachEvents();this._disposeObjectDeep($[1794],1);this._disposeFields($[963],$[1276],$[1459],$[977],$[1742],$[1685]);this._disposeFields($[1105],$[1203],$[1041],$[1585],$[765]);}});
59
qx.Class.define($[604],{type:$[18],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this.__onmouseevent=qx.lang.Function.bind(this._onmouseevent,this);this.__ondragevent=qx.lang.Function.bind(this._ondragevent,this);this.__onselectevent=qx.lang.Function.bind(this._onselectevent,this);this.__onwindowblur=qx.lang.Function.bind(this._onwindowblur,this);this.__onwindowfocus=qx.lang.Function.bind(this._onwindowfocus,this);this.__onwindowresize=qx.lang.Function.bind(this._onwindowresize,this);this._commands={};},events:{"error":$[98]},statics:{mouseEventTypes:[$[61],$[148],$[105],$[12],$[22],$[53],$[104],$[219],qx.core.Variant.isSet($[1],$[21])?$[405]:$[184]],keyEventTypes:[$[16],$[40],$[84]],dragEventTypes:qx.core.Variant.select($[1],{"gecko":[$[285],$[149],$[259],$[450],$[471]],"mshtml":[$[488],$[149],$[177],$[411],$[259],$[339]],"default":[$[177],$[285],$[149],$[411],$[339],$[259],$[450],$[471]]}),getDomTarget:qx.core.Variant.select($[1],{"mshtml":function($0){return $0.target||$0.srcElement;},"webkit":function($0){var $1=$0.target||$0.srcElement;if($1&&($1.nodeType==qx.dom.Node.TEXT)){$1=$1.parentNode;}return $1;},"default":function($0){return $0.target;}}),stopDomEvent:function($0){if($0.preventDefault){$0.preventDefault();}$0.returnValue=false;},getOriginalTargetObject:function($0){if($0==document.documentElement){$0=document.body;}while($0!=null&&$0.qx_Widget==null){try{$0=$0.parentNode;}catch(vDomEvent){$0=null;}}return $0?$0.qx_Widget:null;},getOriginalTargetObjectFromEvent:function($0,$1){var $2=qx.event.handler.EventHandler.getDomTarget($0);if($1){var $3=$1.document;if($2==$1||$2==$3||$2==$3.documentElement||$2==$3.body){return $3.body.qx_Widget;}}return qx.event.handler.EventHandler.getOriginalTargetObject($2);},getRelatedOriginalTargetObjectFromEvent:function($0){return qx.event.handler.EventHandler.getOriginalTargetObject($0.relatedTarget||($0.type==$[61]?$0.fromElement:$0.toElement));},getTargetObject:function($0,$1,$2){if(!$1){var $1=qx.event.handler.EventHandler.getOriginalTargetObject($0);if(!$1){return null;}}while($1){if(!$2&&!$1.getEnabled()){return null;}if(!$1.getAnonymous()){break;}$1=$1.getParent();}return $1;},getTargetObjectFromEvent:function($0){return qx.event.handler.EventHandler.getTargetObject(qx.event.handler.EventHandler.getDomTarget($0));},getRelatedTargetObjectFromEvent:function($0){var $1=$0.relatedTarget;if(!$1){if($0.type==$[61]){$1=$0.fromElement;}else{$1=$0.toElement;}}return qx.event.handler.EventHandler.getTargetObject($1);}},properties:{allowClientContextMenu:{check:$[2],init:false},allowClientSelectAll:{check:$[2],init:false},captureWidget:{check:$[66],nullable:true,apply:$[1200]},focusRoot:{check:$[306],nullable:true,apply:$[558]}},members:{_lastMouseEventType:null,_lastMouseDown:false,_lastMouseEventDate:0,_applyCaptureWidget:function($0,$1){if($1){$1.setCapture(false);}if($0){$0.setCapture(true);}},_applyFocusRoot:function($0,$1){if($1){$1.setFocusedChild(null);}if($0&&$0.getFocusedChild()==null){$0.setFocusedChild($0);}},addCommand:function($0){this._commands[$0.toHashCode()]=$0;},removeCommand:function($0){delete this._commands[$0.toHashCode()];},_checkKeyEventMatch:function($0){var $1;for(var $2 in this._commands){$1=this._commands[$2];if($1.getEnabled()&&$1.matchesKeyEvent($0)){if(!$1.execute($0.getTarget())){$0.preventDefault();}break;}}},attachEvents:function(){this.attachEventTypes(qx.event.handler.EventHandler.mouseEventTypes,this.__onmouseevent);this.attachEventTypes(qx.event.handler.EventHandler.dragEventTypes,this.__ondragevent);qx.event.handler.KeyEventHandler.getInstance()._attachEvents();qx.html.EventRegistration.addEventListener(window,$[199],this.__onwindowblur);qx.html.EventRegistration.addEventListener(window,$[236],this.__onwindowfocus);qx.html.EventRegistration.addEventListener(window,$[202],this.__onwindowresize);document.body.onselect=document.onselectstart=document.onselectionchange=this.__onselectevent;},detachEvents:function(){this.detachEventTypes(qx.event.handler.EventHandler.mouseEventTypes,this.__onmouseevent);this.detachEventTypes(qx.event.handler.EventHandler.dragEventTypes,this.__ondragevent);qx.event.handler.KeyEventHandler.getInstance()._detachEvents();qx.html.EventRegistration.removeEventListener(window,$[199],this.__onwindowblur);qx.html.EventRegistration.removeEventListener(window,$[236],this.__onwindowfocus);qx.html.EventRegistration.removeEventListener(window,$[202],this.__onwindowresize);document.body.onselect=document.onselectstart=document.onselectionchange=null;},attachEventTypes:function($0,$1){try{var $2=qx.core.Variant.isSet($[1],$[21])?window:document.body;for(var $3=0,$4=$0.length;$3<$4;$3++){qx.html.EventRegistration.addEventListener($2,$0[$3],$1);}}catch(ex){throw new Error("qx.event.handler.EventHandler: Failed to attach window event types: "+$0+": "+ex);}},detachEventTypes:function($0,$1){try{var $2=qx.core.Variant.isSet($[1],$[21])?window:document.body;for(var $3=0,$4=$0.length;$3<$4;$3++){qx.html.EventRegistration.removeEventListener($2,$0[$3],$1);}}catch(ex){throw new Error("qx.event.handler.EventHandler: Failed to detach window event types: "+$0+": "+ex);}},_onkeyevent_post:function($0,$1,$2,$3,$4){var $5=qx.event.handler.EventHandler.getDomTarget($0);var $6=this.getFocusRoot();var $7=this.getCaptureWidget()||($6==null?null:$6.getActiveChild());var $8=new qx.event.type.KeyEvent($1,$0,$5,$7,null,$2,$3,$4);if($1==$[16]){this._checkKeyEventMatch($8);}if($7!=null&&$7.getEnabled()){switch($4){case $[129]:case $[188]:if(qx.Class.isDefined($[152])){qx.ui.menu.Manager.getInstance().update($7,$1);}break;}if(!this.getAllowClientSelectAll()){if($0.ctrlKey&&$4==$[174]){switch($5.tagName.toLowerCase()){case $[89]:case $[222]:case $[239]:break;default:qx.event.handler.EventHandler.stopDomEvent($0);}}}$7.dispatchEvent($8);if(qx.Class.isDefined($[235])){qx.event.handler.DragAndDropHandler.getInstance().handleKeyEvent($8);}}$8.dispose();},_onmouseevent:qx.core.Variant.select($[1],{"mshtml":function($0){if(!$0){$0=window.event;}var $1=qx.event.handler.EventHandler.getDomTarget($0);var $2=$0.type;if($2==$[148]){if(this._mouseIsDown&&$0.button==0){this._onmouseevent_post($0,$[22]);this._mouseIsDown=false;}}else{if($2==$[12]){this._mouseIsDown=true;}else if($2==$[22]){this._mouseIsDown=false;}if($2==$[22]&&!this._lastMouseDown&&((new Date).valueOf()-this._lastMouseEventDate)<250){this._onmouseevent_post($0,$[12]);}else if($2==$[104]&&this._lastMouseEventType==$[22]&&((new Date).valueOf()-this._lastMouseEventDate)<250){this._onmouseevent_post($0,$[53]);}switch($2){case $[12]:case $[22]:case $[53]:case $[104]:case $[219]:this._lastMouseEventType=$2;this._lastMouseEventDate=(new Date).valueOf();this._lastMouseDown=$2==$[12];}}this._onmouseevent_post($0,$2,$1);},"default":function($0){var $1=qx.event.handler.EventHandler.getDomTarget($0);var $2=$0.type;switch($2){case $[405]:$2=$[184];break;case $[53]:case $[104]:if($0.which!==1){return;}}this._onmouseevent_post($0,$2,$1);}}),_onmouseevent_click_fix:qx.core.Variant.select($[1],{"gecko":function($0,$1,$2){var $3=false;switch($1){case $[12]:this._lastMouseDownDomTarget=$0;this._lastMouseDownDispatchTarget=$2;break;case $[22]:if(this._lastMouseDownDispatchTarget===$2&&$0!==this._lastMouseDownDomTarget){$3=true;}else{this._lastMouseDownDomTarget=null;this._lastMouseDownDispatchTarget=null;}}return $3;},"default":null}),_onmouseevent_post:function($0,$1,$2){var $3,$4,$5,$6,$7,$8,$9,$a;$4=this.getCaptureWidget();$7=qx.event.handler.EventHandler.getOriginalTargetObject($2);if(!$4){$5=$6=qx.event.handler.EventHandler.getTargetObject(null,$7,true);}else{$5=$4;$6=qx.event.handler.EventHandler.getTargetObject(null,$7,true);}if(!$6){return;}$a=$6.getEnabled();if(qx.core.Variant.isSet($[1],$[21])){$9=this._onmouseevent_click_fix($2,$1,$5);}if($1==$[219]&&!this.getAllowClientContextMenu()){qx.event.handler.EventHandler.stopDomEvent($0);}if($a&&$1==$[12]){qx.event.handler.FocusHandler.mouseFocus=true;var $b=$6.getFocusRoot();if($b){this.setFocusRoot($b);var $c=$6;while(!$c.isFocusable()&&$c!=$b){$c=$c.getParent();}$b.setFocusedChild($c);$b.setActiveChild($6);}}switch($1){case $[61]:case $[105]:$8=qx.event.handler.EventHandler.getRelatedTargetObjectFromEvent($0);if($8==$6){return;}}$3=new qx.event.type.MouseEvent($1,$0,$2,$6,$7,$8);qx.event.type.MouseEvent.storeEventState($3);if($a){var $d=false;$d=$5?$5.dispatchEvent($3):true;this._onmouseevent_special_post($1,$6,$7,$5,$d,$3,$0);}else{if($1==$[61]){if(qx.Class.isDefined($[151])){qx.ui.popup.ToolTipManager.getInstance().handleMouseOver($3);}}}$3.dispose();$3=null;qx.ui.core.Widget.flushGlobalQueues();if($9){this._onmouseevent_post($0,$[53],this._lastMouseDownDomTarget);this._lastMouseDownDomTarget=null;this._lastMouseDownDispatchTarget=null;}},_onmouseevent_special_post:function($0,$1,$2,$3,$4,$5,$6){switch($0){case $[12]:if(qx.Class.isDefined($[166])){qx.ui.popup.PopupManager.getInstance().update($1);}if(qx.Class.isDefined($[152])){qx.ui.menu.Manager.getInstance().update($1,$0);}if(qx.Class.isDefined($[262])){qx.ui.embed.IframeManager.getInstance().handleMouseDown($5);}break;case $[22]:if(qx.Class.isDefined($[152])){qx.ui.menu.Manager.getInstance().update($1,$0);}if(qx.Class.isDefined($[262])){qx.ui.embed.IframeManager.getInstance().handleMouseUp($5);}break;case $[61]:if(qx.Class.isDefined($[151])){qx.ui.popup.ToolTipManager.getInstance().handleMouseOver($5);}break;case $[105]:if(qx.Class.isDefined($[151])){qx.ui.popup.ToolTipManager.getInstance().handleMouseOut($5);}break;}this._ignoreWindowBlur=$0===$[12];if(qx.Class.isDefined($[235])&&$1){qx.event.handler.DragAndDropHandler.getInstance().handleMouseEvent($5);}},_ondragevent:function($0){if(!$0){$0=window.event;}qx.event.handler.EventHandler.stopDomEvent($0);},_onselectevent:function($0){if(!$0){$0=window.event;}var $1=qx.event.handler.EventHandler.getOriginalTargetObjectFromEvent($0);while($1){if($1.getSelectable()!=null){if(!$1.getSelectable()){qx.event.handler.EventHandler.stopDomEvent($0);}break;}$1=$1.getParent();}},_focused:false,_onwindowblur:function($0){if(!this._focused||this._ignoreWindowBlur){return;}this._focused=false;this.setCaptureWidget(null);if(qx.Class.isDefined($[166])){qx.ui.popup.PopupManager.getInstance().update();}if(qx.Class.isDefined($[152])){qx.ui.menu.Manager.getInstance().update();}if(qx.Class.isDefined($[235])){qx.event.handler.DragAndDropHandler.getInstance().globalCancelDrag();}qx.ui.core.ClientDocument.getInstance().createDispatchEvent($[283]);},_onwindowfocus:function($0){if(this._focused){return;}this._focused=true;qx.ui.core.ClientDocument.getInstance().createDispatchEvent($[1467]);},_onwindowresize:function($0){qx.ui.core.ClientDocument.getInstance().createDispatchEvent($[363]);}},destruct:function(){this.detachEvents();this._disposeObjectDeep($[1794],1);this._disposeFields($[962],$[1275],$[1458],$[976],$[1742],$[1685]);this._disposeFields($[1105],$[1202],$[1040],$[1584],$[766]);}});
75
qx.Class.define($[1577],{statics:{ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12,getDocument:function($0){if(this.isDocument($0)){return $0;}return $0.ownerDocument||$0.document||null;},getWindow:qx.core.Variant.select($[1],{"mshtml":function($0){return this.getDocument($0).parentWindow;},"default":function($0){return this.getDocument($0).defaultView;}}),getDocumentElement:function($0){return this.getDocument($0).documentElement;},getBodyElement:function($0){return this.getDocument($0).body;},isElement:function($0){return !!($0&&$0.nodeType===qx.dom.Node.ELEMENT);},isDocument:function($0){return !!($0&&$0.nodeType===qx.dom.Node.DOCUMENT);},isText:function($0){return !!($0&&$0.nodeType===qx.dom.Node.TEXT);},isWindow:function($0){return $0.document&&this.getWindow($0.document)==$0;},getText:function($0){if(!$0||!$0.nodeType){return null;}switch($0.nodeType){case 1:var $1,$2=[],$3=$0.childNodes,$4=$3.length;for($1=0;$1<$4;$1++){$2[$1]=this.getText($3[$1]);}return $2.join($[0]);case 2:return $0.nodeValue;break;case 3:return $0.nodeValue;break;}return null;}}});
60
qx.Class.define($[1576],{statics:{ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12,getDocument:function($0){if(this.isDocument($0)){return $0;}return $0.ownerDocument||$0.document||null;},getWindow:qx.core.Variant.select($[1],{"mshtml":function($0){return this.getDocument($0).parentWindow;},"default":function($0){return this.getDocument($0).defaultView;}}),getDocumentElement:function($0){return this.getDocument($0).documentElement;},getBodyElement:function($0){return this.getDocument($0).body;},isElement:function($0){return !!($0&&$0.nodeType===qx.dom.Node.ELEMENT);},isDocument:function($0){return !!($0&&$0.nodeType===qx.dom.Node.DOCUMENT);},isText:function($0){return !!($0&&$0.nodeType===qx.dom.Node.TEXT);},isWindow:function($0){return $0.document&&this.getWindow($0.document)==$0;},getText:function($0){if(!$0||!$0.nodeType){return null;}switch($0.nodeType){case 1:var $1,$2=[],$3=$0.childNodes,$4=$3.length;for($1=0;$1<$4;$1++){$2[$1]=this.getText($3[$1]);}return $2.join($[0]);case 2:return $0.nodeValue;break;case 3:return $0.nodeValue;break;}return null;}}});
76
qx.Class.define($[1361],{type:$[18],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this.__onkeypress=qx.lang.Function.bind(this._onkeypress,this);this.__onkeyupdown=qx.lang.Function.bind(this._onkeyupdown,this);},members:{_attachEvents:function(){var $0=qx.core.Variant.isSet($[1],$[21])?window:document.body;qx.html.EventRegistration.addEventListener($0,$[40],this.__onkeypress);qx.html.EventRegistration.addEventListener($0,$[88],this.__onkeyupdown);qx.html.EventRegistration.addEventListener($0,$[16],this.__onkeyupdown);},_detachEvents:function(){var $0=qx.core.Variant.isSet($[1],$[21])?window:document.body;qx.html.EventRegistration.removeEventListener($0,$[40],this.__onkeypress);qx.html.EventRegistration.removeEventListener($0,$[88],this.__onkeyupdown);qx.html.EventRegistration.removeEventListener($0,$[16],this.__onkeyupdown);},_onkeyupdown:qx.core.Variant.select($[1],{"mshtml":function($0){$0=window.event||$0;var $1=$0.keyCode;var $2=0;var $3=$0.type;if(!(this._lastUpDownType[$1]==$[16]&&$3==$[16])){this._idealKeyHandler($1,$2,$3,$0);}if($3==$[16]){if(this._isNonPrintableKeyCode($1)||$1==8||$1==9){this._idealKeyHandler($1,$2,$[40],$0);}}this._lastUpDownType[$1]=$3;},"gecko":function($0){var $1=this._keyCodeFix[$0.keyCode]||$0.keyCode;var $2=$0.charCode;var $3=$0.type;if(qx.core.Client.getInstance().runsOnWindows()){var $4=$1?this._keyCodeToIdentifier($1):this._charCodeToIdentifier($2);if(!(this._lastUpDownType[$4]==$[40]&&$3==$[16])){this._idealKeyHandler($1,$2,$3,$0);}this._lastUpDownType[$4]=$3;}else{this._idealKeyHandler($1,$2,$3,$0);}},"webkit":function($0){var $1=0;var $2=0;var $3=$0.type;if(qx.core.Client.getInstance().getVersion()<420){if(!this._lastCharCodeForType){this._lastCharCodeForType={};}var $4=this._lastCharCodeForType[$3]>63000;if($4){this._lastCharCodeForType[$3]=null;return;}this._lastCharCodeForType[$3]=$0.charCode;}if($3==$[88]||$3==$[16]){$1=this._charCode2KeyCode[$0.charCode]||$0.keyCode;}else{if(this._charCode2KeyCode[$0.charCode]){$1=this._charCode2KeyCode[$0.charCode];}else{$2=$0.charCode;}}this._idealKeyHandler($1,$2,$3,$0);},"opera":function($0){this._idealKeyHandler($0.keyCode,0,$0.type,$0);this._lastKeyCode=$0.keyCode;},"default":function(){throw new Error("Unsupported browser for key event handler!");}}),_onkeypress:qx.core.Variant.select($[1],{"mshtml":function($0){var $0=window.event||$0;if(this._charCode2KeyCode[$0.keyCode]){this._idealKeyHandler(this._charCode2KeyCode[$0.keyCode],0,$0.type,$0);}else{this._idealKeyHandler(0,$0.keyCode,$0.type,$0);}},"gecko":function($0){var $1=this._keyCodeFix[$0.keyCode]||$0.keyCode;var $2=$0.charCode;var $3=$0.type;if(qx.core.Client.getInstance().runsOnWindows()){var $4=$1?this._keyCodeToIdentifier($1):this._charCodeToIdentifier($2);if(!(this._lastUpDownType[$4]==$[40]&&$3==$[16])){this._idealKeyHandler($1,$2,$3,$0);}this._lastUpDownType[$4]=$3;}else{this._idealKeyHandler($1,$2,$3,$0);}},"webkit":function($0){var $1=0;var $2=0;var $3=$0.type;if(qx.core.Client.getInstance().getVersion()<420){if(!this._lastCharCodeForType){this._lastCharCodeForType={};}var $4=this._lastCharCodeForType[$3]>63000;if($4){this._lastCharCodeForType[$3]=null;return;}this._lastCharCodeForType[$3]=$0.charCode;}if($3==$[88]||$3==$[16]){$1=this._charCode2KeyCode[$0.charCode]||$0.keyCode;}else{if(this._charCode2KeyCode[$0.charCode]){$1=this._charCode2KeyCode[$0.charCode];}else{$2=$0.charCode;}}this._idealKeyHandler($1,$2,$3,$0);},"opera":function($0){var $1=$0.keyCode;var $2=$0.type;if($1!=this._lastKeyCode){this._idealKeyHandler(0,this._lastKeyCode,$2,$0);}else{if(this._keyCodeToIdentifierMap[$1]){this._idealKeyHandler($1,0,$2,$0);}else{this._idealKeyHandler(0,$1,$2,$0);}}this._lastKeyCode=$1;},"default":function(){throw new Error("Unsupported browser for key event handler!");}}),_specialCharCodeMap:{8:$[191],9:$[188],13:$[46],27:$[129],32:$[84]},_keyCodeToIdentifierMap:{16:$[142],17:$[125],18:$[136],20:$[408],224:$[223],37:$[60],38:$[69],39:$[64],40:$[76],33:$[87],34:$[99],35:$[162],36:$[150],45:$[203],46:$[169],112:$[315],113:$[331],114:$[345],115:$[362],116:$[384],117:$[403],118:$[419],119:$[433],120:$[439],121:$[371],122:$[355],123:$[339],144:$[127],44:$[237],145:$[266],19:$[248],91:$[286],93:$[279]},_numpadToCharCode:{96:$[41].charCodeAt(0),97:$[482].charCodeAt(0),98:$[418].charCodeAt(0),99:$[432].charCodeAt(0),100:$[385].charCodeAt(0),101:$[402].charCodeAt(0),102:$[348].charCodeAt(0),103:$[363].charCodeAt(0),104:$[346].charCodeAt(0),105:$[172].charCodeAt(0),106:$[140].charCodeAt(0),107:$[246].charCodeAt(0),109:$[137].charCodeAt(0),110:$[101].charCodeAt(0),111:$[135].charCodeAt(0)},_charCodeA:$[174].charCodeAt(0),_charCodeZ:$[497].charCodeAt(0),_charCode0:$[41].charCodeAt(0),_charCode9:$[172].charCodeAt(0),_isNonPrintableKeyCode:function($0){return this._keyCodeToIdentifierMap[$0]?true:false;},_isIdentifiableKeyCode:function($0){if($0>=this._charCodeA&&$0<=this._charCodeZ){return true;}if($0>=this._charCode0&&$0<=this._charCode9){return true;}if(this._specialCharCodeMap[$0]){return true;}if(this._numpadToCharCode[$0]){return true;}if(this._isNonPrintableKeyCode($0)){return true;}return false;},isValidKeyIdentifier:function($0){if(this._identifierToKeyCodeMap[$0]){return true;}if($0.length!=1){return false;}if($0>=$[41]&&$0<=$[172]){return true;}if($0>=$[174]&&$0<=$[497]){return true;}switch($0){case $[246]:case $[137]:case $[140]:case $[135]:return true;default:return false;}},_keyCodeToIdentifier:function($0){if(this._isIdentifiableKeyCode($0)){var $1=this._numpadToCharCode[$0];if($1){return String.fromCharCode($1);}return (this._keyCodeToIdentifierMap[$0]||this._specialCharCodeMap[$0]||String.fromCharCode($0));}else{return $[212];}},_charCodeToIdentifier:function($0){return this._specialCharCodeMap[$0]||String.fromCharCode($0).toUpperCase();},_identifierToKeyCode:function($0){return this._identifierToKeyCodeMap[$0]||$0.charCodeAt(0);},_idealKeyHandler:function($0,$1,$2,$3){if(!$0&&!$1){return;}var $4;if($0){$4=this._keyCodeToIdentifier($0);qx.event.handler.EventHandler.getInstance()._onkeyevent_post($3,$2,$0,$1,$4);}else{$4=this._charCodeToIdentifier($1);qx.event.handler.EventHandler.getInstance()._onkeyevent_post($3,$[40],$0,$1,$4);qx.event.handler.EventHandler.getInstance()._onkeyevent_post($3,$[300],$0,$1,$4);}}},defer:function($0,$1,$2){if(!$1._identifierToKeyCodeMap){$1._identifierToKeyCodeMap={};for(var $3 in $1._keyCodeToIdentifierMap){$1._identifierToKeyCodeMap[$1._keyCodeToIdentifierMap[$3]]=parseInt($3);}for(var $3 in $1._specialCharCodeMap){$1._identifierToKeyCodeMap[$1._specialCharCodeMap[$3]]=parseInt($3);}}if(qx.core.Variant.isSet($[1],$[13])){$1._lastUpDownType={};$1._charCode2KeyCode={13:13,27:27};}else if(qx.core.Variant.isSet($[1],$[21])){$1._lastUpDownType={};$1._keyCodeFix={12:$1._identifierToKeyCode($[127])};}else if(qx.core.Variant.isSet($[1],$[147])){$1._charCode2KeyCode={63289:$1._identifierToKeyCode($[127]),63276:$1._identifierToKeyCode($[87]),63277:$1._identifierToKeyCode($[99]),63275:$1._identifierToKeyCode($[162]),63273:$1._identifierToKeyCode($[150]),63234:$1._identifierToKeyCode($[60]),63232:$1._identifierToKeyCode($[69]),63235:$1._identifierToKeyCode($[64]),63233:$1._identifierToKeyCode($[76]),63272:$1._identifierToKeyCode($[169]),63302:$1._identifierToKeyCode($[203]),63236:$1._identifierToKeyCode($[315]),63237:$1._identifierToKeyCode($[331]),63238:$1._identifierToKeyCode($[345]),63239:$1._identifierToKeyCode($[362]),63240:$1._identifierToKeyCode($[384]),63241:$1._identifierToKeyCode($[403]),63242:$1._identifierToKeyCode($[419]),63243:$1._identifierToKeyCode($[433]),63244:$1._identifierToKeyCode($[439]),63245:$1._identifierToKeyCode($[371]),63246:$1._identifierToKeyCode($[355]),63247:$1._identifierToKeyCode($[339]),63248:$1._identifierToKeyCode($[237]),3:$1._identifierToKeyCode($[46]),12:$1._identifierToKeyCode($[127]),13:$1._identifierToKeyCode($[46])};}else if(qx.core.Variant.isSet($[1],$[154])){$1._lastKeyCode=null;}},destruct:function(){this._detachEvents();this._disposeFields($[890],$[1196]);}});
61
qx.Class.define($[1362],{type:$[18],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this.__onkeypress=qx.lang.Function.bind(this._onkeypress,this);this.__onkeyupdown=qx.lang.Function.bind(this._onkeyupdown,this);},members:{_attachEvents:function(){var $0=qx.core.Variant.isSet($[1],$[21])?window:document.body;qx.html.EventRegistration.addEventListener($0,$[40],this.__onkeypress);qx.html.EventRegistration.addEventListener($0,$[84],this.__onkeyupdown);qx.html.EventRegistration.addEventListener($0,$[16],this.__onkeyupdown);},_detachEvents:function(){var $0=qx.core.Variant.isSet($[1],$[21])?window:document.body;qx.html.EventRegistration.removeEventListener($0,$[40],this.__onkeypress);qx.html.EventRegistration.removeEventListener($0,$[84],this.__onkeyupdown);qx.html.EventRegistration.removeEventListener($0,$[16],this.__onkeyupdown);},_onkeyupdown:qx.core.Variant.select($[1],{"mshtml":function($0){$0=window.event||$0;var $1=$0.keyCode;var $2=0;var $3=$0.type;this.debug("native - type: "+$3+" keyCode: "+$1+" charCode: "+$2);if(!(this._lastUpDownType[$1]==$[16]&&$3==$[16])){this._idealKeyHandler($1,$2,$3,$0);}if($3==$[16]){if(this._isNonPrintableKeyCode($1)||$1==8||$1==9){this._idealKeyHandler($1,$2,$[40],$0);}}this._lastUpDownType[$1]=$3;},"gecko":function($0){var $1=this._keyCodeFix[$0.keyCode]||$0.keyCode;var $2=$0.charCode;var $3=$0.type;this.debug("native - type: "+$3+" keyCode: "+$1+" charCode: "+$2);if(qx.core.Client.getInstance().runsOnWindows()){var $4=$1?this._keyCodeToIdentifier($1):this._charCodeToIdentifier($2);if(!(this._lastUpDownType[$4]==$[40]&&$3==$[16])){this._idealKeyHandler($1,$2,$3,$0);}this._lastUpDownType[$4]=$3;}else{this._idealKeyHandler($1,$2,$3,$0);}},"webkit":function($0){var $1=0;var $2=0;var $3=$0.type;this.debug("native - type: "+$3+" keyCode: "+$1+" charCode: "+$2);if(qx.core.Client.getInstance().getVersion()<420){if(!this._lastCharCodeForType){this._lastCharCodeForType={};}var $4=this._lastCharCodeForType[$3]>63000;if($4){this._lastCharCodeForType[$3]=null;return;}this._lastCharCodeForType[$3]=$0.charCode;}if($3==$[84]||$3==$[16]){$1=this._charCode2KeyCode[$0.charCode]||$0.keyCode;}else{if(this._charCode2KeyCode[$0.charCode]){$1=this._charCode2KeyCode[$0.charCode];}else{$2=$0.charCode;}}this._idealKeyHandler($1,$2,$3,$0);},"opera":function($0){this._idealKeyHandler($0.keyCode,0,$0.type,$0);this._lastKeyCode=$0.keyCode;},"default":function(){throw new Error("Unsupported browser for key event handler!");}}),_onkeypress:qx.core.Variant.select($[1],{"mshtml":function($0){var $0=window.event||$0;if(this._charCode2KeyCode[$0.keyCode]){this._idealKeyHandler(this._charCode2KeyCode[$0.keyCode],0,$0.type,$0);}else{this._idealKeyHandler(0,$0.keyCode,$0.type,$0);}},"gecko":function($0){var $1=this._keyCodeFix[$0.keyCode]||$0.keyCode;var $2=$0.charCode;var $3=$0.type;this.debug("native - type: "+$3+" keyCode: "+$1+" charCode: "+$2);if(qx.core.Client.getInstance().runsOnWindows()){var $4=$1?this._keyCodeToIdentifier($1):this._charCodeToIdentifier($2);if(!(this._lastUpDownType[$4]==$[40]&&$3==$[16])){this._idealKeyHandler($1,$2,$3,$0);}this._lastUpDownType[$4]=$3;}else{this._idealKeyHandler($1,$2,$3,$0);}},"webkit":function($0){var $1=0;var $2=0;var $3=$0.type;if(qx.core.Client.getInstance().getVersion()<420){if(!this._lastCharCodeForType){this._lastCharCodeForType={};}var $4=this._lastCharCodeForType[$3]>63000;if($4){this._lastCharCodeForType[$3]=null;return;}this._lastCharCodeForType[$3]=$0.charCode;}if($3==$[84]||$3==$[16]){$1=this._charCode2KeyCode[$0.charCode]||$0.keyCode;}else{if(this._charCode2KeyCode[$0.charCode]){$1=this._charCode2KeyCode[$0.charCode];}else{$2=$0.charCode;}}this._idealKeyHandler($1,$2,$3,$0);},"opera":function($0){var $1=$0.keyCode;var $2=$0.type;if($1!=this._lastKeyCode){this._idealKeyHandler(0,this._lastKeyCode,$2,$0);}else{if(this._keyCodeToIdentifierMap[$1]){this._idealKeyHandler($1,0,$2,$0);}else{this._idealKeyHandler(0,$1,$2,$0);}}this._lastKeyCode=$1;},"default":function(){throw new Error("Unsupported browser for key event handler!");}}),_specialCharCodeMap:{8:$[191],9:$[188],13:$[46],27:$[129],32:$[85]},_keyCodeToIdentifierMap:{16:$[142],17:$[125],18:$[136],20:$[409],224:$[223],37:$[60],38:$[69],39:$[64],40:$[76],33:$[88],34:$[99],35:$[162],36:$[150],45:$[203],46:$[169],112:$[315],113:$[331],114:$[344],115:$[361],116:$[384],117:$[404],118:$[420],119:$[434],120:$[440],121:$[370],122:$[354],123:$[491],144:$[127],44:$[237],145:$[266],19:$[248],91:$[286],93:$[279]},_numpadToCharCode:{96:$[41].charCodeAt(0),97:$[482].charCodeAt(0),98:$[419].charCodeAt(0),99:$[433].charCodeAt(0),100:$[385].charCodeAt(0),101:$[403].charCodeAt(0),102:$[347].charCodeAt(0),103:$[362].charCodeAt(0),104:$[345].charCodeAt(0),105:$[172].charCodeAt(0),106:$[140].charCodeAt(0),107:$[246].charCodeAt(0),109:$[137].charCodeAt(0),110:$[101].charCodeAt(0),111:$[135].charCodeAt(0)},_charCodeA:$[174].charCodeAt(0),_charCodeZ:$[498].charCodeAt(0),_charCode0:$[41].charCodeAt(0),_charCode9:$[172].charCodeAt(0),_isNonPrintableKeyCode:function($0){return this._keyCodeToIdentifierMap[$0]?true:false;},_isIdentifiableKeyCode:function($0){if($0>=this._charCodeA&&$0<=this._charCodeZ){return true;}if($0>=this._charCode0&&$0<=this._charCode9){return true;}if(this._specialCharCodeMap[$0]){return true;}if(this._numpadToCharCode[$0]){return true;}if(this._isNonPrintableKeyCode($0)){return true;}return false;},isValidKeyIdentifier:function($0){if(this._identifierToKeyCodeMap[$0]){return true;}if($0.length!=1){return false;}if($0>=$[41]&&$0<=$[172]){return true;}if($0>=$[174]&&$0<=$[498]){return true;}switch($0){case $[246]:case $[137]:case $[140]:case $[135]:return true;default:return false;}},_keyCodeToIdentifier:function($0){if(this._isIdentifiableKeyCode($0)){var $1=this._numpadToCharCode[$0];if($1){return String.fromCharCode($1);}return (this._keyCodeToIdentifierMap[$0]||this._specialCharCodeMap[$0]||String.fromCharCode($0));}else{return $[212];}},_charCodeToIdentifier:function($0){return this._specialCharCodeMap[$0]||String.fromCharCode($0).toUpperCase();},_identifierToKeyCode:function($0){return this._identifierToKeyCodeMap[$0]||$0.charCodeAt(0);},_idealKeyHandler:function($0,$1,$2,$3){if(!$0&&!$1){return;}var $4;if($0){$4=this._keyCodeToIdentifier($0);qx.event.handler.EventHandler.getInstance()._onkeyevent_post($3,$2,$0,$1,$4);}else{$4=this._charCodeToIdentifier($1);qx.event.handler.EventHandler.getInstance()._onkeyevent_post($3,$[40],$0,$1,$4);qx.event.handler.EventHandler.getInstance()._onkeyevent_post($3,$[300],$0,$1,$4);}}},defer:function($0,$1,$2){if(!$1._identifierToKeyCodeMap){$1._identifierToKeyCodeMap={};for(var $3 in $1._keyCodeToIdentifierMap){$1._identifierToKeyCodeMap[$1._keyCodeToIdentifierMap[$3]]=parseInt($3);}for(var $3 in $1._specialCharCodeMap){$1._identifierToKeyCodeMap[$1._specialCharCodeMap[$3]]=parseInt($3);}}if(qx.core.Variant.isSet($[1],$[13])){$1._lastUpDownType={};$1._charCode2KeyCode={13:13,27:27};}else if(qx.core.Variant.isSet($[1],$[21])){$1._lastUpDownType={};$1._keyCodeFix={12:$1._identifierToKeyCode($[127])};}else if(qx.core.Variant.isSet($[1],$[147])){$1._charCode2KeyCode={63289:$1._identifierToKeyCode($[127]),63276:$1._identifierToKeyCode($[88]),63277:$1._identifierToKeyCode($[99]),63275:$1._identifierToKeyCode($[162]),63273:$1._identifierToKeyCode($[150]),63234:$1._identifierToKeyCode($[60]),63232:$1._identifierToKeyCode($[69]),63235:$1._identifierToKeyCode($[64]),63233:$1._identifierToKeyCode($[76]),63272:$1._identifierToKeyCode($[169]),63302:$1._identifierToKeyCode($[203]),63236:$1._identifierToKeyCode($[315]),63237:$1._identifierToKeyCode($[331]),63238:$1._identifierToKeyCode($[344]),63239:$1._identifierToKeyCode($[361]),63240:$1._identifierToKeyCode($[384]),63241:$1._identifierToKeyCode($[404]),63242:$1._identifierToKeyCode($[420]),63243:$1._identifierToKeyCode($[434]),63244:$1._identifierToKeyCode($[440]),63245:$1._identifierToKeyCode($[370]),63246:$1._identifierToKeyCode($[354]),63247:$1._identifierToKeyCode($[491]),63248:$1._identifierToKeyCode($[237]),3:$1._identifierToKeyCode($[46]),12:$1._identifierToKeyCode($[127]),13:$1._identifierToKeyCode($[46])};}else if(qx.core.Variant.isSet($[1],$[154])){$1._lastKeyCode=null;}},destruct:function(){this._detachEvents();this._disposeFields($[890],$[1195]);}});
77
qx.Class.define($[1274],{extend:qx.event.type.Event,construct:function($0,$1,$2,$3,$4){arguments.callee.base.call(this,$0);this.setDomEvent($1);this.setDomTarget($2);this.setTarget($3);this.setOriginalTarget($4);},statics:{SHIFT_MASK:1,CTRL_MASK:2,ALT_MASK:4,META_MASK:8},properties:{bubbles:{_fast:true,defaultValue:true,noCompute:true},propagationStopped:{_fast:true,defaultValue:false,noCompute:true},domEvent:{_fast:true,setOnlyOnce:true,noCompute:true},domTarget:{_fast:true,setOnlyOnce:true,noCompute:true},modifiers:{_cached:true,defaultValue:null}},members:{_computeModifiers:function(){var $0=0;var $1=this.getDomEvent();if($1.shiftKey)$0|=qx.event.type.DomEvent.SHIFT_MASK;if($1.ctrlKey)$0|=qx.event.type.DomEvent.CTRL_MASK;if($1.altKey)$0|=qx.event.type.DomEvent.ALT_MASK;if($1.metaKey)$0|=qx.event.type.DomEvent.META_MASK;return $0;},isCtrlPressed:function(){return this.getDomEvent().ctrlKey;},isShiftPressed:function(){return this.getDomEvent().shiftKey;},isAltPressed:function(){return this.getDomEvent().altKey;},isMetaPressed:function(){return this.getDomEvent().metaKey;},isCtrlOrCommandPressed:function(){if(qx.core.Client.getInstance().runsOnMacintosh()){return this.getDomEvent().metaKey;}else{return this.getDomEvent().ctrlKey;}},setDefaultPrevented:qx.core.Variant.select($[1],{"mshtml":function($0){if(!$0){return this.error("It is not possible to set preventDefault to false if it was true before!","setDefaultPrevented");}this.getDomEvent().returnValue=false;arguments.callee.base.call(this,$0);},"default":function($0){if(!$0){return this.error("It is not possible to set preventDefault to false if it was true before!","setDefaultPrevented");}this.getDomEvent().preventDefault();this.getDomEvent().returnValue=false;arguments.callee.base.call(this,$0);}})},destruct:function(){this._disposeFields($[966],$[1454]);}});
62
qx.Class.define($[1273],{extend:qx.event.type.Event,construct:function($0,$1,$2,$3,$4){arguments.callee.base.call(this,$0);this.setDomEvent($1);this.setDomTarget($2);this.setTarget($3);this.setOriginalTarget($4);},statics:{SHIFT_MASK:1,CTRL_MASK:2,ALT_MASK:4,META_MASK:8},properties:{bubbles:{_fast:true,defaultValue:true,noCompute:true},propagationStopped:{_fast:true,defaultValue:false,noCompute:true},domEvent:{_fast:true,setOnlyOnce:true,noCompute:true},domTarget:{_fast:true,setOnlyOnce:true,noCompute:true},modifiers:{_cached:true,defaultValue:null}},members:{_computeModifiers:function(){var $0=0;var $1=this.getDomEvent();if($1.shiftKey)$0|=qx.event.type.DomEvent.SHIFT_MASK;if($1.ctrlKey)$0|=qx.event.type.DomEvent.CTRL_MASK;if($1.altKey)$0|=qx.event.type.DomEvent.ALT_MASK;if($1.metaKey)$0|=qx.event.type.DomEvent.META_MASK;return $0;},isCtrlPressed:function(){return this.getDomEvent().ctrlKey;},isShiftPressed:function(){return this.getDomEvent().shiftKey;},isAltPressed:function(){return this.getDomEvent().altKey;},isMetaPressed:function(){return this.getDomEvent().metaKey;},isCtrlOrCommandPressed:function(){if(qx.core.Client.getInstance().runsOnMacintosh()){return this.getDomEvent().metaKey;}else{return this.getDomEvent().ctrlKey;}},setDefaultPrevented:qx.core.Variant.select($[1],{"mshtml":function($0){if(!$0){return this.error("It is not possible to set preventDefault to false if it was true before!","setDefaultPrevented");}this.getDomEvent().returnValue=false;arguments.callee.base.call(this,$0);},"default":function($0){if(!$0){return this.error("It is not possible to set preventDefault to false if it was true before!","setDefaultPrevented");}this.getDomEvent().preventDefault();this.getDomEvent().returnValue=false;arguments.callee.base.call(this,$0);}})},destruct:function(){this._disposeFields($[965],$[1454]);}});
78
qx.Class.define($[186],{extend:qx.event.type.DomEvent,construct:function($0,$1,$2,$3,$4,$5,$6,$7){arguments.callee.base.call(this,$0,$1,$2,$3,$4);this._keyCode=$5;this.setCharCode($6);this.setKeyIdentifier($7);},statics:{keys:{esc:27,enter:13,tab:9,space:32,up:38,down:40,left:37,right:39,shift:16,ctrl:17,alt:18,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,print:124,del:46,backspace:8,insert:45,home:36,end:35,pageup:33,pagedown:34,numlock:144,numpad_0:96,numpad_1:97,numpad_2:98,numpad_3:99,numpad_4:100,numpad_5:101,numpad_6:102,numpad_7:103,numpad_8:104,numpad_9:105,numpad_divide:111,numpad_multiply:106,numpad_minus:109,numpad_plus:107},codes:{}},properties:{charCode:{_fast:true,setOnlyOnce:true,noCompute:true},keyIdentifier:{_fast:true,setOnlyOnce:true,noCompute:true}},members:{getKeyCode:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[893]);return this._keyCode;}},defer:function($0){for(var $1 in $0.keys){$0.codes[$0.keys[$1]]=$1;}}});
63
qx.Class.define($[186],{extend:qx.event.type.DomEvent,construct:function($0,$1,$2,$3,$4,$5,$6,$7){arguments.callee.base.call(this,$0,$1,$2,$3,$4);this._keyCode=$5;this.setCharCode($6);this.setKeyIdentifier($7);},statics:{keys:{esc:27,enter:13,tab:9,space:32,up:38,down:40,left:37,right:39,shift:16,ctrl:17,alt:18,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,print:124,del:46,backspace:8,insert:45,home:36,end:35,pageup:33,pagedown:34,numlock:144,numpad_0:96,numpad_1:97,numpad_2:98,numpad_3:99,numpad_4:100,numpad_5:101,numpad_6:102,numpad_7:103,numpad_8:104,numpad_9:105,numpad_divide:111,numpad_multiply:106,numpad_minus:109,numpad_plus:107},codes:{}},properties:{charCode:{_fast:true,setOnlyOnce:true,noCompute:true},keyIdentifier:{_fast:true,setOnlyOnce:true,noCompute:true}},members:{getKeyCode:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[893]);return this._keyCode;}},defer:function($0){for(var $1 in $0.keys){$0.codes[$0.keys[$1]]=$1;}}});
79
qx.Class.define($[86],{extend:qx.event.type.DomEvent,construct:function($0,$1,$2,$3,$4,$5){arguments.callee.base.call(this,$0,$1,$2,$3,$4);if($5){this.setRelatedTarget($5);}},statics:{C_BUTTON_LEFT:"left",C_BUTTON_MIDDLE:"middle",C_BUTTON_RIGHT:"right",C_BUTTON_NONE:"none",_screenX:0,_screenY:0,_clientX:0,_clientY:0,_pageX:0,_pageY:0,_button:null,buttons:qx.core.Variant.select($[1],{"mshtml":{left:1,right:2,middle:4},"default":{left:0,right:2,middle:1}}),storeEventState:function($0){this._screenX=$0.getScreenX();this._screenY=$0.getScreenY();this._clientX=$0.getClientX();this._clientY=$0.getClientY();this._pageX=$0.getPageX();this._pageY=$0.getPageY();this._button=$0.getButton();},getScreenX:function(){return this._screenX;},getScreenY:function(){return this._screenY;},getClientX:function(){return this._clientX;},getClientY:function(){return this._clientY;},getPageX:function(){return this._pageX;},getPageY:function(){return this._pageY;},getButton:function(){return this._button;}},properties:{button:{_fast:true,readOnly:true},wheelDelta:{_fast:true,readOnly:true}},members:{getPageX:qx.core.Variant.select($[1],{"mshtml":function(){return this.getDomEvent().clientX+qx.bom.Viewport.getScrollLeft(window);},"default":function(){return this.getDomEvent().pageX;}}),getPageY:qx.core.Variant.select($[1],{"mshtml":function(){return this.getDomEvent().clientY+qx.bom.Viewport.getScrollTop(window);},"default":function(){return this.getDomEvent().pageY;}}),getClientX:function(){return this.getDomEvent().clientX;},getClientY:function(){return this.getDomEvent().clientY;},getScreenX:function(){return this.getDomEvent().screenX;},getScreenY:function(){return this.getDomEvent().screenY;},isLeftButtonPressed:qx.core.Variant.select($[1],{"mshtml":function(){if(this.getType()==$[53]){return true;}else{return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_LEFT;}},"default":function(){return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_LEFT;}}),isMiddleButtonPressed:function(){return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_MIDDLE;},isRightButtonPressed:function(){return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_RIGHT;},__buttons:qx.core.Variant.select($[1],{"mshtml":{1:$[11],2:$[9],4:$[62]},"default":{0:$[11],2:$[9],1:$[62]}}),_computeButton:function(){switch(this.getDomEvent().type){case $[53]:case $[104]:return $[11];case $[219]:return $[9];default:return this.__buttons[this.getDomEvent().button]||$[7];}},_computeWheelDelta:qx.core.Variant.select($[1],{"default":function(){return this.getDomEvent().wheelDelta/120;},"gecko":function(){return -(this.getDomEvent().detail/3);}})}});
64
qx.Class.define($[87],{extend:qx.event.type.DomEvent,construct:function($0,$1,$2,$3,$4,$5){arguments.callee.base.call(this,$0,$1,$2,$3,$4);if($5){this.setRelatedTarget($5);}},statics:{C_BUTTON_LEFT:"left",C_BUTTON_MIDDLE:"middle",C_BUTTON_RIGHT:"right",C_BUTTON_NONE:"none",_screenX:0,_screenY:0,_clientX:0,_clientY:0,_pageX:0,_pageY:0,_button:null,buttons:qx.core.Variant.select($[1],{"mshtml":{left:1,right:2,middle:4},"default":{left:0,right:2,middle:1}}),storeEventState:function($0){this._screenX=$0.getScreenX();this._screenY=$0.getScreenY();this._clientX=$0.getClientX();this._clientY=$0.getClientY();this._pageX=$0.getPageX();this._pageY=$0.getPageY();this._button=$0.getButton();},getScreenX:function(){return this._screenX;},getScreenY:function(){return this._screenY;},getClientX:function(){return this._clientX;},getClientY:function(){return this._clientY;},getPageX:function(){return this._pageX;},getPageY:function(){return this._pageY;},getButton:function(){return this._button;}},properties:{button:{_fast:true,readOnly:true},wheelDelta:{_fast:true,readOnly:true}},members:{getPageX:qx.core.Variant.select($[1],{"mshtml":function(){return this.getDomEvent().clientX+qx.bom.Viewport.getScrollLeft(window);},"default":function(){return this.getDomEvent().pageX;}}),getPageY:qx.core.Variant.select($[1],{"mshtml":function(){return this.getDomEvent().clientY+qx.bom.Viewport.getScrollTop(window);},"default":function(){return this.getDomEvent().pageY;}}),getClientX:function(){return this.getDomEvent().clientX;},getClientY:function(){return this.getDomEvent().clientY;},getScreenX:function(){return this.getDomEvent().screenX;},getScreenY:function(){return this.getDomEvent().screenY;},isLeftButtonPressed:qx.core.Variant.select($[1],{"mshtml":function(){if(this.getType()==$[53]){return true;}else{return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_LEFT;}},"default":function(){return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_LEFT;}}),isMiddleButtonPressed:function(){return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_MIDDLE;},isRightButtonPressed:function(){return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_RIGHT;},__buttons:qx.core.Variant.select($[1],{"mshtml":{1:$[11],2:$[9],4:$[62]},"default":{0:$[11],2:$[9],1:$[62]}}),_computeButton:function(){switch(this.getDomEvent().type){case $[53]:case $[104]:return $[11];case $[219]:return $[9];default:return this.__buttons[this.getDomEvent().button]||$[7];}},_computeWheelDelta:qx.core.Variant.select($[1],{"default":function(){return this.getDomEvent().wheelDelta/120;},"gecko":function(){return -(this.getDomEvent().detail/3);}})}});
65
qx.Class.define($[1061],{extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this._objects={};},members:{add:function($0){if(this.getDisposed()){return;}this._objects[$0.toHashCode()]=$0;},remove:function($0){if(this.getDisposed()){return false;}delete this._objects[$0.toHashCode()];},has:function($0){return this._objects[$0.toHashCode()]!=null;},get:function($0){return this._objects[$0.toHashCode()];},getAll:function(){return this._objects;},enableAll:function(){for(var $0 in this._objects){this._objects[$0].setEnabled(true);}},disableAll:function(){for(var $0 in this._objects){this._objects[$0].setEnabled(false);}}},destruct:function(){this._disposeObjectDeep($[497]);}});
80
qx.Class.define($[262],{type:$[18],extend:qx.util.manager.Object,construct:function(){arguments.callee.base.call(this);this._blocked={};},members:{handleMouseDown:function($0){var $1=this._blockData=qx.lang.Object.copy(this.getAll());for(var $2 in $1){$1[$2].block();}},handleMouseUp:function($0){var $1=this._blockData;for(var $2 in $1){$1[$2].release();}}}});
66
qx.Class.define($[262],{type:$[18],extend:qx.util.manager.Object,construct:function(){arguments.callee.base.call(this);this._blocked={};},members:{handleMouseDown:function($0){var $1=this._blockData=qx.lang.Object.copy(this.getAll());for(var $2 in $1){$1[$2].block();}},handleMouseUp:function($0){var $1=this._blockData;for(var $2 in $1){$1[$2].release();}}}});
81
qx.Class.define($[1339],{extend:qx.ui.core.Parent,construct:function(){arguments.callee.base.call(this);},members:{_createLayoutImpl:function(){return new qx.ui.layout.impl.CanvasLayoutImpl(this);}}});
67
qx.Class.define($[1339],{extend:qx.ui.core.Parent,construct:function(){arguments.callee.base.call(this);},members:{_createLayoutImpl:function(){return new qx.ui.layout.impl.CanvasLayoutImpl(this);}}});
82
qx.Class.define($[794],{extend:qx.core.Object,construct:function($0){arguments.callee.base.call(this);this._widget=$0;},members:{getWidget:function(){return this._widget;},computeChildBoxWidth:function($0){return $0.getWidthValue()||$0._computeBoxWidthFallback();},computeChildBoxHeight:function($0){return $0.getHeightValue()||$0._computeBoxHeightFallback();},computeChildNeededWidth:function($0){var $1=$0._computedMinWidthTypePercent?null:$0.getMinWidthValue();var $2=$0._computedMaxWidthTypePercent?null:$0.getMaxWidthValue();var $3=($0._computedWidthTypePercent||$0._computedWidthTypeFlex?null:$0.getWidthValue())||$0.getPreferredBoxWidth()||0;return qx.lang.Number.limit($3,$1,$2)+$0.getMarginLeft()+$0.getMarginRight();},computeChildNeededHeight:function($0){var $1=$0._computedMinHeightTypePercent?null:$0.getMinHeightValue();var $2=$0._computedMaxHeightTypePercent?null:$0.getMaxHeightValue();var $3=($0._computedHeightTypePercent||$0._computedHeightTypeFlex?null:$0.getHeightValue())||$0.getPreferredBoxHeight()||0;return qx.lang.Number.limit($3,$1,$2)+$0.getMarginTop()+$0.getMarginBottom();},computeChildrenNeededWidth_max:function(){for(var $0=0,$1=this.getWidget().getVisibleChildren(),$2=$1.length,$3=0;$0<$2;$0++){$3=Math.max($3,$1[$0].getNeededWidth());}return $3;},computeChildrenNeededHeight_max:function(){for(var $0=0,$1=this.getWidget().getVisibleChildren(),$2=$1.length,$3=0;$0<$2;$0++){$3=Math.max($3,$1[$0].getNeededHeight());}return $3;},computeChildrenNeededWidth_sum:function(){for(var $0=0,$1=this.getWidget().getVisibleChildren(),$2=$1.length,$3=0;$0<$2;$0++){$3+=$1[$0].getNeededWidth();}return $3;},computeChildrenNeededHeight_sum:function(){for(var $0=0,$1=this.getWidget().getVisibleChildren(),$2=$1.length,$3=0;$0<$2;$0++){$3+=$1[$0].getNeededHeight();}return $3;},computeChildrenNeededWidth:null,computeChildrenNeededHeight:null,updateSelfOnChildOuterWidthChange:function($0){},updateSelfOnChildOuterHeightChange:function($0){},updateChildOnInnerWidthChange:function($0){},updateChildOnInnerHeightChange:function($0){},updateSelfOnJobQueueFlush:function($0){},updateChildrenOnJobQueueFlush:function($0){},updateChildrenOnAddChild:function($0,$1){},updateChildrenOnRemoveChild:function($0,$1){},updateChildrenOnMoveChild:function($0,$1,$2){},flushChildrenQueue:function($0){var $1=this.getWidget();for(var $2 in $0){$1._layoutChild($0[$2]);}},layoutChild:function($0,$1){},layoutChild_sizeLimitX:qx.core.Variant.select($[1],{"mshtml":qx.lang.Function.returnTrue,"default":function($0,$1){if($1.minWidth){$0._computedMinWidthTypeNull?$0._resetRuntimeMinWidth():$0._renderRuntimeMinWidth($0.getMinWidthValue());}else if($1.initial&&!$0._computedMinWidthTypeNull){$0._renderRuntimeMinWidth($0.getMinWidthValue());}if($1.maxWidth){$0._computedMaxWidthTypeNull?$0._resetRuntimeMaxWidth():$0._renderRuntimeMaxWidth($0.getMaxWidthValue());}else if($1.initial&&!$0._computedMaxWidthTypeNull){$0._renderRuntimeMaxWidth($0.getMaxWidthValue());}}}),layoutChild_sizeLimitY:qx.core.Variant.select($[1],{"mshtml":qx.lang.Function.returnTrue,"default":function($0,$1){if($1.minHeight){$0._computedMinHeightTypeNull?$0._resetRuntimeMinHeight():$0._renderRuntimeMinHeight($0.getMinHeightValue());}else if($1.initial&&!$0._computedMinHeightTypeNull){$0._renderRuntimeMinHeight($0.getMinHeightValue());}if($1.maxHeight){$0._computedMaxHeightTypeNull?$0._resetRuntimeMaxHeight():$0._renderRuntimeMaxHeight($0.getMaxHeightValue());}else if($1.initial&&!$0._computedMaxHeightTypeNull){$0._renderRuntimeMaxHeight($0.getMaxHeightValue());}}}),layoutChild_marginX:function($0,$1){if($1.marginLeft||$1.initial){var $2=$0.getMarginLeft();$2!=null?$0._renderRuntimeMarginLeft($2):$0._resetRuntimeMarginLeft();}if($1.marginRight||$1.initial){var $3=$0.getMarginRight();$3!=null?$0._renderRuntimeMarginRight($3):$0._resetRuntimeMarginRight();}},layoutChild_marginY:function($0,$1){if($1.marginTop||$1.initial){var $2=$0.getMarginTop();$2!=null?$0._renderRuntimeMarginTop($2):$0._resetRuntimeMarginTop();}if($1.marginBottom||$1.initial){var $3=$0.getMarginBottom();$3!=null?$0._renderRuntimeMarginBottom($3):$0._resetRuntimeMarginBottom();}},layoutChild_sizeX_essentialWrapper:function($0,$1){return $0._isWidthEssential()?this.layoutChild_sizeX($0,$1):$0._resetRuntimeWidth();},layoutChild_sizeY_essentialWrapper:function($0,$1){return $0._isHeightEssential()?this.layoutChild_sizeY($0,$1):$0._resetRuntimeHeight();}},defer:function($0,$1){$1.computeChildrenNeededWidth=$1.computeChildrenNeededWidth_max;$1.computeChildrenNeededHeight=$1.computeChildrenNeededHeight_max;},destruct:function(){this._disposeFields($[1187]);}});
68
qx.Class.define($[795],{extend:qx.core.Object,construct:function($0){arguments.callee.base.call(this);this._widget=$0;},members:{getWidget:function(){return this._widget;},computeChildBoxWidth:function($0){return $0.getWidthValue()||$0._computeBoxWidthFallback();},computeChildBoxHeight:function($0){return $0.getHeightValue()||$0._computeBoxHeightFallback();},computeChildNeededWidth:function($0){var $1=$0._computedMinWidthTypePercent?null:$0.getMinWidthValue();var $2=$0._computedMaxWidthTypePercent?null:$0.getMaxWidthValue();var $3=($0._computedWidthTypePercent||$0._computedWidthTypeFlex?null:$0.getWidthValue())||$0.getPreferredBoxWidth()||0;return qx.lang.Number.limit($3,$1,$2)+$0.getMarginLeft()+$0.getMarginRight();},computeChildNeededHeight:function($0){var $1=$0._computedMinHeightTypePercent?null:$0.getMinHeightValue();var $2=$0._computedMaxHeightTypePercent?null:$0.getMaxHeightValue();var $3=($0._computedHeightTypePercent||$0._computedHeightTypeFlex?null:$0.getHeightValue())||$0.getPreferredBoxHeight()||0;return qx.lang.Number.limit($3,$1,$2)+$0.getMarginTop()+$0.getMarginBottom();},computeChildrenNeededWidth_max:function(){for(var $0=0,$1=this.getWidget().getVisibleChildren(),$2=$1.length,$3=0;$0<$2;$0++){$3=Math.max($3,$1[$0].getNeededWidth());}return $3;},computeChildrenNeededHeight_max:function(){for(var $0=0,$1=this.getWidget().getVisibleChildren(),$2=$1.length,$3=0;$0<$2;$0++){$3=Math.max($3,$1[$0].getNeededHeight());}return $3;},computeChildrenNeededWidth_sum:function(){for(var $0=0,$1=this.getWidget().getVisibleChildren(),$2=$1.length,$3=0;$0<$2;$0++){$3+=$1[$0].getNeededWidth();}return $3;},computeChildrenNeededHeight_sum:function(){for(var $0=0,$1=this.getWidget().getVisibleChildren(),$2=$1.length,$3=0;$0<$2;$0++){$3+=$1[$0].getNeededHeight();}return $3;},computeChildrenNeededWidth:null,computeChildrenNeededHeight:null,updateSelfOnChildOuterWidthChange:function($0){},updateSelfOnChildOuterHeightChange:function($0){},updateChildOnInnerWidthChange:function($0){},updateChildOnInnerHeightChange:function($0){},updateSelfOnJobQueueFlush:function($0){},updateChildrenOnJobQueueFlush:function($0){},updateChildrenOnAddChild:function($0,$1){},updateChildrenOnRemoveChild:function($0,$1){},updateChildrenOnMoveChild:function($0,$1,$2){},flushChildrenQueue:function($0){var $1=this.getWidget();for(var $2 in $0){$1._layoutChild($0[$2]);}},layoutChild:function($0,$1){},layoutChild_sizeLimitX:qx.core.Variant.select($[1],{"mshtml":qx.lang.Function.returnTrue,"default":function($0,$1){if($1.minWidth){$0._computedMinWidthTypeNull?$0._resetRuntimeMinWidth():$0._renderRuntimeMinWidth($0.getMinWidthValue());}else if($1.initial&&!$0._computedMinWidthTypeNull){$0._renderRuntimeMinWidth($0.getMinWidthValue());}if($1.maxWidth){$0._computedMaxWidthTypeNull?$0._resetRuntimeMaxWidth():$0._renderRuntimeMaxWidth($0.getMaxWidthValue());}else if($1.initial&&!$0._computedMaxWidthTypeNull){$0._renderRuntimeMaxWidth($0.getMaxWidthValue());}}}),layoutChild_sizeLimitY:qx.core.Variant.select($[1],{"mshtml":qx.lang.Function.returnTrue,"default":function($0,$1){if($1.minHeight){$0._computedMinHeightTypeNull?$0._resetRuntimeMinHeight():$0._renderRuntimeMinHeight($0.getMinHeightValue());}else if($1.initial&&!$0._computedMinHeightTypeNull){$0._renderRuntimeMinHeight($0.getMinHeightValue());}if($1.maxHeight){$0._computedMaxHeightTypeNull?$0._resetRuntimeMaxHeight():$0._renderRuntimeMaxHeight($0.getMaxHeightValue());}else if($1.initial&&!$0._computedMaxHeightTypeNull){$0._renderRuntimeMaxHeight($0.getMaxHeightValue());}}}),layoutChild_marginX:function($0,$1){if($1.marginLeft||$1.initial){var $2=$0.getMarginLeft();$2!=null?$0._renderRuntimeMarginLeft($2):$0._resetRuntimeMarginLeft();}if($1.marginRight||$1.initial){var $3=$0.getMarginRight();$3!=null?$0._renderRuntimeMarginRight($3):$0._resetRuntimeMarginRight();}},layoutChild_marginY:function($0,$1){if($1.marginTop||$1.initial){var $2=$0.getMarginTop();$2!=null?$0._renderRuntimeMarginTop($2):$0._resetRuntimeMarginTop();}if($1.marginBottom||$1.initial){var $3=$0.getMarginBottom();$3!=null?$0._renderRuntimeMarginBottom($3):$0._resetRuntimeMarginBottom();}},layoutChild_sizeX_essentialWrapper:function($0,$1){return $0._isWidthEssential()?this.layoutChild_sizeX($0,$1):$0._resetRuntimeWidth();},layoutChild_sizeY_essentialWrapper:function($0,$1){return $0._isHeightEssential()?this.layoutChild_sizeY($0,$1):$0._resetRuntimeHeight();}},defer:function($0,$1){$1.computeChildrenNeededWidth=$1.computeChildrenNeededWidth_max;$1.computeChildrenNeededHeight=$1.computeChildrenNeededHeight_max;},destruct:function(){this._disposeFields($[1186]);}});
83
qx.Class.define($[1713],{statics:{isInRange:function($0,$1,$2){return $0>=$1&&$0<=$2;},isBetweenRange:function($0,$1,$2){return $0>$1&&$0<$2;},limit:function($0,$1,$2){if(typeof $2===$[50]&&$0>$2){return $2;}else if(typeof $1===$[50]&&$0<$1){return $1;}else{return $0;}}}});
69
qx.Class.define($[1713],{statics:{isInRange:function($0,$1,$2){return $0>=$1&&$0<=$2;},isBetweenRange:function($0,$1,$2){return $0>$1&&$0<$2;},limit:function($0,$1,$2){if(typeof $2===$[50]&&$0>$2){return $2;}else if(typeof $1===$[50]&&$0<$1){return $1;}else{return $0;}}}});
84
qx.Class.define($[1792],{extend:qx.ui.layout.impl.LayoutImpl,construct:function($0){arguments.callee.base.call(this,$0);},members:{computeChildBoxWidth:function($0){var $1=null;if($0._computedLeftTypeNull||$0._computedRightTypeNull){$1=$0.getWidthValue();}else if($0._hasParent){$1=this.getWidget().getInnerWidth()-$0.getLeftValue()-$0.getRightValue();}return $1||$0._computeBoxWidthFallback();},computeChildBoxHeight:function($0){var $1=null;if($0._computedTopTypeNull||$0._computedBottomTypeNull){$1=$0.getHeightValue();}else if($0._hasParent){$1=this.getWidget().getInnerHeight()-$0.getTopValue()-$0.getBottomValue();}return $1||$0._computeBoxHeightFallback();},computeChildNeededWidth:function($0){var $1=$0._computedLeftTypePercent?null:$0.getLeftValue();var $2=$0._computedRightTypePercent?null:$0.getRightValue();var $3=$0._computedMinWidthTypePercent?null:$0.getMinWidthValue();var $4=$0._computedMaxWidthTypePercent?null:$0.getMaxWidthValue();if($1!=null&&$2!=null){var $5=$0.getPreferredBoxWidth()||0;}else{var $5=($0._computedWidthTypePercent?null:$0.getWidthValue())||$0.getPreferredBoxWidth()||0;}return qx.lang.Number.limit($5,$3,$4)+$1+$2+$0.getMarginLeft()+$0.getMarginRight();},computeChildNeededHeight:function($0){var $1=$0._computedTopTypePercent?null:$0.getTopValue();var $2=$0._computedBottomTypePercent?null:$0.getBottomValue();var $3=$0._computedMinHeightTypePercent?null:$0.getMinHeightValue();var $4=$0._computedMaxHeightTypePercent?null:$0.getMaxHeightValue();if($1!=null&&$2!=null){var $5=$0.getPreferredBoxHeight()||0;}else{var $5=($0._computedHeightTypePercent?null:$0.getHeightValue())||$0.getPreferredBoxHeight()||0;}return qx.lang.Number.limit($5,$3,$4)+$1+$2+$0.getMarginTop()+$0.getMarginBottom();},updateChildOnInnerWidthChange:function($0){var $1=$0._recomputePercentX();var $2=$0._recomputeRangeX();return $1||$2;},updateChildOnInnerHeightChange:function($0){var $1=$0._recomputePercentY();var $2=$0._recomputeRangeY();return $1||$2;},layoutChild:function($0,$1){this.layoutChild_sizeX_essentialWrapper($0,$1);this.layoutChild_sizeY_essentialWrapper($0,$1);this.layoutChild_sizeLimitX($0,$1);this.layoutChild_sizeLimitY($0,$1);this.layoutChild_locationX($0,$1);this.layoutChild_locationY($0,$1);this.layoutChild_marginX($0,$1);this.layoutChild_marginY($0,$1);},layoutChild_sizeX:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function($0,$1){if($1.initial||$1.width||$1.minWidth||$1.maxWidth||$1.left||$1.right){if($0._computedMinWidthTypeNull&&$0._computedWidthTypeNull&&$0._computedMaxWidthTypeNull&&!(!$0._computedLeftTypeNull&&!$0._computedRightTypeNull)){$0._resetRuntimeWidth();}else{$0._renderRuntimeWidth($0.getBoxWidth());}}},"default":function($0,$1){if($1.initial||$1.width){$0._computedWidthTypeNull?$0._resetRuntimeWidth():$0._renderRuntimeWidth($0.getWidthValue());}}}),layoutChild_sizeY:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function($0,$1){if($1.initial||$1.height||$1.minHeight||$1.maxHeight||$1.top||$1.bottom){if($0._computedMinHeightTypeNull&&$0._computedHeightTypeNull&&$0._computedMaxHeightTypeNull&&!(!$0._computedTopTypeNull&&!$0._computedBottomTypeNull)){$0._resetRuntimeHeight();}else{$0._renderRuntimeHeight($0.getBoxHeight());}}},"default":function($0,$1){if($1.initial||$1.height){$0._computedHeightTypeNull?$0._resetRuntimeHeight():$0._renderRuntimeHeight($0.getHeightValue());}}}),layoutChild_locationX:function($0,$1){var $2=this.getWidget();if($1.initial||$1.left||$1.parentPaddingLeft){$0._computedLeftTypeNull?$0._computedRightTypeNull&&$2.getPaddingLeft()>0?$0._renderRuntimeLeft($2.getPaddingLeft()):$0._resetRuntimeLeft():$0._renderRuntimeLeft($0.getLeftValue()+$2.getPaddingLeft());}if($1.initial||$1.right||$1.parentPaddingRight){$0._computedRightTypeNull?$0._computedLeftTypeNull&&$2.getPaddingRight()>0?$0._renderRuntimeRight($2.getPaddingRight()):$0._resetRuntimeRight():$0._renderRuntimeRight($0.getRightValue()+$2.getPaddingRight());}},layoutChild_locationY:function($0,$1){var $2=this.getWidget();if($1.initial||$1.top||$1.parentPaddingTop){$0._computedTopTypeNull?$0._computedBottomTypeNull&&$2.getPaddingTop()>0?$0._renderRuntimeTop($2.getPaddingTop()):$0._resetRuntimeTop():$0._renderRuntimeTop($0.getTopValue()+$2.getPaddingTop());}if($1.initial||$1.bottom||$1.parentPaddingBottom){$0._computedBottomTypeNull?$0._computedTopTypeNull&&$2.getPaddingBottom()>0?$0._renderRuntimeBottom($2.getPaddingBottom()):$0._resetRuntimeBottom():$0._renderRuntimeBottom($0.getBottomValue()+$2.getPaddingBottom());}}}});
70
qx.Class.define($[1792],{extend:qx.ui.layout.impl.LayoutImpl,construct:function($0){arguments.callee.base.call(this,$0);},members:{computeChildBoxWidth:function($0){var $1=null;if($0._computedLeftTypeNull||$0._computedRightTypeNull){$1=$0.getWidthValue();}else if($0._hasParent){$1=this.getWidget().getInnerWidth()-$0.getLeftValue()-$0.getRightValue();}return $1||$0._computeBoxWidthFallback();},computeChildBoxHeight:function($0){var $1=null;if($0._computedTopTypeNull||$0._computedBottomTypeNull){$1=$0.getHeightValue();}else if($0._hasParent){$1=this.getWidget().getInnerHeight()-$0.getTopValue()-$0.getBottomValue();}return $1||$0._computeBoxHeightFallback();},computeChildNeededWidth:function($0){var $1=$0._computedLeftTypePercent?null:$0.getLeftValue();var $2=$0._computedRightTypePercent?null:$0.getRightValue();var $3=$0._computedMinWidthTypePercent?null:$0.getMinWidthValue();var $4=$0._computedMaxWidthTypePercent?null:$0.getMaxWidthValue();if($1!=null&&$2!=null){var $5=$0.getPreferredBoxWidth()||0;}else{var $5=($0._computedWidthTypePercent?null:$0.getWidthValue())||$0.getPreferredBoxWidth()||0;}return qx.lang.Number.limit($5,$3,$4)+$1+$2+$0.getMarginLeft()+$0.getMarginRight();},computeChildNeededHeight:function($0){var $1=$0._computedTopTypePercent?null:$0.getTopValue();var $2=$0._computedBottomTypePercent?null:$0.getBottomValue();var $3=$0._computedMinHeightTypePercent?null:$0.getMinHeightValue();var $4=$0._computedMaxHeightTypePercent?null:$0.getMaxHeightValue();if($1!=null&&$2!=null){var $5=$0.getPreferredBoxHeight()||0;}else{var $5=($0._computedHeightTypePercent?null:$0.getHeightValue())||$0.getPreferredBoxHeight()||0;}return qx.lang.Number.limit($5,$3,$4)+$1+$2+$0.getMarginTop()+$0.getMarginBottom();},updateChildOnInnerWidthChange:function($0){var $1=$0._recomputePercentX();var $2=$0._recomputeRangeX();return $1||$2;},updateChildOnInnerHeightChange:function($0){var $1=$0._recomputePercentY();var $2=$0._recomputeRangeY();return $1||$2;},layoutChild:function($0,$1){this.layoutChild_sizeX_essentialWrapper($0,$1);this.layoutChild_sizeY_essentialWrapper($0,$1);this.layoutChild_sizeLimitX($0,$1);this.layoutChild_sizeLimitY($0,$1);this.layoutChild_locationX($0,$1);this.layoutChild_locationY($0,$1);this.layoutChild_marginX($0,$1);this.layoutChild_marginY($0,$1);},layoutChild_sizeX:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function($0,$1){if($1.initial||$1.width||$1.minWidth||$1.maxWidth||$1.left||$1.right){if($0._computedMinWidthTypeNull&&$0._computedWidthTypeNull&&$0._computedMaxWidthTypeNull&&!(!$0._computedLeftTypeNull&&!$0._computedRightTypeNull)){$0._resetRuntimeWidth();}else{$0._renderRuntimeWidth($0.getBoxWidth());}}},"default":function($0,$1){if($1.initial||$1.width){$0._computedWidthTypeNull?$0._resetRuntimeWidth():$0._renderRuntimeWidth($0.getWidthValue());}}}),layoutChild_sizeY:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function($0,$1){if($1.initial||$1.height||$1.minHeight||$1.maxHeight||$1.top||$1.bottom){if($0._computedMinHeightTypeNull&&$0._computedHeightTypeNull&&$0._computedMaxHeightTypeNull&&!(!$0._computedTopTypeNull&&!$0._computedBottomTypeNull)){$0._resetRuntimeHeight();}else{$0._renderRuntimeHeight($0.getBoxHeight());}}},"default":function($0,$1){if($1.initial||$1.height){$0._computedHeightTypeNull?$0._resetRuntimeHeight():$0._renderRuntimeHeight($0.getHeightValue());}}}),layoutChild_locationX:function($0,$1){var $2=this.getWidget();if($1.initial||$1.left||$1.parentPaddingLeft){$0._computedLeftTypeNull?$0._computedRightTypeNull&&$2.getPaddingLeft()>0?$0._renderRuntimeLeft($2.getPaddingLeft()):$0._resetRuntimeLeft():$0._renderRuntimeLeft($0.getLeftValue()+$2.getPaddingLeft());}if($1.initial||$1.right||$1.parentPaddingRight){$0._computedRightTypeNull?$0._computedLeftTypeNull&&$2.getPaddingRight()>0?$0._renderRuntimeRight($2.getPaddingRight()):$0._resetRuntimeRight():$0._renderRuntimeRight($0.getRightValue()+$2.getPaddingRight());}},layoutChild_locationY:function($0,$1){var $2=this.getWidget();if($1.initial||$1.top||$1.parentPaddingTop){$0._computedTopTypeNull?$0._computedBottomTypeNull&&$2.getPaddingTop()>0?$0._renderRuntimeTop($2.getPaddingTop()):$0._resetRuntimeTop():$0._renderRuntimeTop($0.getTopValue()+$2.getPaddingTop());}if($1.initial||$1.bottom||$1.parentPaddingBottom){$0._computedBottomTypeNull?$0._computedTopTypeNull&&$2.getPaddingBottom()>0?$0._renderRuntimeBottom($2.getPaddingBottom()):$0._resetRuntimeBottom():$0._renderRuntimeBottom($0.getBottomValue()+$2.getPaddingBottom());}}}});
85
qx.Class.define($[1060],{type:$[18],extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);this._window=window;this._document=window.document;this.setElement(this._document.body);this._document.body.style.position=$[0];if(qx.core.Variant.isSet($[1],$[13])&&(qx.core.Client.getInstance().getMajor()<7)){try{document.execCommand($[1748],false,true);}catch(err){}}this._cachedInnerWidth=this._document.body.offsetWidth;this._cachedInnerHeight=this._document.body.offsetHeight;this.addEventListener($[364],this._onwindowresize);this._modalWidgets=[];this._modalNativeWindow=null;this.activateFocusRoot();this.initHideFocus();this.initSelectable();qx.event.handler.EventHandler.getInstance().setFocusRoot(this);},events:{"focus":$[4],"windowblur":$[4],"windowfocus":$[4],"windowresize":$[4]},properties:{appearance:{refine:true,init:$[934]},enableElementFocus:{refine:true,init:false},enabled:{refine:true,init:true},selectable:{refine:true,init:false},hideFocus:{refine:true,init:true},globalCursor:{check:$[6],nullable:true,themeable:true,apply:$[1044],event:$[1500]}},members:{_applyParent:qx.lang.Function.returnTrue,getTopLevelWidget:qx.lang.Function.returnThis,getWindowElement:function(){return this._window;},getDocumentElement:function(){return this._document;},getParent:qx.lang.Function.returnNull,getToolTip:qx.lang.Function.returnNull,isMaterialized:qx.lang.Function.returnTrue,isSeeable:qx.lang.Function.returnTrue,_isDisplayable:true,_hasParent:false,_initialLayoutDone:true,_getBlocker:function(){if(!this._blocker){this._blocker=new qx.ui.core.ClientDocumentBlocker;this._blocker.addEventListener($[12],this.blockHelper,this);this._blocker.addEventListener($[22],this.blockHelper,this);this.add(this._blocker);}return this._blocker;},blockHelper:function($0){if(this._modalNativeWindow){if(!this._modalNativeWindow.isClosed()){this._modalNativeWindow.focus();}else{this.debug("Window seems to be closed already! => Releasing Blocker");this.release(this._modalNativeWindow);}}},block:function($0){this._getBlocker().show();if(qx.Class.isDefined($[502])&&$0 instanceof qx.ui.window.Window){this._modalWidgets.push($0);var $1=$0.getZIndex();this._getBlocker().setZIndex($1);$0.setZIndex($1+1);}else if(qx.Class.isDefined($[528])&&$0 instanceof qx.client.NativeWindow){this._modalNativeWindow=$0;this._getBlocker().setZIndex(1e7);}},release:function($0){if($0){if(qx.Class.isDefined($[528])&&$0 instanceof qx.client.NativeWindow){this._modalNativeWindow=null;}else{qx.lang.Array.remove(this._modalWidgets,$0);}}var $1=this._modalWidgets.length;if($1==0){this._getBlocker().hide();}else{var $2=this._modalWidgets[$1-1];var $3=$2.getZIndex();this._getBlocker().setZIndex($3);$2.setZIndex($3+1);}},createStyleElement:function($0){return qx.html.StyleSheet.createElement($0);},addCssRule:function($0,$1,$2){return qx.html.StyleSheet.addRule($0,$1,$2);},removeCssRule:function($0,$1){return qx.html.StyleSheet.removeRule($0,$1);},removeAllCssRules:function($0){return qx.html.StyleSheet.removeAllRules($0);},_applyGlobalCursor:qx.core.Variant.select($[1],{"mshtml":function($0,$1){if($0==$[292]){$0=$[204];}if($1==$[292]){$1=$[204];}var $2,$3;var $4=this._cursorElements;if($4){for(var $5=0,$6=$4.length;$5<$6;$5++){$2=$4[$5];if($2.style.cursor==$1){$2.style.cursor=$2._oldCursor;$2._oldCursor=null;}}}var $7=document.all;var $4=this._cursorElements=[];if($0!=null&&$0!=$[0]&&$0!=$[3]){for(var $5=0,$6=$7.length;$5<$6;$5++){$2=$7[$5];$3=$2.style.cursor;if($3!=null&&$3!=$[0]&&$3!=$[3]){$2._oldCursor=$3;$2.style.cursor=$0;$4.push($2);}}document.body.style.cursor=$0;}else{document.body.style.cursor=$[0];}},"default":function($0,$1){if(!this._globalCursorStyleSheet){this._globalCursorStyleSheet=this.createStyleElement();}this.removeCssRule(this._globalCursorStyleSheet,$[140]);if($0){this.addCssRule(this._globalCursorStyleSheet,$[140],$[627]+$0+$[764]);}}}),_onwindowresize:function($0){if(qx.Class.isDefined($[166])){qx.ui.popup.PopupManager.getInstance().update();}this._recomputeInnerWidth();this._recomputeInnerHeight();qx.ui.core.Widget.flushGlobalQueues();},_computeInnerWidth:function(){return this._document.body.offsetWidth;},_computeInnerHeight:function(){return this._document.body.offsetHeight;}},settings:{"qx.enableApplicationLayout":true,"qx.boxModelCorrection":true},defer:function(){if(qx.core.Setting.get($[639])){var $0=qx.core.Client.getInstance().getEngineBoxSizingAttributes();var $1=$0.join($[367])+$[367];var $2=$0.join($[347])+$[347];qx.html.StyleSheet.createElement($[758]+$[1343]+$[1553]+$1+$[1433]+$[1762]+$2+$[277]);}if(qx.core.Setting.get($[1699])){qx.html.StyleSheet.createElement($[1770]);}},destruct:function(){this._disposeObjects($[491]);this._disposeFields($[1134],$[1156],$[1576],$[1447],$[1612]);}});
71
qx.Class.define($[1060],{type:$[18],extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);this._window=window;this._document=window.document;this.setElement(this._document.body);this._document.body.style.position=$[0];if(qx.core.Variant.isSet($[1],$[13])&&(qx.core.Client.getInstance().getMajor()<7)){try{document.execCommand($[1748],false,true);}catch(err){}}this._cachedInnerWidth=this._document.body.offsetWidth;this._cachedInnerHeight=this._document.body.offsetHeight;this.addEventListener($[363],this._onwindowresize);this._modalWidgets=[];this._modalNativeWindow=null;this.activateFocusRoot();this.initHideFocus();this.initSelectable();qx.event.handler.EventHandler.getInstance().setFocusRoot(this);},events:{"focus":$[4],"windowblur":$[4],"windowfocus":$[4],"windowresize":$[4]},properties:{appearance:{refine:true,init:$[933]},enableElementFocus:{refine:true,init:false},enabled:{refine:true,init:true},selectable:{refine:true,init:false},hideFocus:{refine:true,init:true},globalCursor:{check:$[6],nullable:true,themeable:true,apply:$[1043],event:$[1499]}},members:{_applyParent:qx.lang.Function.returnTrue,getTopLevelWidget:qx.lang.Function.returnThis,getWindowElement:function(){return this._window;},getDocumentElement:function(){return this._document;},getParent:qx.lang.Function.returnNull,getToolTip:qx.lang.Function.returnNull,isMaterialized:qx.lang.Function.returnTrue,isSeeable:qx.lang.Function.returnTrue,_isDisplayable:true,_hasParent:false,_initialLayoutDone:true,_getBlocker:function(){if(!this._blocker){this._blocker=new qx.ui.core.ClientDocumentBlocker;this._blocker.addEventListener($[12],this.blockHelper,this);this._blocker.addEventListener($[22],this.blockHelper,this);this.add(this._blocker);}return this._blocker;},blockHelper:function($0){if(this._modalNativeWindow){if(!this._modalNativeWindow.isClosed()){this._modalNativeWindow.focus();}else{this.debug("Window seems to be closed already! => Releasing Blocker");this.release(this._modalNativeWindow);}}},block:function($0){this._getBlocker().show();if(qx.Class.isDefined($[503])&&$0 instanceof qx.ui.window.Window){this._modalWidgets.push($0);var $1=$0.getZIndex();this._getBlocker().setZIndex($1);$0.setZIndex($1+1);}else if(qx.Class.isDefined($[529])&&$0 instanceof qx.client.NativeWindow){this._modalNativeWindow=$0;this._getBlocker().setZIndex(1e7);}},release:function($0){if($0){if(qx.Class.isDefined($[529])&&$0 instanceof qx.client.NativeWindow){this._modalNativeWindow=null;}else{qx.lang.Array.remove(this._modalWidgets,$0);}}var $1=this._modalWidgets.length;if($1==0){this._getBlocker().hide();}else{var $2=this._modalWidgets[$1-1];var $3=$2.getZIndex();this._getBlocker().setZIndex($3);$2.setZIndex($3+1);}},createStyleElement:function($0){return qx.html.StyleSheet.createElement($0);},addCssRule:function($0,$1,$2){return qx.html.StyleSheet.addRule($0,$1,$2);},removeCssRule:function($0,$1){return qx.html.StyleSheet.removeRule($0,$1);},removeAllCssRules:function($0){return qx.html.StyleSheet.removeAllRules($0);},_applyGlobalCursor:qx.core.Variant.select($[1],{"mshtml":function($0,$1){if($0==$[292]){$0=$[204];}if($1==$[292]){$1=$[204];}var $2,$3;var $4=this._cursorElements;if($4){for(var $5=0,$6=$4.length;$5<$6;$5++){$2=$4[$5];if($2.style.cursor==$1){$2.style.cursor=$2._oldCursor;$2._oldCursor=null;}}}var $7=document.all;var $4=this._cursorElements=[];if($0!=null&&$0!=$[0]&&$0!=$[3]){for(var $5=0,$6=$7.length;$5<$6;$5++){$2=$7[$5];$3=$2.style.cursor;if($3!=null&&$3!=$[0]&&$3!=$[3]){$2._oldCursor=$3;$2.style.cursor=$0;$4.push($2);}}document.body.style.cursor=$0;}else{document.body.style.cursor=$[0];}},"default":function($0,$1){if(!this._globalCursorStyleSheet){this._globalCursorStyleSheet=this.createStyleElement();}this.removeCssRule(this._globalCursorStyleSheet,$[140]);if($0){this.addCssRule(this._globalCursorStyleSheet,$[140],$[627]+$0+$[765]);}}}),_onwindowresize:function($0){if(qx.Class.isDefined($[166])){qx.ui.popup.PopupManager.getInstance().update();}this._recomputeInnerWidth();this._recomputeInnerHeight();qx.ui.core.Widget.flushGlobalQueues();},_computeInnerWidth:function(){return this._document.body.offsetWidth;},_computeInnerHeight:function(){return this._document.body.offsetHeight;}},settings:{"qx.enableApplicationLayout":true,"qx.boxModelCorrection":true},defer:function(){if(qx.core.Setting.get($[639])){var $0=qx.core.Client.getInstance().getEngineBoxSizingAttributes();var $1=$0.join($[366])+$[366];var $2=$0.join($[346])+$[346];qx.html.StyleSheet.createElement($[759]+$[1343]+$[1553]+$1+$[1433]+$[1762]+$2+$[277]);}if(qx.core.Setting.get($[1699])){qx.html.StyleSheet.createElement($[1770]);}},destruct:function(){this._disposeObjects($[490]);this._disposeFields($[1133],$[1155],$[1575],$[1446],$[1611]);}});
86
qx.Class.define($[1239],{extend:qx.ui.core.Widget,members:{renderPadding:function($0){if($0.paddingLeft){this._renderRuntimePaddingLeft(this.getPaddingLeft());}if($0.paddingRight){this._renderRuntimePaddingRight(this.getPaddingRight());}if($0.paddingTop){this._renderRuntimePaddingTop(this.getPaddingTop());}if($0.paddingBottom){this._renderRuntimePaddingBottom(this.getPaddingBottom());}},_renderContent:function(){if(this._computedWidthTypePixel){this._cachedPreferredInnerWidth=null;}else{this._invalidatePreferredInnerWidth();}if(this._computedHeightTypePixel){this._cachedPreferredInnerHeight=null;}else{this._invalidatePreferredInnerHeight();}if(this._initialLayoutDone){this.addToJobQueue($[82]);}},_layoutPost:function($0){if($0.initial||$0.load||$0.width||$0.height){this._postApply();}},_postApply:qx.lang.Function.returnTrue,_computeBoxWidthFallback:function(){return this.getPreferredBoxWidth();},_computeBoxHeightFallback:function(){return this.getPreferredBoxHeight();},_computePreferredInnerWidth:qx.lang.Function.returnZero,_computePreferredInnerHeight:qx.lang.Function.returnZero,_isWidthEssential:function(){if(!this._computedLeftTypeNull&&!this._computedRightTypeNull){return true;}if(!this._computedWidthTypeNull&&!this._computedWidthTypeAuto){return true;}if(!this._computedMinWidthTypeNull&&!this._computedMinWidthTypeAuto){return true;}if(!this._computedMaxWidthTypeNull&&!this._computedMaxWidthTypeAuto){return true;}if(this._borderElement){return true;}return false;},_isHeightEssential:function(){if(!this._computedTopTypeNull&&!this._computedBottomTypeNull){return true;}if(!this._computedHeightTypeNull&&!this._computedHeightTypeAuto){return true;}if(!this._computedMinHeightTypeNull&&!this._computedMinHeightTypeAuto){return true;}if(!this._computedMaxHeightTypeNull&&!this._computedMaxHeightTypeAuto){return true;}if(this._borderElement){return true;}return false;}}});
72
qx.Class.define($[1238],{extend:qx.ui.core.Widget,members:{renderPadding:function($0){if($0.paddingLeft){this._renderRuntimePaddingLeft(this.getPaddingLeft());}if($0.paddingRight){this._renderRuntimePaddingRight(this.getPaddingRight());}if($0.paddingTop){this._renderRuntimePaddingTop(this.getPaddingTop());}if($0.paddingBottom){this._renderRuntimePaddingBottom(this.getPaddingBottom());}},_renderContent:function(){if(this._computedWidthTypePixel){this._cachedPreferredInnerWidth=null;}else{this._invalidatePreferredInnerWidth();}if(this._computedHeightTypePixel){this._cachedPreferredInnerHeight=null;}else{this._invalidatePreferredInnerHeight();}if(this._initialLayoutDone){this.addToJobQueue($[82]);}},_layoutPost:function($0){if($0.initial||$0.load||$0.width||$0.height){this._postApply();}},_postApply:qx.lang.Function.returnTrue,_computeBoxWidthFallback:function(){return this.getPreferredBoxWidth();},_computeBoxHeightFallback:function(){return this.getPreferredBoxHeight();},_computePreferredInnerWidth:qx.lang.Function.returnZero,_computePreferredInnerHeight:qx.lang.Function.returnZero,_isWidthEssential:function(){if(!this._computedLeftTypeNull&&!this._computedRightTypeNull){return true;}if(!this._computedWidthTypeNull&&!this._computedWidthTypeAuto){return true;}if(!this._computedMinWidthTypeNull&&!this._computedMinWidthTypeAuto){return true;}if(!this._computedMaxWidthTypeNull&&!this._computedMaxWidthTypeAuto){return true;}if(this._borderElement){return true;}return false;},_isHeightEssential:function(){if(!this._computedTopTypeNull&&!this._computedBottomTypeNull){return true;}if(!this._computedHeightTypeNull&&!this._computedHeightTypeAuto){return true;}if(!this._computedMinHeightTypeNull&&!this._computedMinHeightTypeAuto){return true;}if(!this._computedMaxHeightTypeNull&&!this._computedMaxHeightTypeAuto){return true;}if(this._borderElement){return true;}return false;}}});
87
qx.Class.define($[1600],{extend:qx.ui.basic.Terminator,construct:function(){arguments.callee.base.call(this);this.initTop();this.initLeft();this.initWidth();this.initHeight();this.initZIndex();},properties:{appearance:{refine:true,init:$[730]},zIndex:{refine:true,init:1e8},top:{refine:true,init:0},left:{refine:true,init:0},width:{refine:true,init:$[56]},height:{refine:true,init:$[56]},display:{refine:true,init:false}},members:{getFocusRoot:function(){return null;}}});
73
qx.Class.define($[1599],{extend:qx.ui.basic.Terminator,construct:function(){arguments.callee.base.call(this);this.initTop();this.initLeft();this.initWidth();this.initHeight();this.initZIndex();},properties:{appearance:{refine:true,init:$[731]},zIndex:{refine:true,init:1e8},top:{refine:true,init:0},left:{refine:true,init:0},width:{refine:true,init:$[56]},height:{refine:true,init:$[56]},display:{refine:true,init:false}},members:{getFocusRoot:function(){return null;}}});
88
qx.Class.define($[510],{extend:qx.core.Target,construct:function($0){arguments.callee.base.call(this);if($0!=null){this._attachedWidget=$0;}},statics:{mouseFocus:false},members:{getAttachedWidget:function(){return this._attachedWidget;},_onkeyevent:function($0,$1){if($1.getKeyIdentifier()!=$[188]){return;}$1.stopPropagation();$1.preventDefault();qx.event.handler.FocusHandler.mouseFocus=false;var $2=this.getAttachedWidget().getFocusedChild();if(!$1.isShiftPressed()){var $3=$2?this.getWidgetAfter($0,$2):this.getFirstWidget($0);}else{var $3=$2?this.getWidgetBefore($0,$2):this.getLastWidget($0);}if($3){$3.setFocused(true);$3._ontabfocus();}},compareTabOrder:function($0,$1){if($0==$1){return 0;}var $2=$0.getTabIndex();var $3=$1.getTabIndex();if($2!=$3){return $2-$3;}var $4=qx.html.Location.getPageBoxTop($0.getElement());var $5=qx.html.Location.getPageBoxTop($1.getElement());if($4!=$5){return $4-$5;}var $6=qx.html.Location.getPageBoxLeft($0.getElement());var $7=qx.html.Location.getPageBoxLeft($1.getElement());if($6!=$7){return $6-$7;}var $8=$0.getZIndex();var $9=$1.getZIndex();if($8!=$9){return $8-$9;}return 0;},getFirstWidget:function($0){return this._getFirst($0,null);},getLastWidget:function($0){return this._getLast($0,null);},getWidgetAfter:function($0,$1){if($0==$1){return this.getFirstWidget($0);}if($1.getAnonymous()){$1=$1.getParent();}if($1==null){return [];}var $2=[];this._getAllAfter($0,$1,$2);$2.sort(this.compareTabOrder);return $2.length>0?$2[0]:this.getFirstWidget($0);},getWidgetBefore:function($0,$1){if($0==$1){return this.getLastWidget($0);}if($1.getAnonymous()){$1=$1.getParent();}if($1==null){return [];}var $2=[];this._getAllBefore($0,$1,$2);$2.sort(this.compareTabOrder);var $3=$2.length;return $3>0?$2[$3-1]:this.getLastWidget($0);},_getAllAfter:function($0,$1,$2){var $3=$0.getChildren();var $4;var $5=$3.length;for(var $6=0;$6<$5;$6++){$4=$3[$6];if(!($4 instanceof qx.ui.core.Parent)&&!($4 instanceof qx.ui.basic.Terminator)){continue;}if($4.isFocusable()&&$4.getTabIndex()>0&&this.compareTabOrder($1,$4)<0){$2.push($3[$6]);}if(!$4.isFocusRoot()&&$4 instanceof qx.ui.core.Parent){this._getAllAfter($4,$1,$2);}}},_getAllBefore:function($0,$1,$2){var $3=$0.getChildren();var $4;var $5=$3.length;for(var $6=0;$6<$5;$6++){$4=$3[$6];if(!($4 instanceof qx.ui.core.Parent)&&!($4 instanceof qx.ui.basic.Terminator)){continue;}if($4.isFocusable()&&$4.getTabIndex()>0&&this.compareTabOrder($1,$4)>0){$2.push($4);}if(!$4.isFocusRoot()&&$4 instanceof qx.ui.core.Parent){this._getAllBefore($4,$1,$2);}}},_getFirst:function($0,$1){var $2=$0.getChildren();var $3;var $4=$2.length;for(var $5=0;$5<$4;$5++){$3=$2[$5];if(!($3 instanceof qx.ui.core.Parent)&&!($3 instanceof qx.ui.basic.Terminator)){continue;}if($3.isFocusable()&&$3.getTabIndex()>0){if($1==null||this.compareTabOrder($3,$1)<0){$1=$3;}}if(!$3.isFocusRoot()&&$3 instanceof qx.ui.core.Parent){$1=this._getFirst($3,$1);}}return $1;},_getLast:function($0,$1){var $2=$0.getChildren();var $3;var $4=$2.length;for(var $5=0;$5<$4;$5++){$3=$2[$5];if(!($3 instanceof qx.ui.core.Parent)&&!($3 instanceof qx.ui.basic.Terminator)){continue;}if($3.isFocusable()&&$3.getTabIndex()>0){if($1==null||this.compareTabOrder($3,$1)>0){$1=$3;}}if(!$3.isFocusRoot()&&$3 instanceof qx.ui.core.Parent){$1=this._getLast($3,$1);}}return $1;}},destruct:function(){this._disposeFields($[1158]);}});
74
qx.Class.define($[1353],{type:$[18],extend:qx.util.manager.Object,construct:function(){arguments.callee.base.call(this);this.__cache={};this.__stateMap={};this.__stateMapLength=1;},properties:{appearanceTheme:{check:$[121],nullable:true,apply:$[1616],event:$[1800]}},members:{_applyAppearanceTheme:function($0,$1){this._currentTheme=$0;this._oldTheme=$1;if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncAppearanceTheme();}},syncAppearanceTheme:function(){if(!this._currentTheme&&!this._oldTheme){return;}if(this._currentTheme){this.__cache[this._currentTheme.name]={};}var $0=qx.core.Init.getInstance().getApplication();if($0&&$0.getUiReady()){qx.ui.core.ClientDocument.getInstance()._recursiveAppearanceThemeUpdate(this._currentTheme,this._oldTheme);}if(this._oldTheme){delete this.__cache[this._oldTheme.name];}delete this._currentTheme;delete this._oldTheme;},styleFrom:function($0,$1){var $2=this.getAppearanceTheme();if(!$2){return;}return this.styleFromTheme($2,$0,$1);},styleFromTheme:function($0,$1,$2){var $3=$0.appearances[$1];if(!$3){{};return null;}if(!$3.style){if($3.include){return this.styleFromTheme($0,$3.include,$2);}else{return null;}}var $4=this.__stateMap;var $5=[$1];for(var $6 in $2){if(!$4[$6]){$4[$6]=this.__stateMapLength++;}$5[$4[$6]]=true;}var $7=$5.join();var $8=this.__cache[$0.name];if($8&&$8[$7]!==undefined){return $8[$7];}var $9;if($3.include||$3.base){var $a=$3.style($2);var $b;if($3.include){$b=this.styleFromTheme($0,$3.include,$2);}$9={};if($3.base){var $c=this.styleFromTheme($3.base,$1,$2);if($3.include){for(var $d in $c){if($b[$d]===undefined&&$a[$d]===undefined){$9[$d]=$c[$d];}}}else{for(var $d in $c){if($a[$d]===undefined){$9[$d]=$c[$d];}}}}if($3.include){for(var $d in $b){if($a[$d]===undefined){$9[$d]=$b[$d];}}}for(var $d in $a){$9[$d]=$a[$d];}}else{$9=$3.style($2);}if($8){$8[$7]=$9||null;}return $9||null;}},destruct:function(){this._disposeFields($[711],$[1377]);}});
89
qx.Class.define($[653],{type:$[18],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this.__visible={};this.__all={};},members:{add:function($0){var $1=this.__all;if($1[$0]===undefined){$1[$0]=1;}else{$1[$0]++;}},remove:function($0){var $1=this.__all;if($1[$0]!==undefined){$1[$0]--;}if($1[$0]<=0){delete $1[$0];}},show:function($0){var $1=this.__visible;if($1[$0]===undefined){$1[$0]=1;}else{$1[$0]++;}},hide:function($0){var $1=this.__visible;if($1[$0]!==undefined){$1[$0]--;}if($1[$0]<=0){delete $1[$0];}},getVisibleImages:function(){var $0=this.__visible;var $1={};for(var $2 in $0){if($0[$2]>0){$1[$2]=true;}}return $1;},getHiddenImages:function(){var $0=this.__visible;var $1=this.__all;var $2={};for(var $3 in $1){if($0[$3]===undefined){$2[$3]=true;}}return $2;}},destruct:function(){this._disposeFields($[770],$[1420]);}});
75
qx.Class.define($[1562],{type:$[18],extend:qx.core.Target,properties:{theme:{check:$[121],nullable:true,apply:$[1020],event:$[1031]},autoSync:{check:$[2],init:true,apply:$[854]}},members:{_applyTheme:function($0,$1){var $2=null;var $3=null;var $4=null;var $5=null;var $6=null;var $7=null;if($0){$2=$0.meta.color||null;$3=$0.meta.border||null;$4=$0.meta.font||null;$5=$0.meta.widget||null;$6=$0.meta.icon||null;$7=$0.meta.appearance||null;}if($1){this.setAutoSync(false);}var $8=qx.theme.manager.Color.getInstance();var $9=qx.theme.manager.Border.getInstance();var $a=qx.theme.manager.Font.getInstance();var $b=qx.theme.manager.Icon.getInstance();var $c=qx.theme.manager.Widget.getInstance();var $d=qx.theme.manager.Appearance.getInstance();$8.setColorTheme($2);$9.setBorderTheme($3);$a.setFontTheme($4);$c.setWidgetTheme($5);$b.setIconTheme($6);$d.setAppearanceTheme($7);if($1){this.setAutoSync(true);}},_applyAutoSync:function($0,$1){if($0){qx.theme.manager.Appearance.getInstance().syncAppearanceTheme();qx.theme.manager.Icon.getInstance().syncIconTheme();qx.theme.manager.Widget.getInstance().syncWidgetTheme();qx.theme.manager.Font.getInstance().syncFontTheme();qx.theme.manager.Border.getInstance().syncBorderTheme();qx.theme.manager.Color.getInstance().syncColorTheme();}},initialize:function(){var $0=qx.core.Setting;var $1,$2;$1=$0.get($[1515]);if($1){$2=qx.Theme.getByName($1);if(!$2){throw new Error("The meta theme to use is not available: "+$1);}this.setTheme($2);}$1=$0.get($[1078]);if($1){$2=qx.Theme.getByName($1);if(!$2){throw new Error("The color theme to use is not available: "+$1);}qx.theme.manager.Color.getInstance().setColorTheme($2);}$1=$0.get($[1526]);if($1){$2=qx.Theme.getByName($1);if(!$2){throw new Error("The border theme to use is not available: "+$1);}qx.theme.manager.Border.getInstance().setBorderTheme($2);}$1=$0.get($[798]);if($1){$2=qx.Theme.getByName($1);if(!$2){throw new Error("The font theme to use is not available: "+$1);}qx.theme.manager.Font.getInstance().setFontTheme($2);}$1=$0.get($[1652]);if($1){$2=qx.Theme.getByName($1);if(!$2){throw new Error("The widget theme to use is not available: "+$1);}qx.theme.manager.Widget.getInstance().setWidgetTheme($2);}$1=$0.get($[606]);if($1){$2=qx.Theme.getByName($1);if(!$2){throw new Error("The icon theme to use is not available: "+$1);}qx.theme.manager.Icon.getInstance().setIconTheme($2);}$1=$0.get($[974]);if($1){$2=qx.Theme.getByName($1);if(!$2){throw new Error("The appearance theme to use is not available: "+$1);}qx.theme.manager.Appearance.getInstance().setAppearanceTheme($2);}},__queryThemes:function($0){var $1=qx.Theme.getAll();var $2;var $3=[];for(var $4 in $1){$2=$1[$4];if($2[$0]){$3.push($2);}}return $3;},getMetaThemes:function(){return this.__queryThemes($[349]);},getColorThemes:function(){return this.__queryThemes($[392]);},getBorderThemes:function(){return this.__queryThemes($[520]);},getFontThemes:function(){return this.__queryThemes($[465]);},getWidgetThemes:function(){return this.__queryThemes($[524]);},getIconThemes:function(){return this.__queryThemes($[485]);},getAppearanceThemes:function(){return this.__queryThemes($[319]);}},settings:{"qx.theme":$[1115],"qx.colorTheme":null,"qx.borderTheme":null,"qx.fontTheme":null,"qx.widgetTheme":null,"qx.appearanceTheme":null,"qx.iconTheme":null}});
90
qx.Class.define($[490],{extend:qx.core.Target,events:{"execute":$[98]},construct:function($0,$1){arguments.callee.base.call(this);this.__modifier={};this.__key=null;if($0!=null){this.setShortcut($0);}if($1!=null){this.warn("The use of keyCode in command is deprecated. Use keyIdentifier instead.");this.setKeyCode($1);}{};qx.event.handler.EventHandler.getInstance().addCommand(this);},properties:{enabled:{init:true,check:$[2],event:$[462]},shortcut:{check:$[6],apply:$[1482],nullable:true},keyCode:{check:$[19],nullable:true},keyIdentifier:{check:$[6],nullable:true}},members:{getKeyCode:function(){return this._keyCode;},setKeyCode:function($0){qx.log.Logger.deprecatedMethodWarning(arguments.callee);this._keyCode=$0;},execute:function($0){if(this.hasEventListeners($[128])){var $1=new qx.event.type.DataEvent($[128],$0);this.dispatchEvent($1,true);}return false;},_applyShortcut:function($0,$1){if($0){this.__modifier={};this.__key=null;var $2=$0.split(/[-+\s]+/);var $3=$2.length;for(var $4=0;$4<$3;$4++){var $5=this.__oldKeyNameToKeyIdentifier($2[$4]);switch($5){case $[125]:case $[142]:case $[223]:case $[136]:this.__modifier[$5]=true;break;case $[212]:var $6=$[1707]+$2[$4];this.error($6);throw $6;default:if(this.__key){var $6=$[1550];this.error($6);throw $6;}this.__key=$5;}}}return true;},matchesKeyEvent:function($0){var $1=this.__key||this.getKeyIdentifier();if(!$1&&!this.getKeyCode()){return ;}if((this.__modifier.Shift&&!$0.isShiftPressed())||(this.__modifier.Control&&!$0.isCtrlPressed())||(this.__modifier.Alt&&!$0.isAltPressed())){return false;}if($1){if($1==$0.getKeyIdentifier()){return true;}}else{if(this.getKeyCode()==$0.getKeyCode()){return true;}}return false;},__oldKeyNameToKeyIdentifierMap:{esc:$[129],ctrl:$[125],print:$[237],del:$[169],pageup:$[87],pagedown:$[99],numlock:$[127],numpad_0:$[41],numpad_1:$[482],numpad_2:$[418],numpad_3:$[432],numpad_4:$[385],numpad_5:$[402],numpad_6:$[348],numpad_7:$[363],numpad_8:$[346],numpad_9:$[172],numpad_divide:$[135],numpad_multiply:$[140],numpad_minus:$[137],numpad_plus:$[246]},__oldKeyNameToKeyIdentifier:function($0){var $1=qx.event.handler.KeyEventHandler.getInstance();var $2=$[212];if($1.isValidKeyIdentifier($0)){return $0;}if($0.length==1&&$0>=$[313]&&$0<=$[1149]){return $0.toUpperCase();}$0=$0.toLowerCase();if(!qx.event.type.KeyEvent.keys[$0]){return $[212];}var $2=this.__oldKeyNameToKeyIdentifierMap[$0];if($2){return $2;}else{return qx.lang.String.toFirstUp($0);}},toString:function(){var $0=this.getKeyCode();var $1=this.__key||this.getKeyIdentifier();var $2=[];for(var $3 in this.__modifier){$2.push(qx.locale.Key.getKeyName($[258],$3));}if($1){$2.push(qx.locale.Key.getKeyName($[258],$1));}if($0!=null){var $4=qx.event.type.KeyEvent.codes[$0];$2.push($4?qx.lang.String.toFirstUp($4):String($0));}return $2.join($[137]);}},destruct:function(){var $0=qx.event.handler.EventHandler.getInstance();if($0){$0.removeCommand(this);}this._disposeFields($[1655],$[1023]);}});
76
qx.Class.define($[913],{type:$[18],extend:qx.util.manager.Value,properties:{colorTheme:{check:$[121],nullable:true,apply:$[1559],event:$[828]}},members:{_applyColorTheme:function($0){var $1=this._dynamic={};if($0){var $2=$0.colors;var $3=qx.util.ColorUtil;var $4;for(var $5 in $2){$4=$2[$5];if(typeof $4===$[8]){if(!$3.isCssString($4)){throw new Error("Could not parse color: "+$4);}}else if($4 instanceof Array){$4=$3.rgbToRgbString($4);}else{throw new Error("Could not parse color: "+$4);}$1[$5]=$4;}}if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncColorTheme();}},syncColorTheme:function(){this._updateObjects();}}});
91
qx.Class.define($[689],{statics:{getKeyName:function($0,$1,$2){if($0!=$[258]&&$0!=$[1745]){throw new Error('format must be one of: "short", "full"');}var $3=$[1127]+$0+$[155]+$1;var $4=new qx.locale.LocalizedString($3,[],$2);if($4==$3){return qx.locale.Key._keyNames[$3]||$1;}else{return $4.toString();}}},defer:function($0,$1,$2){var $3={};var $4=qx.locale.Manager;$3[$4.marktr($[857])]=$[191];$3[$4.marktr($[1195])]=$[188];$3[$4.marktr($[938])]=$[84];$3[$4.marktr($[1523])]=$[46];$3[$4.marktr($[1780])]=$[142];$3[$4.marktr($[1783])]=$[1100];$3[$4.marktr($[1305])]=$[136];$3[$4.marktr($[952])]=$[1338];$3[$4.marktr($[1728])]=$[223];$3[$4.marktr($[1701])]=$[1314];$3[$4.marktr($[650])]=$[60];$3[$4.marktr($[1247])]=$[69];$3[$4.marktr($[657])]=$[64];$3[$4.marktr($[1178])]=$[76];$3[$4.marktr($[1730])]=$[1408];$3[$4.marktr($[1135])]=$[781];$3[$4.marktr($[726])]=$[162];$3[$4.marktr($[1101])]=$[150];$3[$4.marktr($[1034])]=$[800];$3[$4.marktr($[745])]=$[990];$3[$4.marktr($[648])]=$[1000];$3[$4.marktr($[1503])]=$[598];$3[$4.marktr($[899])]=$[266];$3[$4.marktr($[1731])]=$[248];$3[$4.marktr($[1566])]=$[286];$3[$4.marktr($[1565])]=$[279];$3[$4.marktr($[1764])]=$[191];$3[$4.marktr($[1138])]=$[769];$3[$4.marktr($[786])]=$[84];$3[$4.marktr($[1085])]=$[46];$3[$4.marktr($[1362])]=$[142];$3[$4.marktr($[766])]=$[125];$3[$4.marktr($[780])]=$[136];$3[$4.marktr($[1789])]=$[408];$3[$4.marktr($[614])]=$[223];$3[$4.marktr($[1015])]=$[129];$3[$4.marktr($[1625])]=$[60];$3[$4.marktr($[737])]=$[69];$3[$4.marktr($[1759])]=$[64];$3[$4.marktr($[777])]=$[76];$3[$4.marktr($[1445])]=$[87];$3[$4.marktr($[1013])]=$[99];$3[$4.marktr($[1368])]=$[162];$3[$4.marktr($[1595])]=$[150];$3[$4.marktr($[1249])]=$[203];$3[$4.marktr($[1394])]=$[169];$3[$4.marktr($[1365])]=$[127];$3[$4.marktr($[738])]=$[237];$3[$4.marktr($[964])]=$[266];$3[$4.marktr($[1440])]=$[248];$3[$4.marktr($[735])]=$[286];$3[$4.marktr($[1422])]=$[279];$0._keyNames=$3;}});
77
qx.Class.define($[1488],{statics:{REGEXP:{hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,rgb:/^rgb\(\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*\)$/},SYSTEM:{activeborder:true,activecaption:true,appworkspace:true,background:true,buttonface:true,buttonhighlight:true,buttonshadow:true,buttontext:true,captiontext:true,graytext:true,highlight:true,highlighttext:true,inactiveborder:true,inactivecaption:true,inactivecaptiontext:true,infobackground:true,infotext:true,menu:true,menutext:true,scrollbar:true,threeddarkshadow:true,threedface:true,threedhighlight:true,threedlightshadow:true,threedshadow:true,window:true,windowframe:true,windowtext:true},NAMED:{black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:[-1,-1,-1],grey:[128,128,128],magenta:[255,0,255],orange:[255,165,0],brown:[165,42,42]},isNamedColor:function($0){return this.NAMED[$0]!==undefined;},isSystemColor:function($0){return this.SYSTEM[$0]!==undefined;},isThemedColor:function($0){return qx.theme.manager.Color.getInstance().isDynamic($0);},stringToRgb:function($0){if(this.isThemedColor($0)){var $0=qx.theme.manager.Color.getInstance().resolveDynamic($0);}if(this.isNamedColor($0)){return this.NAMED[$0];}else if(this.isSystemColor($0)){throw new Error("Could not convert system colors to RGB: "+$0);}else if(this.isRgbString($0)){return this.__rgbStringToRgb();}else if(this.isHex3String($0)){return this.__hex3StringToRgb();}else if(this.isHex6String($0)){return this.__hex6StringToRgb();}throw new Error("Could not parse color: "+$0);},cssStringToRgb:function($0){if(this.isNamedColor($0)){return this.NAMED[$0];}else if(this.isSystemColor($0)){throw new Error("Could not convert system colors to RGB: "+$0);}else if(this.isRgbString($0)){return this.__rgbStringToRgb();}else if(this.isHex3String($0)){return this.__hex3StringToRgb();}else if(this.isHex6String($0)){return this.__hex6StringToRgb();}throw new Error("Could not parse color: "+$0);},stringToRgbString:function($0){return this.rgbToRgbString(this.stringToRgb($0));},rgbToRgbString:function($0){return $[1102]+$0[0]+$[101]+$0[1]+$[101]+$0[2]+$[145];},rgbToHexString:function($0){return (qx.lang.String.pad($0[0].toString(16).toUpperCase(),2)+qx.lang.String.pad($0[1].toString(16).toUpperCase(),2)+qx.lang.String.pad($0[2].toString(16).toUpperCase(),2));},isValid:function($0){return this.isThemedColor($0)||this.isCssString($0);},isCssString:function($0){return this.isSystemColor($0)||this.isNamedColor($0)||this.isHex3String($0)||this.isHex6String($0)||this.isRgbString($0);},isHex3String:function($0){return this.REGEXP.hex3.test($0);},isHex6String:function($0){return this.REGEXP.hex6.test($0);},isRgbString:function($0){return this.REGEXP.rgb.test($0);},__rgbStringToRgb:function(){var $0=parseInt(RegExp.$1);var $1=parseInt(RegExp.$2);var $2=parseInt(RegExp.$3);return [$0,$1,$2];},__hex3StringToRgb:function(){var $0=parseInt(RegExp.$1,16)*17;var $1=parseInt(RegExp.$2,16)*17;var $2=parseInt(RegExp.$3,16)*17;return [$0,$1,$2];},__hex6StringToRgb:function(){var $0=(parseInt(RegExp.$1,16)*16)+parseInt(RegExp.$2,16);var $1=(parseInt(RegExp.$3,16)*16)+parseInt(RegExp.$4,16);var $2=(parseInt(RegExp.$5,16)*16)+parseInt(RegExp.$6,16);return [$0,$1,$2];},hex3StringToRgb:function($0){if(this.isHex3String($0)){return this.__hex3StringToRgb($0);}throw new Error("Invalid hex3 value: "+$0);},hex6StringToRgb:function($0){if(this.isHex6String($0)){return this.__hex6StringToRgb($0);}throw new Error("Invalid hex6 value: "+$0);},hexStringToRgb:function($0){if(this.isHex3String($0)){return this.__hex3StringToRgb($0);}if(this.isHex6String($0)){return this.__hex6StringToRgb($0);}throw new Error("Invalid hex value: "+$0);},rgbToHsb:function($0){var $1,$2,$3;var $4=$0[0];var $5=$0[1];var $6=$0[2];var $7=($4>$5)?$4:$5;if($6>$7){$7=$6;}var $8=($4<$5)?$4:$5;if($6<$8){$8=$6;}$3=$7/255.0;if($7!=0){$2=($7-$8)/$7;}else{$2=0;}if($2==0){$1=0;}else{var $9=($7-$4)/($7-$8);var $a=($7-$5)/($7-$8);var $b=($7-$6)/($7-$8);if($4==$7){$1=$b-$a;}else if($5==$7){$1=2.0+$9-$b;}else{$1=4.0+$a-$9;}$1=$1/6.0;if($1<0){$1=$1+1.0;}}return [Math.round($1*360),Math.round($2*100),Math.round($3*100)];},hsbToRgb:function($0){var $1,$2,$3,$4,$5;var $6=$0[0]/360;var $7=$0[1]/100;var $8=$0[2]/100;if($6>=1.0){$6%=1.0;}if($7>1.0){$7=1.0;}if($8>1.0){$8=1.0;}var $9=Math.floor(255*$8);var $a={};if($7==0.0){$a.red=$a.green=$a.blue=$9;}else{$6*=6.0;$1=Math.floor($6);$2=$6-$1;$3=Math.floor($9*(1.0-$7));$4=Math.floor($9*(1.0-($7*$2)));$5=Math.floor($9*(1.0-($7*(1.0-$2))));switch($1){case 0:$a.red=$9;$a.green=$5;$a.blue=$3;break;case 1:$a.red=$4;$a.green=$9;$a.blue=$3;break;case 2:$a.red=$3;$a.green=$9;$a.blue=$5;break;case 3:$a.red=$3;$a.green=$4;$a.blue=$9;break;case 4:$a.red=$5;$a.green=$3;$a.blue=$9;break;case 5:$a.red=$9;$a.green=$3;$a.blue=$4;break;}}return $a;},randomColor:function(){var $0=Math.round(Math.random()*255);var $1=Math.round(Math.random()*255);var $2=Math.round(Math.random()*255);return this.rgbToRgbString([$0,$1,$2]);}}});
92
qx.Class.define($[1222],{extend:qx.core.Target,construct:function($0,$1,$2){arguments.callee.base.call(this);if($0 instanceof Array){this._list=qx.lang.Object.fromArray($0);}else{this._list=$0;}this._timer=new qx.client.Timer(qx.core.Setting.get($[1350]));this._timer.addEventListener($[85],this.__oninterval,this);if($1){this.addEventListener($[15],$1,$2||null);}},events:{"completed":$[4]},members:{_stopped:false,start:function(){if(qx.lang.Object.isEmpty(this._list)){this.createDispatchEvent($[15]);return;}for(var $0 in this._list){var $1=qx.io.image.PreloaderManager.getInstance().create(qx.io.Alias.getInstance().resolve($0));if($1.isErroneous()||$1.isLoaded()){delete this._list[$0];}else{$1._origSource=$0;$1.addEventListener($[82],this.__onload,this);$1.addEventListener($[95],this.__onerror,this);}}this._check();},__onload:function($0){if(this.getDisposed()){return;}delete this._list[$0.getTarget()._origSource];this._check();},__onerror:function($0){if(this.getDisposed()){return;}delete this._list[$0.getTarget()._origSource];this._check();},__oninterval:function($0){this.debug("Cannot preload: "+qx.lang.Object.getKeysAsString(this._list));this._stopped=true;this._timer.stop();this.createDispatchEvent($[15]);},_check:function(){if(this._stopped){return;}if(qx.lang.Object.isEmpty(this._list)){this._timer.stop();this.createDispatchEvent($[15]);}else{this._timer.restart();}}},settings:{"qx.preloaderTimeout":3000},destruct:function(){if(this._timer){this._timer.removeEventListener($[85],this.__oninterval,this);this._disposeObjects($[284]);}this._disposeFields($[336]);}});
78
qx.Class.define($[1006],{type:$[18],extend:qx.util.manager.Value,properties:{borderTheme:{check:$[121],nullable:true,apply:$[876],event:$[587]}},members:{resolveDynamic:function($0){return $0 instanceof qx.ui.core.Border?$0:this._dynamic[$0];},isDynamic:function($0){return $0&&($0 instanceof qx.ui.core.Border||this._dynamic[$0]!==undefined);},syncBorderTheme:function(){this._updateObjects();},updateObjectsEdge:function($0,$1){var $2=this._registry;var $3=this._dynamic;var $4;for(var $5 in $2){$4=$2[$5];if($4.value===$0||$3[$4.value]===$0){$4.callback.call($4.object,$0,$1);}}},_applyBorderTheme:function($0){var $1=this._dynamic;for(var $2 in $1){if($1[$2].themed){$1[$2].dispose();delete $1[$2];}}if($0){var $3=$0.borders;var $4=qx.ui.core.Border;for(var $2 in $3){$1[$2]=(new $4).set($3[$2]);$1[$2].themed=true;}}if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncBorderTheme();}}}});
93
qx.Class.define($[1790],{type:$[18],extend:qx.core.Object,construct:function(){arguments.callee.base.call(this);this._objects={};},members:{add:function($0){this._objects[$0.getUri()]=$0;},remove:function($0){delete this._objects[$0.getUri()];},has:function($0){return this._objects[$0]!=null;},get:function($0){return this._objects[$0];},create:function($0){if(this._objects[$0]){return this._objects[$0];}return new qx.io.image.Preloader($0);}},destruct:function(){this._disposeFields($[468]);}});
79
qx.Class.define($[1181],{extend:qx.core.Object,construct:function($0,$1,$2){arguments.callee.base.call(this);if($0!==undefined){this.setWidth($0);}if($1!==undefined){this.setStyle($1);}if($2!==undefined){this.setColor($2);}},statics:{fromString:function($0){var $1=new qx.ui.core.Border;var $2=$0.split(/\s+/);var $3,$4;for(var $5=0,$6=$2.length;$5<$6;$5++){$3=$2[$5];switch($3){case $[170]:case $[196]:case $[192]:case $[190]:case $[42]:case $[167]:case $[187]:case $[171]:case $[7]:$1.setStyle($3);break;default:$4=parseInt($3);if($4===$3||qx.lang.String.contains($3,$[38])){$1.setWidth($4);}else{$1.setColor($3);}break;}}return $1;},fromConfig:function($0){var $1=new qx.ui.core.Border;$1.set($0);return $1;},resetTop:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0._style;if($1){$1.borderTopWidth=$1.borderTopStyle=$1.borderTopColor=$1.MozBorderTopColors=$[0];}},"default":function($0){var $1=$0._style;if($1){$1.borderTopWidth=$1.borderTopStyle=$1.borderTopColor=$[0];}$1=$0._innerStyle;if($1){$1.borderTopWidth=$1.borderTopStyle=$1.borderTopColor=$[0];}}}),resetRight:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0._style;if($1){$1.borderRightWidth=$1.borderRightStyle=$1.borderRightColor=$1.MozBorderRightColors=$[0];}},"default":function($0){var $1=$0._style;if($1){$1.borderRightWidth=$1.borderRightStyle=$1.borderRightColor=$[0];}$1=$0._innerStyle;if($1){$1.borderRightWidth=$1.borderRightStyle=$1.borderRightColor=$[0];}}}),resetBottom:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0._style;if($1){$1.borderBottomWidth=$1.borderBottomStyle=$1.borderBottomColor=$1.MozBorderBottomColors=$[0];}},"default":function($0){var $1=$0._style;if($1){$1.borderBottomWidth=$1.borderBottomStyle=$1.borderBottomColor=$[0];}$1=$0._innerStyle;if($1){$1.borderBottomWidth=$1.borderBottomStyle=$1.borderBottomColor=$[0];}}}),resetLeft:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0._style;if($1){$1.borderLeftWidth=$1.borderLeftStyle=$1.borderLeftColor=$1.MozBorderLeftColors=$[0];}},"default":function($0){var $1=$0._style;if($1){$1.borderLeftWidth=$1.borderLeftStyle=$1.borderLeftColor=$[0];}$1=$0._innerStyle;if($1){$1.borderLeftWidth=$1.borderLeftStyle=$1.borderLeftColor=$[0];}}})},properties:{widthTop:{check:$[19],init:0,apply:$[1451]},widthRight:{check:$[19],init:0,apply:$[1131]},widthBottom:{check:$[19],init:0,apply:$[1242]},widthLeft:{check:$[19],init:0,apply:$[1678]},styleTop:{nullable:true,check:[$[42],$[167],$[187],$[171],$[190],$[192],$[196],$[170]],init:$[42],apply:$[1640]},styleRight:{nullable:true,check:[$[42],$[167],$[187],$[171],$[190],$[192],$[196],$[170]],init:$[42],apply:$[1230]},styleBottom:{nullable:true,check:[$[42],$[167],$[187],$[171],$[190],$[192],$[196],$[170]],init:$[42],apply:$[1044]},styleLeft:{nullable:true,check:[$[42],$[167],$[187],$[171],$[190],$[192],$[196],$[170]],init:$[42],apply:$[1437]},colorTop:{nullable:true,check:$[90],apply:$[1769]},colorRight:{nullable:true,check:$[90],apply:$[1239]},colorBottom:{nullable:true,check:$[90],apply:$[743]},colorLeft:{nullable:true,check:$[90],apply:$[1308]},colorInnerTop:{nullable:true,check:$[90],apply:$[1430]},colorInnerRight:{nullable:true,check:$[90],apply:$[1331]},colorInnerBottom:{nullable:true,check:$[90],apply:$[967]},colorInnerLeft:{nullable:true,check:$[90],apply:$[1756]},left:{group:[$[527],$[360],$[531]]},right:{group:[$[447],$[357],$[377]]},top:{group:[$[474],$[337],$[418]]},bottom:{group:[$[406],$[446],$[401]]},width:{group:[$[474],$[447],$[406],$[527]],mode:$[103]},style:{group:[$[337],$[357],$[446],$[360]],mode:$[103]},color:{group:[$[418],$[377],$[401],$[531]],mode:$[103]},innerColor:{group:[$[1581],$[1736],$[927],$[1664]],mode:$[103]}},members:{_applyWidthTop:function($0,$1){this.__widthTop=$0==null?$[52]:$0+$[38];this.__computeComplexTop();this.__informManager($[20]);},_applyWidthRight:function($0,$1){this.__widthRight=$0==null?$[52]:$0+$[38];this.__computeComplexRight();this.__informManager($[9]);},_applyWidthBottom:function($0,$1){this.__widthBottom=$0==null?$[52]:$0+$[38];this.__computeComplexBottom();this.__informManager($[17]);},_applyWidthLeft:function($0,$1){this.__widthLeft=$0==null?$[52]:$0+$[38];this.__computeComplexLeft();this.__informManager($[11]);},_applyColorTop:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._changeColorTop,this,$0);},_applyColorRight:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._changeColorRight,this,$0);},_applyColorBottom:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._changeColorBottom,this,$0);},_applyColorLeft:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._changeColorLeft,this,$0);},_applyColorInnerTop:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._changeColorInnerTop,this,$0);},_applyColorInnerRight:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._changeColorInnerRight,this,$0);},_applyColorInnerBottom:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._changeColorInnerBottom,this,$0);},_applyColorInnerLeft:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._changeColorInnerLeft,this,$0);},_applyStyleTop:function(){this.__informManager($[20]);},_applyStyleRight:function(){this.__informManager($[9]);},_applyStyleBottom:function(){this.__informManager($[17]);},_applyStyleLeft:function(){this.__informManager($[11]);},_changeColorTop:function($0){this.__colorTop=$0;this.__computeComplexTop();this.__informManager($[20]);},_changeColorInnerTop:function($0){this.__colorInnerTop=$0;this.__computeComplexTop();this.__informManager($[20]);},_changeColorRight:function($0){this.__colorRight=$0;this.__computeComplexRight();this.__informManager($[9]);},_changeColorInnerRight:function($0){this.__colorInnerRight=$0;this.__computeComplexRight();this.__informManager($[9]);},_changeColorBottom:function($0){this.__colorBottom=$0;this.__computeComplexBottom();this.__informManager($[17]);},_changeColorInnerBottom:function($0){this.__colorInnerBottom=$0;this.__computeComplexBottom();this.__informManager($[17]);},_changeColorLeft:function($0){this.__colorLeft=$0;this.__computeComplexLeft();this.__informManager($[11]);},_changeColorInnerLeft:function($0){this.__colorInnerLeft=$0;this.__computeComplexLeft();this.__informManager($[11]);},__computeComplexTop:function(){this.__complexTop=this.getWidthTop()===2&&this.__colorInnerTop!=null&&this.__colorTop!=this.__colorInnerTop;},__computeComplexRight:function(){this.__complexRight=this.getWidthRight()===2&&this.__colorInnerRight!=null&&this.__colorRight!=this.__colorInnerRight;},__computeComplexBottom:function(){this.__complexBottom=this.getWidthBottom()===2&&this.__colorInnerBottom!=null&&this.__colorBottom!=this.__colorInnerBottom;},__computeComplexLeft:function(){this.__complexLeft=this.getWidthLeft()===2&&this.__colorInnerLeft!=null&&this.__colorLeft!=this.__colorInnerLeft;},__informManager:function($0){qx.theme.manager.Border.getInstance().updateObjectsEdge(this,$0);},renderTop:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0._style;$1.borderTopWidth=this.__widthTop||$[52];$1.borderTopColor=this.__colorTop||$[0];if(this.__complexTop){$1.borderTopStyle=$[42];$1.MozBorderTopColors=this.__colorTop+$[83]+this.__colorInnerTop;}else{$1.borderTopStyle=this.getStyleTop()||$[7];$1.MozBorderTopColors=$[0];}},"default":function($0){var $1=$0._style;var $2=$0._innerStyle;if(this.__complexTop){if(!$2){$0.prepareEnhancedBorder();$2=$0._innerStyle;}$1.borderTopWidth=$2.borderTopWidth=$[161];$1.borderTopStyle=$2.borderTopStyle=$[42];$1.borderTopColor=this.__colorTop;$2.borderTopColor=this.__colorInnerTop;}else{$1.borderTopWidth=this.__widthTop||$[52];$1.borderTopStyle=this.getStyleTop()||$[7];$1.borderTopColor=this.__colorTop||$[0];if($2){$2.borderTopWidth=$2.borderTopStyle=$2.borderTopColor=$[0];}}}}),renderRight:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0._style;$1.borderRightWidth=this.__widthRight||$[52];$1.borderRightColor=this.__colorRight||$[0];if(this.__complexRight){$1.borderRightStyle=$[42];$1.MozBorderRightColors=this.__colorRight+$[83]+this.__colorInnerRight;}else{$1.borderRightStyle=this.getStyleRight()||$[7];$1.MozBorderRightColors=$[0];}},"default":function($0){var $1=$0._style;var $2=$0._innerStyle;if(this.__complexRight){if(!$2){$0.prepareEnhancedBorder();$2=$0._innerStyle;}$1.borderRightWidth=$2.borderRightWidth=$[161];$1.borderRightStyle=$2.borderRightStyle=$[42];$1.borderRightColor=this.__colorRight;$2.borderRightColor=this.__colorInnerRight;}else{$1.borderRightWidth=this.__widthRight||$[52];$1.borderRightStyle=this.getStyleRight()||$[7];$1.borderRightColor=this.__colorRight||$[0];if($2){$2.borderRightWidth=$2.borderRightStyle=$2.borderRightColor=$[0];}}}}),renderBottom:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0._style;$1.borderBottomWidth=this.__widthBottom||$[52];$1.borderBottomColor=this.__colorBottom||$[0];if(this.__complexBottom){$1.borderBottomStyle=$[42];$1.MozBorderBottomColors=this.__colorBottom+$[83]+this.__colorInnerBottom;}else{$1.borderBottomStyle=this.getStyleBottom()||$[7];$1.MozBorderBottomColors=$[0];}},"default":function($0){var $1=$0._style;var $2=$0._innerStyle;if(this.__complexBottom){if(!$2){$0.prepareEnhancedBorder();$2=$0._innerStyle;}$1.borderBottomWidth=$2.borderBottomWidth=$[161];$1.borderBottomStyle=$2.borderBottomStyle=$[42];$1.borderBottomColor=this.__colorBottom;$2.borderBottomColor=this.__colorInnerBottom;}else{$1.borderBottomWidth=this.__widthBottom||$[52];$1.borderBottomStyle=this.getStyleBottom()||$[7];$1.borderBottomColor=this.__colorBottom||$[0];if($2){$2.borderBottomWidth=$2.borderBottomStyle=$2.borderBottomColor=$[0];}}}}),renderLeft:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0._style;$1.borderLeftWidth=this.__widthLeft||$[52];$1.borderLeftColor=this.__colorLeft||$[0];if(this.__complexLeft){$1.borderLeftStyle=$[42];$1.MozBorderLeftColors=this.__colorLeft+$[83]+this.__colorInnerLeft;}else{$1.borderLeftStyle=this.getStyleLeft()||$[7];$1.MozBorderLeftColors=$[0];}},"default":function($0){var $1=$0._style;var $2=$0._innerStyle;if(this.__complexLeft){if(!$2){$0.prepareEnhancedBorder();$2=$0._innerStyle;}$1.borderLeftWidth=$2.borderLeftWidth=$[161];$1.borderLeftStyle=$2.borderLeftStyle=$[42];$1.borderLeftColor=this.__colorLeft;$2.borderLeftColor=this.__colorInnerLeft;}else{$1.borderLeftWidth=this.__widthLeft||$[52];$1.borderLeftStyle=this.getStyleLeft()||$[7];$1.borderLeftColor=this.__colorLeft||$[0];if($2){$2.borderLeftWidth=$2.borderLeftStyle=$2.borderLeftColor=$[0];}}}})}});
94
qx.Class.define($[415],{extend:qx.core.Target,events:{"load":$[4],"error":$[4]},construct:function($0){if(qx.io.image.PreloaderManager.getInstance().has($0)){this.debug("Reuse qx.io.image.Preloader in old-style!");this.debug("Please use qx.io.image.PreloaderManager.getInstance().create(source) instead!");return qx.io.image.PreloaderManager.getInstance().get($0);}arguments.callee.base.call(this);this._element=new Image;this._element.onload=qx.lang.Function.bind(this.__onload,this);this._element.onerror=qx.lang.Function.bind(this.__onerror,this);this._source=$0;this._element.src=$0;if(qx.core.Variant.isSet($[1],$[13])){this._isPng=/\.png$/i.test(this._element.nameProp);}qx.io.image.PreloaderManager.getInstance().add(this);},members:{_source:null,_isLoaded:false,_isErroneous:false,getUri:function(){return this._source;},getSource:function(){return this._source;},isLoaded:function(){return this._isLoaded;},isErroneous:function(){return this._isErroneous;},_isPng:false,getIsPng:function(){return this._isPng;},getWidth:qx.core.Variant.select($[1],{"gecko":function(){return this._element.naturalWidth;},"default":function(){return this._element.width;}}),getHeight:qx.core.Variant.select($[1],{"gecko":function(){return this._element.naturalHeight;},"default":function(){return this._element.height;}}),__onload:function(){if(this._isLoaded||this._isErroneous){return;}this._isLoaded=true;this._isErroneous=false;if(this.hasEventListeners($[82])){this.dispatchEvent(new qx.event.type.Event($[82]),true);}},__onerror:function(){if(this._isLoaded||this._isErroneous){return;}this.debug("Could not load: "+this._source);this._isLoaded=false;this._isErroneous=true;if(this.hasEventListeners($[95])){this.dispatchEvent(new qx.event.type.Event($[95]),true);}}},destruct:function(){if(this._element){this._element.onload=this._element.onerror=null;}this._disposeFields($[329],$[1737],$[1448],$[1586]);}});
80
qx.Class.define($[1786],{type:$[18],extend:qx.util.manager.Value,properties:{fontTheme:{check:$[121],nullable:true,apply:$[892],event:$[1171]}},members:{resolveDynamic:function($0){return $0 instanceof qx.ui.core.Font?$0:this._dynamic[$0];},isDynamic:function($0){return $0&&($0 instanceof qx.ui.core.Font||this._dynamic[$0]!==undefined);},syncFontTheme:function(){this._updateObjects();},_applyFontTheme:function($0){var $1=this._dynamic;for(var $2 in $1){if($1[$2].themed){$1[$2].dispose();delete $1[$2];}}if($0){var $3=$0.fonts;var $4=qx.ui.core.Font;for(var $2 in $3){$1[$2]=(new $4).set($3[$2]);$1[$2].themed=true;}}if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncFontTheme();}}}});
95
qx.Class.define($[325],{extend:qx.core.Target,implement:qx.application.IApplication,properties:{uiReady:{check:$[2],init:false}},members:{main:function(){qx.ui.core.Widget.initScrollbarWidth();qx.theme.manager.Meta.getInstance().initialize();qx.event.handler.EventHandler.getInstance();qx.ui.core.ClientDocument.getInstance();qx.client.Timer.once(this._preload,this,0);},close:function(){},terminate:function(){},_preload:function(){this.debug("preloading visible images...");this.__preloader=new qx.io.image.PreloaderSystem(qx.io.image.Manager.getInstance().getVisibleImages(),this._preloaderDone,this);this.__preloader.start();},_preloaderDone:function(){this.setUiReady(true);this.__preloader.dispose();this.__preloader=null;var $0=(new Date).valueOf();qx.ui.core.Widget.flushGlobalQueues();this.info("render runtime: "+(new Date-$0)+"ms");qx.event.handler.EventHandler.getInstance().attachEvents();qx.client.Timer.once(this._postload,this,100);},_postload:function(){this.debug("preloading hidden images...");this.__postloader=new qx.io.image.PreloaderSystem(qx.io.image.Manager.getInstance().getHiddenImages(),this._postloaderDone,this);this.__postloader.start();},_postloaderDone:function(){this.__postloader.dispose();this.__postloader=null;}}});
81
qx.Class.define($[793],{extend:qx.core.Object,construct:function($0,$1){arguments.callee.base.call(this);if($0!==undefined){this.setSize($0);}if($1!==undefined){this.setFamily($1);}},statics:{fromString:function($0){var $1=new qx.ui.core.Font;var $2=$0.split(/\s+/);var $3=[];var $4;for(var $5=0;$5<$2.length;$5++){switch($4=$2[$5]){case $[278]:$1.setBold(true);break;case $[374]:$1.setItalic(true);break;case $[304]:$1.setDecoration($[304]);break;default:var $6=parseInt($4);if($6==$4||qx.lang.String.contains($4,$[38])){$1.setSize($6);}else{$3.push($4);}break;}}if($3.length>0){$1.setFamily($3);}return $1;},fromConfig:function($0){var $1=new qx.ui.core.Font;$1.set($0);return $1;},reset:function($0){$0.removeStyleProperty($[473]);$0.removeStyleProperty($[210]);$0.removeStyleProperty($[380]);$0.removeStyleProperty($[333]);$0.removeStyleProperty($[467]);},resetElement:function($0){var $1=$0.style;$1.fontFamily=$[0];$1.fontSize=$[0];$1.fontWeight=$[0];$1.fontStyle=$[0];$1.textDecoration=$[0];},resetStyle:function($0){$0.fontFamily=$[0];$0.fontSize=$[0];$0.fontWeight=$[0];$0.fontStyle=$[0];$0.textDecoration=$[0];}},properties:{size:{check:$[5],nullable:true,apply:$[590]},family:{check:$[414],nullable:true,apply:$[1520]},bold:{check:$[2],nullable:true,apply:$[1765]},italic:{check:$[2],nullable:true,apply:$[1247]},decoration:{check:[$[304],$[666],$[1725]],nullable:true,apply:$[1732]}},members:{__size:null,__family:null,__bold:null,__italic:null,__decoration:null,_applySize:function($0,$1){this.__size=$0===null?null:$0+$[38];},_applyFamily:function($0,$1){var $2=$[0];for(var $3=0,$4=$0.length;$3<$4;$3++){if($0[$3].indexOf($[83])>0){$2+=$[109]+$0[$3]+$[109];}else{$2+=$0[$3];}if($3!=$4-1){$2+=$[101];}}this.__family=$2;},_applyBold:function($0,$1){this.__bold=$0===null?null:$0?$[278]:$[156];},_applyItalic:function($0,$1){this.__italic=$0===null?null:$0?$[374]:$[156];},_applyDecoration:function($0,$1){this.__decoration=$0===null?null:$0;},render:function($0){$0.setStyleProperty($[473],this.__family);$0.setStyleProperty($[210],this.__size);$0.setStyleProperty($[380],this.__bold);$0.setStyleProperty($[333],this.__italic);$0.setStyleProperty($[467],this.__decoration);},renderStyle:function($0){$0.fontFamily=this.__family||$[0];$0.fontSize=this.__size||$[0];$0.fontWeight=this.__bold||$[0];$0.fontStyle=this.__italic||$[0];$0.textDecoration=this.__decoration||$[0];},renderElement:function($0){var $1=$0.style;$1.fontFamily=this.__family||$[0];$1.fontSize=this.__size||$[0];$1.fontWeight=this.__bold||$[0];$1.fontStyle=this.__italic||$[0];$1.textDecoration=this.__decoration||$[0];},generateStyle:function(){return (this.__family?$[1440]+this.__family.replace(/\"/g,$[334])+$[79]:$[0])+(this.__size?$[903]+this.__size+$[79]:$[0])+(this.__weight?$[1460]+this.__weight+$[79]:$[0])+(this.__style?$[1106]+this.__style+$[79]:$[0])+(this.__decoration?$[1297]+this.__decoration+$[79]:$[0]);}}});
96
qx.Class.define($[507],{extend:qx.util.manager.Object,properties:{activeWindow:{check:$[119],nullable:true,apply:$[1123]}},members:{_applyActiveWindow:function($0,$1){qx.ui.popup.PopupManager.getInstance().update();if($1){$1.setActive(false);}if($0){$0.setActive(true);}if($1&&$1.getModal()){$1.getTopLevelWidget().release($1);}if($0&&$0.getModal()){$0.getTopLevelWidget().block($0);}},update:function(){var $0,$1;var $2=this.getAll();for(var $1 in $2){$0=$2[$1];if(!$0.getAutoHide()){continue;}$0.hide();}},compareWindows:function($0,$1){switch($0.getWindowManager().getActiveWindow()){case $0:return 1;case $1:return -1;}return $0.getZIndex()-$1.getZIndex();},add:function($0){arguments.callee.base.call(this,$0);this.setActiveWindow($0);},remove:function($0){arguments.callee.base.call(this,$0);if(this.getActiveWindow()==$0){var $1=[];for(var $2 in this._objects){$1.push(this._objects[$2]);}var $3=$1.length;if($3==0){this.setActiveWindow(null);}else if($3==1){this.setActiveWindow($1[0]);}else if($3>1){$1.sort(this.compareWindows);this.setActiveWindow($1[$3-1]);}}}}});
82
qx.Class.define($[997],{type:$[18],extend:qx.core.Target,properties:{iconTheme:{check:$[121],nullable:true,apply:$[1130],event:$[1403]}},members:{_applyIconTheme:function($0,$1){if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncIconTheme();}},syncIconTheme:function(){var $0=this.getIconTheme();var $1=qx.io.Alias.getInstance();$0?$1.add($[133],$0.icons.uri):$1.remove($[133]);}}});
83
qx.Class.define($[695],{type:$[18],extend:qx.util.manager.Value,construct:function(){arguments.callee.base.call(this);this._aliases={};this.add($[178],qx.core.Setting.get($[288])+$[814]);},members:{_preprocess:function($0){var $1=this._dynamic;if($1[$0]===false){return $0;}else if($1[$0]===undefined){if($0.charAt(0)===$[135]||$0.charAt(0)===$[24]||$0.indexOf($[1079])===0||$0.indexOf($[850])===$[41]||$0.indexOf($[1361])===0){$1[$0]=false;return $0;}var $2=$0.substring(0,$0.indexOf($[135]));var $3=this._aliases[$2];if($3!==undefined){$1[$0]=$3+$0.substring($2.length);}}return $0;},add:function($0,$1){this._aliases[$0]=$1;var $2=this._dynamic;var $3=this._registry;var $4;var $5={};for(var $6 in $2){if($6.substring(0,$6.indexOf($[135]))===$0){$2[$6]=$1+$6.substring($0.length);$5[$6]=true;}}for(var $7 in $3){$4=$3[$7];if($5[$4.value]){$4.callback.call($4.object,$2[$4.value]);}}},remove:function($0){delete this._aliases[$0];},resolve:function($0){if($0!==null){$0=this._preprocess($0);}return this._dynamic[$0]||$0;}},destruct:function(){this._disposeFields($[881]);}});
84
qx.Class.define($[1435],{type:$[18],extend:qx.core.Target,properties:{widgetTheme:{check:$[121],nullable:true,apply:$[1342],event:$[1766]}},members:{_applyWidgetTheme:function($0,$1){if(qx.theme.manager.Meta.getInstance().getAutoSync()){this.syncWidgetTheme();}},syncWidgetTheme:function(){var $0=this.getWidgetTheme();var $1=qx.io.Alias.getInstance();$0?$1.add($[216],$0.widgets.uri):$1.remove($[216]);}}});
85
qx.Class.define($[511],{extend:qx.core.Target,construct:function($0){arguments.callee.base.call(this);if($0!=null){this._attachedWidget=$0;}},statics:{mouseFocus:false},members:{getAttachedWidget:function(){return this._attachedWidget;},_onkeyevent:function($0,$1){if($1.getKeyIdentifier()!=$[188]){return;}$1.stopPropagation();$1.preventDefault();qx.event.handler.FocusHandler.mouseFocus=false;var $2=this.getAttachedWidget().getFocusedChild();if(!$1.isShiftPressed()){var $3=$2?this.getWidgetAfter($0,$2):this.getFirstWidget($0);}else{var $3=$2?this.getWidgetBefore($0,$2):this.getLastWidget($0);}if($3){$3.setFocused(true);$3._ontabfocus();}},compareTabOrder:function($0,$1){if($0==$1){return 0;}var $2=$0.getTabIndex();var $3=$1.getTabIndex();if($2!=$3){return $2-$3;}var $4=qx.html.Location.getPageBoxTop($0.getElement());var $5=qx.html.Location.getPageBoxTop($1.getElement());if($4!=$5){return $4-$5;}var $6=qx.html.Location.getPageBoxLeft($0.getElement());var $7=qx.html.Location.getPageBoxLeft($1.getElement());if($6!=$7){return $6-$7;}var $8=$0.getZIndex();var $9=$1.getZIndex();if($8!=$9){return $8-$9;}return 0;},getFirstWidget:function($0){return this._getFirst($0,null);},getLastWidget:function($0){return this._getLast($0,null);},getWidgetAfter:function($0,$1){if($0==$1){return this.getFirstWidget($0);}if($1.getAnonymous()){$1=$1.getParent();}if($1==null){return [];}var $2=[];this._getAllAfter($0,$1,$2);$2.sort(this.compareTabOrder);return $2.length>0?$2[0]:this.getFirstWidget($0);},getWidgetBefore:function($0,$1){if($0==$1){return this.getLastWidget($0);}if($1.getAnonymous()){$1=$1.getParent();}if($1==null){return [];}var $2=[];this._getAllBefore($0,$1,$2);$2.sort(this.compareTabOrder);var $3=$2.length;return $3>0?$2[$3-1]:this.getLastWidget($0);},_getAllAfter:function($0,$1,$2){var $3=$0.getChildren();var $4;var $5=$3.length;for(var $6=0;$6<$5;$6++){$4=$3[$6];if(!($4 instanceof qx.ui.core.Parent)&&!($4 instanceof qx.ui.basic.Terminator)){continue;}if($4.isFocusable()&&$4.getTabIndex()>0&&this.compareTabOrder($1,$4)<0){$2.push($3[$6]);}if(!$4.isFocusRoot()&&$4 instanceof qx.ui.core.Parent){this._getAllAfter($4,$1,$2);}}},_getAllBefore:function($0,$1,$2){var $3=$0.getChildren();var $4;var $5=$3.length;for(var $6=0;$6<$5;$6++){$4=$3[$6];if(!($4 instanceof qx.ui.core.Parent)&&!($4 instanceof qx.ui.basic.Terminator)){continue;}if($4.isFocusable()&&$4.getTabIndex()>0&&this.compareTabOrder($1,$4)>0){$2.push($4);}if(!$4.isFocusRoot()&&$4 instanceof qx.ui.core.Parent){this._getAllBefore($4,$1,$2);}}},_getFirst:function($0,$1){var $2=$0.getChildren();var $3;var $4=$2.length;for(var $5=0;$5<$4;$5++){$3=$2[$5];if(!($3 instanceof qx.ui.core.Parent)&&!($3 instanceof qx.ui.basic.Terminator)){continue;}if($3.isFocusable()&&$3.getTabIndex()>0){if($1==null||this.compareTabOrder($3,$1)<0){$1=$3;}}if(!$3.isFocusRoot()&&$3 instanceof qx.ui.core.Parent){$1=this._getFirst($3,$1);}}return $1;},_getLast:function($0,$1){var $2=$0.getChildren();var $3;var $4=$2.length;for(var $5=0;$5<$4;$5++){$3=$2[$5];if(!($3 instanceof qx.ui.core.Parent)&&!($3 instanceof qx.ui.basic.Terminator)){continue;}if($3.isFocusable()&&$3.getTabIndex()>0){if($1==null||this.compareTabOrder($3,$1)>0){$1=$3;}}if(!$3.isFocusRoot()&&$3 instanceof qx.ui.core.Parent){$1=this._getLast($3,$1);}}return $1;}},destruct:function(){this._disposeFields($[1157]);}});
86
qx.Class.define($[1290],{statics:{getPageOuterLeft:function($0){return qx.html.Location.getPageBoxLeft($0)-qx.html.Style.getMarginLeft($0);},getPageOuterTop:function($0){return qx.html.Location.getPageBoxTop($0)-qx.html.Style.getMarginTop($0);},getPageOuterRight:function($0){return qx.html.Location.getPageBoxRight($0)+qx.html.Style.getMarginRight($0);},getPageOuterBottom:function($0){return qx.html.Location.getPageBoxBottom($0)+qx.html.Style.getMarginBottom($0);},getClientOuterLeft:function($0){return qx.html.Location.getClientBoxLeft($0)-qx.html.Style.getMarginLeft($0);},getClientOuterTop:function($0){return qx.html.Location.getClientBoxTop($0)-qx.html.Style.getMarginTop($0);},getClientOuterRight:function($0){return qx.html.Location.getClientBoxRight($0)+qx.html.Style.getMarginRight($0);},getClientOuterBottom:function($0){return qx.html.Location.getClientBoxBottom($0)+qx.html.Style.getMarginBottom($0);},getClientBoxLeft:qx.core.Variant.select($[1],{"mshtml":function($0){return $0.getBoundingClientRect().left;},"gecko":function($0){return qx.html.Location.getClientAreaLeft($0)-qx.html.Style.getBorderLeft($0);},"default":function($0){var $1=$0.offsetLeft;while($0.tagName.toLowerCase()!=$[126]){$0=$0.offsetParent;$1+=$0.offsetLeft-$0.scrollLeft;}return $1;}}),getClientBoxTop:qx.core.Variant.select($[1],{"mshtml":function($0){return $0.getBoundingClientRect().top;},"gecko":function($0){return qx.html.Location.getClientAreaTop($0)-qx.html.Style.getBorderTop($0);},"default":function($0){var $1=$0.offsetTop;while($0.tagName.toLowerCase()!=$[126]){$0=$0.offsetParent;$1+=$0.offsetTop-$0.scrollTop;}return $1;}}),getClientBoxRight:qx.core.Variant.select($[1],{"mshtml":function($0){return $0.getBoundingClientRect().right;},"default":function($0){return qx.html.Location.getClientBoxLeft($0)+qx.html.Dimension.getBoxWidth($0);}}),getClientBoxBottom:qx.core.Variant.select($[1],{"mshtml":function($0){return $0.getBoundingClientRect().bottom;},"default":function($0){return qx.html.Location.getClientBoxTop($0)+qx.html.Dimension.getBoxHeight($0);}}),getPageBoxLeft:qx.core.Variant.select($[1],{"mshtml":function($0){return qx.html.Location.getClientBoxLeft($0)+qx.html.Scroll.getLeftSum($0);},"gecko":function($0){return qx.html.Location.getPageAreaLeft($0)-qx.html.Style.getBorderLeft($0);},"default":function($0){var $1=$0.offsetLeft;while($0.tagName.toLowerCase()!=$[126]){$0=$0.offsetParent;$1+=$0.offsetLeft;}return $1;}}),getPageBoxTop:qx.core.Variant.select($[1],{"mshtml":function($0){return qx.html.Location.getClientBoxTop($0)+qx.html.Scroll.getTopSum($0);},"gecko":function($0){return qx.html.Location.getPageAreaTop($0)-qx.html.Style.getBorderTop($0);},"default":function($0){var $1=$0.offsetTop;while($0.tagName.toLowerCase()!=$[126]){$0=$0.offsetParent;$1+=$0.offsetTop;}return $1;}}),getPageBoxRight:qx.core.Variant.select($[1],{"mshtml":function($0){return qx.html.Location.getClientBoxRight($0)+qx.html.Scroll.getLeftSum($0);},"default":function($0){return qx.html.Location.getPageBoxLeft($0)+qx.html.Dimension.getBoxWidth($0);}}),getPageBoxBottom:qx.core.Variant.select($[1],{"mshtml":function($0){return qx.html.Location.getClientBoxBottom($0)+qx.html.Scroll.getTopSum($0);},"default":function($0){return qx.html.Location.getPageBoxTop($0)+qx.html.Dimension.getBoxHeight($0);}}),getClientAreaLeft:qx.core.Variant.select($[1],{"gecko":function($0){return qx.html.Location.getPageAreaLeft($0)-qx.html.Scroll.getLeftSum($0);},"default":function($0){return qx.html.Location.getClientBoxLeft($0)+qx.html.Style.getBorderLeft($0);}}),getClientAreaTop:qx.core.Variant.select($[1],{"gecko":function($0){return qx.html.Location.getPageAreaTop($0)-qx.html.Scroll.getTopSum($0);},"default":function($0){return qx.html.Location.getClientBoxTop($0)+qx.html.Style.getBorderTop($0);}}),getClientAreaRight:function($0){return qx.html.Location.getClientAreaLeft($0)+qx.html.Dimension.getAreaWidth($0);},getClientAreaBottom:function($0){return qx.html.Location.getClientAreaTop($0)+qx.html.Dimension.getAreaHeight($0);},getPageAreaLeft:qx.core.Variant.select($[1],{"gecko":function($0){return $0.ownerDocument.getBoxObjectFor($0).x;},"default":function($0){return qx.html.Location.getPageBoxLeft($0)+qx.html.Style.getBorderLeft($0);}}),getPageAreaTop:qx.core.Variant.select($[1],{"gecko":function($0){return $0.ownerDocument.getBoxObjectFor($0).y;},"default":function($0){return qx.html.Location.getPageBoxTop($0)+qx.html.Style.getBorderTop($0);}}),getPageAreaRight:function($0){return qx.html.Location.getPageAreaLeft($0)+qx.html.Dimension.getAreaWidth($0);},getPageAreaBottom:function($0){return qx.html.Location.getPageAreaTop($0)+qx.html.Dimension.getAreaHeight($0);},getClientInnerLeft:function($0){return qx.html.Location.getClientAreaLeft($0)+qx.html.Style.getPaddingLeft($0);},getClientInnerTop:function($0){return qx.html.Location.getClientAreaTop($0)+qx.html.Style.getPaddingTop($0);},getClientInnerRight:function($0){return qx.html.Location.getClientInnerLeft($0)+qx.html.Dimension.getInnerWidth($0);},getClientInnerBottom:function($0){return qx.html.Location.getClientInnerTop($0)+qx.html.Dimension.getInnerHeight($0);},getPageInnerLeft:function($0){return qx.html.Location.getPageAreaLeft($0)+qx.html.Style.getPaddingLeft($0);},getPageInnerTop:function($0){return qx.html.Location.getPageAreaTop($0)+qx.html.Style.getPaddingTop($0);},getPageInnerRight:function($0){return qx.html.Location.getPageInnerLeft($0)+qx.html.Dimension.getInnerWidth($0);},getPageInnerBottom:function($0){return qx.html.Location.getPageInnerTop($0)+qx.html.Dimension.getInnerHeight($0);},getScreenBoxLeft:qx.core.Variant.select($[1],{"gecko":function($0){var $1=0;var $2=$0.parentNode;while($2.nodeType==1){$1+=$2.scrollLeft;$2=$2.parentNode;}return $0.ownerDocument.getBoxObjectFor($0).screenX-$1;},"default":function($0){return qx.html.Location.getScreenDocumentLeft($0)+qx.html.Location.getPageBoxLeft($0);}}),getScreenBoxTop:qx.core.Variant.select($[1],{"gecko":function($0){var $1=0;var $2=$0.parentNode;while($2.nodeType==1){$1+=$2.scrollTop;$2=$2.parentNode;}return $0.ownerDocument.getBoxObjectFor($0).screenY-$1;},"default":function($0){return qx.html.Location.getScreenDocumentTop($0)+qx.html.Location.getPageBoxTop($0);}}),getScreenBoxRight:function($0){return qx.html.Location.getScreenBoxLeft($0)+qx.html.Dimension.getBoxWidth($0);},getScreenBoxBottom:function($0){return qx.html.Location.getScreenBoxTop($0)+qx.html.Dimension.getBoxHeight($0);},getScreenOuterLeft:function($0){return qx.html.Location.getScreenBoxLeft($0)-qx.html.Style.getMarginLeft($0);},getScreenOuterTop:function($0){return qx.html.Location.getScreenBoxTop($0)-qx.html.Style.getMarginTop($0);},getScreenOuterRight:function($0){return qx.html.Location.getScreenBoxRight($0)+qx.html.Style.getMarginRight($0);},getScreenOuterBottom:function($0){return qx.html.Location.getScreenBoxBottom($0)+qx.html.Style.getMarginBottom($0);},getScreenAreaLeft:function($0){return qx.html.Location.getScreenBoxLeft($0)+qx.html.Dimension.getInsetLeft($0);},getScreenAreaTop:function($0){return qx.html.Location.getScreenBoxTop($0)+qx.html.Dimension.getInsetTop($0);},getScreenAreaRight:function($0){return qx.html.Location.getScreenBoxRight($0)-qx.html.Dimension.getInsetRight($0);},getScreenAreaBottom:function($0){return qx.html.Location.getScreenBoxBottom($0)-qx.html.Dimension.getInsetBottom($0);},getScreenInnerLeft:function($0){return qx.html.Location.getScreenAreaLeft($0)+qx.html.Style.getPaddingLeft($0);},getScreenInnerTop:function($0){return qx.html.Location.getScreenAreaTop($0)+qx.html.Style.getPaddingTop($0);},getScreenInnerRight:function($0){return qx.html.Location.getScreenAreaRight($0)-qx.html.Style.getPaddingRight($0);},getScreenInnerBottom:function($0){return qx.html.Location.getScreenAreaBottom($0)-qx.html.Style.getPaddingBottom($0);},getScreenDocumentLeft:qx.core.Variant.select($[1],{"gecko":function($0){return qx.html.Location.getScreenOuterLeft($0.ownerDocument.body);},"default":function($0){return $0.document.parentWindow.screenLeft;}}),getScreenDocumentTop:qx.core.Variant.select($[1],{"gecko":function($0){return qx.html.Location.getScreenOuterTop($0.ownerDocument.body);},"default":function($0){return $0.document.parentWindow.screenTop;}}),getScreenDocumentRight:qx.core.Variant.select($[1],{"gecko":function($0){return qx.html.Location.getScreenOuterRight($0.ownerDocument.body);},"default":function($0){}}),getScreenDocumentBottom:qx.core.Variant.select($[1],{"gecko":function($0){return qx.html.Location.getScreenOuterBottom($0.ownerDocument.body);},"default":function($0){}})}});
87
qx.Class.define($[757],{statics:{getLeftSum:function($0){var $1=0;var $2=$0.parentNode;while($2.nodeType==1){$1+=$2.scrollLeft;$2=$2.parentNode;}return $1;},getTopSum:function($0){var $1=0;var $2=$0.parentNode;while($2.nodeType==1){$1+=$2.scrollTop;$2=$2.parentNode;}return $1;}}});
88
qx.Class.define($[653],{type:$[18],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this.__visible={};this.__all={};},members:{add:function($0){var $1=this.__all;if($1[$0]===undefined){$1[$0]=1;}else{$1[$0]++;}},remove:function($0){var $1=this.__all;if($1[$0]!==undefined){$1[$0]--;}if($1[$0]<=0){delete $1[$0];}},show:function($0){var $1=this.__visible;if($1[$0]===undefined){$1[$0]=1;}else{$1[$0]++;}},hide:function($0){var $1=this.__visible;if($1[$0]!==undefined){$1[$0]--;}if($1[$0]<=0){delete $1[$0];}},getVisibleImages:function(){var $0=this.__visible;var $1={};for(var $2 in $0){if($0[$2]>0){$1[$2]=true;}}return $1;},getHiddenImages:function(){var $0=this.__visible;var $1=this.__all;var $2={};for(var $3 in $1){if($0[$3]===undefined){$2[$3]=true;}}return $2;}},destruct:function(){this._disposeFields($[771],$[1421]);}});
89
qx.Class.define($[868],{statics:{getLeft:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0.offsetLeft;var $2=$0.parentNode;var $3=qx.html.Style.getStyleProperty($0,$[78]);var $4=qx.html.Style.getStyleProperty($2,$[78]);if($3!=$[54]&&$3!=$[123]){$1-=qx.html.Style.getBorderLeft($2);}if($4!=$[54]&&$4!=$[123]){while($2){$2=$2.parentNode;if(!$2||typeof $2.tagName!==$[8]){break;}var $5=qx.html.Style.getStyleProperty($2,$[78]);if($5==$[54]||$5==$[123]){$1-=qx.html.Style.getBorderLeft($2)+qx.html.Style.getPaddingLeft($2);break;}}}return $1;},"default":function($0){return $0.offsetLeft;}}),getTop:qx.core.Variant.select($[1],{"gecko":function($0){var $1=$0.offsetTop;var $2=$0.parentNode;var $3=qx.html.Style.getStyleProperty($0,$[78]);var $4=qx.html.Style.getStyleProperty($2,$[78]);if($3!=$[54]&&$3!=$[123]){$1-=qx.html.Style.getBorderTop($2);}if($4!=$[54]&&$4!=$[123]){while($2){$2=$2.parentNode;if(!$2||typeof $2.tagName!==$[8]){break;}var $5=qx.html.Style.getStyleProperty($2,$[78]);if($5==$[54]||$5==$[123]){$1-=qx.html.Style.getBorderTop($2)+qx.html.Style.getPaddingTop($2);break;}}}return $1;},"default":function($0){return $0.offsetTop;}})}});
90
qx.Class.define($[1727],{statics:{scrollX:function($0,$1){var $2,$3,$4,$5;var $6=$0.parentNode;var $7=$0.offsetLeft;var $4=$0.offsetWidth;while($6){switch(qx.html.Style.getStyleProperty($6,$[63])){case $[26]:case $[3]:case $[281]:$5=true;break;default:switch(qx.html.Style.getStyleProperty($6,$[175])){case $[26]:case $[3]:$5=true;break;default:$5=false;}}if($5){$2=$6.clientWidth;$3=$6.scrollLeft;if($1){$6.scrollLeft=$7;}else if($1==false){$6.scrollLeft=$7+$4-$2;}else if($4>$2||$7<$3){$6.scrollLeft=$7;}else if(($7+$4)>($3+$2)){$6.scrollLeft=$7+$4-$2;}$7=$6.offsetLeft;$4=$6.offsetWidth;}else{$7+=$6.offsetLeft;}if($6.tagName.toLowerCase()==$[126]){break;}$6=$6.offsetParent;}return true;},scrollY:function($0,$1){var $2,$3,$4,$5;var $6=$0.parentNode;var $7=$0.offsetTop;var $4=$0.offsetHeight;while($6){switch(qx.html.Style.getStyleProperty($6,$[63])){case $[26]:case $[3]:case $[274]:$5=true;break;default:switch(qx.html.Style.getStyleProperty($6,$[179])){case $[26]:case $[3]:$5=true;break;default:$5=false;}}if($5){$2=$6.clientHeight;$3=$6.scrollTop;if($1){$6.scrollTop=$7;}else if($1==false){$6.scrollTop=$7+$4-$2;}else if($4>$2||$7<$3){$6.scrollTop=$7;}else if(($7+$4)>($3+$2)){$6.scrollTop=$7+$4-$2;}$7=$6.offsetTop;$4=$6.offsetHeight;}else{$7+=$6.offsetTop;}if($6.tagName.toLowerCase()==$[126]){break;}$6=$6.offsetParent;}return true;}}});
91
qx.Class.define($[1221],{extend:qx.core.Target,construct:function($0,$1,$2){arguments.callee.base.call(this);if($0 instanceof Array){this._list=qx.lang.Object.fromArray($0);}else{this._list=$0;}this._timer=new qx.client.Timer(qx.core.Setting.get($[1350]));this._timer.addEventListener($[86],this.__oninterval,this);if($1){this.addEventListener($[15],$1,$2||null);}},events:{"completed":$[4]},members:{_stopped:false,start:function(){if(qx.lang.Object.isEmpty(this._list)){this.createDispatchEvent($[15]);return;}for(var $0 in this._list){var $1=qx.io.image.PreloaderManager.getInstance().create(qx.io.Alias.getInstance().resolve($0));if($1.isErroneous()||$1.isLoaded()){delete this._list[$0];}else{$1._origSource=$0;$1.addEventListener($[82],this.__onload,this);$1.addEventListener($[95],this.__onerror,this);}}this._check();},__onload:function($0){if(this.getDisposed()){return;}delete this._list[$0.getTarget()._origSource];this._check();},__onerror:function($0){if(this.getDisposed()){return;}delete this._list[$0.getTarget()._origSource];this._check();},__oninterval:function($0){this.debug("Cannot preload: "+qx.lang.Object.getKeysAsString(this._list));this._stopped=true;this._timer.stop();this.createDispatchEvent($[15]);},_check:function(){if(this._stopped){return;}if(qx.lang.Object.isEmpty(this._list)){this._timer.stop();this.createDispatchEvent($[15]);}else{this._timer.restart();}}},settings:{"qx.preloaderTimeout":3000},destruct:function(){if(this._timer){this._timer.removeEventListener($[86],this.__oninterval,this);this._disposeObjects($[284]);}this._disposeFields($[336]);}});
92
qx.Class.define($[1790],{type:$[18],extend:qx.core.Object,construct:function(){arguments.callee.base.call(this);this._objects={};},members:{add:function($0){this._objects[$0.getUri()]=$0;},remove:function($0){delete this._objects[$0.getUri()];},has:function($0){return this._objects[$0]!=null;},get:function($0){return this._objects[$0];},create:function($0){if(this._objects[$0]){return this._objects[$0];}return new qx.io.image.Preloader($0);}},destruct:function(){this._disposeFields($[497]);}});
93
qx.Class.define($[416],{extend:qx.core.Target,events:{"load":$[4],"error":$[4]},construct:function($0){if(qx.io.image.PreloaderManager.getInstance().has($0)){this.debug("Reuse qx.io.image.Preloader in old-style!");this.debug("Please use qx.io.image.PreloaderManager.getInstance().create(source) instead!");return qx.io.image.PreloaderManager.getInstance().get($0);}arguments.callee.base.call(this);this._element=new Image;this._element.onload=qx.lang.Function.bind(this.__onload,this);this._element.onerror=qx.lang.Function.bind(this.__onerror,this);this._source=$0;this._element.src=$0;if(qx.core.Variant.isSet($[1],$[13])){this._isPng=/\.png$/i.test(this._element.nameProp);}qx.io.image.PreloaderManager.getInstance().add(this);},members:{_source:null,_isLoaded:false,_isErroneous:false,getUri:function(){return this._source;},getSource:function(){return this._source;},isLoaded:function(){return this._isLoaded;},isErroneous:function(){return this._isErroneous;},_isPng:false,getIsPng:function(){return this._isPng;},getWidth:qx.core.Variant.select($[1],{"gecko":function(){return this._element.naturalWidth;},"default":function(){return this._element.width;}}),getHeight:qx.core.Variant.select($[1],{"gecko":function(){return this._element.naturalHeight;},"default":function(){return this._element.height;}}),__onload:function(){if(this._isLoaded||this._isErroneous){return;}this._isLoaded=true;this._isErroneous=false;if(this.hasEventListeners($[82])){this.dispatchEvent(new qx.event.type.Event($[82]),true);}},__onerror:function(){if(this._isLoaded||this._isErroneous){return;}this.debug("Could not load: "+this._source);this._isLoaded=false;this._isErroneous=true;if(this.hasEventListeners($[95])){this.dispatchEvent(new qx.event.type.Event($[95]),true);}}},destruct:function(){if(this._element){this._element.onload=this._element.onerror=null;}this._disposeFields($[329],$[1737],$[1447],$[1585]);}});
94
qx.Class.define($[489],{extend:qx.core.Target,events:{"execute":$[98]},construct:function($0,$1){arguments.callee.base.call(this);this.__modifier={};this.__key=null;if($0!=null){this.setShortcut($0);}if($1!=null){this.warn("The use of keyCode in command is deprecated. Use keyIdentifier instead.");this.setKeyCode($1);}{};qx.event.handler.EventHandler.getInstance().addCommand(this);},properties:{enabled:{init:true,check:$[2],event:$[463]},shortcut:{check:$[6],apply:$[1481],nullable:true},keyCode:{check:$[19],nullable:true},keyIdentifier:{check:$[6],nullable:true}},members:{getKeyCode:function(){return this._keyCode;},setKeyCode:function($0){qx.log.Logger.deprecatedMethodWarning(arguments.callee);this._keyCode=$0;},execute:function($0){if(this.hasEventListeners($[128])){var $1=new qx.event.type.DataEvent($[128],$0);this.dispatchEvent($1,true);}return false;},_applyShortcut:function($0,$1){if($0){this.__modifier={};this.__key=null;var $2=$0.split(/[-+\s]+/);var $3=$2.length;for(var $4=0;$4<$3;$4++){var $5=this.__oldKeyNameToKeyIdentifier($2[$4]);switch($5){case $[125]:case $[142]:case $[223]:case $[136]:this.__modifier[$5]=true;break;case $[212]:var $6=$[1707]+$2[$4];this.error($6);throw $6;default:if(this.__key){var $6=$[1550];this.error($6);throw $6;}this.__key=$5;}}}return true;},matchesKeyEvent:function($0){var $1=this.__key||this.getKeyIdentifier();if(!$1&&!this.getKeyCode()){return ;}if((this.__modifier.Shift&&!$0.isShiftPressed())||(this.__modifier.Control&&!$0.isCtrlPressed())||(this.__modifier.Alt&&!$0.isAltPressed())){return false;}if($1){if($1==$0.getKeyIdentifier()){return true;}}else{if(this.getKeyCode()==$0.getKeyCode()){return true;}}return false;},__oldKeyNameToKeyIdentifierMap:{esc:$[129],ctrl:$[125],print:$[237],del:$[169],pageup:$[88],pagedown:$[99],numlock:$[127],numpad_0:$[41],numpad_1:$[482],numpad_2:$[419],numpad_3:$[433],numpad_4:$[385],numpad_5:$[403],numpad_6:$[347],numpad_7:$[362],numpad_8:$[345],numpad_9:$[172],numpad_divide:$[135],numpad_multiply:$[140],numpad_minus:$[137],numpad_plus:$[246]},__oldKeyNameToKeyIdentifier:function($0){var $1=qx.event.handler.KeyEventHandler.getInstance();var $2=$[212];if($1.isValidKeyIdentifier($0)){return $0;}if($0.length==1&&$0>=$[313]&&$0<=$[1148]){return $0.toUpperCase();}$0=$0.toLowerCase();if(!qx.event.type.KeyEvent.keys[$0]){return $[212];}var $2=this.__oldKeyNameToKeyIdentifierMap[$0];if($2){return $2;}else{return qx.lang.String.toFirstUp($0);}},toString:function(){var $0=this.getKeyCode();var $1=this.__key||this.getKeyIdentifier();var $2=[];for(var $3 in this.__modifier){$2.push(qx.locale.Key.getKeyName($[258],$3));}if($1){$2.push(qx.locale.Key.getKeyName($[258],$1));}if($0!=null){var $4=qx.event.type.KeyEvent.codes[$0];$2.push($4?qx.lang.String.toFirstUp($4):String($0));}return $2.join($[137]);}},destruct:function(){var $0=qx.event.handler.EventHandler.getInstance();if($0){$0.removeCommand(this);}this._disposeFields($[1654],$[1022]);}});
95
qx.Class.define($[690],{statics:{getKeyName:function($0,$1,$2){if($0!=$[258]&&$0!=$[1745]){throw new Error('format must be one of: "short", "full"');}var $3=$[1126]+$0+$[155]+$1;var $4=new qx.locale.LocalizedString($3,[],$2);if($4==$3){return qx.locale.Key._keyNames[$3]||$1;}else{return $4.toString();}}},defer:function($0,$1,$2){var $3={};var $4=qx.locale.Manager;$3[$4.marktr($[858])]=$[191];$3[$4.marktr($[1194])]=$[188];$3[$4.marktr($[937])]=$[85];$3[$4.marktr($[1522])]=$[46];$3[$4.marktr($[1780])]=$[142];$3[$4.marktr($[1783])]=$[1100];$3[$4.marktr($[1304])]=$[136];$3[$4.marktr($[951])]=$[1338];$3[$4.marktr($[1728])]=$[223];$3[$4.marktr($[1701])]=$[1313];$3[$4.marktr($[650])]=$[60];$3[$4.marktr($[1246])]=$[69];$3[$4.marktr($[657])]=$[64];$3[$4.marktr($[1177])]=$[76];$3[$4.marktr($[1730])]=$[1409];$3[$4.marktr($[1134])]=$[782];$3[$4.marktr($[727])]=$[162];$3[$4.marktr($[1101])]=$[150];$3[$4.marktr($[1033])]=$[801];$3[$4.marktr($[746])]=$[989];$3[$4.marktr($[648])]=$[999];$3[$4.marktr($[1502])]=$[598];$3[$4.marktr($[899])]=$[266];$3[$4.marktr($[1731])]=$[248];$3[$4.marktr($[1565])]=$[286];$3[$4.marktr($[1564])]=$[279];$3[$4.marktr($[1764])]=$[191];$3[$4.marktr($[1137])]=$[770];$3[$4.marktr($[787])]=$[85];$3[$4.marktr($[1085])]=$[46];$3[$4.marktr($[1363])]=$[142];$3[$4.marktr($[767])]=$[125];$3[$4.marktr($[781])]=$[136];$3[$4.marktr($[1789])]=$[409];$3[$4.marktr($[614])]=$[223];$3[$4.marktr($[1014])]=$[129];$3[$4.marktr($[1624])]=$[60];$3[$4.marktr($[738])]=$[69];$3[$4.marktr($[1759])]=$[64];$3[$4.marktr($[778])]=$[76];$3[$4.marktr($[1444])]=$[88];$3[$4.marktr($[1012])]=$[99];$3[$4.marktr($[1369])]=$[162];$3[$4.marktr($[1594])]=$[150];$3[$4.marktr($[1248])]=$[203];$3[$4.marktr($[1395])]=$[169];$3[$4.marktr($[1366])]=$[127];$3[$4.marktr($[739])]=$[237];$3[$4.marktr($[963])]=$[266];$3[$4.marktr($[1439])]=$[248];$3[$4.marktr($[736])]=$[286];$3[$4.marktr($[1423])]=$[279];$0._keyNames=$3;}});
96
qx.Class.define($[508],{extend:qx.util.manager.Object,properties:{activeWindow:{check:$[119],nullable:true,apply:$[1122]}},members:{_applyActiveWindow:function($0,$1){qx.ui.popup.PopupManager.getInstance().update();if($1){$1.setActive(false);}if($0){$0.setActive(true);}if($1&&$1.getModal()){$1.getTopLevelWidget().release($1);}if($0&&$0.getModal()){$0.getTopLevelWidget().block($0);}},update:function(){var $0,$1;var $2=this.getAll();for(var $1 in $2){$0=$2[$1];if(!$0.getAutoHide()){continue;}$0.hide();}},compareWindows:function($0,$1){switch($0.getWindowManager().getActiveWindow()){case $0:return 1;case $1:return -1;}return $0.getZIndex()-$1.getZIndex();},add:function($0){arguments.callee.base.call(this,$0);this.setActiveWindow($0);},remove:function($0){arguments.callee.base.call(this,$0);if(this.getActiveWindow()==$0){var $1=[];for(var $2 in this._objects){$1.push(this._objects[$2]);}var $3=$1.length;if($3==0){this.setActiveWindow(null);}else if($3==1){this.setActiveWindow($1[0]);}else if($3>1){$1.sort(this.compareWindows);this.setActiveWindow($1[$3-1]);}}}}});
97
qx.Class.define($[166],{type:$[18],extend:qx.util.manager.Object,construct:function(){arguments.callee.base.call(this);},members:{update:function($0){if(!($0 instanceof qx.ui.core.Widget)){$0=null;}var $1,$2;var $3=this.getAll();for($2 in $3){$1=$3[$2];if(!$1.getAutoHide()||$0==$1||$1.contains($0)){continue;}if(qx.Class.isDefined($[241])&&$0 instanceof qx.ui.popup.ToolTip&&!($1 instanceof qx.ui.popup.ToolTip)){continue;}$1.hide();}}}});
97
qx.Class.define($[166],{type:$[18],extend:qx.util.manager.Object,construct:function(){arguments.callee.base.call(this);},members:{update:function($0){if(!($0 instanceof qx.ui.core.Widget)){$0=null;}var $1,$2;var $3=this.getAll();for($2 in $3){$1=$3[$2];if(!$1.getAutoHide()||$0==$1||$1.contains($0)){continue;}if(qx.Class.isDefined($[241])&&$0 instanceof qx.ui.popup.ToolTip&&!($1 instanceof qx.ui.popup.ToolTip)){continue;}$1.hide();}}}});
98
qx.Class.define($[688],{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);this.setZIndex(this._minZIndex);if(this._isFocusRoot){this.activateFocusRoot();}this.initHeight();this.initWidth();},properties:{appearance:{refine:true,init:$[1124]},width:{refine:true,init:$[3]},height:{refine:true,init:$[3]},display:{refine:true,init:false},autoHide:{check:$[2],init:true},centered:{check:$[2],init:false},restrictToPageOnOpen:{check:$[2],init:true},restrictToPageLeft:{check:$[5],init:0},restrictToPageRight:{check:$[5],init:0},restrictToPageTop:{check:$[5],init:0},restrictToPageBottom:{check:$[5],init:0}},members:{_isFocusRoot:true,_showTimeStamp:(new Date(0)).valueOf(),_hideTimeStamp:(new Date(0)).valueOf(),_beforeAppear:function(){arguments.callee.base.call(this);if(this.getRestrictToPageOnOpen()){this._wantedLeft=this.getLeft();if(this._wantedLeft!=null){this.setLeft(10000);if(this.getElement()!=null){this.getElement().style.left=10000;}}}qx.ui.popup.PopupManager.getInstance().add(this);qx.ui.popup.PopupManager.getInstance().update(this);this._showTimeStamp=(new Date).valueOf();this.bringToFront();},_beforeDisappear:function(){arguments.callee.base.call(this);qx.ui.popup.PopupManager.getInstance().remove(this);this._hideTimeStamp=(new Date).valueOf();},_afterAppear:function(){arguments.callee.base.call(this);if(this.getRestrictToPageOnOpen()){var $0=qx.ui.core.ClientDocument.getInstance();var $1=$0.getClientWidth();var $2=$0.getClientHeight();var $3=qx.bom.Viewport.getScrollTop();var $4=qx.bom.Viewport.getScrollLeft();var $5=this.getRestrictToPageLeft()+$4;var $6=this.getRestrictToPageRight()-$4;var $7=this.getRestrictToPageTop()+$3;var $8=this.getRestrictToPageBottom()-$3;var $9=(this._wantedLeft==null)?this.getLeft():this._wantedLeft;var $a=this.getTop();var $b=this.getBoxWidth();var $c=this.getBoxHeight();var $d=this.getLeft();var $e=$a;if($9+$b>$1-$6){$9=$1-$6-$b;}if($a+$c>$2-$8){$a=$2-$8-$c;}if($9<$5){$9=$5;}if($a<$7){$a=$7;}if($9!=$d||$a!=$e){var $f=this;window.setTimeout(function(){$f.setLeft($9);$f.setTop($a);},0);}}},_makeActive:function(){this.getFocusRoot().setActiveChild(this);},_makeInactive:function(){var $0=this.getFocusRoot();var $1=$0.getActiveChild();if($1==this){$0.setActiveChild($0);}},_minZIndex:1e6,bringToFront:function(){this.setZIndex(this._minZIndex+1000000);this._sendTo();},sendToBack:function(){this.setZIndex(this._minZIndex+1);this._sendTo();},_sendTo:function(){var $0=qx.lang.Object.getValues(qx.ui.popup.PopupManager.getInstance().getAll());if(qx.Class.isDefined($[152])){var $1=qx.lang.Object.getValues(qx.ui.menu.Manager.getInstance().getAll());var $2=$0.concat($1).sort(qx.util.Compare.byZIndex);}else{var $2=$0.sort(qx.util.Compare.byZIndex);}var $3=$2.length;var $4=this._minZIndex;for(var $5=0;$5<$3;$5++){$2[$5].setZIndex($4++);}},getShowTimeStamp:function(){return this._showTimeStamp;},getHideTimeStamp:function(){return this._hideTimeStamp;},positionRelativeTo:function($0,$1,$2){if($0 instanceof qx.ui.core.Widget){$0=$0.getElement();}if($0){var $3=qx.bom.element.Location.get($0);this.setLocation($3.left+($1||0),$3.top+($2||0));}else{this.warn('Missing reference element');}},centerToBrowser:function(){var $0=qx.ui.core.ClientDocument.getInstance();var $1=($0.getClientWidth()-this.getBoxWidth())/2;var $2=($0.getClientHeight()-this.getBoxHeight())/2;this.setLeft($1<0?0:$1);this.setTop($2<0?0:$2);}},destruct:function(){qx.ui.popup.PopupManager.getInstance().remove(this);this._disposeFields($[946],$[1125]);}});
98
qx.Class.define($[689],{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);this.setZIndex(this._minZIndex);if(this._isFocusRoot){this.activateFocusRoot();}this.initHeight();this.initWidth();},properties:{appearance:{refine:true,init:$[1123]},width:{refine:true,init:$[3]},height:{refine:true,init:$[3]},display:{refine:true,init:false},autoHide:{check:$[2],init:true},centered:{check:$[2],init:false},restrictToPageOnOpen:{check:$[2],init:true},restrictToPageLeft:{check:$[5],init:0},restrictToPageRight:{check:$[5],init:0},restrictToPageTop:{check:$[5],init:0},restrictToPageBottom:{check:$[5],init:0}},members:{_isFocusRoot:true,_showTimeStamp:(new Date(0)).valueOf(),_hideTimeStamp:(new Date(0)).valueOf(),_beforeAppear:function(){arguments.callee.base.call(this);if(this.getRestrictToPageOnOpen()){this._wantedLeft=this.getLeft();if(this._wantedLeft!=null){this.setLeft(10000);if(this.getElement()!=null){this.getElement().style.left=10000;}}}qx.ui.popup.PopupManager.getInstance().add(this);qx.ui.popup.PopupManager.getInstance().update(this);this._showTimeStamp=(new Date).valueOf();this.bringToFront();},_beforeDisappear:function(){arguments.callee.base.call(this);qx.ui.popup.PopupManager.getInstance().remove(this);this._hideTimeStamp=(new Date).valueOf();},_afterAppear:function(){arguments.callee.base.call(this);if(this.getRestrictToPageOnOpen()){var $0=qx.ui.core.ClientDocument.getInstance();var $1=$0.getClientWidth();var $2=$0.getClientHeight();var $3=qx.bom.Viewport.getScrollTop();var $4=qx.bom.Viewport.getScrollLeft();var $5=this.getRestrictToPageLeft()+$4;var $6=this.getRestrictToPageRight()-$4;var $7=this.getRestrictToPageTop()+$3;var $8=this.getRestrictToPageBottom()-$3;var $9=(this._wantedLeft==null)?this.getLeft():this._wantedLeft;var $a=this.getTop();var $b=this.getBoxWidth();var $c=this.getBoxHeight();var $d=this.getLeft();var $e=$a;if($9+$b>$1-$6){$9=$1-$6-$b;}if($a+$c>$2-$8){$a=$2-$8-$c;}if($9<$5){$9=$5;}if($a<$7){$a=$7;}if($9!=$d||$a!=$e){var $f=this;window.setTimeout(function(){$f.setLeft($9);$f.setTop($a);},0);}}},_makeActive:function(){this.getFocusRoot().setActiveChild(this);},_makeInactive:function(){var $0=this.getFocusRoot();var $1=$0.getActiveChild();if($1==this){$0.setActiveChild($0);}},_minZIndex:1e6,bringToFront:function(){this.setZIndex(this._minZIndex+1000000);this._sendTo();},sendToBack:function(){this.setZIndex(this._minZIndex+1);this._sendTo();},_sendTo:function(){var $0=qx.lang.Object.getValues(qx.ui.popup.PopupManager.getInstance().getAll());if(qx.Class.isDefined($[152])){var $1=qx.lang.Object.getValues(qx.ui.menu.Manager.getInstance().getAll());var $2=$0.concat($1).sort(qx.util.Compare.byZIndex);}else{var $2=$0.sort(qx.util.Compare.byZIndex);}var $3=$2.length;var $4=this._minZIndex;for(var $5=0;$5<$3;$5++){$2[$5].setZIndex($4++);}},getShowTimeStamp:function(){return this._showTimeStamp;},getHideTimeStamp:function(){return this._hideTimeStamp;},positionRelativeTo:function($0,$1,$2){if($0 instanceof qx.ui.core.Widget){$0=$0.getElement();}if($0){var $3=qx.bom.element.Location.get($0);this.setLocation($3.left+($1||0),$3.top+($2||0));}else{this.warn('Missing reference element');}},centerToBrowser:function(){var $0=qx.ui.core.ClientDocument.getInstance();var $1=($0.getClientWidth()-this.getBoxWidth())/2;var $2=($0.getClientHeight()-this.getBoxHeight())/2;this.setLeft($1<0?0:$1);this.setTop($2<0?0:$2);}},destruct:function(){qx.ui.popup.PopupManager.getInstance().remove(this);this._disposeFields($[945],$[1124]);}});
99
qx.Class.define($[1068],{statics:{byString:function($0,$1){return $0==$1?0:$0>$1?1:-1;},byStringCaseInsensitive:function($0,$1){return qx.util.Compare.byString($0.toLowerCase(),$1.toLowerCase());},byStringUmlautsShort:function($0,$1){return qx.util.Compare.byString(qx.util.Normalization.umlautsShort($0),qx.util.Normalization.umlautsShort($1));},byStringUmlautsShortCaseInsensitive:function($0,$1){return qx.util.Compare.byString(qx.util.Normalization.umlautsShort($0).toLowerCase(),qx.util.Normalization.umlautsShort($1).toLowerCase());},byStringUmlautsLong:function($0,$1){return qx.util.Compare.byString(qx.util.Normalization.umlautsLong($0),qx.util.Normalization.umlautsLong($1));},byStringUmlautsLongCaseInsensitive:function($0,$1){return qx.util.Compare.byString(qx.util.Normalization.umlautsLong($0).toLowerCase(),qx.util.Normalization.umlautsLong($1).toLowerCase());},byFloat:function($0,$1){return $0-$1;},byIntegerString:function($0,$1){return parseInt($0)-parseInt($1);},byFloatString:function($0,$1){return parseFloat($0)-parseFloat($1);},byIPv4:function($0,$1){var $2=$0.split($[24],4);var $3=$1.split($[24],4);for(var $4=0;$4<3;$4++){$0=parseInt($2[$4]);$1=parseInt($3[$4]);if($0!=$1){return $0-$1;}}return parseInt($2[3])-parseInt($3[3]);},byZIndex:function($0,$1){return $0.getZIndex()-$1.getZIndex();}},defer:function($0){$0.byInteger=$0.byNumber=$0.byFloat;$0.byNumberString=$0.byFloatString;}});
99
qx.Class.define($[1068],{statics:{byString:function($0,$1){return $0==$1?0:$0>$1?1:-1;},byStringCaseInsensitive:function($0,$1){return qx.util.Compare.byString($0.toLowerCase(),$1.toLowerCase());},byStringUmlautsShort:function($0,$1){return qx.util.Compare.byString(qx.util.Normalization.umlautsShort($0),qx.util.Normalization.umlautsShort($1));},byStringUmlautsShortCaseInsensitive:function($0,$1){return qx.util.Compare.byString(qx.util.Normalization.umlautsShort($0).toLowerCase(),qx.util.Normalization.umlautsShort($1).toLowerCase());},byStringUmlautsLong:function($0,$1){return qx.util.Compare.byString(qx.util.Normalization.umlautsLong($0),qx.util.Normalization.umlautsLong($1));},byStringUmlautsLongCaseInsensitive:function($0,$1){return qx.util.Compare.byString(qx.util.Normalization.umlautsLong($0).toLowerCase(),qx.util.Normalization.umlautsLong($1).toLowerCase());},byFloat:function($0,$1){return $0-$1;},byIntegerString:function($0,$1){return parseInt($0)-parseInt($1);},byFloatString:function($0,$1){return parseFloat($0)-parseFloat($1);},byIPv4:function($0,$1){var $2=$0.split($[24],4);var $3=$1.split($[24],4);for(var $4=0;$4<3;$4++){$0=parseInt($2[$4]);$1=parseInt($3[$4]);if($0!=$1){return $0-$1;}}return parseInt($2[3])-parseInt($3[3]);},byZIndex:function($0,$1){return $0.getZIndex()-$1.getZIndex();}},defer:function($0){$0.byInteger=$0.byNumber=$0.byFloat;$0.byNumberString=$0.byFloatString;}});
100
qx.Class.define($[734],{statics:{__umlautsRegExp:new RegExp($[1716],$[289]),__umlautsShortData:{"\xC4":$[174],"\xD6":$[1094],"\xDC":$[671],"\xE4":$[313],"\xF6":$[713],"\xFC":$[1602],"\xDF":$[534]},__umlautsShort:function($0){return qx.util.Normalization.__umlautsShortData[$0];},umlautsShort:function($0){return $0.replace(qx.util.Normalization.__umlautsRegExp,qx.lang.Function.bind(this.__umlautsShort,this));},__umlautsLongData:{"\xC4":$[1088],"\xD6":$[1614],"\xDC":$[1230],"\xE4":$[1016],"\xF6":$[1520],"\xFC":$[1168],"\xDF":$[1514]},__umlautsLong:function($0){return qx.util.Normalization.__umlautsLongData[$0];},umlautsLong:function($0){return $0.replace(qx.util.Normalization.__umlautsRegExp,qx.lang.Function.bind(this.__umlautsLong,this));}}});
100
qx.Class.define($[735],{statics:{__umlautsRegExp:new RegExp($[1716],$[289]),__umlautsShortData:{"\xC4":$[174],"\xD6":$[1094],"\xDC":$[672],"\xE4":$[313],"\xF6":$[714],"\xFC":$[1601],"\xDF":$[534]},__umlautsShort:function($0){return qx.util.Normalization.__umlautsShortData[$0];},umlautsShort:function($0){return $0.replace(qx.util.Normalization.__umlautsRegExp,qx.lang.Function.bind(this.__umlautsShort,this));},__umlautsLongData:{"\xC4":$[1088],"\xD6":$[1613],"\xDC":$[1229],"\xE4":$[1015],"\xF6":$[1519],"\xFC":$[1167],"\xDF":$[1513]},__umlautsLong:function($0){return qx.util.Normalization.__umlautsLongData[$0];},umlautsLong:function($0){return $0.replace(qx.util.Normalization.__umlautsRegExp,qx.lang.Function.bind(this.__umlautsLong,this));}}});
101
qx.Class.define($[1229],{statics:{__style:function($0,$1){return qx.bom.element.Style.get($0,$1,qx.bom.element.Style.COMPUTED_MODE,false);},__num:function($0,$1){return parseInt(qx.bom.element.Style.get($0,$1,qx.bom.element.Style.COMPUTED_MODE,false))||0;},__computeScroll:function($0){var $1=0,$2=0;if(qx.core.Variant.isSet($[1],$[13])&&$0.getBoundingClientRect){var $3=qx.dom.Node.getWindow($0);$1-=qx.bom.Viewport.getScrollLeft($3);$2-=qx.bom.Viewport.getScrollTop($3);}else{var $4=qx.dom.Node.getDocument($0).body;$0=$0.parentNode;while($0&&$0!=$4){$1+=$0.scrollLeft;$2+=$0.scrollTop;$0=$0.parentNode;}}return {left:$1,top:$2};},__computeBody:qx.core.Variant.select($[1],{"mshtml":function($0){var $1=qx.dom.Node.getDocument($0);var $2=$1.body;var $3=$2.offsetLeft;var $4=$2.offsetTop;$3-=this.__num($2,$[72]);$4-=this.__num($2,$[68]);if($1.compatMode===$[91]){$3+=this.__num($2,$[159]);$4+=this.__num($2,$[153]);}return {left:$3,top:$4};},"webkit":function($0){var $1=qx.dom.Node.getDocument($0);var $2=$1.body;var $3=$2.offsetLeft;var $4=$2.offsetTop;$3+=this.__num($2,$[72]);$4+=this.__num($2,$[68]);if($1.compatMode===$[91]){$3+=this.__num($2,$[159]);$4+=this.__num($2,$[153]);}return {left:$3,top:$4};},"gecko":function($0){var $1=qx.dom.Node.getDocument($0).body;var $2=$1.offsetLeft;var $3=$1.offsetTop;if(qx.bom.element.Dimension.getBoxSizing($1)!==$[238]){$2+=this.__num($1,$[72]);$3+=this.__num($1,$[68]);if(!$0.getBoundingClientRect){var $4;while($0){if(this.__style($0,$[78])===$[54]||this.__style($0,$[78])===$[123]){$4=true;break;}$0=$0.offsetParent;}if(!$4){$2+=this.__num($1,$[72]);$3+=this.__num($1,$[68]);}}}return {left:$2,top:$3};},"default":function($0){var $1=qx.dom.Node.getDocument($0).body;var $2=$1.offsetLeft;var $3=$1.offsetTop;return {left:$2,top:$3};}}),__computeOffset:qx.core.Variant.select($[1],{"mshtml|webkit":function($0){var $1=qx.dom.Node.getDocument($0);if($0.getBoundingClientRect){var $2=$0.getBoundingClientRect();var $3=$2.left;var $4=$2.top;if($1.compatMode===$[91]){$3-=this.__num($0,$[72]);$4-=this.__num($0,$[68]);}}else{var $3=$0.offsetLeft;var $4=$0.offsetTop;$0=$0.offsetParent;var $5=$1.body;while($0&&$0!=$5){$3+=$0.offsetLeft;$4+=$0.offsetTop;$3+=this.__num($0,$[72]);$4+=this.__num($0,$[68]);$0=$0.offsetParent;}}return {left:$3,top:$4};},"gecko":function($0){if($0.getBoundingClientRect){var $1=$0.getBoundingClientRect();var $2=Math.round($1.left);var $3=Math.round($1.top);}else{var $2=0;var $3=0;var $4=qx.dom.Node.getDocument($0).body;var $5=qx.bom.element.Dimension;if($5.getBoxSizing($0)!==$[238]){$2-=this.__num($0,$[72]);$3-=this.__num($0,$[68]);}while($0&&$0!==$4){$2+=$0.offsetLeft;$3+=$0.offsetTop;if($5.getBoxSizing($0)!==$[238]){$2+=this.__num($0,$[72]);$3+=this.__num($0,$[68]);}if($0.parentNode&&this.__style($0.parentNode,$[63])!=$[1661]){$2+=this.__num($0.parentNode,$[72]);$3+=this.__num($0.parentNode,$[68]);}$0=$0.offsetParent;}}return {left:$2,top:$3};},"default":function($0){var $1=0;var $2=0;var $3=qx.dom.Node.getDocument($0).body;while($0&&$0!==$3){$1+=$0.offsetLeft;$2+=$0.offsetTop;$0=$0.offsetParent;}return {left:$1,top:$2};}}),get:function($0,$1){var $2=this.__computeBody($0);if($0.tagName==$[821]){var $3=$2.left;var $4=$2.top;}else{var $5=this.__computeOffset($0);var $6=this.__computeScroll($0);var $3=$5.left+$2.left-$6.left;var $4=$5.top+$2.top-$6.top;}var $7=$3+$0.offsetWidth;var $8=$4+$0.offsetHeight;if($1){switch($1){case $[429]:$3-=this.__num($0,$[159]);$4-=this.__num($0,$[153]);$7+=this.__num($0,$[225]);$8+=this.__num($0,$[211]);break;case $[1714]:break;case $[352]:$3+=this.__num($0,$[242]);$4+=this.__num($0,$[215]);$7-=this.__num($0,$[245]);$8-=this.__num($0,$[231]);case $[26]:$3-=$0.scrollLeft;$4-=$0.scrollTop;$7+=$0.scrollLeft;$8+=$0.scrollTop;case $[591]:$3+=this.__num($0,$[72]);$4+=this.__num($0,$[68]);$7-=this.__num($0,$[423]);$8-=this.__num($0,$[342]);break;default:throw new Error("Invalid mode for location detection: "+$1);}}return {left:$3,top:$4,right:$7,bottom:$8};},getLeft:function($0,$1){return this.get($0,$1).left;},getTop:function($0,$1){return this.get($0,$1).top;},getRight:function($0,$1){return this.get($0,$1).right;},getBottom:function($0,$1){return this.get($0,$1).bottom;},getRelative:function($0,$1,$2,$3){var $4=this.get($0,$2);var $5=this.get($1,$3);return {left:$4.left-$5.left,top:$4.top-$5.top,right:$4.right-$5.right,bottom:$4.bottom-$5.bottom};}}});
101
qx.Class.define($[1228],{statics:{__style:function($0,$1){return qx.bom.element.Style.get($0,$1,qx.bom.element.Style.COMPUTED_MODE,false);},__num:function($0,$1){return parseInt(qx.bom.element.Style.get($0,$1,qx.bom.element.Style.COMPUTED_MODE,false))||0;},__computeScroll:function($0){var $1=0,$2=0;if(qx.core.Variant.isSet($[1],$[13])&&$0.getBoundingClientRect){var $3=qx.dom.Node.getWindow($0);$1-=qx.bom.Viewport.getScrollLeft($3);$2-=qx.bom.Viewport.getScrollTop($3);}else{var $4=qx.dom.Node.getDocument($0).body;$0=$0.parentNode;while($0&&$0!=$4){$1+=$0.scrollLeft;$2+=$0.scrollTop;$0=$0.parentNode;}}return {left:$1,top:$2};},__computeBody:qx.core.Variant.select($[1],{"mshtml":function($0){var $1=qx.dom.Node.getDocument($0);var $2=$1.body;var $3=$2.offsetLeft;var $4=$2.offsetTop;$3-=this.__num($2,$[72]);$4-=this.__num($2,$[68]);if($1.compatMode===$[91]){$3+=this.__num($2,$[159]);$4+=this.__num($2,$[153]);}return {left:$3,top:$4};},"webkit":function($0){var $1=qx.dom.Node.getDocument($0);var $2=$1.body;var $3=$2.offsetLeft;var $4=$2.offsetTop;$3+=this.__num($2,$[72]);$4+=this.__num($2,$[68]);if($1.compatMode===$[91]){$3+=this.__num($2,$[159]);$4+=this.__num($2,$[153]);}return {left:$3,top:$4};},"gecko":function($0){var $1=qx.dom.Node.getDocument($0).body;var $2=$1.offsetLeft;var $3=$1.offsetTop;if(qx.bom.element.Dimension.getBoxSizing($1)!==$[238]){$2+=this.__num($1,$[72]);$3+=this.__num($1,$[68]);if(!$0.getBoundingClientRect){var $4;while($0){if(this.__style($0,$[78])===$[54]||this.__style($0,$[78])===$[123]){$4=true;break;}$0=$0.offsetParent;}if(!$4){$2+=this.__num($1,$[72]);$3+=this.__num($1,$[68]);}}}return {left:$2,top:$3};},"default":function($0){var $1=qx.dom.Node.getDocument($0).body;var $2=$1.offsetLeft;var $3=$1.offsetTop;return {left:$2,top:$3};}}),__computeOffset:qx.core.Variant.select($[1],{"mshtml|webkit":function($0){var $1=qx.dom.Node.getDocument($0);if($0.getBoundingClientRect){var $2=$0.getBoundingClientRect();var $3=$2.left;var $4=$2.top;if($1.compatMode===$[91]){$3-=this.__num($0,$[72]);$4-=this.__num($0,$[68]);}}else{var $3=$0.offsetLeft;var $4=$0.offsetTop;$0=$0.offsetParent;var $5=$1.body;while($0&&$0!=$5){$3+=$0.offsetLeft;$4+=$0.offsetTop;$3+=this.__num($0,$[72]);$4+=this.__num($0,$[68]);$0=$0.offsetParent;}}return {left:$3,top:$4};},"gecko":function($0){if($0.getBoundingClientRect){var $1=$0.getBoundingClientRect();var $2=Math.round($1.left);var $3=Math.round($1.top);}else{var $2=0;var $3=0;var $4=qx.dom.Node.getDocument($0).body;var $5=qx.bom.element.Dimension;if($5.getBoxSizing($0)!==$[238]){$2-=this.__num($0,$[72]);$3-=this.__num($0,$[68]);}while($0&&$0!==$4){$2+=$0.offsetLeft;$3+=$0.offsetTop;if($5.getBoxSizing($0)!==$[238]){$2+=this.__num($0,$[72]);$3+=this.__num($0,$[68]);}if($0.parentNode&&this.__style($0.parentNode,$[63])!=$[1660]){$2+=this.__num($0.parentNode,$[72]);$3+=this.__num($0.parentNode,$[68]);}$0=$0.offsetParent;}}return {left:$2,top:$3};},"default":function($0){var $1=0;var $2=0;var $3=qx.dom.Node.getDocument($0).body;while($0&&$0!==$3){$1+=$0.offsetLeft;$2+=$0.offsetTop;$0=$0.offsetParent;}return {left:$1,top:$2};}}),get:function($0,$1){var $2=this.__computeBody($0);if($0.tagName==$[822]){var $3=$2.left;var $4=$2.top;}else{var $5=this.__computeOffset($0);var $6=this.__computeScroll($0);var $3=$5.left+$2.left-$6.left;var $4=$5.top+$2.top-$6.top;}var $7=$3+$0.offsetWidth;var $8=$4+$0.offsetHeight;if($1){switch($1){case $[430]:$3-=this.__num($0,$[159]);$4-=this.__num($0,$[153]);$7+=this.__num($0,$[225]);$8+=this.__num($0,$[211]);break;case $[1714]:break;case $[351]:$3+=this.__num($0,$[242]);$4+=this.__num($0,$[215]);$7-=this.__num($0,$[245]);$8-=this.__num($0,$[231]);case $[26]:$3-=$0.scrollLeft;$4-=$0.scrollTop;$7+=$0.scrollLeft;$8+=$0.scrollTop;case $[591]:$3+=this.__num($0,$[72]);$4+=this.__num($0,$[68]);$7-=this.__num($0,$[424]);$8-=this.__num($0,$[341]);break;default:throw new Error("Invalid mode for location detection: "+$1);}}return {left:$3,top:$4,right:$7,bottom:$8};},getLeft:function($0,$1){return this.get($0,$1).left;},getTop:function($0,$1){return this.get($0,$1).top;},getRight:function($0,$1){return this.get($0,$1).right;},getBottom:function($0,$1){return this.get($0,$1).bottom;},getRelative:function($0,$1,$2,$3){var $4=this.get($0,$2);var $5=this.get($1,$3);return {left:$4.left-$5.left,top:$4.top-$5.top,right:$4.right-$5.right,bottom:$4.bottom-$5.bottom};}}});
102
qx.Class.define($[926],{statics:{__hints:{names:{"float":qx.core.Variant.isSet($[1],$[13])?$[1157]:$[1205],"boxSizing":qx.core.Variant.isSet($[1],$[21])?$[1164]:$[458]},mshtmlPixel:{width:$[1008],height:$[762],left:$[1358],right:$[1431],top:$[1296],bottom:$[569]},special:{clip:true,cursor:true,opacity:true,overflowX:true,overflowY:true}},setCss:qx.core.Variant.select($[1],{"mshtml":function($0,$1){$0.style.cssText=$1;},"default":function($0,$1){$0.setAttribute($[44],$1);}}),getCss:qx.core.Variant.select($[1],{"mshtml":function($0){return $0.style.cssText.toLowerCase();},"default":function($0){return $0.getAttribute($[44]);}}),COMPUTED_MODE:1,CASCADED_MODE:2,LOCAL_MODE:3,set:function($0,$1,$2,$3){var $4=this.__hints;$1=$4.names[$1]||$1;$0.style[$1]=$2||$[0];},reset:function($0,$1,$2){var $3=this.__hints;$1=$3.names[$1]||$1;$0.style[$1]=$[0];},get:qx.core.Variant.select($[1],{"mshtml":function($0,$1,$2,$3){var $4=this.__hints;$1=$4.names[$1]||$1;switch($2){case this.LOCAL_MODE:return $0.style[$1]||$[0];case this.CASCADED_MODE:return $0.currentStyle[$1];default:var $5=$0.currentStyle[$1];if(/^-?[\.\d]+(px)?$/i.test($5)){return $5;}var $6=$4.mshtmlPixel[$1];if($6){var $7=$0.style[$1];$0.style[$1]=$5||0;var $8=$0.style[$6]+$[38];$0.style[$1]=$7;return $8;}if(/^-?[\.\d]+(em|pt|%)?$/i.test($5)){throw new Error("Untranslated computed property value: "+$1+". Only pixel values work well across different clients.");}return $5;}},"default":function($0,$1,$2,$3){var $4=this.__hints;$1=$4.names[$1]||$1;switch($2){case this.LOCAL_MODE:return $0.style[$1];case this.CASCADED_MODE:if($0.currentStyle){return $0.currentStyle[$1];}throw new Error("Cascaded styles are not supported in this browser!");default:var $5=qx.dom.Node.getDocument($0);var $6=$5.defaultView.getComputedStyle($0,null);return $6?$6[$1]:null;}}})}});
102
qx.Class.define($[925],{statics:{__hints:{names:{"float":qx.core.Variant.isSet($[1],$[13])?$[1156]:$[1204],"boxSizing":qx.core.Variant.isSet($[1],$[21])?$[1163]:$[459]},mshtmlPixel:{width:$[1007],height:$[763],left:$[1359],right:$[1431],top:$[1294],bottom:$[569]},special:{clip:true,cursor:true,opacity:true,overflowX:true,overflowY:true}},setCss:qx.core.Variant.select($[1],{"mshtml":function($0,$1){$0.style.cssText=$1;},"default":function($0,$1){$0.setAttribute($[44],$1);}}),getCss:qx.core.Variant.select($[1],{"mshtml":function($0){return $0.style.cssText.toLowerCase();},"default":function($0){return $0.getAttribute($[44]);}}),COMPUTED_MODE:1,CASCADED_MODE:2,LOCAL_MODE:3,set:function($0,$1,$2,$3){var $4=this.__hints;$1=$4.names[$1]||$1;$0.style[$1]=$2||$[0];},reset:function($0,$1,$2){var $3=this.__hints;$1=$3.names[$1]||$1;$0.style[$1]=$[0];},get:qx.core.Variant.select($[1],{"mshtml":function($0,$1,$2,$3){var $4=this.__hints;$1=$4.names[$1]||$1;switch($2){case this.LOCAL_MODE:return $0.style[$1]||$[0];case this.CASCADED_MODE:return $0.currentStyle[$1];default:var $5=$0.currentStyle[$1];if(/^-?[\.\d]+(px)?$/i.test($5)){return $5;}var $6=$4.mshtmlPixel[$1];if($6){var $7=$0.style[$1];$0.style[$1]=$5||0;var $8=$0.style[$6]+$[38];$0.style[$1]=$7;return $8;}if(/^-?[\.\d]+(em|pt|%)?$/i.test($5)){throw new Error("Untranslated computed property value: "+$1+". Only pixel values work well across different clients.");}return $5;}},"default":function($0,$1,$2,$3){var $4=this.__hints;$1=$4.names[$1]||$1;switch($2){case this.LOCAL_MODE:return $0.style[$1];case this.CASCADED_MODE:if($0.currentStyle){return $0.currentStyle[$1];}throw new Error("Cascaded styles are not supported in this browser!");default:var $5=qx.dom.Node.getDocument($0);var $6=$5.defaultView.getComputedStyle($0,null);return $6?$6[$1]:null;}}})}});
103
qx.Class.define($[625],{statics:{getWidth:function($0){return $0.offsetWidth;},getHeight:function($0){return $0.offsetHeight;},getClientWidth:function($0){return $0.clientWidth;},getClientHeight:function($0){return $0.clientHeight;},getScrollWidth:function($0){return $0.scrollWidth;},getScrollHeight:function($0){return $0.scrollHeight;},__nativeBorderBox:{tags:{button:true,select:true},types:{search:true,button:true,submit:true,reset:true,checkbox:true,radio:true}},__usesNativeBorderBox:function($0){var $1=this.__nativeBorderBox;return $1.tags[$0.tagName.toLowerCase()]||$1.types[$0.type];},setBoxSizing:qx.core.Variant.select($[1],{"gecko":function($0,$1){$0.style.MozBoxSizing=$1||$[0];},"mshtml":function($0,$1){},"default":function($0,$1){$0.style.boxSizing=$1||$[0];}}),getBoxSizing:qx.core.Variant.select($[1],{"gecko":function($0){return qx.bom.element.Style.get($0,$[955],qx.bom.element.Style.COMPUTED_MODE,false);},"mshtml":function($0){if(qx.bom.Document.isStandardMode(qx.dom.Node.getDocument($0))){if(!this.__usesNativeBorderBox($0)){return $[1618];}}return $[238];},"default":function($0){return qx.bom.element.Style.get($0,$[458],qx.bom.element.Style.COMPUTED_MODE,false);}})}});
103
qx.Class.define($[625],{statics:{getWidth:function($0){return $0.offsetWidth;},getHeight:function($0){return $0.offsetHeight;},getClientWidth:function($0){return $0.clientWidth;},getClientHeight:function($0){return $0.clientHeight;},getScrollWidth:function($0){return $0.scrollWidth;},getScrollHeight:function($0){return $0.scrollHeight;},__nativeBorderBox:{tags:{button:true,select:true},types:{search:true,button:true,submit:true,reset:true,checkbox:true,radio:true}},__usesNativeBorderBox:function($0){var $1=this.__nativeBorderBox;return $1.tags[$0.tagName.toLowerCase()]||$1.types[$0.type];},setBoxSizing:qx.core.Variant.select($[1],{"gecko":function($0,$1){$0.style.MozBoxSizing=$1||$[0];},"mshtml":function($0,$1){},"default":function($0,$1){$0.style.boxSizing=$1||$[0];}}),getBoxSizing:qx.core.Variant.select($[1],{"gecko":function($0){return qx.bom.element.Style.get($0,$[954],qx.bom.element.Style.COMPUTED_MODE,false);},"mshtml":function($0){if(qx.bom.Document.isStandardMode(qx.dom.Node.getDocument($0))){if(!this.__usesNativeBorderBox($0)){return $[1617];}}return $[238];},"default":function($0){return qx.bom.element.Style.get($0,$[459],qx.bom.element.Style.COMPUTED_MODE,false);}})}});
104
qx.Class.define($[1190],{statics:{isQuirksMode:function($0){return ($0||window).document.compatMode!==$[91];},isStandardMode:function($0){return ($0||window).document.compatMode===$[91];},getWidth:function($0){var $1=($0||window).document;var $2=qx.bom.Viewport.getWidth($0);var $3=$1.compatMode===$[91]?$1.documentElement.scrollWidth:$1.body.scrollWidth;return Math.max($3,$2);},getHeight:function($0){var $1=($0||window).document;var $2=qx.bom.Viewport.getHeight($0);var $3=$1.compatMode===$[91]?$1.documentElement.scrollHeight:$1.body.scrollHeight;return Math.max($3,$2);}}});
104
qx.Class.define($[1189],{statics:{isQuirksMode:function($0){return ($0||window).document.compatMode!==$[91];},isStandardMode:function($0){return ($0||window).document.compatMode===$[91];},getWidth:function($0){var $1=($0||window).document;var $2=qx.bom.Viewport.getWidth($0);var $3=$1.compatMode===$[91]?$1.documentElement.scrollWidth:$1.body.scrollWidth;return Math.max($3,$2);},getHeight:function($0){var $1=($0||window).document;var $2=qx.bom.Viewport.getHeight($0);var $3=$1.compatMode===$[91]?$1.documentElement.scrollHeight:$1.body.scrollHeight;return Math.max($3,$2);}}});
105
qx.Mixin.define($[1052],{construct:function($0){this._frame=new qx.ui.basic.Terminator;this._frame.setAppearance($[1070]);this.addEventListener($[12],this._onmousedown);this.addEventListener($[22],this._onmouseup);this.addEventListener($[148],this._onmousemove);},properties:{resizableWest:{check:$[2],init:true,apply:$[206]},resizableNorth:{check:$[2],init:true,apply:$[206]},resizableEast:{check:$[2],init:true,apply:$[206]},resizableSouth:{check:$[2],init:true,apply:$[206]},resizable:{group:[$[592],$[551],$[1648],$[1118]],mode:$[103]},resizeMethod:{init:$[81],check:[$[240],$[454],$[81],$[139]],event:$[700]}},members:{isResizable:function(){return this.getResizableWest()||this.getResizableEast()||this.getResizableNorth()||this.getResizableSouth();},getResizable:function(){return this.isResizable();},_applyResizable:function($0,$1){},_onmousedown:function($0){if(this._resizeNorth||this._resizeSouth||this._resizeWest||this._resizeEast){this.setCapture(true);this.getTopLevelWidget().setGlobalCursor(this.getCursor());var $1=this.getElement();var $2=this._getResizeParent();var $3=$2.getElement();var $4=qx.bom.element.Location.get($3,$[26]);var $5=qx.bom.element.Location.get($1);switch(this.getResizeMethod()){case $[139]:this.setOpacity(0.5);break;case $[81]:var $6=this._frame;if($6.getParent()!=$2){$6.setParent($2);qx.ui.core.Widget.flushGlobalQueues();}$6._renderRuntimeLeft($5.left-$4.left);$6._renderRuntimeTop($5.top-$4.top);$6._renderRuntimeWidth($1.offsetWidth);$6._renderRuntimeHeight($1.offsetHeight);$6.setZIndex(this.getZIndex()+1);break;}var $7=this._resizeSession={};var $8=this._getMinSizeReference();if(this._resizeWest){$7.boxWidth=$1.offsetWidth;$7.boxRight=$5.right;}if(this._resizeWest||this._resizeEast){$7.boxLeft=$5.left;$7.parentContentLeft=$4.left;$7.parentContentRight=$4.right;$7.minWidth=$8.getMinWidthValue();$7.maxWidth=$8.getMaxWidthValue();}if(this._resizeNorth){$7.boxHeight=$1.offsetHeight;$7.boxBottom=$5.bottom;}if(this._resizeNorth||this._resizeSouth){$7.boxTop=$5.top;$7.parentContentTop=$4.top;$7.parentContentBottom=$4.bottom;$7.minHeight=$8.getMinHeightValue();$7.maxHeight=$8.getMaxHeightValue();}}else{delete this._resizeSession;}$0.stopPropagation();},_onmouseup:function($0){var $1=this._resizeSession;if($1){this.setCapture(false);this.getTopLevelWidget().setGlobalCursor(null);switch(this.getResizeMethod()){case $[81]:var $2=this._frame;if(!($2&&$2.getParent())){break;}case $[454]:if($1.lastLeft!=null){this.setLeft($1.lastLeft);}if($1.lastTop!=null){this.setTop($1.lastTop);}if($1.lastWidth!=null){this._changeWidth($1.lastWidth);}if($1.lastHeight!=null){this._changeHeight($1.lastHeight);}if(this.getResizeMethod()==$[81]){this._frame.setParent(null);}break;case $[139]:this.setOpacity(null);break;}delete this._resizeSession;}$0.stopPropagation();},_near:function($0,$1){return $1>($0-5)&&$1<($0+5);},_onmousemove:function($0){if(this._disableResize){return;}var $1=this._resizeSession;if($1){if(this._resizeWest){$1.lastWidth=qx.lang.Number.limit($1.boxWidth+$1.boxLeft-Math.max($0.getPageX(),$1.parentContentLeft),$1.minWidth,$1.maxWidth);$1.lastLeft=$1.boxRight-$1.lastWidth-$1.parentContentLeft;}else if(this._resizeEast){$1.lastWidth=qx.lang.Number.limit(Math.min($0.getPageX(),$1.parentContentRight)-$1.boxLeft,$1.minWidth,$1.maxWidth);}if(this._resizeNorth){$1.lastHeight=qx.lang.Number.limit($1.boxHeight+$1.boxTop-Math.max($0.getPageY(),$1.parentContentTop),$1.minHeight,$1.maxHeight);$1.lastTop=$1.boxBottom-$1.lastHeight-$1.parentContentTop;}else if(this._resizeSouth){$1.lastHeight=qx.lang.Number.limit(Math.min($0.getPageY(),$1.parentContentBottom)-$1.boxTop,$1.minHeight,$1.maxHeight);}switch(this.getResizeMethod()){case $[240]:case $[139]:if(this._resizeWest||this._resizeEast){this.setWidth($1.lastWidth);if(this._resizeWest){this.setLeft($1.lastLeft);}}if(this._resizeNorth||this._resizeSouth){this.setHeight($1.lastHeight);if(this._resizeNorth){this.setTop($1.lastTop);}}break;default:var $2=this.getResizeMethod()==$[81]?this._frame:this;if(this._resizeWest||this._resizeEast){$2._renderRuntimeWidth($1.lastWidth);if(this._resizeWest){$2._renderRuntimeLeft($1.lastLeft);}}if(this._resizeNorth||this._resizeSouth){$2._renderRuntimeHeight($1.lastHeight);if(this._resizeNorth){$2._renderRuntimeTop($1.lastTop);}}}}else{var $3=$[0];var $4=this.getElement();this._resizeNorth=this._resizeSouth=this._resizeWest=this._resizeEast=false;var $5=qx.bom.element.Location.get($4);if(this._near($5.top,$0.getPageY())){if(this.getResizableNorth()){$3=$[635];this._resizeNorth=true;}}else if(this._near($5.bottom,$0.getPageY())){if(this.getResizableSouth()){$3=$[534];this._resizeSouth=true;}}if(this._near($5.left,$0.getPageX())){if(this.getResizableWest()){$3+=$[1405];this._resizeWest=true;}}else if(this._near($5.right,$0.getPageX())){if(this.getResizableEast()){$3+=$[1429];this._resizeEast=true;}}if(this._resizeNorth||this._resizeSouth||this._resizeWest||this._resizeEast){this.setCursor($3+$[1491]);}else{this.resetCursor();}}$0.stopPropagation();}},destruct:function(){this._disposeObjects($[307]);}});
105
qx.Mixin.define($[1052],{construct:function($0){this._frame=new qx.ui.basic.Terminator;this._frame.setAppearance($[1070]);this.addEventListener($[12],this._onmousedown);this.addEventListener($[22],this._onmouseup);this.addEventListener($[148],this._onmousemove);},properties:{resizableWest:{check:$[2],init:true,apply:$[206]},resizableNorth:{check:$[2],init:true,apply:$[206]},resizableEast:{check:$[2],init:true,apply:$[206]},resizableSouth:{check:$[2],init:true,apply:$[206]},resizable:{group:[$[592],$[551],$[1647],$[1448]],mode:$[103]},resizeMethod:{init:$[81],check:[$[240],$[455],$[81],$[139]],event:$[701]}},members:{isResizable:function(){return this.getResizableWest()||this.getResizableEast()||this.getResizableNorth()||this.getResizableSouth();},getResizable:function(){return this.isResizable();},_applyResizable:function($0,$1){},_onmousedown:function($0){if(this._resizeNorth||this._resizeSouth||this._resizeWest||this._resizeEast){this.setCapture(true);this.getTopLevelWidget().setGlobalCursor(this.getCursor());var $1=this.getElement();var $2=this._getResizeParent();var $3=$2.getElement();var $4=qx.bom.element.Location.get($3,$[26]);var $5=qx.bom.element.Location.get($1);switch(this.getResizeMethod()){case $[139]:this.setOpacity(0.5);break;case $[81]:var $6=this._frame;if($6.getParent()!=$2){$6.setParent($2);qx.ui.core.Widget.flushGlobalQueues();}$6._renderRuntimeLeft($5.left-$4.left);$6._renderRuntimeTop($5.top-$4.top);$6._renderRuntimeWidth($1.offsetWidth);$6._renderRuntimeHeight($1.offsetHeight);$6.setZIndex(this.getZIndex()+1);break;}var $7=this._resizeSession={};var $8=this._getMinSizeReference();if(this._resizeWest){$7.boxWidth=$1.offsetWidth;$7.boxRight=$5.right;}if(this._resizeWest||this._resizeEast){$7.boxLeft=$5.left;$7.parentContentLeft=$4.left;$7.parentContentRight=$4.right;$7.minWidth=$8.getMinWidthValue();$7.maxWidth=$8.getMaxWidthValue();}if(this._resizeNorth){$7.boxHeight=$1.offsetHeight;$7.boxBottom=$5.bottom;}if(this._resizeNorth||this._resizeSouth){$7.boxTop=$5.top;$7.parentContentTop=$4.top;$7.parentContentBottom=$4.bottom;$7.minHeight=$8.getMinHeightValue();$7.maxHeight=$8.getMaxHeightValue();}}else{delete this._resizeSession;}$0.stopPropagation();},_onmouseup:function($0){var $1=this._resizeSession;if($1){this.setCapture(false);this.getTopLevelWidget().setGlobalCursor(null);switch(this.getResizeMethod()){case $[81]:var $2=this._frame;if(!($2&&$2.getParent())){break;}case $[455]:if($1.lastLeft!=null){this.setLeft($1.lastLeft);}if($1.lastTop!=null){this.setTop($1.lastTop);}if($1.lastWidth!=null){this._changeWidth($1.lastWidth);}if($1.lastHeight!=null){this._changeHeight($1.lastHeight);}if(this.getResizeMethod()==$[81]){this._frame.setParent(null);}break;case $[139]:this.setOpacity(null);break;}delete this._resizeSession;}$0.stopPropagation();},_near:function($0,$1){return $1>($0-5)&&$1<($0+5);},_onmousemove:function($0){if(this._disableResize){return;}var $1=this._resizeSession;if($1){if(this._resizeWest){$1.lastWidth=qx.lang.Number.limit($1.boxWidth+$1.boxLeft-Math.max($0.getPageX(),$1.parentContentLeft),$1.minWidth,$1.maxWidth);$1.lastLeft=$1.boxRight-$1.lastWidth-$1.parentContentLeft;}else if(this._resizeEast){$1.lastWidth=qx.lang.Number.limit(Math.min($0.getPageX(),$1.parentContentRight)-$1.boxLeft,$1.minWidth,$1.maxWidth);}if(this._resizeNorth){$1.lastHeight=qx.lang.Number.limit($1.boxHeight+$1.boxTop-Math.max($0.getPageY(),$1.parentContentTop),$1.minHeight,$1.maxHeight);$1.lastTop=$1.boxBottom-$1.lastHeight-$1.parentContentTop;}else if(this._resizeSouth){$1.lastHeight=qx.lang.Number.limit(Math.min($0.getPageY(),$1.parentContentBottom)-$1.boxTop,$1.minHeight,$1.maxHeight);}switch(this.getResizeMethod()){case $[240]:case $[139]:if(this._resizeWest||this._resizeEast){this.setWidth($1.lastWidth);if(this._resizeWest){this.setLeft($1.lastLeft);}}if(this._resizeNorth||this._resizeSouth){this.setHeight($1.lastHeight);if(this._resizeNorth){this.setTop($1.lastTop);}}break;default:var $2=this.getResizeMethod()==$[81]?this._frame:this;if(this._resizeWest||this._resizeEast){$2._renderRuntimeWidth($1.lastWidth);if(this._resizeWest){$2._renderRuntimeLeft($1.lastLeft);}}if(this._resizeNorth||this._resizeSouth){$2._renderRuntimeHeight($1.lastHeight);if(this._resizeNorth){$2._renderRuntimeTop($1.lastTop);}}}}else{var $3=$[0];var $4=this.getElement();this._resizeNorth=this._resizeSouth=this._resizeWest=this._resizeEast=false;var $5=qx.bom.element.Location.get($4);if(this._near($5.top,$0.getPageY())){if(this.getResizableNorth()){$3=$[635];this._resizeNorth=true;}}else if(this._near($5.bottom,$0.getPageY())){if(this.getResizableSouth()){$3=$[534];this._resizeSouth=true;}}if(this._near($5.left,$0.getPageX())){if(this.getResizableWest()){$3+=$[1406];this._resizeWest=true;}}else if(this._near($5.right,$0.getPageX())){if(this.getResizableEast()){$3+=$[1429];this._resizeEast=true;}}if(this._resizeNorth||this._resizeSouth||this._resizeWest||this._resizeEast){this.setCursor($3+$[1490]);}else{this.resetCursor();}}$0.stopPropagation();}},destruct:function(){this._disposeObjects($[307]);}});
106
qx.Interface.define($[989],{members:{_changeWidth:function($0){return true;},_changeHeight:function($0){return true;},_getResizeParent:function(){return true;},_getMinSizeReference:function(){return true;}}});
106
qx.Interface.define($[988],{members:{_changeWidth:function($0){return true;},_changeHeight:function($0){return true;},_getResizeParent:function(){return true;},_getMinSizeReference:function(){return true;}}});
107
qx.Class.define($[1465],{extend:qx.ui.popup.Popup,include:qx.ui.resizer.MResizable,implement:qx.ui.resizer.IResizable,construct:function(){arguments.callee.base.call(this);this.initMinWidth();this.initMinHeight();this.initWidth();this.initHeight();},properties:{appearance:{refine:true,init:$[1450]},minWidth:{refine:true,init:$[3]},minHeight:{refine:true,init:$[3]},width:{refine:true,init:$[3]},height:{refine:true,init:$[3]}},members:{_changeWidth:function($0){this.setWidth($0);},_changeHeight:function($0){this.setHeight($0);},_getResizeParent:function(){return this.getParent();},_getMinSizeReference:function(){return this;}}});
107
qx.Class.define($[1464],{extend:qx.ui.popup.Popup,include:qx.ui.resizer.MResizable,implement:qx.ui.resizer.IResizable,construct:function(){arguments.callee.base.call(this);this.initMinWidth();this.initMinHeight();this.initWidth();this.initHeight();},properties:{appearance:{refine:true,init:$[1450]},minWidth:{refine:true,init:$[3]},minHeight:{refine:true,init:$[3]},width:{refine:true,init:$[3]},height:{refine:true,init:$[3]}},members:{_changeWidth:function($0){this.setWidth($0);},_changeHeight:function($0){this.setHeight($0);},_getResizeParent:function(){return this.getParent();},_getMinSizeReference:function(){return this;}}});
108
qx.Class.define($[502],{extend:qx.ui.resizer.ResizablePopup,construct:function($0,$1,$2){arguments.callee.base.call(this);this.setWindowManager($2||qx.ui.window.Window.getDefaultWindowManager());var $3=this._layout=new qx.ui.layout.VerticalBoxLayout;$3.setEdge(0);this.add($3);var $4=this._captionBar=new qx.ui.layout.HorizontalBoxLayout;$4.setAppearance($[971]);$4.setHeight($[3]);$4.setOverflow($[36]);$3.add($4);var $5=this._captionIcon=new qx.ui.basic.Image;$5.setAppearance($[1074]);$4.add($5);var $6=this._captionTitle=new qx.ui.basic.Label($0);$6.setAppearance($[1645]);$6.setSelectable(false);$4.add($6);var $7=this._captionFlex=new qx.ui.basic.HorizontalSpacer;$4.add($7);var $8=this._minimizeButton=new qx.ui.form.Button;$8.setAppearance($[1526]);$8.setTabIndex(-1);$8.addEventListener($[128],this._onminimizebuttonclick,this);$8.addEventListener($[12],this._onbuttonmousedown,this);$4.add($8);var $9=this._restoreButton=new qx.ui.form.Button;$9.setAppearance($[815]);$9.setTabIndex(-1);$9.addEventListener($[128],this._onrestorebuttonclick,this);$9.addEventListener($[12],this._onbuttonmousedown,this);var $a=this._maximizeButton=new qx.ui.form.Button;$a.setAppearance($[1193]);$a.setTabIndex(-1);$a.addEventListener($[128],this._onmaximizebuttonclick,this);$a.addEventListener($[12],this._onbuttonmousedown,this);$4.add($a);var $b=this._closeButton=new qx.ui.form.Button;$b.setAppearance($[919]);$b.setTabIndex(-1);$b.addEventListener($[128],this._onclosebuttonclick,this);$b.addEventListener($[12],this._onbuttonmousedown,this);$4.add($b);var $c=this._pane=new qx.ui.layout.CanvasLayout;$c.setHeight($[138]);$c.setOverflow($[36]);$3.add($c);var $d=this._statusBar=new qx.ui.layout.HorizontalBoxLayout;$d.setAppearance($[925]);$d.setHeight($[3]);var $e=this._statusText=new qx.ui.basic.Label($[395]);$e.setAppearance($[1390]);$e.setSelectable(false);$d.add($e);if($0!=null){this.setCaption($0);}if($1!=null){this.setIcon($1);}this.setAutoHide(false);this.addEventListener($[12],this._onwindowmousedown);this.addEventListener($[53],this._onwindowclick);$4.addEventListener($[12],this._oncaptionmousedown,this);$4.addEventListener($[22],this._oncaptionmouseup,this);$4.addEventListener($[148],this._oncaptionmousemove,this);$4.addEventListener($[104],this._oncaptiondblblick,this);this.remapChildrenHandlingTo(this._pane);},statics:{getDefaultWindowManager:function(){if(!qx.ui.window.Window._defaultWindowManager){qx.ui.window.Window._defaultWindowManager=new qx.ui.window.Manager;}return qx.ui.window.Window._defaultWindowManager;}},properties:{appearance:{refine:true,init:$[884]},windowManager:{check:$[507],event:$[1419]},active:{check:$[2],init:false,apply:$[541],event:$[1494]},modal:{check:$[2],init:false,apply:$[1611],event:$[921]},mode:{check:[$[226],$[70]],init:null,nullable:true,apply:$[1795],event:$[1146]},opener:{check:$[66]},caption:{apply:$[1077],event:$[1428],dispose:true},icon:{check:$[6],nullable:true,apply:$[181],event:$[757]},status:{check:$[6],init:$[395],apply:$[1141],event:$[1483]},showClose:{check:$[2],init:true,apply:$[1019]},showMaximize:{check:$[2],init:true,apply:$[1096]},showMinimize:{check:$[2],init:true,apply:$[1533]},showStatusbar:{check:$[2],init:false,apply:$[1163]},allowClose:{check:$[2],init:true,apply:$[560]},allowMaximize:{check:$[2],init:true,apply:$[749]},allowMinimize:{check:$[2],init:true,apply:$[1260]},showCaption:{check:$[2],init:true,apply:$[1498]},showIcon:{check:$[2],init:true,apply:$[1535]},moveable:{check:$[2],init:true,event:$[1474]},moveMethod:{check:[$[240],$[81],$[139]],init:$[240],event:$[936]}},members:{getPane:function(){return this._pane;},getCaptionBar:function(){return this._captionBar;},getStatusBar:function(){return this._statusBar;},close:function(){this.hide();},open:function($0){if($0!=null){this.setOpener($0);}if(this.getCentered()){this.centerToBrowser();}this.show();},focus:function(){this.setActive(true);},blur:function(){this.setActive(false);},maximize:function(){this.setMode($[70]);},minimize:function(){this.setMode($[226]);},restore:function(){this.setMode(null);},_beforeAppear:function(){qx.ui.layout.CanvasLayout.prototype._beforeAppear.call(this);qx.ui.popup.PopupManager.getInstance().update();qx.event.handler.EventHandler.getInstance().setFocusRoot(this);this.getWindowManager().add(this);this._makeActive();},_beforeDisappear:function(){qx.ui.layout.CanvasLayout.prototype._beforeDisappear.call(this);var $0=qx.event.handler.EventHandler.getInstance().getFocusRoot();if($0==this||this.contains($0)){qx.event.handler.EventHandler.getInstance().setFocusRoot(null);}var $1=qx.event.handler.EventHandler.getInstance().getCaptureWidget();if($1&&this.contains($1)){$1.setCapture(false);}this.getWindowManager().remove(this);this._makeInactive();},_minZIndex:1e5,_sendTo:function(){var $0=qx.lang.Object.getValues(this.getWindowManager().getAll()).sort(qx.util.Compare.byZIndex);var $1=$0.length;var $2=this._minZIndex;for(var $3=0;$3<$1;$3++){$0[$3].setZIndex($2++);}},_applyActive:function($0,$1){if($1){if(this.getFocused()){this.setFocused(false);}if(this.getWindowManager().getActiveWindow()==this){this.getWindowManager().setActiveWindow(null);}this.removeState($[59]);this._captionBar.removeState($[59]);this._minimizeButton.removeState($[59]);this._restoreButton.removeState($[59]);this._maximizeButton.removeState($[59]);this._closeButton.removeState($[59]);}else{if(!this.getFocusedChild()){this.setFocused(true);}this.getWindowManager().setActiveWindow(this);this.bringToFront();this.addState($[59]);this._captionBar.addState($[59]);this._minimizeButton.addState($[59]);this._restoreButton.addState($[59]);this._maximizeButton.addState($[59]);this._closeButton.addState($[59]);}},_applyModal:function($0,$1){if(this._initialLayoutDone&&this.getVisibility()&&this.getDisplay()){var $2=this.getTopLevelWidget();$0?$2.block(this):$2.release(this);}},_applyAllowClose:function($0,$1){this._closeButtonManager();},_applyAllowMaximize:function($0,$1){this._maximizeButtonManager();},_applyAllowMinimize:function($0,$1){this._minimizeButtonManager();},_applyMode:function($0,$1){switch($0){case $[226]:this._disableResize=true;this._minimize();break;case $[70]:this._disableResize=true;this._maximize();break;default:delete this._disableResize;switch($1){case $[70]:this._restoreFromMaximized();break;case $[226]:this._restoreFromMinimized();break;}}},_applyShowCaption:function($0,$1){if($0){this._captionBar.addAt(this._captionTitle,this.getShowIcon()?1:0);}else{this._captionBar.remove(this._captionTitle);}},_applyShowIcon:function($0,$1){if($0){this._captionBar.addAtBegin(this._captionIcon);}else{this._captionBar.remove(this._captionIcon);}},_applyShowStatusbar:function($0,$1){if($0){this._layout.addAtEnd(this._statusBar);}else{this._layout.remove(this._statusBar);}},_applyShowClose:function($0,$1){if($0){this._captionBar.addAtEnd(this._closeButton);}else{this._captionBar.remove(this._closeButton);}},_applyShowMaximize:function($0,$1){if($0){var $2=this.getMode()==$[70]?this._restoreButton:this._maximizeButton;if(this.getShowMinimize()){this._captionBar.addAfter($2,this._minimizeButton);}else{this._captionBar.addAfter($2,this._captionFlex);}}else{this._captionBar.remove(this._maximizeButton);this._captionBar.remove(this._restoreButton);}},_applyShowMinimize:function($0,$1){if($0){this._captionBar.addAfter(this._minimizeButton,this._captionFlex);}else{this._captionBar.remove(this._minimizeButton);}},_minimizeButtonManager:function(){this.getAllowMinimize()===false?this._minimizeButton.setEnabled(false):this._minimizeButton.resetEnabled();},_closeButtonManager:function(){this.getAllowClose()===false?this._closeButton.setEnabled(false):this._closeButton.resetEnabled();},_maximizeButtonManager:function(){var $0=this.getAllowMaximize()&&this.getResizable()&&this._computedMaxWidthTypeNull&&this._computedMaxHeightTypeNull;if(this._maximizeButton){$0===false?this._maximizeButton.setEnabled(false):this._maximizeButton.resetEnabled();}if(this._restoreButton){$0===false?this._restoreButton.setEnabled(false):this._restoreButton.resetEnabled();}},_applyStatus:function($0,$1){this._statusText.setText($0);},_applyMaxWidth:function($0,$1){arguments.callee.base.call(this,$0);this._maximizeButtonManager();},_applyMaxHeight:function($0,$1){arguments.callee.base.call(this,$0);this._maximizeButtonManager();},_applyResizable:function($0,$1){this._maximizeButtonManager();},_applyCaption:function($0,$1){this._captionTitle.setText($0);},_applyIcon:function($0,$1){this._captionIcon.setSource($0);},_minimize:function(){this.blur();this.hide();},_restoreFromMaximized:function(){this.setLeft(this._previousLeft?this._previousLeft:null);this.setWidth(this._previousWidth?this._previousWidth:null);this.setRight(this._previousRight?this._previousRight:null);this.setTop(this._previousTop?this._previousTop:null);this.setHeight(this._previousHeight?this._previousHeight:null);this.setBottom(this._previousBottom?this._previousBottom:null);this.removeState($[70]);if(this.getShowMaximize()){var $0=this._captionBar;var $1=$0.indexOf(this._restoreButton);$0.remove(this._restoreButton);$0.addAt(this._maximizeButton,$1);}this.focus();},_restoreFromMinimized:function(){if(this.hasState($[70])){this.setMode($[70]);}this.show();this.focus();},_maximize:function(){if(this.hasState($[70])){return;}this._previousLeft=this.getLeft();this._previousWidth=this.getWidth();this._previousRight=this.getRight();this._previousTop=this.getTop();this._previousHeight=this.getHeight();this._previousBottom=this.getBottom();this.setWidth(null);this.setLeft(0);this.setRight(0);this.setHeight(null);this.setTop(0);this.setBottom(0);this.addState($[70]);if(this.getShowMaximize()){var $0=this._captionBar;var $1=$0.indexOf(this._maximizeButton);$0.remove(this._maximizeButton);$0.addAt(this._restoreButton,$1);}this.focus();},_onwindowclick:function($0){$0.stopPropagation();},_onwindowmousedown:function($0){this.focus();},_onbuttonmousedown:function($0){$0.stopPropagation();},_onminimizebuttonclick:function($0){this.minimize();this._minimizeButton.removeState($[14]);this._minimizeButton.removeState($[35]);this._minimizeButton.removeState($[43]);$0.stopPropagation();},_onrestorebuttonclick:function($0){this.restore();this._restoreButton.removeState($[14]);this._restoreButton.removeState($[35]);this._restoreButton.removeState($[43]);$0.stopPropagation();},_onmaximizebuttonclick:function($0){this.maximize();this._maximizeButton.removeState($[14]);this._maximizeButton.removeState($[35]);this._maximizeButton.removeState($[43]);$0.stopPropagation();},_onclosebuttonclick:function($0){this.close();this._closeButton.removeState($[14]);this._closeButton.removeState($[35]);this._closeButton.removeState($[43]);$0.stopPropagation();},_oncaptionmousedown:function($0){if(!$0.isLeftButtonPressed()||!this.getMoveable()||this.getMode()!=null){return;}this._captionBar.setCapture(true);var $1=this.getElement();var $2=this.getParent();var $3=$2.getElement();var $4=qx.bom.element.Location.get($3,$[26]);var $5=qx.bom.element.Location.get($1);this._dragSession={offsetX:$0.getPageX()-$5.left+$4.left,offsetY:$0.getPageY()-$5.top+$4.top,parentAvailableAreaLeft:$4.left+5,parentAvailableAreaTop:$4.top+5,parentAvailableAreaRight:$4.right-5,parentAvailableAreaBottom:$4.bottom-5};switch(this.getMoveMethod()){case $[139]:this.setOpacity(0.5);break;case $[81]:var $6=this._frame;if($6.getParent()!=this.getParent()){$6.setParent(this.getParent());qx.ui.core.Widget.flushGlobalQueues();}$6._renderRuntimeLeft($5.left-$4.left);$6._renderRuntimeTop($5.top-$4.top);$6._renderRuntimeWidth($1.offsetWidth);$6._renderRuntimeHeight($1.offsetHeight);$6.setZIndex(this.getZIndex()+1);break;}},_oncaptionmouseup:function($0){var $1=this._dragSession;if(!$1){return;}this._captionBar.setCapture(false);if($1.lastX!=null){this.setLeft($1.lastX);}if($1.lastY!=null){this.setTop($1.lastY);}switch(this.getMoveMethod()){case $[139]:this.setOpacity(null);break;case $[81]:this._frame.setParent(null);break;}delete this._dragSession;},_oncaptionmousemove:function($0){var $1=this._dragSession;if(!$1||!this._captionBar.getCapture()){return;}if(!qx.lang.Number.isBetweenRange($0.getPageX(),$1.parentAvailableAreaLeft,$1.parentAvailableAreaRight)||!qx.lang.Number.isBetweenRange($0.getPageY(),$1.parentAvailableAreaTop,$1.parentAvailableAreaBottom)){return;}var $2=this.getMoveMethod()==$[81]?this._frame:this;$2._renderRuntimeLeft($1.lastX=$0.getPageX()-$1.offsetX);$2._renderRuntimeTop($1.lastY=$0.getPageY()-$1.offsetY);},_oncaptiondblblick:function($0){if(!this._maximizeButton.getEnabled()){return;}return this.getMode()==$[70]?this.restore():this.maximize();}},destruct:function(){this._disposeObjects($[344],$[695],$[1485],$[668],$[916],$[1295],$[1256],$[974],$[914],$[430],$[1042],$[1251]);}});
108
qx.Class.define($[503],{extend:qx.ui.resizer.ResizablePopup,construct:function($0,$1,$2){arguments.callee.base.call(this);this.setWindowManager($2||qx.ui.window.Window.getDefaultWindowManager());var $3=this._layout=new qx.ui.layout.VerticalBoxLayout;$3.setEdge(0);this.add($3);var $4=this._captionBar=new qx.ui.layout.HorizontalBoxLayout;$4.setAppearance($[970]);$4.setHeight($[3]);$4.setOverflow($[36]);$3.add($4);var $5=this._captionIcon=new qx.ui.basic.Image;$5.setAppearance($[1074]);$4.add($5);var $6=this._captionTitle=new qx.ui.basic.Label($0);$6.setAppearance($[1644]);$6.setSelectable(false);$4.add($6);var $7=this._captionFlex=new qx.ui.basic.HorizontalSpacer;$4.add($7);var $8=this._minimizeButton=new qx.ui.form.Button;$8.setAppearance($[1525]);$8.setTabIndex(-1);$8.addEventListener($[128],this._onminimizebuttonclick,this);$8.addEventListener($[12],this._onbuttonmousedown,this);$4.add($8);var $9=this._restoreButton=new qx.ui.form.Button;$9.setAppearance($[816]);$9.setTabIndex(-1);$9.addEventListener($[128],this._onrestorebuttonclick,this);$9.addEventListener($[12],this._onbuttonmousedown,this);var $a=this._maximizeButton=new qx.ui.form.Button;$a.setAppearance($[1192]);$a.setTabIndex(-1);$a.addEventListener($[128],this._onmaximizebuttonclick,this);$a.addEventListener($[12],this._onbuttonmousedown,this);$4.add($a);var $b=this._closeButton=new qx.ui.form.Button;$b.setAppearance($[918]);$b.setTabIndex(-1);$b.addEventListener($[128],this._onclosebuttonclick,this);$b.addEventListener($[12],this._onbuttonmousedown,this);$4.add($b);var $c=this._pane=new qx.ui.layout.CanvasLayout;$c.setHeight($[138]);$c.setOverflow($[36]);$3.add($c);var $d=this._statusBar=new qx.ui.layout.HorizontalBoxLayout;$d.setAppearance($[924]);$d.setHeight($[3]);var $e=this._statusText=new qx.ui.basic.Label($[396]);$e.setAppearance($[1391]);$e.setSelectable(false);$d.add($e);if($0!=null){this.setCaption($0);}if($1!=null){this.setIcon($1);}this.setAutoHide(false);this.addEventListener($[12],this._onwindowmousedown);this.addEventListener($[53],this._onwindowclick);$4.addEventListener($[12],this._oncaptionmousedown,this);$4.addEventListener($[22],this._oncaptionmouseup,this);$4.addEventListener($[148],this._oncaptionmousemove,this);$4.addEventListener($[104],this._oncaptiondblblick,this);this.remapChildrenHandlingTo(this._pane);},statics:{getDefaultWindowManager:function(){if(!qx.ui.window.Window._defaultWindowManager){qx.ui.window.Window._defaultWindowManager=new qx.ui.window.Manager;}return qx.ui.window.Window._defaultWindowManager;}},properties:{appearance:{refine:true,init:$[884]},windowManager:{check:$[508],event:$[1420]},active:{check:$[2],init:false,apply:$[541],event:$[1493]},modal:{check:$[2],init:false,apply:$[1610],event:$[920]},mode:{check:[$[226],$[70]],init:null,nullable:true,apply:$[1795],event:$[1145]},opener:{check:$[66]},caption:{apply:$[1077],event:$[1428],dispose:true},icon:{check:$[6],nullable:true,apply:$[181],event:$[758]},status:{check:$[6],init:$[396],apply:$[1140],event:$[1482]},showClose:{check:$[2],init:true,apply:$[1018]},showMaximize:{check:$[2],init:true,apply:$[1096]},showMinimize:{check:$[2],init:true,apply:$[1533]},showStatusbar:{check:$[2],init:false,apply:$[1162]},allowClose:{check:$[2],init:true,apply:$[560]},allowMaximize:{check:$[2],init:true,apply:$[750]},allowMinimize:{check:$[2],init:true,apply:$[1259]},showCaption:{check:$[2],init:true,apply:$[1497]},showIcon:{check:$[2],init:true,apply:$[1535]},moveable:{check:$[2],init:true,event:$[1473]},moveMethod:{check:[$[240],$[81],$[139]],init:$[240],event:$[935]}},members:{getPane:function(){return this._pane;},getCaptionBar:function(){return this._captionBar;},getStatusBar:function(){return this._statusBar;},close:function(){this.hide();},open:function($0){if($0!=null){this.setOpener($0);}if(this.getCentered()){this.centerToBrowser();}this.show();},focus:function(){this.setActive(true);},blur:function(){this.setActive(false);},maximize:function(){this.setMode($[70]);},minimize:function(){this.setMode($[226]);},restore:function(){this.setMode(null);},_beforeAppear:function(){qx.ui.layout.CanvasLayout.prototype._beforeAppear.call(this);qx.ui.popup.PopupManager.getInstance().update();qx.event.handler.EventHandler.getInstance().setFocusRoot(this);this.getWindowManager().add(this);this._makeActive();},_beforeDisappear:function(){qx.ui.layout.CanvasLayout.prototype._beforeDisappear.call(this);var $0=qx.event.handler.EventHandler.getInstance().getFocusRoot();if($0==this||this.contains($0)){qx.event.handler.EventHandler.getInstance().setFocusRoot(null);}var $1=qx.event.handler.EventHandler.getInstance().getCaptureWidget();if($1&&this.contains($1)){$1.setCapture(false);}this.getWindowManager().remove(this);this._makeInactive();},_minZIndex:1e5,_sendTo:function(){var $0=qx.lang.Object.getValues(this.getWindowManager().getAll()).sort(qx.util.Compare.byZIndex);var $1=$0.length;var $2=this._minZIndex;for(var $3=0;$3<$1;$3++){$0[$3].setZIndex($2++);}},_applyActive:function($0,$1){if($1){if(this.getFocused()){this.setFocused(false);}if(this.getWindowManager().getActiveWindow()==this){this.getWindowManager().setActiveWindow(null);}this.removeState($[59]);this._captionBar.removeState($[59]);this._minimizeButton.removeState($[59]);this._restoreButton.removeState($[59]);this._maximizeButton.removeState($[59]);this._closeButton.removeState($[59]);}else{if(!this.getFocusedChild()){this.setFocused(true);}this.getWindowManager().setActiveWindow(this);this.bringToFront();this.addState($[59]);this._captionBar.addState($[59]);this._minimizeButton.addState($[59]);this._restoreButton.addState($[59]);this._maximizeButton.addState($[59]);this._closeButton.addState($[59]);}},_applyModal:function($0,$1){if(this._initialLayoutDone&&this.getVisibility()&&this.getDisplay()){var $2=this.getTopLevelWidget();$0?$2.block(this):$2.release(this);}},_applyAllowClose:function($0,$1){this._closeButtonManager();},_applyAllowMaximize:function($0,$1){this._maximizeButtonManager();},_applyAllowMinimize:function($0,$1){this._minimizeButtonManager();},_applyMode:function($0,$1){switch($0){case $[226]:this._disableResize=true;this._minimize();break;case $[70]:this._disableResize=true;this._maximize();break;default:delete this._disableResize;switch($1){case $[70]:this._restoreFromMaximized();break;case $[226]:this._restoreFromMinimized();break;}}},_applyShowCaption:function($0,$1){if($0){this._captionBar.addAt(this._captionTitle,this.getShowIcon()?1:0);}else{this._captionBar.remove(this._captionTitle);}},_applyShowIcon:function($0,$1){if($0){this._captionBar.addAtBegin(this._captionIcon);}else{this._captionBar.remove(this._captionIcon);}},_applyShowStatusbar:function($0,$1){if($0){this._layout.addAtEnd(this._statusBar);}else{this._layout.remove(this._statusBar);}},_applyShowClose:function($0,$1){if($0){this._captionBar.addAtEnd(this._closeButton);}else{this._captionBar.remove(this._closeButton);}},_applyShowMaximize:function($0,$1){if($0){var $2=this.getMode()==$[70]?this._restoreButton:this._maximizeButton;if(this.getShowMinimize()){this._captionBar.addAfter($2,this._minimizeButton);}else{this._captionBar.addAfter($2,this._captionFlex);}}else{this._captionBar.remove(this._maximizeButton);this._captionBar.remove(this._restoreButton);}},_applyShowMinimize:function($0,$1){if($0){this._captionBar.addAfter(this._minimizeButton,this._captionFlex);}else{this._captionBar.remove(this._minimizeButton);}},_minimizeButtonManager:function(){this.getAllowMinimize()===false?this._minimizeButton.setEnabled(false):this._minimizeButton.resetEnabled();},_closeButtonManager:function(){this.getAllowClose()===false?this._closeButton.setEnabled(false):this._closeButton.resetEnabled();},_maximizeButtonManager:function(){var $0=this.getAllowMaximize()&&this.getResizable()&&this._computedMaxWidthTypeNull&&this._computedMaxHeightTypeNull;if(this._maximizeButton){$0===false?this._maximizeButton.setEnabled(false):this._maximizeButton.resetEnabled();}if(this._restoreButton){$0===false?this._restoreButton.setEnabled(false):this._restoreButton.resetEnabled();}},_applyStatus:function($0,$1){this._statusText.setText($0);},_applyMaxWidth:function($0,$1){arguments.callee.base.call(this,$0);this._maximizeButtonManager();},_applyMaxHeight:function($0,$1){arguments.callee.base.call(this,$0);this._maximizeButtonManager();},_applyResizable:function($0,$1){this._maximizeButtonManager();},_applyCaption:function($0,$1){this._captionTitle.setText($0);},_applyIcon:function($0,$1){this._captionIcon.setSource($0);},_minimize:function(){this.blur();this.hide();},_restoreFromMaximized:function(){this.setLeft(this._previousLeft?this._previousLeft:null);this.setWidth(this._previousWidth?this._previousWidth:null);this.setRight(this._previousRight?this._previousRight:null);this.setTop(this._previousTop?this._previousTop:null);this.setHeight(this._previousHeight?this._previousHeight:null);this.setBottom(this._previousBottom?this._previousBottom:null);this.removeState($[70]);if(this.getShowMaximize()){var $0=this._captionBar;var $1=$0.indexOf(this._restoreButton);$0.remove(this._restoreButton);$0.addAt(this._maximizeButton,$1);}this.focus();},_restoreFromMinimized:function(){if(this.hasState($[70])){this.setMode($[70]);}this.show();this.focus();},_maximize:function(){if(this.hasState($[70])){return;}this._previousLeft=this.getLeft();this._previousWidth=this.getWidth();this._previousRight=this.getRight();this._previousTop=this.getTop();this._previousHeight=this.getHeight();this._previousBottom=this.getBottom();this.setWidth(null);this.setLeft(0);this.setRight(0);this.setHeight(null);this.setTop(0);this.setBottom(0);this.addState($[70]);if(this.getShowMaximize()){var $0=this._captionBar;var $1=$0.indexOf(this._maximizeButton);$0.remove(this._maximizeButton);$0.addAt(this._restoreButton,$1);}this.focus();},_onwindowclick:function($0){$0.stopPropagation();},_onwindowmousedown:function($0){this.focus();},_onbuttonmousedown:function($0){$0.stopPropagation();},_onminimizebuttonclick:function($0){this.minimize();this._minimizeButton.removeState($[14]);this._minimizeButton.removeState($[35]);this._minimizeButton.removeState($[43]);$0.stopPropagation();},_onrestorebuttonclick:function($0){this.restore();this._restoreButton.removeState($[14]);this._restoreButton.removeState($[35]);this._restoreButton.removeState($[43]);$0.stopPropagation();},_onmaximizebuttonclick:function($0){this.maximize();this._maximizeButton.removeState($[14]);this._maximizeButton.removeState($[35]);this._maximizeButton.removeState($[43]);$0.stopPropagation();},_onclosebuttonclick:function($0){this.close();this._closeButton.removeState($[14]);this._closeButton.removeState($[35]);this._closeButton.removeState($[43]);$0.stopPropagation();},_oncaptionmousedown:function($0){if(!$0.isLeftButtonPressed()||!this.getMoveable()||this.getMode()!=null){return;}this._captionBar.setCapture(true);var $1=this.getElement();var $2=this.getParent();var $3=$2.getElement();var $4=qx.bom.element.Location.get($3,$[26]);var $5=qx.bom.element.Location.get($1);this._dragSession={offsetX:$0.getPageX()-$5.left+$4.left,offsetY:$0.getPageY()-$5.top+$4.top,parentAvailableAreaLeft:$4.left+5,parentAvailableAreaTop:$4.top+5,parentAvailableAreaRight:$4.right-5,parentAvailableAreaBottom:$4.bottom-5};switch(this.getMoveMethod()){case $[139]:this.setOpacity(0.5);break;case $[81]:var $6=this._frame;if($6.getParent()!=this.getParent()){$6.setParent(this.getParent());qx.ui.core.Widget.flushGlobalQueues();}$6._renderRuntimeLeft($5.left-$4.left);$6._renderRuntimeTop($5.top-$4.top);$6._renderRuntimeWidth($1.offsetWidth);$6._renderRuntimeHeight($1.offsetHeight);$6.setZIndex(this.getZIndex()+1);break;}},_oncaptionmouseup:function($0){var $1=this._dragSession;if(!$1){return;}this._captionBar.setCapture(false);if($1.lastX!=null){this.setLeft($1.lastX);}if($1.lastY!=null){this.setTop($1.lastY);}switch(this.getMoveMethod()){case $[139]:this.setOpacity(null);break;case $[81]:this._frame.setParent(null);break;}delete this._dragSession;},_oncaptionmousemove:function($0){var $1=this._dragSession;if(!$1||!this._captionBar.getCapture()){return;}if(!qx.lang.Number.isBetweenRange($0.getPageX(),$1.parentAvailableAreaLeft,$1.parentAvailableAreaRight)||!qx.lang.Number.isBetweenRange($0.getPageY(),$1.parentAvailableAreaTop,$1.parentAvailableAreaBottom)){return;}var $2=this.getMoveMethod()==$[81]?this._frame:this;$2._renderRuntimeLeft($1.lastX=$0.getPageX()-$1.offsetX);$2._renderRuntimeTop($1.lastY=$0.getPageY()-$1.offsetY);},_oncaptiondblblick:function($0){if(!this._maximizeButton.getEnabled()){return;}return this.getMode()==$[70]?this.restore():this.maximize();}},destruct:function(){this._disposeObjects($[343],$[696],$[1484],$[669],$[916],$[1293],$[1255],$[973],$[914],$[431],$[1041],$[1250]);}});
109
qx.Class.define($[716],{extend:qx.ui.core.Parent,construct:function($0){arguments.callee.base.call(this);if($0!=null){this.setOrientation($0);}else{this.initOrientation();}},statics:{STR_REVERSED:"-reversed"},properties:{orientation:{check:[$[132],$[117]],init:$[132],apply:$[1555],event:$[1779]},spacing:{check:$[5],init:0,themeable:true,apply:$[577],event:$[1564]},horizontalChildrenAlign:{check:[$[11],$[57],$[9]],init:$[11],themeable:true,apply:$[1087]},verticalChildrenAlign:{check:[$[20],$[62],$[17]],init:$[20],themeable:true,apply:$[1009]},reverseChildrenOrder:{check:$[2],init:false,apply:$[1729]},stretchChildrenOrthogonalAxis:{check:$[2],init:true,apply:$[760]},useAdvancedFlexAllocation:{check:$[2],init:false,apply:$[1587]},accumulatedChildrenOuterWidth:{_cached:true,defaultValue:null},accumulatedChildrenOuterHeight:{_cached:true,defaultValue:null}},members:{_createLayoutImpl:function(){return this.getOrientation()==$[117]?new qx.ui.layout.impl.VerticalBoxLayoutImpl(this):new qx.ui.layout.impl.HorizontalBoxLayoutImpl(this);},_layoutHorizontal:false,_layoutVertical:false,_layoutMode:$[11],isHorizontal:function(){return this._layoutHorizontal;},isVertical:function(){return this._layoutVertical;},getLayoutMode:function(){if(this._layoutMode==null){this._updateLayoutMode();}return this._layoutMode;},_updateLayoutMode:function(){this._layoutMode=this._layoutVertical?this.getVerticalChildrenAlign():this.getHorizontalChildrenAlign();if(this.getReverseChildrenOrder()){this._layoutMode+=qx.ui.layout.BoxLayout.STR_REVERSED;}},_invalidateLayoutMode:function(){this._layoutMode=null;},_applyOrientation:function($0,$1){this._layoutHorizontal=$0==$[132];this._layoutVertical=$0==$[117];if(this._layoutImpl){this._layoutImpl.dispose();this._layoutImpl=null;}if($0){this._layoutImpl=this._createLayoutImpl();}this._doLayoutOrder($0,$1);this.addToQueueRuntime($[1373]);},_applySpacing:function($0,$1){this._doLayout();this.addToQueueRuntime($[1654]);},_applyHorizontalChildrenAlign:function($0,$1){this._doLayoutOrder();this.addToQueueRuntime($[1496]);},_applyVerticalChildrenAlign:function($0,$1){this._doLayoutOrder();this.addToQueueRuntime($[1227]);},_applyReverseChildrenOrder:function($0,$1){this._doLayoutOrder();this.addToQueueRuntime($[869]);},_applyStretchChildrenOrthogonalAxis:function($0,$1){this.addToQueueRuntime($[1524]);},_applyUseAdvancedFlexAllocation:function($0,$1){this.addToQueueRuntime($[1777]);},_doLayoutOrder:function(){this._invalidateLayoutMode();this._doLayout();},_doLayout:function(){this._invalidatePreferredInnerDimensions();this._invalidateAccumulatedChildrenOuterWidth();this._invalidateAccumulatedChildrenOuterHeight();},_computeAccumulatedChildrenOuterWidth:function(){var $0=this.getVisibleChildren(),$1,$2=-1,$3=this.getSpacing(),$4=-$3;while($1=$0[++$2]){$4+=$1.getOuterWidth()+$3;}return $4;},_computeAccumulatedChildrenOuterHeight:function(){var $0=this.getVisibleChildren(),$1,$2=-1,$3=this.getSpacing(),$4=-$3;while($1=$0[++$2]){$4+=$1.getOuterHeight()+$3;}return $4;},_recomputeChildrenStretchingX:function(){var $0=this.getVisibleChildren(),$1,$2=-1;while($1=$0[++$2]){if($1._recomputeStretchingX()&&$1._recomputeBoxWidth()){$1._recomputeOuterWidth();}}},_recomputeChildrenStretchingY:function(){var $0=this.getVisibleChildren(),$1,$2=-1;while($1=$0[++$2]){if($1._recomputeStretchingY()&&$1._recomputeBoxHeight()){$1._recomputeOuterHeight();}}}}});
109
qx.Class.define($[717],{extend:qx.ui.core.Parent,construct:function($0){arguments.callee.base.call(this);if($0!=null){this.setOrientation($0);}else{this.initOrientation();}},statics:{STR_REVERSED:"-reversed"},properties:{orientation:{check:[$[132],$[117]],init:$[132],apply:$[1555],event:$[1779]},spacing:{check:$[5],init:0,themeable:true,apply:$[577],event:$[1563]},horizontalChildrenAlign:{check:[$[11],$[57],$[9]],init:$[11],themeable:true,apply:$[1087]},verticalChildrenAlign:{check:[$[20],$[62],$[17]],init:$[20],themeable:true,apply:$[1008]},reverseChildrenOrder:{check:$[2],init:false,apply:$[1729]},stretchChildrenOrthogonalAxis:{check:$[2],init:true,apply:$[761]},useAdvancedFlexAllocation:{check:$[2],init:false,apply:$[1586]},accumulatedChildrenOuterWidth:{_cached:true,defaultValue:null},accumulatedChildrenOuterHeight:{_cached:true,defaultValue:null}},members:{_createLayoutImpl:function(){return this.getOrientation()==$[117]?new qx.ui.layout.impl.VerticalBoxLayoutImpl(this):new qx.ui.layout.impl.HorizontalBoxLayoutImpl(this);},_layoutHorizontal:false,_layoutVertical:false,_layoutMode:$[11],isHorizontal:function(){return this._layoutHorizontal;},isVertical:function(){return this._layoutVertical;},getLayoutMode:function(){if(this._layoutMode==null){this._updateLayoutMode();}return this._layoutMode;},_updateLayoutMode:function(){this._layoutMode=this._layoutVertical?this.getVerticalChildrenAlign():this.getHorizontalChildrenAlign();if(this.getReverseChildrenOrder()){this._layoutMode+=qx.ui.layout.BoxLayout.STR_REVERSED;}},_invalidateLayoutMode:function(){this._layoutMode=null;},_applyOrientation:function($0,$1){this._layoutHorizontal=$0==$[132];this._layoutVertical=$0==$[117];if(this._layoutImpl){this._layoutImpl.dispose();this._layoutImpl=null;}if($0){this._layoutImpl=this._createLayoutImpl();}this._doLayoutOrder($0,$1);this.addToQueueRuntime($[1374]);},_applySpacing:function($0,$1){this._doLayout();this.addToQueueRuntime($[1653]);},_applyHorizontalChildrenAlign:function($0,$1){this._doLayoutOrder();this.addToQueueRuntime($[1495]);},_applyVerticalChildrenAlign:function($0,$1){this._doLayoutOrder();this.addToQueueRuntime($[1226]);},_applyReverseChildrenOrder:function($0,$1){this._doLayoutOrder();this.addToQueueRuntime($[869]);},_applyStretchChildrenOrthogonalAxis:function($0,$1){this.addToQueueRuntime($[1523]);},_applyUseAdvancedFlexAllocation:function($0,$1){this.addToQueueRuntime($[1777]);},_doLayoutOrder:function(){this._invalidateLayoutMode();this._doLayout();},_doLayout:function(){this._invalidatePreferredInnerDimensions();this._invalidateAccumulatedChildrenOuterWidth();this._invalidateAccumulatedChildrenOuterHeight();},_computeAccumulatedChildrenOuterWidth:function(){var $0=this.getVisibleChildren(),$1,$2=-1,$3=this.getSpacing(),$4=-$3;while($1=$0[++$2]){$4+=$1.getOuterWidth()+$3;}return $4;},_computeAccumulatedChildrenOuterHeight:function(){var $0=this.getVisibleChildren(),$1,$2=-1,$3=this.getSpacing(),$4=-$3;while($1=$0[++$2]){$4+=$1.getOuterHeight()+$3;}return $4;},_recomputeChildrenStretchingX:function(){var $0=this.getVisibleChildren(),$1,$2=-1;while($1=$0[++$2]){if($1._recomputeStretchingX()&&$1._recomputeBoxWidth()){$1._recomputeOuterWidth();}}},_recomputeChildrenStretchingY:function(){var $0=this.getVisibleChildren(),$1,$2=-1;while($1=$0[++$2]){if($1._recomputeStretchingY()&&$1._recomputeBoxHeight()){$1._recomputeOuterHeight();}}}}});
110
qx.Class.define($[860],{extend:qx.ui.layout.impl.LayoutImpl,properties:{enableFlexSupport:{check:$[2],init:true}},members:{computeChildBoxWidth:function($0){if(this.getWidget().getStretchChildrenOrthogonalAxis()&&$0._computedWidthTypeNull&&$0.getAllowStretchX()){return this.getWidget().getInnerWidth();}return $0.getWidthValue()||$0._computeBoxWidthFallback();},computeChildBoxHeight:function($0){return $0.getHeightValue()||$0._computeBoxHeightFallback();},computeChildrenFlexHeight:function(){if(this._childrenFlexHeightComputed||!this.getEnableFlexSupport()){return;}this._childrenFlexHeightComputed=true;var $0=this.getWidget();var $1=$0.getVisibleChildren();var $2=$1.length;var $3;var $4=[];var $5=$0.getInnerHeight();var $6=$0.getSpacing()*($2-1);var $7;for($7=0;$7<$2;$7++){$3=$1[$7];if($3._computedHeightTypeFlex){$4.push($3);if($0._computedHeightTypeAuto){$6+=$3.getPreferredBoxHeight();}}else{$6+=$3.getOuterHeight();}}var $8=$5-$6;var $9=$4.length;var $a=0;for($7=0;$7<$9;$7++){$a+=$4[$7]._computedHeightParsed;}var $b=$8/$a;if(!$0.getUseAdvancedFlexAllocation()){for($7=0;$7<$9;$7++){$3=$4[$7];$3._computedHeightFlexValue=Math.round($3._computedHeightParsed*$b);$6+=$3._computedHeightFlexValue;}}else{var $c=0;var $d,$9,$e,$f,$g,$h;for($7=0;$7<$9;$7++){$3=$4[$7];$h=$3._computedHeightFlexValue=$3._computedHeightParsed*$b;$c+=$h-qx.lang.Number.limit($h,$3.getMinHeightValue(),$3.getMaxHeightValue());}$c=Math.round($c);if($c==0){for($7=0;$7<$9;$7++){$3=$4[$7];$3._computedHeightFlexValue=Math.round($3._computedHeightFlexValue);$6+=$3._computedHeightFlexValue;}}else{var $i=$c>0;for($7=$9-1;$7>=0;$7--){$3=$4[$7];if($i){$e=($3.getMaxHeightValue()||Infinity)-$3._computedHeightFlexValue;if($e>0){$3._allocationLoops=Math.floor($e/$3._computedHeightParsed);}else{qx.lang.Array.removeAt($4,$7);$3._computedHeightFlexValue=Math.round($3._computedHeightFlexValue);$6+=Math.round($3._computedHeightFlexValue+$e);}}else{$e=qx.util.Validation.isValidNumber($3.getMinHeightValue())?$3._computedHeightFlexValue-$3.getMinHeightValue():$3._computedHeightFlexValue;if($e>0){$3._allocationLoops=Math.floor($e/$3._computedHeightParsed);}else{qx.lang.Array.removeAt($4,$7);$3._computedHeightFlexValue=Math.round($3._computedHeightFlexValue);$6+=Math.round($3._computedHeightFlexValue-$e);}}}while($c!=0&&$9>0){$9=$4.length;$d=Infinity;$g=0;for($7=0;$7<$9;$7++){$d=Math.min($d,$4[$7]._allocationLoops);$g+=$4[$7]._computedHeightParsed;}$f=Math.min($g*$d,$c);$c-=$f;for($7=$9-1;$7>=0;$7--){$3=$4[$7];$3._computedHeightFlexValue+=$f/$g*$3._computedHeightParsed;if($3._allocationLoops==$d){$3._computedHeightFlexValue=Math.round($3._computedHeightFlexValue);$6+=$3._computedHeightFlexValue;delete $3._allocationLoops;qx.lang.Array.removeAt($4,$7);}else{if($c==0){$3._computedHeightFlexValue=Math.round($3._computedHeightFlexValue);$6+=$3._computedHeightFlexValue;delete $3._allocationLoops;}else{$3._allocationLoops-=$d;}}}}}}$3._computedHeightFlexValue+=$5-$6;},invalidateChildrenFlexHeight:function(){delete this._childrenFlexHeightComputed;},computeChildrenNeededHeight:function(){var $0=this.getWidget();return qx.ui.layout.impl.LayoutImpl.prototype.computeChildrenNeededHeight_sum.call(this)+(($0.getVisibleChildrenLength()-1)*$0.getSpacing());},updateSelfOnChildOuterHeightChange:function($0){this.getWidget()._invalidateAccumulatedChildrenOuterHeight();},updateChildOnInnerWidthChange:function($0){var $1=$0._recomputePercentX();var $2=$0._recomputeStretchingX();if(($0.getHorizontalAlign()||this.getWidget().getHorizontalChildrenAlign())==$[57]){$0.addToLayoutChanges($[100]);}return $1||$2;},updateChildOnInnerHeightChange:function($0){if(this.getWidget().getVerticalChildrenAlign()==$[62]){$0.addToLayoutChanges($[113]);}var $1=$0._recomputePercentY();var $2=$0._recomputeFlexY();return $1||$2;},updateSelfOnJobQueueFlush:function($0){if($0.addChild||$0.removeChild){this.getWidget()._invalidateAccumulatedChildrenOuterHeight();}},updateChildrenOnJobQueueFlush:function($0){var $1=false,$2=false;var $3=this.getWidget();if($0.orientation){$1=$2=true;}if($0.spacing||$0.orientation||$0.reverseChildrenOrder||$0.verticalChildrenAlign){$3._addChildrenToLayoutQueue($[113]);}if($0.horizontalChildrenAlign){$3._addChildrenToLayoutQueue($[100]);}if($0.stretchChildrenOrthogonalAxis){$1=true;}if($1){$3._recomputeChildrenStretchingX();$3._addChildrenToLayoutQueue($[30]);}if($2){$3._recomputeChildrenStretchingY();$3._addChildrenToLayoutQueue($[31]);}return true;},updateChildrenOnRemoveChild:function($0,$1){var $2=this.getWidget(),$3=$2.getVisibleChildren(),$4=$3.length,$5,$6=-1;if(this.getEnableFlexSupport()){for(var $6=0;$6<$4;$6++){$5=$3[$6];if($5.getHasFlexY()){$1=Math.min($1,$6);break;}}$6=-1;}switch($2.getLayoutMode()){case $[17]:case $[221]:while(($5=$3[++$6])&&$6<$1){$5.addToLayoutChanges($[113]);}break;case $[62]:case $[228]:while($5=$3[++$6]){$5.addToLayoutChanges($[113]);}break;default:$6+=$1;while($5=$3[++$6]){$5.addToLayoutChanges($[113]);}}},updateChildrenOnMoveChild:function($0,$1,$2){var $3=this.getWidget().getVisibleChildren();var $4=Math.min($1,$2);var $5=Math.max($1,$2)+1;for(var $6=$4;$6<$5;$6++){$3[$6].addToLayoutChanges($[113]);}},flushChildrenQueue:function($0){var $1=this.getWidget(),$2=$1.getVisibleChildren(),$3=$2.length,$4,$5;if(this.getEnableFlexSupport()){this.invalidateChildrenFlexHeight();for($5=0;$5<$3;$5++){$4=$2[$5];if($4.getHasFlexY()){$4._computedHeightValue=null;if($4._recomputeBoxHeight()){$4._recomputeOuterHeight();$4._recomputeInnerHeight();}$0[$4.toHashCode()]=$4;$4._layoutChanges.height=true;}}}switch($1.getLayoutMode()){case $[17]:case $[221]:for(var $5=$3-1;$5>=0&&!$0[$2[$5].toHashCode()];$5--){}for(var $6=0;$6<=$5;$6++){$1._layoutChild($4=$2[$6]);}break;case $[62]:case $[228]:$5=-1;while($4=$2[++$5]){$1._layoutChild($4);}break;default:$5=-1;var $7=false;while($4=$2[++$5]){if($7||$0[$4.toHashCode()]){$1._layoutChild($4);$7=true;}}}},layoutChild:function($0,$1){this.layoutChild_sizeX($0,$1);this.layoutChild_sizeY($0,$1);this.layoutChild_sizeLimitX($0,$1);this.layoutChild_sizeLimitY($0,$1);this.layoutChild_locationX($0,$1);this.layoutChild_locationY($0,$1);this.layoutChild_marginX($0,$1);this.layoutChild_marginY($0,$1);},layoutChild_sizeX:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function($0,$1){if($1.initial||$1.width||$1.minWidth||$1.maxWidth){if(($0._isWidthEssential()&&(!$0._computedWidthTypeNull||!$0._computedMinWidthTypeNull||!$0._computedMaxWidthTypeNull))||($0.getAllowStretchX()&&this.getWidget().getStretchChildrenOrthogonalAxis())){$0._renderRuntimeWidth($0.getBoxWidth());}else{$0._resetRuntimeWidth();}}},"default":function($0,$1){if($1.initial||$1.width){if($0._isWidthEssential()&&!$0._computedWidthTypeNull){$0._renderRuntimeWidth($0.getWidthValue());}else{$0._resetRuntimeWidth();}}}}),layoutChild_sizeY:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function($0,$1){if($1.initial||$1.height||$1.minHeight||$1.maxHeight){if($0._isHeightEssential()&&(!$0._computedHeightTypeNull||!$0._computedMinHeightTypeNull||!$0._computedMaxHeightTypeNull)){$0._renderRuntimeHeight($0.getBoxHeight());}else{$0._resetRuntimeHeight();}}},"default":function($0,$1){if($1.initial||$1.height){if($0._isHeightEssential()&&!$0._computedHeightTypeNull){$0._renderRuntimeHeight($0.getHeightValue());}else{$0._resetRuntimeHeight();}}}}),layoutChild_locationY:function($0,$1){var $2=this.getWidget();if($2.getFirstVisibleChild()==$0){switch($2.getLayoutMode()){case $[17]:case $[221]:var $3=$2.getPaddingBottom()+$2.getAccumulatedChildrenOuterHeight()-$0.getOuterHeight();break;case $[62]:case $[228]:var $3=$2.getPaddingTop()+Math.round(($2.getInnerHeight()-$2.getAccumulatedChildrenOuterHeight())/2);break;default:var $3=$2.getPaddingTop();}}else{var $4=$0.getPreviousVisibleSibling();switch($2.getLayoutMode()){case $[17]:case $[221]:var $3=$4._cachedLocationVertical-$0.getOuterHeight()-$2.getSpacing();break;default:var $3=$4._cachedLocationVertical+$4.getOuterHeight()+$2.getSpacing();}}$0._cachedLocationVertical=$3;switch(this.getWidget().getLayoutMode()){case $[17]:case $[1266]:case $[228]:$3+=!$0._computedBottomTypeNull?$0.getBottomValue():!$0._computedTopTypeNull?-($0.getTopValue()):0;$0._resetRuntimeTop();$0._renderRuntimeBottom($3);break;default:$3+=!$0._computedTopTypeNull?$0.getTopValue():!$0._computedBottomTypeNull?-($0.getBottomValue()):0;$0._resetRuntimeBottom();$0._renderRuntimeTop($3);}},layoutChild_locationX:function($0,$1){var $2=this.getWidget();if(qx.core.Variant.isSet($[1],$[21])){if($0.getAllowStretchX()&&$2.getStretchChildrenOrthogonalAxis()&&$0._computedWidthTypeNull){$0._renderRuntimeLeft($2.getPaddingLeft()||0);$0._renderRuntimeRight($2.getPaddingRight()||0);return;}}var $3=$0.getHorizontalAlign()||$2.getHorizontalChildrenAlign();var $4=$3==$[57]?Math.round(($2.getInnerWidth()-$0.getOuterWidth())/2):0;if($3==$[9]){$4+=$2.getPaddingRight();if(!$0._computedRightTypeNull){$4+=$0.getRightValue();}else if(!$0._computedLeftTypeNull){$4-=$0.getLeftValue();}$0._resetRuntimeLeft();$0._renderRuntimeRight($4);}else{$4+=$2.getPaddingLeft();if(!$0._computedLeftTypeNull){$4+=$0.getLeftValue();}else if(!$0._computedRightTypeNull){$4-=$0.getRightValue();}$0._resetRuntimeRight();$0._renderRuntimeLeft($4);}}}});
110
qx.Class.define($[861],{extend:qx.ui.layout.impl.LayoutImpl,properties:{enableFlexSupport:{check:$[2],init:true}},members:{computeChildBoxWidth:function($0){if(this.getWidget().getStretchChildrenOrthogonalAxis()&&$0._computedWidthTypeNull&&$0.getAllowStretchX()){return this.getWidget().getInnerWidth();}return $0.getWidthValue()||$0._computeBoxWidthFallback();},computeChildBoxHeight:function($0){return $0.getHeightValue()||$0._computeBoxHeightFallback();},computeChildrenFlexHeight:function(){if(this._childrenFlexHeightComputed||!this.getEnableFlexSupport()){return;}this._childrenFlexHeightComputed=true;var $0=this.getWidget();var $1=$0.getVisibleChildren();var $2=$1.length;var $3;var $4=[];var $5=$0.getInnerHeight();var $6=$0.getSpacing()*($2-1);var $7;for($7=0;$7<$2;$7++){$3=$1[$7];if($3._computedHeightTypeFlex){$4.push($3);if($0._computedHeightTypeAuto){$6+=$3.getPreferredBoxHeight();}}else{$6+=$3.getOuterHeight();}}var $8=$5-$6;var $9=$4.length;var $a=0;for($7=0;$7<$9;$7++){$a+=$4[$7]._computedHeightParsed;}var $b=$8/$a;if(!$0.getUseAdvancedFlexAllocation()){for($7=0;$7<$9;$7++){$3=$4[$7];$3._computedHeightFlexValue=Math.round($3._computedHeightParsed*$b);$6+=$3._computedHeightFlexValue;}}else{var $c=0;var $d,$9,$e,$f,$g,$h;for($7=0;$7<$9;$7++){$3=$4[$7];$h=$3._computedHeightFlexValue=$3._computedHeightParsed*$b;$c+=$h-qx.lang.Number.limit($h,$3.getMinHeightValue(),$3.getMaxHeightValue());}$c=Math.round($c);if($c==0){for($7=0;$7<$9;$7++){$3=$4[$7];$3._computedHeightFlexValue=Math.round($3._computedHeightFlexValue);$6+=$3._computedHeightFlexValue;}}else{var $i=$c>0;for($7=$9-1;$7>=0;$7--){$3=$4[$7];if($i){$e=($3.getMaxHeightValue()||Infinity)-$3._computedHeightFlexValue;if($e>0){$3._allocationLoops=Math.floor($e/$3._computedHeightParsed);}else{qx.lang.Array.removeAt($4,$7);$3._computedHeightFlexValue=Math.round($3._computedHeightFlexValue);$6+=Math.round($3._computedHeightFlexValue+$e);}}else{$e=qx.util.Validation.isValidNumber($3.getMinHeightValue())?$3._computedHeightFlexValue-$3.getMinHeightValue():$3._computedHeightFlexValue;if($e>0){$3._allocationLoops=Math.floor($e/$3._computedHeightParsed);}else{qx.lang.Array.removeAt($4,$7);$3._computedHeightFlexValue=Math.round($3._computedHeightFlexValue);$6+=Math.round($3._computedHeightFlexValue-$e);}}}while($c!=0&&$9>0){$9=$4.length;$d=Infinity;$g=0;for($7=0;$7<$9;$7++){$d=Math.min($d,$4[$7]._allocationLoops);$g+=$4[$7]._computedHeightParsed;}$f=Math.min($g*$d,$c);$c-=$f;for($7=$9-1;$7>=0;$7--){$3=$4[$7];$3._computedHeightFlexValue+=$f/$g*$3._computedHeightParsed;if($3._allocationLoops==$d){$3._computedHeightFlexValue=Math.round($3._computedHeightFlexValue);$6+=$3._computedHeightFlexValue;delete $3._allocationLoops;qx.lang.Array.removeAt($4,$7);}else{if($c==0){$3._computedHeightFlexValue=Math.round($3._computedHeightFlexValue);$6+=$3._computedHeightFlexValue;delete $3._allocationLoops;}else{$3._allocationLoops-=$d;}}}}}}$3._computedHeightFlexValue+=$5-$6;},invalidateChildrenFlexHeight:function(){delete this._childrenFlexHeightComputed;},computeChildrenNeededHeight:function(){var $0=this.getWidget();return qx.ui.layout.impl.LayoutImpl.prototype.computeChildrenNeededHeight_sum.call(this)+(($0.getVisibleChildrenLength()-1)*$0.getSpacing());},updateSelfOnChildOuterHeightChange:function($0){this.getWidget()._invalidateAccumulatedChildrenOuterHeight();},updateChildOnInnerWidthChange:function($0){var $1=$0._recomputePercentX();var $2=$0._recomputeStretchingX();if(($0.getHorizontalAlign()||this.getWidget().getHorizontalChildrenAlign())==$[57]){$0.addToLayoutChanges($[100]);}return $1||$2;},updateChildOnInnerHeightChange:function($0){if(this.getWidget().getVerticalChildrenAlign()==$[62]){$0.addToLayoutChanges($[113]);}var $1=$0._recomputePercentY();var $2=$0._recomputeFlexY();return $1||$2;},updateSelfOnJobQueueFlush:function($0){if($0.addChild||$0.removeChild){this.getWidget()._invalidateAccumulatedChildrenOuterHeight();}},updateChildrenOnJobQueueFlush:function($0){var $1=false,$2=false;var $3=this.getWidget();if($0.orientation){$1=$2=true;}if($0.spacing||$0.orientation||$0.reverseChildrenOrder||$0.verticalChildrenAlign){$3._addChildrenToLayoutQueue($[113]);}if($0.horizontalChildrenAlign){$3._addChildrenToLayoutQueue($[100]);}if($0.stretchChildrenOrthogonalAxis){$1=true;}if($1){$3._recomputeChildrenStretchingX();$3._addChildrenToLayoutQueue($[30]);}if($2){$3._recomputeChildrenStretchingY();$3._addChildrenToLayoutQueue($[31]);}return true;},updateChildrenOnRemoveChild:function($0,$1){var $2=this.getWidget(),$3=$2.getVisibleChildren(),$4=$3.length,$5,$6=-1;if(this.getEnableFlexSupport()){for(var $6=0;$6<$4;$6++){$5=$3[$6];if($5.getHasFlexY()){$1=Math.min($1,$6);break;}}$6=-1;}switch($2.getLayoutMode()){case $[17]:case $[221]:while(($5=$3[++$6])&&$6<$1){$5.addToLayoutChanges($[113]);}break;case $[62]:case $[228]:while($5=$3[++$6]){$5.addToLayoutChanges($[113]);}break;default:$6+=$1;while($5=$3[++$6]){$5.addToLayoutChanges($[113]);}}},updateChildrenOnMoveChild:function($0,$1,$2){var $3=this.getWidget().getVisibleChildren();var $4=Math.min($1,$2);var $5=Math.max($1,$2)+1;for(var $6=$4;$6<$5;$6++){$3[$6].addToLayoutChanges($[113]);}},flushChildrenQueue:function($0){var $1=this.getWidget(),$2=$1.getVisibleChildren(),$3=$2.length,$4,$5;if(this.getEnableFlexSupport()){this.invalidateChildrenFlexHeight();for($5=0;$5<$3;$5++){$4=$2[$5];if($4.getHasFlexY()){$4._computedHeightValue=null;if($4._recomputeBoxHeight()){$4._recomputeOuterHeight();$4._recomputeInnerHeight();}$0[$4.toHashCode()]=$4;$4._layoutChanges.height=true;}}}switch($1.getLayoutMode()){case $[17]:case $[221]:for(var $5=$3-1;$5>=0&&!$0[$2[$5].toHashCode()];$5--){}for(var $6=0;$6<=$5;$6++){$1._layoutChild($4=$2[$6]);}break;case $[62]:case $[228]:$5=-1;while($4=$2[++$5]){$1._layoutChild($4);}break;default:$5=-1;var $7=false;while($4=$2[++$5]){if($7||$0[$4.toHashCode()]){$1._layoutChild($4);$7=true;}}}},layoutChild:function($0,$1){this.layoutChild_sizeX($0,$1);this.layoutChild_sizeY($0,$1);this.layoutChild_sizeLimitX($0,$1);this.layoutChild_sizeLimitY($0,$1);this.layoutChild_locationX($0,$1);this.layoutChild_locationY($0,$1);this.layoutChild_marginX($0,$1);this.layoutChild_marginY($0,$1);},layoutChild_sizeX:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function($0,$1){if($1.initial||$1.width||$1.minWidth||$1.maxWidth){if(($0._isWidthEssential()&&(!$0._computedWidthTypeNull||!$0._computedMinWidthTypeNull||!$0._computedMaxWidthTypeNull))||($0.getAllowStretchX()&&this.getWidget().getStretchChildrenOrthogonalAxis())){$0._renderRuntimeWidth($0.getBoxWidth());}else{$0._resetRuntimeWidth();}}},"default":function($0,$1){if($1.initial||$1.width){if($0._isWidthEssential()&&!$0._computedWidthTypeNull){$0._renderRuntimeWidth($0.getWidthValue());}else{$0._resetRuntimeWidth();}}}}),layoutChild_sizeY:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function($0,$1){if($1.initial||$1.height||$1.minHeight||$1.maxHeight){if($0._isHeightEssential()&&(!$0._computedHeightTypeNull||!$0._computedMinHeightTypeNull||!$0._computedMaxHeightTypeNull)){$0._renderRuntimeHeight($0.getBoxHeight());}else{$0._resetRuntimeHeight();}}},"default":function($0,$1){if($1.initial||$1.height){if($0._isHeightEssential()&&!$0._computedHeightTypeNull){$0._renderRuntimeHeight($0.getHeightValue());}else{$0._resetRuntimeHeight();}}}}),layoutChild_locationY:function($0,$1){var $2=this.getWidget();if($2.getFirstVisibleChild()==$0){switch($2.getLayoutMode()){case $[17]:case $[221]:var $3=$2.getPaddingBottom()+$2.getAccumulatedChildrenOuterHeight()-$0.getOuterHeight();break;case $[62]:case $[228]:var $3=$2.getPaddingTop()+Math.round(($2.getInnerHeight()-$2.getAccumulatedChildrenOuterHeight())/2);break;default:var $3=$2.getPaddingTop();}}else{var $4=$0.getPreviousVisibleSibling();switch($2.getLayoutMode()){case $[17]:case $[221]:var $3=$4._cachedLocationVertical-$0.getOuterHeight()-$2.getSpacing();break;default:var $3=$4._cachedLocationVertical+$4.getOuterHeight()+$2.getSpacing();}}$0._cachedLocationVertical=$3;switch(this.getWidget().getLayoutMode()){case $[17]:case $[1265]:case $[228]:$3+=!$0._computedBottomTypeNull?$0.getBottomValue():!$0._computedTopTypeNull?-($0.getTopValue()):0;$0._resetRuntimeTop();$0._renderRuntimeBottom($3);break;default:$3+=!$0._computedTopTypeNull?$0.getTopValue():!$0._computedBottomTypeNull?-($0.getBottomValue()):0;$0._resetRuntimeBottom();$0._renderRuntimeTop($3);}},layoutChild_locationX:function($0,$1){var $2=this.getWidget();if(qx.core.Variant.isSet($[1],$[21])){if($0.getAllowStretchX()&&$2.getStretchChildrenOrthogonalAxis()&&$0._computedWidthTypeNull){$0._renderRuntimeLeft($2.getPaddingLeft()||0);$0._renderRuntimeRight($2.getPaddingRight()||0);return;}}var $3=$0.getHorizontalAlign()||$2.getHorizontalChildrenAlign();var $4=$3==$[57]?Math.round(($2.getInnerWidth()-$0.getOuterWidth())/2):0;if($3==$[9]){$4+=$2.getPaddingRight();if(!$0._computedRightTypeNull){$4+=$0.getRightValue();}else if(!$0._computedLeftTypeNull){$4-=$0.getLeftValue();}$0._resetRuntimeLeft();$0._renderRuntimeRight($4);}else{$4+=$2.getPaddingLeft();if(!$0._computedLeftTypeNull){$4+=$0.getLeftValue();}else if(!$0._computedRightTypeNull){$4-=$0.getRightValue();}$0._resetRuntimeRight();$0._renderRuntimeLeft($4);}}}});
111
qx.Class.define($[1421],{extend:qx.ui.layout.impl.LayoutImpl,properties:{enableFlexSupport:{check:$[2],init:true}},members:{computeChildBoxWidth:function($0){return $0.getWidthValue()||$0._computeBoxWidthFallback();},computeChildBoxHeight:function($0){if(this.getWidget().getStretchChildrenOrthogonalAxis()&&$0._computedHeightTypeNull&&$0.getAllowStretchY()){return this.getWidget().getInnerHeight();}return $0.getHeightValue()||$0._computeBoxHeightFallback();},computeChildrenFlexWidth:function(){if(this._childrenFlexWidthComputed||!this.getEnableFlexSupport()){return;}this._childrenFlexWidthComputed=true;var $0=this.getWidget();var $1=$0.getVisibleChildren();var $2=$1.length;var $3;var $4=[];var $5=$0.getInnerWidth();var $6=$0.getSpacing()*($2-1);var $7;for($7=0;$7<$2;$7++){$3=$1[$7];if($3._computedWidthTypeFlex){$4.push($3);if($0._computedWidthTypeAuto){$6+=$3.getPreferredBoxWidth();}}else{$6+=$3.getOuterWidth();}}var $8=$5-$6;var $9=$4.length;var $a=0;for($7=0;$7<$9;$7++){$a+=$4[$7]._computedWidthParsed;}var $b=$8/$a;if(!$0.getUseAdvancedFlexAllocation()){for($7=0;$7<$9;$7++){$3=$4[$7];$3._computedWidthFlexValue=Math.round($3._computedWidthParsed*$b);$6+=$3._computedWidthFlexValue;}}else{var $c=0;var $d,$9,$e,$f,$g,$h;for($7=0;$7<$9;$7++){$3=$4[$7];$h=$3._computedWidthFlexValue=$3._computedWidthParsed*$b;$c+=$h-qx.lang.Number.limit($h,$3.getMinWidthValue(),$3.getMaxWidthValue());}$c=Math.round($c);if($c==0){for($7=0;$7<$9;$7++){$3=$4[$7];$3._computedWidthFlexValue=Math.round($3._computedWidthFlexValue);$6+=$3._computedWidthFlexValue;}}else{var $i=$c>0;for($7=$9-1;$7>=0;$7--){$3=$4[$7];if($i){$e=($3.getMaxWidthValue()||Infinity)-$3._computedWidthFlexValue;if($e>0){$3._allocationLoops=Math.floor($e/$3._computedWidthParsed);}else{qx.lang.Array.removeAt($4,$7);$3._computedWidthFlexValue=Math.round($3._computedWidthFlexValue);$6+=Math.round($3._computedWidthFlexValue+$e);}}else{$e=qx.util.Validation.isValidNumber($3.getMinWidthValue())?$3._computedWidthFlexValue-$3.getMinWidthValue():$3._computedWidthFlexValue;if($e>0){$3._allocationLoops=Math.floor($e/$3._computedWidthParsed);}else{qx.lang.Array.removeAt($4,$7);$3._computedWidthFlexValue=Math.round($3._computedWidthFlexValue);$6+=Math.round($3._computedWidthFlexValue-$e);}}}while($c!=0&&$9>0){$9=$4.length;$d=Infinity;$g=0;for($7=0;$7<$9;$7++){$d=Math.min($d,$4[$7]._allocationLoops);$g+=$4[$7]._computedWidthParsed;}$f=Math.min($g*$d,$c);$c-=$f;for($7=$9-1;$7>=0;$7--){$3=$4[$7];$3._computedWidthFlexValue+=$f/$g*$3._computedWidthParsed;if($3._allocationLoops==$d){$3._computedWidthFlexValue=Math.round($3._computedWidthFlexValue);$6+=$3._computedWidthFlexValue;delete $3._allocationLoops;qx.lang.Array.removeAt($4,$7);}else{if($c==0){$3._computedWidthFlexValue=Math.round($3._computedWidthFlexValue);$6+=$3._computedWidthFlexValue;delete $3._allocationLoops;}else{$3._allocationLoops-=$d;}}}}}}$3._computedWidthFlexValue+=$5-$6;},invalidateChildrenFlexWidth:function(){delete this._childrenFlexWidthComputed;},computeChildrenNeededWidth:function(){var $0=this.getWidget();return qx.ui.layout.impl.LayoutImpl.prototype.computeChildrenNeededWidth_sum.call(this)+(($0.getVisibleChildrenLength()-1)*$0.getSpacing());},updateSelfOnChildOuterWidthChange:function($0){this.getWidget()._invalidateAccumulatedChildrenOuterWidth();},updateChildOnInnerWidthChange:function($0){if(this.getWidget().getHorizontalChildrenAlign()==$[57]){$0.addToLayoutChanges($[100]);}var $1=$0._recomputePercentX();var $2=$0._recomputeFlexX();return $1||$2;},updateChildOnInnerHeightChange:function($0){var $1=$0._recomputePercentY();var $2=$0._recomputeStretchingY();if(($0.getVerticalAlign()||this.getWidget().getVerticalChildrenAlign())==$[62]){$0.addToLayoutChanges($[113]);}return $1||$2;},updateSelfOnJobQueueFlush:function($0){if($0.addChild||$0.removeChild){this.getWidget()._invalidateAccumulatedChildrenOuterWidth();}},updateChildrenOnJobQueueFlush:function($0){var $1=false,$2=false;var $3=this.getWidget();if($0.orientation){$1=$2=true;}if($0.spacing||$0.orientation||$0.reverseChildrenOrder||$0.horizontalChildrenAlign){$3._addChildrenToLayoutQueue($[100]);}if($0.verticalChildrenAlign){$3._addChildrenToLayoutQueue($[113]);}if($0.stretchChildrenOrthogonalAxis){$2=true;}if($1){$3._recomputeChildrenStretchingX();$3._addChildrenToLayoutQueue($[30]);}if($2){$3._recomputeChildrenStretchingY();$3._addChildrenToLayoutQueue($[31]);}return true;},updateChildrenOnRemoveChild:function($0,$1){var $2=this.getWidget(),$3=$2.getVisibleChildren(),$4=$3.length,$5,$6=-1;if(this.getEnableFlexSupport()){for($6=0;$6<$4;$6++){$5=$3[$6];if($5.getHasFlexX()){$1=Math.min($1,$6);break;}}$6=-1;}switch($2.getLayoutMode()){case $[9]:case $[217]:while(($5=$3[++$6])&&$6<$1){$5.addToLayoutChanges($[100]);}break;case $[57]:case $[229]:while($5=$3[++$6]){$5.addToLayoutChanges($[100]);}break;default:$6+=$1;while($5=$3[++$6]){$5.addToLayoutChanges($[100]);}}},updateChildrenOnMoveChild:function($0,$1,$2){var $3=this.getWidget().getVisibleChildren();var $4=Math.min($1,$2);var $5=Math.max($1,$2)+1;for(var $6=$4;$6<$5;$6++){$3[$6].addToLayoutChanges($[100]);}},flushChildrenQueue:function($0){var $1=this.getWidget(),$2=$1.getVisibleChildren(),$3=$2.length,$4,$5;if(this.getEnableFlexSupport()){this.invalidateChildrenFlexWidth();for($5=0;$5<$3;$5++){$4=$2[$5];if($4.getHasFlexX()){$4._computedWidthValue=null;if($4._recomputeBoxWidth()){$4._recomputeOuterWidth();$4._recomputeInnerWidth();}$0[$4.toHashCode()]=$4;$4._layoutChanges.width=true;}}}switch($1.getLayoutMode()){case $[9]:case $[217]:for(var $5=$3-1;$5>=0&&!$0[$2[$5].toHashCode()];$5--){}for(var $6=0;$6<=$5;$6++){$1._layoutChild($4=$2[$6]);}break;case $[57]:case $[229]:$5=-1;while($4=$2[++$5]){$1._layoutChild($4);}break;default:$5=-1;var $7=false;while($4=$2[++$5]){if($7||$0[$4.toHashCode()]){$1._layoutChild($4);$7=true;}}}},layoutChild:function($0,$1){this.layoutChild_sizeX($0,$1);this.layoutChild_sizeY($0,$1);this.layoutChild_sizeLimitX($0,$1);this.layoutChild_sizeLimitY($0,$1);this.layoutChild_locationX($0,$1);this.layoutChild_locationY($0,$1);this.layoutChild_marginX($0,$1);this.layoutChild_marginY($0,$1);},layoutChild_sizeX:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function($0,$1){if($1.initial||$1.width||$1.minWidth||$1.maxWidth){if($0._isWidthEssential()&&(!$0._computedWidthTypeNull||!$0._computedMinWidthTypeNull||!$0._computedMaxWidthTypeNull)){$0._renderRuntimeWidth($0.getBoxWidth());}else{$0._resetRuntimeWidth();}}},"default":function($0,$1){if($1.initial||$1.width){if($0._isWidthEssential()&&!$0._computedWidthTypeNull){$0._renderRuntimeWidth($0.getWidthValue());}else{$0._resetRuntimeWidth();}}}}),layoutChild_sizeY:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function($0,$1){if($1.initial||$1.height||$1.minHeight||$1.maxHeight){if(($0._isHeightEssential()&&(!$0._computedHeightTypeNull||!$0._computedMinHeightTypeNull||!$0._computedMaxHeightTypeNull))||($0.getAllowStretchY()&&this.getWidget().getStretchChildrenOrthogonalAxis())){$0._renderRuntimeHeight($0.getBoxHeight());}else{$0._resetRuntimeHeight();}}},"default":function($0,$1){if($1.initial||$1.height){if($0._isHeightEssential()&&!$0._computedHeightTypeNull){$0._renderRuntimeHeight($0.getHeightValue());}else{$0._resetRuntimeHeight();}}}}),layoutChild_locationX:function($0,$1){var $2=this.getWidget();if($2.getFirstVisibleChild()==$0){switch($2.getLayoutMode()){case $[9]:case $[217]:var $3=$2.getPaddingRight()+$2.getAccumulatedChildrenOuterWidth()-$0.getOuterWidth();break;case $[57]:case $[229]:var $3=$2.getPaddingLeft()+Math.round(($2.getInnerWidth()-$2.getAccumulatedChildrenOuterWidth())/2);break;default:var $3=$2.getPaddingLeft();}}else{var $4=$0.getPreviousVisibleSibling();switch($2.getLayoutMode()){case $[9]:case $[217]:var $3=$4._cachedLocationHorizontal-$0.getOuterWidth()-$2.getSpacing();break;default:var $3=$4._cachedLocationHorizontal+$4.getOuterWidth()+$2.getSpacing();}}$0._cachedLocationHorizontal=$3;switch($2.getLayoutMode()){case $[9]:case $[1062]:case $[229]:$3+=!$0._computedRightTypeNull?$0.getRightValue():!$0._computedLeftTypeNull?-($0.getLeftValue()):0;$0._resetRuntimeLeft();$0._renderRuntimeRight($3);break;default:$3+=!$0._computedLeftTypeNull?$0.getLeftValue():!$0._computedRightTypeNull?-($0.getRightValue()):0;$0._resetRuntimeRight();$0._renderRuntimeLeft($3);}},layoutChild_locationY:function($0,$1){var $2=this.getWidget();if(qx.core.Variant.isSet($[1],$[21])){if($0.getAllowStretchY()&&$2.getStretchChildrenOrthogonalAxis()&&$0._computedHeightTypeNull){$0._renderRuntimeTop($2.getPaddingTop()||0);$0._renderRuntimeBottom($2.getPaddingBottom()||0);return;}}var $3=$0.getVerticalAlign()||$2.getVerticalChildrenAlign();var $4=$3==$[62]?Math.round(($2.getInnerHeight()-$0.getOuterHeight())/2):0;if($3==$[17]){$4+=$2.getPaddingBottom();if(!$0._computedBottomTypeNull){$4+=$0.getBottomValue();}else if(!$0._computedTopTypeNull){$4-=$0.getTopValue();}$0._resetRuntimeTop();$0._renderRuntimeBottom($4);}else{$4+=$2.getPaddingTop();if(!$0._computedTopTypeNull){$4+=$0.getTopValue();}else if(!$0._computedBottomTypeNull){$4-=$0.getBottomValue();}$0._resetRuntimeBottom();$0._renderRuntimeTop($4);}}}});
111
qx.Class.define($[1422],{extend:qx.ui.layout.impl.LayoutImpl,properties:{enableFlexSupport:{check:$[2],init:true}},members:{computeChildBoxWidth:function($0){return $0.getWidthValue()||$0._computeBoxWidthFallback();},computeChildBoxHeight:function($0){if(this.getWidget().getStretchChildrenOrthogonalAxis()&&$0._computedHeightTypeNull&&$0.getAllowStretchY()){return this.getWidget().getInnerHeight();}return $0.getHeightValue()||$0._computeBoxHeightFallback();},computeChildrenFlexWidth:function(){if(this._childrenFlexWidthComputed||!this.getEnableFlexSupport()){return;}this._childrenFlexWidthComputed=true;var $0=this.getWidget();var $1=$0.getVisibleChildren();var $2=$1.length;var $3;var $4=[];var $5=$0.getInnerWidth();var $6=$0.getSpacing()*($2-1);var $7;for($7=0;$7<$2;$7++){$3=$1[$7];if($3._computedWidthTypeFlex){$4.push($3);if($0._computedWidthTypeAuto){$6+=$3.getPreferredBoxWidth();}}else{$6+=$3.getOuterWidth();}}var $8=$5-$6;var $9=$4.length;var $a=0;for($7=0;$7<$9;$7++){$a+=$4[$7]._computedWidthParsed;}var $b=$8/$a;if(!$0.getUseAdvancedFlexAllocation()){for($7=0;$7<$9;$7++){$3=$4[$7];$3._computedWidthFlexValue=Math.round($3._computedWidthParsed*$b);$6+=$3._computedWidthFlexValue;}}else{var $c=0;var $d,$9,$e,$f,$g,$h;for($7=0;$7<$9;$7++){$3=$4[$7];$h=$3._computedWidthFlexValue=$3._computedWidthParsed*$b;$c+=$h-qx.lang.Number.limit($h,$3.getMinWidthValue(),$3.getMaxWidthValue());}$c=Math.round($c);if($c==0){for($7=0;$7<$9;$7++){$3=$4[$7];$3._computedWidthFlexValue=Math.round($3._computedWidthFlexValue);$6+=$3._computedWidthFlexValue;}}else{var $i=$c>0;for($7=$9-1;$7>=0;$7--){$3=$4[$7];if($i){$e=($3.getMaxWidthValue()||Infinity)-$3._computedWidthFlexValue;if($e>0){$3._allocationLoops=Math.floor($e/$3._computedWidthParsed);}else{qx.lang.Array.removeAt($4,$7);$3._computedWidthFlexValue=Math.round($3._computedWidthFlexValue);$6+=Math.round($3._computedWidthFlexValue+$e);}}else{$e=qx.util.Validation.isValidNumber($3.getMinWidthValue())?$3._computedWidthFlexValue-$3.getMinWidthValue():$3._computedWidthFlexValue;if($e>0){$3._allocationLoops=Math.floor($e/$3._computedWidthParsed);}else{qx.lang.Array.removeAt($4,$7);$3._computedWidthFlexValue=Math.round($3._computedWidthFlexValue);$6+=Math.round($3._computedWidthFlexValue-$e);}}}while($c!=0&&$9>0){$9=$4.length;$d=Infinity;$g=0;for($7=0;$7<$9;$7++){$d=Math.min($d,$4[$7]._allocationLoops);$g+=$4[$7]._computedWidthParsed;}$f=Math.min($g*$d,$c);$c-=$f;for($7=$9-1;$7>=0;$7--){$3=$4[$7];$3._computedWidthFlexValue+=$f/$g*$3._computedWidthParsed;if($3._allocationLoops==$d){$3._computedWidthFlexValue=Math.round($3._computedWidthFlexValue);$6+=$3._computedWidthFlexValue;delete $3._allocationLoops;qx.lang.Array.removeAt($4,$7);}else{if($c==0){$3._computedWidthFlexValue=Math.round($3._computedWidthFlexValue);$6+=$3._computedWidthFlexValue;delete $3._allocationLoops;}else{$3._allocationLoops-=$d;}}}}}}$3._computedWidthFlexValue+=$5-$6;},invalidateChildrenFlexWidth:function(){delete this._childrenFlexWidthComputed;},computeChildrenNeededWidth:function(){var $0=this.getWidget();return qx.ui.layout.impl.LayoutImpl.prototype.computeChildrenNeededWidth_sum.call(this)+(($0.getVisibleChildrenLength()-1)*$0.getSpacing());},updateSelfOnChildOuterWidthChange:function($0){this.getWidget()._invalidateAccumulatedChildrenOuterWidth();},updateChildOnInnerWidthChange:function($0){if(this.getWidget().getHorizontalChildrenAlign()==$[57]){$0.addToLayoutChanges($[100]);}var $1=$0._recomputePercentX();var $2=$0._recomputeFlexX();return $1||$2;},updateChildOnInnerHeightChange:function($0){var $1=$0._recomputePercentY();var $2=$0._recomputeStretchingY();if(($0.getVerticalAlign()||this.getWidget().getVerticalChildrenAlign())==$[62]){$0.addToLayoutChanges($[113]);}return $1||$2;},updateSelfOnJobQueueFlush:function($0){if($0.addChild||$0.removeChild){this.getWidget()._invalidateAccumulatedChildrenOuterWidth();}},updateChildrenOnJobQueueFlush:function($0){var $1=false,$2=false;var $3=this.getWidget();if($0.orientation){$1=$2=true;}if($0.spacing||$0.orientation||$0.reverseChildrenOrder||$0.horizontalChildrenAlign){$3._addChildrenToLayoutQueue($[100]);}if($0.verticalChildrenAlign){$3._addChildrenToLayoutQueue($[113]);}if($0.stretchChildrenOrthogonalAxis){$2=true;}if($1){$3._recomputeChildrenStretchingX();$3._addChildrenToLayoutQueue($[30]);}if($2){$3._recomputeChildrenStretchingY();$3._addChildrenToLayoutQueue($[31]);}return true;},updateChildrenOnRemoveChild:function($0,$1){var $2=this.getWidget(),$3=$2.getVisibleChildren(),$4=$3.length,$5,$6=-1;if(this.getEnableFlexSupport()){for($6=0;$6<$4;$6++){$5=$3[$6];if($5.getHasFlexX()){$1=Math.min($1,$6);break;}}$6=-1;}switch($2.getLayoutMode()){case $[9]:case $[217]:while(($5=$3[++$6])&&$6<$1){$5.addToLayoutChanges($[100]);}break;case $[57]:case $[229]:while($5=$3[++$6]){$5.addToLayoutChanges($[100]);}break;default:$6+=$1;while($5=$3[++$6]){$5.addToLayoutChanges($[100]);}}},updateChildrenOnMoveChild:function($0,$1,$2){var $3=this.getWidget().getVisibleChildren();var $4=Math.min($1,$2);var $5=Math.max($1,$2)+1;for(var $6=$4;$6<$5;$6++){$3[$6].addToLayoutChanges($[100]);}},flushChildrenQueue:function($0){var $1=this.getWidget(),$2=$1.getVisibleChildren(),$3=$2.length,$4,$5;if(this.getEnableFlexSupport()){this.invalidateChildrenFlexWidth();for($5=0;$5<$3;$5++){$4=$2[$5];if($4.getHasFlexX()){$4._computedWidthValue=null;if($4._recomputeBoxWidth()){$4._recomputeOuterWidth();$4._recomputeInnerWidth();}$0[$4.toHashCode()]=$4;$4._layoutChanges.width=true;}}}switch($1.getLayoutMode()){case $[9]:case $[217]:for(var $5=$3-1;$5>=0&&!$0[$2[$5].toHashCode()];$5--){}for(var $6=0;$6<=$5;$6++){$1._layoutChild($4=$2[$6]);}break;case $[57]:case $[229]:$5=-1;while($4=$2[++$5]){$1._layoutChild($4);}break;default:$5=-1;var $7=false;while($4=$2[++$5]){if($7||$0[$4.toHashCode()]){$1._layoutChild($4);$7=true;}}}},layoutChild:function($0,$1){this.layoutChild_sizeX($0,$1);this.layoutChild_sizeY($0,$1);this.layoutChild_sizeLimitX($0,$1);this.layoutChild_sizeLimitY($0,$1);this.layoutChild_locationX($0,$1);this.layoutChild_locationY($0,$1);this.layoutChild_marginX($0,$1);this.layoutChild_marginY($0,$1);},layoutChild_sizeX:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function($0,$1){if($1.initial||$1.width||$1.minWidth||$1.maxWidth){if($0._isWidthEssential()&&(!$0._computedWidthTypeNull||!$0._computedMinWidthTypeNull||!$0._computedMaxWidthTypeNull)){$0._renderRuntimeWidth($0.getBoxWidth());}else{$0._resetRuntimeWidth();}}},"default":function($0,$1){if($1.initial||$1.width){if($0._isWidthEssential()&&!$0._computedWidthTypeNull){$0._renderRuntimeWidth($0.getWidthValue());}else{$0._resetRuntimeWidth();}}}}),layoutChild_sizeY:qx.core.Variant.select($[1],{"mshtml|opera|webkit":function($0,$1){if($1.initial||$1.height||$1.minHeight||$1.maxHeight){if(($0._isHeightEssential()&&(!$0._computedHeightTypeNull||!$0._computedMinHeightTypeNull||!$0._computedMaxHeightTypeNull))||($0.getAllowStretchY()&&this.getWidget().getStretchChildrenOrthogonalAxis())){$0._renderRuntimeHeight($0.getBoxHeight());}else{$0._resetRuntimeHeight();}}},"default":function($0,$1){if($1.initial||$1.height){if($0._isHeightEssential()&&!$0._computedHeightTypeNull){$0._renderRuntimeHeight($0.getHeightValue());}else{$0._resetRuntimeHeight();}}}}),layoutChild_locationX:function($0,$1){var $2=this.getWidget();if($2.getFirstVisibleChild()==$0){switch($2.getLayoutMode()){case $[9]:case $[217]:var $3=$2.getPaddingRight()+$2.getAccumulatedChildrenOuterWidth()-$0.getOuterWidth();break;case $[57]:case $[229]:var $3=$2.getPaddingLeft()+Math.round(($2.getInnerWidth()-$2.getAccumulatedChildrenOuterWidth())/2);break;default:var $3=$2.getPaddingLeft();}}else{var $4=$0.getPreviousVisibleSibling();switch($2.getLayoutMode()){case $[9]:case $[217]:var $3=$4._cachedLocationHorizontal-$0.getOuterWidth()-$2.getSpacing();break;default:var $3=$4._cachedLocationHorizontal+$4.getOuterWidth()+$2.getSpacing();}}$0._cachedLocationHorizontal=$3;switch($2.getLayoutMode()){case $[9]:case $[1062]:case $[229]:$3+=!$0._computedRightTypeNull?$0.getRightValue():!$0._computedLeftTypeNull?-($0.getLeftValue()):0;$0._resetRuntimeLeft();$0._renderRuntimeRight($3);break;default:$3+=!$0._computedLeftTypeNull?$0.getLeftValue():!$0._computedRightTypeNull?-($0.getRightValue()):0;$0._resetRuntimeRight();$0._renderRuntimeLeft($3);}},layoutChild_locationY:function($0,$1){var $2=this.getWidget();if(qx.core.Variant.isSet($[1],$[21])){if($0.getAllowStretchY()&&$2.getStretchChildrenOrthogonalAxis()&&$0._computedHeightTypeNull){$0._renderRuntimeTop($2.getPaddingTop()||0);$0._renderRuntimeBottom($2.getPaddingBottom()||0);return;}}var $3=$0.getVerticalAlign()||$2.getVerticalChildrenAlign();var $4=$3==$[62]?Math.round(($2.getInnerHeight()-$0.getOuterHeight())/2):0;if($3==$[17]){$4+=$2.getPaddingBottom();if(!$0._computedBottomTypeNull){$4+=$0.getBottomValue();}else if(!$0._computedTopTypeNull){$4-=$0.getTopValue();}$0._resetRuntimeTop();$0._renderRuntimeBottom($4);}else{$4+=$2.getPaddingTop();if(!$0._computedTopTypeNull){$4+=$0.getTopValue();}else if(!$0._computedBottomTypeNull){$4-=$0.getBottomValue();}$0._resetRuntimeBottom();$0._renderRuntimeTop($4);}}}});
112
qx.Class.define($[1743],{extend:qx.ui.layout.BoxLayout,properties:{orientation:{refine:true,init:$[117]}}});
112
qx.Class.define($[1743],{extend:qx.ui.layout.BoxLayout,properties:{orientation:{refine:true,init:$[117]}}});
113
qx.Class.define($[931],{extend:qx.ui.layout.BoxLayout});
113
qx.Class.define($[930],{extend:qx.ui.layout.BoxLayout});
114
qx.Class.define($[741],{extend:qx.ui.basic.Terminator,construct:function($0,$1,$2){arguments.callee.base.call(this);this._blank=qx.io.Alias.getInstance().resolve($[455]);if($0!=null){this.setSource($0);}if($1!=null){this.setWidth($1);}else{this.initWidth();}if($2!=null){this.setHeight($2);}else{this.initHeight();}this.initSelectable();},events:{"error":$[4]},properties:{allowStretchX:{refine:true,init:false},allowStretchY:{refine:true,init:false},selectable:{refine:true,init:false},width:{refine:true,init:$[3]},height:{refine:true,init:$[3]},appearance:{refine:true,init:$[1047]},source:{check:$[6],apply:$[365],event:$[392],nullable:true,themeable:true},preloader:{check:$[415],apply:$[624],nullable:true},loaded:{check:$[2],init:false,apply:$[1278]},resizeToInner:{check:$[2],init:false}},members:{_onload:function(){this.setLoaded(true);},_onerror:function(){this.warn("Could not load: "+this.getSource());this.setLoaded(false);if(this.hasEventListeners($[95])){this.dispatchEvent(new qx.event.type.Event($[95]),true);}},_beforeAppear:function(){var $0=this.getSource();if($0){qx.io.image.Manager.getInstance().show($0);this._registeredAsVisible=true;}return arguments.callee.base.call(this);},_beforeDisappear:function(){var $0=this.getSource();if($0&&this._registeredAsVisible){qx.io.image.Manager.getInstance().hide($0);delete this._registeredAsVisible;}return arguments.callee.base.call(this);},_applySource:function($0,$1){var $2=qx.io.image.Manager.getInstance();if($1){$2.remove($1);if(this._registeredAsVisible){$2.hide($1);delete this._registeredAsVisible;}}if($0){$2.add($0);if(this.isSeeable()){this._registeredAsVisible=true;$2.show($0);}}if(this.isCreated()){this._connect();}},_connect:function(){var $0=qx.io.Alias.getInstance();$0.connect(this._syncSource,this,this.getSource());},_syncSource:function($0){if($0===null){this.setPreloader(null);}else{var $1=qx.io.image.PreloaderManager.getInstance().create($0);this.setPreloader($1);}},_applyPreloader:function($0,$1){if($1){$1.removeEventListener($[82],this._onload,this);$1.removeEventListener($[95],this._onerror,this);}if($0){this.setLoaded(false);if($0.isErroneous()){this._onerror();}else if($0.isLoaded()){this.setLoaded(true);}else{$0.addEventListener($[82],this._onload,this);$0.addEventListener($[95],this._onerror,this);}}else{this.setLoaded(false);}},_applyLoaded:function($0,$1){if($0&&this.isCreated()){this._renderContent();}else if(!$0){this._invalidatePreferredInnerWidth();this._invalidatePreferredInnerHeight();}},_applyElement:function($0,$1){if($0){if(!this._image){try{if(qx.core.Variant.isSet($[1],$[147])){this._image=document.createElement($[945]);}else{this._image=new Image;}this._image.style.border=$[425];this._image.style.verticalAlign=$[20];this._image.alt=$[0];this._image.title=$[0];}catch(ex){this.error("Failed while creating image #1",ex);}if(qx.core.Variant.isSet($[1],$[351])){this._styleEnabled();}}$0.appendChild(this._image);}arguments.callee.base.call(this,$0,$1);if($0&&this.getSource()){this._connect();}},_postApply:function(){this._postApplyDimensions();this._updateContent();},_applyEnabled:function($0,$1){if(this._image){this._styleEnabled();}return arguments.callee.base.call(this,$0,$1);},_updateContent:qx.core.Variant.select($[1],{"mshtml":function(){var $0=this._image;var $1=this.getPreloader();var $2=$1&&$1.isLoaded()?$1.getSource():this._blank;if($1&&$1.getIsPng()&&this.getEnabled()){$0.src=this._blank;$0.style.filter=$[616]+$2+$[1715];}else{$0.src=$2;$0.style.filter=this.getEnabled()?$[0]:$[948];}},"default":function(){var $0=this.getPreloader();var $1=$0&&$0.isLoaded()?$0.getSource():this._blank;this._image.src=$1;}}),_resetContent:qx.core.Variant.select($[1],{"mshtml":function(){this._image.src=this._blank;this._image.style.filter=$[0];},"default":function(){this._image.src=this._blank;}}),_styleEnabled:qx.core.Variant.select($[1],{"mshtml":function(){this._updateContent();},"default":function(){if(this._image){var $0=this.getEnabled()===false?0.3:$[0];var $1=this._image.style;$1.opacity=$1.KhtmlOpacity=$1.MozOpacity=$0;}}}),_computePreferredInnerWidth:function(){var $0=this.getPreloader();return $0?$0.getWidth():0;},_computePreferredInnerHeight:function(){var $0=this.getPreloader();return $0?$0.getHeight():0;},_renderContent:function(){arguments.callee.base.call(this);qx.ui.core.Widget.flushGlobalQueues();},_postApplyDimensions:qx.core.Variant.select($[1],{"mshtml":function(){try{var $0=this._image.style;if(this.getResizeToInner()){$0.pixelWidth=this.getInnerWidth();$0.pixelHeight=this.getInnerHeight();}else{$0.pixelWidth=this.getPreferredInnerWidth();$0.pixelHeight=this.getPreferredInnerHeight();}}catch(ex){this.error("postApplyDimensions failed",ex);}},"default":function(){try{var $0=this._image;if(this.getResizeToInner()){$0.width=this.getInnerWidth();$0.height=this.getInnerHeight();}else{$0.width=this.getPreferredInnerWidth();$0.height=this.getPreferredInnerHeight();}}catch(ex){this.error("postApplyDimensions failed",ex);}}}),_changeInnerWidth:qx.core.Variant.select($[1],{"mshtml":function($0,$1){if(this.getResizeToInner()){this._image.style.pixelWidth=$0;}},"default":function($0,$1){if(this.getResizeToInner()){this._image.width=$0;}}}),_changeInnerHeight:qx.core.Variant.select($[1],{"mshtml":function($0,$1){if(this.getResizeToInner()){this._image.style.pixelHeight=$0;}},"default":function($0,$1){if(this.getResizeToInner()){this._image.height=$0;}}})},destruct:function(){if(this._image){this._image.style.filter=$[0];}this._disposeFields($[1345]);}});
114
qx.Class.define($[742],{extend:qx.ui.basic.Terminator,construct:function($0,$1,$2){arguments.callee.base.call(this);this._blank=qx.io.Alias.getInstance().resolve($[456]);if($0!=null){this.setSource($0);}if($1!=null){this.setWidth($1);}else{this.initWidth();}if($2!=null){this.setHeight($2);}else{this.initHeight();}this.initSelectable();},events:{"error":$[4]},properties:{allowStretchX:{refine:true,init:false},allowStretchY:{refine:true,init:false},selectable:{refine:true,init:false},width:{refine:true,init:$[3]},height:{refine:true,init:$[3]},appearance:{refine:true,init:$[1046]},source:{check:$[6],apply:$[364],event:$[393],nullable:true,themeable:true},preloader:{check:$[416],apply:$[624],nullable:true},loaded:{check:$[2],init:false,apply:$[1277]},resizeToInner:{check:$[2],init:false}},members:{_onload:function(){this.setLoaded(true);},_onerror:function(){this.warn("Could not load: "+this.getSource());this.setLoaded(false);if(this.hasEventListeners($[95])){this.dispatchEvent(new qx.event.type.Event($[95]),true);}},_beforeAppear:function(){var $0=this.getSource();if($0){qx.io.image.Manager.getInstance().show($0);this._registeredAsVisible=true;}return arguments.callee.base.call(this);},_beforeDisappear:function(){var $0=this.getSource();if($0&&this._registeredAsVisible){qx.io.image.Manager.getInstance().hide($0);delete this._registeredAsVisible;}return arguments.callee.base.call(this);},_applySource:function($0,$1){var $2=qx.io.image.Manager.getInstance();if($1){$2.remove($1);if(this._registeredAsVisible){$2.hide($1);delete this._registeredAsVisible;}}if($0){$2.add($0);if(this.isSeeable()){this._registeredAsVisible=true;$2.show($0);}}if(this.isCreated()){this._connect();}},_connect:function(){var $0=qx.io.Alias.getInstance();$0.connect(this._syncSource,this,this.getSource());},_syncSource:function($0){if($0===null){this.setPreloader(null);}else{var $1=qx.io.image.PreloaderManager.getInstance().create($0);this.setPreloader($1);}},_applyPreloader:function($0,$1){if($1){$1.removeEventListener($[82],this._onload,this);$1.removeEventListener($[95],this._onerror,this);}if($0){this.setLoaded(false);if($0.isErroneous()){this._onerror();}else if($0.isLoaded()){this.setLoaded(true);}else{$0.addEventListener($[82],this._onload,this);$0.addEventListener($[95],this._onerror,this);}}else{this.setLoaded(false);}},_applyLoaded:function($0,$1){if($0&&this.isCreated()){this._renderContent();}else if(!$0){this._invalidatePreferredInnerWidth();this._invalidatePreferredInnerHeight();}},_applyElement:function($0,$1){if($0){if(!this._image){try{if(qx.core.Variant.isSet($[1],$[147])){this._image=document.createElement($[944]);}else{this._image=new Image;}this._image.style.border=$[426];this._image.style.verticalAlign=$[20];this._image.alt=$[0];this._image.title=$[0];}catch(ex){this.error("Failed while creating image #1",ex);}if(qx.core.Variant.isSet($[1],$[350])){this._styleEnabled();}}$0.appendChild(this._image);}arguments.callee.base.call(this,$0,$1);if($0&&this.getSource()){this._connect();}},_postApply:function(){this._postApplyDimensions();this._updateContent();},_applyEnabled:function($0,$1){if(this._image){this._styleEnabled();}return arguments.callee.base.call(this,$0,$1);},_updateContent:qx.core.Variant.select($[1],{"mshtml":function(){var $0=this._image;var $1=this.getPreloader();var $2=$1&&$1.isLoaded()?$1.getSource():this._blank;if($1&&$1.getIsPng()&&this.getEnabled()){$0.src=this._blank;$0.style.filter=$[616]+$2+$[1715];}else{$0.src=$2;$0.style.filter=this.getEnabled()?$[0]:$[947];}},"default":function(){var $0=this.getPreloader();var $1=$0&&$0.isLoaded()?$0.getSource():this._blank;this._image.src=$1;}}),_resetContent:qx.core.Variant.select($[1],{"mshtml":function(){this._image.src=this._blank;this._image.style.filter=$[0];},"default":function(){this._image.src=this._blank;}}),_styleEnabled:qx.core.Variant.select($[1],{"mshtml":function(){this._updateContent();},"default":function(){if(this._image){var $0=this.getEnabled()===false?0.3:$[0];var $1=this._image.style;$1.opacity=$1.KhtmlOpacity=$1.MozOpacity=$0;}}}),_computePreferredInnerWidth:function(){var $0=this.getPreloader();return $0?$0.getWidth():0;},_computePreferredInnerHeight:function(){var $0=this.getPreloader();return $0?$0.getHeight():0;},_renderContent:function(){arguments.callee.base.call(this);qx.ui.core.Widget.flushGlobalQueues();},_postApplyDimensions:qx.core.Variant.select($[1],{"mshtml":function(){try{var $0=this._image.style;if(this.getResizeToInner()){$0.pixelWidth=this.getInnerWidth();$0.pixelHeight=this.getInnerHeight();}else{$0.pixelWidth=this.getPreferredInnerWidth();$0.pixelHeight=this.getPreferredInnerHeight();}}catch(ex){this.error("postApplyDimensions failed",ex);}},"default":function(){try{var $0=this._image;if(this.getResizeToInner()){$0.width=this.getInnerWidth();$0.height=this.getInnerHeight();}else{$0.width=this.getPreferredInnerWidth();$0.height=this.getPreferredInnerHeight();}}catch(ex){this.error("postApplyDimensions failed",ex);}}}),_changeInnerWidth:qx.core.Variant.select($[1],{"mshtml":function($0,$1){if(this.getResizeToInner()){this._image.style.pixelWidth=$0;}},"default":function($0,$1){if(this.getResizeToInner()){this._image.width=$0;}}}),_changeInnerHeight:qx.core.Variant.select($[1],{"mshtml":function($0,$1){if(this.getResizeToInner()){this._image.style.pixelHeight=$0;}},"default":function($0,$1){if(this.getResizeToInner()){this._image.height=$0;}}})},destruct:function(){if(this._image){this._image.style.filter=$[0];}this._disposeFields($[1345]);}});
115
qx.Class.define($[1210],{extend:qx.ui.basic.Terminator,construct:function($0){arguments.callee.base.call(this);if($0!=null){this.setText($0);}this.initWidth();this.initHeight();this.initSelectable();this.initCursor();this.initWrap();},statics:{_getMeasureNode:function(){var $0=this._measureNode;if(!$0){$0=document.createElement($[67]);var $1=$0.style;$1.width=$1.height=$[3];$1.visibility=$[36];$1.position=$[54];$1.zIndex=$[1233];document.body.appendChild($0);this._measureNode=$0;}return $0;}},properties:{appearance:{refine:true,init:$[195]},width:{refine:true,init:$[3]},height:{refine:true,init:$[3]},allowStretchX:{refine:true,init:false},allowStretchY:{refine:true,init:false},selectable:{refine:true,init:false},text:{apply:$[573],init:$[0],dispose:true,check:$[280]},wrap:{check:$[2],init:false,nullable:true,apply:$[271]},textAlign:{check:[$[11],$[57],$[9],$[264]],nullable:true,themeable:true,apply:$[287]},textOverflow:{check:$[2],init:true},mode:{check:[$[1649],$[254],$[3]],init:$[3]}},members:{_content:$[0],_applyTextAlign:function($0,$1){$0===null?this.removeStyleProperty($[244]):this.setStyleProperty($[244],$0);},_applyFont:function($0,$1){qx.theme.manager.Font.getInstance().connect(this._styleFont,this,$0);},_styleFont:function($0){this._invalidatePreferredInnerDimensions();$0?$0.render(this):qx.ui.core.Font.reset(this);},_applyTextColor:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._styleTextColor,this,$0);},_styleTextColor:function($0){$0?this.setStyleProperty($[233],$0):this.removeStyleProperty($[233]);},_applyWrap:function($0,$1){$0==null?this.removeStyleProperty($[414]):this.setStyleProperty($[414],$0?$[156]:$[321]);},_applyText:function($0,$1){this._syncText(this.getText());},_syncText:function($0){this._content=$0;if(this._isCreated){this._renderContent();}},_computeObjectNeededDimensions:function(){var $0=arguments.callee.self._getMeasureNode();var $1=$0.style;var $2=this._styleProperties;$1.fontFamily=$2.fontFamily||$[0];$1.fontSize=$2.fontSize||$[0];$1.fontWeight=$2.fontWeight||$[0];$1.fontStyle=$2.fontStyle||$[0];$0.innerHTML=this._content;this._cachedPreferredInnerWidth=$0.scrollWidth;this._cachedPreferredInnerHeight=$0.scrollHeight;},_computePreferredInnerWidth:function(){this._computeObjectNeededDimensions();return this._cachedPreferredInnerWidth;},_computePreferredInnerHeight:function(){this._computeObjectNeededDimensions();return this._cachedPreferredInnerHeight;},_postApply:function(){var $0=this._content;var $1=this._getTargetNode();if($0==null){$1.innerHTML=$[0];}else{var $2=$1.style;if(!this.getWrap()){if(this.getInnerWidth()<this.getPreferredInnerWidth()){$2.overflow=$[36];}else{$2.overflow=$[0];}}$1.innerHTML=$0;}}}});
115
qx.Class.define($[1209],{extend:qx.ui.basic.Terminator,construct:function($0){arguments.callee.base.call(this);if($0!=null){this.setText($0);}this.initWidth();this.initHeight();this.initSelectable();this.initCursor();this.initWrap();},statics:{_getMeasureNode:function(){var $0=this._measureNode;if(!$0){$0=document.createElement($[67]);var $1=$0.style;$1.width=$1.height=$[3];$1.visibility=$[36];$1.position=$[54];$1.zIndex=$[1232];document.body.appendChild($0);this._measureNode=$0;}return $0;}},properties:{appearance:{refine:true,init:$[195]},width:{refine:true,init:$[3]},height:{refine:true,init:$[3]},allowStretchX:{refine:true,init:false},allowStretchY:{refine:true,init:false},selectable:{refine:true,init:false},text:{apply:$[573],init:$[0],dispose:true,check:$[280]},wrap:{check:$[2],init:false,nullable:true,apply:$[271]},textAlign:{check:[$[11],$[57],$[9],$[264]],nullable:true,themeable:true,apply:$[287]},textOverflow:{check:$[2],init:true},mode:{check:[$[1648],$[254],$[3]],init:$[3]}},members:{_content:$[0],_applyTextAlign:function($0,$1){$0===null?this.removeStyleProperty($[244]):this.setStyleProperty($[244],$0);},_applyFont:function($0,$1){qx.theme.manager.Font.getInstance().connect(this._styleFont,this,$0);},_styleFont:function($0){this._invalidatePreferredInnerDimensions();$0?$0.render(this):qx.ui.core.Font.reset(this);},_applyTextColor:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._styleTextColor,this,$0);},_styleTextColor:function($0){$0?this.setStyleProperty($[233],$0):this.removeStyleProperty($[233]);},_applyWrap:function($0,$1){$0==null?this.removeStyleProperty($[415]):this.setStyleProperty($[415],$0?$[156]:$[321]);},_applyText:function($0,$1){this._syncText(this.getText());},_syncText:function($0){this._content=$0;if(this._isCreated){this._renderContent();}},_computeObjectNeededDimensions:function(){var $0=arguments.callee.self._getMeasureNode();var $1=$0.style;var $2=this._styleProperties;$1.fontFamily=$2.fontFamily||$[0];$1.fontSize=$2.fontSize||$[0];$1.fontWeight=$2.fontWeight||$[0];$1.fontStyle=$2.fontStyle||$[0];$0.innerHTML=this._content;this._cachedPreferredInnerWidth=$0.scrollWidth;this._cachedPreferredInnerHeight=$0.scrollHeight;},_computePreferredInnerWidth:function(){this._computeObjectNeededDimensions();return this._cachedPreferredInnerWidth;},_computePreferredInnerHeight:function(){this._computeObjectNeededDimensions();return this._cachedPreferredInnerHeight;},_postApply:function(){var $0=this._content;var $1=this._getTargetNode();if($0==null){$1.innerHTML=$[0];}else{var $2=$1.style;if(!this.getWrap()){if(this.getInnerWidth()<this.getPreferredInnerWidth()){$2.overflow=$[36];}else{$2.overflow=$[0];}}$1.innerHTML=$0;}}}});
116
qx.Class.define($[1784],{extend:qx.ui.basic.Terminator,construct:function(){arguments.callee.base.call(this);this.initWidth();},properties:{width:{refine:true,init:$[138]}}});
116
qx.Class.define($[1784],{extend:qx.ui.basic.Terminator,construct:function(){arguments.callee.base.call(this);this.initWidth();},properties:{width:{refine:true,init:$[138]}}});
117
qx.Class.define($[1072],{extend:qx.ui.layout.BoxLayout,construct:function($0,$1,$2,$3,$4){arguments.callee.base.call(this);this.getLayoutImpl().setEnableFlexSupport(false);if($0!==undefined){this.setLabel($0);}if(qx.Class.isDefined($[357])&&$4!=null&&$2!=null&&$3!=null&&qx.ui.embed.Flash.getPlayerVersion().getMajor()>0){this._flashMode=true;this.setIcon($4);}else if($1!=null){this.setIcon($1);}if($1||$4){if($2!=null){this.setIconWidth($2);}if($3!=null){this.setIconHeight($3);}}this.initWidth();this.initHeight();},properties:{orientation:{refine:true,init:$[132]},allowStretchX:{refine:true,init:false},allowStretchY:{refine:true,init:false},appearance:{refine:true,init:$[1347]},stretchChildrenOrthogonalAxis:{refine:true,init:false},width:{refine:true,init:$[3]},height:{refine:true,init:$[3]},horizontalChildrenAlign:{refine:true,init:$[57]},verticalChildrenAlign:{refine:true,init:$[62]},spacing:{refine:true,init:4},label:{apply:$[256],nullable:true,dispose:true,check:$[280]},icon:{check:$[6],apply:$[181],nullable:true,themeable:true},disabledIcon:{check:$[6],apply:$[1671],nullable:true,themeable:true},show:{init:$[110],check:[$[110],$[195],$[133],$[7]],themeable:true,nullable:true,inheritable:true,apply:$[1300],event:$[269]},iconPosition:{init:$[11],check:[$[20],$[9],$[17],$[11]],themeable:true,apply:$[1329]},iconWidth:{check:$[5],themeable:true,apply:$[1040],nullable:true},iconHeight:{check:$[5],themeable:true,apply:$[1567],nullable:true}},members:{_flashMode:false,_labelObject:null,_iconObject:null,_createLabel:function(){var $0=this._labelObject=new qx.ui.basic.Label(this.getLabel());$0.setAnonymous(true);this.addAt($0,this._iconObject?1:0);},_createIcon:function(){if(this._flashMode&&qx.Class.isDefined($[357])){var $0=this._iconObject=new qx.ui.embed.Flash(this.getIcon());}else{var $0=this._iconObject=new qx.ui.basic.Image();}$0.setAnonymous(true);var $1=this.getIconWidth();if($1!==null){this._iconObject.setWidth($1);}var $2=this.getIconWidth();if($2!==null){this._iconObject.setHeight($2);}this._updateIcon();this.addAt($0,0);},_updateIcon:function(){var $0=this.getIcon();if(this._iconObject&&this.getIcon&&this.getDisabledIcon){var $1=this.getDisabledIcon();if($1){if(this.getEnabled()){$0?this._iconObject.setSource($0):this._iconObject.resetSource();}else{$1?this._iconObject.setSource($1):this._iconObject.resetSource();}this._iconObject.setEnabled(true);}else{$0?this._iconObject.setSource($0):this._iconObject.resetSource();this._iconObject.resetEnabled();}}},getLabelObject:function(){return this._labelObject;},getIconObject:function(){return this._iconObject;},_applyIconPosition:function($0,$1){switch($0){case $[20]:case $[17]:this.setOrientation($[117]);this.setReverseChildrenOrder($0==$[17]);break;default:this.setOrientation($[132]);this.setReverseChildrenOrder($0==$[9]);break;}},_applyShow:function($0,$1){this._handleIcon();this._handleLabel();},_applyLabel:function($0,$1){if(this._labelObject){$0?this._labelObject.setText($0):this._labelObject.resetText();}this._handleLabel();},_applyIcon:function($0,$1){this._updateIcon();this._handleIcon();},_applyDisabledIcon:function($0,$1){this._updateIcon();this._handleIcon();},_applyIconWidth:function($0,$1){if(this._iconObject){this._iconObject.setWidth($0);}},_applyIconHeight:function($0,$1){if(this._iconObject){this._iconObject.setHeight($0);}},_iconIsVisible:false,_labelIsVisible:false,_handleLabel:function(){switch(this.getShow()){case $[195]:case $[110]:case $[116]:this._labelIsVisible=!!this.getLabel();break;default:this._labelIsVisible=false;}if(this._labelIsVisible){this._labelObject?this._labelObject.setDisplay(true):this._createLabel();}else if(this._labelObject){this._labelObject.setDisplay(false);}},_handleIcon:function(){switch(this.getShow()){case $[133]:case $[110]:case $[116]:this._iconIsVisible=!!this.getIcon();break;default:this._iconIsVisible=false;}if(this._iconIsVisible){this._iconObject?this._iconObject.setDisplay(true):this._createIcon();}else if(this._iconObject){this._iconObject.setDisplay(false);}}},destruct:function(){this._disposeObjects($[297],$[249]);}});
117
qx.Class.define($[1072],{extend:qx.ui.layout.BoxLayout,construct:function($0,$1,$2,$3,$4){arguments.callee.base.call(this);this.getLayoutImpl().setEnableFlexSupport(false);if($0!==undefined){this.setLabel($0);}if(qx.Class.isDefined($[356])&&$4!=null&&$2!=null&&$3!=null&&qx.ui.embed.Flash.getPlayerVersion().getMajor()>0){this._flashMode=true;this.setIcon($4);}else if($1!=null){this.setIcon($1);}if($1||$4){if($2!=null){this.setIconWidth($2);}if($3!=null){this.setIconHeight($3);}}this.initWidth();this.initHeight();},properties:{orientation:{refine:true,init:$[132]},allowStretchX:{refine:true,init:false},allowStretchY:{refine:true,init:false},appearance:{refine:true,init:$[1347]},stretchChildrenOrthogonalAxis:{refine:true,init:false},width:{refine:true,init:$[3]},height:{refine:true,init:$[3]},horizontalChildrenAlign:{refine:true,init:$[57]},verticalChildrenAlign:{refine:true,init:$[62]},spacing:{refine:true,init:4},label:{apply:$[256],nullable:true,dispose:true,check:$[280]},icon:{check:$[6],apply:$[181],nullable:true,themeable:true},disabledIcon:{check:$[6],apply:$[1670],nullable:true,themeable:true},show:{init:$[110],check:[$[110],$[195],$[133],$[7]],themeable:true,nullable:true,inheritable:true,apply:$[1298],event:$[269]},iconPosition:{init:$[11],check:[$[20],$[9],$[17],$[11]],themeable:true,apply:$[1328]},iconWidth:{check:$[5],themeable:true,apply:$[1039],nullable:true},iconHeight:{check:$[5],themeable:true,apply:$[1566],nullable:true}},members:{_flashMode:false,_labelObject:null,_iconObject:null,_createLabel:function(){var $0=this._labelObject=new qx.ui.basic.Label(this.getLabel());$0.setAnonymous(true);this.addAt($0,this._iconObject?1:0);},_createIcon:function(){if(this._flashMode&&qx.Class.isDefined($[356])){var $0=this._iconObject=new qx.ui.embed.Flash(this.getIcon());}else{var $0=this._iconObject=new qx.ui.basic.Image();}$0.setAnonymous(true);var $1=this.getIconWidth();if($1!==null){this._iconObject.setWidth($1);}var $2=this.getIconWidth();if($2!==null){this._iconObject.setHeight($2);}this._updateIcon();this.addAt($0,0);},_updateIcon:function(){var $0=this.getIcon();if(this._iconObject&&this.getIcon&&this.getDisabledIcon){var $1=this.getDisabledIcon();if($1){if(this.getEnabled()){$0?this._iconObject.setSource($0):this._iconObject.resetSource();}else{$1?this._iconObject.setSource($1):this._iconObject.resetSource();}this._iconObject.setEnabled(true);}else{$0?this._iconObject.setSource($0):this._iconObject.resetSource();this._iconObject.resetEnabled();}}},getLabelObject:function(){return this._labelObject;},getIconObject:function(){return this._iconObject;},_applyIconPosition:function($0,$1){switch($0){case $[20]:case $[17]:this.setOrientation($[117]);this.setReverseChildrenOrder($0==$[17]);break;default:this.setOrientation($[132]);this.setReverseChildrenOrder($0==$[9]);break;}},_applyShow:function($0,$1){this._handleIcon();this._handleLabel();},_applyLabel:function($0,$1){if(this._labelObject){$0?this._labelObject.setText($0):this._labelObject.resetText();}this._handleLabel();},_applyIcon:function($0,$1){this._updateIcon();this._handleIcon();},_applyDisabledIcon:function($0,$1){this._updateIcon();this._handleIcon();},_applyIconWidth:function($0,$1){if(this._iconObject){this._iconObject.setWidth($0);}},_applyIconHeight:function($0,$1){if(this._iconObject){this._iconObject.setHeight($0);}},_iconIsVisible:false,_labelIsVisible:false,_handleLabel:function(){switch(this.getShow()){case $[195]:case $[110]:case $[116]:this._labelIsVisible=!!this.getLabel();break;default:this._labelIsVisible=false;}if(this._labelIsVisible){this._labelObject?this._labelObject.setDisplay(true):this._createLabel();}else if(this._labelObject){this._labelObject.setDisplay(false);}},_handleIcon:function(){switch(this.getShow()){case $[133]:case $[110]:case $[116]:this._iconIsVisible=!!this.getIcon();break;default:this._iconIsVisible=false;}if(this._iconIsVisible){this._iconObject?this._iconObject.setDisplay(true):this._createIcon();}else if(this._iconObject){this._iconObject.setDisplay(false);}}},destruct:function(){this._disposeObjects($[297],$[249]);}});
118
qx.Class.define($[303],{extend:qx.ui.basic.Atom,construct:function($0,$1,$2,$3,$4){arguments.callee.base.call(this,$0,$1,$2,$3,$4);this.initTabIndex();this.addEventListener($[61],this._onmouseover);this.addEventListener($[105],this._onmouseout);this.addEventListener($[12],this._onmousedown);this.addEventListener($[22],this._onmouseup);this.addEventListener($[16],this._onkeydown);this.addEventListener($[88],this._onkeyup);},properties:{appearance:{refine:true,init:$[1763]},tabIndex:{refine:true,init:1}},members:{_onmouseover:function($0){if($0.getTarget()!=this){return;}if(this.hasState($[35])){this.removeState($[35]);this.addState($[14]);}this.addState($[43]);},_onmouseout:function($0){if($0.getTarget()!=this){return;}this.removeState($[43]);if(this.hasState($[14])){this.setCapture(true);this.removeState($[14]);this.addState($[35]);}},_onmousedown:function($0){if($0.getTarget()!=this||!$0.isLeftButtonPressed()){return;}this.removeState($[35]);this.addState($[14]);},_onmouseup:function($0){this.setCapture(false);var $1=this.hasState($[14]);var $2=this.hasState($[35]);if($1){this.removeState($[14]);}if($2){this.removeState($[35]);}if(!$2){this.addState($[43]);if($1){this.execute();}}},_onkeydown:function($0){switch($0.getKeyIdentifier()){case $[46]:case $[84]:this.removeState($[35]);this.addState($[14]);$0.stopPropagation();}},_onkeyup:function($0){switch($0.getKeyIdentifier()){case $[46]:case $[84]:if(this.hasState($[14])){this.removeState($[35]);this.removeState($[14]);this.execute();$0.stopPropagation();}}}}});
118
qx.Class.define($[303],{extend:qx.ui.basic.Atom,construct:function($0,$1,$2,$3,$4){arguments.callee.base.call(this,$0,$1,$2,$3,$4);this.initTabIndex();this.addEventListener($[61],this._onmouseover);this.addEventListener($[105],this._onmouseout);this.addEventListener($[12],this._onmousedown);this.addEventListener($[22],this._onmouseup);this.addEventListener($[16],this._onkeydown);this.addEventListener($[84],this._onkeyup);},properties:{appearance:{refine:true,init:$[1763]},tabIndex:{refine:true,init:1}},members:{_onmouseover:function($0){if($0.getTarget()!=this){return;}if(this.hasState($[35])){this.removeState($[35]);this.addState($[14]);}this.addState($[43]);},_onmouseout:function($0){if($0.getTarget()!=this){return;}this.removeState($[43]);if(this.hasState($[14])){this.setCapture(true);this.removeState($[14]);this.addState($[35]);}},_onmousedown:function($0){if($0.getTarget()!=this||!$0.isLeftButtonPressed()){return;}this.removeState($[35]);this.addState($[14]);},_onmouseup:function($0){this.setCapture(false);var $1=this.hasState($[14]);var $2=this.hasState($[35]);if($1){this.removeState($[14]);}if($2){this.removeState($[35]);}if(!$2){this.addState($[43]);if($1){this.execute();}}},_onkeydown:function($0){switch($0.getKeyIdentifier()){case $[46]:case $[85]:this.removeState($[35]);this.addState($[14]);$0.stopPropagation();}},_onkeyup:function($0){switch($0.getKeyIdentifier()){case $[46]:case $[85]:if(this.hasState($[14])){this.removeState($[35]);this.removeState($[14]);this.execute();$0.stopPropagation();}}}}});
119
qx.Class.define($[861],{extend:qx.log.appender.Abstract,properties:{element:{check:$[518],nullable:true,apply:$[466]},maxMessages:{check:$[5],init:500},useLongFormat:{refine:true,init:false}},members:{__backgroundColors:{0:$[201],200:$[201],500:$[1624],600:$[1245],700:$[409],800:$[409],1000:$[201]},_prepare:function(){if(!this._frame){this._frame=document.createElement($[67]);}},_applyElement:function($0,$1){this._prepare();if($0){$0.appendChild(this._frame);}else if($1){$1.removeChild(this._frame);}},clear:function(){if(this._frame){this._frame.innerHTML=$[0];}},appendLogEvent:function($0){this._prepare();var $1=$0.logger.getName();if($0.instanceId!=null){$1+=$[511]+$0.instanceId+$[115];}if($1!=this._lastGroup){var $2=document.createElement($[67]);$2.style.fontWeight=$[278];$2.innerHTML=$1;this._frame.appendChild($2);this._lastGroup=$1;}var $2=document.createElement($[67]);$2.style.backgroundColor=this.__backgroundColors[$0.level];$2.innerHTML=this.formatLogEvent($0).replace(/&/g,$[478]).replace(/</g,$[335]).replace(/  /g,$[1371]).replace(/[\n]/g,$[484]);this._frame.appendChild($2);while(this._frame.childNodes.length>this.getMaxMessages()){this._frame.removeChild(this._frame.firstChild);if(this._removedMessageCount==null){this._removedMessageCount=1;}else{this._removedMessageCount++;}}if(this._removedMessageCount!=null){this._frame.firstChild.className=$[0];this._frame.firstChild.innerHTML=$[316]+this._removedMessageCount+$[457];}}},destruct:function(){this._disposeFields($[307]);}});
119
qx.Class.define($[862],{extend:qx.log.appender.Abstract,properties:{element:{check:$[519],nullable:true,apply:$[468]},maxMessages:{check:$[5],init:500},useLongFormat:{refine:true,init:false}},members:{__backgroundColors:{0:$[201],200:$[201],500:$[1623],600:$[1244],700:$[410],800:$[410],1000:$[201]},_prepare:function(){if(!this._frame){this._frame=document.createElement($[67]);}},_applyElement:function($0,$1){this._prepare();if($0){$0.appendChild(this._frame);}else if($1){$1.removeChild(this._frame);}},clear:function(){if(this._frame){this._frame.innerHTML=$[0];}},appendLogEvent:function($0){this._prepare();var $1=$0.logger.getName();if($0.instanceId!=null){$1+=$[512]+$0.instanceId+$[115];}if($1!=this._lastGroup){var $2=document.createElement($[67]);$2.style.fontWeight=$[278];$2.innerHTML=$1;this._frame.appendChild($2);this._lastGroup=$1;}var $2=document.createElement($[67]);$2.style.backgroundColor=this.__backgroundColors[$0.level];$2.innerHTML=this.formatLogEvent($0).replace(/&/g,$[479]).replace(/</g,$[335]).replace(/  /g,$[1372]).replace(/[\n]/g,$[484]);this._frame.appendChild($2);while(this._frame.childNodes.length>this.getMaxMessages()){this._frame.removeChild(this._frame.firstChild);if(this._removedMessageCount==null){this._removedMessageCount=1;}else{this._removedMessageCount++;}}if(this._removedMessageCount!=null){this._frame.firstChild.className=$[0];this._frame.firstChild.innerHTML=$[316]+this._removedMessageCount+$[458];}}},destruct:function(){this._disposeFields($[307]);}});
120
qx.Class.define($[1259],{type:$[51],extend:qx.ui.layout.BoxLayout,construct:function($0){this._indentObject=$0._indentObject;this._iconObject=$0._iconObject;this._labelObject=$0._labelObject;this._indentObject.setAnonymous(true);this._iconObject.setAnonymous(true);this._labelObject.setAnonymous(true);this._labelObject.setSelectable(false);this._labelObject.setStyleProperty($[521],$[56]);this._labelObject.setMode($[254]);arguments.callee.base.call(this);if(qx.util.Validation.isValid($0._label)){this.setLabel($0._label);}this.initSelectable();this.BASE_URI=qx.io.Alias.getInstance().resolve("widget/tree/");for(var $1=0;$1<$0._fields.length;$1++){this.add($0._fields[$1]);}if($0._icons.unselected!==undefined){this.setIcon($0._icons.unselected);this.setIconSelected($0._icons.unselected);}else{this.initIcon();}if($0._icons.selected!==undefined){this.setIconSelected($0._icons.selected);}if(($0._icons.selected===undefined)&&($0._icons.unselected!==undefined)){this.initIconSelected();}this._iconObject.setAppearance($[1541]);this._labelObject.setAppearance($[960]);this.addEventListener($[12],this._onmousedown);this.addEventListener($[22],this._onmouseup);},properties:{orientation:{refine:true,init:$[132]},selectable:{refine:true,init:false},appearance:{refine:true,init:$[1796]},icon:{check:$[6],nullable:true,init:$[1226],apply:$[181]},iconSelected:{check:$[6],event:$[805],nullable:true,init:null,apply:$[181]},label:{check:$[280],apply:$[256],dispose:true},selected:{check:$[2],init:false,apply:$[267],event:$[261]}},members:{_applyLabel:function($0,$1){if(this._labelObject){this._labelObject.setText($0);}},_applyIcon:function($0,$1){var $2=this.getIconObject();if($2){var $3=this._evalCurrentIcon();if(!$3){$2.setDisplay(false);}else{$2.setDisplay(true);$2.setSource($3);}this.addToTreeQueue();}},_applySelected:function($0,$1){if($0){this.addState($[92]);this._labelObject.addState($[92]);}else{this.removeState($[92]);this._labelObject.removeState($[92]);}var $2=this.getTree();if(!$2._fastUpdate||($1&&$2._oldItem==this)){this._iconObject.setSource(this._evalCurrentIcon());if($0){this._iconObject.addState($[92]);}else{this._iconObject.removeState($[92]);}}var $3=this.getTree().getManager();$3.setItemSelected(this,$0);},_getRowStructure:function($0,$1,$2){if($0 instanceof qx.ui.tree.TreeRowStructure){return $0;}else{return qx.ui.tree.TreeRowStructure.getInstance().standard($0,$1,$2);}},_evalCurrentIcon:function(){if(this.getSelected()&&this.getIconSelected()){return this.getIconSelected();}else{return this.getIcon();}},getParentFolder:function(){if(this.getParent()&&typeof (this.getParent().getParent)==$[37]){return this.getParent().getParent();}return null;},getLevel:function(){var $0=this.getParentFolder();return $0?$0.getLevel()+1:null;},getTree:function(){var $0=this.getParentFolder();return $0?$0.getTree():null;},getIndentObject:function(){return this._indentObject;},getIconObject:function(){return this._iconObject;},getLabelObject:function(){return this._labelObject;},destroy:function(){var $0=this.getTree()?this.getTree().getManager():null;if($0){if($0.getItemSelected(this)){if($0.getMultiSelection()){$0.setItemSelected(this,false);}else{$0.deselectAll();}}if($0.getLeadItem()==this){$0.setLeadItem(null);}if($0.getAnchorItem()==this){$0.setAnchorItem(null);}}if(this.destroyContent){this.destroyContent();}this.disconnect();var $1=this.getParentFolder();if($1){$1.remove(this);}qx.client.Timer.once(function(){this.dispose();},this,0);},getHierarchy:function($0){if(this._labelObject){$0.unshift(this._labelObject.getText());}var $1=this.getParentFolder();if($1){$1.getHierarchy($0);}return $0;},addToTreeQueue:function(){var $0=this.getTree();if($0){$0.addChildToTreeQueue(this);}},removeFromTreeQueue:function(){var $0=this.getTree();if($0){$0.removeChildFromTreeQueue(this);}},addToCustomQueues:function($0){this.addToTreeQueue();arguments.callee.base.call(this,$0);},removeFromCustomQueues:function($0){this.removeFromTreeQueue();arguments.callee.base.call(this,$0);},_applyParent:function($0,$1){arguments.callee.base.call(this,$0,$1);if($1&&!$1.isDisplayable()&&$1.getParent()&&$1.getParent().isDisplayable()){$1.getParent().addToTreeQueue();}if($0&&!$0.isDisplayable()&&$0.getParent()&&$0.getParent().isDisplayable()){$0.getParent().addToTreeQueue();}},_handleDisplayableCustom:function($0,$1,$2){arguments.callee.base.call(this,$0,$1,$2);if($2){var $3=this.getParentFolder();var $4=this._previousParentFolder;if($4){if(this._wasLastVisibleChild){$4._updateIndent();}else if(!$4.hasContent()){$4.addToTreeQueue();}}if($3&&$3.isDisplayable()&&$3._initialLayoutDone){$3.addToTreeQueue();}if(this.isLastVisibleChild()){var $5=this.getPreviousVisibleSibling();if($5&&$5 instanceof qx.ui.tree.AbstractTreeElement){$5._updateIndent();}}if($0){this._updateIndent();}}},_onmousedown:function($0){if($0._treeProcessed){return;}this.getTree().getManager().handleMouseDown(this,$0);$0._treeProcessed=true;},_onmouseup:function($0){if($0._treeProcessed){return;}var $1=$0.getOriginalTarget();switch($1){case this._indentObject:case this._containerObject:case this:break;default:this.getTree().getManager().handleMouseUp(this,$0);$0._treeProcessed=true;}},flushTree:function(){this._previousParentFolder=this.getParentFolder();this._wasLastVisibleChild=this.isLastVisibleChild();var $0=this.getLevel();var $1=this.getTree();if(!$1){return;}var $2;var $3=[];var $4=this;var $5=0;var $6=$0;if($1.getRootOpenClose()){$6=$0+1;}if($1.getHideNode()){$5=1;}for(var $7=$5;$7<$6;$7++){$2=$4.getIndentSymbol($1.getUseTreeLines(),$7,$5,$6);if($2){$3.push($[761]);$3.push(($6-$7-1)*19);$3.push($[885]);$3.push(this.BASE_URI);$3.push($2);$3.push($[24]);$3.push($[1477]);$3.push($[1399]);}$4=$4.getParentFolder();}this._indentObject.setHtml($3.join($[0]));this._indentObject.setWidth(($6-$5)*19);}},destruct:function(){this._disposeObjects($[714],$[297],$[249]);this._disposeFields($[1189]);}});
120
qx.Class.define($[1258],{type:$[51],extend:qx.ui.layout.BoxLayout,construct:function($0){this._indentObject=$0._indentObject;this._iconObject=$0._iconObject;this._labelObject=$0._labelObject;this._indentObject.setAnonymous(true);this._iconObject.setAnonymous(true);this._labelObject.setAnonymous(true);this._labelObject.setSelectable(false);this._labelObject.setStyleProperty($[522],$[56]);this._labelObject.setMode($[254]);arguments.callee.base.call(this);if(qx.util.Validation.isValid($0._label)){this.setLabel($0._label);}this.initSelectable();this.BASE_URI=qx.io.Alias.getInstance().resolve("widget/tree/");for(var $1=0;$1<$0._fields.length;$1++){this.add($0._fields[$1]);}if($0._icons.unselected!==undefined){this.setIcon($0._icons.unselected);this.setIconSelected($0._icons.unselected);}else{this.initIcon();}if($0._icons.selected!==undefined){this.setIconSelected($0._icons.selected);}if(($0._icons.selected===undefined)&&($0._icons.unselected!==undefined)){this.initIconSelected();}this._iconObject.setAppearance($[1541]);this._labelObject.setAppearance($[959]);this.addEventListener($[12],this._onmousedown);this.addEventListener($[22],this._onmouseup);},properties:{orientation:{refine:true,init:$[132]},selectable:{refine:true,init:false},appearance:{refine:true,init:$[1796]},icon:{check:$[6],nullable:true,init:$[1225],apply:$[181]},iconSelected:{check:$[6],event:$[806],nullable:true,init:null,apply:$[181]},label:{check:$[280],apply:$[256],dispose:true},selected:{check:$[2],init:false,apply:$[267],event:$[261]}},members:{_applyLabel:function($0,$1){if(this._labelObject){this._labelObject.setText($0);}},_applyIcon:function($0,$1){var $2=this.getIconObject();if($2){var $3=this._evalCurrentIcon();if(!$3){$2.setDisplay(false);}else{$2.setDisplay(true);$2.setSource($3);}this.addToTreeQueue();}},_applySelected:function($0,$1){if($0){this.addState($[92]);this._labelObject.addState($[92]);}else{this.removeState($[92]);this._labelObject.removeState($[92]);}var $2=this.getTree();if(!$2._fastUpdate||($1&&$2._oldItem==this)){this._iconObject.setSource(this._evalCurrentIcon());if($0){this._iconObject.addState($[92]);}else{this._iconObject.removeState($[92]);}}var $3=this.getTree().getManager();$3.setItemSelected(this,$0);},_getRowStructure:function($0,$1,$2){if($0 instanceof qx.ui.tree.TreeRowStructure){return $0;}else{return qx.ui.tree.TreeRowStructure.getInstance().standard($0,$1,$2);}},_evalCurrentIcon:function(){if(this.getSelected()&&this.getIconSelected()){return this.getIconSelected();}else{return this.getIcon();}},getParentFolder:function(){if(this.getParent()&&typeof (this.getParent().getParent)==$[37]){return this.getParent().getParent();}return null;},getLevel:function(){var $0=this.getParentFolder();return $0?$0.getLevel()+1:null;},getTree:function(){var $0=this.getParentFolder();return $0?$0.getTree():null;},getIndentObject:function(){return this._indentObject;},getIconObject:function(){return this._iconObject;},getLabelObject:function(){return this._labelObject;},destroy:function(){var $0=this.getTree()?this.getTree().getManager():null;if($0){if($0.getItemSelected(this)){if($0.getMultiSelection()){$0.setItemSelected(this,false);}else{$0.deselectAll();}}if($0.getLeadItem()==this){$0.setLeadItem(null);}if($0.getAnchorItem()==this){$0.setAnchorItem(null);}}if(this.destroyContent){this.destroyContent();}this.disconnect();var $1=this.getParentFolder();if($1){$1.remove(this);}qx.client.Timer.once(function(){this.dispose();},this,0);},getHierarchy:function($0){if(this._labelObject){$0.unshift(this._labelObject.getText());}var $1=this.getParentFolder();if($1){$1.getHierarchy($0);}return $0;},addToTreeQueue:function(){var $0=this.getTree();if($0){$0.addChildToTreeQueue(this);}},removeFromTreeQueue:function(){var $0=this.getTree();if($0){$0.removeChildFromTreeQueue(this);}},addToCustomQueues:function($0){this.addToTreeQueue();arguments.callee.base.call(this,$0);},removeFromCustomQueues:function($0){this.removeFromTreeQueue();arguments.callee.base.call(this,$0);},_applyParent:function($0,$1){arguments.callee.base.call(this,$0,$1);if($1&&!$1.isDisplayable()&&$1.getParent()&&$1.getParent().isDisplayable()){$1.getParent().addToTreeQueue();}if($0&&!$0.isDisplayable()&&$0.getParent()&&$0.getParent().isDisplayable()){$0.getParent().addToTreeQueue();}},_handleDisplayableCustom:function($0,$1,$2){arguments.callee.base.call(this,$0,$1,$2);if($2){var $3=this.getParentFolder();var $4=this._previousParentFolder;if($4){if(this._wasLastVisibleChild){$4._updateIndent();}else if(!$4.hasContent()){$4.addToTreeQueue();}}if($3&&$3.isDisplayable()&&$3._initialLayoutDone){$3.addToTreeQueue();}if(this.isLastVisibleChild()){var $5=this.getPreviousVisibleSibling();if($5&&$5 instanceof qx.ui.tree.AbstractTreeElement){$5._updateIndent();}}if($0){this._updateIndent();}}},_onmousedown:function($0){if($0._treeProcessed){return;}this.getTree().getManager().handleMouseDown(this,$0);$0._treeProcessed=true;},_onmouseup:function($0){if($0._treeProcessed){return;}var $1=$0.getOriginalTarget();switch($1){case this._indentObject:case this._containerObject:case this:break;default:this.getTree().getManager().handleMouseUp(this,$0);$0._treeProcessed=true;}},flushTree:function(){this._previousParentFolder=this.getParentFolder();this._wasLastVisibleChild=this.isLastVisibleChild();var $0=this.getLevel();var $1=this.getTree();if(!$1){return;}var $2;var $3=[];var $4=this;var $5=0;var $6=$0;if($1.getRootOpenClose()){$6=$0+1;}if($1.getHideNode()){$5=1;}for(var $7=$5;$7<$6;$7++){$2=$4.getIndentSymbol($1.getUseTreeLines(),$7,$5,$6);if($2){$3.push($[762]);$3.push(($6-$7-1)*19);$3.push($[885]);$3.push(this.BASE_URI);$3.push($2);$3.push($[24]);$3.push($[1476]);$3.push($[1400]);}$4=$4.getParentFolder();}this._indentObject.setHtml($3.join($[0]));this._indentObject.setWidth(($6-$5)*19);}},destruct:function(){this._disposeObjects($[715],$[297],$[249]);this._disposeFields($[1188]);}});
121
qx.Class.define($[1207],{type:$[18],extend:qx.core.Object,construct:function(){arguments.callee.base.call(this);},members:{newRow:function(){this._indentObject=new qx.ui.embed.HtmlEmbed;this._iconObject=new qx.ui.basic.Image;this._labelObject=new qx.ui.basic.Label;this._fields=new Array;this._icons=new Object;this._fields.push(this._indentObject);this._indentAdded=false;this._iconAdded=false;this._labelAdded=false;return this;},standard:function($0,$1,$2){this.newRow();this.addIcon($1,$2);this.addLabel($0);return this;},addIndent:function(){if(!this._indentAdded){this._fields.shift();this._indentAdded=true;}else{throw new Error("Indent object added more than once.");}this._fields.push(this._indentObject);},addIcon:function($0,$1){if(!this._iconAdded){this._iconAdded=true;}else{throw new Error("Icon object added more than once.");}if($0!==undefined){this._icons.unselected=$0;}if($1!==undefined){this._icons.selected=$1;}this._fields.push(this._iconObject);},addLabel:function($0){if(!this._labelAdded){this._labelAdded=true;}else{throw new Error("Label added more than once.");}this._label=$0;this._fields.push(this._labelObject);},addObject:function($0,$1){if(typeof $1==$[58]){$0.setAnonymous($1);}this._fields.push($0);},getLabelObject:function(){return this._labelObject;},getIconObject:function(){return this._iconObject;}},destruct:function(){this._disposeFields($[744]);this._disposeObjects($[1349],$[1753],$[832]);this._disposeObjectDeep($[1039],1);}});
121
qx.Class.define($[1206],{type:$[18],extend:qx.core.Object,construct:function(){arguments.callee.base.call(this);},members:{newRow:function(){this._indentObject=new qx.ui.embed.HtmlEmbed;this._iconObject=new qx.ui.basic.Image;this._labelObject=new qx.ui.basic.Label;this._fields=new Array;this._icons=new Object;this._fields.push(this._indentObject);this._indentAdded=false;this._iconAdded=false;this._labelAdded=false;return this;},standard:function($0,$1,$2){this.newRow();this.addIcon($1,$2);this.addLabel($0);return this;},addIndent:function(){if(!this._indentAdded){this._fields.shift();this._indentAdded=true;}else{throw new Error("Indent object added more than once.");}this._fields.push(this._indentObject);},addIcon:function($0,$1){if(!this._iconAdded){this._iconAdded=true;}else{throw new Error("Icon object added more than once.");}if($0!==undefined){this._icons.unselected=$0;}if($1!==undefined){this._icons.selected=$1;}this._fields.push(this._iconObject);},addLabel:function($0){if(!this._labelAdded){this._labelAdded=true;}else{throw new Error("Label added more than once.");}this._label=$0;this._fields.push(this._labelObject);},addObject:function($0,$1){if(typeof $1==$[58]){$0.setAnonymous($1);}this._fields.push($0);},getLabelObject:function(){return this._labelObject;},getIconObject:function(){return this._iconObject;}},destruct:function(){this._disposeFields($[745]);this._disposeObjects($[1349],$[1753],$[833]);this._disposeObjectDeep($[1038],1);}});
122
qx.Class.define($[1264],{extend:qx.ui.basic.Terminator,construct:function($0){arguments.callee.base.call(this);if($0!=null){this.setHtml($0);}},properties:{html:{check:$[6],init:$[0],apply:$[1170],event:$[826]},textAlign:{check:[$[11],$[57],$[9],$[264]],nullable:true,themeable:true,apply:$[287]},font:{refine:true,init:null},textColor:{refine:true,init:null}},members:{_applyHtml:function(){if(this._isCreated){this._syncHtml();}},_applyTextAlign:function($0,$1){$0===null?this.removeStyleProperty($[244]):this.setStyleProperty($[244],$0);},_applyFont:function($0,$1){qx.theme.manager.Font.getInstance().connect(this._styleFont,this,$0);},_styleFont:function($0){$0?$0.render(this):qx.ui.core.Font.reset(this);},_applyTextColor:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._styleTextColor,this,$0);},_styleTextColor:function($0){$0?this.setStyleProperty($[233],$0):this.removeStyleProperty($[233]);},_applyElementData:function(){this._syncHtml();},_syncHtml:function(){this._getTargetNode().innerHTML=this.getHtml();}}});
122
qx.Class.define($[1263],{extend:qx.ui.basic.Terminator,construct:function($0){arguments.callee.base.call(this);if($0!=null){this.setHtml($0);}},properties:{html:{check:$[6],init:$[0],apply:$[1169],event:$[827]},textAlign:{check:[$[11],$[57],$[9],$[264]],nullable:true,themeable:true,apply:$[287]},font:{refine:true,init:null},textColor:{refine:true,init:null}},members:{_applyHtml:function(){if(this._isCreated){this._syncHtml();}},_applyTextAlign:function($0,$1){$0===null?this.removeStyleProperty($[244]):this.setStyleProperty($[244],$0);},_applyFont:function($0,$1){qx.theme.manager.Font.getInstance().connect(this._styleFont,this,$0);},_styleFont:function($0){$0?$0.render(this):qx.ui.core.Font.reset(this);},_applyTextColor:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._styleTextColor,this,$0);},_styleTextColor:function($0){$0?this.setStyleProperty($[233],$0):this.removeStyleProperty($[233]);},_applyElementData:function(){this._syncHtml();},_syncHtml:function(){this._getTargetNode().innerHTML=this.getHtml();}}});
123
qx.Class.define($[553],{extend:qx.ui.tree.AbstractTreeElement,construct:function($0,$1,$2){var $3=this._getRowStructure($0,$1,$2);arguments.callee.base.call(this,$3);this._treeRowStructureFields=$3._fields;this._iconObject.setAppearance($[1002]);this._labelObject.setAppearance($[1525]);this.addEventListener($[104],this._ondblclick);this.add=this.addToFolder;this.addBefore=this.addBeforeToFolder;this.addAfter=this.addAfterToFolder;this.addAt=this.addAtToFolder;this.addAtBegin=this.addAtBeginToFolder;this.addAtEnd=this.addAtEndToFolder;},events:{"treeOpenWithContent":$[98],"treeOpenWhileEmpty":$[98],"treeClose":$[98]},properties:{appearance:{refine:true,init:$[503]},icon:{refine:true,init:$[680]},iconSelected:{refine:true,init:$[851]},open:{check:$[2],init:false,apply:$[651],event:$[1030]},alwaysShowPlusMinusSymbol:{check:$[2],init:false,apply:$[1417]}},members:{hasContent:function(){return this._containerObject&&this._containerObject.getChildrenLength()>0;},open:function(){if(this.getOpen()){return;}if(this.hasContent()){if(this.getTree().hasEventListeners($[398])){this.getTree().dispatchEvent(new qx.event.type.DataEvent($[398],this),true);}this.getTopLevelWidget().setGlobalCursor($[582]);qx.client.Timer.once(this._openCallback,this,0);}else{if(this.getTree().hasEventListeners($[390])){this.getTree().dispatchEvent(new qx.event.type.DataEvent($[390],this),true);}this.setOpen(true);}},close:function(){if(this.getTree().hasEventListeners($[318])){this.getTree().dispatchEvent(new qx.event.type.DataEvent($[318],this),true);}if(this.getOpen()){if(qx.lang.Array.contains(this.getItems(true,true),this.getTree().getSelectedElement())){this.getTree().getManager().setSelectedItem(this);}}this.setOpen(false);},toggle:function(){this.getOpen()?this.close():this.open();},_openCallback:function(){this.setOpen(true);qx.ui.core.Widget.flushGlobalQueues();this.getTopLevelWidget().setGlobalCursor(null);},_createChildrenStructure:function(){if(!(this instanceof qx.ui.tree.Tree)){this.setHeight($[3]);}this.setVerticalChildrenAlign($[20]);if(!this._horizontalLayout){this.setOrientation($[117]);this._horizontalLayout=new qx.ui.layout.HorizontalBoxLayout;this._horizontalLayout.setWidth(null);this._horizontalLayout.setParent(this);this._horizontalLayout.setAnonymous(true);this._horizontalLayout.setAppearance(this instanceof qx.ui.tree.Tree?$[1253]:$[503]);this.setAppearance($[216]);for(var $0=0;$0<this._treeRowStructureFields.length;$0++){this._treeRowStructureFields[$0].setParent(this._horizontalLayout);}this._treeRowStructureFields=null;}if(!this._containerObject){this._containerObject=new qx.ui.layout.VerticalBoxLayout;this._containerObject.setWidth(null);this._containerObject.setHeight($[3]);this._containerObject.setAnonymous(true);this._containerObject.setDisplay(this.getOpen());this._containerObject.setParent(this);}},_handleChildMove:function($0,$1,$2){if($0.isDisplayable()){var $3=this._containerObject.getChildren();var $4=$3.indexOf($0);if($4!=-1){if($2){$1=$3.indexOf($2);}if($1==$3.length-1){$0._updateIndent();this._containerObject.getLastVisibleChild()._updateIndent();}else if($0._wasLastVisibleChild){$0._updateIndent();var $5=$0.getPreviousVisibleSibling();if($5){$5._updateIndent();}}}}},addToFolder:function($0){this._createChildrenStructure();if(this._containerObject){return this._containerObject.add.apply(this._containerObject,arguments);}},addBeforeToFolder:function($0,$1){this._createChildrenStructure();if(this._containerObject){this._handleChildMove($0,null,$1);return this._containerObject.addBefore.apply(this._containerObject,arguments);}},addAfterToFolder:function($0,$1){this._createChildrenStructure();if(this._containerObject){this._handleChildMove($0,null,$1);return this._containerObject.addAfter.apply(this._containerObject,arguments);}},addAtToFolder:function($0,$1){this._createChildrenStructure();if(this._containerObject){this._handleChildMove($0,$1);return this._containerObject.addAt.apply(this._containerObject,arguments);}},addAtBeginToFolder:function($0){return this.addAtToFolder($0,0);},addAtEndToFolder:function($0){this._createChildrenStructure();if(this._containerObject){var $1=this._containerObject.getLastChild();if($1){this._handleChildMove($0,null,$1);return this._containerObject.addAfter.call(this._containerObject,$0,$1);}else{return this.addAtBeginToFolder($0);}}},__saveSelectionBeforeRemove:function(){var $0=this.getTree();if($0){this.__oldSelection=$0.getSelectedElement();$0.setSelectedElement($0);}},__restoreSelectionAfterRemove:function(){var $0=this.getTree();if($0){if(!this.__oldSelection||!this.__oldSelection.getTree()){$0.setSelectedElement($0);}else{$0.setSelectedElement(this.__oldSelection);}}},remove:function($0){if(this._containerObject){this.__saveSelectionBeforeRemove();this._containerObject.remove.apply(this._containerObject,arguments);this.__restoreSelectionAfterRemove();}},removeAt:function($0){if(this._containerObject){this.__saveSelectionBeforeRemove();this._containerObject.removeAt($0);this.__restoreSelectionAfterRemove();}},removeAll:function(){if(this._containerObject){this.__saveSelectionBeforeRemove();this._containerObject.removeAll();this.__restoreSelectionAfterRemove();}},getContainerObject:function(){return this._containerObject;},getHorizontalLayout:function(){return this._horizontalLayout;},getFirstVisibleChildOfFolder:function(){if(this._containerObject){return this._containerObject.getFirstChild();}},getLastVisibleChildOfFolder:function(){if(this._containerObject){return this._containerObject.getLastChild();}},getItems:function($0,$1){var $2=[this];if(this._containerObject){var $3=$1==true?this._containerObject.getChildren():this._containerObject.getVisibleChildren();if($0==false){$2=$2.concat($3);}else{for(var $4=0,$5=$3.length;$4<$5;$4++){$2=$2.concat($3[$4].getItems($0,$1));}}}return $2;},destroyContent:function(){if(!this.hasContent()){return;}var $0=this.getTree()?this.getTree().getManager():null;var $1;var $2;if($0){$1=$0.getLeadItem();$2=$0.getAnchorItem();}this._containerObject.setDisplay(true);var $3=this._containerObject.getChildren();var $4;for(var $5=$3.length-1;$5>=0;--$5){$4=$3[$5];if($4!=this){if($0){if($1==$4){$0.setLeadItem(null);}if($2==$4){$0.setAnchorItem(null);}if($0.getItemSelected($4)){if($0.getMultiSelection()){$0.setItemSelected($4,false);}else{$0.deselectAll();}}if($4.destroyContent){$4.destroyContent();}}$4.removeFromTreeQueue();$4.disconnect();this._containerObject.remove($4);qx.client.Timer.once(function(){$4.dispose();delete $3[$5];},this,0);}}},_applyOpen:function($0,$1){var $2=this.getTree();if($2&&$2.getExcludeSpecificTreeLines().length>0){this._updateIndent();}else{this._updateLastColumn();}if(this._containerObject){this._containerObject.setDisplay($0);}},_applyAlwaysShowPlusMinusSymbol:function($0,$1){var $2=this.getTree();if($2){if($2.getExcludeSpecificTreeLines().length>0){this._updateIndent();}else{this._updateLastColumn();}}},_updateLastColumn:function(){if(this._indentObject){var $0=this._indentObject.getElement();if($0&&$0.firstChild){$0.firstChild.src=this.BASE_URI+this.getIndentSymbol(this.getTree().getUseTreeLines(),0,0,0)+$[1211];}}},_onmousedown:function($0){if($0._treeProcessed){return;}var $1=$0.getOriginalTarget();switch($1){case this._indentObject:if(this._indentObject.getElement().firstChild==$0.getDomTarget()){this.getTree().getManager().handleMouseDown(this,$0);this.toggle();}break;case this._containerObject:break;case this:if(this._containerObject){break;}default:this.getTree().getManager().handleMouseDown(this,$0);}$0._treeProcessed=true;},_onmouseup:function($0){if($0._treeProcessed){return;}var $1=$0.getOriginalTarget();switch($1){case this._indentObject:case this._containerObject:case this:break;default:if(!this.getTree().getUseDoubleClick()){this.open();this.getTree().getManager().handleMouseUp(this,$0);$0._treeProcessed=true;}this.getTree().getManager().handleMouseUp($0.getTarget(),$0);}},_ondblclick:function($0){if(!this.getTree().getUseDoubleClick()){return;}this.toggle();$0.stopPropagation();},getIndentSymbol:function($0,$1,$2,$3){var $4=this.getLevel();var $5=this.getTree().getExcludeSpecificTreeLines();var $6=$5[$3-$1-1];if($1==$2){if(this.hasContent()||this.getAlwaysShowPlusMinusSymbol()){if(!$0){return this.getOpen()?$[444]:$[338];}if($4==1){var $7=this.getParentFolder();if($7&&!$7._horizontalLayout.getVisibility()&&this.isFirstChild()){if(this.isLastChild()||$6===true){return this.getOpen()?$[301]:$[250];}else{return this.getOpen()?$[1162]:$[896];}}}if($6===true){return this.getOpen()?$[301]:$[250];}else if(this.isLastChild()){return this.getOpen()?$[1036]:$[1237];}else{return this.getOpen()?$[1493]:$[1397];}}else if($0&&!($6===true)){return this.isLastChild()?$[474]:$[412];}}else{if($0&&!this.isLastChild()){if($6===true){return null;}return $[370];}return null;}},_updateIndent:function(){qx.ui.tree.TreeFile.prototype._updateIndent.call(this);if(!this._containerObject){return;}var $0=this._containerObject.getVisibleChildren();for(var $1=0,$2=$0.length;$1<$2;$1++){$0[$1]._updateIndent();}}},destruct:function(){this._disposeFields($[750]);this._disposeObjects($[646],$[1704]);}});
123
qx.Class.define($[553],{extend:qx.ui.tree.AbstractTreeElement,construct:function($0,$1,$2){var $3=this._getRowStructure($0,$1,$2);arguments.callee.base.call(this,$3);this._treeRowStructureFields=$3._fields;this._iconObject.setAppearance($[1001]);this._labelObject.setAppearance($[1524]);this.addEventListener($[104],this._ondblclick);this.add=this.addToFolder;this.addBefore=this.addBeforeToFolder;this.addAfter=this.addAfterToFolder;this.addAt=this.addAtToFolder;this.addAtBegin=this.addAtBeginToFolder;this.addAtEnd=this.addAtEndToFolder;},events:{"treeOpenWithContent":$[98],"treeOpenWhileEmpty":$[98],"treeClose":$[98]},properties:{appearance:{refine:true,init:$[504]},icon:{refine:true,init:$[681]},iconSelected:{refine:true,init:$[852]},open:{check:$[2],init:false,apply:$[651],event:$[1029]},alwaysShowPlusMinusSymbol:{check:$[2],init:false,apply:$[1418]}},members:{hasContent:function(){return this._containerObject&&this._containerObject.getChildrenLength()>0;},open:function(){if(this.getOpen()){return;}if(this.hasContent()){if(this.getTree().hasEventListeners($[399])){this.getTree().dispatchEvent(new qx.event.type.DataEvent($[399],this),true);}this.getTopLevelWidget().setGlobalCursor($[582]);qx.client.Timer.once(this._openCallback,this,0);}else{if(this.getTree().hasEventListeners($[391])){this.getTree().dispatchEvent(new qx.event.type.DataEvent($[391],this),true);}this.setOpen(true);}},close:function(){if(this.getTree().hasEventListeners($[318])){this.getTree().dispatchEvent(new qx.event.type.DataEvent($[318],this),true);}if(this.getOpen()){if(qx.lang.Array.contains(this.getItems(true,true),this.getTree().getSelectedElement())){this.getTree().getManager().setSelectedItem(this);}}this.setOpen(false);},toggle:function(){this.getOpen()?this.close():this.open();},_openCallback:function(){this.setOpen(true);qx.ui.core.Widget.flushGlobalQueues();this.getTopLevelWidget().setGlobalCursor(null);},_createChildrenStructure:function(){if(!(this instanceof qx.ui.tree.Tree)){this.setHeight($[3]);}this.setVerticalChildrenAlign($[20]);if(!this._horizontalLayout){this.setOrientation($[117]);this._horizontalLayout=new qx.ui.layout.HorizontalBoxLayout;this._horizontalLayout.setWidth(null);this._horizontalLayout.setParent(this);this._horizontalLayout.setAnonymous(true);this._horizontalLayout.setAppearance(this instanceof qx.ui.tree.Tree?$[1252]:$[504]);this.setAppearance($[216]);for(var $0=0;$0<this._treeRowStructureFields.length;$0++){this._treeRowStructureFields[$0].setParent(this._horizontalLayout);}this._treeRowStructureFields=null;}if(!this._containerObject){this._containerObject=new qx.ui.layout.VerticalBoxLayout;this._containerObject.setWidth(null);this._containerObject.setHeight($[3]);this._containerObject.setAnonymous(true);this._containerObject.setDisplay(this.getOpen());this._containerObject.setParent(this);}},_handleChildMove:function($0,$1,$2){if($0.isDisplayable()){var $3=this._containerObject.getChildren();var $4=$3.indexOf($0);if($4!=-1){if($2){$1=$3.indexOf($2);}if($1==$3.length-1){$0._updateIndent();this._containerObject.getLastVisibleChild()._updateIndent();}else if($0._wasLastVisibleChild){$0._updateIndent();var $5=$0.getPreviousVisibleSibling();if($5){$5._updateIndent();}}}}},addToFolder:function($0){this._createChildrenStructure();if(this._containerObject){return this._containerObject.add.apply(this._containerObject,arguments);}},addBeforeToFolder:function($0,$1){this._createChildrenStructure();if(this._containerObject){this._handleChildMove($0,null,$1);return this._containerObject.addBefore.apply(this._containerObject,arguments);}},addAfterToFolder:function($0,$1){this._createChildrenStructure();if(this._containerObject){this._handleChildMove($0,null,$1);return this._containerObject.addAfter.apply(this._containerObject,arguments);}},addAtToFolder:function($0,$1){this._createChildrenStructure();if(this._containerObject){this._handleChildMove($0,$1);return this._containerObject.addAt.apply(this._containerObject,arguments);}},addAtBeginToFolder:function($0){return this.addAtToFolder($0,0);},addAtEndToFolder:function($0){this._createChildrenStructure();if(this._containerObject){var $1=this._containerObject.getLastChild();if($1){this._handleChildMove($0,null,$1);return this._containerObject.addAfter.call(this._containerObject,$0,$1);}else{return this.addAtBeginToFolder($0);}}},__saveSelectionBeforeRemove:function(){var $0=this.getTree();if($0){this.__oldSelection=$0.getSelectedElement();$0.setSelectedElement($0);}},__restoreSelectionAfterRemove:function(){var $0=this.getTree();if($0){if(!this.__oldSelection||!this.__oldSelection.getTree()){$0.setSelectedElement($0);}else{$0.setSelectedElement(this.__oldSelection);}}},remove:function($0){if(this._containerObject){this.__saveSelectionBeforeRemove();this._containerObject.remove.apply(this._containerObject,arguments);this.__restoreSelectionAfterRemove();}},removeAt:function($0){if(this._containerObject){this.__saveSelectionBeforeRemove();this._containerObject.removeAt($0);this.__restoreSelectionAfterRemove();}},removeAll:function(){if(this._containerObject){this.__saveSelectionBeforeRemove();this._containerObject.removeAll();this.__restoreSelectionAfterRemove();}},getContainerObject:function(){return this._containerObject;},getHorizontalLayout:function(){return this._horizontalLayout;},getFirstVisibleChildOfFolder:function(){if(this._containerObject){return this._containerObject.getFirstChild();}},getLastVisibleChildOfFolder:function(){if(this._containerObject){return this._containerObject.getLastChild();}},getItems:function($0,$1){var $2=[this];if(this._containerObject){var $3=$1==true?this._containerObject.getChildren():this._containerObject.getVisibleChildren();if($0==false){$2=$2.concat($3);}else{for(var $4=0,$5=$3.length;$4<$5;$4++){$2=$2.concat($3[$4].getItems($0,$1));}}}return $2;},destroyContent:function(){if(!this.hasContent()){return;}var $0=this.getTree()?this.getTree().getManager():null;var $1;var $2;if($0){$1=$0.getLeadItem();$2=$0.getAnchorItem();}this._containerObject.setDisplay(true);var $3=this._containerObject.getChildren();var $4;for(var $5=$3.length-1;$5>=0;--$5){$4=$3[$5];if($4!=this){if($0){if($1==$4){$0.setLeadItem(null);}if($2==$4){$0.setAnchorItem(null);}if($0.getItemSelected($4)){if($0.getMultiSelection()){$0.setItemSelected($4,false);}else{$0.deselectAll();}}if($4.destroyContent){$4.destroyContent();}}$4.removeFromTreeQueue();$4.disconnect();this._containerObject.remove($4);qx.client.Timer.once(function(){$4.dispose();delete $3[$5];},this,0);}}},_applyOpen:function($0,$1){var $2=this.getTree();if($2&&$2.getExcludeSpecificTreeLines().length>0){this._updateIndent();}else{this._updateLastColumn();}if(this._containerObject){this._containerObject.setDisplay($0);}},_applyAlwaysShowPlusMinusSymbol:function($0,$1){var $2=this.getTree();if($2){if($2.getExcludeSpecificTreeLines().length>0){this._updateIndent();}else{this._updateLastColumn();}}},_updateLastColumn:function(){if(this._indentObject){var $0=this._indentObject.getElement();if($0&&$0.firstChild){$0.firstChild.src=this.BASE_URI+this.getIndentSymbol(this.getTree().getUseTreeLines(),0,0,0)+$[1210];}}},_onmousedown:function($0){if($0._treeProcessed){return;}var $1=$0.getOriginalTarget();switch($1){case this._indentObject:if(this._indentObject.getElement().firstChild==$0.getDomTarget()){this.getTree().getManager().handleMouseDown(this,$0);this.toggle();}break;case this._containerObject:break;case this:if(this._containerObject){break;}default:this.getTree().getManager().handleMouseDown(this,$0);}$0._treeProcessed=true;},_onmouseup:function($0){if($0._treeProcessed){return;}var $1=$0.getOriginalTarget();switch($1){case this._indentObject:case this._containerObject:case this:break;default:if(!this.getTree().getUseDoubleClick()){this.open();this.getTree().getManager().handleMouseUp(this,$0);$0._treeProcessed=true;}this.getTree().getManager().handleMouseUp($0.getTarget(),$0);}},_ondblclick:function($0){if(!this.getTree().getUseDoubleClick()){return;}this.toggle();$0.stopPropagation();},getIndentSymbol:function($0,$1,$2,$3){var $4=this.getLevel();var $5=this.getTree().getExcludeSpecificTreeLines();var $6=$5[$3-$1-1];if($1==$2){if(this.hasContent()||this.getAlwaysShowPlusMinusSymbol()){if(!$0){return this.getOpen()?$[445]:$[338];}if($4==1){var $7=this.getParentFolder();if($7&&!$7._horizontalLayout.getVisibility()&&this.isFirstChild()){if(this.isLastChild()||$6===true){return this.getOpen()?$[301]:$[250];}else{return this.getOpen()?$[1161]:$[896];}}}if($6===true){return this.getOpen()?$[301]:$[250];}else if(this.isLastChild()){return this.getOpen()?$[1035]:$[1236];}else{return this.getOpen()?$[1492]:$[1398];}}else if($0&&!($6===true)){return this.isLastChild()?$[475]:$[413];}}else{if($0&&!this.isLastChild()){if($6===true){return null;}return $[369];}return null;}},_updateIndent:function(){qx.ui.tree.TreeFile.prototype._updateIndent.call(this);if(!this._containerObject){return;}var $0=this._containerObject.getVisibleChildren();for(var $1=0,$2=$0.length;$1<$2;$1++){$0[$1]._updateIndent();}}},destruct:function(){this._disposeFields($[751]);this._disposeObjects($[646],$[1704]);}});
124
qx.Class.define($[773],{extend:qx.ui.tree.TreeFolder,construct:function($0,$1,$2){arguments.callee.base.call(this,this._getRowStructure($0,$1,$2));this._manager=new qx.ui.tree.SelectionManager(this);this._iconObject.setAppearance($[662]);this._labelObject.setAppearance($[1640]);this.setOpen(true);this.addToFolder();this.addEventListener($[16],this._onkeydown);this.addEventListener($[40],this._onkeypress);this.addEventListener($[88],this._onkeyup);},statics:{isTreeFolder:function($0){return ($0&&$0 instanceof qx.ui.tree.TreeFolder&&!($0 instanceof qx.ui.tree.Tree));},isOpenTreeFolder:function($0){return ($0 instanceof qx.ui.tree.TreeFolder&&$0.getOpen()&&$0.hasContent());}},properties:{useDoubleClick:{check:$[2],init:false},useTreeLines:{check:$[2],init:true,apply:$[1479]},tabIndex:{refine:true,init:1},excludeSpecificTreeLines:{check:$[413],init:[],apply:$[1639]},hideNode:{check:$[2],init:false,apply:$[1478]},rootOpenClose:{check:$[2],init:false,apply:$[703]}},members:{useDoubleClick:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[957]);return this.getUseDoubleClick();},useTreeLines:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[1213]);return this.getUseTreeLines();},hideNode:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[1223]);return this.getHideNode();},getManager:function(){return this._manager;},getSelectedElement:function(){return this.getManager().getSelectedItems()[0];},getItems:function($0,$1){var $2=[];if(!this.getHideNode()){$2.push(this);}if(this._containerObject){var $3=$1==true?this._containerObject.getChildren():this._containerObject.getVisibleChildren();if($0==false){$2=$2.concat($3);}else{for(var $4=0,$5=$3.length;$4<$5;$4++){$2=$2.concat($3[$4].getItems($0,$1));}}}return $2;},addChildToTreeQueue:function($0){if(!$0._isInTreeQueue&&!$0._isDisplayable){this.debug("Ignoring invisible child: "+$0);}if(!$0._isInTreeQueue&&$0._isDisplayable){qx.ui.core.Widget.addToGlobalWidgetQueue(this);if(!this._treeQueue){this._treeQueue={};}this._treeQueue[$0.toHashCode()]=$0;$0._isInTreeQueue=true;}},removeChildFromTreeQueue:function($0){if($0._isInTreeQueue){if(this._treeQueue){delete this._treeQueue[$0.toHashCode()];}delete $0._isInTreeQueue;}},flushWidgetQueue:function(){this.flushTreeQueue();},flushTreeQueue:function(){if(!qx.lang.Object.isEmpty(this._treeQueue)){for(var $0 in this._treeQueue){this._treeQueue[$0].flushTree();delete this._treeQueue[$0]._isInTreeQueue;}delete this._treeQueue;}},_applyUseTreeLines:function($0,$1){if(this._initialLayoutDone){this._updateIndent();}},_applyHideNode:function($0,$1){if(!$0){this._horizontalLayout.setHeight(this._horizontalLayout.originalHeight);this._horizontalLayout.show();}else{this._horizontalLayout.originalHeight=this._horizontalLayout.getHeight();this._horizontalLayout.setHeight(0);this._horizontalLayout.hide();}if(this._initialLayoutDone){this._updateIndent();}},_applyRootOpenClose:function($0,$1){if(this._initialLayoutDone){this._updateIndent();}},getExcludeSpecificTreeLines:function(){return qx.lang.Array.clone(this[$[1161]]);},_applyExcludeSpecificTreeLines:function($0,$1){if(this._initialLayoutDone){this._updateIndent();}},getTree:function(){return this;},getParentFolder:function(){return null;},getLevel:function(){return 0;},_onkeydown:function($0){var $1=this.getManager();$1.getSelectedItem();},_onkeypress:function($0){var $1=this.getManager();var $2=$1.getSelectedItem();switch($0.getKeyIdentifier()){case $[46]:$0.preventDefault();if(qx.ui.tree.Tree.isTreeFolder($2)){return $2.toggle();}break;case $[60]:$0.preventDefault();if(qx.ui.tree.Tree.isTreeFolder($2)){if(!$2.getOpen()){var $3=$2.getParentFolder();if($3 instanceof qx.ui.tree.TreeFolder){if($3 instanceof qx.ui.tree.Tree&&$3.getHideNode()){return;}if(!($3 instanceof qx.ui.tree.Tree)){$3.close();}this.setSelectedElement($3);}}else{return $2.close();}}else if($2 instanceof qx.ui.tree.TreeFile){var $3=$2.getParentFolder();if($3 instanceof qx.ui.tree.TreeFolder){if(!($3 instanceof qx.ui.tree.Tree)){$3.close();}this.setSelectedElement($3);}}break;case $[64]:$0.preventDefault();if(qx.ui.tree.Tree.isTreeFolder($2)){if(!$2.getOpen()){return $2.open();}else if($2.hasContent()){var $4=$2.getFirstVisibleChildOfFolder();this.setSelectedElement($4);if($4 instanceof qx.ui.tree.TreeFolder){$4.open();}return;}}break;default:if(!this._fastUpdate){this._fastUpdate=true;this._oldItem=$2;}$1.handleKeyPress($0);}},_onkeyup:function($0){if(this._fastUpdate){var $1=this.getManager().getSelectedItem();if(!$1){return;}$1.getIconObject().addState($[92]);delete this._fastUpdate;delete this._oldItem;}},getLastTreeChild:function(){var $0=this;while($0 instanceof qx.ui.tree.AbstractTreeElement){if(!($0 instanceof qx.ui.tree.TreeFolder)||!$0.getOpen()){return $0;}$0=$0.getLastVisibleChildOfFolder();}return null;},getFirstTreeChild:function(){return this;},setSelectedElement:function($0){var $1=this.getManager();$1.setSelectedItem($0);$1.setLeadItem($0);},getHierarchy:function($0){if(!this.getHideNode()&&this._labelObject){$0.unshift(this._labelObject.getText());}return $0;},getIndentSymbol:function($0,$1,$2){if($1==$2&&(this.hasContent()||this.getAlwaysShowPlusMinusSymbol())){if(!$0){return this.getOpen()?$[444]:$[338];}else{return this.getOpen()?$[301]:$[250];}}else{return null;}}},destruct:function(){this._disposeObjects($[213]);}});
124
qx.Class.define($[774],{extend:qx.ui.tree.TreeFolder,construct:function($0,$1,$2){arguments.callee.base.call(this,this._getRowStructure($0,$1,$2));this._manager=new qx.ui.tree.SelectionManager(this);this._iconObject.setAppearance($[662]);this._labelObject.setAppearance($[1639]);this.setOpen(true);this.addToFolder();this.addEventListener($[16],this._onkeydown);this.addEventListener($[40],this._onkeypress);this.addEventListener($[84],this._onkeyup);},statics:{isTreeFolder:function($0){return ($0&&$0 instanceof qx.ui.tree.TreeFolder&&!($0 instanceof qx.ui.tree.Tree));},isOpenTreeFolder:function($0){return ($0 instanceof qx.ui.tree.TreeFolder&&$0.getOpen()&&$0.hasContent());}},properties:{useDoubleClick:{check:$[2],init:false},useTreeLines:{check:$[2],init:true,apply:$[1478]},tabIndex:{refine:true,init:1},excludeSpecificTreeLines:{check:$[414],init:[],apply:$[1638]},hideNode:{check:$[2],init:false,apply:$[1477]},rootOpenClose:{check:$[2],init:false,apply:$[704]}},members:{useDoubleClick:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[956]);return this.getUseDoubleClick();},useTreeLines:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[1212]);return this.getUseTreeLines();},hideNode:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[1222]);return this.getHideNode();},getManager:function(){return this._manager;},getSelectedElement:function(){return this.getManager().getSelectedItems()[0];},getItems:function($0,$1){var $2=[];if(!this.getHideNode()){$2.push(this);}if(this._containerObject){var $3=$1==true?this._containerObject.getChildren():this._containerObject.getVisibleChildren();if($0==false){$2=$2.concat($3);}else{for(var $4=0,$5=$3.length;$4<$5;$4++){$2=$2.concat($3[$4].getItems($0,$1));}}}return $2;},addChildToTreeQueue:function($0){if(!$0._isInTreeQueue&&!$0._isDisplayable){this.debug("Ignoring invisible child: "+$0);}if(!$0._isInTreeQueue&&$0._isDisplayable){qx.ui.core.Widget.addToGlobalWidgetQueue(this);if(!this._treeQueue){this._treeQueue={};}this._treeQueue[$0.toHashCode()]=$0;$0._isInTreeQueue=true;}},removeChildFromTreeQueue:function($0){if($0._isInTreeQueue){if(this._treeQueue){delete this._treeQueue[$0.toHashCode()];}delete $0._isInTreeQueue;}},flushWidgetQueue:function(){this.flushTreeQueue();},flushTreeQueue:function(){if(!qx.lang.Object.isEmpty(this._treeQueue)){for(var $0 in this._treeQueue){this._treeQueue[$0].flushTree();delete this._treeQueue[$0]._isInTreeQueue;}delete this._treeQueue;}},_applyUseTreeLines:function($0,$1){if(this._initialLayoutDone){this._updateIndent();}},_applyHideNode:function($0,$1){if(!$0){this._horizontalLayout.setHeight(this._horizontalLayout.originalHeight);this._horizontalLayout.show();}else{this._horizontalLayout.originalHeight=this._horizontalLayout.getHeight();this._horizontalLayout.setHeight(0);this._horizontalLayout.hide();}if(this._initialLayoutDone){this._updateIndent();}},_applyRootOpenClose:function($0,$1){if(this._initialLayoutDone){this._updateIndent();}},getExcludeSpecificTreeLines:function(){return qx.lang.Array.clone(this[$[1160]]);},_applyExcludeSpecificTreeLines:function($0,$1){if(this._initialLayoutDone){this._updateIndent();}},getTree:function(){return this;},getParentFolder:function(){return null;},getLevel:function(){return 0;},_onkeydown:function($0){var $1=this.getManager();$1.getSelectedItem();},_onkeypress:function($0){var $1=this.getManager();var $2=$1.getSelectedItem();switch($0.getKeyIdentifier()){case $[46]:$0.preventDefault();if(qx.ui.tree.Tree.isTreeFolder($2)){return $2.toggle();}break;case $[60]:$0.preventDefault();if(qx.ui.tree.Tree.isTreeFolder($2)){if(!$2.getOpen()){var $3=$2.getParentFolder();if($3 instanceof qx.ui.tree.TreeFolder){if($3 instanceof qx.ui.tree.Tree&&$3.getHideNode()){return;}if(!($3 instanceof qx.ui.tree.Tree)){$3.close();}this.setSelectedElement($3);}}else{return $2.close();}}else if($2 instanceof qx.ui.tree.TreeFile){var $3=$2.getParentFolder();if($3 instanceof qx.ui.tree.TreeFolder){if(!($3 instanceof qx.ui.tree.Tree)){$3.close();}this.setSelectedElement($3);}}break;case $[64]:$0.preventDefault();if(qx.ui.tree.Tree.isTreeFolder($2)){if(!$2.getOpen()){return $2.open();}else if($2.hasContent()){var $4=$2.getFirstVisibleChildOfFolder();this.setSelectedElement($4);if($4 instanceof qx.ui.tree.TreeFolder){$4.open();}return;}}break;default:if(!this._fastUpdate){this._fastUpdate=true;this._oldItem=$2;}$1.handleKeyPress($0);}},_onkeyup:function($0){if(this._fastUpdate){var $1=this.getManager().getSelectedItem();if(!$1){return;}$1.getIconObject().addState($[92]);delete this._fastUpdate;delete this._oldItem;}},getLastTreeChild:function(){var $0=this;while($0 instanceof qx.ui.tree.AbstractTreeElement){if(!($0 instanceof qx.ui.tree.TreeFolder)||!$0.getOpen()){return $0;}$0=$0.getLastVisibleChildOfFolder();}return null;},getFirstTreeChild:function(){return this;},setSelectedElement:function($0){var $1=this.getManager();$1.setSelectedItem($0);$1.setLeadItem($0);},getHierarchy:function($0){if(!this.getHideNode()&&this._labelObject){$0.unshift(this._labelObject.getText());}return $0;},getIndentSymbol:function($0,$1,$2){if($1==$2&&(this.hasContent()||this.getAlwaysShowPlusMinusSymbol())){if(!$0){return this.getOpen()?$[445]:$[338];}else{return this.getOpen()?$[301]:$[250];}}else{return null;}}},destruct:function(){this._disposeObjects($[213]);}});
125
qx.Class.define($[1257],{extend:qx.core.Target,construct:function($0){arguments.callee.base.call(this);this._selectedItems=new qx.ui.selection.Selection(this);if($0!=null){this.setBoundedWidget($0);}},events:{"changeSelection":$[98]},properties:{boundedWidget:{check:$[66],nullable:true},multiSelection:{check:$[2],init:true},dragSelection:{check:$[2],init:true},canDeselect:{check:$[2],init:true},fireChange:{check:$[2],init:true},anchorItem:{check:$[119],nullable:true,apply:$[626],event:$[1303]},leadItem:{check:$[119],nullable:true,apply:$[1265],event:$[728]},multiColumnSupport:{check:$[2],init:false}},members:{_applyAnchorItem:function($0,$1){if($1){this.renderItemAnchorState($1,false);}if($0){this.renderItemAnchorState($0,true);}},_applyLeadItem:function($0,$1){if($1){this.renderItemLeadState($1,false);}if($0){this.renderItemLeadState($0,true);}},_getFirst:function(){return this.getBoundedWidget().getFirstVisibleChild();},_getLast:function(){return this.getBoundedWidget().getLastVisibleChild();},getFirst:function(){var $0=this._getFirst();if($0){return $0.getEnabled()?$0:this.getNext($0);}},getLast:function(){var $0=this._getLast();if($0){return $0.getEnabled()?$0:this.getPrevious($0);}},getItems:function(){return this.getBoundedWidget().getChildren();},getNextSibling:function($0){return $0.getNextSibling();},getPreviousSibling:function($0){return $0.getPreviousSibling();},getNext:function($0){while($0){$0=this.getNextSibling($0);if(!$0){break;}if(this.getItemEnabled($0)){return $0;}}return null;},getPrevious:function($0){while($0){$0=this.getPreviousSibling($0);if(!$0){break;}if(this.getItemEnabled($0)){return $0;}}return null;},isBefore:function($0,$1){var $2=this.getItems();return $2.indexOf($0)<$2.indexOf($1);},isEqual:function($0,$1){return $0==$1;},getItemHashCode:function($0){return $0.toHashCode();},scrollItemIntoView:function($0,$1){$0.scrollIntoView($1);},getItemLeft:function($0){return $0.getOffsetLeft();},getItemTop:function($0){return $0.getOffsetTop();},getItemWidth:function($0){return $0.getOffsetWidth();},getItemHeight:function($0){return $0.getOffsetHeight();},getItemEnabled:function($0){return $0.getEnabled();},renderItemSelectionState:function($0,$1){$1?$0.addState($[92]):$0.removeState($[92]);if($0.handleStateChange){$0.handleStateChange();}},renderItemAnchorState:function($0,$1){$1?$0.addState($[459]):$0.removeState($[459]);if($0.handleStateChange!=null){$0.handleStateChange();}},renderItemLeadState:function($0,$1){$1?$0.addState($[276]):$0.removeState($[276]);if($0.handleStateChange!=null){$0.handleStateChange();}},getItemSelected:function($0){return this._selectedItems.contains($0);},setItemSelected:function($0,$1){switch(this.getMultiSelection()){case true:if(!this.getItemEnabled($0)){return;}if(this.getItemSelected($0)==$1){return;}this.renderItemSelectionState($0,$1);$1?this._selectedItems.add($0):this._selectedItems.remove($0);this._dispatchChange();break;case false:var $2=this.getSelectedItems()[0];if($1){var $3=$2;if(this.isEqual($0,$3)){return;}if($3!=null){this.renderItemSelectionState($3,false);}this.renderItemSelectionState($0,true);this._selectedItems.removeAll();this._selectedItems.add($0);this._dispatchChange();}else{if(!this.isEqual($2,$0)){this.renderItemSelectionState($0,false);this._selectedItems.removeAll();this._dispatchChange();}}break;}},getSelectedItems:function(){return this._selectedItems.toArray();},getSelectedItem:function(){return this._selectedItems.getFirst();},setSelectedItems:function($0){var $1=this._getChangeValue();var $2=this.getFireChange();this.setFireChange(false);this._deselectAll();var $3;var $4=$0.length;for(var $5=0;$5<$4;$5++){$3=$0[$5];if(!this.getItemEnabled($3)){continue;}this._selectedItems.add($3);this.renderItemSelectionState($3,true);}this.setFireChange($2);if($2&&this._hasChanged($1)){this._dispatchChange();}},setSelectedItem:function($0){if(!$0){return;}if(!this.getItemEnabled($0)){return;}var $1=this._getChangeValue();var $2=this.getFireChange();this.setFireChange(false);this._deselectAll();this._selectedItems.add($0);this.renderItemSelectionState($0,true);this.setFireChange($2);if($2&&this._hasChanged($1)){this._dispatchChange();}},selectAll:function(){var $0=this._getChangeValue();var $1=this.getFireChange();this.setFireChange(false);this._selectAll();this.setFireChange($1);if($1&&this._hasChanged($0)){this._dispatchChange();}},_selectAll:function(){if(!this.getMultiSelection()){return;}var $0;var $1=this.getItems();var $2=$1.length;this._selectedItems.removeAll();for(var $3=0;$3<$2;$3++){$0=$1[$3];if(!this.getItemEnabled($0)){continue;}this._selectedItems.add($0);this.renderItemSelectionState($0,true);}return true;},deselectAll:function(){var $0=this._getChangeValue();var $1=this.getFireChange();this.setFireChange(false);this._deselectAll();this.setFireChange($1);if($1&&this._hasChanged($0))this._dispatchChange();},_deselectAll:function(){var $0=this._selectedItems.toArray();for(var $1=0;$1<$0.length;$1++){this.renderItemSelectionState($0[$1],false);}this._selectedItems.removeAll();return true;},selectItemRange:function($0,$1){var $2=this._getChangeValue();var $3=this.getFireChange();this.setFireChange(false);this._selectItemRange($0,$1,true);this.setFireChange($3);if($3&&this._hasChanged($2)){this._dispatchChange();}},_selectItemRange:function($0,$1,$2){if(this.isBefore($1,$0)){return this._selectItemRange($1,$0,$2);}if($2){this._deselectAll();}var $3=$0;while($3!=null){if(this.getItemEnabled($3)){this._selectedItems.add($3);this.renderItemSelectionState($3,true);}if(this.isEqual($3,$1)){break;}$3=this.getNext($3);}return true;},_deselectItemRange:function($0,$1){if(this.isBefore($1,$0)){return this._deselectItemRange($1,$0);}var $2=$0;while($2!=null){this._selectedItems.remove($2);this.renderItemSelectionState($2,false);if(this.isEqual($2,$1)){break;}$2=this.getNext($2);}},_activeDragSession:false,handleMouseDown:function($0,$1){$1.stopPropagation();if(!$1.isLeftButtonPressed()&&!$1.isRightButtonPressed()){return;}if($1.isRightButtonPressed()&&this.getItemSelected($0)){return;}if($1.isShiftPressed()||this.getDragSelection()||(!this.getItemSelected($0)&&!$1.isCtrlPressed())){this._onmouseevent($0,$1);}else{this.setLeadItem($0);}this._activeDragSession=this.getDragSelection();if(this._activeDragSession){this.getBoundedWidget().addEventListener($[22],this._ondragup,this);this.getBoundedWidget().setCapture(true);}},_ondragup:function($0){this.getBoundedWidget().removeEventListener($[22],this._ondragup,this);this.getBoundedWidget().setCapture(false);this._activeDragSession=false;},handleMouseUp:function($0,$1){if(!$1.isLeftButtonPressed()){return;}if($1.isCtrlPressed()||this.getItemSelected($0)&&!this._activeDragSession){this._onmouseevent($0,$1);}if(this._activeDragSession){this._activeDragSession=false;this.getBoundedWidget().setCapture(false);}},handleMouseOver:function($0,$1){if(!this.getDragSelection()||!this._activeDragSession){return;}this._onmouseevent($0,$1,true);},handleClick:function($0,$1){},handleDblClick:function($0,$1){},_onmouseevent:function($0,$1,$2){if(!this.getItemEnabled($0)){return;}var $3=this._getChangeValue();var $4=this.getLeadItem();var $5=this.getFireChange();this.setFireChange(false);var $6=this.getSelectedItems();var $7=$6.length;this.setLeadItem($0);var $8=this.getAnchorItem();var $9=$1.isCtrlPressed();var $a=$1.isShiftPressed();if(!$8||$7==0||($9&&!$a&&this.getMultiSelection()&&!this.getDragSelection())){this.setAnchorItem($0);$8=$0;}if((!$9&&!$a&&!this._activeDragSession||!this.getMultiSelection())){if(!this.getItemEnabled($0)){return;}this._deselectAll();this.setAnchorItem($0);if(this._activeDragSession){this.scrollItemIntoView((this.getBoundedWidget().getScrollTop()>(this.getItemTop($0)-1)?this.getPrevious($0):this.getNext($0))||$0);}if(!this.getItemSelected($0)){this.renderItemSelectionState($0,true);}this._selectedItems.add($0);this._addToCurrentSelection=true;}else if(this._activeDragSession&&$2){if($4){this._deselectItemRange($8,$4);}if(this.isBefore($8,$0)){if(this._addToCurrentSelection){this._selectItemRange($8,$0,false);}else{this._deselectItemRange($8,$0);}}else{if(this._addToCurrentSelection){this._selectItemRange($0,$8,false);}else{this._deselectItemRange($0,$8);}}this.scrollItemIntoView((this.getBoundedWidget().getScrollTop()>(this.getItemTop($0)-1)?this.getPrevious($0):this.getNext($0))||$0);}else if(this.getMultiSelection()&&$9&&!$a){if(!this._activeDragSession){this._addToCurrentSelection=!(this.getCanDeselect()&&this.getItemSelected($0));}this.setItemSelected($0,this._addToCurrentSelection);this.setAnchorItem($0);}else if(this.getMultiSelection()&&$9&&$a){if(!this._activeDragSession){this._addToCurrentSelection=!(this.getCanDeselect()&&this.getItemSelected($0));}if(this._addToCurrentSelection){this._selectItemRange($8,$0,false);}else{this._deselectItemRange($8,$0);}}else if(this.getMultiSelection()&&!$9&&$a){if(this.getCanDeselect()){this._selectItemRange($8,$0,true);}else{if($4){this._deselectItemRange($8,$4);}this._selectItemRange($8,$0,false);}}this.setFireChange($5);if($5&&this._hasChanged($3)){this._dispatchChange();}},handleKeyDown:function($0){this.warn("qx.ui.selection.SelectionManager.handleKeyDown is deprecated! "+"Use keypress insted and bind it to the onkeypress event.");this.handleKeyPress($0);},handleKeyPress:function($0){var $1=this._getChangeValue();var $2=this.getFireChange();this.setFireChange(false);if($0.getKeyIdentifier()==$[174]&&$0.isCtrlPressed()){if(this.getMultiSelection()){this._selectAll();this.setLeadItem(this.getFirst());}}else{var $3=this.getAnchorItem();var $4=this.getItemToSelect($0);if($4&&this.getItemEnabled($4)){this.setLeadItem($4);this.scrollItemIntoView($4);$0.preventDefault();if($0.isShiftPressed()&&this.getMultiSelection()){if($3==null){this.setAnchorItem($4);}this._selectItemRange(this.getAnchorItem(),$4,true);}else if(!$0.isCtrlPressed()){this._deselectAll();this.renderItemSelectionState($4,true);this._selectedItems.add($4);this.setAnchorItem($4);}else if($0.getKeyIdentifier()==$[84]){if(this._selectedItems.contains($4)){this.renderItemSelectionState($4,false);this._selectedItems.remove($4);this.setAnchorItem(this._selectedItems.getFirst());}else{if(!$0.isCtrlPressed()||!this.getMultiSelection()){this._deselectAll();}this.renderItemSelectionState($4,true);this._selectedItems.add($4);this.setAnchorItem($4);}}}}this.setFireChange($2);if($2&&this._hasChanged($1)){this._dispatchChange();}},getItemToSelect:function($0){if($0.isAltPressed()){return null;}switch($0.getKeyIdentifier()){case $[150]:return this.getHome(this.getLeadItem());case $[162]:return this.getEnd(this.getLeadItem());case $[76]:return this.getDown(this.getLeadItem());case $[69]:return this.getUp(this.getLeadItem());case $[60]:return this.getLeft(this.getLeadItem());case $[64]:return this.getRight(this.getLeadItem());case $[87]:return this.getPageUp(this.getLeadItem())||this.getHome(this.getLeadItem());case $[99]:return this.getPageDown(this.getLeadItem())||this.getEnd(this.getLeadItem());case $[84]:if($0.isCtrlPressed()){return this.getLeadItem();}}return null;},_dispatchChange:function(){if(!this.getFireChange()){return;}if(this.hasEventListeners($[532])){this.dispatchEvent(new qx.event.type.DataEvent($[532],this.getSelectedItems()),true);}},_hasChanged:function($0){return $0!=this._getChangeValue();},_getChangeValue:function(){return this._selectedItems.getChangeValue();},getHome:function(){return this.getFirst();},getEnd:function(){return this.getLast();},getDown:function($0){if(!$0){return this.getFirst();}return this.getMultiColumnSupport()?(this.getUnder($0)||this.getLast()):this.getNext($0);},getUp:function($0){if(!$0){return this.getLast();}return this.getMultiColumnSupport()?(this.getAbove($0)||this.getFirst()):this.getPrevious($0);},getLeft:function($0){if(!this.getMultiColumnSupport()){return null;}return !$0?this.getLast():this.getPrevious($0);},getRight:function($0){if(!this.getMultiColumnSupport()){return null;}return !$0?this.getFirst():this.getNext($0);},getAbove:function($0){throw new Error("getAbove(): Not implemented yet");},getUnder:function($0){throw new Error("getUnder(): Not implemented yet");},getPageUp:function($0){var $1=this.getBoundedWidget();var $2=$1.getScrollTop();var $3=$1.getClientHeight();var $4=this.getLeadItem();if(!$4){$4=this.getFirst();}var $5=0;while($5<2){while($4&&(this.getItemTop($4)-this.getItemHeight($4)>=$2)){$4=this.getUp($4);}if($4==null){break;}if($4!=this.getLeadItem()){this.scrollItemIntoView($4,true);break;}$1.setScrollTop($2-$3-this.getItemHeight($4));$2=$1.getScrollTop();$5++;}return $4;},getPageDown:function($0){var $1=this.getBoundedWidget();var $2=$1.getScrollTop();var $3=$1.getClientHeight();var $4=this.getLeadItem();if(!$4){$4=this.getFirst();}var $5=0;while($5<2){while($4&&((this.getItemTop($4)+(2*this.getItemHeight($4)))<=($2+$3))){$4=this.getDown($4);}if($4==null){break;}if($4!=this.getLeadItem()){break;}$1.setScrollTop($2+$3-2*this.getItemHeight($4));$2=$1.getScrollTop();$5++;}return $4;}},destruct:function(){this._disposeObjects($[739]);}});
125
qx.Class.define($[1256],{extend:qx.core.Target,construct:function($0){arguments.callee.base.call(this);this._selectedItems=new qx.ui.selection.Selection(this);if($0!=null){this.setBoundedWidget($0);}},events:{"changeSelection":$[98]},properties:{boundedWidget:{check:$[66],nullable:true},multiSelection:{check:$[2],init:true},dragSelection:{check:$[2],init:true},canDeselect:{check:$[2],init:true},fireChange:{check:$[2],init:true},anchorItem:{check:$[119],nullable:true,apply:$[626],event:$[1302]},leadItem:{check:$[119],nullable:true,apply:$[1264],event:$[729]},multiColumnSupport:{check:$[2],init:false}},members:{_applyAnchorItem:function($0,$1){if($1){this.renderItemAnchorState($1,false);}if($0){this.renderItemAnchorState($0,true);}},_applyLeadItem:function($0,$1){if($1){this.renderItemLeadState($1,false);}if($0){this.renderItemLeadState($0,true);}},_getFirst:function(){return this.getBoundedWidget().getFirstVisibleChild();},_getLast:function(){return this.getBoundedWidget().getLastVisibleChild();},getFirst:function(){var $0=this._getFirst();if($0){return $0.getEnabled()?$0:this.getNext($0);}},getLast:function(){var $0=this._getLast();if($0){return $0.getEnabled()?$0:this.getPrevious($0);}},getItems:function(){return this.getBoundedWidget().getChildren();},getNextSibling:function($0){return $0.getNextSibling();},getPreviousSibling:function($0){return $0.getPreviousSibling();},getNext:function($0){while($0){$0=this.getNextSibling($0);if(!$0){break;}if(this.getItemEnabled($0)){return $0;}}return null;},getPrevious:function($0){while($0){$0=this.getPreviousSibling($0);if(!$0){break;}if(this.getItemEnabled($0)){return $0;}}return null;},isBefore:function($0,$1){var $2=this.getItems();return $2.indexOf($0)<$2.indexOf($1);},isEqual:function($0,$1){return $0==$1;},getItemHashCode:function($0){return $0.toHashCode();},scrollItemIntoView:function($0,$1){$0.scrollIntoView($1);},getItemLeft:function($0){return $0.getOffsetLeft();},getItemTop:function($0){return $0.getOffsetTop();},getItemWidth:function($0){return $0.getOffsetWidth();},getItemHeight:function($0){return $0.getOffsetHeight();},getItemEnabled:function($0){return $0.getEnabled();},renderItemSelectionState:function($0,$1){$1?$0.addState($[92]):$0.removeState($[92]);if($0.handleStateChange){$0.handleStateChange();}},renderItemAnchorState:function($0,$1){$1?$0.addState($[460]):$0.removeState($[460]);if($0.handleStateChange!=null){$0.handleStateChange();}},renderItemLeadState:function($0,$1){$1?$0.addState($[276]):$0.removeState($[276]);if($0.handleStateChange!=null){$0.handleStateChange();}},getItemSelected:function($0){return this._selectedItems.contains($0);},setItemSelected:function($0,$1){switch(this.getMultiSelection()){case true:if(!this.getItemEnabled($0)){return;}if(this.getItemSelected($0)==$1){return;}this.renderItemSelectionState($0,$1);$1?this._selectedItems.add($0):this._selectedItems.remove($0);this._dispatchChange();break;case false:var $2=this.getSelectedItems()[0];if($1){var $3=$2;if(this.isEqual($0,$3)){return;}if($3!=null){this.renderItemSelectionState($3,false);}this.renderItemSelectionState($0,true);this._selectedItems.removeAll();this._selectedItems.add($0);this._dispatchChange();}else{if(!this.isEqual($2,$0)){this.renderItemSelectionState($0,false);this._selectedItems.removeAll();this._dispatchChange();}}break;}},getSelectedItems:function(){return this._selectedItems.toArray();},getSelectedItem:function(){return this._selectedItems.getFirst();},setSelectedItems:function($0){var $1=this._getChangeValue();var $2=this.getFireChange();this.setFireChange(false);this._deselectAll();var $3;var $4=$0.length;for(var $5=0;$5<$4;$5++){$3=$0[$5];if(!this.getItemEnabled($3)){continue;}this._selectedItems.add($3);this.renderItemSelectionState($3,true);}this.setFireChange($2);if($2&&this._hasChanged($1)){this._dispatchChange();}},setSelectedItem:function($0){if(!$0){return;}if(!this.getItemEnabled($0)){return;}var $1=this._getChangeValue();var $2=this.getFireChange();this.setFireChange(false);this._deselectAll();this._selectedItems.add($0);this.renderItemSelectionState($0,true);this.setFireChange($2);if($2&&this._hasChanged($1)){this._dispatchChange();}},selectAll:function(){var $0=this._getChangeValue();var $1=this.getFireChange();this.setFireChange(false);this._selectAll();this.setFireChange($1);if($1&&this._hasChanged($0)){this._dispatchChange();}},_selectAll:function(){if(!this.getMultiSelection()){return;}var $0;var $1=this.getItems();var $2=$1.length;this._selectedItems.removeAll();for(var $3=0;$3<$2;$3++){$0=$1[$3];if(!this.getItemEnabled($0)){continue;}this._selectedItems.add($0);this.renderItemSelectionState($0,true);}return true;},deselectAll:function(){var $0=this._getChangeValue();var $1=this.getFireChange();this.setFireChange(false);this._deselectAll();this.setFireChange($1);if($1&&this._hasChanged($0))this._dispatchChange();},_deselectAll:function(){var $0=this._selectedItems.toArray();for(var $1=0;$1<$0.length;$1++){this.renderItemSelectionState($0[$1],false);}this._selectedItems.removeAll();return true;},selectItemRange:function($0,$1){var $2=this._getChangeValue();var $3=this.getFireChange();this.setFireChange(false);this._selectItemRange($0,$1,true);this.setFireChange($3);if($3&&this._hasChanged($2)){this._dispatchChange();}},_selectItemRange:function($0,$1,$2){if(this.isBefore($1,$0)){return this._selectItemRange($1,$0,$2);}if($2){this._deselectAll();}var $3=$0;while($3!=null){if(this.getItemEnabled($3)){this._selectedItems.add($3);this.renderItemSelectionState($3,true);}if(this.isEqual($3,$1)){break;}$3=this.getNext($3);}return true;},_deselectItemRange:function($0,$1){if(this.isBefore($1,$0)){return this._deselectItemRange($1,$0);}var $2=$0;while($2!=null){this._selectedItems.remove($2);this.renderItemSelectionState($2,false);if(this.isEqual($2,$1)){break;}$2=this.getNext($2);}},_activeDragSession:false,handleMouseDown:function($0,$1){$1.stopPropagation();if(!$1.isLeftButtonPressed()&&!$1.isRightButtonPressed()){return;}if($1.isRightButtonPressed()&&this.getItemSelected($0)){return;}if($1.isShiftPressed()||this.getDragSelection()||(!this.getItemSelected($0)&&!$1.isCtrlPressed())){this._onmouseevent($0,$1);}else{this.setLeadItem($0);}this._activeDragSession=this.getDragSelection();if(this._activeDragSession){this.getBoundedWidget().addEventListener($[22],this._ondragup,this);this.getBoundedWidget().setCapture(true);}},_ondragup:function($0){this.getBoundedWidget().removeEventListener($[22],this._ondragup,this);this.getBoundedWidget().setCapture(false);this._activeDragSession=false;},handleMouseUp:function($0,$1){if(!$1.isLeftButtonPressed()){return;}if($1.isCtrlPressed()||this.getItemSelected($0)&&!this._activeDragSession){this._onmouseevent($0,$1);}if(this._activeDragSession){this._activeDragSession=false;this.getBoundedWidget().setCapture(false);}},handleMouseOver:function($0,$1){if(!this.getDragSelection()||!this._activeDragSession){return;}this._onmouseevent($0,$1,true);},handleClick:function($0,$1){},handleDblClick:function($0,$1){},_onmouseevent:function($0,$1,$2){if(!this.getItemEnabled($0)){return;}var $3=this._getChangeValue();var $4=this.getLeadItem();var $5=this.getFireChange();this.setFireChange(false);var $6=this.getSelectedItems();var $7=$6.length;this.setLeadItem($0);var $8=this.getAnchorItem();var $9=$1.isCtrlPressed();var $a=$1.isShiftPressed();if(!$8||$7==0||($9&&!$a&&this.getMultiSelection()&&!this.getDragSelection())){this.setAnchorItem($0);$8=$0;}if((!$9&&!$a&&!this._activeDragSession||!this.getMultiSelection())){if(!this.getItemEnabled($0)){return;}this._deselectAll();this.setAnchorItem($0);if(this._activeDragSession){this.scrollItemIntoView((this.getBoundedWidget().getScrollTop()>(this.getItemTop($0)-1)?this.getPrevious($0):this.getNext($0))||$0);}if(!this.getItemSelected($0)){this.renderItemSelectionState($0,true);}this._selectedItems.add($0);this._addToCurrentSelection=true;}else if(this._activeDragSession&&$2){if($4){this._deselectItemRange($8,$4);}if(this.isBefore($8,$0)){if(this._addToCurrentSelection){this._selectItemRange($8,$0,false);}else{this._deselectItemRange($8,$0);}}else{if(this._addToCurrentSelection){this._selectItemRange($0,$8,false);}else{this._deselectItemRange($0,$8);}}this.scrollItemIntoView((this.getBoundedWidget().getScrollTop()>(this.getItemTop($0)-1)?this.getPrevious($0):this.getNext($0))||$0);}else if(this.getMultiSelection()&&$9&&!$a){if(!this._activeDragSession){this._addToCurrentSelection=!(this.getCanDeselect()&&this.getItemSelected($0));}this.setItemSelected($0,this._addToCurrentSelection);this.setAnchorItem($0);}else if(this.getMultiSelection()&&$9&&$a){if(!this._activeDragSession){this._addToCurrentSelection=!(this.getCanDeselect()&&this.getItemSelected($0));}if(this._addToCurrentSelection){this._selectItemRange($8,$0,false);}else{this._deselectItemRange($8,$0);}}else if(this.getMultiSelection()&&!$9&&$a){if(this.getCanDeselect()){this._selectItemRange($8,$0,true);}else{if($4){this._deselectItemRange($8,$4);}this._selectItemRange($8,$0,false);}}this.setFireChange($5);if($5&&this._hasChanged($3)){this._dispatchChange();}},handleKeyDown:function($0){this.warn("qx.ui.selection.SelectionManager.handleKeyDown is deprecated! "+"Use keypress insted and bind it to the onkeypress event.");this.handleKeyPress($0);},handleKeyPress:function($0){var $1=this._getChangeValue();var $2=this.getFireChange();this.setFireChange(false);if($0.getKeyIdentifier()==$[174]&&$0.isCtrlPressed()){if(this.getMultiSelection()){this._selectAll();this.setLeadItem(this.getFirst());}}else{var $3=this.getAnchorItem();var $4=this.getItemToSelect($0);if($4&&this.getItemEnabled($4)){this.setLeadItem($4);this.scrollItemIntoView($4);$0.preventDefault();if($0.isShiftPressed()&&this.getMultiSelection()){if($3==null){this.setAnchorItem($4);}this._selectItemRange(this.getAnchorItem(),$4,true);}else if(!$0.isCtrlPressed()){this._deselectAll();this.renderItemSelectionState($4,true);this._selectedItems.add($4);this.setAnchorItem($4);}else if($0.getKeyIdentifier()==$[85]){if(this._selectedItems.contains($4)){this.renderItemSelectionState($4,false);this._selectedItems.remove($4);this.setAnchorItem(this._selectedItems.getFirst());}else{if(!$0.isCtrlPressed()||!this.getMultiSelection()){this._deselectAll();}this.renderItemSelectionState($4,true);this._selectedItems.add($4);this.setAnchorItem($4);}}}}this.setFireChange($2);if($2&&this._hasChanged($1)){this._dispatchChange();}},getItemToSelect:function($0){if($0.isAltPressed()){return null;}switch($0.getKeyIdentifier()){case $[150]:return this.getHome(this.getLeadItem());case $[162]:return this.getEnd(this.getLeadItem());case $[76]:return this.getDown(this.getLeadItem());case $[69]:return this.getUp(this.getLeadItem());case $[60]:return this.getLeft(this.getLeadItem());case $[64]:return this.getRight(this.getLeadItem());case $[88]:return this.getPageUp(this.getLeadItem())||this.getHome(this.getLeadItem());case $[99]:return this.getPageDown(this.getLeadItem())||this.getEnd(this.getLeadItem());case $[85]:if($0.isCtrlPressed()){return this.getLeadItem();}}return null;},_dispatchChange:function(){if(!this.getFireChange()){return;}if(this.hasEventListeners($[532])){this.dispatchEvent(new qx.event.type.DataEvent($[532],this.getSelectedItems()),true);}},_hasChanged:function($0){return $0!=this._getChangeValue();},_getChangeValue:function(){return this._selectedItems.getChangeValue();},getHome:function(){return this.getFirst();},getEnd:function(){return this.getLast();},getDown:function($0){if(!$0){return this.getFirst();}return this.getMultiColumnSupport()?(this.getUnder($0)||this.getLast()):this.getNext($0);},getUp:function($0){if(!$0){return this.getLast();}return this.getMultiColumnSupport()?(this.getAbove($0)||this.getFirst()):this.getPrevious($0);},getLeft:function($0){if(!this.getMultiColumnSupport()){return null;}return !$0?this.getLast():this.getPrevious($0);},getRight:function($0){if(!this.getMultiColumnSupport()){return null;}return !$0?this.getFirst():this.getNext($0);},getAbove:function($0){throw new Error("getAbove(): Not implemented yet");},getUnder:function($0){throw new Error("getUnder(): Not implemented yet");},getPageUp:function($0){var $1=this.getBoundedWidget();var $2=$1.getScrollTop();var $3=$1.getClientHeight();var $4=this.getLeadItem();if(!$4){$4=this.getFirst();}var $5=0;while($5<2){while($4&&(this.getItemTop($4)-this.getItemHeight($4)>=$2)){$4=this.getUp($4);}if($4==null){break;}if($4!=this.getLeadItem()){this.scrollItemIntoView($4,true);break;}$1.setScrollTop($2-$3-this.getItemHeight($4));$2=$1.getScrollTop();$5++;}return $4;},getPageDown:function($0){var $1=this.getBoundedWidget();var $2=$1.getScrollTop();var $3=$1.getClientHeight();var $4=this.getLeadItem();if(!$4){$4=this.getFirst();}var $5=0;while($5<2){while($4&&((this.getItemTop($4)+(2*this.getItemHeight($4)))<=($2+$3))){$4=this.getDown($4);}if($4==null){break;}if($4!=this.getLeadItem()){break;}$1.setScrollTop($2+$3-2*this.getItemHeight($4));$2=$1.getScrollTop();$5++;}return $4;}},destruct:function(){this._disposeObjects($[740]);}});
126
qx.Class.define($[1517],{extend:qx.core.Object,construct:function($0){arguments.callee.base.call(this);this.__manager=$0;this.removeAll();},members:{add:function($0){this.__storage[this.getItemHashCode($0)]=$0;},remove:function($0){delete this.__storage[this.getItemHashCode($0)];},removeAll:function(){this.__storage={};},contains:function($0){return this.getItemHashCode($0) in this.__storage;},toArray:function(){var $0=[];for(var $1 in this.__storage){$0.push(this.__storage[$1]);}return $0;},getFirst:function(){for(var $0 in this.__storage){return this.__storage[$0];}return null;},getChangeValue:function(){var $0=[];for(var $1 in this.__storage){$0.push($1);}$0.sort();return $0.join($[79]);},getItemHashCode:function($0){return this.__manager.getItemHashCode($0);},isEmpty:function(){return qx.lang.Object.isEmpty(this.__storage);}},destruct:function(){this._disposeFields($[1579],$[1011]);}});
126
qx.Class.define($[1516],{extend:qx.core.Object,construct:function($0){arguments.callee.base.call(this);this.__manager=$0;this.removeAll();},members:{add:function($0){this.__storage[this.getItemHashCode($0)]=$0;},remove:function($0){delete this.__storage[this.getItemHashCode($0)];},removeAll:function(){this.__storage={};},contains:function($0){return this.getItemHashCode($0) in this.__storage;},toArray:function(){var $0=[];for(var $1 in this.__storage){$0.push(this.__storage[$1]);}return $0;},getFirst:function(){for(var $0 in this.__storage){return this.__storage[$0];}return null;},getChangeValue:function(){var $0=[];for(var $1 in this.__storage){$0.push($1);}$0.sort();return $0.join($[79]);},getItemHashCode:function($0){return this.__manager.getItemHashCode($0);},isEmpty:function(){return qx.lang.Object.isEmpty(this.__storage);}},destruct:function(){this._disposeFields($[1578],$[1010]);}});
127
qx.Class.define($[1159],{extend:qx.ui.selection.SelectionManager,construct:function($0){arguments.callee.base.call(this,$0);},properties:{multiSelection:{refine:true,init:false},dragSelection:{refine:true,init:false}},members:{_getFirst:function(){return qx.lang.Array.getFirst(this.getItems());},_getLast:function(){return qx.lang.Array.getLast(this.getItems());},getItems:function(){return this.getBoundedWidget().getItems();},getNext:function($0){if($0){if(qx.ui.tree.Tree.isOpenTreeFolder($0)){return $0.getFirstVisibleChildOfFolder();}else if($0.isLastVisibleChild()){var $1=$0;while($1&&$1.isLastVisibleChild()){$1=$1.getParentFolder();}if($1&&$1 instanceof qx.ui.tree.AbstractTreeElement&&$1.getNextVisibleSibling()&&$1.getNextVisibleSibling() instanceof qx.ui.tree.AbstractTreeElement){return $1.getNextVisibleSibling();}}else{return $0.getNextVisibleSibling();}}else{return this.getBoundedWidget().getFirstTreeChild();}},getPrevious:function($0){if($0){if($0==this.getBoundedWidget()){return;}else if($0.isFirstVisibleChild()){if($0.getParentFolder() instanceof qx.ui.tree.TreeFolder){if($0.getParentFolder() instanceof qx.ui.tree.Tree&&$0.getParentFolder().getHideNode()){return $0;}return $0.getParentFolder();}}else{var $1=$0.getPreviousVisibleSibling();while($1 instanceof qx.ui.tree.AbstractTreeElement){if(qx.ui.tree.Tree.isOpenTreeFolder($1)){$1=$1.getLastVisibleChildOfFolder();}else{break;}}return $1;}}else{return this.getBoundedWidget().getLastTreeChild();}},getItemTop:function($0){var $1=this.getBoundedWidget();var $2=$0.getElement();var $3=0;while($2&&$2.qx_Widget!=$1){$3+=$2.offsetTop;$2=$2.parentNode;}return $3;},getItemHeight:function($0){if($0 instanceof qx.ui.tree.TreeFolder&&$0._horizontalLayout){return $0._horizontalLayout.getOffsetHeight();}else{return $0.getOffsetHeight();}},scrollItemIntoView:function($0){if($0 instanceof qx.ui.tree.TreeFolder&&$0._horizontalLayout){return $0._horizontalLayout.scrollIntoView();}else{return $0.scrollIntoView();}},renderItemSelectionState:function($0,$1){if($1&&!$0.isSeeable()){var $2=$0;var $3=[];while($2){$2=$2.getParentFolder();$3.push($2);}$3.pop();while($3.length){$3.pop().open();}}if($1){if($0.isCreated()){this.scrollItemIntoView($0);}else{$0.addEventListener($[193],function($4){this.scrollItemIntoView($0);},this);}}$0.setSelected($1);}}});
127
qx.Class.define($[1158],{extend:qx.ui.selection.SelectionManager,construct:function($0){arguments.callee.base.call(this,$0);},properties:{multiSelection:{refine:true,init:false},dragSelection:{refine:true,init:false}},members:{_getFirst:function(){return qx.lang.Array.getFirst(this.getItems());},_getLast:function(){return qx.lang.Array.getLast(this.getItems());},getItems:function(){return this.getBoundedWidget().getItems();},getNext:function($0){if($0){if(qx.ui.tree.Tree.isOpenTreeFolder($0)){return $0.getFirstVisibleChildOfFolder();}else if($0.isLastVisibleChild()){var $1=$0;while($1&&$1.isLastVisibleChild()){$1=$1.getParentFolder();}if($1&&$1 instanceof qx.ui.tree.AbstractTreeElement&&$1.getNextVisibleSibling()&&$1.getNextVisibleSibling() instanceof qx.ui.tree.AbstractTreeElement){return $1.getNextVisibleSibling();}}else{return $0.getNextVisibleSibling();}}else{return this.getBoundedWidget().getFirstTreeChild();}},getPrevious:function($0){if($0){if($0==this.getBoundedWidget()){return;}else if($0.isFirstVisibleChild()){if($0.getParentFolder() instanceof qx.ui.tree.TreeFolder){if($0.getParentFolder() instanceof qx.ui.tree.Tree&&$0.getParentFolder().getHideNode()){return $0;}return $0.getParentFolder();}}else{var $1=$0.getPreviousVisibleSibling();while($1 instanceof qx.ui.tree.AbstractTreeElement){if(qx.ui.tree.Tree.isOpenTreeFolder($1)){$1=$1.getLastVisibleChildOfFolder();}else{break;}}return $1;}}else{return this.getBoundedWidget().getLastTreeChild();}},getItemTop:function($0){var $1=this.getBoundedWidget();var $2=$0.getElement();var $3=0;while($2&&$2.qx_Widget!=$1){$3+=$2.offsetTop;$2=$2.parentNode;}return $3;},getItemHeight:function($0){if($0 instanceof qx.ui.tree.TreeFolder&&$0._horizontalLayout){return $0._horizontalLayout.getOffsetHeight();}else{return $0.getOffsetHeight();}},scrollItemIntoView:function($0){if($0 instanceof qx.ui.tree.TreeFolder&&$0._horizontalLayout){return $0._horizontalLayout.scrollIntoView();}else{return $0.scrollIntoView();}},renderItemSelectionState:function($0,$1){if($1&&!$0.isSeeable()){var $2=$0;var $3=[];while($2){$2=$2.getParentFolder();$3.push($2);}$3.pop();while($3.length){$3.pop().open();}}if($1){if($0.isCreated()){this.scrollItemIntoView($0);}else{$0.addEventListener($[193],function($4){this.scrollItemIntoView($0);},this);}}$0.setSelected($1);}}});
128
qx.Class.define($[1793],{extend:qx.ui.tree.AbstractTreeElement,construct:function($0,$1,$2){arguments.callee.base.call(this,this._getRowStructure($0,$1,$2));},members:{getIndentSymbol:function($0,$1,$2,$3){var $4=this.getTree().getExcludeSpecificTreeLines();var $5=$4[$3-$1-1];if($0&&!($5===true)){if($1==$2){return this.isLastChild()?$[474]:$[412];}else{return $[370];}}return null;},_updateIndent:function(){this.addToTreeQueue();},getItems:function(){return [this];}}});
128
qx.Class.define($[1793],{extend:qx.ui.tree.AbstractTreeElement,construct:function($0,$1,$2){arguments.callee.base.call(this,this._getRowStructure($0,$1,$2));},members:{getIndentSymbol:function($0,$1,$2,$3){var $4=this.getTree().getExcludeSpecificTreeLines();var $5=$4[$3-$1-1];if($0&&!($5===true)){if($1==$2){return this.isLastChild()?$[475]:$[413];}else{return $[369];}}return null;},_updateIndent:function(){this.addToTreeQueue();},getItems:function(){return [this];}}});
129
qx.Class.define($[1217],{extend:qx.ui.popup.Popup,construct:function($0,$1){arguments.callee.base.call(this);this._atom=new qx.ui.basic.Atom($0,$1);this._atom.setParent(this);},members:{_isFocusRoot:false,getAtom:function(){return this._atom;}},destruct:function(){this._disposeObjects($[743]);}});
129
qx.Class.define($[1216],{extend:qx.ui.popup.Popup,construct:function($0,$1){arguments.callee.base.call(this);this._atom=new qx.ui.basic.Atom($0,$1);this._atom.setParent(this);},members:{_isFocusRoot:false,getAtom:function(){return this._atom;}},destruct:function(){this._disposeObjects($[744]);}});
130
qx.Class.define($[241],{extend:qx.ui.popup.PopupAtom,construct:function($0,$1){arguments.callee.base.call(this,$0,$1);this.setStyleProperty($[144],$[1263]);this._showTimer=new qx.client.Timer(this.getShowInterval());this._showTimer.addEventListener($[85],this._onshowtimer,this);this._hideTimer=new qx.client.Timer(this.getHideInterval());this._hideTimer.addEventListener($[85],this._onhidetimer,this);this.addEventListener($[61],this._onmouseover);this.addEventListener($[105],this._onmouseover);},properties:{appearance:{refine:true,init:$[1724]},hideOnHover:{check:$[2],init:true},mousePointerOffsetX:{check:$[5],init:1},mousePointerOffsetY:{check:$[5],init:20},showInterval:{check:$[5],init:1000,apply:$[673]},hideInterval:{check:$[5],init:4000,apply:$[818]},boundToWidget:{check:$[66],apply:$[679]}},members:{_minZIndex:1e7,_applyHideInterval:function($0,$1){this._hideTimer.setInterval($0);},_applyShowInterval:function($0,$1){this._showTimer.setInterval($0);},_applyBoundToWidget:function($0,$1){if($0){this.setParent($0.getTopLevelWidget());}else if($1){this.setParent(null);}},_beforeAppear:function(){arguments.callee.base.call(this);this._stopShowTimer();this._startHideTimer();},_beforeDisappear:function(){arguments.callee.base.call(this);this._stopHideTimer();},_afterAppear:function(){arguments.callee.base.call(this);if(this.getRestrictToPageOnOpen()){var $0=qx.ui.core.ClientDocument.getInstance();var $1=$0.getClientWidth();var $2=$0.getClientHeight();var $3=parseInt(this.getRestrictToPageLeft());var $4=parseInt(this.getRestrictToPageRight());var $5=parseInt(this.getRestrictToPageTop());var $6=parseInt(this.getRestrictToPageBottom());var $7=(this._wantedLeft==null)?this.getLeft():this._wantedLeft;var $8=this.getTop();var $9=this.getBoxWidth();var $a=this.getBoxHeight();var $b=qx.event.type.MouseEvent.getPageX();var $c=qx.event.type.MouseEvent.getPageY();var $d=this.getLeft();var $e=$8;if($7+$9>$1-$4){$7=$1-$4-$9;}if($8+$a>$2-$6){$8=$2-$6-$a;}if($7<$3){$7=$3;}if($8<$5){$8=$5;}if($7<=$b&&$b<=$7+$9&&$8<=$c&&$c<=$8+$a){var $f=$c-$8;var $g=$f-$a;var $h=$b-$7;var $i=$h-$9;var $j=Math.max(0,$5-($8+$g));var $k=Math.max(0,$8+$a+$f-($2-$6));var $l=Math.max(0,$3-($7+$i));var $m=Math.max(0,$7+$9+$h-($1-$4));var $n=[[0,$g,$j],[0,$f,$k],[$i,0,$l],[$h,0,$m]];$n.sort(function($o,$p){return $o[2]-$p[2]||(Math.abs($o[0])+Math.abs($o[1]))-(Math.abs($p[0])+Math.abs($p[1]));});var $q=$n[0];$7=$7+$q[0];$8=$8+$q[1];}if($7!=$d||$8!=$e){var $r=this;window.setTimeout(function(){$r.setLeft($7);$r.setTop($8);},0);}}},_startShowTimer:function(){if(!this._showTimer.getEnabled()){this._showTimer.start();}},_startHideTimer:function(){if(!this._hideTimer.getEnabled()){this._hideTimer.start();}},_stopShowTimer:function(){if(this._showTimer.getEnabled()){this._showTimer.stop();}},_stopHideTimer:function(){if(this._hideTimer.getEnabled()){this._hideTimer.stop();}},_onmouseover:function($0){if(this.getHideOnHover()){this.hide();}},_onshowtimer:function($0){this.setLeft(qx.event.type.MouseEvent.getPageX()+this.getMousePointerOffsetX());this.setTop(qx.event.type.MouseEvent.getPageY()+this.getMousePointerOffsetY());this.show();},_onhidetimer:function($0){return this.hide();}},destruct:function(){var $0=qx.ui.popup.ToolTipManager.getInstance();$0.remove(this);if($0.getCurrentToolTip()==this){$0.resetCurrentToolTip();}this._disposeObjects($[664],$[579]);}});
130
qx.Class.define($[241],{extend:qx.ui.popup.PopupAtom,construct:function($0,$1){arguments.callee.base.call(this,$0,$1);this.setStyleProperty($[144],$[1262]);this._showTimer=new qx.client.Timer(this.getShowInterval());this._showTimer.addEventListener($[86],this._onshowtimer,this);this._hideTimer=new qx.client.Timer(this.getHideInterval());this._hideTimer.addEventListener($[86],this._onhidetimer,this);this.addEventListener($[61],this._onmouseover);this.addEventListener($[105],this._onmouseover);},properties:{appearance:{refine:true,init:$[1724]},hideOnHover:{check:$[2],init:true},mousePointerOffsetX:{check:$[5],init:1},mousePointerOffsetY:{check:$[5],init:20},showInterval:{check:$[5],init:1000,apply:$[674]},hideInterval:{check:$[5],init:4000,apply:$[819]},boundToWidget:{check:$[66],apply:$[680]}},members:{_minZIndex:1e7,_applyHideInterval:function($0,$1){this._hideTimer.setInterval($0);},_applyShowInterval:function($0,$1){this._showTimer.setInterval($0);},_applyBoundToWidget:function($0,$1){if($0){this.setParent($0.getTopLevelWidget());}else if($1){this.setParent(null);}},_beforeAppear:function(){arguments.callee.base.call(this);this._stopShowTimer();this._startHideTimer();},_beforeDisappear:function(){arguments.callee.base.call(this);this._stopHideTimer();},_afterAppear:function(){arguments.callee.base.call(this);if(this.getRestrictToPageOnOpen()){var $0=qx.ui.core.ClientDocument.getInstance();var $1=$0.getClientWidth();var $2=$0.getClientHeight();var $3=parseInt(this.getRestrictToPageLeft());var $4=parseInt(this.getRestrictToPageRight());var $5=parseInt(this.getRestrictToPageTop());var $6=parseInt(this.getRestrictToPageBottom());var $7=(this._wantedLeft==null)?this.getLeft():this._wantedLeft;var $8=this.getTop();var $9=this.getBoxWidth();var $a=this.getBoxHeight();var $b=qx.event.type.MouseEvent.getPageX();var $c=qx.event.type.MouseEvent.getPageY();var $d=this.getLeft();var $e=$8;if($7+$9>$1-$4){$7=$1-$4-$9;}if($8+$a>$2-$6){$8=$2-$6-$a;}if($7<$3){$7=$3;}if($8<$5){$8=$5;}if($7<=$b&&$b<=$7+$9&&$8<=$c&&$c<=$8+$a){var $f=$c-$8;var $g=$f-$a;var $h=$b-$7;var $i=$h-$9;var $j=Math.max(0,$5-($8+$g));var $k=Math.max(0,$8+$a+$f-($2-$6));var $l=Math.max(0,$3-($7+$i));var $m=Math.max(0,$7+$9+$h-($1-$4));var $n=[[0,$g,$j],[0,$f,$k],[$i,0,$l],[$h,0,$m]];$n.sort(function($o,$p){return $o[2]-$p[2]||(Math.abs($o[0])+Math.abs($o[1]))-(Math.abs($p[0])+Math.abs($p[1]));});var $q=$n[0];$7=$7+$q[0];$8=$8+$q[1];}if($7!=$d||$8!=$e){var $r=this;window.setTimeout(function(){$r.setLeft($7);$r.setTop($8);},0);}}},_startShowTimer:function(){if(!this._showTimer.getEnabled()){this._showTimer.start();}},_startHideTimer:function(){if(!this._hideTimer.getEnabled()){this._hideTimer.start();}},_stopShowTimer:function(){if(this._showTimer.getEnabled()){this._showTimer.stop();}},_stopHideTimer:function(){if(this._hideTimer.getEnabled()){this._hideTimer.stop();}},_onmouseover:function($0){if(this.getHideOnHover()){this.hide();}},_onshowtimer:function($0){this.setLeft(qx.event.type.MouseEvent.getPageX()+this.getMousePointerOffsetX());this.setTop(qx.event.type.MouseEvent.getPageY()+this.getMousePointerOffsetY());this.show();},_onhidetimer:function($0){return this.hide();}},destruct:function(){var $0=qx.ui.popup.ToolTipManager.getInstance();$0.remove(this);if($0.getCurrentToolTip()==this){$0.resetCurrentToolTip();}this._disposeObjects($[664],$[579]);}});
131
qx.Class.define($[151],{type:$[18],extend:qx.util.manager.Object,properties:{currentToolTip:{check:$[241],nullable:true,apply:$[1377]}},members:{_applyCurrentToolTip:function($0,$1){if($1&&$1.contains($0)){return;}if($1&&!$1.isDisposed()){$1.hide();$1._stopShowTimer();$1._stopHideTimer();}if($0){$0._startShowTimer();}},handleMouseOver:function($0){var $1=$0.getTarget();var $2;if(!($1 instanceof qx.ui.core.Widget)&&$1.nodeType==1){$1=qx.event.handler.EventHandler.getTargetObject($1);}while($1!=null&&!($2=$1.getToolTip())){$1=$1.getParent();}if($2!=null){$2.setBoundToWidget($1);}this.setCurrentToolTip($2);},handleMouseOut:function($0){var $1=$0.getTarget();var $2=$0.getRelatedTarget();var $3=this.getCurrentToolTip();if($3&&($2==$3||$3.contains($2))){return;}if($2&&$1&&$1.contains($2)){return;}if($3&&!$2){this.setCurrentToolTip(null);}},handleFocus:function($0){var $1=$0.getTarget();var $2=$1.getToolTip();if($2!=null){$2.setBoundToWidget($1);this.setCurrentToolTip($2);}},handleBlur:function($0){var $1=$0.getTarget();if(!$1){return;}var $2=this.getCurrentToolTip();if($2&&$2==$1.getToolTip()){this.setCurrentToolTip(null);}}}});
131
qx.Class.define($[151],{type:$[18],extend:qx.util.manager.Object,properties:{currentToolTip:{check:$[241],nullable:true,apply:$[1378]}},members:{_applyCurrentToolTip:function($0,$1){if($1&&$1.contains($0)){return;}if($1&&!$1.isDisposed()){$1.hide();$1._stopShowTimer();$1._stopHideTimer();}if($0){$0._startShowTimer();}},handleMouseOver:function($0){var $1=$0.getTarget();var $2;if(!($1 instanceof qx.ui.core.Widget)&&$1.nodeType==1){$1=qx.event.handler.EventHandler.getTargetObject($1);}while($1!=null&&!($2=$1.getToolTip())){$1=$1.getParent();}if($2!=null){$2.setBoundToWidget($1);}this.setCurrentToolTip($2);},handleMouseOut:function($0){var $1=$0.getTarget();var $2=$0.getRelatedTarget();var $3=this.getCurrentToolTip();if($3&&($2==$3||$3.contains($2))){return;}if($2&&$1&&$1.contains($2)){return;}if($3&&!$2){this.setCurrentToolTip(null);}},handleFocus:function($0){var $1=$0.getTarget();var $2=$1.getToolTip();if($2!=null){$2.setBoundToWidget($1);this.setCurrentToolTip($2);}},handleBlur:function($0){var $1=$0.getTarget();if(!$1){return;}var $2=this.getCurrentToolTip();if($2&&$2==$1.getToolTip()){this.setCurrentToolTip(null);}}}});
132
qx.Class.define($[1539],{type:$[51],extend:qx.ui.layout.BoxLayout,construct:function($0,$1){arguments.callee.base.call(this);this._bar=new $0;this._pane=new $1;this.add(this._bar,this._pane);},members:{getPane:function(){return this._pane;},getBar:function(){return this._bar;}},destruct:function(){this._disposeObjects($[1462],$[430]);}});
132
qx.Class.define($[764],{type:$[51],extend:qx.ui.layout.BoxLayout,construct:function(){arguments.callee.base.call(this);this._manager=new qx.ui.selection.RadioManager;this.addEventListener($[184],this._onmousewheel);},members:{getManager:function(){return this._manager;},_lastDate:(new Date(0)).valueOf(),_onmousewheel:function($0){var $1=(new Date).valueOf();if(($1-50)<this._lastDate){return;}this._lastDate=$1;var $2=this.getManager();var $3=$2.getEnabledItems();var $4=$3.indexOf($2.getSelected());if(this.getWheelDelta($0)>0){var $5=$3[$4+1];if(!$5){$5=$3[0];}}else if($4>0){var $5=$3[$4-1];if(!$5){$5=$3[0];}}else{$5=$3[$3.length-1];}$2.setSelected($5);},getWheelDelta:function($0){return $0.getWheelDelta();}},destruct:function(){this._disposeObjects($[213]);}});
133
qx.Class.define($[787],{extend:qx.ui.pageview.AbstractPageView,construct:function(){arguments.callee.base.call(this,qx.ui.pageview.tabview.Bar,qx.ui.pageview.tabview.Pane);},properties:{appearance:{refine:true,init:$[1020]},orientation:{refine:true,init:$[117]},alignTabsToLeft:{check:$[2],init:true,apply:$[1412]},placeBarOnTop:{check:$[2],init:true,apply:$[1744]}},members:{_applyAlignTabsToLeft:function($0,$1){var $2=this._bar;$2.setHorizontalChildrenAlign($0?$[11]:$[9]);$2._addChildrenToStateQueue();},_applyPlaceBarOnTop:function($0,$1){var $2=this._bar;if($0){$2.moveSelfToBegin();}else{$2.moveSelfToEnd();}$2._addChildrenToStateQueue();}}});
134
qx.Class.define($[763],{type:$[51],extend:qx.ui.layout.BoxLayout,construct:function(){arguments.callee.base.call(this);this._manager=new qx.ui.selection.RadioManager;this.addEventListener($[184],this._onmousewheel);},members:{getManager:function(){return this._manager;},_lastDate:(new Date(0)).valueOf(),_onmousewheel:function($0){var $1=(new Date).valueOf();if(($1-50)<this._lastDate){return;}this._lastDate=$1;var $2=this.getManager();var $3=$2.getEnabledItems();var $4=$3.indexOf($2.getSelected());if(this.getWheelDelta($0)>0){var $5=$3[$4+1];if(!$5){$5=$3[0];}}else if($4>0){var $5=$3[$4-1];if(!$5){$5=$3[0];}}else{$5=$3[$3.length-1];}$2.setSelected($5);},getWheelDelta:function($0){return $0.getWheelDelta();}},destruct:function(){this._disposeObjects($[213]);}});
135
qx.Class.define($[176],{extend:qx.core.Target,construct:function($0,$1){arguments.callee.base.call(this);this._items=[];this.setName($0!=null?$0:qx.ui.selection.RadioManager.AUTO_NAME_PREFIX+this.toHashCode());if($1!=null){this.add.apply(this,$1);}},statics:{AUTO_NAME_PREFIX:"qx-radio-"},properties:{selected:{nullable:true,apply:$[267],event:$[261],check:$[493]},name:{check:$[6],nullable:true,apply:$[260]}},members:{getItems:function(){return this._items;},getEnabledItems:function(){var $0=[];for(var $1=0,$2=this._items,$3=$2.length;$1<$3;$1++){if($2[$1].getEnabled()){$0.push($2[$1]);}}return $0;},handleItemChecked:function($0,$1){if($1){this.setSelected($0);}else if(this.getSelected()==$0){this.setSelected(null);}},add:function($0){var $1=arguments;var $2=$1.length;var $3;for(var $4=0;$4<$2;$4++){$3=$1[$4];if(qx.lang.Array.contains(this._items,$3)){return;}this._items.push($3);$3.setManager(this);if($3.getChecked()){this.setSelected($3);}$3.setName(this.getName());}},remove:function($0){qx.lang.Array.remove(this._items,$0);$0.setManager(null);if($0.getChecked()){this.setSelected(null);}},_applySelected:function($0,$1){if($1){$1.setChecked(false);}if($0){$0.setChecked(true);}},_applyName:function($0,$1){for(var $2=0,$3=this._items,$4=$3.length;$2<$4;$2++){$3[$2].setName($0);}},selectNext:function($0){var $1=this._items.indexOf($0);if($1==-1){return;}var $2=0;var $3=this._items.length;$1=($1+1)%$3;while($2<$3&&!this._items[$1].getEnabled()){$1=($1+1)%$3;$2++;}this._selectByIndex($1);},selectPrevious:function($0){var $1=this._items.indexOf($0);if($1==-1){return;}var $2=0;var $3=this._items.length;$1=($1-1+$3)%$3;while($2<$3&&!this._items[$1].getEnabled()){$1=($1-1+$3)%$3;$2++;}this._selectByIndex($1);},_selectByIndex:function($0){if(this._items[$0].getEnabled()){this.setSelected(this._items[$0]);this._items[$0].setFocused(true);}}},destruct:function(){this._disposeObjectDeep($[1741],1);}});
133
qx.Class.define($[176],{extend:qx.core.Target,construct:function($0,$1){arguments.callee.base.call(this);this._items=[];this.setName($0!=null?$0:qx.ui.selection.RadioManager.AUTO_NAME_PREFIX+this.toHashCode());if($1!=null){this.add.apply(this,$1);}},statics:{AUTO_NAME_PREFIX:"qx-radio-"},properties:{selected:{nullable:true,apply:$[267],event:$[261],check:$[493]},name:{check:$[6],nullable:true,apply:$[260]}},members:{getItems:function(){return this._items;},getEnabledItems:function(){var $0=[];for(var $1=0,$2=this._items,$3=$2.length;$1<$3;$1++){if($2[$1].getEnabled()){$0.push($2[$1]);}}return $0;},handleItemChecked:function($0,$1){if($1){this.setSelected($0);}else if(this.getSelected()==$0){this.setSelected(null);}},add:function($0){var $1=arguments;var $2=$1.length;var $3;for(var $4=0;$4<$2;$4++){$3=$1[$4];if(qx.lang.Array.contains(this._items,$3)){return;}this._items.push($3);$3.setManager(this);if($3.getChecked()){this.setSelected($3);}$3.setName(this.getName());}},remove:function($0){qx.lang.Array.remove(this._items,$0);$0.setManager(null);if($0.getChecked()){this.setSelected(null);}},_applySelected:function($0,$1){if($1){$1.setChecked(false);}if($0){$0.setChecked(true);}},_applyName:function($0,$1){for(var $2=0,$3=this._items,$4=$3.length;$2<$4;$2++){$3[$2].setName($0);}},selectNext:function($0){var $1=this._items.indexOf($0);if($1==-1){return;}var $2=0;var $3=this._items.length;$1=($1+1)%$3;while($2<$3&&!this._items[$1].getEnabled()){$1=($1+1)%$3;$2++;}this._selectByIndex($1);},selectPrevious:function($0){var $1=this._items.indexOf($0);if($1==-1){return;}var $2=0;var $3=this._items.length;$1=($1-1+$3)%$3;while($2<$3&&!this._items[$1].getEnabled()){$1=($1-1+$3)%$3;$2++;}this._selectByIndex($1);},_selectByIndex:function($0){if(this._items[$0].getEnabled()){this.setSelected(this._items[$0]);this._items[$0].setFocused(true);}}},destruct:function(){this._disposeObjectDeep($[1741],1);}});
136
qx.Class.define($[1476],{extend:qx.ui.pageview.AbstractBar,construct:function(){arguments.callee.base.call(this);this.initZIndex();this.initHeight();},properties:{appearance:{refine:true,init:$[803]},zIndex:{refine:true,init:2},height:{refine:true,init:$[3]}}});
134
qx.Class.define($[1475],{extend:qx.ui.pageview.AbstractBar,construct:function(){arguments.callee.base.call(this);this.initZIndex();this.initHeight();},properties:{appearance:{refine:true,init:$[804]},zIndex:{refine:true,init:2},height:{refine:true,init:$[3]}}});
137
qx.Class.define($[681],{type:$[51],extend:qx.ui.layout.CanvasLayout});
135
qx.Class.define($[470],{type:$[51],extend:qx.ui.basic.Atom,construct:function($0,$1,$2,$3,$4){arguments.callee.base.call(this,$0,$1,$2,$3,$4);this.initChecked();this.initTabIndex();this.addEventListener($[61],this._onmouseover);this.addEventListener($[105],this._onmouseout);this.addEventListener($[12],this._onmousedown);this.addEventListener($[16],this._onkeydown);this.addEventListener($[40],this._onkeypress);},properties:{tabIndex:{refine:true,init:1},checked:{check:$[2],init:false,apply:$[165],event:$[270]},page:{check:$[454],apply:$[1025],nullable:true},manager:{check:$[176],nullable:true,apply:$[189]},name:{check:$[6],apply:$[260]}},members:{getView:function(){var $0=this.getParent();return $0?$0.getParent():null;},_applyManager:function($0,$1){if($1){$1.remove(this);}if($0){$0.add(this);}},_applyParent:function($0,$1){arguments.callee.base.call(this,$0,$1);if($1){$1.getManager().remove(this);}if($0){$0.getManager().add(this);}},_applyPage:function($0,$1){if($1){$1.setButton(null);}if($0){$0.setButton(this);this.getChecked()?$0.show():$0.hide();}},_applyChecked:function($0,$1){if(this._hasParent){var $2=this.getManager();if($2){$2.handleItemChecked(this,$0);}}$0?this.addState($[122]):this.removeState($[122]);var $3=this.getPage();if($3){this.getChecked()?$3.show():$3.hide();}},_applyName:function($0,$1){if(this.getManager()){this.getManager().setName($0);}},_onmousedown:function($0){this.setChecked(true);},_onmouseover:function($0){this.addState($[43]);},_onmouseout:function($0){this.removeState($[43]);},_onkeydown:function($0){},_onkeypress:function($0){}}});
138
qx.Class.define($[1315],{extend:qx.ui.pageview.AbstractPane,construct:function(){arguments.callee.base.call(this);this.initZIndex();this.initHeight();},properties:{appearance:{refine:true,init:$[580]},zIndex:{refine:true,init:1},height:{refine:true,init:$[138]}}});
136
qx.Class.define($[1781],{extend:qx.ui.pageview.AbstractButton,events:{"closetab":$[4]},properties:{appearance:{refine:true,init:$[699]},showCloseButton:{check:$[2],init:false,apply:$[992],event:$[1351]},closeButtonImage:{check:$[6],init:$[1397],apply:$[1740]}},members:{_onkeydown:function($0){var $1=$0.getKeyIdentifier();if($1==$[46]||$1==$[85]){this.setChecked(true);}},_onkeypress:function($0){switch($0.getKeyIdentifier()){case $[60]:var $1=this.getPreviousActiveSibling();if($1&&$1!=this){delete qx.event.handler.FocusHandler.mouseFocus;$1.setFocused(true);$1.setChecked(true);}break;case $[64]:var $2=this.getNextActiveSibling();if($2&&$2!=this){delete qx.event.handler.FocusHandler.mouseFocus;$2.setFocused(true);$2.setChecked(true);}break;}},_ontabclose:function($0){this.createDispatchDataEvent($[1552],this);$0.stopPropagation();},_applyChecked:function($0,$1){arguments.callee.base.call(this,$0,$1);this.setZIndex($0?1:0);},_applyShowCloseButton:function($0,$1){if(!this._closeButtonImage){this._closeButtonImage=new qx.ui.basic.Image(this.getCloseButtonImage());}if($0){this._closeButtonImage.addEventListener($[53],this._ontabclose,this);this.add(this._closeButtonImage);}else{this.remove(this._closeButtonImage);this._closeButtonImage.removeEventListener($[53],this._ontabclose,this);}},_applyCloseButtonImage:function($0,$1){if(this._closeButtonImage){this._closeButtonImage.setSource($0);}},_renderAppearance:function(){if(this.getView()){this.isFirstVisibleChild()?this.addState($[1510]):this.removeState($[298]);this.isLastVisibleChild()?this.addState($[298]):this.removeState($[298]);this.getView().getAlignTabsToLeft()?this.addState($[394]):this.removeState($[394]);!this.getView().getAlignTabsToLeft()?this.addState($[443]):this.removeState($[443]);this.getView().getPlaceBarOnTop()?this.addState($[505]):this.removeState($[505]);!this.getView().getPlaceBarOnTop()?this.addState($[397]):this.removeState($[397]);}arguments.callee.base.call(this);}},destruct:function(){this._disposeObjects($[957]);}});
139
qx.Class.define($[469],{type:$[51],extend:qx.ui.basic.Atom,construct:function($0,$1,$2,$3,$4){arguments.callee.base.call(this,$0,$1,$2,$3,$4);this.initChecked();this.initTabIndex();this.addEventListener($[61],this._onmouseover);this.addEventListener($[105],this._onmouseout);this.addEventListener($[12],this._onmousedown);this.addEventListener($[16],this._onkeydown);this.addEventListener($[40],this._onkeypress);},properties:{tabIndex:{refine:true,init:1},checked:{check:$[2],init:false,apply:$[165],event:$[270]},page:{check:$[453],apply:$[1026],nullable:true},manager:{check:$[176],nullable:true,apply:$[189]},name:{check:$[6],apply:$[260]}},members:{getView:function(){var $0=this.getParent();return $0?$0.getParent():null;},_applyManager:function($0,$1){if($1){$1.remove(this);}if($0){$0.add(this);}},_applyParent:function($0,$1){arguments.callee.base.call(this,$0,$1);if($1){$1.getManager().remove(this);}if($0){$0.getManager().add(this);}},_applyPage:function($0,$1){if($1){$1.setButton(null);}if($0){$0.setButton(this);this.getChecked()?$0.show():$0.hide();}},_applyChecked:function($0,$1){if(this._hasParent){var $2=this.getManager();if($2){$2.handleItemChecked(this,$0);}}$0?this.addState($[122]):this.removeState($[122]);var $3=this.getPage();if($3){this.getChecked()?$3.show():$3.hide();}},_applyName:function($0,$1){if(this.getManager()){this.getManager().setName($0);}},_onmousedown:function($0){this.setChecked(true);},_onmouseover:function($0){this.addState($[43]);},_onmouseout:function($0){this.removeState($[43]);},_onkeydown:function($0){},_onkeypress:function($0){}}});
137
qx.Class.define($[454],{type:$[51],extend:qx.ui.layout.CanvasLayout,construct:function($0){arguments.callee.base.call(this);if($0!==undefined){this.setButton($0);}this.initTop();this.initRight();this.initBottom();this.initLeft();},properties:{top:{refine:true,init:0},right:{refine:true,init:0},bottom:{refine:true,init:0},left:{refine:true,init:0},display:{refine:true,init:false},button:{check:$[470],apply:$[840]}},members:{_applyButton:function($0,$1){if($1){$1.setPage(null);}if($0){$0.setPage(this);}}}});
140
qx.Class.define($[1781],{extend:qx.ui.pageview.AbstractButton,events:{"closetab":$[4]},properties:{appearance:{refine:true,init:$[698]},showCloseButton:{check:$[2],init:false,apply:$[993],event:$[1351]},closeButtonImage:{check:$[6],init:$[1396],apply:$[1740]}},members:{_onkeydown:function($0){var $1=$0.getKeyIdentifier();if($1==$[46]||$1==$[84]){this.setChecked(true);}},_onkeypress:function($0){switch($0.getKeyIdentifier()){case $[60]:var $1=this.getPreviousActiveSibling();if($1&&$1!=this){delete qx.event.handler.FocusHandler.mouseFocus;$1.setFocused(true);$1.setChecked(true);}break;case $[64]:var $2=this.getNextActiveSibling();if($2&&$2!=this){delete qx.event.handler.FocusHandler.mouseFocus;$2.setFocused(true);$2.setChecked(true);}break;}},_ontabclose:function($0){this.createDispatchDataEvent($[1552],this);$0.stopPropagation();},_applyChecked:function($0,$1){arguments.callee.base.call(this,$0,$1);this.setZIndex($0?1:0);},_applyShowCloseButton:function($0,$1){if(!this._closeButtonImage){this._closeButtonImage=new qx.ui.basic.Image(this.getCloseButtonImage());}if($0){this._closeButtonImage.addEventListener($[53],this._ontabclose,this);this.add(this._closeButtonImage);}else{this.remove(this._closeButtonImage);this._closeButtonImage.removeEventListener($[53],this._ontabclose,this);}},_applyCloseButtonImage:function($0,$1){if(this._closeButtonImage){this._closeButtonImage.setSource($0);}},_renderAppearance:function(){if(this.getView()){this.isFirstVisibleChild()?this.addState($[1511]):this.removeState($[298]);this.isLastVisibleChild()?this.addState($[298]):this.removeState($[298]);this.getView().getAlignTabsToLeft()?this.addState($[393]):this.removeState($[393]);!this.getView().getAlignTabsToLeft()?this.addState($[442]):this.removeState($[442]);this.getView().getPlaceBarOnTop()?this.addState($[504]):this.removeState($[504]);!this.getView().getPlaceBarOnTop()?this.addState($[396]):this.removeState($[396]);}arguments.callee.base.call(this);}},destruct:function(){this._disposeObjects($[958]);}});
138
qx.Class.define($[1318],{extend:qx.ui.pageview.AbstractPage,properties:{appearance:{refine:true,init:$[723]}}});
141
qx.Class.define($[453],{type:$[51],extend:qx.ui.layout.CanvasLayout,construct:function($0){arguments.callee.base.call(this);if($0!==undefined){this.setButton($0);}this.initTop();this.initRight();this.initBottom();this.initLeft();},properties:{top:{refine:true,init:0},right:{refine:true,init:0},bottom:{refine:true,init:0},left:{refine:true,init:0},display:{refine:true,init:false},button:{check:$[469],apply:$[839]}},members:{_applyButton:function($0,$1){if($1){$1.setPage(null);}if($0){$0.setPage(this);}}}});
139
qx.Class.define($[682],{type:$[51],extend:qx.ui.layout.CanvasLayout});
142
qx.Class.define($[1319],{extend:qx.ui.pageview.AbstractPage,properties:{appearance:{refine:true,init:$[722]}}});
140
qx.Class.define($[1314],{extend:qx.ui.pageview.AbstractPane,construct:function(){arguments.callee.base.call(this);this.initZIndex();this.initHeight();},properties:{appearance:{refine:true,init:$[580]},zIndex:{refine:true,init:1},height:{refine:true,init:$[138]}}});
141
qx.Class.define($[1539],{type:$[51],extend:qx.ui.layout.BoxLayout,construct:function($0,$1){arguments.callee.base.call(this);this._bar=new $0;this._pane=new $1;this.add(this._bar,this._pane);},members:{getPane:function(){return this._pane;},getBar:function(){return this._bar;}},destruct:function(){this._disposeObjects($[1461],$[431]);}});
142
qx.Class.define($[788],{extend:qx.ui.pageview.AbstractPageView,construct:function(){arguments.callee.base.call(this,qx.ui.pageview.tabview.Bar,qx.ui.pageview.tabview.Pane);},properties:{appearance:{refine:true,init:$[1019]},orientation:{refine:true,init:$[117]},alignTabsToLeft:{check:$[2],init:true,apply:$[1413]},placeBarOnTop:{check:$[2],init:true,apply:$[1744]}},members:{_applyAlignTabsToLeft:function($0,$1){var $2=this._bar;$2.setHorizontalChildrenAlign($0?$[11]:$[9]);$2._addChildrenToStateQueue();},_applyPlaceBarOnTop:function($0,$1){var $2=this._bar;if($0){$2.moveSelfToBegin();}else{$2.moveSelfToEnd();}$2._addChildrenToStateQueue();}}});
143
qx.Class.define($[1706],{extend:qx.ui.form.Button,properties:{tabIndex:{refine:true,init:-1},appearance:{refine:true,init:$[652]},show:{refine:true,init:$[116]},height:{refine:true,init:null},allowStretchY:{refine:true,init:true}},members:{_onkeydown:qx.lang.Function.returnTrue,_onkeyup:qx.lang.Function.returnTrue}});
143
qx.Class.define($[1706],{extend:qx.ui.form.Button,properties:{tabIndex:{refine:true,init:-1},appearance:{refine:true,init:$[652]},show:{refine:true,init:$[116]},height:{refine:true,init:null},allowStretchY:{refine:true,init:true}},members:{_onkeydown:qx.lang.Function.returnTrue,_onkeyup:qx.lang.Function.returnTrue}});
144
qx.Class.define($[969],{extend:qx.ui.toolbar.Button,construct:function($0,$1,$2){arguments.callee.base.call(this,$0,$1);if($2!=null){this.setChecked($2);}},properties:{checked:{check:$[2],init:false,apply:$[165],event:$[270]}},members:{_applyChecked:function($0,$1){$0?this.addState($[122]):this.removeState($[122]);},_onmouseup:function($0){this.setCapture(false);if(!this.hasState($[35])){this.addState($[43]);this.setChecked(!this.getChecked());this.execute();}this.removeState($[35]);this.removeState($[14]);$0.stopPropagation();}}});
144
qx.Class.define($[968],{extend:qx.ui.toolbar.Button,construct:function($0,$1,$2){arguments.callee.base.call(this,$0,$1);if($2!=null){this.setChecked($2);}},properties:{checked:{check:$[2],init:false,apply:$[165],event:$[270]}},members:{_applyChecked:function($0,$1){$0?this.addState($[122]):this.removeState($[122]);},_onmouseup:function($0){this.setCapture(false);if(!this.hasState($[35])){this.addState($[43]);this.setChecked(!this.getChecked());this.execute();}this.removeState($[35]);this.removeState($[14]);$0.stopPropagation();}}});
145
qx.Class.define($[1556],{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);var $0=new qx.ui.basic.Terminator;$0.setAppearance($[748]);this.add($0);},properties:{appearance:{refine:true,init:$[1063]}}});
145
qx.Class.define($[1483],{extend:qx.ui.toolbar.Button,construct:function($0,$1,$2,$3,$4,$5){arguments.callee.base.call(this,$0,$2,$3,$4,$5);if($1!=null){this.setMenu($1);}},properties:{menu:{check:$[160],nullable:true,apply:$[449],event:$[1628]},direction:{check:[$[348],$[257]],init:$[257],event:$[1709]}},members:{getParentToolBar:function(){var $0=this.getParent();if($0 instanceof qx.ui.toolbar.Part){$0=$0.getParent();}return $0 instanceof qx.ui.toolbar.ToolBar?$0:null;},_showMenu:function($0){var $1=this.getMenu();if($1){var $2=this.getElement();var $3=qx.bom.element.Location.get($2);$1.setLeft($3.left);switch(this.getDirection()){case $[348]:$1.setBottom($3.top);$1.setTop(null);break;case $[257]:$1.setTop($3.bottom);$1.setBottom(null);break;}this.addState($[14]);if($0){$1.setHoverItem($1.getFirstActiveChild());}$1.show();}},_hideMenu:function(){var $0=this.getMenu();if($0){$0.hide();}},_applyMenu:function($0,$1){if($1){$1.setOpener(null);$1.removeEventListener($[193],this._onmenuappear,this);$1.removeEventListener($[272],this._onmenudisappear,this);}if($0){$0.setOpener(this);$0.addEventListener($[193],this._onmenuappear,this);$0.addEventListener($[272],this._onmenudisappear,this);}},_onmousedown:function($0){if($0.getTarget()!=this||!$0.isLeftButtonPressed()){return;}this.hasState($[14])?this._hideMenu():this._showMenu();},_onmouseup:function($0){},_onmouseout:function($0){if($0.getTarget()!=this){return;}this.removeState($[43]);},_onmouseover:function($0){var $1=this.getParentToolBar();if($1){var $2=this.getMenu();switch($1.getOpenMenu()){case null:case $2:break;default:qx.ui.menu.Manager.getInstance().update();this._showMenu();}}return arguments.callee.base.call(this,$0);},_onmenuappear:function($0){var $1=this.getParentToolBar();if(!$1){return;}var $2=this.getMenu();$1.setOpenMenu($2);},_onmenudisappear:function($0){var $1=this.getParentToolBar();if(!$1){return;}var $2=this.getMenu();if($1.getOpenMenu()==$2){$1.setOpenMenu(null);}}}});
146
qx.Class.define($[1484],{extend:qx.ui.toolbar.Button,construct:function($0,$1,$2,$3,$4,$5){arguments.callee.base.call(this,$0,$2,$3,$4,$5);if($1!=null){this.setMenu($1);}},properties:{menu:{check:$[160],nullable:true,apply:$[448],event:$[1629]},direction:{check:[$[349],$[257]],init:$[257],event:$[1709]}},members:{getParentToolBar:function(){var $0=this.getParent();if($0 instanceof qx.ui.toolbar.Part){$0=$0.getParent();}return $0 instanceof qx.ui.toolbar.ToolBar?$0:null;},_showMenu:function($0){var $1=this.getMenu();if($1){var $2=this.getElement();var $3=qx.bom.element.Location.get($2);$1.setLeft($3.left);switch(this.getDirection()){case $[349]:$1.setBottom($3.top);$1.setTop(null);break;case $[257]:$1.setTop($3.bottom);$1.setBottom(null);break;}this.addState($[14]);if($0){$1.setHoverItem($1.getFirstActiveChild());}$1.show();}},_hideMenu:function(){var $0=this.getMenu();if($0){$0.hide();}},_applyMenu:function($0,$1){if($1){$1.setOpener(null);$1.removeEventListener($[193],this._onmenuappear,this);$1.removeEventListener($[272],this._onmenudisappear,this);}if($0){$0.setOpener(this);$0.addEventListener($[193],this._onmenuappear,this);$0.addEventListener($[272],this._onmenudisappear,this);}},_onmousedown:function($0){if($0.getTarget()!=this||!$0.isLeftButtonPressed()){return;}this.hasState($[14])?this._hideMenu():this._showMenu();},_onmouseup:function($0){},_onmouseout:function($0){if($0.getTarget()!=this){return;}this.removeState($[43]);},_onmouseover:function($0){var $1=this.getParentToolBar();if($1){var $2=this.getMenu();switch($1.getOpenMenu()){case null:case $2:break;default:qx.ui.menu.Manager.getInstance().update();this._showMenu();}}return arguments.callee.base.call(this,$0);},_onmenuappear:function($0){var $1=this.getParentToolBar();if(!$1){return;}var $2=this.getMenu();$1.setOpenMenu($2);},_onmenudisappear:function($0){var $1=this.getParentToolBar();if(!$1){return;}var $2=this.getMenu();if($1.getOpenMenu()==$2){$1.setOpenMenu(null);}}}});
146
qx.Class.define($[1376],{extend:qx.ui.layout.HorizontalBoxLayout,construct:function(){arguments.callee.base.call(this);this._handle=new qx.ui.toolbar.PartHandle;this.add(this._handle);this.initWidth();},properties:{appearance:{refine:true,init:$[1205]},width:{refine:true,init:$[3]},show:{init:$[116],check:[$[110],$[195],$[133],$[7]],nullable:true,inheritable:true,event:$[269]}},destruct:function(){this._disposeObjects($[837]);}});
147
qx.Class.define($[1375],{extend:qx.ui.layout.HorizontalBoxLayout,construct:function(){arguments.callee.base.call(this);this._handle=new qx.ui.toolbar.PartHandle;this.add(this._handle);this.initWidth();},properties:{appearance:{refine:true,init:$[1206]},width:{refine:true,init:$[3]},show:{init:$[116],check:[$[110],$[195],$[133],$[7]],nullable:true,inheritable:true,event:$[269]}},destruct:function(){this._disposeObjects($[836]);}});
147
qx.Class.define($[1556],{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);var $0=new qx.ui.basic.Terminator;$0.setAppearance($[749]);this.add($0);},properties:{appearance:{refine:true,init:$[1063]}}});
148
qx.Class.define($[1192],{extend:qx.ui.layout.HorizontalBoxLayout,construct:function(){arguments.callee.base.call(this);this.addEventListener($[40],this._onkeypress);this.initHeight();},properties:{appearance:{refine:true,init:$[1185]},height:{refine:true,init:$[3]},openMenu:{check:$[160],event:$[1771],nullable:true},show:{init:$[110],check:[$[110],$[195],$[133],$[7]],nullable:true,inheritable:true,event:$[269]}},members:{getAllButtons:function(){var $0=this.getChildren();var $1=$0.length;var $2=[];var $3;for(var $4=0;$4<$1;$4++){$3=$0[$4];if($3 instanceof qx.ui.toolbar.MenuButton){$2.push($3);}else if($3 instanceof qx.ui.toolbar.Part){$2=$2.concat($3.getChildren());}}return $2;},_onkeypress:function($0){switch($0.getKeyIdentifier()){case $[60]:return this._onkeypress_left();case $[64]:return this._onkeypress_right();}},_onkeypress_left:function(){var $0=this.getOpenMenu();if(!$0){return;}var $1=$0.getOpener();if(!$1){return;}var $2=this.getAllButtons();var $3=$2.length;var $4=$2.indexOf($1);var $5;var $6=null;for(var $7=$4-1;$7>=0;$7--){$5=$2[$7];if($5 instanceof qx.ui.toolbar.MenuButton&&$5.getEnabled()){$6=$5;break;}}if(!$6){for(var $7=$3-1;$7>$4;$7--){$5=$2[$7];if($5 instanceof qx.ui.toolbar.MenuButton&&$5.getEnabled()){$6=$5;break;}}}if($6){qx.ui.menu.Manager.getInstance().update();$6._showMenu(true);}},_onkeypress_right:function(){var $0=this.getOpenMenu();if(!$0){return;}var $1=$0.getOpener();if(!$1){return;}var $2=this.getAllButtons();var $3=$2.length;var $4=$2.indexOf($1);var $5;var $6=null;for(var $7=$4+1;$7<$3;$7++){$5=$2[$7];if($5 instanceof qx.ui.toolbar.MenuButton&&$5.getEnabled()){$6=$5;break;}}if(!$6){for(var $7=0;$7<$4;$7++){$5=$2[$7];if($5 instanceof qx.ui.toolbar.MenuButton&&$5.getEnabled()){$6=$5;break;}}}if($6){qx.ui.menu.Manager.getInstance().update();$6._showMenu(true);}}}});
148
qx.Class.define($[1191],{extend:qx.ui.layout.HorizontalBoxLayout,construct:function(){arguments.callee.base.call(this);this.addEventListener($[40],this._onkeypress);this.initHeight();},properties:{appearance:{refine:true,init:$[1184]},height:{refine:true,init:$[3]},openMenu:{check:$[160],event:$[1771],nullable:true},show:{init:$[110],check:[$[110],$[195],$[133],$[7]],nullable:true,inheritable:true,event:$[269]}},members:{getAllButtons:function(){var $0=this.getChildren();var $1=$0.length;var $2=[];var $3;for(var $4=0;$4<$1;$4++){$3=$0[$4];if($3 instanceof qx.ui.toolbar.MenuButton){$2.push($3);}else if($3 instanceof qx.ui.toolbar.Part){$2=$2.concat($3.getChildren());}}return $2;},_onkeypress:function($0){switch($0.getKeyIdentifier()){case $[60]:return this._onkeypress_left();case $[64]:return this._onkeypress_right();}},_onkeypress_left:function(){var $0=this.getOpenMenu();if(!$0){return;}var $1=$0.getOpener();if(!$1){return;}var $2=this.getAllButtons();var $3=$2.length;var $4=$2.indexOf($1);var $5;var $6=null;for(var $7=$4-1;$7>=0;$7--){$5=$2[$7];if($5 instanceof qx.ui.toolbar.MenuButton&&$5.getEnabled()){$6=$5;break;}}if(!$6){for(var $7=$3-1;$7>$4;$7--){$5=$2[$7];if($5 instanceof qx.ui.toolbar.MenuButton&&$5.getEnabled()){$6=$5;break;}}}if($6){qx.ui.menu.Manager.getInstance().update();$6._showMenu(true);}},_onkeypress_right:function(){var $0=this.getOpenMenu();if(!$0){return;}var $1=$0.getOpener();if(!$1){return;}var $2=this.getAllButtons();var $3=$2.length;var $4=$2.indexOf($1);var $5;var $6=null;for(var $7=$4+1;$7<$3;$7++){$5=$2[$7];if($5 instanceof qx.ui.toolbar.MenuButton&&$5.getEnabled()){$6=$5;break;}}if(!$6){for(var $7=0;$7<$4;$7++){$5=$2[$7];if($5 instanceof qx.ui.toolbar.MenuButton&&$5.getEnabled()){$6=$5;break;}}}if($6){qx.ui.menu.Manager.getInstance().update();$6._showMenu(true);}}}});
149
qx.Class.define($[152],{type:$[18],extend:qx.util.manager.Object,construct:function(){arguments.callee.base.call(this);},members:{update:function($0,$1){var $2,$3;var $4=this.getAll();for($3 in $4){$2=$4[$3];if(!$2.getAutoHide()){continue;}if($0&&$0.getMenu&&$0.getMenu()){continue;}if(!$0){$2.hide();continue;}var $5=$1==$[12];var $6=$1==$[22];if($2.getOpener()!==$0&&($0&&(!$2.isSubElement($0)&&$5)||($2.isSubElement($0,true)&&$6)||(!$5&&!$6))){$2.hide();continue;}}}}});
149
qx.Class.define($[152],{type:$[18],extend:qx.util.manager.Object,construct:function(){arguments.callee.base.call(this);},members:{update:function($0,$1){var $2,$3;var $4=this.getAll();for($3 in $4){$2=$4[$3];if(!$2.getAutoHide()){continue;}if($0&&$0.getMenu&&$0.getMenu()){continue;}if(!$0){$2.hide();continue;}var $5=$1==$[12];var $6=$1==$[22];if($2.getOpener()!==$0&&($0&&(!$2.isSubElement($0)&&$5)||($2.isSubElement($0,true)&&$6)||(!$5&&!$6))){$2.hide();continue;}}}}});
150
qx.Class.define($[1562],{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);var $0=new qx.ui.basic.Terminator;$0.setAppearance($[1273]);this.add($0);},properties:{appearance:{refine:true,init:$[1359]}}});
150
qx.Class.define($[631],{extend:qx.ui.toolbar.CheckBox,properties:{manager:{check:$[176],apply:$[189],nullable:true},name:{check:$[6],event:$[506]},disableUncheck:{check:$[2],init:false}},members:{_applyChecked:function($0,$1){arguments.callee.base.call(this,$0,$1);var $2=this.getManager();if($2){$2.handleItemChecked(this,$0);}},_applyManager:function($0,$1){if($1){$1.remove(this);}if($0){$0.add(this);}},_onmouseup:function($0){this.setCapture(false);if(!this.hasState($[35])){this.addState($[43]);this.setChecked(this.getDisableUncheck()||!this.getChecked());this.execute();}this.removeState($[35]);this.removeState($[14]);$0.stopPropagation();}}});
151
qx.Class.define($[631],{extend:qx.ui.toolbar.CheckBox,properties:{manager:{check:$[176],apply:$[189],nullable:true},name:{check:$[6],event:$[505]},disableUncheck:{check:$[2],init:false}},members:{_applyChecked:function($0,$1){arguments.callee.base.call(this,$0,$1);var $2=this.getManager();if($2){$2.handleItemChecked(this,$0);}},_applyManager:function($0,$1){if($1){$1.remove(this);}if($0){$0.add(this);}},_onmouseup:function($0){this.setCapture(false);if(!this.hasState($[35])){this.addState($[43]);this.setChecked(this.getDisableUncheck()||!this.getChecked());this.execute();}this.removeState($[35]);this.removeState($[14]);$0.stopPropagation();}}});
151
qx.Class.define($[1561],{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);var $0=new qx.ui.basic.Terminator;$0.setAppearance($[1272]);this.add($0);},properties:{appearance:{refine:true,init:$[1360]}}});
152
qx.Class.define($[1750],{extend:qx.ui.basic.Atom,construct:function($0,$1,$2,$3){arguments.callee.base.call(this,$0);this.initTabIndex();this._createIcon();if($1!=null){this.setValue($1);}if($2!=null){this.setName($2);}if($3!=null){this.setChecked($3);}else{this.initChecked();}this.addEventListener($[53],this._onclick);this.addEventListener($[16],this._onkeydown);this.addEventListener($[88],this._onkeyup);},properties:{appearance:{refine:true,init:$[882]},tabIndex:{refine:true,init:1},name:{check:$[6],event:$[505]},value:{check:$[6],event:$[124]},checked:{check:$[2],apply:$[165],init:false,event:$[270]}},members:{INPUT_TYPE:"checkbox",_createIcon:function(){var $0=this._iconObject=new qx.ui.form.InputCheckSymbol;$0.setType(this.INPUT_TYPE);$0.setChecked(this.getChecked());$0.setAnonymous(true);this.addAtBegin($0);},_applyChecked:function($0,$1){if(this._iconObject){this._iconObject.setChecked($0);}},_applyIcon:null,_applyDisabledIcon:null,_handleIcon:function(){switch(this.getShow()){case $[133]:case $[110]:this._iconIsVisible=true;break;default:this._iconIsVisible=false;}if(this._iconIsVisible){this._iconObject?this._iconObject.setDisplay(true):this._createIcon();}else if(this._iconObject){this._iconObject.setDisplay(false);}},_onclick:function($0){this.toggleChecked();},_onkeydown:function($0){if($0.getKeyIdentifier()==$[46]&&!$0.isAltPressed()){this.toggleChecked();}},_onkeyup:function($0){if($0.getKeyIdentifier()==$[84]){this.toggleChecked();}}}});
152
qx.Class.define($[1750],{extend:qx.ui.basic.Atom,construct:function($0,$1,$2,$3){arguments.callee.base.call(this,$0);this.initTabIndex();this._createIcon();if($1!=null){this.setValue($1);}if($2!=null){this.setName($2);}if($3!=null){this.setChecked($3);}else{this.initChecked();}this.addEventListener($[53],this._onclick);this.addEventListener($[16],this._onkeydown);this.addEventListener($[84],this._onkeyup);},properties:{appearance:{refine:true,init:$[882]},tabIndex:{refine:true,init:1},name:{check:$[6],event:$[506]},value:{check:$[6],event:$[124]},checked:{check:$[2],apply:$[165],init:false,event:$[270]}},members:{INPUT_TYPE:"checkbox",_createIcon:function(){var $0=this._iconObject=new qx.ui.form.InputCheckSymbol;$0.setType(this.INPUT_TYPE);$0.setChecked(this.getChecked());$0.setAnonymous(true);this.addAtBegin($0);},_applyChecked:function($0,$1){if(this._iconObject){this._iconObject.setChecked($0);}},_applyIcon:null,_applyDisabledIcon:null,_handleIcon:function(){switch(this.getShow()){case $[133]:case $[110]:this._iconIsVisible=true;break;default:this._iconIsVisible=false;}if(this._iconIsVisible){this._iconObject?this._iconObject.setDisplay(true):this._createIcon();}else if(this._iconObject){this._iconObject.setDisplay(false);}},_onclick:function($0){this.toggleChecked();},_onkeydown:function($0){if($0.getKeyIdentifier()==$[46]&&!$0.isAltPressed()){this.toggleChecked();}},_onkeyup:function($0){if($0.getKeyIdentifier()==$[85]){this.toggleChecked();}}}});
153
qx.Class.define($[823],{extend:qx.ui.basic.Terminator,construct:function(){arguments.callee.base.call(this);this.setSelectable(false);if(qx.core.Variant.isSet($[1],$[13])){this.setWidth(13);this.setHeight(13);}else if(qx.core.Variant.isSet($[1],$[21])){this.setMargin(0);}this.initTabIndex();this.setChecked(false);},properties:{tabIndex:{refine:true,init:-1},name:{check:$[6],init:null,nullable:true,apply:$[260]},value:{init:null,nullable:true,apply:$[209]},type:{init:null,nullable:true,apply:$[1636]},checked:{check:$[2],init:false,apply:$[165]}},members:{_createElementImpl:function(){this.setElement(this.getTopLevelWidget().getDocumentElement().createElement($[89]));},_applyName:function($0,$1){return this.setHtmlProperty($[1423],$0);},_applyValue:function($0,$1){return this.setHtmlProperty($[255],$0);},_applyType:function($0,$1){return this.setHtmlProperty($[1175],$0);},_applyChecked:function($0,$1){return this.setHtmlProperty($[122],$0);},getPreferredBoxWidth:function(){return 13;},getPreferredBoxHeight:function(){return 13;},_afterAppear:qx.core.Variant.select($[1],{"mshtml":function(){arguments.callee.base.call(this);var $0=this.getElement();$0.checked=this.getChecked();if(this.getEnabled()===false){$0.disabled=true;}},"default":qx.lang.Function.returnTrue}),_applyEnabled:function($0,$1){$0===false?this.setHtmlProperty($[185],$[185]):this.removeHtmlProperty($[185]);return arguments.callee.base.call(this,$0,$1);}},defer:function($0,$1){$1.getBoxWidth=$1.getPreferredBoxWidth;$1.getBoxHeight=$1.getPreferredBoxHeight;$1.getInnerWidth=$1.getPreferredBoxWidth;$1.getInnerHeight=$1.getPreferredBoxHeight;}});
153
qx.Class.define($[824],{extend:qx.ui.basic.Terminator,construct:function(){arguments.callee.base.call(this);this.setSelectable(false);if(qx.core.Variant.isSet($[1],$[13])){this.setWidth(13);this.setHeight(13);}else if(qx.core.Variant.isSet($[1],$[21])){this.setMargin(0);}this.initTabIndex();this.setChecked(false);},properties:{tabIndex:{refine:true,init:-1},name:{check:$[6],init:null,nullable:true,apply:$[260]},value:{init:null,nullable:true,apply:$[209]},type:{init:null,nullable:true,apply:$[1635]},checked:{check:$[2],init:false,apply:$[165]}},members:{_createElementImpl:function(){this.setElement(this.getTopLevelWidget().getDocumentElement().createElement($[89]));},_applyName:function($0,$1){return this.setHtmlProperty($[1424],$0);},_applyValue:function($0,$1){return this.setHtmlProperty($[255],$0);},_applyType:function($0,$1){return this.setHtmlProperty($[1174],$0);},_applyChecked:function($0,$1){return this.setHtmlProperty($[122],$0);},getPreferredBoxWidth:function(){return 13;},getPreferredBoxHeight:function(){return 13;},_afterAppear:qx.core.Variant.select($[1],{"mshtml":function(){arguments.callee.base.call(this);var $0=this.getElement();$0.checked=this.getChecked();if(this.getEnabled()===false){$0.disabled=true;}},"default":qx.lang.Function.returnTrue}),_applyEnabled:function($0,$1){$0===false?this.setHtmlProperty($[185],$[185]):this.removeHtmlProperty($[185]);return arguments.callee.base.call(this,$0,$1);}},defer:function($0,$1){$1.getBoxWidth=$1.getPreferredBoxWidth;$1.getBoxHeight=$1.getPreferredBoxHeight;$1.getInnerWidth=$1.getPreferredBoxWidth;$1.getInnerHeight=$1.getPreferredBoxHeight;}});
154
qx.Class.define($[1153],{extend:qx.ui.layout.HorizontalBoxLayout,construct:function($0,$1,$2){arguments.callee.base.call(this);if(qx.core.Variant.isSet($[1],$[13])){this.setStyleProperty($[210],$[52]);}this._textfield=new qx.ui.form.TextField;this._textfield.setBorder(null);this._textfield.setWidth($[138]);this._textfield.setAllowStretchY(true);this._textfield.setHeight(null);this._textfield.setLiveUpdate(true);this._textfield.setVerticalAlign($[62]);this._textfield.setAppearance($[1518]);this.add(this._textfield);this._buttonlayout=new qx.ui.layout.VerticalBoxLayout;this._buttonlayout.setWidth($[3]);this.add(this._buttonlayout);this._upbutton=new qx.ui.basic.Image;this._upbutton.setAppearance($[1144]);this._upbutton.setHeight($[138]);this._buttonlayout.add(this._upbutton);this._downbutton=new qx.ui.basic.Image;this._downbutton.setAppearance($[959]);this._downbutton.setHeight($[138]);this._buttonlayout.add(this._downbutton);this._timer=new qx.client.Timer(this.getInterval());this.setManager(new qx.util.range.Range());this.initWrap();this.addEventListener($[40],this._onkeypress,this);this.addEventListener($[16],this._onkeydown,this);this.addEventListener($[88],this._onkeyup,this);this.addEventListener($[184],this._onmousewheel,this);this._textfield.addEventListener($[124],this._ontextchange,this);this._textfield.addEventListener($[89],this._oninput,this);this._textfield.addEventListener($[199],this._onblur,this);this._upbutton.addEventListener($[12],this._onmousedown,this);this._downbutton.addEventListener($[12],this._onmousedown,this);this._timer.addEventListener($[85],this._oninterval,this);if($0!=null){this.setMin($0);}if($2!=null){this.setMax($2);}if($1!=null){this.setValue($1);}this._checkValue=this.__checkValue;this._numberFormat=null;this.initWidth();this.initHeight();this._last_value=$[0];},events:{"change":$[98]},properties:{appearance:{refine:true,init:$[1340]},width:{refine:true,init:60},height:{refine:true,init:22},incrementAmount:{check:$[19],init:1,apply:$[822]},wheelIncrementAmount:{check:$[19],init:1},pageIncrementAmount:{check:$[19],init:10},interval:{check:$[5],init:100},firstInterval:{check:$[5],init:500},minTimer:{check:$[5],init:20},timerDecrease:{check:$[5],init:2},amountGrowth:{check:$[19],init:1.01},wrap:{check:$[2],init:false,apply:$[271]},editable:{check:$[2],init:true,apply:$[320]},manager:{check:$[467],apply:$[189],dispose:true},checkValueFunction:{apply:$[795]},numberFormat:{check:$[691],apply:$[752]},selectTextOnInteract:{check:$[2],init:true}},members:{_applyIncrementAmount:function($0,$1){this._computedIncrementAmount=$0;},_applyEditable:function($0,$1){if(this._textfield){this._textfield.setReadOnly(!$0);}},_applyWrap:function($0,$1){this.getManager().setWrap($0);this._onchange();},_applyManager:function($0,$1){if($1){$1.removeEventListener($[107],this._onchange,this);}if($0){$0.addEventListener($[107],this._onchange,this);}this._onchange();},_applyCheckValueFunction:function($0,$1){this._checkValue=$0;},_applyNumberFormat:function($0,$1){this._numberFormat=$0;this.getManager().setPrecision($0.getMaximumFractionDigits());this._onchange();},_computePreferredInnerWidth:function(){return 50;},_computePreferredInnerHeight:function(){return 14;},_onkeypress:function($0){var $1=$0.getKeyIdentifier();if($1==$[46]&&!$0.isAltPressed()){this._checkValue(true,false);if(this.getSelectTextOnInteract()){this._textfield.selectAll();}}else{switch($1){case $[69]:case $[76]:case $[60]:case $[64]:case $[142]:case $[125]:case $[136]:case $[129]:case $[169]:case $[191]:case $[203]:case $[150]:case $[162]:case $[87]:case $[99]:case $[127]:case $[188]:break;default:if(($1>=$[41]&&$1<=$[172])||($1==$[1028])){return;}if(this._numberFormat){var $2=this._numberFormat._locale;if(($1==qx.locale.Number.getGroupSeparator($2))||($1==qx.locale.Number.getDecimalSeparator($2)))return;}if($0.getModifiers()==0){$0.preventDefault();}}}},_onkeydown:function($0){var $1=$0.getKeyIdentifier();if(this._intervalIncrease==null){switch($1){case $[69]:case $[76]:this._intervalIncrease=$1==$[69];this._intervalMode=$[904];this._resetIncrements();this._checkValue(true,false);this._increment();this._timer.startWith(this.getFirstInterval());break;case $[87]:case $[99]:this._intervalIncrease=$1==$[87];this._intervalMode=$[424];this._resetIncrements();this._checkValue(true,false);this._pageIncrement();this._timer.startWith(this.getFirstInterval());break;}}},_onkeyup:function($0){if(this._intervalIncrease!=null){switch($0.getKeyIdentifier()){case $[69]:case $[76]:case $[87]:case $[99]:this._timer.stop();this._intervalIncrease=null;this._intervalMode=null;}}},_onmousedown:function($0){if(!$0.isLeftButtonPressed()){return;}this._checkValue(true);var $1=$0.getCurrentTarget();$1.addState($[14]);$1.addEventListener($[22],this._onmouseup,this);$1.addEventListener($[105],this._onmouseup,this);this._intervalIncrease=$1==this._upbutton;this._resetIncrements();this._increment();if(this.getSelectTextOnInteract()){this._textfield.selectAll();}this._timer.setInterval(this.getFirstInterval());this._timer.start();},_onmouseup:function($0){var $1=$0.getCurrentTarget();$1.removeState($[14]);$1.removeEventListener($[22],this._onmouseup,this);$1.removeEventListener($[105],this._onmouseup,this);if(this.getSelectTextOnInteract()){this._textfield.selectAll();}this._textfield.setFocused(true);this._timer.stop();this._intervalIncrease=null;},_onmousewheel:function($0){this._checkValue(true);if(this.getManager().incrementValue){this.getManager().incrementValue(this.getWheelIncrementAmount()*$0.getWheelDelta());}else{var $1=this.getManager().getValue()+(this.getWheelIncrementAmount()*$0.getWheelDelta());$1=this.getManager().limit($1);this.getManager().setValue($1);}this._textfield.selectAll();},_ontextchange:function($0){this._last_value=$0.getOldValue();},_oninput:function($0){this._checkValue(true,true);},_onchange:function($0){var $1=this.getManager().getValue();if(this._numberFormat){this._textfield.setValue(this._numberFormat.format($1));}else{this._textfield.setValue(String($1));}if($1==this.getMin()&&!this.getWrap()){this._downbutton.removeState($[14]);this._downbutton.setEnabled(false);this._timer.stop();}else{this._downbutton.resetEnabled();}if($1==this.getMax()&&!this.getWrap()){this._upbutton.removeState($[14]);this._upbutton.setEnabled(false);this._timer.stop();}else{this._upbutton.resetEnabled();}this.createDispatchDataEvent($[107],$1);},_onblur:function($0){this._checkValue(false);},setValue:function($0){this.getManager().setValue(this.getManager().limit($0));},getValue:function(){this._checkValue(true);return this.getManager().getValue();},resetValue:function(){this.getManager().resetValue();},setMax:function($0){return this.getManager().setMax($0);},getMax:function(){return this.getManager().getMax();},setMin:function($0){return this.getManager().setMin($0);},getMin:function(){return this.getManager().getMin();},_intervalIncrease:null,_oninterval:function($0){this._timer.stop();this.setInterval(Math.max(this.getMinTimer(),this.getInterval()-this.getTimerDecrease()));if(this._intervalMode==$[424]){this._pageIncrement();}else{if(this.getInterval()==this.getMinTimer()){this._computedIncrementAmount=this.getAmountGrowth()*this._computedIncrementAmount;}this._increment();}var $1=this.getManager().getWrap();switch(this._intervalIncrease){case true:if(this.getValue()==this.getMax()&&!$1){return;}case false:if(this.getValue()==this.getMin()&&!$1){return;}}this._timer.restartWith(this.getInterval());},__checkValue:function($0,$1){var $2=this._textfield.getInputElement();if(!$2){return;}if(($2.value==$[0])||($2.value==$[137])){if(!$0){this.resetValue();return;}}else{var $3=$2.value;var $4;if(this._numberFormat){var $5=qx.lang.String.escapeRegexpChars(qx.locale.Number.getGroupSeparator(this._numberFormat._locale)+$[0]);var $6=qx.lang.String.escapeRegexpChars(qx.locale.Number.getDecimalSeparator(this._numberFormat._locale)+$[0]);$4=$3.replace(new RegExp($6),$[24]);$4=$4.replace(new RegExp($5,$[289]),$[0]);}else{$4=$3;}var $7=parseFloat($4);var $8=this.getManager().limit($7);var $9=this.getManager().getValue();var $a=$8;if(isNaN($7)||($8!=$7)||($7!=$4)){if($1){this._textfield.setValue(this._last_value);}else{if(isNaN($8)){$a=$9;}else{$a=$8;}}}if($1)return;var $b;if(this._numberFormat){$b=this._numberFormat.format($a);}else{$b=String($a);}if(($a===$9)&&($3!==$b)){this._textfield.setValue($b);}this.getManager().setValue($a);}},_increment:function(){if(this.getManager().incrementValue){this.getManager().incrementValue((this._intervalIncrease?1:-1)*this._computedIncrementAmount);}else{var $0=this.getManager().getValue()+((this._intervalIncrease?1:-1)*this._computedIncrementAmount);$0=this.getManager().limit($0);this.getManager().setValue($0);}},_pageIncrement:function(){if(this.getManager().pageIncrementValue){this.getManager().pageIncrementValue();}else{var $0=this.getManager().getValue()+((this._intervalIncrease?1:-1)*this.getPageIncrementAmount());$0=this.getManager().limit($0);this.getManager().setValue($0);}},_resetIncrements:function(){this._computedIncrementAmount=this.getIncrementAmount();this.resetInterval();}},destruct:function(){var $0=this.getManager();if($0){$0.dispose();}this._disposeObjects($[1660],$[753],$[1136],$[1738],$[284]);}});
154
qx.Class.define($[667],{extend:qx.ui.layout.HorizontalBoxLayout,construct:function(){arguments.callee.base.call(this);var $0=this._list=new qx.ui.form.List;$0.setAppearance($[1629]);$0.setTabIndex(-1);$0.setEdge(0);var $1=this._manager=this._list.getManager();$1.setMultiSelection(false);$1.setDragSelection(false);var $2=this._popup=new qx.ui.popup.Popup;$2.setAppearance($[907]);$2.setRestrictToPageLeft(-100000);$2.setRestrictToPageRight(-100000);$2.setAutoHide(false);$2.setHeight($[3]);$2.add($0);var $3=this._field=new qx.ui.form.TextField;$3.setAppearance($[1528]);$3.setTabIndex(-1);$3.setWidth($[138]);$3.setAllowStretchY(true);$3.setHeight(null);this.add($3);var $4=this._button=new qx.ui.basic.Atom;$4.setAppearance($[1076]);$4.setAllowStretchY(true);$4.setTabIndex(-1);$4.setHeight(null);this.add($4);this.addEventListener($[12],this._onmousedown);this.addEventListener($[22],this._onmouseup);this.addEventListener($[53],this._onclick);this.addEventListener($[61],this._onmouseover);this.addEventListener($[184],this._onmousewheel);this.addEventListener($[16],this._onkeydown);this.addEventListener($[40],this._onkeypress);this.addEventListener($[300],this._onkeyinput);this.addEventListener($[402],this._onbeforedisappear);this._popup.addEventListener($[193],this._onpopupappear,this);this._field.addEventListener($[89],this._oninput,this);qx.locale.Manager.getInstance().addEventListener($[220],this._onlocalechange,this);var $5=qx.ui.core.ClientDocument.getInstance();$5.addEventListener($[283],this._testClosePopup,this);this.remapChildrenHandlingTo($0);this.initEditable();this.initTabIndex();this.initWidth();this.initHeight();this.initMinWidth();},events:{"beforeInitialOpen":$[4]},properties:{appearance:{refine:true,init:$[1521]},allowStretchY:{refine:true,init:false},width:{refine:true,init:120},height:{refine:true,init:$[3]},minWidth:{refine:true,init:40},tabIndex:{refine:true,init:1},editable:{check:$[2],apply:$[320],event:$[794],init:false},selected:{check:$[495],nullable:true,apply:$[267],event:$[261]},value:{check:$[6],nullable:true,apply:$[209],event:$[124]},pagingInterval:{check:$[5],init:10}},members:{getManager:function(){return this._manager;},getPopup:function(){return this._popup;},getList:function(){return this._list;},getField:function(){return this._field;},getButton:function(){return this._button;},_applySelected:function($0,$1){this._fromSelected=true;if(!this._fromValue){this.setValue($0?$0.getLabel().toString():$[0]);}this._manager.setLeadItem($0);this._manager.setAnchorItem($0);if($0){this._manager.setSelectedItem($0);}else{this._manager.deselectAll();}delete this._fromSelected;},_applyValue:function($0,$1){this._fromValue=true;if(!this._fromInput){if(this._field.getValue()==$0){this._field.setValue(null);}this._field.setValue($0);}delete this._fromValue;},_applyEditable:function($0,$1){var $2=this._field;$2.setReadOnly(!$0);$2.setCursor($0?null:$[295]);$2.setSelectable($0);},_oldSelected:null,_openPopup:function(){var $0=this._popup;var $1=this.getElement();if(!$0.isCreated()){this.createDispatchEvent($[1676]);}if(this._list.getChildrenLength()==0){return;}$0.positionRelativeTo($1,1,qx.html.Dimension.getBoxHeight($1));$0.setWidth(this.getBoxWidth()-2);$0.setParent(this.getTopLevelWidget());$0.show();this._oldSelected=this.getSelected();this.setCapture(true);},_closePopup:function(){this._popup.hide();this.setCapture(false);},_testClosePopup:function(){if(this._popup.isSeeable()){this._closePopup();}},_togglePopup:function(){this._popup.isSeeable()?this._closePopup():this._openPopup();},_onpopupappear:function($0){var $1=this.getSelected();if($1){$1.scrollIntoView();}},_oninput:function($0){this._fromInput=true;this.setValue(this._field.getComputedValue());var $1=this.getSelected();if($1&&$1.getLabel()!=this.getValue()){this.resetSelected();}delete this._fromInput;},_onbeforedisappear:function($0){this._testClosePopup();},_onlocalechange:function($0){var $1=this.getSelected();this._applySelected($1,$1);},_onmousedown:function($0){if(!$0.isLeftButtonPressed()){return;}var $1=$0.getTarget();switch($1){case this._field:if(this.getEditable()){break;}case this._button:this._button.addState($[14]);this._togglePopup();this.setCapture(true);break;default:break;}$0.stopPropagation();},_onclick:function($0){if(!$0.isLeftButtonPressed()){return;}var $1=$0.getTarget();switch($1){case this._field:case this._button:case this:case this._list:break;default:if($1 instanceof qx.ui.form.ListItem&&$1.getParent()==this._list){this._list._onmousedown($0);this.setSelected(this._list.getSelectedItem());this._closePopup();this.setFocused(true);}else if(this._popup.isSeeable()){this._popup.hide();this.setCapture(false);}}},_onmouseup:function($0){this._button.removeState($[14]);if(!this._popup.isSeeable()){this.setCapture(false);}},_onmouseover:function($0){var $1=$0.getTarget();if($1 instanceof qx.ui.form.ListItem){var $2=this._manager;$2.deselectAll();$2.setLeadItem($1);$2.setAnchorItem($1);$2.setSelectedItem($1);}},_onmousewheel:function($0){if(!this._popup.isSeeable()){var $1;var $2=this.getSelected();if($0.getWheelDelta()<0){$1=$2?this._manager.getNext($2):this._manager.getFirst();}else{$1=$2?this._manager.getPrevious($2):this._manager.getLast();}if($1){this.setSelected($1);}}else{var $3=$0.getTarget();if($3!=this&&$3.getParent()!=this._list){this._popup.hide();this.setCapture(false);}}},_onkeydown:function($0){var $1=this._manager;var $2=this._popup.isSeeable();switch($0.getKeyIdentifier()){case $[46]:if($2){this.setSelected(this._manager.getSelectedItem());this._closePopup();this.setFocused(true);}else{this._openPopup();}$0.stopPropagation();return;case $[129]:if($2){$1.setLeadItem(this._oldSelected);$1.setAnchorItem(this._oldSelected);$1.setSelectedItem(this._oldSelected);this._field.setValue(this._oldSelected?this._oldSelected.getLabel():$[0]);this._closePopup();this.setFocused(true);$0.stopPropagation();}return;case $[76]:if($0.isAltPressed()){this._togglePopup();return;}break;}},_onkeypress:function($0){var $1=this._popup.isSeeable();var $2=this._manager;switch($0.getKeyIdentifier()){case $[88]:if(!$1){var $3;var $4=this.getSelected();if($4){var $5=this.getPagingInterval();do{$3=$4;}while(--$5&&($4=$2.getPrevious($3)));}else{$3=$2.getLast();}this.setSelected($3);return;}break;case $[99]:if(!$1){var $6;var $4=this.getSelected();if($4){var $5=this.getPagingInterval();do{$6=$4;}while(--$5&&($4=$2.getNext($6)));}else{$6=$2.getFirst();}this.setSelected($6||null);return;}break;}if(!this.isEditable()||$1){this._list._onkeypress($0);}},_onkeyinput:function($0){var $1=this._popup.isSeeable();if(!this.isEditable()||$1){this._list._onkeyinput($0);}},_visualizeBlur:function(){this.getField()._visualizeBlur();this.removeState($[224]);},_visualizeFocus:function(){this.getField()._visualizeFocus();this.getField().selectAll();this.addState($[224]);}},destruct:function(){if(this._popup&&!qx.core.Object.inGlobalDispose()){this._popup.setParent(null);}var $0=qx.ui.core.ClientDocument.getInstance();$0.removeEventListener($[283],this._testClosePopup,this);var $1=qx.locale.Manager.getInstance();$1.removeEventListener($[220],this._onlocalechange,this);this._disposeObjects($[1214],$[336],$[213],$[946],$[1505]);}});
155
qx.Class.define($[556],{extend:qx.ui.basic.Terminator,construct:function($0){arguments.callee.base.call(this);if($0!=null){this.setValue($0);}this.initHideFocus();this.initWidth();this.initHeight();this.initTabIndex();this.initSpellCheck();this.__oninput=qx.lang.Function.bindEvent(this._oninputDom,this);this.addEventListener($[199],this._onblur);this.addEventListener($[236],this._onfocus);this.addEventListener($[89],this._oninput);this.addEventListener($[16],this._onkeydown);},statics:{createRegExpValidator:function($0){return function($1){return $0.test($1);};}},events:{"input":$[98]},properties:{allowStretchX:{refine:true,init:true},allowStretchY:{refine:true,init:false},appearance:{refine:true,init:$[567]},tabIndex:{refine:true,init:1},hideFocus:{refine:true,init:true},width:{refine:true,init:$[3]},height:{refine:true,init:$[3]},selectable:{refine:true,init:true},value:{init:$[0],nullable:true,event:$[124],apply:$[209],dispose:true},textAlign:{check:[$[11],$[57],$[9],$[264]],nullable:true,themeable:true,apply:$[287]},spellCheck:{check:$[2],init:false,apply:$[1389]},liveUpdate:{check:$[2],init:false},maxLength:{check:$[5],apply:$[942],nullable:true},readOnly:{check:$[2],apply:$[820],init:false},validator:{check:$[471],event:$[1324],nullable:true}},members:{_inputTag:$[89],_inputType:$[254],_inputOverflow:$[36],_applyElement:function($0,$1){arguments.callee.base.call(this,$0,$1);if($0){var $2=this._inputElement=document.createElement(this._inputTag);if(this._inputType){$2.type=this._inputType;}$2.autoComplete=$[55];$2.setAttribute($[611],$[55]);$2.disabled=this.getEnabled()===false;$2.readOnly=this.getReadOnly();$2.value=this.getValue()?this.getValue():$[0];if(this.getMaxLength()!=null){$2.maxLength=this.getMaxLength();}var $3=$2.style;$3.padding=$3.margin=0;$3.border=$[425];$3.background=$[819];$3.overflow=this._inputOverflow;$3.outline=$[7];$3.resize=$[7];$3.WebkitAppearance=$[7];$3.MozAppearance=$[7];if(qx.core.Variant.isSet($[1],$[351])){$3.margin=$[1413];}this._renderFont();this._renderTextColor();this._renderTextAlign();this._renderCursor();this._renderSpellCheck();if(qx.core.Variant.isSet($[1],$[13])){$2.onpropertychange=this.__oninput;}else{$2.addEventListener($[89],this.__oninput,false);}$0.appendChild($2);}},_postApply:function(){this._syncFieldWidth();this._syncFieldHeight();},_changeInnerWidth:function($0,$1){this._syncFieldWidth();},_changeInnerHeight:function($0,$1){this._syncFieldHeight();},_syncFieldWidth:function(){this._inputElement.style.width=this.getInnerWidth()+$[38];},_syncFieldHeight:function(){this._inputElement.style.height=(this.getInnerHeight()-2)+$[38];},_applyCursor:function($0,$1){if(this._inputElement){this._renderCursor();}},_renderCursor:function(){var $0=this._inputElement.style;var $1=this.getCursor();if($1){if($1==$[292]&&qx.core.Client.getInstance().isMshtml()){$0.cursor=$[204];}else{$0.cursor=$1;}}else{$0.cursor=$[0];}},_applyTextAlign:function($0,$1){if(this._inputElement){this._renderTextAlign();}},_renderTextAlign:function(){this._inputElement.style.textAlign=this.getTextAlign()||$[0];},_applySpellCheck:function($0,$1){if(this._inputElement){this._renderSpellCheck();}},_renderSpellCheck:function(){this._inputElement.spellcheck=this.getSpellCheck();},_applyEnabled:function($0,$1){if(this._inputElement){this._inputElement.disabled=$0===false;}return arguments.callee.base.call(this,$0,$1);},_applyValue:function($0,$1){this._inValueProperty=true;if(this._inputElement){if($0===null){$0=$[0];}if(this._inputElement.value!==$0){this._inputElement.value=$0;}}delete this._inValueProperty;},_applyMaxLength:function($0,$1){if(this._inputElement){this._inputElement.maxLength=$0==null?$[0]:$0;}},_applyReadOnly:function($0,$1){if(this._inputElement){this._inputElement.readOnly=$0;}if($0){this.addState($[500]);}else{this.removeState($[500]);}},_applyTextColor:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._styleTextColor,this,$0);},_styleTextColor:function($0){this.__textColor=$0;this._renderTextColor();},_renderTextColor:function(){var $0=this._inputElement;if($0){$0.style.color=this.__textColor||$[0];}},_applyFont:function($0,$1){qx.theme.manager.Font.getInstance().connect(this._styleFont,this,$0);},_styleFont:function($0){this.__font=$0;this._renderFont();},_renderFont:function(){var $0=this._inputElement;if($0){var $1=this.__font;$1?$1.renderElement($0):qx.ui.core.Font.resetElement($0);}},_visualizeFocus:function(){arguments.callee.base.call(this);if(!qx.event.handler.FocusHandler.mouseFocus&&this.getEnableElementFocus()){try{this._inputElement.focus();}catch(ex){}}},_visualizeBlur:function(){arguments.callee.base.call(this);if(!qx.event.handler.FocusHandler.mouseFocus){try{this._inputElement.blur();}catch(ex){}}},getComputedValue:function(){if(this._inputElement){return this._inputElement.value;}return this.getValue();},getInputElement:function(){return this._inputElement||null;},isValid:function(){var $0=this.getValidator();return !$0||$0(this.getValue());},isComputedValid:function(){var $0=this.getValidator();return !$0||$0(this.getComputedValue());},_computePreferredInnerWidth:function(){return 120;},_computePreferredInnerHeight:function(){return 16;},_ieFirstInputFix:qx.core.Variant.select($[1],{"mshtml":function(){this._inValueProperty=true;this._inputElement.value=this.getValue()===null?$[0]:this.getValue();this._firstInputFixApplied=true;delete this._inValueProperty;},"default":null}),_afterAppear:qx.core.Variant.select($[1],{"mshtml":function(){arguments.callee.base.call(this);if(!this._firstInputFixApplied&&this._inputElement){qx.client.Timer.once(this._ieFirstInputFix,this,1);}},"default":function(){arguments.callee.base.call(this);}}),_firstInputFixApplied:false,_textOnFocus:null,_oninputDom:qx.core.Variant.select($[1],{"mshtml":function($0){if(!this._inValueProperty&&$0.propertyName===$[255]){this.createDispatchDataEvent($[89],this.getComputedValue());}},"default":function($0){this.createDispatchDataEvent($[89],this.getComputedValue());}}),_ontabfocus:function(){this.selectAll();},_onfocus:function(){this._textOnFocus=this.getComputedValue();},_onblur:function(){var $0=this.getComputedValue().toString();if(this._textOnFocus!=$0){this.setValue($0);}if(this.getParent()!=null){this.setSelectionLength(0);}},_oninput:function(){if(!this.isLiveUpdate()){return;}var $0=this.getComputedValue().toString();this.setValue($0);},_onkeydown:function($0){if($0.getKeyIdentifier()==$[191]&&this.getReadOnly()){$0.preventDefault();}},__getRange:qx.core.Variant.select($[1],{"mshtml":function(){this._visualPropertyCheck();return this._inputElement.createTextRange();},"default":null}),__getSelectionRange:qx.core.Variant.select($[1],{"mshtml":function(){this._visualPropertyCheck();return this.getTopLevelWidget().getDocumentElement().selection.createRange();},"default":null}),setSelectionStart:qx.core.Variant.select($[1],{"mshtml":function($0){this._visualPropertyCheck();var $1=this._inputElement.value;var $2=0;while($2<$0){$2=$1.indexOf($[535],$2);if($2==-1){break;}$0--;$2++;}var $3=this.__getRange();$3.collapse();$3.move($[394],$0);$3.select();},"default":function($0){this._visualPropertyCheck();this._inputElement.selectionStart=$0;}}),getSelectionStart:qx.core.Variant.select($[1],{"mshtml":function(){this._visualPropertyCheck();var $0=this.__getSelectionRange();if(!this._inputElement.contains($0.parentElement())){return -1;}var $1=this.__getRange();var $2=this._inputElement.value.length;$1.moveToBookmark($0.getBookmark());$1.moveEnd($[817],$2);return $2-$1.text.length;},"default":function(){this._visualPropertyCheck();return this._inputElement.selectionStart;}}),setSelectionLength:qx.core.Variant.select($[1],{"mshtml":function($0){this._visualPropertyCheck();var $1=this.__getSelectionRange();if(!this._inputElement.contains($1.parentElement())){return;}$1.collapse();$1.moveEnd($[394],$0);$1.select();},"default":function($0){this._visualPropertyCheck();var $1=this._inputElement;if(qx.util.Validation.isValidString($1.value)&&this.getVisibility()){$1.selectionEnd=$1.selectionStart+$0;}}}),getSelectionLength:qx.core.Variant.select($[1],{"mshtml":function(){this._visualPropertyCheck();var $0=this.__getSelectionRange();if(!this._inputElement.contains($0.parentElement())){return 0;}return $0.text.length;},"default":function(){this._visualPropertyCheck();var $0=this._inputElement;return $0.selectionEnd-$0.selectionStart;}}),setSelectionText:qx.core.Variant.select($[1],{"mshtml":function($0){this._visualPropertyCheck();var $1=this.getSelectionStart();var $2=this.__getSelectionRange();if(!this._inputElement.contains($2.parentElement())){return;}$2.text=$0;this.setValue(this._inputElement.value);this.setSelectionStart($1);this.setSelectionLength($0.length);},"default":function($0){this._visualPropertyCheck();var $1=this._inputElement;var $2=$1.value;var $3=$1.selectionStart;var $4=$2.substr(0,$3);var $5=$2.substr($1.selectionEnd);var $6=$1.value=$4+$0+$5;$1.selectionStart=$3;$1.selectionEnd=$3+$0.length;this.setValue($6);}}),getSelectionText:qx.core.Variant.select($[1],{"mshtml":function(){this._visualPropertyCheck();var $0=this.__getSelectionRange();if(!this._inputElement.contains($0.parentElement())){return $[0];}return $0.text;},"default":function(){this._visualPropertyCheck();return this._inputElement.value.substr(this.getSelectionStart(),this.getSelectionLength());}}),selectAll:function(){this._visualPropertyCheck();if(this.getValue()!=null){this.setSelectionStart(0);this.setSelectionLength(this._inputElement.value.length);}this._inputElement.select();this._inputElement.focus();},selectFromTo:qx.core.Variant.select($[1],{"mshtml":function($0,$1){this._visualPropertyCheck();this.setSelectionStart($0);this.setSelectionLength($1-$0);},"default":function($0,$1){this._visualPropertyCheck();var $2=this._inputElement;$2.selectionStart=$0;$2.selectionEnd=$1;}})},destruct:function(){if(this._inputElement){if(qx.core.Variant.isSet($[1],$[13])){this._inputElement.onpropertychange=null;}else{this._inputElement.removeEventListener($[89],this.__oninput,false);}}this._disposeFields($[1684],$[1325],$[1388]);}});
155
qx.Class.define($[1626],{extend:qx.ui.layout.VerticalBoxLayout,construct:function(){arguments.callee.base.call(this);this._manager=new qx.ui.selection.SelectionManager(this);this.addEventListener($[61],this._onmouseover);this.addEventListener($[12],this._onmousedown);this.addEventListener($[22],this._onmouseup);this.addEventListener($[53],this._onclick);this.addEventListener($[104],this._ondblclick);this.addEventListener($[16],this._onkeydown);this.addEventListener($[40],this._onkeypress);this.addEventListener($[300],this._onkeyinput);this.initOverflow();this.initTabIndex();},properties:{appearance:{refine:true,init:$[687]},overflow:{refine:true,init:$[36]},tabIndex:{refine:true,init:1},enableInlineFind:{check:$[2],init:true},markLeadingItem:{check:$[2],init:false}},members:{_pressedString:$[0],getManager:function(){return this._manager;},getListItemTarget:function($0){while($0!=null&&$0.getParent()!=this){$0=$0.getParent();}return $0;},getSelectedItem:function(){return this.getSelectedItems()[0]||null;},getSelectedItems:function(){return this._manager.getSelectedItems();},_onmouseover:function($0){var $1=this.getListItemTarget($0.getTarget());if($1){this._manager.handleMouseOver($1,$0);}},_onmousedown:function($0){var $1=this.getListItemTarget($0.getTarget());if($1){this._manager.handleMouseDown($1,$0);}},_onmouseup:function($0){var $1=this.getListItemTarget($0.getTarget());if($1){this._manager.handleMouseUp($1,$0);}},_onclick:function($0){var $1=this.getListItemTarget($0.getTarget());if($1){this._manager.handleClick($1,$0);}},_ondblclick:function($0){var $1=this.getListItemTarget($0.getTarget());if($1){this._manager.handleDblClick($1,$0);}},_onkeydown:function($0){if($0.getKeyIdentifier()==$[46]&&!$0.isAltPressed()){var $1=this.getSelectedItems();for(var $2=0;$2<$1.length;$2++){$1[$2].createDispatchEvent($[1554]);}}},_onkeypress:function($0){this._manager.handleKeyPress($0);},_lastKeyPress:0,_onkeyinput:function($0){if(!this.getEnableInlineFind()){return;}if(((new Date).valueOf()-this._lastKeyPress)>1000){this._pressedString=$[0];}this._pressedString+=String.fromCharCode($0.getCharCode());var $1=this.findString(this._pressedString,null);if($1){var $2=this._manager._getChangeValue();var $3=this._manager.getFireChange();this._manager.setFireChange(false);this._manager._deselectAll();this._manager.setItemSelected($1,true);this._manager.setAnchorItem($1);this._manager.setLeadItem($1);$1.scrollIntoView();this._manager.setFireChange($3);if($3&&this._manager._hasChanged($2)){this._manager._dispatchChange();}}this._lastKeyPress=(new Date).valueOf();$0.preventDefault();},_findItem:function($0,$1,$2){var $3=this.getChildren();if($1==null){$1=$3.indexOf(this.getSelectedItem());if($1==-1){$1=0;}}var $4=$[586]+$2;for(var $5=$1;$5<$3.length;$5++){if($3[$5][$4]($0)){return $3[$5];}}for(var $5=0;$5<$1;$5++){if($3[$5][$4]($0)){return $3[$5];}}return null;},findString:function($0,$1){return this._findItem($0,$1||0,$[6]);},findStringExact:function($0,$1){return this._findItem($0,$1||0,$[1705]);},findValue:function($0,$1){return this._findItem($0,$1||0,$[365]);},findValueExact:function($0,$1){return this._findItem($0,$1||0,$[855]);},_sortItemsCompare:function($0,$1){return $0.key<$1.key?-1:$0.key==$1.key?0:1;},sortItemsByString:function($0){var $1=[];var $2=this.getChildren();for(var $3=0,$4=$2.length;$3<$4;$3++){$1[$3]={key:$2[$3].getLabel(),item:$2[$3]};}$1.sort(this._sortItemsCompare);if($0){$1.reverse();}for(var $3=0;$3<$4;$3++){this.addAt($1[$3].item,$3);}},sortItemsByValue:function($0){var $1=[];var $2=this.getChildren();for(var $3=0,$4=$2.length;$3<$4;$3++){$1[$3]={key:$2[$3].getValue(),item:$2[$3]};}$1.sort(this._sortItemsCompare);if($0){$1.reverse();}for(var $3=0;$3<$4;$3++){this.addAt($1[$3].item,$3);}}},destruct:function(){this._disposeObjects($[213]);}});
156
qx.Interface.define($[467],{properties:{value:{},min:{},max:{},wrap:{}},members:{limit:function($0){return true;}}});
156
qx.Class.define($[556],{extend:qx.ui.basic.Terminator,construct:function($0){arguments.callee.base.call(this);if($0!=null){this.setValue($0);}this.initHideFocus();this.initWidth();this.initHeight();this.initTabIndex();this.initSpellCheck();this.__oninput=qx.lang.Function.bindEvent(this._oninputDom,this);this.addEventListener($[199],this._onblur);this.addEventListener($[236],this._onfocus);this.addEventListener($[89],this._oninput);this.addEventListener($[16],this._onkeydown);},statics:{createRegExpValidator:function($0){return function($1){return $0.test($1);};}},events:{"input":$[98]},properties:{allowStretchX:{refine:true,init:true},allowStretchY:{refine:true,init:false},appearance:{refine:true,init:$[567]},tabIndex:{refine:true,init:1},hideFocus:{refine:true,init:true},width:{refine:true,init:$[3]},height:{refine:true,init:$[3]},selectable:{refine:true,init:true},value:{init:$[0],nullable:true,event:$[124],apply:$[209],dispose:true},textAlign:{check:[$[11],$[57],$[9],$[264]],nullable:true,themeable:true,apply:$[287]},spellCheck:{check:$[2],init:false,apply:$[1390]},liveUpdate:{check:$[2],init:false},maxLength:{check:$[5],apply:$[941],nullable:true},readOnly:{check:$[2],apply:$[821],init:false},validator:{check:$[472],event:$[1323],nullable:true}},members:{_inputTag:$[89],_inputType:$[254],_inputOverflow:$[36],_applyElement:function($0,$1){arguments.callee.base.call(this,$0,$1);if($0){var $2=this._inputElement=document.createElement(this._inputTag);if(this._inputType){$2.type=this._inputType;}$2.autoComplete=$[55];$2.setAttribute($[611],$[55]);$2.disabled=this.getEnabled()===false;$2.readOnly=this.getReadOnly();$2.value=this.getValue()?this.getValue():$[0];if(this.getMaxLength()!=null){$2.maxLength=this.getMaxLength();}var $3=$2.style;$3.padding=$3.margin=0;$3.border=$[426];$3.background=$[820];$3.overflow=this._inputOverflow;$3.outline=$[7];$3.resize=$[7];$3.WebkitAppearance=$[7];$3.MozAppearance=$[7];if(qx.core.Variant.isSet($[1],$[350])){$3.margin=$[1414];}this._renderFont();this._renderTextColor();this._renderTextAlign();this._renderCursor();this._renderSpellCheck();if(qx.core.Variant.isSet($[1],$[13])){$2.onpropertychange=this.__oninput;}else{$2.addEventListener($[89],this.__oninput,false);}$0.appendChild($2);}},_postApply:function(){this._syncFieldWidth();this._syncFieldHeight();},_changeInnerWidth:function($0,$1){this._syncFieldWidth();},_changeInnerHeight:function($0,$1){this._syncFieldHeight();},_syncFieldWidth:function(){this._inputElement.style.width=this.getInnerWidth()+$[38];},_syncFieldHeight:function(){this._inputElement.style.height=(this.getInnerHeight()-2)+$[38];},_applyCursor:function($0,$1){if(this._inputElement){this._renderCursor();}},_renderCursor:function(){var $0=this._inputElement.style;var $1=this.getCursor();if($1){if($1==$[292]&&qx.core.Client.getInstance().isMshtml()){$0.cursor=$[204];}else{$0.cursor=$1;}}else{$0.cursor=$[0];}},_applyTextAlign:function($0,$1){if(this._inputElement){this._renderTextAlign();}},_renderTextAlign:function(){this._inputElement.style.textAlign=this.getTextAlign()||$[0];},_applySpellCheck:function($0,$1){if(this._inputElement){this._renderSpellCheck();}},_renderSpellCheck:function(){this._inputElement.spellcheck=this.getSpellCheck();},_applyEnabled:function($0,$1){if(this._inputElement){this._inputElement.disabled=$0===false;}return arguments.callee.base.call(this,$0,$1);},_applyValue:function($0,$1){this._inValueProperty=true;if(this._inputElement){if($0===null){$0=$[0];}if(this._inputElement.value!==$0){this._inputElement.value=$0;}}delete this._inValueProperty;},_applyMaxLength:function($0,$1){if(this._inputElement){this._inputElement.maxLength=$0==null?$[0]:$0;}},_applyReadOnly:function($0,$1){if(this._inputElement){this._inputElement.readOnly=$0;}if($0){this.addState($[501]);}else{this.removeState($[501]);}},_applyTextColor:function($0,$1){qx.theme.manager.Color.getInstance().connect(this._styleTextColor,this,$0);},_styleTextColor:function($0){this.__textColor=$0;this._renderTextColor();},_renderTextColor:function(){var $0=this._inputElement;if($0){$0.style.color=this.__textColor||$[0];}},_applyFont:function($0,$1){qx.theme.manager.Font.getInstance().connect(this._styleFont,this,$0);},_styleFont:function($0){this.__font=$0;this._renderFont();},_renderFont:function(){var $0=this._inputElement;if($0){var $1=this.__font;$1?$1.renderElement($0):qx.ui.core.Font.resetElement($0);}},_visualizeFocus:function(){arguments.callee.base.call(this);if(!qx.event.handler.FocusHandler.mouseFocus&&this.getEnableElementFocus()){try{this._inputElement.focus();}catch(ex){}}},_visualizeBlur:function(){arguments.callee.base.call(this);if(!qx.event.handler.FocusHandler.mouseFocus){try{this._inputElement.blur();}catch(ex){}}},getComputedValue:function(){if(this._inputElement){return this._inputElement.value;}return this.getValue();},getInputElement:function(){return this._inputElement||null;},isValid:function(){var $0=this.getValidator();return !$0||$0(this.getValue());},isComputedValid:function(){var $0=this.getValidator();return !$0||$0(this.getComputedValue());},_computePreferredInnerWidth:function(){return 120;},_computePreferredInnerHeight:function(){return 16;},_ieFirstInputFix:qx.core.Variant.select($[1],{"mshtml":function(){this._inValueProperty=true;this._inputElement.value=this.getValue()===null?$[0]:this.getValue();this._firstInputFixApplied=true;delete this._inValueProperty;},"default":null}),_afterAppear:qx.core.Variant.select($[1],{"mshtml":function(){arguments.callee.base.call(this);if(!this._firstInputFixApplied&&this._inputElement){qx.client.Timer.once(this._ieFirstInputFix,this,1);}},"default":function(){arguments.callee.base.call(this);}}),_firstInputFixApplied:false,_textOnFocus:null,_oninputDom:qx.core.Variant.select($[1],{"mshtml":function($0){if(!this._inValueProperty&&$0.propertyName===$[255]){this.createDispatchDataEvent($[89],this.getComputedValue());}},"default":function($0){this.createDispatchDataEvent($[89],this.getComputedValue());}}),_ontabfocus:function(){this.selectAll();},_onfocus:function(){this._textOnFocus=this.getComputedValue();},_onblur:function(){var $0=this.getComputedValue().toString();if(this._textOnFocus!=$0){this.setValue($0);}if(this.getParent()!=null){this.setSelectionLength(0);}},_oninput:function(){if(!this.isLiveUpdate()){return;}var $0=this.getComputedValue().toString();this.setValue($0);},_onkeydown:function($0){if($0.getKeyIdentifier()==$[191]&&this.getReadOnly()){$0.preventDefault();}},__getRange:qx.core.Variant.select($[1],{"mshtml":function(){this._visualPropertyCheck();return this._inputElement.createTextRange();},"default":null}),__getSelectionRange:qx.core.Variant.select($[1],{"mshtml":function(){this._visualPropertyCheck();return this.getTopLevelWidget().getDocumentElement().selection.createRange();},"default":null}),setSelectionStart:qx.core.Variant.select($[1],{"mshtml":function($0){this._visualPropertyCheck();var $1=this._inputElement.value;var $2=0;while($2<$0){$2=$1.indexOf($[535],$2);if($2==-1){break;}$0--;$2++;}var $3=this.__getRange();$3.collapse();$3.move($[395],$0);$3.select();},"default":function($0){this._visualPropertyCheck();this._inputElement.selectionStart=$0;}}),getSelectionStart:qx.core.Variant.select($[1],{"mshtml":function(){this._visualPropertyCheck();var $0=this.__getSelectionRange();if(!this._inputElement.contains($0.parentElement())){return -1;}var $1=this.__getRange();var $2=this._inputElement.value.length;$1.moveToBookmark($0.getBookmark());$1.moveEnd($[818],$2);return $2-$1.text.length;},"default":function(){this._visualPropertyCheck();return this._inputElement.selectionStart;}}),setSelectionLength:qx.core.Variant.select($[1],{"mshtml":function($0){this._visualPropertyCheck();var $1=this.__getSelectionRange();if(!this._inputElement.contains($1.parentElement())){return;}$1.collapse();$1.moveEnd($[395],$0);$1.select();},"default":function($0){this._visualPropertyCheck();var $1=this._inputElement;if(qx.util.Validation.isValidString($1.value)&&this.getVisibility()){$1.selectionEnd=$1.selectionStart+$0;}}}),getSelectionLength:qx.core.Variant.select($[1],{"mshtml":function(){this._visualPropertyCheck();var $0=this.__getSelectionRange();if(!this._inputElement.contains($0.parentElement())){return 0;}return $0.text.length;},"default":function(){this._visualPropertyCheck();var $0=this._inputElement;return $0.selectionEnd-$0.selectionStart;}}),setSelectionText:qx.core.Variant.select($[1],{"mshtml":function($0){this._visualPropertyCheck();var $1=this.getSelectionStart();var $2=this.__getSelectionRange();if(!this._inputElement.contains($2.parentElement())){return;}$2.text=$0;this.setValue(this._inputElement.value);this.setSelectionStart($1);this.setSelectionLength($0.length);},"default":function($0){this._visualPropertyCheck();var $1=this._inputElement;var $2=$1.value;var $3=$1.selectionStart;var $4=$2.substr(0,$3);var $5=$2.substr($1.selectionEnd);var $6=$1.value=$4+$0+$5;$1.selectionStart=$3;$1.selectionEnd=$3+$0.length;this.setValue($6);}}),getSelectionText:qx.core.Variant.select($[1],{"mshtml":function(){this._visualPropertyCheck();var $0=this.__getSelectionRange();if(!this._inputElement.contains($0.parentElement())){return $[0];}return $0.text;},"default":function(){this._visualPropertyCheck();return this._inputElement.value.substr(this.getSelectionStart(),this.getSelectionLength());}}),selectAll:function(){this._visualPropertyCheck();if(this.getValue()!=null){this.setSelectionStart(0);this.setSelectionLength(this._inputElement.value.length);}this._inputElement.select();this._inputElement.focus();},selectFromTo:qx.core.Variant.select($[1],{"mshtml":function($0,$1){this._visualPropertyCheck();this.setSelectionStart($0);this.setSelectionLength($1-$0);},"default":function($0,$1){this._visualPropertyCheck();var $2=this._inputElement;$2.selectionStart=$0;$2.selectionEnd=$1;}})},destruct:function(){if(this._inputElement){if(qx.core.Variant.isSet($[1],$[13])){this._inputElement.onpropertychange=null;}else{this._inputElement.removeEventListener($[89],this.__oninput,false);}}this._disposeFields($[1684],$[1324],$[1389]);}});
157
qx.Class.define($[1280],{extend:qx.core.Target,implement:[qx.util.range.IRange],events:{"change":$[4]},properties:{value:{check:$[1734],nullable:true,event:$[107],init:0},precision:{check:$[5],nullable:true,event:$[107],init:0},min:{check:$[19],apply:$[759],event:$[107],init:0},max:{check:$[19],apply:$[711],event:$[107],init:100},wrap:{check:$[2],init:false}},members:{_applyMax:function($0,$1){this.setValue(Math.min(this.getValue(),$0));},_applyMin:function($0,$1){this.setValue(Math.max(this.getValue(),$0));},limit:function($0){var $1=this.getPrecision();if($1!=null)var $2=Math.pow(10,$1);if(this.getWrap()){if($1!=null){var $0=Math.round($0*$2)/$2;}if($0<this.getMin()){return (this.getMax()-(this.getMin()-$0))+1;}if($0>this.getMax()){return (this.getMin()+($0-this.getMax()))-1;}}if($0<this.getMin()){return this.getMin();}if($0>this.getMax()){return this.getMax();}if($1!=null){return Math.round($0*$2)/$2;}else{return $0;}}}});
157
qx.Class.define($[495],{extend:qx.ui.basic.Atom,construct:function($0,$1,$2){arguments.callee.base.call(this,$0,$1);if($2!=null){this.setValue($2);}this.addEventListener($[104],this._ondblclick);this.initMinWidth();},events:{"action":$[4]},properties:{appearance:{refine:true,init:$[1589]},minWidth:{refine:true,init:$[3]},width:{refine:true,init:null},allowStretchX:{refine:true,init:true},value:{check:$[6],event:$[124]}},members:{handleStateChange:function(){if(this.hasState($[276])){this.setStyleProperty($[200],$[205]);this.setStyleProperty($[214],$[205]);}else{this.removeStyleProperty($[200]);this.setStyleProperty($[214],$[994]);}},_applyStateStyleFocus:function($0){},matchesString:function($0){$0=String($0);return $0!=$[0]&&this.getLabel().toString().toLowerCase().indexOf($0.toLowerCase())==0;},matchesStringExact:function($0){$0=String($0);return $0!=$[0]&&this.getLabel().toString().toLowerCase()==String($0).toLowerCase();},matchesValue:function($0){$0=String($0);return $0!=$[0]&&this.getValue().toLowerCase().indexOf($0.toLowerCase())==0;},matchesValueExact:function($0){$0=String($0);return $0!=$[0]&&this.getValue().toLowerCase()==String($0).toLowerCase();},_ondblclick:function($0){var $1=this.getCommand();if($1){$1.execute();}}}});
158
qx.Class.define($[1627],{extend:qx.ui.layout.VerticalBoxLayout,construct:function(){arguments.callee.base.call(this);this._manager=new qx.ui.selection.SelectionManager(this);this.addEventListener($[61],this._onmouseover);this.addEventListener($[12],this._onmousedown);this.addEventListener($[22],this._onmouseup);this.addEventListener($[53],this._onclick);this.addEventListener($[104],this._ondblclick);this.addEventListener($[16],this._onkeydown);this.addEventListener($[40],this._onkeypress);this.addEventListener($[300],this._onkeyinput);this.initOverflow();this.initTabIndex();},properties:{appearance:{refine:true,init:$[686]},overflow:{refine:true,init:$[36]},tabIndex:{refine:true,init:1},enableInlineFind:{check:$[2],init:true},markLeadingItem:{check:$[2],init:false}},members:{_pressedString:$[0],getManager:function(){return this._manager;},getListItemTarget:function($0){while($0!=null&&$0.getParent()!=this){$0=$0.getParent();}return $0;},getSelectedItem:function(){return this.getSelectedItems()[0]||null;},getSelectedItems:function(){return this._manager.getSelectedItems();},_onmouseover:function($0){var $1=this.getListItemTarget($0.getTarget());if($1){this._manager.handleMouseOver($1,$0);}},_onmousedown:function($0){var $1=this.getListItemTarget($0.getTarget());if($1){this._manager.handleMouseDown($1,$0);}},_onmouseup:function($0){var $1=this.getListItemTarget($0.getTarget());if($1){this._manager.handleMouseUp($1,$0);}},_onclick:function($0){var $1=this.getListItemTarget($0.getTarget());if($1){this._manager.handleClick($1,$0);}},_ondblclick:function($0){var $1=this.getListItemTarget($0.getTarget());if($1){this._manager.handleDblClick($1,$0);}},_onkeydown:function($0){if($0.getKeyIdentifier()==$[46]&&!$0.isAltPressed()){var $1=this.getSelectedItems();for(var $2=0;$2<$1.length;$2++){$1[$2].createDispatchEvent($[1554]);}}},_onkeypress:function($0){this._manager.handleKeyPress($0);},_lastKeyPress:0,_onkeyinput:function($0){if(!this.getEnableInlineFind()){return;}if(((new Date).valueOf()-this._lastKeyPress)>1000){this._pressedString=$[0];}this._pressedString+=String.fromCharCode($0.getCharCode());var $1=this.findString(this._pressedString,null);if($1){var $2=this._manager._getChangeValue();var $3=this._manager.getFireChange();this._manager.setFireChange(false);this._manager._deselectAll();this._manager.setItemSelected($1,true);this._manager.setAnchorItem($1);this._manager.setLeadItem($1);$1.scrollIntoView();this._manager.setFireChange($3);if($3&&this._manager._hasChanged($2)){this._manager._dispatchChange();}}this._lastKeyPress=(new Date).valueOf();$0.preventDefault();},_findItem:function($0,$1,$2){var $3=this.getChildren();if($1==null){$1=$3.indexOf(this.getSelectedItem());if($1==-1){$1=0;}}var $4=$[586]+$2;for(var $5=$1;$5<$3.length;$5++){if($3[$5][$4]($0)){return $3[$5];}}for(var $5=0;$5<$1;$5++){if($3[$5][$4]($0)){return $3[$5];}}return null;},findString:function($0,$1){return this._findItem($0,$1||0,$[6]);},findStringExact:function($0,$1){return this._findItem($0,$1||0,$[1705]);},findValue:function($0,$1){return this._findItem($0,$1||0,$[366]);},findValueExact:function($0,$1){return this._findItem($0,$1||0,$[854]);},_sortItemsCompare:function($0,$1){return $0.key<$1.key?-1:$0.key==$1.key?0:1;},sortItemsByString:function($0){var $1=[];var $2=this.getChildren();for(var $3=0,$4=$2.length;$3<$4;$3++){$1[$3]={key:$2[$3].getLabel(),item:$2[$3]};}$1.sort(this._sortItemsCompare);if($0){$1.reverse();}for(var $3=0;$3<$4;$3++){this.addAt($1[$3].item,$3);}},sortItemsByValue:function($0){var $1=[];var $2=this.getChildren();for(var $3=0,$4=$2.length;$3<$4;$3++){$1[$3]={key:$2[$3].getValue(),item:$2[$3]};}$1.sort(this._sortItemsCompare);if($0){$1.reverse();}for(var $3=0;$3<$4;$3++){this.addAt($1[$3].item,$3);}}},destruct:function(){this._disposeObjects($[213]);}});
158
qx.Class.define($[1175],{extend:qx.ui.form.TextField,members:{_inputType:$[1303]}});
159
qx.Class.define($[495],{extend:qx.ui.basic.Atom,construct:function($0,$1,$2){arguments.callee.base.call(this,$0,$1);if($2!=null){this.setValue($2);}this.addEventListener($[104],this._ondblclick);this.initMinWidth();},events:{"action":$[4]},properties:{appearance:{refine:true,init:$[1590]},minWidth:{refine:true,init:$[3]},width:{refine:true,init:null},allowStretchX:{refine:true,init:true},value:{check:$[6],event:$[124]}},members:{handleStateChange:function(){if(this.hasState($[276])){this.setStyleProperty($[200],$[205]);this.setStyleProperty($[214],$[205]);}else{this.removeStyleProperty($[200]);this.setStyleProperty($[214],$[995]);}},_applyStateStyleFocus:function($0){},matchesString:function($0){$0=String($0);return $0!=$[0]&&this.getLabel().toString().toLowerCase().indexOf($0.toLowerCase())==0;},matchesStringExact:function($0){$0=String($0);return $0!=$[0]&&this.getLabel().toString().toLowerCase()==String($0).toLowerCase();},matchesValue:function($0){$0=String($0);return $0!=$[0]&&this.getValue().toLowerCase().indexOf($0.toLowerCase())==0;},matchesValueExact:function($0){$0=String($0);return $0!=$[0]&&this.getValue().toLowerCase()==String($0).toLowerCase();},_ondblclick:function($0){var $1=this.getCommand();if($1){$1.execute();}}}});
159
qx.Class.define($[1064],{extend:qx.ui.form.CheckBox,construct:function($0,$1,$2,$3){arguments.callee.base.call(this,$0,$1,$2,$3);this.addEventListener($[40],this._onkeypress);},properties:{appearance:{refine:true,init:$[589]},manager:{check:$[176],nullable:true,apply:$[189]}},members:{INPUT_TYPE:"radio",_applyChecked:function($0,$1){if(this._iconObject){this._iconObject.setChecked($0);}var $2=this.getManager();if($2){$2.handleItemChecked(this,$0);}},_applyManager:function($0,$1){if($1){$1.remove(this);}if($0){$0.add(this);}},_applyName:function($0,$1){if(this._iconObject){this._iconObject.setName($0);}if(this.getManager()){this.getManager().setName($0);}},_applyValue:function($0,$1){if(this.isCreated()&&this._iconObject){this._iconObject.setValue($0);}},_onkeydown:function($0){if($0.getKeyIdentifier()==$[46]&&!$0.isAltPressed()){this.setChecked(true);}},_onkeypress:function($0){switch($0.getKeyIdentifier()){case $[60]:case $[69]:qx.event.handler.FocusHandler.mouseFocus=false;qx.event.handler.FocusHandler.mouseFocus=false;return this.getManager()?this.getManager().selectPrevious(this):true;case $[64]:case $[76]:qx.event.handler.FocusHandler.mouseFocus=false;return this.getManager()?this.getManager().selectNext(this):true;}},_onclick:function($0){this.setChecked(true);},_onkeyup:function($0){if($0.getKeyIdentifier()==$[85]){this.setChecked(true);}}}});
160
qx.Class.define($[1064],{extend:qx.ui.form.CheckBox,construct:function($0,$1,$2,$3){arguments.callee.base.call(this,$0,$1,$2,$3);this.addEventListener($[40],this._onkeypress);},properties:{appearance:{refine:true,init:$[589]},manager:{check:$[176],nullable:true,apply:$[189]}},members:{INPUT_TYPE:"radio",_applyChecked:function($0,$1){if(this._iconObject){this._iconObject.setChecked($0);}var $2=this.getManager();if($2){$2.handleItemChecked(this,$0);}},_applyManager:function($0,$1){if($1){$1.remove(this);}if($0){$0.add(this);}},_applyName:function($0,$1){if(this._iconObject){this._iconObject.setName($0);}if(this.getManager()){this.getManager().setName($0);}},_applyValue:function($0,$1){if(this.isCreated()&&this._iconObject){this._iconObject.setValue($0);}},_onkeydown:function($0){if($0.getKeyIdentifier()==$[46]&&!$0.isAltPressed()){this.setChecked(true);}},_onkeypress:function($0){switch($0.getKeyIdentifier()){case $[60]:case $[69]:qx.event.handler.FocusHandler.mouseFocus=false;qx.event.handler.FocusHandler.mouseFocus=false;return this.getManager()?this.getManager().selectPrevious(this):true;case $[64]:case $[76]:qx.event.handler.FocusHandler.mouseFocus=false;return this.getManager()?this.getManager().selectNext(this):true;}},_onclick:function($0){this.setChecked(true);},_onkeyup:function($0){if($0.getKeyIdentifier()==$[84]){this.setChecked(true);}}}});
160
qx.Class.define($[1152],{extend:qx.ui.layout.HorizontalBoxLayout,construct:function($0,$1,$2){arguments.callee.base.call(this);if(qx.core.Variant.isSet($[1],$[13])){this.setStyleProperty($[210],$[52]);}this._textfield=new qx.ui.form.TextField;this._textfield.setBorder(null);this._textfield.setWidth($[138]);this._textfield.setAllowStretchY(true);this._textfield.setHeight(null);this._textfield.setLiveUpdate(true);this._textfield.setVerticalAlign($[62]);this._textfield.setAppearance($[1517]);this.add(this._textfield);this._buttonlayout=new qx.ui.layout.VerticalBoxLayout;this._buttonlayout.setWidth($[3]);this.add(this._buttonlayout);this._upbutton=new qx.ui.basic.Image;this._upbutton.setAppearance($[1143]);this._upbutton.setHeight($[138]);this._buttonlayout.add(this._upbutton);this._downbutton=new qx.ui.basic.Image;this._downbutton.setAppearance($[958]);this._downbutton.setHeight($[138]);this._buttonlayout.add(this._downbutton);this._timer=new qx.client.Timer(this.getInterval());this.setManager(new qx.util.range.Range());this.initWrap();this.addEventListener($[40],this._onkeypress,this);this.addEventListener($[16],this._onkeydown,this);this.addEventListener($[84],this._onkeyup,this);this.addEventListener($[184],this._onmousewheel,this);this._textfield.addEventListener($[124],this._ontextchange,this);this._textfield.addEventListener($[89],this._oninput,this);this._textfield.addEventListener($[199],this._onblur,this);this._upbutton.addEventListener($[12],this._onmousedown,this);this._downbutton.addEventListener($[12],this._onmousedown,this);this._timer.addEventListener($[86],this._oninterval,this);if($0!=null){this.setMin($0);}if($2!=null){this.setMax($2);}if($1!=null){this.setValue($1);}this._checkValue=this.__checkValue;this._numberFormat=null;this.initWidth();this.initHeight();this._last_value=$[0];},events:{"change":$[98]},properties:{appearance:{refine:true,init:$[1340]},width:{refine:true,init:60},height:{refine:true,init:22},incrementAmount:{check:$[19],init:1,apply:$[823]},wheelIncrementAmount:{check:$[19],init:1},pageIncrementAmount:{check:$[19],init:10},interval:{check:$[5],init:100},firstInterval:{check:$[5],init:500},minTimer:{check:$[5],init:20},timerDecrease:{check:$[5],init:2},amountGrowth:{check:$[19],init:1.01},wrap:{check:$[2],init:false,apply:$[271]},editable:{check:$[2],init:true,apply:$[320]},manager:{check:$[469],apply:$[189],dispose:true},checkValueFunction:{apply:$[796]},numberFormat:{check:$[692],apply:$[753]},selectTextOnInteract:{check:$[2],init:true}},members:{_applyIncrementAmount:function($0,$1){this._computedIncrementAmount=$0;},_applyEditable:function($0,$1){if(this._textfield){this._textfield.setReadOnly(!$0);}},_applyWrap:function($0,$1){this.getManager().setWrap($0);this._onchange();},_applyManager:function($0,$1){if($1){$1.removeEventListener($[107],this._onchange,this);}if($0){$0.addEventListener($[107],this._onchange,this);}this._onchange();},_applyCheckValueFunction:function($0,$1){this._checkValue=$0;},_applyNumberFormat:function($0,$1){this._numberFormat=$0;this.getManager().setPrecision($0.getMaximumFractionDigits());this._onchange();},_computePreferredInnerWidth:function(){return 50;},_computePreferredInnerHeight:function(){return 14;},_onkeypress:function($0){var $1=$0.getKeyIdentifier();if($1==$[46]&&!$0.isAltPressed()){this._checkValue(true,false);if(this.getSelectTextOnInteract()){this._textfield.selectAll();}}else{switch($1){case $[69]:case $[76]:case $[60]:case $[64]:case $[142]:case $[125]:case $[136]:case $[129]:case $[169]:case $[191]:case $[203]:case $[150]:case $[162]:case $[88]:case $[99]:case $[127]:case $[188]:break;default:if(($1>=$[41]&&$1<=$[172])||($1==$[1027])){return;}if(this._numberFormat){var $2=this._numberFormat._locale;if(($1==qx.locale.Number.getGroupSeparator($2))||($1==qx.locale.Number.getDecimalSeparator($2)))return;}if($0.getModifiers()==0){$0.preventDefault();}}}},_onkeydown:function($0){var $1=$0.getKeyIdentifier();if(this._intervalIncrease==null){switch($1){case $[69]:case $[76]:this._intervalIncrease=$1==$[69];this._intervalMode=$[904];this._resetIncrements();this._checkValue(true,false);this._increment();this._timer.startWith(this.getFirstInterval());break;case $[88]:case $[99]:this._intervalIncrease=$1==$[88];this._intervalMode=$[425];this._resetIncrements();this._checkValue(true,false);this._pageIncrement();this._timer.startWith(this.getFirstInterval());break;}}},_onkeyup:function($0){if(this._intervalIncrease!=null){switch($0.getKeyIdentifier()){case $[69]:case $[76]:case $[88]:case $[99]:this._timer.stop();this._intervalIncrease=null;this._intervalMode=null;}}},_onmousedown:function($0){if(!$0.isLeftButtonPressed()){return;}this._checkValue(true);var $1=$0.getCurrentTarget();$1.addState($[14]);$1.addEventListener($[22],this._onmouseup,this);$1.addEventListener($[105],this._onmouseup,this);this._intervalIncrease=$1==this._upbutton;this._resetIncrements();this._increment();if(this.getSelectTextOnInteract()){this._textfield.selectAll();}this._timer.setInterval(this.getFirstInterval());this._timer.start();},_onmouseup:function($0){var $1=$0.getCurrentTarget();$1.removeState($[14]);$1.removeEventListener($[22],this._onmouseup,this);$1.removeEventListener($[105],this._onmouseup,this);if(this.getSelectTextOnInteract()){this._textfield.selectAll();}this._textfield.setFocused(true);this._timer.stop();this._intervalIncrease=null;},_onmousewheel:function($0){this._checkValue(true);if(this.getManager().incrementValue){this.getManager().incrementValue(this.getWheelIncrementAmount()*$0.getWheelDelta());}else{var $1=this.getManager().getValue()+(this.getWheelIncrementAmount()*$0.getWheelDelta());$1=this.getManager().limit($1);this.getManager().setValue($1);}this._textfield.selectAll();},_ontextchange:function($0){this._last_value=$0.getOldValue();},_oninput:function($0){this._checkValue(true,true);},_onchange:function($0){var $1=this.getManager().getValue();if(this._numberFormat){this._textfield.setValue(this._numberFormat.format($1));}else{this._textfield.setValue(String($1));}if($1==this.getMin()&&!this.getWrap()){this._downbutton.removeState($[14]);this._downbutton.setEnabled(false);this._timer.stop();}else{this._downbutton.resetEnabled();}if($1==this.getMax()&&!this.getWrap()){this._upbutton.removeState($[14]);this._upbutton.setEnabled(false);this._timer.stop();}else{this._upbutton.resetEnabled();}this.createDispatchDataEvent($[107],$1);},_onblur:function($0){this._checkValue(false);},setValue:function($0){this.getManager().setValue(this.getManager().limit($0));},getValue:function(){this._checkValue(true);return this.getManager().getValue();},resetValue:function(){this.getManager().resetValue();},setMax:function($0){return this.getManager().setMax($0);},getMax:function(){return this.getManager().getMax();},setMin:function($0){return this.getManager().setMin($0);},getMin:function(){return this.getManager().getMin();},_intervalIncrease:null,_oninterval:function($0){this._timer.stop();this.setInterval(Math.max(this.getMinTimer(),this.getInterval()-this.getTimerDecrease()));if(this._intervalMode==$[425]){this._pageIncrement();}else{if(this.getInterval()==this.getMinTimer()){this._computedIncrementAmount=this.getAmountGrowth()*this._computedIncrementAmount;}this._increment();}var $1=this.getManager().getWrap();switch(this._intervalIncrease){case true:if(this.getValue()==this.getMax()&&!$1){return;}case false:if(this.getValue()==this.getMin()&&!$1){return;}}this._timer.restartWith(this.getInterval());},__checkValue:function($0,$1){var $2=this._textfield.getInputElement();if(!$2){return;}if(($2.value==$[0])||($2.value==$[137])){if(!$0){this.resetValue();return;}}else{var $3=$2.value;var $4;if(this._numberFormat){var $5=qx.lang.String.escapeRegexpChars(qx.locale.Number.getGroupSeparator(this._numberFormat._locale)+$[0]);var $6=qx.lang.String.escapeRegexpChars(qx.locale.Number.getDecimalSeparator(this._numberFormat._locale)+$[0]);$4=$3.replace(new RegExp($6),$[24]);$4=$4.replace(new RegExp($5,$[289]),$[0]);}else{$4=$3;}var $7=parseFloat($4);var $8=this.getManager().limit($7);var $9=this.getManager().getValue();var $a=$8;if(isNaN($7)||($8!=$7)||($7!=$4)){if($1){this._textfield.setValue(this._last_value);}else{if(isNaN($8)){$a=$9;}else{$a=$8;}}}if($1)return;var $b;if(this._numberFormat){$b=this._numberFormat.format($a);}else{$b=String($a);}if(($a===$9)&&($3!==$b)){this._textfield.setValue($b);}this.getManager().setValue($a);}},_increment:function(){if(this.getManager().incrementValue){this.getManager().incrementValue((this._intervalIncrease?1:-1)*this._computedIncrementAmount);}else{var $0=this.getManager().getValue()+((this._intervalIncrease?1:-1)*this._computedIncrementAmount);$0=this.getManager().limit($0);this.getManager().setValue($0);}},_pageIncrement:function(){if(this.getManager().pageIncrementValue){this.getManager().pageIncrementValue();}else{var $0=this.getManager().getValue()+((this._intervalIncrease?1:-1)*this.getPageIncrementAmount());$0=this.getManager().limit($0);this.getManager().setValue($0);}},_resetIncrements:function(){this._computedIncrementAmount=this.getIncrementAmount();this.resetInterval();}},destruct:function(){var $0=this.getManager();if($0){$0.dispose();}this._disposeObjects($[1659],$[754],$[1135],$[1738],$[284]);}});
161
qx.Class.define($[1757],{extend:qx.ui.form.TextField,properties:{appearance:{refine:true,init:$[1588]},allowStretchY:{refine:true,init:true},spellCheck:{refine:true,init:true},wrap:{check:$[2],init:true,apply:$[271]}},members:{_inputTag:$[222],_inputType:null,_inputOverflow:$[3],_applyElement:function($0,$1){arguments.callee.base.call(this,$0,$1);this._styleWrap();},_applyWrap:function($0,$1){this._styleWrap();},_styleWrap:qx.core.Variant.select($[1],{"mshtml":function(){if(this._inputElement){this._inputElement.wrap=this.getWrap()?$[374]:$[55];}},"gecko":function(){if(this._inputElement){var $0=this.getWrap()?$[374]:$[55];var $1=this.getWrap()?$[0]:$[3];this._inputElement.setAttribute($[842],$0);this._inputElement.style.overflow=$1;}},"default":function(){if(this._inputElement){this._inputElement.style.whiteSpace=this.getWrap()?$[156]:$[321];}}}),_computePreferredInnerHeight:function(){return 60;}}});
161
qx.Interface.define($[469],{properties:{value:{},min:{},max:{},wrap:{}},members:{limit:function($0){return true;}}});
162
qx.Class.define($[1176],{extend:qx.ui.form.TextField,members:{_inputType:$[1304]}});
162
qx.Class.define($[1279],{extend:qx.core.Target,implement:[qx.util.range.IRange],events:{"change":$[4]},properties:{value:{check:$[1734],nullable:true,event:$[107],init:0},precision:{check:$[5],nullable:true,event:$[107],init:0},min:{check:$[19],apply:$[760],event:$[107],init:0},max:{check:$[19],apply:$[712],event:$[107],init:100},wrap:{check:$[2],init:false}},members:{_applyMax:function($0,$1){this.setValue(Math.min(this.getValue(),$0));},_applyMin:function($0,$1){this.setValue(Math.max(this.getValue(),$0));},limit:function($0){var $1=this.getPrecision();if($1!=null)var $2=Math.pow(10,$1);if(this.getWrap()){if($1!=null){var $0=Math.round($0*$2)/$2;}if($0<this.getMin()){return (this.getMax()-(this.getMin()-$0))+1;}if($0>this.getMax()){return (this.getMin()+($0-this.getMax()))-1;}}if($0<this.getMin()){return this.getMin();}if($0>this.getMax()){return this.getMax();}if($1!=null){return Math.round($0*$2)/$2;}else{return $0;}}}});
163
qx.Class.define($[667],{extend:qx.ui.layout.HorizontalBoxLayout,construct:function(){arguments.callee.base.call(this);var $0=this._list=new qx.ui.form.List;$0.setAppearance($[1630]);$0.setTabIndex(-1);$0.setEdge(0);var $1=this._manager=this._list.getManager();$1.setMultiSelection(false);$1.setDragSelection(false);var $2=this._popup=new qx.ui.popup.Popup;$2.setAppearance($[907]);$2.setRestrictToPageLeft(-100000);$2.setRestrictToPageRight(-100000);$2.setAutoHide(false);$2.setHeight($[3]);$2.add($0);var $3=this._field=new qx.ui.form.TextField;$3.setAppearance($[1528]);$3.setTabIndex(-1);$3.setWidth($[138]);$3.setAllowStretchY(true);$3.setHeight(null);this.add($3);var $4=this._button=new qx.ui.basic.Atom;$4.setAppearance($[1076]);$4.setAllowStretchY(true);$4.setTabIndex(-1);$4.setHeight(null);this.add($4);this.addEventListener($[12],this._onmousedown);this.addEventListener($[22],this._onmouseup);this.addEventListener($[53],this._onclick);this.addEventListener($[61],this._onmouseover);this.addEventListener($[184],this._onmousewheel);this.addEventListener($[16],this._onkeydown);this.addEventListener($[40],this._onkeypress);this.addEventListener($[300],this._onkeyinput);this.addEventListener($[401],this._onbeforedisappear);this._popup.addEventListener($[193],this._onpopupappear,this);this._field.addEventListener($[89],this._oninput,this);qx.locale.Manager.getInstance().addEventListener($[220],this._onlocalechange,this);var $5=qx.ui.core.ClientDocument.getInstance();$5.addEventListener($[283],this._testClosePopup,this);this.remapChildrenHandlingTo($0);this.initEditable();this.initTabIndex();this.initWidth();this.initHeight();this.initMinWidth();},events:{"beforeInitialOpen":$[4]},properties:{appearance:{refine:true,init:$[1522]},allowStretchY:{refine:true,init:false},width:{refine:true,init:120},height:{refine:true,init:$[3]},minWidth:{refine:true,init:40},tabIndex:{refine:true,init:1},editable:{check:$[2],apply:$[320],event:$[793],init:false},selected:{check:$[495],nullable:true,apply:$[267],event:$[261]},value:{check:$[6],nullable:true,apply:$[209],event:$[124]},pagingInterval:{check:$[5],init:10}},members:{getManager:function(){return this._manager;},getPopup:function(){return this._popup;},getList:function(){return this._list;},getField:function(){return this._field;},getButton:function(){return this._button;},_applySelected:function($0,$1){this._fromSelected=true;if(!this._fromValue){this.setValue($0?$0.getLabel().toString():$[0]);}this._manager.setLeadItem($0);this._manager.setAnchorItem($0);if($0){this._manager.setSelectedItem($0);}else{this._manager.deselectAll();}delete this._fromSelected;},_applyValue:function($0,$1){this._fromValue=true;if(!this._fromInput){if(this._field.getValue()==$0){this._field.setValue(null);}this._field.setValue($0);}delete this._fromValue;},_applyEditable:function($0,$1){var $2=this._field;$2.setReadOnly(!$0);$2.setCursor($0?null:$[295]);$2.setSelectable($0);},_oldSelected:null,_openPopup:function(){var $0=this._popup;var $1=this.getElement();if(!$0.isCreated()){this.createDispatchEvent($[1677]);}if(this._list.getChildrenLength()==0){return;}$0.positionRelativeTo($1,1,qx.html.Dimension.getBoxHeight($1));$0.setWidth(this.getBoxWidth()-2);$0.setParent(this.getTopLevelWidget());$0.show();this._oldSelected=this.getSelected();this.setCapture(true);},_closePopup:function(){this._popup.hide();this.setCapture(false);},_testClosePopup:function(){if(this._popup.isSeeable()){this._closePopup();}},_togglePopup:function(){this._popup.isSeeable()?this._closePopup():this._openPopup();},_onpopupappear:function($0){var $1=this.getSelected();if($1){$1.scrollIntoView();}},_oninput:function($0){this._fromInput=true;this.setValue(this._field.getComputedValue());var $1=this.getSelected();if($1&&$1.getLabel()!=this.getValue()){this.resetSelected();}delete this._fromInput;},_onbeforedisappear:function($0){this._testClosePopup();},_onlocalechange:function($0){var $1=this.getSelected();this._applySelected($1,$1);},_onmousedown:function($0){if(!$0.isLeftButtonPressed()){return;}var $1=$0.getTarget();switch($1){case this._field:if(this.getEditable()){break;}case this._button:this._button.addState($[14]);this._togglePopup();this.setCapture(true);break;default:break;}$0.stopPropagation();},_onclick:function($0){if(!$0.isLeftButtonPressed()){return;}var $1=$0.getTarget();switch($1){case this._field:case this._button:case this:case this._list:break;default:if($1 instanceof qx.ui.form.ListItem&&$1.getParent()==this._list){this._list._onmousedown($0);this.setSelected(this._list.getSelectedItem());this._closePopup();this.setFocused(true);}else if(this._popup.isSeeable()){this._popup.hide();this.setCapture(false);}}},_onmouseup:function($0){this._button.removeState($[14]);if(!this._popup.isSeeable()){this.setCapture(false);}},_onmouseover:function($0){var $1=$0.getTarget();if($1 instanceof qx.ui.form.ListItem){var $2=this._manager;$2.deselectAll();$2.setLeadItem($1);$2.setAnchorItem($1);$2.setSelectedItem($1);}},_onmousewheel:function($0){if(!this._popup.isSeeable()){var $1;var $2=this.getSelected();if($0.getWheelDelta()<0){$1=$2?this._manager.getNext($2):this._manager.getFirst();}else{$1=$2?this._manager.getPrevious($2):this._manager.getLast();}if($1){this.setSelected($1);}}else{var $3=$0.getTarget();if($3!=this&&$3.getParent()!=this._list){this._popup.hide();this.setCapture(false);}}},_onkeydown:function($0){var $1=this._manager;var $2=this._popup.isSeeable();switch($0.getKeyIdentifier()){case $[46]:if($2){this.setSelected(this._manager.getSelectedItem());this._closePopup();this.setFocused(true);}else{this._openPopup();}$0.stopPropagation();return;case $[129]:if($2){$1.setLeadItem(this._oldSelected);$1.setAnchorItem(this._oldSelected);$1.setSelectedItem(this._oldSelected);this._field.setValue(this._oldSelected?this._oldSelected.getLabel():$[0]);this._closePopup();this.setFocused(true);$0.stopPropagation();}return;case $[76]:if($0.isAltPressed()){this._togglePopup();return;}break;}},_onkeypress:function($0){var $1=this._popup.isSeeable();var $2=this._manager;switch($0.getKeyIdentifier()){case $[87]:if(!$1){var $3;var $4=this.getSelected();if($4){var $5=this.getPagingInterval();do{$3=$4;}while(--$5&&($4=$2.getPrevious($3)));}else{$3=$2.getLast();}this.setSelected($3);return;}break;case $[99]:if(!$1){var $6;var $4=this.getSelected();if($4){var $5=this.getPagingInterval();do{$6=$4;}while(--$5&&($4=$2.getNext($6)));}else{$6=$2.getFirst();}this.setSelected($6||null);return;}break;}if(!this.isEditable()||$1){this._list._onkeypress($0);}},_onkeyinput:function($0){var $1=this._popup.isSeeable();if(!this.isEditable()||$1){this._list._onkeyinput($0);}},_visualizeBlur:function(){this.getField()._visualizeBlur();this.removeState($[224]);},_visualizeFocus:function(){this.getField()._visualizeFocus();this.getField().selectAll();this.addState($[224]);}},destruct:function(){if(this._popup&&!qx.core.Object.inGlobalDispose()){this._popup.setParent(null);}var $0=qx.ui.core.ClientDocument.getInstance();$0.removeEventListener($[283],this._testClosePopup,this);var $1=qx.locale.Manager.getInstance();$1.removeEventListener($[220],this._onlocalechange,this);this._disposeObjects($[1215],$[336],$[213],$[947],$[1506]);}});
163
qx.Class.define($[1757],{extend:qx.ui.form.TextField,properties:{appearance:{refine:true,init:$[1587]},allowStretchY:{refine:true,init:true},spellCheck:{refine:true,init:true},wrap:{check:$[2],init:true,apply:$[271]}},members:{_inputTag:$[222],_inputType:null,_inputOverflow:$[3],_applyElement:function($0,$1){arguments.callee.base.call(this,$0,$1);this._styleWrap();},_applyWrap:function($0,$1){this._styleWrap();},_styleWrap:qx.core.Variant.select($[1],{"mshtml":function(){if(this._inputElement){this._inputElement.wrap=this.getWrap()?$[373]:$[55];}},"gecko":function(){if(this._inputElement){var $0=this.getWrap()?$[373]:$[55];var $1=this.getWrap()?$[0]:$[3];this._inputElement.setAttribute($[843],$0);this._inputElement.style.overflow=$1;}},"default":function(){if(this._inputElement){this._inputElement.style.whiteSpace=this.getWrap()?$[156]:$[321];}}}),_computePreferredInnerHeight:function(){return 60;}}});
164
qx.Class.define($[1071],{extend:qx.ui.layout.CanvasLayout,construct:function($0,$1){arguments.callee.base.call(this);this._createFrameObject();this._createLegendObject();this.setLegend($0||$[0]);if($1!=null){this.setIcon($1);}this.remapChildrenHandlingTo(this._frameObject);},properties:{appearance:{refine:true,init:$[1010]}},members:{_createLegendObject:function(){this._legendObject=new qx.ui.basic.Atom;this._legendObject.setAppearance($[1218]);this.add(this._legendObject);},_createFrameObject:function(){this._frameObject=new qx.ui.layout.CanvasLayout;this._frameObject.setAppearance($[1760]);this.add(this._frameObject);},getFrameObject:function(){return this._frameObject;},getLegendObject:function(){return this._legendObject;},setLegend:function($0){if($0!==$[0]&&$0!==null){this._legendObject.setLabel($0);this._legendObject.setDisplay(true);}else{this._legendObject.setDisplay(false);}},getLegend:function(){return this._legendObject.getLabel();},setIcon:function($0){this._legendObject.setIcon($0);},getIcon:function(){this._legendObject.getIcon();}},destruct:function(){this._disposeObjects($[1221],$[1799]);}});
164
qx.Class.define($[1071],{extend:qx.ui.layout.CanvasLayout,construct:function($0,$1){arguments.callee.base.call(this);this._createFrameObject();this._createLegendObject();this.setLegend($0||$[0]);if($1!=null){this.setIcon($1);}this.remapChildrenHandlingTo(this._frameObject);},properties:{appearance:{refine:true,init:$[1009]}},members:{_createLegendObject:function(){this._legendObject=new qx.ui.basic.Atom;this._legendObject.setAppearance($[1217]);this.add(this._legendObject);},_createFrameObject:function(){this._frameObject=new qx.ui.layout.CanvasLayout;this._frameObject.setAppearance($[1760]);this.add(this._frameObject);},getFrameObject:function(){return this._frameObject;},getLegendObject:function(){return this._legendObject;},setLegend:function($0){if($0!==$[0]&&$0!==null){this._legendObject.setLabel($0);this._legendObject.setDisplay(true);}else{this._legendObject.setDisplay(false);}},getLegend:function(){return this._legendObject.getLabel();},setIcon:function($0){this._legendObject.setIcon($0);},getIcon:function(){this._legendObject.getIcon();}},destruct:function(){this._disposeObjects($[1220],$[1799]);}});
165
qx.Class.define($[1406],{extend:qx.ui.layout.HorizontalBoxLayout,construct:function($0,$1,$2,$3){arguments.callee.base.call(this);var $4=this._iconObject=new qx.ui.basic.Image;$4.setWidth(16);$4.setAnonymous(true);var $5=this._labelObject=new qx.ui.basic.Label;$5.setAnonymous(true);$5.setSelectable(false);var $6=this._shortcutObject=new qx.ui.basic.Label;$6.setAnonymous(true);$6.setSelectable(false);var $7=this._arrowObject=new qx.ui.basic.Image;$7.setAppearance($[536]);$7.setAnonymous(true);if($0!=null){this.setLabel($0);}if($1!=null){this.setIcon($1);}if($2!=null){this.setCommand($2);qx.locale.Manager.getInstance().addEventListener($[220],function($8){this._applyCommand($2,$2);},this);}if($3!=null){this.setMenu($3);}this.initMinWidth();this.initHeight();this.addEventListener($[22],this._onmouseup);},properties:{allowStretchX:{refine:true,init:true},appearance:{refine:true,init:$[1255]},minWidth:{refine:true,init:$[3]},height:{refine:true,init:$[3]},icon:{check:$[6],apply:$[181],nullable:true,themeable:true},label:{apply:$[256],nullable:true,dispose:true},menu:{check:$[160],nullable:true,apply:$[448]}},members:{_hasIcon:false,_hasLabel:false,_hasShortcut:false,_hasMenu:false,hasIcon:function(){return this._hasIcon;},hasLabel:function(){return this._hasLabel;},hasShortcut:function(){return this._hasShortcut;},hasMenu:function(){return this._hasMenu;},getIconObject:function(){return this._iconObject;},getLabelObject:function(){return this._labelObject;},getShortcutObject:function(){return this._shortcutObject;},getArrowObject:function(){return this._arrowObject;},getParentMenu:function(){var $0=this.getParent();if($0){$0=$0.getParent();if($0&&$0 instanceof qx.ui.menu.Menu){return $0;}}return null;},_createLayoutImpl:function(){return new qx.ui.menu.ButtonLayoutImpl(this);},_applyIcon:function($0,$1){this._iconObject.setSource($0);if($0&&$0!==$[0]){this._hasIcon=true;if(!$1||$1===$[0]){this.addAtBegin(this._iconObject);}}else{this._hasIcon=false;this.remove(this._iconObject);}},_applyLabel:function($0,$1){this._labelObject.setText($0);if($0&&$0!==$[0]){this._hasLabel=true;if(!$1||$1===$[0]){this.addAt(this._labelObject,this.getFirstChild()==this._iconObject?1:0);}}else{this._hasLabel=false;this.remove(this._labelObject);}},_applyCommand:function($0,$1){var $2=$0?$0.toString():$[0];this._shortcutObject.setText($2);if(qx.util.Validation.isValidString($2)){this._hasShortcut=true;var $3=$1?$1.toString():$[0];if(qx.util.Validation.isInvalidString($3)){if(this.getLastChild()==this._arrowObject){this.addBefore(this._shortcutObject,this._arrowObject);}else{this.addAtEnd(this._shortcutObject);}}}else{this._hasShortcut=false;this.remove(this._shortcutObject);}},_applyMenu:function($0,$1){if($0){this._hasMenu=true;if(qx.util.Validation.isInvalidObject($1)){this.addAtEnd(this._arrowObject);}}else{this._hasMenu=false;this.remove(this._arrowObject);}},_onmouseup:function($0){this.execute();}},destruct:function(){this._disposeObjects($[297],$[249],$[1696],$[1495]);}});
165
qx.Class.define($[1407],{extend:qx.ui.layout.HorizontalBoxLayout,construct:function($0,$1,$2,$3){arguments.callee.base.call(this);var $4=this._iconObject=new qx.ui.basic.Image;$4.setWidth(16);$4.setAnonymous(true);var $5=this._labelObject=new qx.ui.basic.Label;$5.setAnonymous(true);$5.setSelectable(false);var $6=this._shortcutObject=new qx.ui.basic.Label;$6.setAnonymous(true);$6.setSelectable(false);var $7=this._arrowObject=new qx.ui.basic.Image;$7.setAppearance($[536]);$7.setAnonymous(true);if($0!=null){this.setLabel($0);}if($1!=null){this.setIcon($1);}if($2!=null){this.setCommand($2);qx.locale.Manager.getInstance().addEventListener($[220],function($8){this._applyCommand($2,$2);},this);}if($3!=null){this.setMenu($3);}this.initMinWidth();this.initHeight();this.addEventListener($[22],this._onmouseup);},properties:{allowStretchX:{refine:true,init:true},appearance:{refine:true,init:$[1254]},minWidth:{refine:true,init:$[3]},height:{refine:true,init:$[3]},icon:{check:$[6],apply:$[181],nullable:true,themeable:true},label:{apply:$[256],nullable:true,dispose:true},menu:{check:$[160],nullable:true,apply:$[449]}},members:{_hasIcon:false,_hasLabel:false,_hasShortcut:false,_hasMenu:false,hasIcon:function(){return this._hasIcon;},hasLabel:function(){return this._hasLabel;},hasShortcut:function(){return this._hasShortcut;},hasMenu:function(){return this._hasMenu;},getIconObject:function(){return this._iconObject;},getLabelObject:function(){return this._labelObject;},getShortcutObject:function(){return this._shortcutObject;},getArrowObject:function(){return this._arrowObject;},getParentMenu:function(){var $0=this.getParent();if($0){$0=$0.getParent();if($0&&$0 instanceof qx.ui.menu.Menu){return $0;}}return null;},_createLayoutImpl:function(){return new qx.ui.menu.ButtonLayoutImpl(this);},_applyIcon:function($0,$1){this._iconObject.setSource($0);if($0&&$0!==$[0]){this._hasIcon=true;if(!$1||$1===$[0]){this.addAtBegin(this._iconObject);}}else{this._hasIcon=false;this.remove(this._iconObject);}},_applyLabel:function($0,$1){this._labelObject.setText($0);if($0&&$0!==$[0]){this._hasLabel=true;if(!$1||$1===$[0]){this.addAt(this._labelObject,this.getFirstChild()==this._iconObject?1:0);}}else{this._hasLabel=false;this.remove(this._labelObject);}},_applyCommand:function($0,$1){var $2=$0?$0.toString():$[0];this._shortcutObject.setText($2);if(qx.util.Validation.isValidString($2)){this._hasShortcut=true;var $3=$1?$1.toString():$[0];if(qx.util.Validation.isInvalidString($3)){if(this.getLastChild()==this._arrowObject){this.addBefore(this._shortcutObject,this._arrowObject);}else{this.addAtEnd(this._shortcutObject);}}}else{this._hasShortcut=false;this.remove(this._shortcutObject);}},_applyMenu:function($0,$1){if($0){this._hasMenu=true;if(qx.util.Validation.isInvalidObject($1)){this.addAtEnd(this._arrowObject);}}else{this._hasMenu=false;this.remove(this._arrowObject);}},_onmouseup:function($0){this.execute();}},destruct:function(){this._disposeObjects($[297],$[249],$[1696],$[1494]);}});
166
qx.Class.define($[160],{extend:qx.ui.popup.Popup,construct:function(){arguments.callee.base.call(this);var $0=this._layout=new qx.ui.menu.Layout;$0.setEdge(0);this.add($0);this.initOpenInterval();this.initCloseInterval();this.addEventListener($[61],this._onmouseover);this.addEventListener($[148],this._onmouseover);this.addEventListener($[105],this._onmouseout);this.addEventListener($[16],this._onkeydown);this.addEventListener($[40],this._onkeypress);this.remapChildrenHandlingTo(this._layout);this.initWidth();this.initHeight();},properties:{appearance:{refine:true,init:$[1458]},width:{refine:true,init:$[3]},height:{refine:true,init:$[3]},iconContentGap:{check:$[5],themeable:true,init:4},labelShortcutGap:{check:$[5],themeable:true,init:10},contentArrowGap:{check:$[5],themeable:true,init:8},contentNonIconPadding:{check:$[5],themeable:true,init:20},contentNonArrowPadding:{check:$[5],themeable:true,init:8},hoverItem:{check:$[66],nullable:true,apply:$[1109]},openItem:{check:$[66],nullable:true,apply:$[1666]},opener:{check:$[66],nullable:true},parentMenu:{check:$[160],nullable:true},fastReopen:{check:$[2],init:false},openInterval:{check:$[5],themeable:true,init:250,apply:$[883]},closeInterval:{check:$[5],themeable:true,init:250,apply:$[981]},subMenuHorizontalOffset:{check:$[5],themeable:true,init:-3},subMenuVerticalOffset:{check:$[5],themeable:true,init:-2},indentShortcuts:{check:$[2],init:true},maxIconWidth:{_cached:true},maxLabelWidth:{_cached:true},maxLabelWidthIncShortcut:{_cached:true},maxShortcutWidth:{_cached:true},maxArrowWidth:{_cached:true},maxContentWidth:{_cached:true},iconPosition:{_cached:true,defaultValue:0},labelPosition:{_cached:true},shortcutPosition:{_cached:true},arrowPosition:{_cached:true},menuButtonNeededWidth:{_cached:true}},members:{_remappingChildTable:[$[421],$[530],$[406],$[487],$[317],$[514],$[480],$[327],$[322],$[1642],$[806],$[1726],$[1037]],_isFocusRoot:false,getLayout:function(){return this._layout;},isSubElement:function($0,$1){if(($0.getParent()===this._layout)||((!$1)&&($0===this))){return true;}for(var $2=this._layout.getChildren(),$3=$2.length,$4=0;$4<$3;$4++){if($2[$4].getMenu&&$2[$4].getMenu()&&$2[$4].getMenu().isSubElement($0,$1)){return true;}}return false;},_beforeAppear:function(){qx.ui.layout.CanvasLayout.prototype._beforeAppear.call(this);qx.ui.menu.Manager.getInstance().add(this);this.bringToFront();this._makeActive();},_beforeDisappear:function(){qx.ui.layout.CanvasLayout.prototype._beforeDisappear.call(this);qx.ui.menu.Manager.getInstance().remove(this);this._makeInactive();this.setHoverItem(null);this.setOpenItem(null);var $0=this.getOpener();if($0){$0.removeState($[14]);}},_applyOpenInterval:function($0,$1){if(!this._openTimer){this._openTimer=new qx.client.Timer($0);this._openTimer.addEventListener($[85],this._onopentimer,this);}else{this._openTimer.setInterval($0);}},_applyCloseInterval:function($0,$1){if(!this._closeTimer){this._closeTimer=new qx.client.Timer(this.getCloseInterval());this._closeTimer.addEventListener($[85],this._onclosetimer,this);}else{this._closeTimer.setInterval($0);}},_applyHoverItem:function($0,$1){if($1){$1.removeState($[43]);}if($0){$0.addState($[43]);}},_applyOpenItem:function($0,$1){if($1){var $2=$1.getMenu();if($2){$2.setParentMenu(null);$2.setOpener(null);$2.hide();}}if($0){var $3=$0.getMenu();if($3){$3.setOpener($0);$3.setParentMenu(this);var $4=$0.getElement();var $5=this.getElement();$3.setTop(qx.bom.element.Location.getTop($4)+this.getSubMenuVerticalOffset());$3.setLeft(qx.bom.element.Location.getLeft($5)+qx.html.Dimension.getBoxWidth($5)+this.getSubMenuHorizontalOffset());$3.show();}}},_computeMaxIconWidth:function(){var $0=this.getLayout().getChildren(),$1=$0.length,$2,$3=0;for(var $4=0;$4<$1;$4++){$2=$0[$4];if($2.hasIcon()){$3=Math.max($3,16);}}return $3;},_computeMaxLabelWidth:function(){var $0=this.getLayout().getChildren(),$1=$0.length,$2,$3=0;for(var $4=0;$4<$1;$4++){$2=$0[$4];if($2.hasLabel()){$3=Math.max($3,$2.getLabelObject().getPreferredBoxWidth());}}return $3;},_computeMaxLabelWidthIncShortcut:function(){var $0=this.getLayout().getChildren(),$1=$0.length,$2,$3=0;for(var $4=0;$4<$1;$4++){$2=$0[$4];if($2.hasLabel()&&$2.hasShortcut()){$3=Math.max($3,$2.getLabelObject().getPreferredBoxWidth());}}return $3;},_computeMaxShortcutWidth:function(){var $0=this.getLayout().getChildren(),$1=$0.length,$2,$3=0;for(var $4=0;$4<$1;$4++){$2=$0[$4];if($2.hasShortcut()){$3=Math.max($3,$2.getShortcutObject().getPreferredBoxWidth());}}return $3;},_computeMaxArrowWidth:function(){var $0=this.getLayout().getChildren(),$1=$0.length,$2,$3=0;for(var $4=0;$4<$1;$4++){$2=$0[$4];if($2.hasMenu()){$3=Math.max($3,4);}}return $3;},_computeMaxContentWidth:function(){var $0;var $1=this.getMaxLabelWidth();var $2=this.getMaxShortcutWidth();if(this.getIndentShortcuts()){var $3=$2+this.getMaxLabelWidthIncShortcut();if($2>0){$3+=this.getLabelShortcutGap();}$0=Math.max($1,$3);}else{$0=$1+$2;if($1>0&&$2>0){$0+=this.getLabelShortcutGap();}}return $0;},_computeIconPosition:function(){return 0;},_computeLabelPosition:function(){var $0=this.getMaxIconWidth();return $0>0?$0+this.getIconContentGap():this.getContentNonIconPadding();},_computeShortcutPosition:function(){return this.getLabelPosition()+this.getMaxContentWidth()-this.getMaxShortcutWidth();},_computeArrowPosition:function(){var $0=this.getMaxContentWidth();return this.getLabelPosition()+($0>0?$0+this.getContentArrowGap():$0);},_invalidateMaxIconWidth:function(){this._cachedMaxIconWidth=null;this._invalidateLabelPosition();this._invalidateMenuButtonNeededWidth();},_invalidateMaxLabelWidth:function(){this._cachedMaxLabelWidth=null;this._cachedMaxArrowWidth=null;this._invalidateShortcutPosition();this._invalidateMaxLabelWidthIncShortcut();this._invalidateMaxContentWidth();this._invalidateMenuButtonNeededWidth();},_invalidateMaxShortcutWidth:function(){this._cachedMaxShortcutWidth=null;this._invalidateArrowPosition();this._invalidateMaxContentWidth();this._invalidateMenuButtonNeededWidth();},_invalidateLabelPosition:function(){this._cachedLabelPosition=null;this._invalidateShortcutPosition();},_invalidateShortcutPosition:function(){this._cachedShortcutPosition=null;this._invalidateArrowPosition();},_computeMenuButtonNeededWidth:function(){var $0=0;var $1=this.getMaxIconWidth();var $2=this.getMaxContentWidth();var $3=this.getMaxArrowWidth();if($1>0){$0+=$1;}else{$0+=this.getContentNonIconPadding();}if($2>0){if($1>0){$0+=this.getIconContentGap();}$0+=$2;}if($3>0){if($1>0||$2>0){$0+=this.getContentArrowGap();}$0+=$3;}else{$0+=this.getContentNonArrowPadding();}return $0;},_onmouseover:function($0){var $1=this.getParentMenu();if($1){$1._closeTimer.stop();var $2=this.getOpener();if($2){$1.setHoverItem($2);}}var $3=$0.getTarget();if($3==this){this._openTimer.stop();this._closeTimer.start();this.setHoverItem(null);return;}var $4=this.getOpenItem();if($4){this.setHoverItem($3);this._openTimer.stop();if($3.hasMenu()){if(this.getFastReopen()){this.setOpenItem($3);this._closeTimer.stop();}else{this._openTimer.start();}}else{this._closeTimer.start();}}else{this.setHoverItem($3);this._openTimer.stop();if($3.hasMenu()){this._openTimer.start();}}},_onmouseout:function($0){this._openTimer.stop();var $1=$0.getTarget();if($1!=this&&$1.hasMenu()){this._closeTimer.start();}this.setHoverItem(null);},_onopentimer:function($0){this._openTimer.stop();var $1=this.getHoverItem();if($1&&$1.hasMenu()){this.setOpenItem($1);}},_onclosetimer:function($0){this._closeTimer.stop();this.setOpenItem(null);},_onkeydown:function($0){if($0.getKeyIdentifier()==$[46]){this._onkeydown_enter($0);}$0.preventDefault();},_onkeypress:function($0){switch($0.getKeyIdentifier()){case $[69]:this._onkeypress_up($0);break;case $[76]:this._onkeypress_down($0);break;case $[60]:this._onkeypress_left($0);break;case $[64]:this._onkeypress_right($0);break;default:return;}$0.preventDefault();},_onkeypress_up:function($0){var $1=this.getHoverItem();var $2=$1?$1.isFirstChild()?this.getLastActiveChild():$1.getPreviousActiveSibling([qx.ui.menu.Separator]):this.getLastActiveChild();this.setHoverItem($2);},_onkeypress_down:function($0){var $1=this.getHoverItem();var $2=$1?$1.isLastChild()?this.getFirstActiveChild():$1.getNextActiveSibling([qx.ui.menu.Separator]):this.getFirstActiveChild();this.setHoverItem($2);},_onkeypress_left:function($0){var $1=this.getOpener();if($1 instanceof qx.ui.menu.Button){var $2=this.getOpener().getParentMenu();$2.setOpenItem(null);$2.setHoverItem($1);$2._makeActive();}else if($1 instanceof qx.ui.toolbar.MenuButton){var $3=$1.getParentToolBar();this.getFocusRoot().setActiveChild($3);$3._onkeypress($0);}},_onkeypress_right:function($0){var $1=this.getHoverItem();if($1){var $2=$1.getMenu();if($2){this.setOpenItem($1);$2.setHoverItem($2.getFirstActiveChild());return;}}else if(!this.getOpenItem()){var $3=this.getLayout().getFirstActiveChild();if($3){$3.hasMenu()?this.setOpenItem($3):this.setHoverItem($3);}}var $4=this.getOpener();if($4 instanceof qx.ui.toolbar.MenuButton){var $5=$4.getParentToolBar();this.getFocusRoot().setActiveChild($5);$5._onkeypress($0);}else if($4 instanceof qx.ui.menu.Button&&$1){var $6=$4.getParentMenu();while($6&&$6 instanceof qx.ui.menu.Menu){$4=$6.getOpener();if($4 instanceof qx.ui.menu.Button){$6=$4.getParentMenu();}else{if($4){$6=$4.getParent();}break;}}if($6 instanceof qx.ui.toolbar.Part){$6=$6.getParent();}if($6 instanceof qx.ui.toolbar.ToolBar){this.getFocusRoot().setActiveChild($6);$6._onkeypress($0);}}},_onkeydown_enter:function($0){var $1=this.getHoverItem();if($1){$1.execute();}qx.ui.menu.Manager.getInstance().update();}},destruct:function(){this.hide();this._disposeObjects($[1001],$[702],$[344]);}});
166
qx.Class.define($[160],{extend:qx.ui.popup.Popup,construct:function(){arguments.callee.base.call(this);var $0=this._layout=new qx.ui.menu.Layout;$0.setEdge(0);this.add($0);this.initOpenInterval();this.initCloseInterval();this.addEventListener($[61],this._onmouseover);this.addEventListener($[148],this._onmouseover);this.addEventListener($[105],this._onmouseout);this.addEventListener($[16],this._onkeydown);this.addEventListener($[40],this._onkeypress);this.remapChildrenHandlingTo(this._layout);this.initWidth();this.initHeight();},properties:{appearance:{refine:true,init:$[1457]},width:{refine:true,init:$[3]},height:{refine:true,init:$[3]},iconContentGap:{check:$[5],themeable:true,init:4},labelShortcutGap:{check:$[5],themeable:true,init:10},contentArrowGap:{check:$[5],themeable:true,init:8},contentNonIconPadding:{check:$[5],themeable:true,init:20},contentNonArrowPadding:{check:$[5],themeable:true,init:8},hoverItem:{check:$[66],nullable:true,apply:$[1109]},openItem:{check:$[66],nullable:true,apply:$[1665]},opener:{check:$[66],nullable:true},parentMenu:{check:$[160],nullable:true},fastReopen:{check:$[2],init:false},openInterval:{check:$[5],themeable:true,init:250,apply:$[883]},closeInterval:{check:$[5],themeable:true,init:250,apply:$[980]},subMenuHorizontalOffset:{check:$[5],themeable:true,init:-3},subMenuVerticalOffset:{check:$[5],themeable:true,init:-2},indentShortcuts:{check:$[2],init:true},maxIconWidth:{_cached:true},maxLabelWidth:{_cached:true},maxLabelWidthIncShortcut:{_cached:true},maxShortcutWidth:{_cached:true},maxArrowWidth:{_cached:true},maxContentWidth:{_cached:true},iconPosition:{_cached:true,defaultValue:0},labelPosition:{_cached:true},shortcutPosition:{_cached:true},arrowPosition:{_cached:true},menuButtonNeededWidth:{_cached:true}},members:{_remappingChildTable:[$[422],$[387],$[407],$[486],$[317],$[515],$[464],$[327],$[322],$[1641],$[807],$[1726],$[1036]],_isFocusRoot:false,getLayout:function(){return this._layout;},isSubElement:function($0,$1){if(($0.getParent()===this._layout)||((!$1)&&($0===this))){return true;}for(var $2=this._layout.getChildren(),$3=$2.length,$4=0;$4<$3;$4++){if($2[$4].getMenu&&$2[$4].getMenu()&&$2[$4].getMenu().isSubElement($0,$1)){return true;}}return false;},_beforeAppear:function(){qx.ui.layout.CanvasLayout.prototype._beforeAppear.call(this);qx.ui.menu.Manager.getInstance().add(this);this.bringToFront();this._makeActive();},_beforeDisappear:function(){qx.ui.layout.CanvasLayout.prototype._beforeDisappear.call(this);qx.ui.menu.Manager.getInstance().remove(this);this._makeInactive();this.setHoverItem(null);this.setOpenItem(null);var $0=this.getOpener();if($0){$0.removeState($[14]);}},_applyOpenInterval:function($0,$1){if(!this._openTimer){this._openTimer=new qx.client.Timer($0);this._openTimer.addEventListener($[86],this._onopentimer,this);}else{this._openTimer.setInterval($0);}},_applyCloseInterval:function($0,$1){if(!this._closeTimer){this._closeTimer=new qx.client.Timer(this.getCloseInterval());this._closeTimer.addEventListener($[86],this._onclosetimer,this);}else{this._closeTimer.setInterval($0);}},_applyHoverItem:function($0,$1){if($1){$1.removeState($[43]);}if($0){$0.addState($[43]);}},_applyOpenItem:function($0,$1){if($1){var $2=$1.getMenu();if($2){$2.setParentMenu(null);$2.setOpener(null);$2.hide();}}if($0){var $3=$0.getMenu();if($3){$3.setOpener($0);$3.setParentMenu(this);var $4=$0.getElement();var $5=this.getElement();$3.setTop(qx.bom.element.Location.getTop($4)+this.getSubMenuVerticalOffset());$3.setLeft(qx.bom.element.Location.getLeft($5)+qx.html.Dimension.getBoxWidth($5)+this.getSubMenuHorizontalOffset());$3.show();}}},_computeMaxIconWidth:function(){var $0=this.getLayout().getChildren(),$1=$0.length,$2,$3=0;for(var $4=0;$4<$1;$4++){$2=$0[$4];if($2.hasIcon()){$3=Math.max($3,16);}}return $3;},_computeMaxLabelWidth:function(){var $0=this.getLayout().getChildren(),$1=$0.length,$2,$3=0;for(var $4=0;$4<$1;$4++){$2=$0[$4];if($2.hasLabel()){$3=Math.max($3,$2.getLabelObject().getPreferredBoxWidth());}}return $3;},_computeMaxLabelWidthIncShortcut:function(){var $0=this.getLayout().getChildren(),$1=$0.length,$2,$3=0;for(var $4=0;$4<$1;$4++){$2=$0[$4];if($2.hasLabel()&&$2.hasShortcut()){$3=Math.max($3,$2.getLabelObject().getPreferredBoxWidth());}}return $3;},_computeMaxShortcutWidth:function(){var $0=this.getLayout().getChildren(),$1=$0.length,$2,$3=0;for(var $4=0;$4<$1;$4++){$2=$0[$4];if($2.hasShortcut()){$3=Math.max($3,$2.getShortcutObject().getPreferredBoxWidth());}}return $3;},_computeMaxArrowWidth:function(){var $0=this.getLayout().getChildren(),$1=$0.length,$2,$3=0;for(var $4=0;$4<$1;$4++){$2=$0[$4];if($2.hasMenu()){$3=Math.max($3,4);}}return $3;},_computeMaxContentWidth:function(){var $0;var $1=this.getMaxLabelWidth();var $2=this.getMaxShortcutWidth();if(this.getIndentShortcuts()){var $3=$2+this.getMaxLabelWidthIncShortcut();if($2>0){$3+=this.getLabelShortcutGap();}$0=Math.max($1,$3);}else{$0=$1+$2;if($1>0&&$2>0){$0+=this.getLabelShortcutGap();}}return $0;},_computeIconPosition:function(){return 0;},_computeLabelPosition:function(){var $0=this.getMaxIconWidth();return $0>0?$0+this.getIconContentGap():this.getContentNonIconPadding();},_computeShortcutPosition:function(){return this.getLabelPosition()+this.getMaxContentWidth()-this.getMaxShortcutWidth();},_computeArrowPosition:function(){var $0=this.getMaxContentWidth();return this.getLabelPosition()+($0>0?$0+this.getContentArrowGap():$0);},_invalidateMaxIconWidth:function(){this._cachedMaxIconWidth=null;this._invalidateLabelPosition();this._invalidateMenuButtonNeededWidth();},_invalidateMaxLabelWidth:function(){this._cachedMaxLabelWidth=null;this._cachedMaxArrowWidth=null;this._invalidateShortcutPosition();this._invalidateMaxLabelWidthIncShortcut();this._invalidateMaxContentWidth();this._invalidateMenuButtonNeededWidth();},_invalidateMaxShortcutWidth:function(){this._cachedMaxShortcutWidth=null;this._invalidateArrowPosition();this._invalidateMaxContentWidth();this._invalidateMenuButtonNeededWidth();},_invalidateLabelPosition:function(){this._cachedLabelPosition=null;this._invalidateShortcutPosition();},_invalidateShortcutPosition:function(){this._cachedShortcutPosition=null;this._invalidateArrowPosition();},_computeMenuButtonNeededWidth:function(){var $0=0;var $1=this.getMaxIconWidth();var $2=this.getMaxContentWidth();var $3=this.getMaxArrowWidth();if($1>0){$0+=$1;}else{$0+=this.getContentNonIconPadding();}if($2>0){if($1>0){$0+=this.getIconContentGap();}$0+=$2;}if($3>0){if($1>0||$2>0){$0+=this.getContentArrowGap();}$0+=$3;}else{$0+=this.getContentNonArrowPadding();}return $0;},_onmouseover:function($0){var $1=this.getParentMenu();if($1){$1._closeTimer.stop();var $2=this.getOpener();if($2){$1.setHoverItem($2);}}var $3=$0.getTarget();if($3==this){this._openTimer.stop();this._closeTimer.start();this.setHoverItem(null);return;}var $4=this.getOpenItem();if($4){this.setHoverItem($3);this._openTimer.stop();if($3.hasMenu()){if(this.getFastReopen()){this.setOpenItem($3);this._closeTimer.stop();}else{this._openTimer.start();}}else{this._closeTimer.start();}}else{this.setHoverItem($3);this._openTimer.stop();if($3.hasMenu()){this._openTimer.start();}}},_onmouseout:function($0){this._openTimer.stop();var $1=$0.getTarget();if($1!=this&&$1.hasMenu()){this._closeTimer.start();}this.setHoverItem(null);},_onopentimer:function($0){this._openTimer.stop();var $1=this.getHoverItem();if($1&&$1.hasMenu()){this.setOpenItem($1);}},_onclosetimer:function($0){this._closeTimer.stop();this.setOpenItem(null);},_onkeydown:function($0){if($0.getKeyIdentifier()==$[46]){this._onkeydown_enter($0);}$0.preventDefault();},_onkeypress:function($0){switch($0.getKeyIdentifier()){case $[69]:this._onkeypress_up($0);break;case $[76]:this._onkeypress_down($0);break;case $[60]:this._onkeypress_left($0);break;case $[64]:this._onkeypress_right($0);break;default:return;}$0.preventDefault();},_onkeypress_up:function($0){var $1=this.getHoverItem();var $2=$1?$1.isFirstChild()?this.getLastActiveChild():$1.getPreviousActiveSibling([qx.ui.menu.Separator]):this.getLastActiveChild();this.setHoverItem($2);},_onkeypress_down:function($0){var $1=this.getHoverItem();var $2=$1?$1.isLastChild()?this.getFirstActiveChild():$1.getNextActiveSibling([qx.ui.menu.Separator]):this.getFirstActiveChild();this.setHoverItem($2);},_onkeypress_left:function($0){var $1=this.getOpener();if($1 instanceof qx.ui.menu.Button){var $2=this.getOpener().getParentMenu();$2.setOpenItem(null);$2.setHoverItem($1);$2._makeActive();}else if($1 instanceof qx.ui.toolbar.MenuButton){var $3=$1.getParentToolBar();this.getFocusRoot().setActiveChild($3);$3._onkeypress($0);}},_onkeypress_right:function($0){var $1=this.getHoverItem();if($1){var $2=$1.getMenu();if($2){this.setOpenItem($1);$2.setHoverItem($2.getFirstActiveChild());return;}}else if(!this.getOpenItem()){var $3=this.getLayout().getFirstActiveChild();if($3){$3.hasMenu()?this.setOpenItem($3):this.setHoverItem($3);}}var $4=this.getOpener();if($4 instanceof qx.ui.toolbar.MenuButton){var $5=$4.getParentToolBar();this.getFocusRoot().setActiveChild($5);$5._onkeypress($0);}else if($4 instanceof qx.ui.menu.Button&&$1){var $6=$4.getParentMenu();while($6&&$6 instanceof qx.ui.menu.Menu){$4=$6.getOpener();if($4 instanceof qx.ui.menu.Button){$6=$4.getParentMenu();}else{if($4){$6=$4.getParent();}break;}}if($6 instanceof qx.ui.toolbar.Part){$6=$6.getParent();}if($6 instanceof qx.ui.toolbar.ToolBar){this.getFocusRoot().setActiveChild($6);$6._onkeypress($0);}}},_onkeydown_enter:function($0){var $1=this.getHoverItem();if($1){$1.execute();}qx.ui.menu.Manager.getInstance().update();}},destruct:function(){this.hide();this._disposeObjects($[1000],$[703],$[343]);}});
167
qx.Class.define($[1472],{extend:qx.ui.layout.VerticalBoxLayout,properties:{anonymous:{refine:true,init:true},appearance:{refine:true,init:$[570]}},members:{_createLayoutImpl:function(){return new qx.ui.menu.MenuLayoutImpl(this);}}});
167
qx.Class.define($[1471],{extend:qx.ui.layout.VerticalBoxLayout,properties:{anonymous:{refine:true,init:true},appearance:{refine:true,init:$[570]}},members:{_createLayoutImpl:function(){return new qx.ui.menu.MenuLayoutImpl(this);}}});
168
qx.Class.define($[634],{extend:qx.ui.layout.impl.VerticalBoxLayoutImpl,construct:function($0){arguments.callee.base.call(this,$0);this.setEnableFlexSupport(false);},members:{updateChildrenOnJobQueueFlush:function($0){var $1=this.getWidget();var $2,$3;if($0.preferredInnerWidth){var $2=$1.getChildren(),$4=$2.length,$3;var $5,$6;for(var $7=0;$7<$4;$7++){$3=$2[$7];$5=$3.getChildren();$6=$5.length;for(var $8=0;$8<$6;$8++){$5[$8].addToLayoutChanges($[100]);}}}return arguments.callee.base.call(this,$0);}}});
168
qx.Class.define($[634],{extend:qx.ui.layout.impl.VerticalBoxLayoutImpl,construct:function($0){arguments.callee.base.call(this,$0);this.setEnableFlexSupport(false);},members:{updateChildrenOnJobQueueFlush:function($0){var $1=this.getWidget();var $2,$3;if($0.preferredInnerWidth){var $2=$1.getChildren(),$4=$2.length,$3;var $5,$6;for(var $7=0;$7<$4;$7++){$3=$2[$7];$5=$3.getChildren();$6=$5.length;for(var $8=0;$8<$6;$8++){$5[$8].addToLayoutChanges($[100]);}}}return arguments.callee.base.call(this,$0);}}});
169
qx.Class.define($[609],{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);this.initHeight();this.setStyleProperty($[210],$[41]);this.setStyleProperty($[521],$[41]);this._line=new qx.ui.basic.Terminator;this._line.setAnonymous(true);this._line.setAppearance($[1404]);this.add(this._line);this.addEventListener($[12],this._onmousedown);},properties:{height:{refine:true,init:$[3]},appearance:{refine:true,init:$[1367]}},members:{hasIcon:qx.lang.Function.returnFalse,hasLabel:qx.lang.Function.returnFalse,hasShortcut:qx.lang.Function.returnFalse,hasMenu:qx.lang.Function.returnFalse,_onmousedown:function($0){$0.stopPropagation();}},destruct:function(){this._disposeObjects($[1613]);}});
169
qx.Class.define($[609],{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);this.initHeight();this.setStyleProperty($[210],$[41]);this.setStyleProperty($[522],$[41]);this._line=new qx.ui.basic.Terminator;this._line.setAnonymous(true);this._line.setAppearance($[1405]);this.add(this._line);this.addEventListener($[12],this._onmousedown);},properties:{height:{refine:true,init:$[3]},appearance:{refine:true,init:$[1368]}},members:{hasIcon:qx.lang.Function.returnFalse,hasLabel:qx.lang.Function.returnFalse,hasShortcut:qx.lang.Function.returnFalse,hasMenu:qx.lang.Function.returnFalse,_onmousedown:function($0){$0.stopPropagation();}},destruct:function(){this._disposeObjects($[1612]);}});
170
qx.Class.define($[1382],{extend:qx.ui.layout.impl.HorizontalBoxLayoutImpl,construct:function($0){arguments.callee.base.call(this,$0);this.setEnableFlexSupport(false);},members:{computeChildrenNeededWidth:function(){var $0=this.getWidget();var $1=$0.getParent().getParent();return $1.getMenuButtonNeededWidth();},updateSelfOnChildOuterWidthChange:function($0){var $1=this.getWidget();var $2=$1.getParent().getParent();switch($0){case $1._iconObject:$2._invalidateMaxIconWidth();break;case $1._labelObject:$2._invalidateMaxLabelWidth();break;case $1._shortcutObject:$2._invalidateMaxShortcutWidth();break;case $1._arrowObject:$2._invalidateMaxArrowWidth();break;}return arguments.callee.base.call(this,$0);},layoutChild_locationX:function($0,$1){var $2=this.getWidget();var $3=$2.getParent().getParent();var $4=null;switch($0){case $2._iconObject:$4=$3.getIconPosition();break;case $2._labelObject:$4=$3.getLabelPosition();break;case $2._shortcutObject:$4=$3.getShortcutPosition();break;case $2._arrowObject:$4=$3.getWidth()-18;break;}if($4!=null){$4+=$2.getPaddingLeft();$0._renderRuntimeLeft($4);}}}});
170
qx.Class.define($[1383],{extend:qx.ui.layout.impl.HorizontalBoxLayoutImpl,construct:function($0){arguments.callee.base.call(this,$0);this.setEnableFlexSupport(false);},members:{computeChildrenNeededWidth:function(){var $0=this.getWidget();var $1=$0.getParent().getParent();return $1.getMenuButtonNeededWidth();},updateSelfOnChildOuterWidthChange:function($0){var $1=this.getWidget();var $2=$1.getParent().getParent();switch($0){case $1._iconObject:$2._invalidateMaxIconWidth();break;case $1._labelObject:$2._invalidateMaxLabelWidth();break;case $1._shortcutObject:$2._invalidateMaxShortcutWidth();break;case $1._arrowObject:$2._invalidateMaxArrowWidth();break;}return arguments.callee.base.call(this,$0);},layoutChild_locationX:function($0,$1){var $2=this.getWidget();var $3=$2.getParent().getParent();var $4=null;switch($0){case $2._iconObject:$4=$3.getIconPosition();break;case $2._labelObject:$4=$3.getLabelPosition();break;case $2._shortcutObject:$4=$3.getShortcutPosition();break;case $2._arrowObject:$4=$3.getWidth()-18;break;}if($4!=null){$4+=$2.getPaddingLeft();$0._renderRuntimeLeft($4);}}}});
171
qx.Class.define($[550],{extend:qx.ui.menu.Button,construct:function($0,$1,$2){arguments.callee.base.call(this,$0,null,$1);if($2!=null){this.setChecked($2);}},properties:{appearance:{refine:true,init:$[801]},name:{check:$[6]},value:{check:$[6],event:$[124]},checked:{check:$[2],init:false,apply:$[165]}},members:{_applyChecked:function($0,$1){$0===true?this.addState($[122]):this.removeState($[122]);},execute:function(){this._processExecute();arguments.callee.base.call(this);},_processExecute:function(){this.toggleChecked();}}});
171
qx.Class.define($[550],{extend:qx.ui.menu.Button,construct:function($0,$1,$2){arguments.callee.base.call(this,$0,null,$1);if($2!=null){this.setChecked($2);}},properties:{appearance:{refine:true,init:$[802]},name:{check:$[6]},value:{check:$[6],event:$[124]},checked:{check:$[2],init:false,apply:$[165]}},members:{_applyChecked:function($0,$1){$0===true?this.addState($[122]):this.removeState($[122]);},execute:function(){this._processExecute();arguments.callee.base.call(this);},_processExecute:function(){this.toggleChecked();}}});
172
qx.Class.define($[1610],{extend:qx.ui.menu.CheckBox,properties:{appearance:{refine:true,init:$[1081]},manager:{check:$[176],nullable:true,apply:$[189]}},members:{_applyChecked:function($0,$1){arguments.callee.base.call(this,$0,$1);var $2=this.getManager();if($2){$2.handleItemChecked(this,$0);}},_applyManager:function($0,$1){if($1){$1.remove(this);}if($0){$0.add(this);}},_applyName:function($0,$1){if(this.getManager()){this.getManager().setName($0);}},_processExecute:function(){this.setChecked(true);}}});
172
qx.Class.define($[1609],{extend:qx.ui.menu.CheckBox,properties:{appearance:{refine:true,init:$[1081]},manager:{check:$[176],nullable:true,apply:$[189]}},members:{_applyChecked:function($0,$1){arguments.callee.base.call(this,$0,$1);var $2=this.getManager();if($2){$2.handleItemChecked(this,$0);}},_applyManager:function($0,$1){if($1){$1.remove(this);}if($0){$0.add(this);}},_applyName:function($0,$1){if(this.getManager()){this.getManager().setName($0);}},_processExecute:function(){this.setChecked(true);}}});
173
qx.Class.define($[693],{extend:qx.ui.toolbar.ToolBar});
174
qx.Class.define($[908],{extend:qx.ui.toolbar.MenuButton});
173
qx.Class.define($[908],{extend:qx.ui.toolbar.MenuButton});
175
qx.Class.define($[143],{extend:qx.event.type.MouseEvent,construct:function($0,$1,$2,$3){this._mouseEvent=$1;var $4=null;switch($0){case $[177]:case $[149]:$4=$1.getOriginalTarget();}arguments.callee.base.call(this,$0,$1.getDomEvent(),$2.getElement(),$2,$4,$3);},members:{getMouseEvent:function(){return this._mouseEvent;},startDrag:function(){if(this.getType()!=$[177]){throw new Error("qx.event.type.DragEvent startDrag can only be called during the dragstart event: "+this.getType());}this.stopPropagation();qx.event.handler.DragAndDropHandler.getInstance().startDrag();},addData:function($0,$1){qx.event.handler.DragAndDropHandler.getInstance().addData($0,$1);},getData:function($0){return qx.event.handler.DragAndDropHandler.getInstance().getData($0);},clearData:function(){qx.event.handler.DragAndDropHandler.getInstance().clearData();},getDropDataTypes:function(){return qx.event.handler.DragAndDropHandler.getInstance().getDropDataTypes();},addAction:function($0){qx.event.handler.DragAndDropHandler.getInstance().addAction($0);},removeAction:function($0){qx.event.handler.DragAndDropHandler.getInstance().removeAction($0);},getAction:function(){return qx.event.handler.DragAndDropHandler.getInstance().getCurrentAction();},clearActions:function(){qx.event.handler.DragAndDropHandler.getInstance().clearActions();},setFeedbackWidget:function($0,$1,$2,$3){qx.event.handler.DragAndDropHandler.getInstance().setFeedbackWidget($0,$1,$2,$3);},setCursorPosition:function($0,$1){qx.event.handler.DragAndDropHandler.getInstance().setCursorPosition($0,$1);}},destruct:function(){this._disposeFields($[991]);}});
174
qx.Class.define($[694],{extend:qx.ui.toolbar.ToolBar});
176
qx.Class.define($[235],{type:$[18],extend:qx.util.manager.Object,construct:function(){arguments.callee.base.call(this);this.__data={};this.__actions={};this.__cursors={};var $0,$1;var $2=[$[232],$[164],$[163],$[915]];for(var $3=0,$4=$2.length;$3<$4;$3++){$1=$2[$3];$0=this.__cursors[$1]=new qx.ui.basic.Image;$0.setAppearance($[1344]+$1);$0.setZIndex(1e8);}},properties:{sourceWidget:{check:$[66],nullable:true},destinationWidget:{check:$[66],nullable:true,apply:$[1508]},currentAction:{check:$[6],nullable:true,event:$[1686]},defaultCursorDeltaX:{check:$[5],init:5},defaultCursorDeltaY:{check:$[5],init:15}},members:{__lastDestinationEvent:null,_applyDestinationWidget:function($0,$1){if($0){$0.dispatchEvent(new qx.event.type.DragEvent($[285],this.__lastDestinationEvent,$0,this.getSourceWidget()));this.__lastDestinationEvent=null;}},addData:function($0,$1){this.__data[$0]=$1;},getData:function($0){return this.__data[$0];},clearData:function(){this.__data={};},getDropDataTypes:function(){var $0=this.getDestinationWidget();var $1=[];if(!$0){return $1;}var $2=$0.getDropDataTypes();for(var $3=0,$4=$2.length;$3<$4;$3++){if($2[$3] in this.__data){$1.push($2[$3]);}}return $1;},getDropTarget:qx.core.Variant.select($[1],{"default":function($0){var $1=$0.getTarget();while($1!=null){if(!$1.supportsDrop(this.__dragCache)){return null;}if(this.supportsDrop($1)){return $1;}$1=$1.getParent();}return null;}}),startDrag:function(){if(!this.__dragCache){throw new Error("Invalid usage of startDrag. Missing dragInfo!");}this.__dragCache.dragHandlerActive=true;this.setSourceWidget(this.__dragCache.sourceWidget);if(this.__feedbackWidget){this.__feedbackWidget.setVisibility(false);var $0=qx.ui.core.ClientDocument.getInstance();$0.add(this.__feedbackWidget);this.__feedbackWidget.setZIndex(1e8);}},_fireUserEvents:function($0,$1,$2){if($0&&$0!=$1&&$0.hasEventListeners($[311])){$0.dispatchEvent(new qx.event.type.DragEvent($[311],$2,$0,$1),true);}if($1){if($0!=$1&&$1.hasEventListeners($[149])){$1.dispatchEvent(new qx.event.type.DragEvent($[149],$2,$1,$0),true);}if($1.hasEventListeners($[515])){$1.dispatchEvent(new qx.event.type.DragEvent($[515],$2,$1,null),true);}}},handleMouseEvent:function($0){switch($0.getType()){case $[12]:return this._handleMouseDown($0);case $[22]:return this._handleMouseUp($0);case $[148]:return this._handleMouseMove($0);}},_handleMouseDown:function($0){if($0.getDefaultPrevented()||!$0.isLeftButtonPressed()){return;}this.__dragCache={startScreenX:$0.getScreenX(),startScreenY:$0.getScreenY(),pageX:$0.getPageX(),pageY:$0.getPageY(),sourceWidget:$0.getTarget(),sourceTopLevel:$0.getTarget().getTopLevelWidget(),dragHandlerActive:false,hasFiredDragStart:false};},_handleMouseMove:function($0){if(!this.__dragCache){return;}if(this.__dragCache.dragHandlerActive){this.__dragCache.pageX=$0.getPageX();this.__dragCache.pageY=$0.getPageY();var $1=this.getDropTarget($0);this.setCurrentAction($1?this._evalNewAction($0.isShiftPressed(),$0.isCtrlPressed(),$0.isAltPressed()):null);this._fireUserEvents(this.__dragCache.currentDropWidget,$1,$0);this.__dragCache.currentDropWidget=$1;this._renderCursor();this._renderFeedbackWidget();}else if(!this.__dragCache.hasFiredDragStart){if(Math.abs($0.getScreenX()-this.__dragCache.startScreenX)>5||Math.abs($0.getScreenY()-this.__dragCache.startScreenY)>5){this.__dragCache.sourceWidget.dispatchEvent(new qx.event.type.DragEvent($[177],$0,this.__dragCache.sourceWidget),true);this.__dragCache.hasFiredDragStart=true;if(this.__dragCache.dragHandlerActive){this._fireUserEvents(this.__dragCache.currentDropWidget,this.__dragCache.sourceWidget,$0);this.__dragCache.currentDropWidget=this.__dragCache.sourceWidget;qx.ui.core.ClientDocument.getInstance().setCapture(true);}}}},_handleMouseUp:function($0){if(!this.__dragCache){return;}if(this.__dragCache.dragHandlerActive){this._endDrag(this.getDropTarget($0),$0);}else{this.__dragCache=null;}},handleKeyEvent:function($0){if(!this.__dragCache){return;}switch($0.getType()){case $[16]:this._handleKeyDown($0);return;case $[88]:this._handleKeyUp($0);return;}},_handleKeyDown:function($0){if($0.getKeyIdentifier()==$[129]){this.cancelDrag($0);}else if(this.getCurrentAction()!=null){switch($0.getKeyIdentifier()){case $[142]:case $[125]:case $[136]:this.setAction(this._evalNewAction($0.isShiftPressed(),$0.isCtrlPressed(),$0.isAltPressed()));this._renderCursor();$0.preventDefault();}}},_handleKeyUp:function($0){var $1=$0.getKeyIdentifier()==$[142];var $2=$0.getKeyIdentifier()==$[125];var $3=$0.getKeyIdentifier()==$[136];if($1||$2||$3){if(this.getCurrentAction()!=null){this.setAction(this._evalNewAction(!$1&&$0.isShiftPressed(),!$2&&$0.isCtrlPressed(),!$3&&$0.isAltPressed()));this._renderCursor();$0.preventDefault();}}},cancelDrag:function($0){if(!this.__dragCache){return;}if(this.__dragCache.dragHandlerActive){this._endDrag(null,$0);}else{this.__dragCache=null;}},globalCancelDrag:function(){if(this.__dragCache&&this.__dragCache.dragHandlerActive){this._endDragCore();}},_endDrag:function($0,$1){if($0){this.__lastDestinationEvent=$1;this.setDestinationWidget($0);}this.getSourceWidget().dispatchEvent(new qx.event.type.DragEvent($[489],$1,this.getSourceWidget(),$0),true);this._fireUserEvents(this.__dragCache&&this.__dragCache.currentDropWidget,null,$1);this._endDragCore();},_endDragCore:function(){if(this.__feedbackWidget){var $0=qx.ui.core.ClientDocument.getInstance();$0.remove(this.__feedbackWidget);if(this.__feedbackAutoDispose){this.__feedbackWidget.dispose();}this.__feedbackWidget=null;}var $1=this.__cursor;if($1){$1._style.display=$[7];this.__cursor=null;}this._cursorDeltaX=null;this._cursorDeltaY=null;if(this.__dragCache){this.__dragCache.currentDropWidget=null;this.__dragCache=null;}qx.ui.core.ClientDocument.getInstance().setCapture(false);this.clearData();this.clearActions();this.setSourceWidget(null);this.setDestinationWidget(null);},setCursorPosition:function($0,$1){this._cursorDeltaX=$0;this._cursorDeltaY=$1;},_renderCursor:function(){var $0;var $1=this.__cursor;switch(this.getCurrentAction()){case $[232]:$0=this.__cursors.move;break;case $[164]:$0=this.__cursors.copy;break;case $[163]:$0=this.__cursors.alias;break;default:$0=this.__cursors.nodrop;}if($0!=$1&&$1!=null){$1._style.display=$[7];}if(!$0._initialLayoutDone){qx.ui.core.ClientDocument.getInstance().add($0);qx.ui.core.Widget.flushGlobalQueues();}$0._renderRuntimeLeft(this.__dragCache.pageX+((this._cursorDeltaX!=null)?this._cursorDeltaX:this.getDefaultCursorDeltaX()));$0._renderRuntimeTop(this.__dragCache.pageY+((this._cursorDeltaY!=null)?this._cursorDeltaY:this.getDefaultCursorDeltaY()));if($0!=$1){$0._style.display=$[0];}this.__cursor=$0;},supportsDrop:function($0){var $1=$0.getDropDataTypes();if(!$1){return false;}for(var $2=0;$2<$1.length;$2++){if($1[$2] in this.__data){return true;}}return false;},addAction:function($0,$1){this.__actions[$0]=true;if($1||this.getCurrentAction()==null){this.setCurrentAction($0);}},clearActions:function(){this.__actions={};this.setCurrentAction(null);},removeAction:function($0){delete this.__actions[$0];if(this.getCurrentAction()==$0){this.setCurrentAction(null);}},setAction:function($0){if($0!=null&&!($0 in this.__actions)){this.addAction($0,true);}else{this.setCurrentAction($0);}},_evalNewAction:function($0,$1,$2){if($0&&$1&&$[163] in this.__actions){return $[163];}else if($0&&$2&&$[164] in this.__actions){return $[164];}else if($0&&$[232] in this.__actions){return $[232];}else if($2&&$[163] in this.__actions){return $[163];}else if($1&&$[164] in this.__actions){return $[164];}else{for(var $3 in this.__actions){return $3;}}return null;},setFeedbackWidget:function($0,$1,$2,$3){this.__feedbackWidget=$0;this.__feedbackDeltaX=($1!=null)?$1:10;this.__feedbackDeltaY=($2!=null)?$2:10;this.__feedbackAutoDispose=$3?true:false;},_renderFeedbackWidget:function(){if(this.__feedbackWidget){this.__feedbackWidget.setVisibility(true);this.__feedbackWidget._renderRuntimeLeft(this.__dragCache.pageX+this.__feedbackDeltaX);this.__feedbackWidget._renderRuntimeTop(this.__dragCache.pageY+this.__feedbackDeltaY);}}},destruct:function(){this._disposeObjectDeep($[1457],1);this._disposeObjects($[543]);this._disposeFields($[1241],$[1599],$[924],$[1581]);}});
175
qx.Class.define($[235],{type:$[18],extend:qx.util.manager.Object,construct:function(){arguments.callee.base.call(this);this.__data={};this.__actions={};this.__cursors={};var $0,$1;var $2=[$[232],$[164],$[163],$[915]];for(var $3=0,$4=$2.length;$3<$4;$3++){$1=$2[$3];$0=this.__cursors[$1]=new qx.ui.basic.Image;$0.setAppearance($[1344]+$1);$0.setZIndex(1e8);}},properties:{sourceWidget:{check:$[66],nullable:true},destinationWidget:{check:$[66],nullable:true,apply:$[1507]},currentAction:{check:$[6],nullable:true,event:$[1686]},defaultCursorDeltaX:{check:$[5],init:5},defaultCursorDeltaY:{check:$[5],init:15}},members:{__lastDestinationEvent:null,_applyDestinationWidget:function($0,$1){if($0){$0.dispatchEvent(new qx.event.type.DragEvent($[285],this.__lastDestinationEvent,$0,this.getSourceWidget()));this.__lastDestinationEvent=null;}},addData:function($0,$1){this.__data[$0]=$1;},getData:function($0){return this.__data[$0];},clearData:function(){this.__data={};},getDropDataTypes:function(){var $0=this.getDestinationWidget();var $1=[];if(!$0){return $1;}var $2=$0.getDropDataTypes();for(var $3=0,$4=$2.length;$3<$4;$3++){if($2[$3] in this.__data){$1.push($2[$3]);}}return $1;},getDropTarget:qx.core.Variant.select($[1],{"default":function($0){var $1=$0.getTarget();while($1!=null){if(!$1.supportsDrop(this.__dragCache)){return null;}if(this.supportsDrop($1)){return $1;}$1=$1.getParent();}return null;}}),startDrag:function(){if(!this.__dragCache){throw new Error("Invalid usage of startDrag. Missing dragInfo!");}this.__dragCache.dragHandlerActive=true;this.setSourceWidget(this.__dragCache.sourceWidget);if(this.__feedbackWidget){this.__feedbackWidget.setVisibility(false);var $0=qx.ui.core.ClientDocument.getInstance();$0.add(this.__feedbackWidget);this.__feedbackWidget.setZIndex(1e8);}},_fireUserEvents:function($0,$1,$2){if($0&&$0!=$1&&$0.hasEventListeners($[311])){$0.dispatchEvent(new qx.event.type.DragEvent($[311],$2,$0,$1),true);}if($1){if($0!=$1&&$1.hasEventListeners($[149])){$1.dispatchEvent(new qx.event.type.DragEvent($[149],$2,$1,$0),true);}if($1.hasEventListeners($[516])){$1.dispatchEvent(new qx.event.type.DragEvent($[516],$2,$1,null),true);}}},handleMouseEvent:function($0){switch($0.getType()){case $[12]:return this._handleMouseDown($0);case $[22]:return this._handleMouseUp($0);case $[148]:return this._handleMouseMove($0);}},_handleMouseDown:function($0){if($0.getDefaultPrevented()||!$0.isLeftButtonPressed()){return;}this.__dragCache={startScreenX:$0.getScreenX(),startScreenY:$0.getScreenY(),pageX:$0.getPageX(),pageY:$0.getPageY(),sourceWidget:$0.getTarget(),sourceTopLevel:$0.getTarget().getTopLevelWidget(),dragHandlerActive:false,hasFiredDragStart:false};},_handleMouseMove:function($0){if(!this.__dragCache){return;}if(this.__dragCache.dragHandlerActive){this.__dragCache.pageX=$0.getPageX();this.__dragCache.pageY=$0.getPageY();var $1=this.getDropTarget($0);this.setCurrentAction($1?this._evalNewAction($0.isShiftPressed(),$0.isCtrlPressed(),$0.isAltPressed()):null);this._fireUserEvents(this.__dragCache.currentDropWidget,$1,$0);this.__dragCache.currentDropWidget=$1;this._renderCursor();this._renderFeedbackWidget();}else if(!this.__dragCache.hasFiredDragStart){if(Math.abs($0.getScreenX()-this.__dragCache.startScreenX)>5||Math.abs($0.getScreenY()-this.__dragCache.startScreenY)>5){this.__dragCache.sourceWidget.dispatchEvent(new qx.event.type.DragEvent($[177],$0,this.__dragCache.sourceWidget),true);this.__dragCache.hasFiredDragStart=true;if(this.__dragCache.dragHandlerActive){this._fireUserEvents(this.__dragCache.currentDropWidget,this.__dragCache.sourceWidget,$0);this.__dragCache.currentDropWidget=this.__dragCache.sourceWidget;qx.ui.core.ClientDocument.getInstance().setCapture(true);}}}},_handleMouseUp:function($0){if(!this.__dragCache){return;}if(this.__dragCache.dragHandlerActive){this._endDrag(this.getDropTarget($0),$0);}else{this.__dragCache=null;}},handleKeyEvent:function($0){if(!this.__dragCache){return;}switch($0.getType()){case $[16]:this._handleKeyDown($0);return;case $[84]:this._handleKeyUp($0);return;}},_handleKeyDown:function($0){if($0.getKeyIdentifier()==$[129]){this.cancelDrag($0);}else if(this.getCurrentAction()!=null){switch($0.getKeyIdentifier()){case $[142]:case $[125]:case $[136]:this.setAction(this._evalNewAction($0.isShiftPressed(),$0.isCtrlPressed(),$0.isAltPressed()));this._renderCursor();$0.preventDefault();}}},_handleKeyUp:function($0){var $1=$0.getKeyIdentifier()==$[142];var $2=$0.getKeyIdentifier()==$[125];var $3=$0.getKeyIdentifier()==$[136];if($1||$2||$3){if(this.getCurrentAction()!=null){this.setAction(this._evalNewAction(!$1&&$0.isShiftPressed(),!$2&&$0.isCtrlPressed(),!$3&&$0.isAltPressed()));this._renderCursor();$0.preventDefault();}}},cancelDrag:function($0){if(!this.__dragCache){return;}if(this.__dragCache.dragHandlerActive){this._endDrag(null,$0);}else{this.__dragCache=null;}},globalCancelDrag:function(){if(this.__dragCache&&this.__dragCache.dragHandlerActive){this._endDragCore();}},_endDrag:function($0,$1){if($0){this.__lastDestinationEvent=$1;this.setDestinationWidget($0);}this.getSourceWidget().dispatchEvent(new qx.event.type.DragEvent($[488],$1,this.getSourceWidget(),$0),true);this._fireUserEvents(this.__dragCache&&this.__dragCache.currentDropWidget,null,$1);this._endDragCore();},_endDragCore:function(){if(this.__feedbackWidget){var $0=qx.ui.core.ClientDocument.getInstance();$0.remove(this.__feedbackWidget);if(this.__feedbackAutoDispose){this.__feedbackWidget.dispose();}this.__feedbackWidget=null;}var $1=this.__cursor;if($1){$1._style.display=$[7];this.__cursor=null;}this._cursorDeltaX=null;this._cursorDeltaY=null;if(this.__dragCache){this.__dragCache.currentDropWidget=null;this.__dragCache=null;}qx.ui.core.ClientDocument.getInstance().setCapture(false);this.clearData();this.clearActions();this.setSourceWidget(null);this.setDestinationWidget(null);},setCursorPosition:function($0,$1){this._cursorDeltaX=$0;this._cursorDeltaY=$1;},_renderCursor:function(){var $0;var $1=this.__cursor;switch(this.getCurrentAction()){case $[232]:$0=this.__cursors.move;break;case $[164]:$0=this.__cursors.copy;break;case $[163]:$0=this.__cursors.alias;break;default:$0=this.__cursors.nodrop;}if($0!=$1&&$1!=null){$1._style.display=$[7];}if(!$0._initialLayoutDone){qx.ui.core.ClientDocument.getInstance().add($0);qx.ui.core.Widget.flushGlobalQueues();}$0._renderRuntimeLeft(this.__dragCache.pageX+((this._cursorDeltaX!=null)?this._cursorDeltaX:this.getDefaultCursorDeltaX()));$0._renderRuntimeTop(this.__dragCache.pageY+((this._cursorDeltaY!=null)?this._cursorDeltaY:this.getDefaultCursorDeltaY()));if($0!=$1){$0._style.display=$[0];}this.__cursor=$0;},supportsDrop:function($0){var $1=$0.getDropDataTypes();if(!$1){return false;}for(var $2=0;$2<$1.length;$2++){if($1[$2] in this.__data){return true;}}return false;},addAction:function($0,$1){this.__actions[$0]=true;if($1||this.getCurrentAction()==null){this.setCurrentAction($0);}},clearActions:function(){this.__actions={};this.setCurrentAction(null);},removeAction:function($0){delete this.__actions[$0];if(this.getCurrentAction()==$0){this.setCurrentAction(null);}},setAction:function($0){if($0!=null&&!($0 in this.__actions)){this.addAction($0,true);}else{this.setCurrentAction($0);}},_evalNewAction:function($0,$1,$2){if($0&&$1&&$[163] in this.__actions){return $[163];}else if($0&&$2&&$[164] in this.__actions){return $[164];}else if($0&&$[232] in this.__actions){return $[232];}else if($2&&$[163] in this.__actions){return $[163];}else if($1&&$[164] in this.__actions){return $[164];}else{for(var $3 in this.__actions){return $3;}}return null;},setFeedbackWidget:function($0,$1,$2,$3){this.__feedbackWidget=$0;this.__feedbackDeltaX=($1!=null)?$1:10;this.__feedbackDeltaY=($2!=null)?$2:10;this.__feedbackAutoDispose=$3?true:false;},_renderFeedbackWidget:function(){if(this.__feedbackWidget){this.__feedbackWidget.setVisibility(true);this.__feedbackWidget._renderRuntimeLeft(this.__dragCache.pageX+this.__feedbackDeltaX);this.__feedbackWidget._renderRuntimeTop(this.__dragCache.pageY+this.__feedbackDeltaY);}}},destruct:function(){this._disposeObjectDeep($[1456],1);this._disposeObjects($[543]);this._disposeFields($[1240],$[1598],$[923],$[1580]);}});
177
qx.Class.define($[1407],{statics:{getWindow:qx.core.Variant.select($[1],{"mshtml":function($0){try{return $0.contentWindow;}catch(ex){return null;}},"default":function($0){try{var $1=qx.html.Iframe.getDocument($0);return $1?$1.defaultView:null;}catch(ex){return null;}}}),getDocument:qx.core.Variant.select($[1],{"mshtml":function($0){try{var $1=qx.html.Iframe.getWindow($0);return $1?$1.document:null;}catch(ex){return null;}},"default":function($0){try{return $0.contentDocument;}catch(ex){return null;}}}),getBody:function($0){var $1=qx.html.Iframe.getDocument($0);return $1?$1.getElementsByTagName($[126])[0]:null;}}});
176
qx.Class.define($[143],{extend:qx.event.type.MouseEvent,construct:function($0,$1,$2,$3){this._mouseEvent=$1;var $4=null;switch($0){case $[177]:case $[149]:$4=$1.getOriginalTarget();}arguments.callee.base.call(this,$0,$1.getDomEvent(),$2.getElement(),$2,$4,$3);},members:{getMouseEvent:function(){return this._mouseEvent;},startDrag:function(){if(this.getType()!=$[177]){throw new Error("qx.event.type.DragEvent startDrag can only be called during the dragstart event: "+this.getType());}this.stopPropagation();qx.event.handler.DragAndDropHandler.getInstance().startDrag();},addData:function($0,$1){qx.event.handler.DragAndDropHandler.getInstance().addData($0,$1);},getData:function($0){return qx.event.handler.DragAndDropHandler.getInstance().getData($0);},clearData:function(){qx.event.handler.DragAndDropHandler.getInstance().clearData();},getDropDataTypes:function(){return qx.event.handler.DragAndDropHandler.getInstance().getDropDataTypes();},addAction:function($0){qx.event.handler.DragAndDropHandler.getInstance().addAction($0);},removeAction:function($0){qx.event.handler.DragAndDropHandler.getInstance().removeAction($0);},getAction:function(){return qx.event.handler.DragAndDropHandler.getInstance().getCurrentAction();},clearActions:function(){qx.event.handler.DragAndDropHandler.getInstance().clearActions();},setFeedbackWidget:function($0,$1,$2,$3){qx.event.handler.DragAndDropHandler.getInstance().setFeedbackWidget($0,$1,$2,$3);},setCursorPosition:function($0,$1){qx.event.handler.DragAndDropHandler.getInstance().setCursorPosition($0,$1);}},destruct:function(){this._disposeFields($[990]);}});
178
qx.Class.define($[509],{extend:qx.core.Target,construct:function($0){arguments.callee.base.call(this);this.setRequest($0);$0.setTransport(this);},events:{"sending":$[4],"receiving":$[4],"completed":$[94],"aborted":$[94],"failed":$[94],"timeout":$[94]},statics:{typesOrder:[$[293],$[294],$[1169]],typesReady:false,typesAvailable:{},typesSupported:{},registerType:function($0,$1){qx.io.remote.Exchange.typesAvailable[$1]=$0;},initTypes:function(){if(qx.io.remote.Exchange.typesReady){return;}for(var $0 in qx.io.remote.Exchange.typesAvailable){var $1=qx.io.remote.Exchange.typesAvailable[$0];if($1.isSupported()){qx.io.remote.Exchange.typesSupported[$0]=$1;}}qx.io.remote.Exchange.typesReady=true;if(qx.lang.Object.isEmpty(qx.io.remote.Exchange.typesSupported)){throw new Error("No supported transport types were found!");}},canHandle:function($0,$1,$2){if(!qx.lang.Array.contains($0.handles.responseTypes,$2)){return false;}for(var $3 in $1){if(!$0.handles[$3]){return false;}}return true;},_nativeMap:{0:$[130],1:$[71],2:$[29],3:$[39],4:$[15]},wasSuccessful:function($0,$1,$2){if($2){switch($0){case null:case 0:return true;case -1:return $1<4;default:return typeof $0===$[65];}}else{switch($0){case -1:{};return $1<4;case 200:case 304:return true;case 201:case 202:case 203:case 204:case 205:return true;case 206:{};return $1!==4;case 300:case 301:case 302:case 303:case 305:case 400:case 401:case 402:case 403:case 404:case 405:case 406:case 407:case 408:case 409:case 410:case 411:case 412:case 413:case 414:case 415:case 500:case 501:case 502:case 503:case 504:case 505:{};return false;case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:{};return false;default:if($0>206&&$0<300){return true;}qx.log.Logger.getClassLogger(qx.io.remote.Exchange).debug("Unknown status code: "+$0+" ("+$1+")");return false;}}},statusCodeToString:function($0){switch($0){case -1:return $[1129];case 200:return $[1619];case 304:return $[565];case 206:return $[595];case 204:return $[1145];case 300:return $[1400];case 301:return $[1481];case 302:return $[838];case 303:return $[659];case 305:return $[549];case 400:return $[1364];case 401:return $[1547];case 402:return $[1460];case 403:return $[1199];case 404:return $[1531];case 405:return $[1616];case 406:return $[747];case 407:return $[1216];case 408:return $[1363];case 409:return $[1090];case 410:return $[1544];case 411:return $[1678];case 412:return $[1628];case 413:return $[1291];case 414:return $[746];case 415:return $[1623];case 500:return $[984];case 501:return $[561];case 502:return $[677];case 503:return $[1607];case 504:return $[1647];case 505:return $[900];case 12002:return $[976];case 12029:return $[310];case 12030:return $[310];case 12031:return $[310];case 12152:return $[778];case 13030:return $[1504];default:return $[1126];}}},properties:{request:{check:$[513],nullable:true},implementation:{check:$[437],nullable:true,apply:$[1268]},state:{check:[$[71],$[29],$[39],$[15],$[33],$[32],$[27]],init:$[71],event:$[290],apply:$[296]}},members:{send:function(){var $0=this.getRequest();if(!$0){return this.error("Please attach a request object first");}qx.io.remote.Exchange.initTypes();var $1=qx.io.remote.Exchange.typesOrder;var $2=qx.io.remote.Exchange.typesSupported;var $3=$0.getResponseType();var $4={};if($0.getAsynchronous()){$4.asynchronous=true;}else{$4.synchronous=true;}if($0.getCrossDomain()){$4.crossDomain=true;}if($0.getFileUpload()){$4.fileUpload=true;}for(var $5 in $0.getFormFields()){$4.programaticFormFields=true;break;}var $6,$7;for(var $8=0,$9=$1.length;$8<$9;$8++){$6=$2[$1[$8]];if($6){if(!qx.io.remote.Exchange.canHandle($6,$4,$3)){continue;}try{{};$7=new $6;this.setImplementation($7);$7.setUseBasicHttpAuth($0.getUseBasicHttpAuth());$7.send();return true;}catch(ex){return this.error("Request handler throws error",ex);}}}this.error("There is no transport implementation available to handle this request: "+$0);},abort:function(){var $0=this.getImplementation();if($0){{};$0.abort();}else{{};this.setState($[33]);}},timeout:function(){var $0=this.getImplementation();if($0){this.warn("Timeout: implementation "+$0.toHashCode());$0.timeout();}else{this.warn("Timeout: forcing state to timeout");this.setState($[32]);}if(this.getRequest()){this.getRequest().setTimeout(0);}},_onsending:function($0){this.setState($[29]);},_onreceiving:function($0){this.setState($[39]);},_oncompleted:function($0){this.setState($[15]);},_onabort:function($0){this.setState($[33]);},_onfailed:function($0){this.setState($[27]);},_ontimeout:function($0){this.setState($[32]);},_applyImplementation:function($0,$1){if($1){$1.removeEventListener($[29],this._onsending,this);$1.removeEventListener($[39],this._onreceiving,this);$1.removeEventListener($[15],this._oncompleted,this);$1.removeEventListener($[33],this._onabort,this);$1.removeEventListener($[32],this._ontimeout,this);$1.removeEventListener($[27],this._onfailed,this);}if($0){var $2=this.getRequest();$0.setUrl($2.getUrl());$0.setMethod($2.getMethod());$0.setAsynchronous($2.getAsynchronous());$0.setUsername($2.getUsername());$0.setPassword($2.getPassword());$0.setParameters($2.getParameters());$0.setFormFields($2.getFormFields());$0.setRequestHeaders($2.getRequestHeaders());$0.setData($2.getData());$0.setResponseType($2.getResponseType());$0.addEventListener($[29],this._onsending,this);$0.addEventListener($[39],this._onreceiving,this);$0.addEventListener($[15],this._oncompleted,this);$0.addEventListener($[33],this._onabort,this);$0.addEventListener($[32],this._ontimeout,this);$0.addEventListener($[27],this._onfailed,this);}},_applyState:function($0,$1){{};switch($0){case $[29]:this.createDispatchEvent($[29]);break;case $[39]:this.createDispatchEvent($[39]);break;case $[15]:case $[33]:case $[32]:case $[27]:var $2=this.getImplementation();if(!$2){break;}if(this.hasEventListeners($0)){var $3=new qx.io.remote.Response($0);if($0==$[15]){var $4=$2.getResponseContent();$3.setContent($4);if($4===null){{};$0=$[27];}}$3.setStatusCode($2.getStatusCode());$3.setResponseHeaders($2.getResponseHeaders());this.dispatchEvent($3);}this.setImplementation(null);$2.dispose();break;}}},settings:{"qx.ioRemoteDebug":false,"qx.ioRemoteDebugData":false},destruct:function(){var $0=this.getImplementation();if($0){this.setImplementation(null);$0.dispose();}this.setRequest(null);}});
177
qx.Class.define($[1408],{statics:{getWindow:qx.core.Variant.select($[1],{"mshtml":function($0){try{return $0.contentWindow;}catch(ex){return null;}},"default":function($0){try{var $1=qx.html.Iframe.getDocument($0);return $1?$1.defaultView:null;}catch(ex){return null;}}}),getDocument:qx.core.Variant.select($[1],{"mshtml":function($0){try{var $1=qx.html.Iframe.getWindow($0);return $1?$1.document:null;}catch(ex){return null;}},"default":function($0){try{return $0.contentDocument;}catch(ex){return null;}}}),getBody:function($0){var $1=qx.html.Iframe.getDocument($0);return $1?$1.getElementsByTagName($[126])[0]:null;}}});
179
qx.Class.define($[94],{extend:qx.event.type.Event,construct:function($0){arguments.callee.base.call(this,$0);},properties:{state:{check:$[5],nullable:true},statusCode:{check:$[5],nullable:true},content:{nullable:true},responseHeaders:{check:$[119],nullable:true}},members:{getResponseHeader:function($0){var $1=this.getResponseHeaders();if($1){return $1[$0]||null;}return null;},getData:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[1154]);return this;}}});
178
qx.Class.define($[438],{type:$[51],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);},events:{"created":$[4],"configured":$[4],"sending":$[4],"receiving":$[4],"completed":$[4],"aborted":$[4],"failed":$[4],"timeout":$[4]},properties:{url:{check:$[6],nullable:true},method:{check:$[6],nullable:true},asynchronous:{check:$[2],nullable:true},data:{check:$[6],nullable:true},username:{check:$[6],nullable:true},password:{check:$[6],nullable:true},state:{check:[$[130],$[71],$[29],$[39],$[15],$[33],$[32],$[27]],init:$[130],event:$[290],apply:$[296]},requestHeaders:{check:$[119],nullable:true},parameters:{check:$[119],nullable:true},formFields:{check:$[119],nullable:true},responseType:{check:$[6],nullable:true},useBasicHttpAuth:{check:$[2],nullable:true}},members:{send:function(){throw new Error("send is abstract");},abort:function(){{};this.setState($[33]);},timeout:function(){{};this.setState($[32]);},failed:function(){{};this.setState($[27]);},setRequestHeader:function($0,$1){throw new Error("setRequestHeader is abstract");},getResponseHeader:function($0){throw new Error("getResponseHeader is abstract");},getResponseHeaders:function(){throw new Error("getResponseHeaders is abstract");},getStatusCode:function(){throw new Error("getStatusCode is abstract");},getStatusText:function(){throw new Error("getStatusText is abstract");},getResponseText:function(){throw new Error("getResponseText is abstract");},getResponseXml:function(){throw new Error("getResponseXml is abstract");},getFetchedLength:function(){throw new Error("getFetchedLength is abstract");},_applyState:function($0,$1){{};switch($0){case $[130]:this.createDispatchEvent($[130]);break;case $[71]:this.createDispatchEvent($[71]);break;case $[29]:this.createDispatchEvent($[29]);break;case $[39]:this.createDispatchEvent($[39]);break;case $[15]:this.createDispatchEvent($[15]);break;case $[33]:this.createDispatchEvent($[33]);break;case $[27]:this.createDispatchEvent($[27]);break;case $[32]:this.createDispatchEvent($[32]);break;}return true;}}});
180
qx.Class.define($[437],{type:$[51],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);},events:{"created":$[4],"configured":$[4],"sending":$[4],"receiving":$[4],"completed":$[4],"aborted":$[4],"failed":$[4],"timeout":$[4]},properties:{url:{check:$[6],nullable:true},method:{check:$[6],nullable:true},asynchronous:{check:$[2],nullable:true},data:{check:$[6],nullable:true},username:{check:$[6],nullable:true},password:{check:$[6],nullable:true},state:{check:[$[130],$[71],$[29],$[39],$[15],$[33],$[32],$[27]],init:$[130],event:$[290],apply:$[296]},requestHeaders:{check:$[119],nullable:true},parameters:{check:$[119],nullable:true},formFields:{check:$[119],nullable:true},responseType:{check:$[6],nullable:true},useBasicHttpAuth:{check:$[2],nullable:true}},members:{send:function(){throw new Error("send is abstract");},abort:function(){{};this.setState($[33]);},timeout:function(){{};this.setState($[32]);},failed:function(){{};this.setState($[27]);},setRequestHeader:function($0,$1){throw new Error("setRequestHeader is abstract");},getResponseHeader:function($0){throw new Error("getResponseHeader is abstract");},getResponseHeaders:function(){throw new Error("getResponseHeaders is abstract");},getStatusCode:function(){throw new Error("getStatusCode is abstract");},getStatusText:function(){throw new Error("getStatusText is abstract");},getResponseText:function(){throw new Error("getResponseText is abstract");},getResponseXml:function(){throw new Error("getResponseXml is abstract");},getFetchedLength:function(){throw new Error("getFetchedLength is abstract");},_applyState:function($0,$1){{};switch($0){case $[130]:this.createDispatchEvent($[130]);break;case $[71]:this.createDispatchEvent($[71]);break;case $[29]:this.createDispatchEvent($[29]);break;case $[39]:this.createDispatchEvent($[39]);break;case $[15]:this.createDispatchEvent($[15]);break;case $[33]:this.createDispatchEvent($[33]);break;case $[27]:this.createDispatchEvent($[27]);break;case $[32]:this.createDispatchEvent($[32]);break;}return true;}}});
179
qx.Class.define($[510],{extend:qx.core.Target,construct:function($0){arguments.callee.base.call(this);this.setRequest($0);$0.setTransport(this);},events:{"sending":$[4],"receiving":$[4],"completed":$[94],"aborted":$[94],"failed":$[94],"timeout":$[94]},statics:{typesOrder:[$[293],$[294],$[1168]],typesReady:false,typesAvailable:{},typesSupported:{},registerType:function($0,$1){qx.io.remote.Exchange.typesAvailable[$1]=$0;},initTypes:function(){if(qx.io.remote.Exchange.typesReady){return;}for(var $0 in qx.io.remote.Exchange.typesAvailable){var $1=qx.io.remote.Exchange.typesAvailable[$0];if($1.isSupported()){qx.io.remote.Exchange.typesSupported[$0]=$1;}}qx.io.remote.Exchange.typesReady=true;if(qx.lang.Object.isEmpty(qx.io.remote.Exchange.typesSupported)){throw new Error("No supported transport types were found!");}},canHandle:function($0,$1,$2){if(!qx.lang.Array.contains($0.handles.responseTypes,$2)){return false;}for(var $3 in $1){if(!$0.handles[$3]){return false;}}return true;},_nativeMap:{0:$[130],1:$[71],2:$[29],3:$[39],4:$[15]},wasSuccessful:function($0,$1,$2){if($2){switch($0){case null:case 0:return true;case -1:return $1<4;default:return typeof $0===$[65];}}else{switch($0){case -1:{};return $1<4;case 200:case 304:return true;case 201:case 202:case 203:case 204:case 205:return true;case 206:{};return $1!==4;case 300:case 301:case 302:case 303:case 305:case 400:case 401:case 402:case 403:case 404:case 405:case 406:case 407:case 408:case 409:case 410:case 411:case 412:case 413:case 414:case 415:case 500:case 501:case 502:case 503:case 504:case 505:{};return false;case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:{};return false;default:if($0>206&&$0<300){return true;}qx.log.Logger.getClassLogger(qx.io.remote.Exchange).debug("Unknown status code: "+$0+" ("+$1+")");return false;}}},statusCodeToString:function($0){switch($0){case -1:return $[1128];case 200:return $[1618];case 304:return $[565];case 206:return $[595];case 204:return $[1144];case 300:return $[1401];case 301:return $[1480];case 302:return $[839];case 303:return $[659];case 305:return $[549];case 400:return $[1365];case 401:return $[1547];case 402:return $[1459];case 403:return $[1198];case 404:return $[1531];case 405:return $[1615];case 406:return $[748];case 407:return $[1215];case 408:return $[1364];case 409:return $[1090];case 410:return $[1544];case 411:return $[1677];case 412:return $[1627];case 413:return $[1289];case 414:return $[747];case 415:return $[1622];case 500:return $[983];case 501:return $[561];case 502:return $[678];case 503:return $[1606];case 504:return $[1646];case 505:return $[900];case 12002:return $[975];case 12029:return $[310];case 12030:return $[310];case 12031:return $[310];case 12152:return $[779];case 13030:return $[1503];default:return $[1125];}}},properties:{request:{check:$[514],nullable:true},implementation:{check:$[438],nullable:true,apply:$[1267]},state:{check:[$[71],$[29],$[39],$[15],$[33],$[32],$[27]],init:$[71],event:$[290],apply:$[296]}},members:{send:function(){var $0=this.getRequest();if(!$0){return this.error("Please attach a request object first");}qx.io.remote.Exchange.initTypes();var $1=qx.io.remote.Exchange.typesOrder;var $2=qx.io.remote.Exchange.typesSupported;var $3=$0.getResponseType();var $4={};if($0.getAsynchronous()){$4.asynchronous=true;}else{$4.synchronous=true;}if($0.getCrossDomain()){$4.crossDomain=true;}if($0.getFileUpload()){$4.fileUpload=true;}for(var $5 in $0.getFormFields()){$4.programaticFormFields=true;break;}var $6,$7;for(var $8=0,$9=$1.length;$8<$9;$8++){$6=$2[$1[$8]];if($6){if(!qx.io.remote.Exchange.canHandle($6,$4,$3)){continue;}try{{};$7=new $6;this.setImplementation($7);$7.setUseBasicHttpAuth($0.getUseBasicHttpAuth());$7.send();return true;}catch(ex){return this.error("Request handler throws error",ex);}}}this.error("There is no transport implementation available to handle this request: "+$0);},abort:function(){var $0=this.getImplementation();if($0){{};$0.abort();}else{{};this.setState($[33]);}},timeout:function(){var $0=this.getImplementation();if($0){this.warn("Timeout: implementation "+$0.toHashCode());$0.timeout();}else{this.warn("Timeout: forcing state to timeout");this.setState($[32]);}if(this.getRequest()){this.getRequest().setTimeout(0);}},_onsending:function($0){this.setState($[29]);},_onreceiving:function($0){this.setState($[39]);},_oncompleted:function($0){this.setState($[15]);},_onabort:function($0){this.setState($[33]);},_onfailed:function($0){this.setState($[27]);},_ontimeout:function($0){this.setState($[32]);},_applyImplementation:function($0,$1){if($1){$1.removeEventListener($[29],this._onsending,this);$1.removeEventListener($[39],this._onreceiving,this);$1.removeEventListener($[15],this._oncompleted,this);$1.removeEventListener($[33],this._onabort,this);$1.removeEventListener($[32],this._ontimeout,this);$1.removeEventListener($[27],this._onfailed,this);}if($0){var $2=this.getRequest();$0.setUrl($2.getUrl());$0.setMethod($2.getMethod());$0.setAsynchronous($2.getAsynchronous());$0.setUsername($2.getUsername());$0.setPassword($2.getPassword());$0.setParameters($2.getParameters());$0.setFormFields($2.getFormFields());$0.setRequestHeaders($2.getRequestHeaders());$0.setData($2.getData());$0.setResponseType($2.getResponseType());$0.addEventListener($[29],this._onsending,this);$0.addEventListener($[39],this._onreceiving,this);$0.addEventListener($[15],this._oncompleted,this);$0.addEventListener($[33],this._onabort,this);$0.addEventListener($[32],this._ontimeout,this);$0.addEventListener($[27],this._onfailed,this);}},_applyState:function($0,$1){{};switch($0){case $[29]:this.createDispatchEvent($[29]);break;case $[39]:this.createDispatchEvent($[39]);break;case $[15]:case $[33]:case $[32]:case $[27]:var $2=this.getImplementation();if(!$2){break;}if(this.hasEventListeners($0)){var $3=new qx.io.remote.Response($0);if($0==$[15]){var $4=$2.getResponseContent();$3.setContent($4);if($4===null){{};$0=$[27];}}$3.setStatusCode($2.getStatusCode());$3.setResponseHeaders($2.getResponseHeaders());this.dispatchEvent($3);}this.setImplementation(null);$2.dispose();break;}}},settings:{"qx.ioRemoteDebug":false,"qx.ioRemoteDebugData":false},destruct:function(){var $0=this.getImplementation();if($0){this.setImplementation(null);$0.dispose();}this.setRequest(null);}});
181
qx.Class.define($[1326],{statics:{JAVASCRIPT:"text/javascript",JSON:"application/json",XML:"application/xml",TEXT:"text/plain",HTML:"text/html"}});
180
qx.Class.define($[94],{extend:qx.event.type.Event,construct:function($0){arguments.callee.base.call(this,$0);},properties:{state:{check:$[5],nullable:true},statusCode:{check:$[5],nullable:true},content:{nullable:true},responseHeaders:{check:$[119],nullable:true}},members:{getResponseHeader:function($0){var $1=this.getResponseHeaders();if($1){return $1[$0]||null;}return null;},getData:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,$[1153]);return this;}}});
182
qx.Class.define($[293],{extend:qx.io.remote.AbstractRemoteTransport,construct:function(){arguments.callee.base.call(this);this._req=qx.io.remote.XmlHttpTransport.createRequestObject();this._req.onreadystatechange=qx.lang.Function.bind(this._onreadystatechange,this);},events:{"created":$[4],"configured":$[4],"sending":$[4],"receiving":$[4],"completed":$[4],"aborted":$[4],"failed":$[4],"timeout":$[4]},statics:{handles:{synchronous:true,asynchronous:true,crossDomain:false,fileUpload:false,programaticFormFields:false,responseTypes:[qx.util.Mime.TEXT,qx.util.Mime.JAVASCRIPT,qx.util.Mime.JSON,qx.util.Mime.XML,qx.util.Mime.HTML]},requestObjects:[],requestObjectCount:0,isSupported:function(){return qx.net.HttpRequest.create()!=null?true:false;},createRequestObject:function(){return qx.net.HttpRequest.create();},__dummy:function(){}},members:{_localRequest:false,_lastReadyState:0,getRequest:function(){return this._req;},send:function(){this._lastReadyState=0;var $0=this.getRequest();var $1=this.getMethod();var $2=this.getAsynchronous();var $3=this.getUrl();var $4=(qx.core.Client.getInstance().getRunsLocally()&&!(/^http(s){0,1}\:/.test($3)));this._localRequest=$4;var $5=this.getParameters();var $6=[];for(var $7 in $5){var $8=$5[$7];if($8 instanceof Array){for(var $9=0;$9<$8.length;$9++){$6.push(encodeURIComponent($7)+$[197]+encodeURIComponent($8[$9]));}}else{$6.push(encodeURIComponent($7)+$[197]+encodeURIComponent($8));}}if($6.length>0){$3+=($3.indexOf($[194])>=0?$[93]:$[194])+$6.join($[93]);}var $a=function($b){var $c=$[941];var $d=$[0];var $e,$f,$g;var $h,$i,$j,$k;var $9=0;do{$e=$b.charCodeAt($9++);$f=$b.charCodeAt($9++);$g=$b.charCodeAt($9++);$h=$e>>2;$i=(($e&3)<<4)|($f>>4);$j=(($f&15)<<2)|($g>>6);$k=$g&63;if(isNaN($f)){$j=$k=64;}else if(isNaN($g)){$k=64;}$d+=$c.charAt($h)+$c.charAt($i)+$c.charAt($j)+$c.charAt($k);}while($9<$b.length);return $d;};$0.onreadystatechange=qx.lang.Function.bind(this._onreadystatechange,this);if(this.getUsername()){if(this.getUseBasicHttpAuth()){$0.open($1,$3,$2);$0.setRequestHeader($[874],$[1191]+$a(this.getUsername()+$[1469]+this.getPassword()));}else{$0.open($1,$3,$2,this.getUsername(),this.getPassword());}}else{$0.open($1,$3,$2);}$0.setRequestHeader($[1208],window.location.href);var $l=this.getRequestHeaders();for(var $7 in $l){$0.setRequestHeader($7,$l[$7]);}try{{};$0.send(this.getData());}catch(ex){if($4){this.failedLocally();}else{this.error("Failed to send data: "+ex,"send");this.failed();}return;}if(!$2){this._onreadystatechange();}},failedLocally:function(){if(this.getState()===$[27]){return;}this.warn("Could not load from file: "+this.getUrl());this.failed();},_onreadystatechange:function($0){switch(this.getState()){case $[15]:case $[33]:case $[27]:case $[32]:{};return;}var $1=this.getReadyState();if($1==4){if(!qx.io.remote.Exchange.wasSuccessful(this.getStatusCode(),$1,this._localRequest)){return this.failed();}}while(this._lastReadyState<$1){this.setState(qx.io.remote.Exchange._nativeMap[++this._lastReadyState]);}},getReadyState:function(){var $0=null;try{$0=this._req.readyState;}catch(ex){}return $0;},setRequestHeader:function($0,$1){this._req.setRequestHeader($0,$1);},getResponseHeader:function($0){var $1=null;try{this.getRequest().getResponseHeader($0)||null;}catch(ex){}return $1;},getStringResponseHeaders:function(){var $0=null;try{var $1=this._req.getAllResponseHeaders();if($1){$0=$1;}}catch(ex){}return $0;},getResponseHeaders:function(){var $0=this.getStringResponseHeaders();var $1={};if($0){var $2=$0.split(/[\r\n]+/g);for(var $3=0,$4=$2.length;$3<$4;$3++){var $5=$2[$3].match(/^([^:]+)\s*:\s*(.+)$/i);if($5){$1[$5[1]]=$5[2];}}}return $1;},getStatusCode:function(){var $0=-1;try{$0=this.getRequest().status;}catch(ex){}return $0;},getStatusText:function(){var $0=$[0];try{$0=this.getRequest().statusText;}catch(ex){}return $0;},getResponseText:function(){var $0=null;var $1=this.getStatusCode();var $2=this.getReadyState();if(qx.io.remote.Exchange.wasSuccessful($1,$2,this._localRequest)){try{$0=this.getRequest().responseText;}catch(ex){}}return $0;},getResponseXml:function(){var $0=null;var $1=this.getStatusCode();var $2=this.getReadyState();if(qx.io.remote.Exchange.wasSuccessful($1,$2,this._localRequest)){try{$0=this.getRequest().responseXML;}catch(ex){}}if(typeof $0==$[28]&&$0!=null){if(!$0.documentElement){var $3=String(this.getRequest().responseText).replace(/<\?xml[^\?]*\?>/,$[0]);$0.loadXML($3);}if(!$0.documentElement){throw new Error("Missing Document Element!");}if($0.documentElement.tagName==$[1385]){throw new Error("XML-File is not well-formed!");}}else{throw new Error("Response was not a valid xml document ["+this.getRequest().responseText+"]");}return $0;},getFetchedLength:function(){var $0=this.getResponseText();return typeof $0==$[8]?$0.length:0;},getResponseContent:function(){if(this.getState()!==$[15]){{};return null;}{};var $0=this.getResponseText();switch(this.getResponseType()){case qx.util.Mime.TEXT:case qx.util.Mime.HTML:{};return $0;case qx.util.Mime.JSON:{};try{if($0&&$0.length>0){return qx.io.Json.parseQx($0)||null;}else{return null;}}catch(ex){this.error("Could not execute json: ["+$0+"]",ex);return $[1275]+$0+$[1546];}case qx.util.Mime.JAVASCRIPT:{};try{if($0&&$0.length>0){return window.eval($0)||null;}else{return null;}}catch(ex){this.error("Could not execute javascript: ["+$0+"]",ex);return null;}case qx.util.Mime.XML:$0=this.getResponseXml();{};return $0||null;default:this.warn("No valid responseType specified ("+this.getResponseType()+")!");return null;}},_applyState:function($0,$1){{};switch($0){case $[130]:this.createDispatchEvent($[130]);break;case $[71]:this.createDispatchEvent($[71]);break;case $[29]:this.createDispatchEvent($[29]);break;case $[39]:this.createDispatchEvent($[39]);break;case $[15]:this.createDispatchEvent($[15]);break;case $[27]:this.createDispatchEvent($[27]);break;case $[33]:this.getRequest().abort();this.createDispatchEvent($[33]);break;case $[32]:this.getRequest().abort();this.createDispatchEvent($[32]);break;}}},defer:function($0,$1){qx.io.remote.Exchange.registerType(qx.io.remote.XmlHttpTransport,$[293]);},destruct:function(){var $0=this.getRequest();if($0){$0.onreadystatechange=qx.io.remote.XmlHttpTransport.__dummy;switch($0.readyState){case 1:case 2:case 3:$0.abort();}}this._disposeFields($[1383]);}});
181
qx.Class.define($[1325],{statics:{JAVASCRIPT:"text/javascript",JSON:"application/json",XML:"application/xml",TEXT:"text/plain",HTML:"text/html"}});
183
qx.Class.define($[1712],{statics:{create:qx.core.Variant.select($[1],{"default":function(){return new XMLHttpRequest;},"mshtml":qx.lang.Object.select(location.protocol!==$[441]&&window.XMLHttpRequest?$[779]:$[1603],{"native":function(){return new XMLHttpRequest;},"activeX":function(){if(this.__server){return new ActiveXObject(this.__server);}var $0=[$[1261],$[1670],$[905],$[1739],$[1110]];var $1;var $2;for(var $3=0,$4=$0.length;$3<$4;$3++){$2=$0[$3];try{$1=new ActiveXObject($2);break;}catch(ex){$1=null;}}if($1){this.__server=$2;}return $1;}})})}});
182
qx.Class.define($[293],{extend:qx.io.remote.AbstractRemoteTransport,construct:function(){arguments.callee.base.call(this);this._req=qx.io.remote.XmlHttpTransport.createRequestObject();this._req.onreadystatechange=qx.lang.Function.bind(this._onreadystatechange,this);},events:{"created":$[4],"configured":$[4],"sending":$[4],"receiving":$[4],"completed":$[4],"aborted":$[4],"failed":$[4],"timeout":$[4]},statics:{handles:{synchronous:true,asynchronous:true,crossDomain:false,fileUpload:false,programaticFormFields:false,responseTypes:[qx.util.Mime.TEXT,qx.util.Mime.JAVASCRIPT,qx.util.Mime.JSON,qx.util.Mime.XML,qx.util.Mime.HTML]},requestObjects:[],requestObjectCount:0,isSupported:function(){return qx.net.HttpRequest.create()!=null?true:false;},createRequestObject:function(){return qx.net.HttpRequest.create();},__dummy:function(){}},members:{_localRequest:false,_lastReadyState:0,getRequest:function(){return this._req;},send:function(){this._lastReadyState=0;var $0=this.getRequest();var $1=this.getMethod();var $2=this.getAsynchronous();var $3=this.getUrl();var $4=(qx.core.Client.getInstance().getRunsLocally()&&!(/^http(s){0,1}\:/.test($3)));this._localRequest=$4;var $5=this.getParameters();var $6=[];for(var $7 in $5){var $8=$5[$7];if($8 instanceof Array){for(var $9=0;$9<$8.length;$9++){$6.push(encodeURIComponent($7)+$[197]+encodeURIComponent($8[$9]));}}else{$6.push(encodeURIComponent($7)+$[197]+encodeURIComponent($8));}}if($6.length>0){$3+=($3.indexOf($[194])>=0?$[93]:$[194])+$6.join($[93]);}var $a=function($b){var $c=$[940];var $d=$[0];var $e,$f,$g;var $h,$i,$j,$k;var $9=0;do{$e=$b.charCodeAt($9++);$f=$b.charCodeAt($9++);$g=$b.charCodeAt($9++);$h=$e>>2;$i=(($e&3)<<4)|($f>>4);$j=(($f&15)<<2)|($g>>6);$k=$g&63;if(isNaN($f)){$j=$k=64;}else if(isNaN($g)){$k=64;}$d+=$c.charAt($h)+$c.charAt($i)+$c.charAt($j)+$c.charAt($k);}while($9<$b.length);return $d;};var $l=qx.lang.Function.bind(this._onreadystatechange,this);if($2){$0.onreadystatechange=$l;}if(this.getUsername()){if(this.getUseBasicHttpAuth()){$0.open($1,$3,$2);$0.setRequestHeader($[874],$[1190]+$a(this.getUsername()+$[1468]+this.getPassword()));}else{$0.open($1,$3,$2,this.getUsername(),this.getPassword());}}else{$0.open($1,$3,$2);}$0.setRequestHeader($[1207],window.location.href);var $m=this.getRequestHeaders();for(var $7 in $m){$0.setRequestHeader($7,$m[$7]);}try{{};$0.send(this.getData());}catch(ex){if($4){this.failedLocally();}else{this.error("Failed to send data: "+ex,"send");this.failed();}return;}if(!$2){$l();}},failedLocally:function(){if(this.getState()===$[27]){return;}this.warn("Could not load from file: "+this.getUrl());this.failed();},_onreadystatechange:function($0){switch(this.getState()){case $[15]:case $[33]:case $[27]:case $[32]:{};return;}var $1=this.getReadyState();if($1==4){if(!qx.io.remote.Exchange.wasSuccessful(this.getStatusCode(),$1,this._localRequest)){return this.failed();}}while(this._lastReadyState<$1){this.setState(qx.io.remote.Exchange._nativeMap[++this._lastReadyState]);}},getReadyState:function(){var $0=null;try{$0=this._req.readyState;}catch(ex){}return $0;},setRequestHeader:function($0,$1){this._req.setRequestHeader($0,$1);},getResponseHeader:function($0){var $1=null;try{this.getRequest().getResponseHeader($0)||null;}catch(ex){}return $1;},getStringResponseHeaders:function(){var $0=null;try{var $1=this._req.getAllResponseHeaders();if($1){$0=$1;}}catch(ex){}return $0;},getResponseHeaders:function(){var $0=this.getStringResponseHeaders();var $1={};if($0){var $2=$0.split(/[\r\n]+/g);for(var $3=0,$4=$2.length;$3<$4;$3++){var $5=$2[$3].match(/^([^:]+)\s*:\s*(.+)$/i);if($5){$1[$5[1]]=$5[2];}}}return $1;},getStatusCode:function(){var $0=-1;try{$0=this.getRequest().status;}catch(ex){}return $0;},getStatusText:function(){var $0=$[0];try{$0=this.getRequest().statusText;}catch(ex){}return $0;},getResponseText:function(){var $0=null;var $1=this.getStatusCode();var $2=this.getReadyState();if(qx.io.remote.Exchange.wasSuccessful($1,$2,this._localRequest)){try{$0=this.getRequest().responseText;}catch(ex){}}return $0;},getResponseXml:function(){var $0=null;var $1=this.getStatusCode();var $2=this.getReadyState();if(qx.io.remote.Exchange.wasSuccessful($1,$2,this._localRequest)){try{$0=this.getRequest().responseXML;}catch(ex){}}if(typeof $0==$[28]&&$0!=null){if(!$0.documentElement){var $3=String(this.getRequest().responseText).replace(/<\?xml[^\?]*\?>/,$[0]);$0.loadXML($3);}if(!$0.documentElement){throw new Error("Missing Document Element!");}if($0.documentElement.tagName==$[1386]){throw new Error("XML-File is not well-formed!");}}else{throw new Error("Response was not a valid xml document ["+this.getRequest().responseText+"]");}return $0;},getFetchedLength:function(){var $0=this.getResponseText();return typeof $0==$[8]?$0.length:0;},getResponseContent:function(){if(this.getState()!==$[15]){{};return null;}{};var $0=this.getResponseText();switch(this.getResponseType()){case qx.util.Mime.TEXT:case qx.util.Mime.HTML:{};return $0;case qx.util.Mime.JSON:{};try{if($0&&$0.length>0){return qx.io.Json.parseQx($0)||null;}else{return null;}}catch(ex){this.error("Could not execute json: ["+$0+"]",ex);return $[1274]+$0+$[1546];}case qx.util.Mime.JAVASCRIPT:{};try{if($0&&$0.length>0){return window.eval($0)||null;}else{return null;}}catch(ex){this.error("Could not execute javascript: ["+$0+"]",ex);return null;}case qx.util.Mime.XML:$0=this.getResponseXml();{};return $0||null;default:this.warn("No valid responseType specified ("+this.getResponseType()+")!");return null;}},_applyState:function($0,$1){{};switch($0){case $[130]:this.createDispatchEvent($[130]);break;case $[71]:this.createDispatchEvent($[71]);break;case $[29]:this.createDispatchEvent($[29]);break;case $[39]:this.createDispatchEvent($[39]);break;case $[15]:this.createDispatchEvent($[15]);break;case $[27]:this.createDispatchEvent($[27]);break;case $[33]:this.getRequest().abort();this.createDispatchEvent($[33]);break;case $[32]:this.getRequest().abort();this.createDispatchEvent($[32]);break;}}},defer:function($0,$1){qx.io.remote.Exchange.registerType(qx.io.remote.XmlHttpTransport,$[293]);},destruct:function(){var $0=this.getRequest();if($0){$0.onreadystatechange=qx.io.remote.XmlHttpTransport.__dummy;switch($0.readyState){case 1:case 2:case 3:$0.abort();}}this._disposeFields($[1384]);}});
184
qx.Class.define($[294],{extend:qx.io.remote.AbstractRemoteTransport,construct:function(){arguments.callee.base.call(this);var $0=(new Date).valueOf();var $1=$[1289]+$0;var $2=$[1166]+$0;if(qx.core.Variant.isSet($[1],$[13])){this._frame=document.createElement($[811]+$1+$[1644]);}else{this._frame=document.createElement($[239]);}this._frame.src=$[545];this._frame.id=this._frame.name=$1;this._frame.onload=qx.lang.Function.bind(this._onload,this);this._frame.style.display=$[7];document.body.appendChild(this._frame);this._form=document.createElement($[1067]);this._form.target=$1;this._form.id=this._form.name=$2;this._form.style.display=$[7];document.body.appendChild(this._form);this._data=document.createElement($[222]);this._data.id=this._data.name=$[663];this._form.appendChild(this._data);this._frame.onreadystatechange=qx.lang.Function.bind(this._onreadystatechange,this);},statics:{handles:{synchronous:false,asynchronous:true,crossDomain:false,fileUpload:true,programaticFormFields:true,responseTypes:[qx.util.Mime.TEXT,qx.util.Mime.JAVASCRIPT,qx.util.Mime.JSON,qx.util.Mime.XML,qx.util.Mime.HTML]},isSupported:function(){return true;},_numericMap:{"uninitialized":1,"loading":2,"loaded":2,"interactive":3,"complete":4}},members:{_lastReadyState:0,send:function(){var $0=this.getMethod();var $1=this.getUrl();var $2=this.getParameters();var $3=[];for(var $4 in $2){var $5=$2[$4];if($5 instanceof Array){for(var $6=0;$6<$5.length;$6++){$3.push(encodeURIComponent($4)+$[197]+encodeURIComponent($5[$6]));}}else{$3.push(encodeURIComponent($4)+$[197]+encodeURIComponent($5));}}if($3.length>0){$1+=($1.indexOf($[194])>=0?$[93]:$[194])+$3.join($[93]);}var $7=this.getFormFields();for(var $4 in $7){var $8=document.createElement($[222]);$8.name=$4;$8.appendChild(document.createTextNode($7[$4]));this._form.appendChild($8);}this._form.action=$1;this._form.method=$0;this._data.appendChild(document.createTextNode(this.getData()));this._form.submit();this.setState($[29]);},_onload:function($0){if(this._form.src){return;}this._switchReadyState(qx.io.remote.IframeTransport._numericMap.complete);},_onreadystatechange:function($0){this._switchReadyState(qx.io.remote.IframeTransport._numericMap[this._frame.readyState]);},_switchReadyState:function($0){switch(this.getState()){case $[15]:case $[33]:case $[27]:case $[32]:this.warn("Ignore Ready State Change");return;}while(this._lastReadyState<$0){this.setState(qx.io.remote.Exchange._nativeMap[++this._lastReadyState]);}},setRequestHeader:function($0,$1){},getResponseHeader:function($0){return null;},getResponseHeaders:function(){return {};},getStatusCode:function(){return 200;},getStatusText:function(){return $[0];},getIframeWindow:function(){return qx.html.Iframe.getWindow(this._frame);},getIframeDocument:function(){return qx.html.Iframe.getDocument(this._frame);},getIframeBody:function(){return qx.html.Iframe.getBody(this._frame);},getIframeTextContent:function(){var $0=this.getIframeBody();if(!$0){return null;}if(!$0.firstChild){return $[0];}if($0.firstChild.tagName&&$0.firstChild.tagName.toLowerCase()==$[544]){return $0.firstChild.innerHTML;}else{return $0.innerHTML;}},getIframeHtmlContent:function(){var $0=this.getIframeBody();return $0?$0.innerHTML:null;},getFetchedLength:function(){return 0;},getResponseContent:function(){if(this.getState()!==$[15]){{};return null;}{};var $0=this.getIframeTextContent();switch(this.getResponseType()){case qx.util.Mime.TEXT:{};return $0;break;case qx.util.Mime.HTML:$0=this.getIframeHtmlContent();{};return $0;break;case qx.util.Mime.JSON:$0=this.getIframeHtmlContent();{};try{return $0&&$0.length>0?qx.io.Json.parseQx($0):null;}catch(ex){return this.error("Could not execute json: ("+$0+")",ex);}case qx.util.Mime.JAVASCRIPT:$0=this.getIframeHtmlContent();{};try{return $0&&$0.length>0?window.eval($0):null;}catch(ex){return this.error("Could not execute javascript: ("+$0+")",ex);}case qx.util.Mime.XML:$0=this.getIframeDocument();{};return $0;default:this.warn("No valid responseType specified ("+this.getResponseType()+")!");return null;}}},defer:function($0,$1,$2){qx.io.remote.Exchange.registerType(qx.io.remote.IframeTransport,$[294]);},destruct:function(){if(this._frame){this._frame.onload=null;this._frame.onreadystatechange=null;if(qx.core.Variant.isSet($[1],$[21])){this._frame.src=qx.io.Alias.getInstance().resolve($[455]);}document.body.removeChild(this._frame);}if(this._form){document.body.removeChild(this._form);}this._disposeFields($[307],$[1632]);}});
183
qx.Class.define($[1712],{statics:{create:qx.core.Variant.select($[1],{"default":function(){return new XMLHttpRequest;},"mshtml":qx.lang.Object.select(location.protocol!==$[442]&&window.XMLHttpRequest?$[780]:$[1602],{"native":function(){return new XMLHttpRequest;},"activeX":function(){if(this.__server){return new ActiveXObject(this.__server);}var $0=[$[1260],$[1669],$[905],$[1739],$[1110]];var $1;var $2;for(var $3=0,$4=$0.length;$3<$4;$3++){$2=$0[$3];try{$1=new ActiveXObject($2);break;}catch(ex){$1=null;}}if($1){this.__server=$2;}return $1;}})})}});
185
qx.Class.define($[967],{type:$[18],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this._queue=[];this._active=[];this._totalRequests=0;this._timer=new qx.client.Timer(500);this._timer.addEventListener($[85],this._oninterval,this);},properties:{enabled:{init:true,check:$[2],apply:$[302]},maxTotalRequests:{check:$[5],nullable:true},maxConcurrentRequests:{check:$[5],init:3},defaultTimeout:{check:$[5],init:5000}},members:{_debug:function(){var $0=this._active.length+$[135]+(this._queue.length+this._active.length);{};},_check:function(){this._debug();if(this._active.length==0&&this._queue.length==0){this._timer.stop();}if(!this.getEnabled()){return;}if(this._active.length>=this.getMaxConcurrentRequests()||this._queue.length==0){return;}if(this.getMaxTotalRequests()!=null&&this._totalRequests>=this.getMaxTotalRequests()){return;}var $0=this._queue.shift();var $1=new qx.io.remote.Exchange($0);this._totalRequests++;this._active.push($1);this._debug();$1.addEventListener($[29],$0._onsending,$0);$1.addEventListener($[39],$0._onreceiving,$0);$1.addEventListener($[15],$0._oncompleted,$0);$1.addEventListener($[33],$0._onaborted,$0);$1.addEventListener($[32],$0._ontimeout,$0);$1.addEventListener($[27],$0._onfailed,$0);$1.addEventListener($[29],this._onsending,this);$1.addEventListener($[15],this._oncompleted,this);$1.addEventListener($[33],this._oncompleted,this);$1.addEventListener($[32],this._oncompleted,this);$1.addEventListener($[27],this._oncompleted,this);$1._start=(new Date).valueOf();$1.send();if(this._queue.length>0){this._check();}},_remove:function($0){qx.lang.Array.remove(this._active,$0);$0.dispose();this._check();},_activeCount:0,_onsending:function($0){{};},_oncompleted:function($0){{};this._remove($0.getTarget());},_oninterval:function($0){var $1=this._active;if($1.length==0){this._timer.stop();return;}var $2=(new Date).valueOf();var $3;var $4;var $5=this.getDefaultTimeout();var $6;var $7;for(var $8=$1.length-1;$8>=0;$8--){$3=$1[$8];$4=$3.getRequest();if($4.isAsynchronous()){$6=$4.getTimeout();if($6==0){continue;}if($6==null){$6=$5;}$7=$2-$3._start;if($7>$6){this.warn("Timeout: transport "+$3.toHashCode());this.warn($7+"ms > "+$6+"ms");$3.timeout();}}}},_applyEnabled:function($0,$1){if($0){this._check();}this._timer.setEnabled($0);},add:function($0){$0.setState($[198]);this._queue.push($0);this._check();if(this.getEnabled()){this._timer.start();}},abort:function($0){var $1=$0.getTransport();if($1){$1.abort();}else if(qx.lang.Array.contains(this._queue,$0)){qx.lang.Array.remove(this._queue,$0);}}},destruct:function(){this._disposeObjectDeep($[1258],1);this._disposeObjects($[284]);this._disposeFields($[1043]);}});
184
qx.Class.define($[294],{extend:qx.io.remote.AbstractRemoteTransport,construct:function(){arguments.callee.base.call(this);var $0=(new Date).valueOf();var $1=$[1287]+$0;var $2=$[1165]+$0;if(qx.core.Variant.isSet($[1],$[13])){this._frame=document.createElement($[812]+$1+$[1643]);}else{this._frame=document.createElement($[239]);}this._frame.src=$[545];this._frame.id=this._frame.name=$1;this._frame.onload=qx.lang.Function.bind(this._onload,this);this._frame.style.display=$[7];document.body.appendChild(this._frame);this._form=document.createElement($[1067]);this._form.target=$1;this._form.id=this._form.name=$2;this._form.style.display=$[7];document.body.appendChild(this._form);this._data=document.createElement($[222]);this._data.id=this._data.name=$[663];this._form.appendChild(this._data);this._frame.onreadystatechange=qx.lang.Function.bind(this._onreadystatechange,this);},statics:{handles:{synchronous:false,asynchronous:true,crossDomain:false,fileUpload:true,programaticFormFields:true,responseTypes:[qx.util.Mime.TEXT,qx.util.Mime.JAVASCRIPT,qx.util.Mime.JSON,qx.util.Mime.XML,qx.util.Mime.HTML]},isSupported:function(){return true;},_numericMap:{"uninitialized":1,"loading":2,"loaded":2,"interactive":3,"complete":4}},members:{_lastReadyState:0,send:function(){var $0=this.getMethod();var $1=this.getUrl();var $2=this.getParameters();var $3=[];for(var $4 in $2){var $5=$2[$4];if($5 instanceof Array){for(var $6=0;$6<$5.length;$6++){$3.push(encodeURIComponent($4)+$[197]+encodeURIComponent($5[$6]));}}else{$3.push(encodeURIComponent($4)+$[197]+encodeURIComponent($5));}}if($3.length>0){$1+=($1.indexOf($[194])>=0?$[93]:$[194])+$3.join($[93]);}var $7=this.getFormFields();for(var $4 in $7){var $8=document.createElement($[222]);$8.name=$4;$8.appendChild(document.createTextNode($7[$4]));this._form.appendChild($8);}this._form.action=$1;this._form.method=$0;this._data.appendChild(document.createTextNode(this.getData()));this._form.submit();this.setState($[29]);},_onload:function($0){if(this._form.src){return;}this._switchReadyState(qx.io.remote.IframeTransport._numericMap.complete);},_onreadystatechange:function($0){this._switchReadyState(qx.io.remote.IframeTransport._numericMap[this._frame.readyState]);},_switchReadyState:function($0){switch(this.getState()){case $[15]:case $[33]:case $[27]:case $[32]:this.warn("Ignore Ready State Change");return;}while(this._lastReadyState<$0){this.setState(qx.io.remote.Exchange._nativeMap[++this._lastReadyState]);}},setRequestHeader:function($0,$1){},getResponseHeader:function($0){return null;},getResponseHeaders:function(){return {};},getStatusCode:function(){return 200;},getStatusText:function(){return $[0];},getIframeWindow:function(){return qx.html.Iframe.getWindow(this._frame);},getIframeDocument:function(){return qx.html.Iframe.getDocument(this._frame);},getIframeBody:function(){return qx.html.Iframe.getBody(this._frame);},getIframeTextContent:function(){var $0=this.getIframeBody();if(!$0){return null;}if(!$0.firstChild){return $[0];}if($0.firstChild.tagName&&$0.firstChild.tagName.toLowerCase()==$[544]){return $0.firstChild.innerHTML;}else{return $0.innerHTML;}},getIframeHtmlContent:function(){var $0=this.getIframeBody();return $0?$0.innerHTML:null;},getFetchedLength:function(){return 0;},getResponseContent:function(){if(this.getState()!==$[15]){{};return null;}{};var $0=this.getIframeTextContent();switch(this.getResponseType()){case qx.util.Mime.TEXT:{};return $0;break;case qx.util.Mime.HTML:$0=this.getIframeHtmlContent();{};return $0;break;case qx.util.Mime.JSON:$0=this.getIframeHtmlContent();{};try{return $0&&$0.length>0?qx.io.Json.parseQx($0):null;}catch(ex){return this.error("Could not execute json: ("+$0+")",ex);}case qx.util.Mime.JAVASCRIPT:$0=this.getIframeHtmlContent();{};try{return $0&&$0.length>0?window.eval($0):null;}catch(ex){return this.error("Could not execute javascript: ("+$0+")",ex);}case qx.util.Mime.XML:$0=this.getIframeDocument();{};return $0;default:this.warn("No valid responseType specified ("+this.getResponseType()+")!");return null;}}},defer:function($0,$1,$2){qx.io.remote.Exchange.registerType(qx.io.remote.IframeTransport,$[294]);},destruct:function(){if(this._frame){this._frame.onload=null;this._frame.onreadystatechange=null;if(qx.core.Variant.isSet($[1],$[21])){this._frame.src=qx.io.Alias.getInstance().resolve($[456]);}document.body.removeChild(this._frame);}if(this._form){document.body.removeChild(this._form);}this._disposeFields($[307],$[1631]);}});
186
qx.Class.define($[665],{statics:{METHOD_GET:"GET",METHOD_POST:"POST",METHOD_PUT:"PUT",METHOD_HEAD:"HEAD",METHOD_DELETE:"DELETE"}});
185
qx.Class.define($[665],{statics:{METHOD_GET:"GET",METHOD_POST:"POST",METHOD_PUT:"PUT",METHOD_HEAD:"HEAD",METHOD_DELETE:"DELETE"}});
187
qx.Class.define($[513],{extend:qx.core.Target,construct:function($0,$1,$2){arguments.callee.base.call(this);this._requestHeaders={};this._parameters={};this._formFields={};if($0!==undefined){this.setUrl($0);}if($1!==undefined){this.setMethod($1);}if($2!==undefined){this.setResponseType($2);}this.setProhibitCaching(true);this.setRequestHeader($[1515],$[837]);this.setRequestHeader($[1656],qx.core.Version.toString());this._seqNum=++qx.io.remote.Request._seqNum;},events:{"created":$[4],"configured":$[4],"sending":$[4],"receiving":$[4],"completed":$[94],"aborted":$[94],"failed":$[94],"timeout":$[94]},statics:{_seqNum:0},properties:{url:{check:$[6],init:$[0]},method:{check:[qx.net.Http.METHOD_GET,qx.net.Http.METHOD_POST,qx.net.Http.METHOD_PUT,qx.net.Http.METHOD_HEAD,qx.net.Http.METHOD_DELETE],apply:$[1317],init:qx.net.Http.METHOD_GET},asynchronous:{check:$[2],init:true},data:{check:$[6],nullable:true},username:{check:$[6],nullable:true},password:{check:$[6],nullable:true},state:{check:[$[71],$[198],$[29],$[39],$[15],$[33],$[32],$[27]],init:$[71],apply:$[296],event:$[290]},responseType:{check:[qx.util.Mime.TEXT,qx.util.Mime.JAVASCRIPT,qx.util.Mime.JSON,qx.util.Mime.XML,qx.util.Mime.HTML],init:qx.util.Mime.TEXT,apply:$[1082]},timeout:{check:$[5],nullable:true},prohibitCaching:{check:$[2],init:true,apply:$[1635]},crossDomain:{check:$[2],init:false},fileUpload:{check:$[2],init:false},transport:{check:$[509],nullable:true},useBasicHttpAuth:{check:$[2],init:false}},members:{send:function(){qx.io.remote.RequestQueue.getInstance().add(this);},abort:function(){qx.io.remote.RequestQueue.getInstance().abort(this);},reset:function(){switch(this.getState()){case $[29]:case $[39]:this.error("Aborting already sent request!");case $[198]:this.abort();break;}},isConfigured:function(){return this.getState()===$[71];},isQueued:function(){return this.getState()===$[198];},isSending:function(){return this.getState()===$[29];},isReceiving:function(){return this.getState()===$[39];},isCompleted:function(){return this.getState()===$[15];},isAborted:function(){return this.getState()===$[33];},isTimeout:function(){return this.getState()===$[32];},isFailed:function(){return this.getState()===$[27];},_onqueued:function($0){this.setState($[198]);this.dispatchEvent($0);},_onsending:function($0){this.setState($[29]);this.dispatchEvent($0);},_onreceiving:function($0){this.setState($[39]);this.dispatchEvent($0);},_oncompleted:function($0){this.setState($[15]);this.dispatchEvent($0);this.dispose();},_onaborted:function($0){this.setState($[33]);this.dispatchEvent($0);this.dispose();},_ontimeout:function($0){this.setState($[32]);this.dispatchEvent($0);this.dispose();},_onfailed:function($0){this.setState($[27]);this.dispatchEvent($0);this.dispose();},_applyState:function($0,$1){{};},_applyProhibitCaching:function($0,$1){if($0){this.setParameter($[353],new Date().valueOf());this.setRequestHeader($[379],$[368]);this.setRequestHeader($[427],$[368]);}else{this.removeParameter($[353]);this.removeRequestHeader($[379]);this.removeRequestHeader($[427]);}},_applyMethod:function($0,$1){if($0===qx.net.Http.METHOD_POST){this.setRequestHeader($[326],$[628]);}else{this.removeRequestHeader($[326]);}},_applyResponseType:function($0,$1){this.setRequestHeader($[937],$0);},setRequestHeader:function($0,$1){this._requestHeaders[$0]=$1;},removeRequestHeader:function($0){delete this._requestHeaders[$0];},getRequestHeader:function($0){return this._requestHeaders[$0]||null;},getRequestHeaders:function(){return this._requestHeaders;},setParameter:function($0,$1){this._parameters[$0]=$1;},removeParameter:function($0){delete this._parameters[$0];},getParameter:function($0){return this._parameters[$0]||null;},getParameters:function(){return this._parameters;},setFormField:function($0,$1){this._formFields[$0]=$1;},removeFormField:function($0){delete this._formFields[$0];},getFormField:function($0){return this._formFields[$0]||null;},getFormFields:function(){return this._formFields;},getSequenceNumber:function(){return this._seqNum;}},destruct:function(){this.setTransport(null);this._disposeFields($[1024],$[1486],$[1252]);}});
186
qx.Class.define($[514],{extend:qx.core.Target,construct:function($0,$1,$2){arguments.callee.base.call(this);this._requestHeaders={};this._parameters={};this._formFields={};if($0!==undefined){this.setUrl($0);}if($1!==undefined){this.setMethod($1);}if($2!==undefined){this.setResponseType($2);}this.setProhibitCaching(true);this.setRequestHeader($[1514],$[838]);this.setRequestHeader($[1655],qx.core.Version.toString());this._seqNum=++qx.io.remote.Request._seqNum;},events:{"created":$[4],"configured":$[4],"sending":$[4],"receiving":$[4],"completed":$[94],"aborted":$[94],"failed":$[94],"timeout":$[94]},statics:{_seqNum:0},properties:{url:{check:$[6],init:$[0]},method:{check:[qx.net.Http.METHOD_GET,qx.net.Http.METHOD_POST,qx.net.Http.METHOD_PUT,qx.net.Http.METHOD_HEAD,qx.net.Http.METHOD_DELETE],apply:$[1316],init:qx.net.Http.METHOD_GET},asynchronous:{check:$[2],init:true},data:{check:$[6],nullable:true},username:{check:$[6],nullable:true},password:{check:$[6],nullable:true},state:{check:[$[71],$[198],$[29],$[39],$[15],$[33],$[32],$[27]],init:$[71],apply:$[296],event:$[290]},responseType:{check:[qx.util.Mime.TEXT,qx.util.Mime.JAVASCRIPT,qx.util.Mime.JSON,qx.util.Mime.XML,qx.util.Mime.HTML],init:qx.util.Mime.TEXT,apply:$[1082]},timeout:{check:$[5],nullable:true},prohibitCaching:{check:$[2],init:true,apply:$[1634]},crossDomain:{check:$[2],init:false},fileUpload:{check:$[2],init:false},transport:{check:$[510],nullable:true},useBasicHttpAuth:{check:$[2],init:false}},members:{send:function(){qx.io.remote.RequestQueue.getInstance().add(this);},abort:function(){qx.io.remote.RequestQueue.getInstance().abort(this);},reset:function(){switch(this.getState()){case $[29]:case $[39]:this.error("Aborting already sent request!");case $[198]:this.abort();break;}},isConfigured:function(){return this.getState()===$[71];},isQueued:function(){return this.getState()===$[198];},isSending:function(){return this.getState()===$[29];},isReceiving:function(){return this.getState()===$[39];},isCompleted:function(){return this.getState()===$[15];},isAborted:function(){return this.getState()===$[33];},isTimeout:function(){return this.getState()===$[32];},isFailed:function(){return this.getState()===$[27];},_onqueued:function($0){this.setState($[198]);this.dispatchEvent($0);},_onsending:function($0){this.setState($[29]);this.dispatchEvent($0);},_onreceiving:function($0){this.setState($[39]);this.dispatchEvent($0);},_oncompleted:function($0){this.setState($[15]);this.dispatchEvent($0);this.dispose();},_onaborted:function($0){this.setState($[33]);this.dispatchEvent($0);this.dispose();},_ontimeout:function($0){this.setState($[32]);this.dispatchEvent($0);this.dispose();},_onfailed:function($0){this.setState($[27]);this.dispatchEvent($0);this.dispose();},_applyState:function($0,$1){{};},_applyProhibitCaching:function($0,$1){if($0){this.setParameter($[352],new Date().valueOf());this.setRequestHeader($[379],$[367]);this.setRequestHeader($[428],$[367]);}else{this.removeParameter($[352]);this.removeRequestHeader($[379]);this.removeRequestHeader($[428]);}},_applyMethod:function($0,$1){if($0===qx.net.Http.METHOD_POST){this.setRequestHeader($[326],$[628]);}else{this.removeRequestHeader($[326]);}},_applyResponseType:function($0,$1){this.setRequestHeader($[936],$0);},setRequestHeader:function($0,$1){this._requestHeaders[$0]=$1;},removeRequestHeader:function($0){delete this._requestHeaders[$0];},getRequestHeader:function($0){return this._requestHeaders[$0]||null;},getRequestHeaders:function(){return this._requestHeaders;},setParameter:function($0,$1){this._parameters[$0]=$1;},removeParameter:function($0){delete this._parameters[$0];},getParameter:function($0){return this._parameters[$0]||null;},getParameters:function(){return this._parameters;},setFormField:function($0,$1){this._formFields[$0]=$1;},removeFormField:function($0){delete this._formFields[$0];},getFormField:function($0){return this._formFields[$0]||null;},getFormFields:function(){return this._formFields;},getSequenceNumber:function(){return this._seqNum;}},destruct:function(){this.setTransport(null);this._disposeFields($[1023],$[1485],$[1251]);}});
188
qx.Class.define($[1534],{extend:qx.ui.basic.Terminator,construct:function($0){arguments.callee.base.call(this);this.initSelectable();this.initTabIndex();this.initScrolling();if($0!=null){this.setSource($0);}},events:{"load":$[4]},statics:{load:function($0){if(!$0){throw new Error("Could not find iframe which was loaded [A]!");}if($0.currentTarget){$0=$0.currentTarget;}if($0._QxIframe){$0._QxIframe._onload();}else{throw new Error("Could not find iframe which was loaded [B]!");}}},properties:{tabIndex:{refine:true,init:0},selectable:{refine:true,init:false},appearance:{refine:true,init:$[239]},source:{check:$[6],apply:$[365],event:$[392],nullable:true},frameName:{check:$[6],init:$[0],apply:$[1416]},scrolling:{check:[$[1316],$[1069],$[3]],init:$[3],apply:$[782]}},members:{getIframeNode:function(){return this._iframeNode;},setIframeNode:function($0){return this._iframeNode=$0;},getBlockerNode:function(){return this._blockerNode;},setBlockerNode:function($0){return this._blockerNode=$0;},getContentWindow:function(){if(this.isCreated()){return qx.html.Iframe.getWindow(this.getIframeNode());}else{return null;}},getContentDocument:function(){if(this.isCreated()){return qx.html.Iframe.getDocument(this.getIframeNode());}else{return null;}},isLoaded:qx.core.Variant.select($[1],{"mshtml":function(){var $0=this.getContentDocument();return $0?$0.readyState==$[645]:false;},"default":function(){return this._isLoaded;}}),reload:function(){if(this.isCreated()&&this.getContentWindow()){this._isLoaded=false;var $0=this.queryCurrentUrl()||this.getSource();try{try{this.getContentWindow().location.replace($0);}catch(ex){this.warn("Could not reload iframe using location.replace()!",ex);this.getIframeNode().src=$0;}}catch(ex){this.warn("Iframe source could not be set! This may be related to AdBlock Plus Firefox Extension.");}}},queryCurrentUrl:function(){var $0=this.getContentDocument();try{if($0&&$0.location){return $0.location.href;}}catch(ex){}return null;},block:function(){if(this._blockerNode){this._blockerNode.style.display=$[0];}},release:function(){if(this._blockerNode){this._blockerNode.style.display=$[7];}},_generateIframeElement:function($0){if(qx.core.Variant.isSet($[1],$[13])){var $1=$0?$[1165]+$0+$[109]:$[520];var $2=qx.ui.embed.Iframe._element=document.createElement($[1357]+$1+$[1099]);}else{var $2=qx.ui.embed.Iframe._element=document.createElement($[239]);$2.onload=qx.ui.embed.Iframe.load;if($0){$2.name=$0;}}$2._QxIframe=this;$2.frameBorder=$[41];$2.frameSpacing=$[41];$2.marginWidth=$[41];$2.marginHeight=$[41];$2.width=$[56];$2.height=$[56];$2.hspace=$[41];$2.vspace=$[41];$2.border=$[41];$2.unselectable=$[23];$2.allowTransparency=$[889];$2.style.position=$[54];$2.style.top=0;$2.style.left=0;return $2;},_generateBlockerElement:function(){var $0=qx.ui.embed.Iframe._blocker=document.createElement($[67]);var $1=$0.style;if(qx.core.Variant.isSet($[1],$[13])){$1.backgroundColor=$[201];$1.filter=$[1657];}$1.position=$[54];$1.top=0;$1.left=0;$1.width=$[56];$1.height=$[56];$1.zIndex=1;$1.display=$[7];return $0;},_applyElement:function($0,$1){var $2=this.setIframeNode(this._generateIframeElement());var $3=this.setBlockerNode(this._generateBlockerElement());this._syncSource();this._syncScrolling();$0.appendChild($2);$0.appendChild($3);arguments.callee.base.call(this,$0,$1);},_beforeAppear:function(){arguments.callee.base.call(this);qx.ui.embed.IframeManager.getInstance().add(this);},_beforeDisappear:function(){arguments.callee.base.call(this);qx.ui.embed.IframeManager.getInstance().remove(this);},_applySource:function($0,$1){if(this.isCreated()){this._syncSource();}},_syncSource:function(){var $0=this.getSource();if($0==null||$0===$[0]){$0=qx.io.Alias.getInstance().resolve($[583]);}this._isLoaded=false;try{if(this.getContentWindow()){try{this.getContentWindow().location.replace($0);}catch(ex){this.getIframeNode().src=$0;}}else{this.getIframeNode().src=$0;}}catch(ex){this.warn("Iframe source could not be set! This may be related to AdBlock Plus Firefox Extension.");}},_applyScrolling:function($0,$1){if(this.isCreated()){this._syncScrolling();}},_syncScrolling:function(){this.getIframeNode().setAttribute($[843],this.getScrolling());},_applyFrameName:function($0,$1,$2,$3){if(this.isCreated()){throw new Error("Not allowed to set frame name after it has been created");}},_onload:function(){if(!this._isLoaded){this._isLoaded=true;this.createDispatchEvent($[82]);}},_isLoaded:false},destruct:function(){if(this._iframeNode){this._iframeNode._QxIframe=null;this._iframeNode.onload=null;}this._disposeFields($[601],$[1242],$[865]);}});
187
qx.Class.define($[966],{type:$[18],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this._queue=[];this._active=[];this._totalRequests=0;this._timer=new qx.client.Timer(500);this._timer.addEventListener($[86],this._oninterval,this);},properties:{enabled:{init:true,check:$[2],apply:$[302]},maxTotalRequests:{check:$[5],nullable:true},maxConcurrentRequests:{check:$[5],init:3},defaultTimeout:{check:$[5],init:5000}},members:{_debug:function(){var $0=this._active.length+$[135]+(this._queue.length+this._active.length);{};},_check:function(){this._debug();if(this._active.length==0&&this._queue.length==0){this._timer.stop();}if(!this.getEnabled()){return;}if((this._queue.length>0&&this._queue[0].isAsynchronous()&&this._active.length>=this.getMaxConcurrentRequests())||this._queue.length==0){return;}if(this.getMaxTotalRequests()!=null&&this._totalRequests>=this.getMaxTotalRequests()){return;}var $0=this._queue.shift();var $1=new qx.io.remote.Exchange($0);this._totalRequests++;this._active.push($1);this._debug();$1.addEventListener($[29],$0._onsending,$0);$1.addEventListener($[39],$0._onreceiving,$0);$1.addEventListener($[15],$0._oncompleted,$0);$1.addEventListener($[33],$0._onaborted,$0);$1.addEventListener($[32],$0._ontimeout,$0);$1.addEventListener($[27],$0._onfailed,$0);$1.addEventListener($[29],this._onsending,this);$1.addEventListener($[15],this._oncompleted,this);$1.addEventListener($[33],this._oncompleted,this);$1.addEventListener($[32],this._oncompleted,this);$1.addEventListener($[27],this._oncompleted,this);$1._start=(new Date).valueOf();$1.send();if(this._queue.length>0){this._check();}},_remove:function($0){qx.lang.Array.remove(this._active,$0);$0.dispose();this._check();},_activeCount:0,_onsending:function($0){{};},_oncompleted:function($0){{};this._remove($0.getTarget());},_oninterval:function($0){var $1=this._active;if($1.length==0){this._timer.stop();return;}var $2=(new Date).valueOf();var $3;var $4;var $5=this.getDefaultTimeout();var $6;var $7;for(var $8=$1.length-1;$8>=0;$8--){$3=$1[$8];$4=$3.getRequest();if($4.isAsynchronous()){$6=$4.getTimeout();if($6==0){continue;}if($6==null){$6=$5;}$7=$2-$3._start;if($7>$6){this.warn("Timeout: transport "+$3.toHashCode());this.warn($7+"ms > "+$6+"ms");$3.timeout();}}}},_applyEnabled:function($0,$1){if($0){this._check();}this._timer.setEnabled($0);},add:function($0){$0.setState($[198]);if($0.isAsynchronous())this._queue.push($0);else this._queue.unshift($0);this._check();if(this.getEnabled()){this._timer.start();}},abort:function($0){var $1=$0.getTransport();if($1){$1.abort();}else if(qx.lang.Array.contains(this._queue,$0)){qx.lang.Array.remove(this._queue,$0);}}},destruct:function(){this._disposeObjectDeep($[1257],1);this._disposeObjects($[284]);this._disposeFields($[1042]);}});
189
qx.Class.define($[1228],{statics:{getInnerWidth:qx.core.Variant.select($[1],{"mshtml":function($0){if($0.document.documentElement&&$0.document.documentElement.clientWidth){return $0.document.documentElement.clientWidth;}else if($0.document.body){return $0.document.body.clientWidth;}return 0;},"default":function($0){return $0.innerWidth;}}),getInnerHeight:qx.core.Variant.select($[1],{"mshtml":function($0){if($0.document.documentElement&&$0.document.documentElement.clientHeight){return $0.document.documentElement.clientHeight;}else if($0.document.body){return $0.document.body.clientHeight;}return 0;},"default":function($0){return $0.innerHeight;}}),getScrollLeft:qx.core.Variant.select($[1],{"mshtml":function($0){if($0.document.documentElement&&$0.document.documentElement.scrollLeft){return $0.document.documentElement.scrollLeft;}else if($0.document.body){return $0.document.body.scrollTop;}return 0;},"default":function($0){return $0.document.body.scrollLeft;}}),getScrollTop:qx.core.Variant.select($[1],{"mshtml":function($0){if($0.document.documentElement&&$0.document.documentElement.scrollTop){return $0.document.documentElement.scrollTop;}else if($0.document.body){return $0.document.body.scrollTop;}return 0;},"default":function($0){return $0.document.body.scrollTop;}})}});
188
qx.Class.define($[1534],{extend:qx.ui.basic.Terminator,construct:function($0){arguments.callee.base.call(this);this.initSelectable();this.initTabIndex();this.initScrolling();if($0!=null){this.setSource($0);}},events:{"load":$[4]},statics:{load:function($0){if(!$0){throw new Error("Could not find iframe which was loaded [A]!");}if($0.currentTarget){$0=$0.currentTarget;}if($0._QxIframe){$0._QxIframe._onload();}else{throw new Error("Could not find iframe which was loaded [B]!");}}},properties:{tabIndex:{refine:true,init:0},selectable:{refine:true,init:false},appearance:{refine:true,init:$[239]},source:{check:$[6],apply:$[364],event:$[393],nullable:true},frameName:{check:$[6],init:$[0],apply:$[1417]},scrolling:{check:[$[1315],$[1069],$[3]],init:$[3],apply:$[783]}},members:{getIframeNode:function(){return this._iframeNode;},setIframeNode:function($0){return this._iframeNode=$0;},getBlockerNode:function(){return this._blockerNode;},setBlockerNode:function($0){return this._blockerNode=$0;},getContentWindow:function(){if(this.isCreated()){return qx.html.Iframe.getWindow(this.getIframeNode());}else{return null;}},getContentDocument:function(){if(this.isCreated()){return qx.html.Iframe.getDocument(this.getIframeNode());}else{return null;}},isLoaded:qx.core.Variant.select($[1],{"mshtml":function(){var $0=this.getContentDocument();return $0?$0.readyState==$[645]:false;},"default":function(){return this._isLoaded;}}),reload:function(){if(this.isCreated()&&this.getContentWindow()){this._isLoaded=false;var $0=this.queryCurrentUrl()||this.getSource();try{try{this.getContentWindow().location.replace($0);}catch(ex){this.warn("Could not reload iframe using location.replace()!",ex);this.getIframeNode().src=$0;}}catch(ex){this.warn("Iframe source could not be set! This may be related to AdBlock Plus Firefox Extension.");}}},queryCurrentUrl:function(){var $0=this.getContentDocument();try{if($0&&$0.location){return $0.location.href;}}catch(ex){}return null;},block:function(){if(this._blockerNode){this._blockerNode.style.display=$[0];}},release:function(){if(this._blockerNode){this._blockerNode.style.display=$[7];}},_generateIframeElement:function($0){if(qx.core.Variant.isSet($[1],$[13])){var $1=$0?$[1164]+$0+$[109]:$[521];var $2=qx.ui.embed.Iframe._element=document.createElement($[1358]+$1+$[1099]);}else{var $2=qx.ui.embed.Iframe._element=document.createElement($[239]);$2.onload=qx.ui.embed.Iframe.load;if($0){$2.name=$0;}}$2._QxIframe=this;$2.frameBorder=$[41];$2.frameSpacing=$[41];$2.marginWidth=$[41];$2.marginHeight=$[41];$2.width=$[56];$2.height=$[56];$2.hspace=$[41];$2.vspace=$[41];$2.border=$[41];$2.unselectable=$[23];$2.allowTransparency=$[889];$2.style.position=$[54];$2.style.top=0;$2.style.left=0;return $2;},_generateBlockerElement:function(){var $0=qx.ui.embed.Iframe._blocker=document.createElement($[67]);var $1=$0.style;if(qx.core.Variant.isSet($[1],$[13])){$1.backgroundColor=$[201];$1.filter=$[1656];}$1.position=$[54];$1.top=0;$1.left=0;$1.width=$[56];$1.height=$[56];$1.zIndex=1;$1.display=$[7];return $0;},_applyElement:function($0,$1){var $2=this.setIframeNode(this._generateIframeElement());var $3=this.setBlockerNode(this._generateBlockerElement());this._syncSource();this._syncScrolling();$0.appendChild($2);$0.appendChild($3);arguments.callee.base.call(this,$0,$1);},_beforeAppear:function(){arguments.callee.base.call(this);qx.ui.embed.IframeManager.getInstance().add(this);},_beforeDisappear:function(){arguments.callee.base.call(this);qx.ui.embed.IframeManager.getInstance().remove(this);},_applySource:function($0,$1){if(this.isCreated()){this._syncSource();}},_syncSource:function(){var $0=this.getSource();if($0==null||$0===$[0]){$0=qx.io.Alias.getInstance().resolve($[583]);}this._isLoaded=false;try{if(this.getContentWindow()){try{this.getContentWindow().location.replace($0);}catch(ex){this.getIframeNode().src=$0;}}else{this.getIframeNode().src=$0;}}catch(ex){this.warn("Iframe source could not be set! This may be related to AdBlock Plus Firefox Extension.");}},_applyScrolling:function($0,$1){if(this.isCreated()){this._syncScrolling();}},_syncScrolling:function(){this.getIframeNode().setAttribute($[844],this.getScrolling());},_applyFrameName:function($0,$1,$2,$3){if(this.isCreated()){throw new Error("Not allowed to set frame name after it has been created");}},_onload:function(){if(!this._isLoaded){this._isLoaded=true;this.createDispatchEvent($[82]);}},_isLoaded:false},destruct:function(){if(this._iframeNode){this._iframeNode._QxIframe=null;this._iframeNode.onload=null;}this._disposeFields($[601],$[1241],$[865]);}});
190
qx.Class.define($[725],{extend:qx.ui.layout.CanvasLayout,construct:function($0){arguments.callee.base.call(this,$0?$[132]:$[117]);this._horizontal=($0==true);this._scrollBar=new qx.ui.basic.ScrollArea;if(qx.core.Variant.isSet($[1],$[21])){this._scrollBar.setStyleProperty($[78],$[0]);}this._scrollBar.setOverflow($0?$[112]:$[111]);this._scrollBar.addEventListener($[26],this._onscroll,this);this._scrollContent=new qx.ui.basic.Terminator;if(qx.core.Variant.isSet($[1],$[21])){this._scrollContent.setStyleProperty($[78],$[0]);}this._scrollBar.add(this._scrollContent);if(this._horizontal){this._scrollContent.setHeight(5);this._scrollBar.setWidth($[56]);this._scrollBar.setHeight(this._getScrollBarWidth());if(qx.core.Variant.isSet($[1],$[13])){this.setHeight(this._getScrollBarWidth());this.setOverflow($[36]);this._scrollBar.setHeight(this._getScrollBarWidth()+1);this._scrollBar.setTop(-1);}}else{this._scrollContent.setWidth(5);this._scrollBar.setHeight($[56]);this._scrollBar.setWidth(this._getScrollBarWidth());if(qx.core.Variant.isSet($[1],$[13])){this.setWidth(this._getScrollBarWidth());this.setOverflow($[36]);this._scrollBar.setWidth(this._getScrollBarWidth()+1);this._scrollBar.setLeft(-1);}}this.add(this._scrollBar);this._blocker=new qx.ui.basic.Terminator();this._blocker.set({left:0,top:0,height:$[56],width:$[56],display:!this.getEnabled()});this._blocker.setAppearance($[790]);this.add(this._blocker);this.setMaximum(0);},statics:{EVENT_DELAY:250},properties:{value:{check:$[19],init:0,apply:$[209],event:$[124],transform:$[1776]},maximum:{check:$[5],apply:$[1432]},mergeEvents:{check:$[2],init:false}},members:{_checkValue:function($0){var $1=!this.getElement()?0:(this._horizontal?this.getInnerWidth():this.getInnerHeight());return Math.max(0,Math.min(this.getMaximum()-$1,$0));},_applyValue:function($0,$1){if(!this._internalValueChange&&this._isCreated){this._positionKnob($0);}},_applyMaximum:function($0,$1){if(this._horizontal){this._scrollContent.setWidth($0);}else{this._scrollContent.setHeight($0);}this.setValue(this._checkValue(this.getValue()));},_applyVisibility:function($0,$1){if(!$0){this._positionKnob(0);}else{this._positionKnob(this.getValue());}return arguments.callee.base.call(this,$0,$1);},_computePreferredInnerWidth:function(){return this._horizontal?0:this._getScrollBarWidth();},_computePreferredInnerHeight:function(){return this._horizontal?this._getScrollBarWidth():0;},_applyEnabled:function($0){arguments.callee.base.call(this);this._blocker.setDisplay(!this.getEnabled());},_getScrollBarWidth:function(){if(qx.ui.basic.ScrollBar._scrollBarWidth==null){var $0=document.createElement($[67]);$0.style.width=$[252];$0.style.height=$[252];$0.style.overflow=$[26];$0.style.visibility=$[36];document.body.appendChild($0);qx.ui.basic.ScrollBar._scrollBarWidth=$0.offsetWidth-$0.clientWidth;document.body.removeChild($0);}return qx.ui.basic.ScrollBar._scrollBarWidth;},_onscroll:function($0){var $1=this._horizontal?this._scrollBar.getScrollLeft():this._scrollBar.getScrollTop();if(this.getMergeEvents()){this._lastScrollEventValue=$1;window.clearTimeout(this._setValueTimerId);var $2=this;this._setValueTimerId=window.setTimeout(function(){$2._internalValueChange=true;$2.setValue($2._lastScrollEventValue);$2._internalValueChange=false;qx.ui.core.Widget.flushGlobalQueues();},qx.ui.basic.ScrollBar.EVENT_DELAY);}else{this._internalValueChange=true;this.setValue($1);this._internalValueChange=false;qx.ui.core.Widget.flushGlobalQueues();}},_positionKnob:function($0){if(this.isCreated()){if(this._horizontal){this._scrollBar.setScrollLeft($0);}else{this._scrollBar.setScrollTop($0);}}},_afterAppear:function(){arguments.callee.base.call(this);this._positionKnob(this.getValue());}},destruct:function(){this._disposeObjects($[1774],$[776],$[491]);}});
189
qx.Class.define($[1227],{statics:{getInnerWidth:qx.core.Variant.select($[1],{"mshtml":function($0){if($0.document.documentElement&&$0.document.documentElement.clientWidth){return $0.document.documentElement.clientWidth;}else if($0.document.body){return $0.document.body.clientWidth;}return 0;},"default":function($0){return $0.innerWidth;}}),getInnerHeight:qx.core.Variant.select($[1],{"mshtml":function($0){if($0.document.documentElement&&$0.document.documentElement.clientHeight){return $0.document.documentElement.clientHeight;}else if($0.document.body){return $0.document.body.clientHeight;}return 0;},"default":function($0){return $0.innerHeight;}}),getScrollLeft:qx.core.Variant.select($[1],{"mshtml":function($0){if($0.document.documentElement&&$0.document.documentElement.scrollLeft){return $0.document.documentElement.scrollLeft;}else if($0.document.body){return $0.document.body.scrollTop;}return 0;},"default":function($0){return $0.document.body.scrollLeft;}}),getScrollTop:qx.core.Variant.select($[1],{"mshtml":function($0){if($0.document.documentElement&&$0.document.documentElement.scrollTop){return $0.document.documentElement.scrollTop;}else if($0.document.body){return $0.document.body.scrollTop;}return 0;},"default":function($0){return $0.document.body.scrollTop;}})}});
191
qx.Class.define($[1212],{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);this.__onscroll=qx.lang.Function.bindEvent(this._onscroll,this);},events:{"scroll":$[4]},members:{_applyElement:function($0,$1){arguments.callee.base.call(this,$0,$1);if($0){if(qx.core.Variant.isSet($[1],$[13])){$0.attachEvent($[522],this.__onscroll);}else{$0.addEventListener($[26],this.__onscroll,false);}}},_onscroll:function($0){this.createDispatchEvent($[26]);qx.event.handler.EventHandler.stopDomEvent($0);}},destruct:function(){var $0=this.getElement();if($0){if(qx.core.Variant.isSet($[1],$[13])){$0.detachEvent($[522],this.__onscroll);}else{$0.removeEventListener($[26],this.__onscroll,false);}delete this.__onscroll;}}});
190
qx.Class.define($[726],{extend:qx.ui.layout.CanvasLayout,construct:function($0){arguments.callee.base.call(this,$0?$[132]:$[117]);this._horizontal=($0==true);this._scrollBar=new qx.ui.basic.ScrollArea;if(qx.core.Variant.isSet($[1],$[21])){this._scrollBar.setStyleProperty($[78],$[0]);}this._scrollBar.setOverflow($0?$[112]:$[111]);this._scrollBar.addEventListener($[26],this._onscroll,this);this._scrollContent=new qx.ui.basic.Terminator;if(qx.core.Variant.isSet($[1],$[21])){this._scrollContent.setStyleProperty($[78],$[0]);}this._scrollBar.add(this._scrollContent);if(this._horizontal){this._scrollContent.setHeight(5);this._scrollBar.setWidth($[56]);this._scrollBar.setHeight(this._getScrollBarWidth());if(qx.core.Variant.isSet($[1],$[13])){this.setHeight(this._getScrollBarWidth());this.setOverflow($[36]);this._scrollBar.setHeight(this._getScrollBarWidth()+1);this._scrollBar.setTop(-1);}}else{this._scrollContent.setWidth(5);this._scrollBar.setHeight($[56]);this._scrollBar.setWidth(this._getScrollBarWidth());if(qx.core.Variant.isSet($[1],$[13])){this.setWidth(this._getScrollBarWidth());this.setOverflow($[36]);this._scrollBar.setWidth(this._getScrollBarWidth()+1);this._scrollBar.setLeft(-1);}}this.add(this._scrollBar);this._blocker=new qx.ui.basic.Terminator();this._blocker.set({left:0,top:0,height:$[56],width:$[56],display:!this.getEnabled()});this._blocker.setAppearance($[791]);this.add(this._blocker);this.setMaximum(0);},statics:{EVENT_DELAY:250},properties:{value:{check:$[19],init:0,apply:$[209],event:$[124],transform:$[1776]},maximum:{check:$[5],apply:$[1432]},mergeEvents:{check:$[2],init:false}},members:{_checkValue:function($0){var $1=!this.getElement()?0:(this._horizontal?this.getInnerWidth():this.getInnerHeight());return Math.max(0,Math.min(this.getMaximum()-$1,$0));},_applyValue:function($0,$1){if(!this._internalValueChange&&this._isCreated){this._positionKnob($0);}},_applyMaximum:function($0,$1){if(this._horizontal){this._scrollContent.setWidth($0);}else{this._scrollContent.setHeight($0);}this.setValue(this._checkValue(this.getValue()));},_applyVisibility:function($0,$1){if(!$0){this._positionKnob(0);}else{this._positionKnob(this.getValue());}return arguments.callee.base.call(this,$0,$1);},_computePreferredInnerWidth:function(){return this._horizontal?0:this._getScrollBarWidth();},_computePreferredInnerHeight:function(){return this._horizontal?this._getScrollBarWidth():0;},_applyEnabled:function($0){arguments.callee.base.call(this);this._blocker.setDisplay(!this.getEnabled());},_getScrollBarWidth:function(){if(qx.ui.basic.ScrollBar._scrollBarWidth==null){var $0=document.createElement($[67]);$0.style.width=$[252];$0.style.height=$[252];$0.style.overflow=$[26];$0.style.visibility=$[36];document.body.appendChild($0);qx.ui.basic.ScrollBar._scrollBarWidth=$0.offsetWidth-$0.clientWidth;document.body.removeChild($0);}return qx.ui.basic.ScrollBar._scrollBarWidth;},_onscroll:function($0){var $1=this._horizontal?this._scrollBar.getScrollLeft():this._scrollBar.getScrollTop();if(this.getMergeEvents()){this._lastScrollEventValue=$1;window.clearTimeout(this._setValueTimerId);var $2=this;this._setValueTimerId=window.setTimeout(function(){$2._internalValueChange=true;$2.setValue($2._lastScrollEventValue);$2._internalValueChange=false;qx.ui.core.Widget.flushGlobalQueues();},qx.ui.basic.ScrollBar.EVENT_DELAY);}else{this._internalValueChange=true;this.setValue($1);this._internalValueChange=false;qx.ui.core.Widget.flushGlobalQueues();}},_positionKnob:function($0){if(this.isCreated()){if(this._horizontal){this._scrollBar.setScrollLeft($0);}else{this._scrollBar.setScrollTop($0);}}},_afterAppear:function(){arguments.callee.base.call(this);this._positionKnob(this.getValue());}},destruct:function(){this._disposeObjects($[1774],$[777],$[490]);}});
191
qx.Class.define($[1211],{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);this.__onscroll=qx.lang.Function.bindEvent(this._onscroll,this);},events:{"scroll":$[4]},members:{_applyElement:function($0,$1){arguments.callee.base.call(this,$0,$1);if($0){if(qx.core.Variant.isSet($[1],$[13])){$0.attachEvent($[523],this.__onscroll);}else{$0.addEventListener($[26],this.__onscroll,false);}}},_onscroll:function($0){this.createDispatchEvent($[26]);qx.event.handler.EventHandler.stopDomEvent($0);}},destruct:function(){var $0=this.getElement();if($0){if(qx.core.Variant.isSet($[1],$[13])){$0.detachEvent($[523],this.__onscroll);}else{$0.removeEventListener($[26],this.__onscroll,false);}delete this.__onscroll;}}});
(-)js/org/eclipse/rwt/KeyEventUtil.js (+136 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2008 Innoopract Informationssysteme GmbH.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     Innoopract Informationssysteme GmbH - initial API and implementation
10
 ******************************************************************************/
11
12
qx.Class.define( "org.eclipse.rwt.KeyEventUtil",
13
{
14
  type : "singleton",
15
  extend : qx.core.Object,
16
  
17
  construct : function() {
18
    this.base( arguments );
19
    this._pendingEvents = {};
20
    this._lastEventId = 0;
21
  },
22
  
23
  members : {
24
    intercept : function( eventType, keyCode, charCode, domEvent ) {
25
//this._printEvent( "intercept:", domEvent );
26
      var relevantEvent;
27
      if( qx.core.Variant.isSet( "qx.client", "mshtml" ) ) {
28
        var keyEventHandler = qx.event.handler.KeyEventHandler.getInstance();
29
        var nonPrintable 
30
          =  keyEventHandler._isNonPrintableKeyCode( keyCode ) 
31
          || keyCode == 8  // backspace
32
          || keyCode == 9; // tab
33
        if( nonPrintable ) {
34
          relevantEvent = eventType === "keydown";
35
        } else {
36
          relevantEvent = eventType === "keypress";
37
        }
38
      } else {
39
        relevantEvent = domEvent.type === "keypress";
40
      }
41
      if( !org_eclipse_rap_rwt_EventUtil_suspend && relevantEvent ) {
42
        var control = this._getTargetControl();
43
        var hasKeyListener = false;
44
        if( control !== null && this._hasKeyListener( control ) ) {
45
          hasKeyListener = true;
46
        }
47
        if( hasKeyListener ) {
48
          var key = charCode;
49
          if( charCode === 0 ) {
50
            key = keyCode;
51
          }      
52
          this._lastEventId++;
53
          var eventId = this._lastEventId;
54
          this._pendingEvents[ eventId ] = domEvent;
55
// TODO [rh] un-canceled events must also be removed from the _pendingEvents map
56
this.debug( "send key event: " + eventId );
57
          this._sendKeyDown( control, key, eventId );
58
this.debug( "sync send done: " + eventId );
59
        } 
60
      }
61
    },
62
    
63
    cancelEvent : function( eventId ) {
64
this.debug( "caneling: " + eventId );
65
      this._cancelDomEvent( this._pendingEvents[ eventId ] );
66
      delete this._pendingEvents[ eventId ];
67
    },
68
    
69
    acceptEvent : function( eventId ) {
70
this.debug( "accepting: " + eventId );
71
      delete this._pendingEvents[ eventId ];
72
    },
73
    
74
    isDomEventCanceled : function( domEvent ) {
75
      var result;
76
      if( qx.core.Variant.isSet( "qx.client", "mshtml" ) ) {
77
        result = domEvent.returnValue === false;
78
      } else {
79
        result = domEvent.__isCanceled === true;
80
      }
81
      return result; 
82
    },
83
    
84
    _getTargetControl : function() {
85
      var result = qx.event.handler.EventHandler.getInstance().getCaptureWidget();
86
      if( !result ) {
87
        var focusRoot = qx.event.handler.EventHandler.getInstance().getFocusRoot();
88
        result = focusRoot == null ? null : focusRoot.getActiveChild();  
89
      }
90
      var widgetManager = org.eclipse.swt.WidgetManager.getInstance();
91
      while( result !== null && !widgetManager.isControl( result ) ) {
92
        result = result.getParent ? result.getParent() : null;
93
      }
94
      return result;
95
    },
96
        
97
    _hasKeyListener : function( widget ) {
98
      return widget.getUserData( "keyListener" ) === true;
99
    },
100
    
101
    _cancelDomEvent : function( domEvent ) {
102
      if( qx.core.Variant.isSet( "qx.client", "mshtml" ) ) {
103
        domEvent.returnValue = false;
104
        domEvent.cancelBubble = true;
105
      } else {
106
        domEvent.__isCanceled = true;
107
        domEvent.preventDefault();
108
        domEvent.stopPropagation();
109
      }
110
    },
111
    
112
    _sendKeyDown : function( widget, keyCode, eventId ) {
113
      var id = org.eclipse.swt.WidgetManager.getInstance().findIdByWidget( widget );
114
      var req = org.eclipse.swt.Request.getInstance();
115
      req.addEvent( "org.eclipse.swt.events.keyDown", id );
116
      req.addParameter( "org.eclipse.swt.events.keyDown.keyCode", keyCode );
117
      req.addParameter( "org.eclipse.swt.events.keyDown.character", "9" );
118
      req.addParameter( "org.eclipse.swt.events.keyDown.eventId", eventId  );
119
      req.sendSyncronous();
120
    },
121
    
122
    _printEvent : function( text, domEvent ) {
123
      var message = text + " ";
124
      message += "{ ";
125
      message += "type=" + domEvent.type + ", ";
126
      message += "keyCode=" + domEvent.keyCode + ", ";
127
      message += "charCode=" + domEvent.charCode + ", ";
128
      message += "isChar=" + domEvent.isChar + ", ";
129
      message += "target=" + domEvent.target + ", ";
130
      message += " }";
131
      this.debug( message )
132
    }
133
    
134
  }
135
} );
136
(-)js/org/eclipse/rwt/KeyEventHandlerPatch.js (+26 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2008 Innoopract Informationssysteme GmbH.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     Innoopract Informationssysteme GmbH - initial API and implementation
10
 ******************************************************************************/
11
12
qx.Mixin.define( "org.eclipse.rwt.KeyEventHandlerPatch",
13
{
14
  "members" : {
15
    
16
    _idealKeyHandler : function( keyCode, charCode, eventType, domEvent ) {
17
      var util = org.eclipse.rwt.KeyEventUtil.getInstance();      
18
      util.intercept( eventType, keyCode, charCode, domEvent );
19
      if( util.isDomEventCanceled( domEvent ) ) {
20
        this.base( arguments );
21
      }
22
    }
23
    
24
  }
25
} );
26

Return to bug 225764