lpmp 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +3 -0
- data/README +3 -0
- data/Rakefile +45 -0
- data/bin/lpmp +107 -0
- data/config/help.yaml +1 -0
- data/config/hosts.yaml +2 -0
- data/config/log.yaml +1 -0
- data/config/memcache.yaml +5 -0
- data/erb/index.erb +62 -0
- data/lib/bg_pull/caichen.rb +199 -0
- data/lib/bg_pull/lpmp.rb +45 -0
- data/lib/exception.rb +8 -0
- data/lib/lpmp.rb +53 -0
- data/lib/pull/lpmp.rb +355 -0
- data/lib/remote_lmp.rb +129 -0
- data/lib/utils.rb +14 -0
- data/lib/xq_push/caichen.rb +174 -0
- data/lib/xq_push/lpmp.rb +96 -0
- data/log/lpmp1st.log +1 -0
- data/public/css/ext-portal.css +40 -0
- data/public/css/lpmp.css +6 -0
- data/public/designer/caichen.epj +1 -0
- data/public/designer/hostmonitor.epj +1 -0
- data/public/ext-3.0.0/INCLUDE_ORDER.txt +35 -0
- data/public/ext-3.0.0/adapter/ext/ext-base-debug.js +3589 -0
- data/public/ext-3.0.0/adapter/ext/ext-base.js +7 -0
- data/public/ext-3.0.0/adapter/jquery/ext-jquery-adapter-debug.js +2292 -0
- data/public/ext-3.0.0/adapter/jquery/ext-jquery-adapter.js +7 -0
- data/public/ext-3.0.0/adapter/prototype/ext-prototype-adapter-debug.js +2346 -0
- data/public/ext-3.0.0/adapter/prototype/ext-prototype-adapter.js +7 -0
- data/public/ext-3.0.0/adapter/yui/ext-yui-adapter-debug.js +2136 -0
- data/public/ext-3.0.0/adapter/yui/ext-yui-adapter.js +7 -0
- data/public/ext-3.0.0/ext-all-debug.js +65610 -0
- data/public/ext-3.0.0/ext-all.js +11 -0
- data/public/ext-3.0.0/license.txt +42 -0
- data/public/ext-3.0.0/pkgs/cmp-foundation-debug.js +11287 -0
- data/public/ext-3.0.0/pkgs/cmp-foundation.js +7 -0
- data/public/ext-3.0.0/pkgs/data-foundation-debug.js +3853 -0
- data/public/ext-3.0.0/pkgs/data-foundation.js +7 -0
- data/public/ext-3.0.0/pkgs/data-grouping-debug.js +139 -0
- data/public/ext-3.0.0/pkgs/data-grouping.js +7 -0
- data/public/ext-3.0.0/pkgs/data-json-debug.js +582 -0
- data/public/ext-3.0.0/pkgs/data-json.js +7 -0
- data/public/ext-3.0.0/pkgs/data-list-views-debug.js +1278 -0
- data/public/ext-3.0.0/pkgs/data-list-views.js +7 -0
- data/public/ext-3.0.0/pkgs/data-xml-debug.js +234 -0
- data/public/ext-3.0.0/pkgs/data-xml.js +7 -0
- data/public/ext-3.0.0/pkgs/direct-debug.js +1121 -0
- data/public/ext-3.0.0/pkgs/direct.js +7 -0
- data/public/ext-3.0.0/pkgs/ext-dd-debug.js +4567 -0
- data/public/ext-3.0.0/pkgs/ext-dd.js +7 -0
- data/public/ext-3.0.0/pkgs/ext-foundation-debug.js +13417 -0
- data/public/ext-3.0.0/pkgs/ext-foundation.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-buttons-debug.js +1060 -0
- data/public/ext-3.0.0/pkgs/pkg-buttons.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-charts-debug.js +1621 -0
- data/public/ext-3.0.0/pkgs/pkg-charts.js +10 -0
- data/public/ext-3.0.0/pkgs/pkg-forms-debug.js +7661 -0
- data/public/ext-3.0.0/pkgs/pkg-forms.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-editor-debug.js +560 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-editor.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-foundation-debug.js +4765 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-foundation.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-grouping-debug.js +517 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-grouping.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-property-debug.js +370 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-property.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-history-debug.js +203 -0
- data/public/ext-3.0.0/pkgs/pkg-history.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-menu-debug.js +1628 -0
- data/public/ext-3.0.0/pkgs/pkg-menu.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-tabs-debug.js +1100 -0
- data/public/ext-3.0.0/pkgs/pkg-tabs.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-tips-debug.js +994 -0
- data/public/ext-3.0.0/pkgs/pkg-tips.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-toolbars-debug.js +1374 -0
- data/public/ext-3.0.0/pkgs/pkg-toolbars.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-tree-debug.js +4522 -0
- data/public/ext-3.0.0/pkgs/pkg-tree.js +7 -0
- data/public/ext-3.0.0/pkgs/resizable-debug.js +760 -0
- data/public/ext-3.0.0/pkgs/resizable.js +7 -0
- data/public/ext-3.0.0/pkgs/state-debug.js +274 -0
- data/public/ext-3.0.0/pkgs/state.js +7 -0
- data/public/ext-3.0.0/pkgs/window-debug.js +1888 -0
- data/public/ext-3.0.0/pkgs/window.js +7 -0
- data/public/ext-3.0.0/resources/charts.swf +0 -0
- data/public/ext-3.0.0/resources/css/README.txt +3 -0
- data/public/ext-3.0.0/resources/css/ext-all-notheme.css +5345 -0
- data/public/ext-3.0.0/resources/css/ext-all.css +6990 -0
- data/public/ext-3.0.0/resources/css/reset-min.css +7 -0
- data/public/ext-3.0.0/resources/css/structure/borders.css +54 -0
- data/public/ext-3.0.0/resources/css/structure/box.css +80 -0
- data/public/ext-3.0.0/resources/css/structure/button.css +440 -0
- data/public/ext-3.0.0/resources/css/structure/combo.css +45 -0
- data/public/ext-3.0.0/resources/css/structure/core.css +326 -0
- data/public/ext-3.0.0/resources/css/structure/date-picker.css +265 -0
- data/public/ext-3.0.0/resources/css/structure/dd.css +61 -0
- data/public/ext-3.0.0/resources/css/structure/debug.css +26 -0
- data/public/ext-3.0.0/resources/css/structure/dialog.css +62 -0
- data/public/ext-3.0.0/resources/css/structure/editor.css +92 -0
- data/public/ext-3.0.0/resources/css/structure/form.css +562 -0
- data/public/ext-3.0.0/resources/css/structure/grid.css +552 -0
- data/public/ext-3.0.0/resources/css/structure/layout.css +296 -0
- data/public/ext-3.0.0/resources/css/structure/list-view.css +85 -0
- data/public/ext-3.0.0/resources/css/structure/menu.css +205 -0
- data/public/ext-3.0.0/resources/css/structure/panel-reset.css +130 -0
- data/public/ext-3.0.0/resources/css/structure/panel.css +468 -0
- data/public/ext-3.0.0/resources/css/structure/progress.css +42 -0
- data/public/ext-3.0.0/resources/css/structure/qtips.css +153 -0
- data/public/ext-3.0.0/resources/css/structure/reset.css +7 -0
- data/public/ext-3.0.0/resources/css/structure/resizable.css +149 -0
- data/public/ext-3.0.0/resources/css/structure/slider.css +103 -0
- data/public/ext-3.0.0/resources/css/structure/tabs.css +372 -0
- data/public/ext-3.0.0/resources/css/structure/toolbar.css +259 -0
- data/public/ext-3.0.0/resources/css/structure/tree.css +203 -0
- data/public/ext-3.0.0/resources/css/structure/window.css +222 -0
- data/public/ext-3.0.0/resources/css/visual/borders.css +25 -0
- data/public/ext-3.0.0/resources/css/visual/box.css +74 -0
- data/public/ext-3.0.0/resources/css/visual/button.css +94 -0
- data/public/ext-3.0.0/resources/css/visual/combo.css +43 -0
- data/public/ext-3.0.0/resources/css/visual/core.css +76 -0
- data/public/ext-3.0.0/resources/css/visual/date-picker.css +143 -0
- data/public/ext-3.0.0/resources/css/visual/dd.css +29 -0
- data/public/ext-3.0.0/resources/css/visual/debug.css +24 -0
- data/public/ext-3.0.0/resources/css/visual/dialog.css +34 -0
- data/public/ext-3.0.0/resources/css/visual/editor.css +13 -0
- data/public/ext-3.0.0/resources/css/visual/form.css +117 -0
- data/public/ext-3.0.0/resources/css/visual/grid.css +272 -0
- data/public/ext-3.0.0/resources/css/visual/layout.css +53 -0
- data/public/ext-3.0.0/resources/css/visual/list-view.css +37 -0
- data/public/ext-3.0.0/resources/css/visual/menu.css +82 -0
- data/public/ext-3.0.0/resources/css/visual/panel.css +87 -0
- data/public/ext-3.0.0/resources/css/visual/progress.css +32 -0
- data/public/ext-3.0.0/resources/css/visual/qtips.css +44 -0
- data/public/ext-3.0.0/resources/css/visual/resizable.css +43 -0
- data/public/ext-3.0.0/resources/css/visual/slider.css +21 -0
- data/public/ext-3.0.0/resources/css/visual/tabs.css +119 -0
- data/public/ext-3.0.0/resources/css/visual/toolbar.css +103 -0
- data/public/ext-3.0.0/resources/css/visual/tree.css +157 -0
- data/public/ext-3.0.0/resources/css/visual/window.css +86 -0
- data/public/ext-3.0.0/resources/css/xtheme-blue.css +1652 -0
- data/public/ext-3.0.0/resources/expressinstall.swf +0 -0
- data/public/ext-3.0.0/resources/images/default/box/corners-blue.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/corners.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/l-blue.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/l.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/r-blue.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/r.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/tb-blue.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/tb.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/arrow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/btn.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/group-cs.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/group-lr.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/group-tb.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow-b-noline.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow-b.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow-bo.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow-noline.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow-o.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/dd/drop-add.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/dd/drop-no.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/dd/drop-yes.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/editor/tb-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/checkbox.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/clear-trigger.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/clear-trigger.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/form/date-trigger.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/date-trigger.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/form/error-tip-corners.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/exclamation.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/radio.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/search-trigger.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/search-trigger.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/form/text-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/trigger-tpl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/trigger.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/trigger.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/gradient-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/arrow-left-white.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/arrow-right-white.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/col-move-bottom.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/col-move-top.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/columns.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/dirty.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/done.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/drop-no.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/drop-yes.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/footer-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-blue-hd.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-blue-split.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-hrow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-loading.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-split.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-vista-hd.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid3-hd-btn.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid3-hrow-over.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid3-hrow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid3-special-col-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid3-special-col-sel-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/group-by.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/group-collapse.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/group-expand-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/group-expand.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hd-pop.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-asc.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-desc.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-lock.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-lock.png +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-unlock.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-unlock.png +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/invalid_line.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/loading.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/mso-hd.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/nowait.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-first-disabled.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-first.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-last-disabled.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-last.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-next-disabled.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-next.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-prev-disabled.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-prev.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/pick-button.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/refresh.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/row-check-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/row-expand-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/row-over.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/row-sel.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/sort-hd.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/sort_asc.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/sort_desc.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/wait.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/collapse.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/expand.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/gradient-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/mini-bottom.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/mini-left.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/mini-right.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/mini-top.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/ns-collapse.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/ns-expand.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/panel-close.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/panel-title-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/panel-title-light-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/stick.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/stuck.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/tab-close-on.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/tab-close.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/checked.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/group-checked.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/item-over.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/menu-parent.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/menu.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/unchecked.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/corners-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/left-right.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/light-hd.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/tool-sprite-tpl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/tool-sprites.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/tools-sprites-trans.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/top-bottom.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/top-bottom.png +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/white-corners-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/white-left-right.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/white-top-bottom.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/progress/progress-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/qtip/bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/qtip/close.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/qtip/tip-anchor-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/qtip/tip-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/s.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shadow-c.png +0 -0
- data/public/ext-3.0.0/resources/images/default/shadow-lr.png +0 -0
- data/public/ext-3.0.0/resources/images/default/shadow.png +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/blue-loading.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/calendar.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/glass-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/hd-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/large-loading.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/left-btn.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/loading-balls.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/right-btn.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/warning.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/e-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/e-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/ne-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/ne-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/nw-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/nw-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/s-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/s-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/se-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/se-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/square.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/sw-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/sw-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/slider/slider-bg.png +0 -0
- data/public/ext-3.0.0/resources/images/default/slider/slider-thumb.png +0 -0
- data/public/ext-3.0.0/resources/images/default/slider/slider-v-bg.png +0 -0
- data/public/ext-3.0.0/resources/images/default/slider/slider-v-thumb.png +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/scroll-left.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/scroll-right.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/scroller-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-left-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-right-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-close.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-strip-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-strip-bg.png +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-strip-btm-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tabs-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/btn-arrow-light.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/btn-arrow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/btn-over-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/gray-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/more.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/tb-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/tb-btn-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/tb-xl-btn-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/tb-xl-sep.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/arrows.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-add.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-between.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-no.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-over.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-under.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-yes.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-end-minus-nl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-end-minus.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-end-plus-nl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-end-plus.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-end.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-line.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-minus-nl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-minus.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-plus-nl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-plus.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/folder-open.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/folder.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/leaf.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/loading.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/s.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/window/icon-error.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/window/icon-info.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/window/icon-question.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/window/icon-warning.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/window/left-corners.png +0 -0
- data/public/ext-3.0.0/resources/images/default/window/left-corners.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/window/left-right.png +0 -0
- data/public/ext-3.0.0/resources/images/default/window/left-right.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/window/right-corners.png +0 -0
- data/public/ext-3.0.0/resources/images/default/window/right-corners.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/window/top-bottom.png +0 -0
- data/public/ext-3.0.0/resources/images/default/window/top-bottom.psd +0 -0
- data/public/ext-3.0.0/resources/images/icon/chart.gif +0 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-ajax.js +371 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-anim-extra.js +301 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-anim.js +477 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-begin.js +18 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-dom.js +157 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-end.js +21 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-event.js +453 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-point.js +17 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-region.js +81 -0
- data/public/ext-3.0.0/src/adapter/ext-base-dom-more.js +9 -0
- data/public/ext-3.0.0/src/adapter/jquery-bridge.js +546 -0
- data/public/ext-3.0.0/src/adapter/prototype-bridge.js +600 -0
- data/public/ext-3.0.0/src/adapter/yui-bridge.js +390 -0
- data/public/ext-3.0.0/src/core/CompositeElement.js +136 -0
- data/public/ext-3.0.0/src/core/CompositeElementLite-more.js +102 -0
- data/public/ext-3.0.0/src/core/DomHelper-more.js +179 -0
- data/public/ext-3.0.0/src/core/Element-more.js +192 -0
- data/public/ext-3.0.0/src/core/Element.alignment.js +370 -0
- data/public/ext-3.0.0/src/core/Element.dd.js +46 -0
- data/public/ext-3.0.0/src/core/Element.fx-more.js +152 -0
- data/public/ext-3.0.0/src/core/Element.insertion-more.js +52 -0
- data/public/ext-3.0.0/src/core/Element.keys.js +48 -0
- data/public/ext-3.0.0/src/core/Element.legacy.js +42 -0
- data/public/ext-3.0.0/src/core/Element.position-more.js +165 -0
- data/public/ext-3.0.0/src/core/Element.scroll-more.js +110 -0
- data/public/ext-3.0.0/src/core/Element.style-more.js +318 -0
- data/public/ext-3.0.0/src/core/Error.js +81 -0
- data/public/ext-3.0.0/src/core/EventManager-more.js +334 -0
- data/public/ext-3.0.0/src/core/Ext-more.js +669 -0
- data/public/ext-3.0.0/src/core/Template-more.js +115 -0
- data/public/ext-3.0.0/src/core/core/CompositeElementLite.js +197 -0
- data/public/ext-3.0.0/src/core/core/DomHelper.js +378 -0
- data/public/ext-3.0.0/src/core/core/DomQuery.js +826 -0
- data/public/ext-3.0.0/src/core/core/Element.fx.js +324 -0
- data/public/ext-3.0.0/src/core/core/Element.insertion.js +147 -0
- data/public/ext-3.0.0/src/core/core/Element.js +945 -0
- data/public/ext-3.0.0/src/core/core/Element.position.js +303 -0
- data/public/ext-3.0.0/src/core/core/Element.scroll.js +58 -0
- data/public/ext-3.0.0/src/core/core/Element.style.js +439 -0
- data/public/ext-3.0.0/src/core/core/Element.traversal.js +176 -0
- data/public/ext-3.0.0/src/core/core/EventManager.js +623 -0
- data/public/ext-3.0.0/src/core/core/Ext.js +922 -0
- data/public/ext-3.0.0/src/core/core/Fx.js +1115 -0
- data/public/ext-3.0.0/src/core/core/Template.js +185 -0
- data/public/ext-3.0.0/src/data/Api.js +210 -0
- data/public/ext-3.0.0/src/data/ArrayReader.js +102 -0
- data/public/ext-3.0.0/src/data/ArrayStore.js +70 -0
- data/public/ext-3.0.0/src/data/DataField.js +249 -0
- data/public/ext-3.0.0/src/data/DataProxy.js +427 -0
- data/public/ext-3.0.0/src/data/DataReader.js +160 -0
- data/public/ext-3.0.0/src/data/DataWriter.js +201 -0
- data/public/ext-3.0.0/src/data/DirectProxy.js +141 -0
- data/public/ext-3.0.0/src/data/DirectStore.js +52 -0
- data/public/ext-3.0.0/src/data/GroupingStore.js +139 -0
- data/public/ext-3.0.0/src/data/HttpProxy.js +276 -0
- data/public/ext-3.0.0/src/data/JsonReader.js +311 -0
- data/public/ext-3.0.0/src/data/JsonStore.js +49 -0
- data/public/ext-3.0.0/src/data/JsonWriter.js +77 -0
- data/public/ext-3.0.0/src/data/MemoryProxy.js +69 -0
- data/public/ext-3.0.0/src/data/Record.js +400 -0
- data/public/ext-3.0.0/src/data/ScriptTagProxy.js +279 -0
- data/public/ext-3.0.0/src/data/SortTypes.js +91 -0
- data/public/ext-3.0.0/src/data/Store.js +1492 -0
- data/public/ext-3.0.0/src/data/StoreMgr.js +72 -0
- data/public/ext-3.0.0/src/data/Tree.js +785 -0
- data/public/ext-3.0.0/src/data/XmlReader.js +128 -0
- data/public/ext-3.0.0/src/data/XmlStore.js +75 -0
- data/public/ext-3.0.0/src/data/XmlWriter.js +45 -0
- data/public/ext-3.0.0/src/data/core/Connection.js +575 -0
- data/public/ext-3.0.0/src/dd/DDCore.js +2992 -0
- data/public/ext-3.0.0/src/dd/DragSource.js +365 -0
- data/public/ext-3.0.0/src/dd/DragTracker.js +217 -0
- data/public/ext-3.0.0/src/dd/DragZone.js +133 -0
- data/public/ext-3.0.0/src/dd/DropTarget.js +115 -0
- data/public/ext-3.0.0/src/dd/DropZone.js +262 -0
- data/public/ext-3.0.0/src/dd/Registry.js +127 -0
- data/public/ext-3.0.0/src/dd/ScrollManager.js +201 -0
- data/public/ext-3.0.0/src/dd/StatusProxy.js +171 -0
- data/public/ext-3.0.0/src/debug.js +906 -0
- data/public/ext-3.0.0/src/direct/Direct.js +235 -0
- data/public/ext-3.0.0/src/direct/Event.js +34 -0
- data/public/ext-3.0.0/src/direct/JsonProvider.js +45 -0
- data/public/ext-3.0.0/src/direct/PollingProvider.js +151 -0
- data/public/ext-3.0.0/src/direct/Provider.js +110 -0
- data/public/ext-3.0.0/src/direct/RemotingProvider.js +373 -0
- data/public/ext-3.0.0/src/direct/Transaction.js +32 -0
- data/public/ext-3.0.0/src/locale/ext-lang-af.js +184 -0
- data/public/ext-3.0.0/src/locale/ext-lang-bg.js +278 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ca.js +315 -0
- data/public/ext-3.0.0/src/locale/ext-lang-cs.js +293 -0
- data/public/ext-3.0.0/src/locale/ext-lang-da.js +296 -0
- data/public/ext-3.0.0/src/locale/ext-lang-de.js +326 -0
- data/public/ext-3.0.0/src/locale/ext-lang-el_GR.js +309 -0
- data/public/ext-3.0.0/src/locale/ext-lang-en.js +335 -0
- data/public/ext-3.0.0/src/locale/ext-lang-en_GB.js +315 -0
- data/public/ext-3.0.0/src/locale/ext-lang-es.js +318 -0
- data/public/ext-3.0.0/src/locale/ext-lang-fa.js +272 -0
- data/public/ext-3.0.0/src/locale/ext-lang-fi.js +302 -0
- data/public/ext-3.0.0/src/locale/ext-lang-fr.js +335 -0
- data/public/ext-3.0.0/src/locale/ext-lang-fr_CA.js +218 -0
- data/public/ext-3.0.0/src/locale/ext-lang-gr.js +175 -0
- data/public/ext-3.0.0/src/locale/ext-lang-he.js +292 -0
- data/public/ext-3.0.0/src/locale/ext-lang-hr.js +295 -0
- data/public/ext-3.0.0/src/locale/ext-lang-hu.js +296 -0
- data/public/ext-3.0.0/src/locale/ext-lang-id.js +302 -0
- data/public/ext-3.0.0/src/locale/ext-lang-it.js +295 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ja.js +318 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ko.js +267 -0
- data/public/ext-3.0.0/src/locale/ext-lang-lt.js +333 -0
- data/public/ext-3.0.0/src/locale/ext-lang-lv.js +176 -0
- data/public/ext-3.0.0/src/locale/ext-lang-mk.js +176 -0
- data/public/ext-3.0.0/src/locale/ext-lang-nl.js +323 -0
- data/public/ext-3.0.0/src/locale/ext-lang-no_NB.js +294 -0
- data/public/ext-3.0.0/src/locale/ext-lang-no_NN.js +294 -0
- data/public/ext-3.0.0/src/locale/ext-lang-pl.js +304 -0
- data/public/ext-3.0.0/src/locale/ext-lang-pt.js +260 -0
- data/public/ext-3.0.0/src/locale/ext-lang-pt_BR.js +302 -0
- data/public/ext-3.0.0/src/locale/ext-lang-pt_PT.js +298 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ro.js +295 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ru.js +319 -0
- data/public/ext-3.0.0/src/locale/ext-lang-sk.js +182 -0
- data/public/ext-3.0.0/src/locale/ext-lang-sl.js +176 -0
- data/public/ext-3.0.0/src/locale/ext-lang-sr.js +179 -0
- data/public/ext-3.0.0/src/locale/ext-lang-sr_RS.js +178 -0
- data/public/ext-3.0.0/src/locale/ext-lang-sv_SE.js +178 -0
- data/public/ext-3.0.0/src/locale/ext-lang-th.js +294 -0
- data/public/ext-3.0.0/src/locale/ext-lang-tr.js +306 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ukr.js +258 -0
- data/public/ext-3.0.0/src/locale/ext-lang-vn.js +181 -0
- data/public/ext-3.0.0/src/locale/ext-lang-zh_CN.js +174 -0
- data/public/ext-3.0.0/src/locale/ext-lang-zh_TW.js +178 -0
- data/public/ext-3.0.0/src/state/CookieProvider.js +91 -0
- data/public/ext-3.0.0/src/state/Provider.js +127 -0
- data/public/ext-3.0.0/src/state/StateManager.js +69 -0
- data/public/ext-3.0.0/src/util/CSS.js +161 -0
- data/public/ext-3.0.0/src/util/ClickRepeater.js +200 -0
- data/public/ext-3.0.0/src/util/Cookies.js +96 -0
- data/public/ext-3.0.0/src/util/Date.js +1317 -0
- data/public/ext-3.0.0/src/util/Format.js +356 -0
- data/public/ext-3.0.0/src/util/History.js +203 -0
- data/public/ext-3.0.0/src/util/KeyMap.js +242 -0
- data/public/ext-3.0.0/src/util/KeyNav.js +161 -0
- data/public/ext-3.0.0/src/util/MixedCollection.js +576 -0
- data/public/ext-3.0.0/src/util/Observable-more.js +178 -0
- data/public/ext-3.0.0/src/util/TextMetrics.js +131 -0
- data/public/ext-3.0.0/src/util/UpdateManager.js +536 -0
- data/public/ext-3.0.0/src/util/XTemplate.js +379 -0
- data/public/ext-3.0.0/src/util/core/DelayedTask.js +68 -0
- data/public/ext-3.0.0/src/util/core/JSON.js +174 -0
- data/public/ext-3.0.0/src/util/core/Observable.js +483 -0
- data/public/ext-3.0.0/src/util/core/TaskMgr.js +174 -0
- data/public/ext-3.0.0/src/widgets/Action.js +252 -0
- data/public/ext-3.0.0/src/widgets/BoxComponent.js +519 -0
- data/public/ext-3.0.0/src/widgets/Button.js +762 -0
- data/public/ext-3.0.0/src/widgets/ButtonGroup.js +103 -0
- data/public/ext-3.0.0/src/widgets/ColorPalette.js +148 -0
- data/public/ext-3.0.0/src/widgets/Component.js +1540 -0
- data/public/ext-3.0.0/src/widgets/ComponentMgr.js +159 -0
- data/public/ext-3.0.0/src/widgets/Container.js +894 -0
- data/public/ext-3.0.0/src/widgets/CycleButton.js +188 -0
- data/public/ext-3.0.0/src/widgets/DataView.js +749 -0
- data/public/ext-3.0.0/src/widgets/DatePicker.js +771 -0
- data/public/ext-3.0.0/src/widgets/Editor.js +385 -0
- data/public/ext-3.0.0/src/widgets/Layer.js +466 -0
- data/public/ext-3.0.0/src/widgets/LoadMask.js +123 -0
- data/public/ext-3.0.0/src/widgets/MessageBox.js +626 -0
- data/public/ext-3.0.0/src/widgets/PagingToolbar.js +502 -0
- data/public/ext-3.0.0/src/widgets/Panel.js +1772 -0
- data/public/ext-3.0.0/src/widgets/PanelDD.js +154 -0
- data/public/ext-3.0.0/src/widgets/ProgressBar.js +289 -0
- data/public/ext-3.0.0/src/widgets/Resizable.js +760 -0
- data/public/ext-3.0.0/src/widgets/Shadow.js +192 -0
- data/public/ext-3.0.0/src/widgets/Slider.js +426 -0
- data/public/ext-3.0.0/src/widgets/SplitBar.js +436 -0
- data/public/ext-3.0.0/src/widgets/SplitButton.js +124 -0
- data/public/ext-3.0.0/src/widgets/TabPanel.js +1100 -0
- data/public/ext-3.0.0/src/widgets/Toolbar.js +781 -0
- data/public/ext-3.0.0/src/widgets/Viewport.js +124 -0
- data/public/ext-3.0.0/src/widgets/Window.js +941 -0
- data/public/ext-3.0.0/src/widgets/WindowManager.js +187 -0
- data/public/ext-3.0.0/src/widgets/chart/Chart.js +721 -0
- data/public/ext-3.0.0/src/widgets/chart/EventProxy.js +20 -0
- data/public/ext-3.0.0/src/widgets/chart/FlashComponent.js +117 -0
- data/public/ext-3.0.0/src/widgets/chart/swfobject.js +783 -0
- data/public/ext-3.0.0/src/widgets/form/Action.js +626 -0
- data/public/ext-3.0.0/src/widgets/form/BasicForm.js +735 -0
- data/public/ext-3.0.0/src/widgets/form/Checkbox.js +177 -0
- data/public/ext-3.0.0/src/widgets/form/CheckboxGroup.js +419 -0
- data/public/ext-3.0.0/src/widgets/form/Combo.js +1232 -0
- data/public/ext-3.0.0/src/widgets/form/DateField.js +389 -0
- data/public/ext-3.0.0/src/widgets/form/DisplayField.js +98 -0
- data/public/ext-3.0.0/src/widgets/form/Field.js +640 -0
- data/public/ext-3.0.0/src/widgets/form/FieldSet.js +305 -0
- data/public/ext-3.0.0/src/widgets/form/Form.js +335 -0
- data/public/ext-3.0.0/src/widgets/form/Hidden.js +39 -0
- data/public/ext-3.0.0/src/widgets/form/HtmlEditor.js +1179 -0
- data/public/ext-3.0.0/src/widgets/form/Label.js +64 -0
- data/public/ext-3.0.0/src/widgets/form/NumberField.js +139 -0
- data/public/ext-3.0.0/src/widgets/form/Radio.js +81 -0
- data/public/ext-3.0.0/src/widgets/form/RadioGroup.js +116 -0
- data/public/ext-3.0.0/src/widgets/form/TextArea.js +117 -0
- data/public/ext-3.0.0/src/widgets/form/TextField.js +491 -0
- data/public/ext-3.0.0/src/widgets/form/TimeField.js +146 -0
- data/public/ext-3.0.0/src/widgets/form/TriggerField.js +328 -0
- data/public/ext-3.0.0/src/widgets/form/VTypes.js +135 -0
- data/public/ext-3.0.0/src/widgets/grid/AbstractSelectionModel.js +57 -0
- data/public/ext-3.0.0/src/widgets/grid/CellSelectionModel.js +262 -0
- data/public/ext-3.0.0/src/widgets/grid/CheckboxSelectionModel.js +103 -0
- data/public/ext-3.0.0/src/widgets/grid/Column.js +406 -0
- data/public/ext-3.0.0/src/widgets/grid/ColumnDD.js +199 -0
- data/public/ext-3.0.0/src/widgets/grid/ColumnModel.js +592 -0
- data/public/ext-3.0.0/src/widgets/grid/ColumnSplitDD.js +62 -0
- data/public/ext-3.0.0/src/widgets/grid/EditorGrid.js +291 -0
- data/public/ext-3.0.0/src/widgets/grid/GridDD.js +95 -0
- data/public/ext-3.0.0/src/widgets/grid/GridEditor.js +21 -0
- data/public/ext-3.0.0/src/widgets/grid/GridPanel.js +952 -0
- data/public/ext-3.0.0/src/widgets/grid/GridView.js +1776 -0
- data/public/ext-3.0.0/src/widgets/grid/GroupingView.js +517 -0
- data/public/ext-3.0.0/src/widgets/grid/PropertyGrid.js +370 -0
- data/public/ext-3.0.0/src/widgets/grid/RowNumberer.js +61 -0
- data/public/ext-3.0.0/src/widgets/grid/RowSelectionModel.js +530 -0
- data/public/ext-3.0.0/src/widgets/layout/AbsoluteLayout.js +82 -0
- data/public/ext-3.0.0/src/widgets/layout/AccordionLayout.js +177 -0
- data/public/ext-3.0.0/src/widgets/layout/AnchorLayout.js +200 -0
- data/public/ext-3.0.0/src/widgets/layout/BorderLayout.js +1108 -0
- data/public/ext-3.0.0/src/widgets/layout/BoxLayout.js +417 -0
- data/public/ext-3.0.0/src/widgets/layout/CardLayout.js +127 -0
- data/public/ext-3.0.0/src/widgets/layout/ColumnLayout.js +130 -0
- data/public/ext-3.0.0/src/widgets/layout/ContainerLayout.js +215 -0
- data/public/ext-3.0.0/src/widgets/layout/FitLayout.js +48 -0
- data/public/ext-3.0.0/src/widgets/layout/FormLayout.js +266 -0
- data/public/ext-3.0.0/src/widgets/layout/TableLayout.js +194 -0
- data/public/ext-3.0.0/src/widgets/list/ColumnResizer.js +123 -0
- data/public/ext-3.0.0/src/widgets/list/ListView.js +357 -0
- data/public/ext-3.0.0/src/widgets/list/Sorter.js +70 -0
- data/public/ext-3.0.0/src/widgets/menu/BaseItem.js +160 -0
- data/public/ext-3.0.0/src/widgets/menu/CheckItem.js +114 -0
- data/public/ext-3.0.0/src/widgets/menu/ColorMenu.js +72 -0
- data/public/ext-3.0.0/src/widgets/menu/DateMenu.js +90 -0
- data/public/ext-3.0.0/src/widgets/menu/Item.js +211 -0
- data/public/ext-3.0.0/src/widgets/menu/Menu.js +733 -0
- data/public/ext-3.0.0/src/widgets/menu/MenuMgr.js +211 -0
- data/public/ext-3.0.0/src/widgets/menu/Separator.js +46 -0
- data/public/ext-3.0.0/src/widgets/menu/TextItem.js +46 -0
- data/public/ext-3.0.0/src/widgets/tips/QuickTip.js +207 -0
- data/public/ext-3.0.0/src/widgets/tips/QuickTips.js +159 -0
- data/public/ext-3.0.0/src/widgets/tips/Tip.js +157 -0
- data/public/ext-3.0.0/src/widgets/tips/ToolTip.js +492 -0
- data/public/ext-3.0.0/src/widgets/tree/AsyncTreeNode.js +114 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeDragZone.js +82 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeDropZone.js +321 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeEditor.js +160 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeEventModel.js +169 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeFilter.js +114 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeLoader.js +342 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeNode.js +546 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeNodeUI.js +633 -0
- data/public/ext-3.0.0/src/widgets/tree/TreePanel.js +918 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeSelectionModel.js +315 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeSorter.js +106 -0
- data/public/js/ext-portal.js +235 -0
- data/public/js/global.js +7 -0
- data/public/js/outerframe.js +47 -0
- data/public/js/portal.js +713 -0
- data/public/js/test_chart.js +152 -0
- data/test/config.rb +62 -0
- data/test/config/hosts.yaml +5 -0
- data/test/config/log.yaml +1 -0
- data/test/config/memcache.yaml +5 -0
- data/test/exception.rb +39 -0
- data/test/method_missing.rb +14 -0
- data/test/module.rb +39 -0
- data/test/remote_lmp.rb +126 -0
- data/test/sinatra.rb +29 -0
- data/test/sinatra_base.rb +16 -0
- metadata +690 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Ext JS Library 3.0.0
|
|
3
|
+
* Copyright(c) 2006-2009 Ext JS, LLC
|
|
4
|
+
* licensing@extjs.com
|
|
5
|
+
* http://www.extjs.com/license
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @class Ext.Viewport
|
|
9
|
+
* @extends Ext.Container
|
|
10
|
+
* <p>A specialized container representing the viewable application area (the browser viewport).</p>
|
|
11
|
+
* <p>The Viewport renders itself to the document body, and automatically sizes itself to the size of
|
|
12
|
+
* the browser viewport and manages window resizing. There may only be one Viewport created
|
|
13
|
+
* in a page. Inner layouts are available by virtue of the fact that all {@link Ext.Panel Panel}s
|
|
14
|
+
* added to the Viewport, either through its {@link #items}, or through the items, or the {@link #add}
|
|
15
|
+
* method of any of its child Panels may themselves have a layout.</p>
|
|
16
|
+
* <p>The Viewport does not provide scrolling, so child Panels within the Viewport should provide
|
|
17
|
+
* for scrolling if needed using the {@link #autoScroll} config.</p>
|
|
18
|
+
* <p>An example showing a classic application border layout:</p><pre><code>
|
|
19
|
+
new Ext.Viewport({
|
|
20
|
+
layout: 'border',
|
|
21
|
+
items: [{
|
|
22
|
+
region: 'north',
|
|
23
|
+
html: '<h1 class="x-panel-header">Page Title</h1>',
|
|
24
|
+
autoHeight: true,
|
|
25
|
+
border: false,
|
|
26
|
+
margins: '0 0 5 0'
|
|
27
|
+
}, {
|
|
28
|
+
region: 'west',
|
|
29
|
+
collapsible: true,
|
|
30
|
+
title: 'Navigation',
|
|
31
|
+
width: 200
|
|
32
|
+
// the west region might typically utilize a {@link Ext.tree.TreePanel TreePanel} or a Panel with {@link Ext.layout.AccordionLayout Accordion layout}
|
|
33
|
+
}, {
|
|
34
|
+
region: 'south',
|
|
35
|
+
title: 'Title for Panel',
|
|
36
|
+
collapsible: true,
|
|
37
|
+
html: 'Information goes here',
|
|
38
|
+
split: true,
|
|
39
|
+
height: 100,
|
|
40
|
+
minHeight: 100
|
|
41
|
+
}, {
|
|
42
|
+
region: 'east',
|
|
43
|
+
title: 'Title for the Grid Panel',
|
|
44
|
+
collapsible: true,
|
|
45
|
+
split: true,
|
|
46
|
+
width: 200,
|
|
47
|
+
xtype: 'grid',
|
|
48
|
+
// remaining grid configuration not shown ...
|
|
49
|
+
// notice that the GridPanel is added directly as the region
|
|
50
|
+
// it is not "overnested" inside another Panel
|
|
51
|
+
}, {
|
|
52
|
+
region: 'center',
|
|
53
|
+
xtype: 'tabpanel', // TabPanel itself has no title
|
|
54
|
+
items: {
|
|
55
|
+
title: 'Default Tab',
|
|
56
|
+
html: 'The first tab\'s content. Others may be added dynamically'
|
|
57
|
+
}
|
|
58
|
+
}]
|
|
59
|
+
});
|
|
60
|
+
</code></pre>
|
|
61
|
+
* @constructor
|
|
62
|
+
* Create a new Viewport
|
|
63
|
+
* @param {Object} config The config object
|
|
64
|
+
* @xtype viewport
|
|
65
|
+
*/
|
|
66
|
+
Ext.Viewport = Ext.extend(Ext.Container, {
|
|
67
|
+
/*
|
|
68
|
+
* Privatize config options which, if used, would interfere with the
|
|
69
|
+
* correct operation of the Viewport as the sole manager of the
|
|
70
|
+
* layout of the document body.
|
|
71
|
+
*/
|
|
72
|
+
/**
|
|
73
|
+
* @cfg {Mixed} applyTo @hide
|
|
74
|
+
*/
|
|
75
|
+
/**
|
|
76
|
+
* @cfg {Boolean} allowDomMove @hide
|
|
77
|
+
*/
|
|
78
|
+
/**
|
|
79
|
+
* @cfg {Boolean} hideParent @hide
|
|
80
|
+
*/
|
|
81
|
+
/**
|
|
82
|
+
* @cfg {Mixed} renderTo @hide
|
|
83
|
+
*/
|
|
84
|
+
/**
|
|
85
|
+
* @cfg {Boolean} hideParent @hide
|
|
86
|
+
*/
|
|
87
|
+
/**
|
|
88
|
+
* @cfg {Number} height @hide
|
|
89
|
+
*/
|
|
90
|
+
/**
|
|
91
|
+
* @cfg {Number} width @hide
|
|
92
|
+
*/
|
|
93
|
+
/**
|
|
94
|
+
* @cfg {Boolean} autoHeight @hide
|
|
95
|
+
*/
|
|
96
|
+
/**
|
|
97
|
+
* @cfg {Boolean} autoWidth @hide
|
|
98
|
+
*/
|
|
99
|
+
/**
|
|
100
|
+
* @cfg {Boolean} deferHeight @hide
|
|
101
|
+
*/
|
|
102
|
+
/**
|
|
103
|
+
* @cfg {Boolean} monitorResize @hide
|
|
104
|
+
*/
|
|
105
|
+
initComponent : function() {
|
|
106
|
+
Ext.Viewport.superclass.initComponent.call(this);
|
|
107
|
+
document.getElementsByTagName('html')[0].className += ' x-viewport';
|
|
108
|
+
this.el = Ext.getBody();
|
|
109
|
+
this.el.setHeight = Ext.emptyFn;
|
|
110
|
+
this.el.setWidth = Ext.emptyFn;
|
|
111
|
+
this.el.setSize = Ext.emptyFn;
|
|
112
|
+
this.el.dom.scroll = 'no';
|
|
113
|
+
this.allowDomMove = false;
|
|
114
|
+
this.autoWidth = true;
|
|
115
|
+
this.autoHeight = true;
|
|
116
|
+
Ext.EventManager.onWindowResize(this.fireResize, this);
|
|
117
|
+
this.renderTo = this.el;
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
fireResize : function(w, h){
|
|
121
|
+
this.fireEvent('resize', this, w, h, w, h);
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
Ext.reg('viewport', Ext.Viewport);
|
|
@@ -0,0 +1,941 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Ext JS Library 3.0.0
|
|
3
|
+
* Copyright(c) 2006-2009 Ext JS, LLC
|
|
4
|
+
* licensing@extjs.com
|
|
5
|
+
* http://www.extjs.com/license
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @class Ext.Window
|
|
9
|
+
* @extends Ext.Panel
|
|
10
|
+
* <p>A specialized panel intended for use as an application window. Windows are floated, {@link #resizable}, and
|
|
11
|
+
* {@link #draggable} by default. Windows can be {@link #maximizable maximized} to fill the viewport,
|
|
12
|
+
* restored to their prior size, and can be {@link #minimize}d.</p>
|
|
13
|
+
* <p>Windows can also be linked to a {@link Ext.WindowGroup} or managed by the {@link Ext.WindowMgr} to provide
|
|
14
|
+
* grouping, activation, to front, to back and other application-specific behavior.</p>
|
|
15
|
+
* <p>By default, Windows will be rendered to document.body. To {@link #constrain} a Window to another element
|
|
16
|
+
* specify {@link Ext.Component#renderTo renderTo}.</p>
|
|
17
|
+
* <p><b>Note:</b> By default, the <code>{@link #closable close}</code> header tool <i>destroys</i> the Window resulting in
|
|
18
|
+
* destruction of any child Components. This makes the Window object, and all its descendants <b>unusable</b>. To enable
|
|
19
|
+
* re-use of a Window, use <b><code>{@link #closeAction closeAction: 'hide'}</code></b>.</p>
|
|
20
|
+
* @constructor
|
|
21
|
+
* @param {Object} config The config object
|
|
22
|
+
* @xtype window
|
|
23
|
+
*/
|
|
24
|
+
Ext.Window = Ext.extend(Ext.Panel, {
|
|
25
|
+
/**
|
|
26
|
+
* @cfg {Number} x
|
|
27
|
+
* The X position of the left edge of the window on initial showing. Defaults to centering the Window within
|
|
28
|
+
* the width of the Window's container {@link Ext.Element Element) (The Element that the Window is rendered to).
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* @cfg {Number} y
|
|
32
|
+
* The Y position of the top edge of the window on initial showing. Defaults to centering the Window within
|
|
33
|
+
* the height of the Window's container {@link Ext.Element Element) (The Element that the Window is rendered to).
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* @cfg {Boolean} modal
|
|
37
|
+
* True to make the window modal and mask everything behind it when displayed, false to display it without
|
|
38
|
+
* restricting access to other UI elements (defaults to false).
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* @cfg {String/Element} animateTarget
|
|
42
|
+
* Id or element from which the window should animate while opening (defaults to null with no animation).
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
45
|
+
* @cfg {String} resizeHandles
|
|
46
|
+
* A valid {@link Ext.Resizable} handles config string (defaults to 'all'). Only applies when resizable = true.
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* @cfg {Ext.WindowGroup} manager
|
|
50
|
+
* A reference to the WindowGroup that should manage this window (defaults to {@link Ext.WindowMgr}).
|
|
51
|
+
*/
|
|
52
|
+
/**
|
|
53
|
+
* @cfg {String/Number/Button} defaultButton
|
|
54
|
+
* The id / index of a button or a button instance to focus when this window received the focus.
|
|
55
|
+
*/
|
|
56
|
+
/**
|
|
57
|
+
* @cfg {Function} onEsc
|
|
58
|
+
* Allows override of the built-in processing for the escape key. Default action
|
|
59
|
+
* is to close the Window (performing whatever action is specified in {@link #closeAction}.
|
|
60
|
+
* To prevent the Window closing when the escape key is pressed, specify this as
|
|
61
|
+
* Ext.emptyFn (See {@link Ext#emptyFn}).
|
|
62
|
+
*/
|
|
63
|
+
/**
|
|
64
|
+
* @cfg {Boolean} collapsed
|
|
65
|
+
* True to render the window collapsed, false to render it expanded (defaults to false). Note that if
|
|
66
|
+
* {@link #expandOnShow} is true (the default) it will override the <tt>collapsed</tt> config and the window
|
|
67
|
+
* will always be expanded when shown.
|
|
68
|
+
*/
|
|
69
|
+
/**
|
|
70
|
+
* @cfg {Boolean} maximized
|
|
71
|
+
* True to initially display the window in a maximized state. (Defaults to false).
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @cfg {String} baseCls
|
|
76
|
+
* The base CSS class to apply to this panel's element (defaults to 'x-window').
|
|
77
|
+
*/
|
|
78
|
+
baseCls : 'x-window',
|
|
79
|
+
/**
|
|
80
|
+
* @cfg {Boolean} resizable
|
|
81
|
+
* True to allow user resizing at each edge and corner of the window, false to disable resizing (defaults to true).
|
|
82
|
+
*/
|
|
83
|
+
resizable : true,
|
|
84
|
+
/**
|
|
85
|
+
* @cfg {Boolean} draggable
|
|
86
|
+
* True to allow the window to be dragged by the header bar, false to disable dragging (defaults to true). Note
|
|
87
|
+
* that by default the window will be centered in the viewport, so if dragging is disabled the window may need
|
|
88
|
+
* to be positioned programmatically after render (e.g., myWindow.setPosition(100, 100);).
|
|
89
|
+
*/
|
|
90
|
+
draggable : true,
|
|
91
|
+
/**
|
|
92
|
+
* @cfg {Boolean} closable
|
|
93
|
+
* <p>True to display the 'close' tool button and allow the user to close the window, false to
|
|
94
|
+
* hide the button and disallow closing the window (defaults to true).</p>
|
|
95
|
+
* <p>By default, when close is requested by either clicking the close button in the header
|
|
96
|
+
* or pressing ESC when the Window has focus, the {@link #close} method will be called. This
|
|
97
|
+
* will <i>{@link Ext.Component#destroy destroy}</i> the Window and its content meaning that
|
|
98
|
+
* it may not be reused.</p>
|
|
99
|
+
* <p>To make closing a Window <i>hide</i> the Window so that it may be reused, set
|
|
100
|
+
* {@link #closeAction} to 'hide'.
|
|
101
|
+
*/
|
|
102
|
+
closable : true,
|
|
103
|
+
/**
|
|
104
|
+
* @cfg {String} closeAction
|
|
105
|
+
* <p>The action to take when the close header tool is clicked:
|
|
106
|
+
* <div class="mdetail-params"><ul>
|
|
107
|
+
* <li><b><code>'{@link #close}'</code></b> : <b>Default</b><div class="sub-desc">
|
|
108
|
+
* {@link #close remove} the window from the DOM and {@link Ext.Component#destroy destroy}
|
|
109
|
+
* it and all descendant Components. The window will <b>not</b> be available to be
|
|
110
|
+
* redisplayed via the {@link #show} method.
|
|
111
|
+
* </div></li>
|
|
112
|
+
* <li><b><code>'{@link #hide}'</code></b> : <div class="sub-desc">
|
|
113
|
+
* {@link #hide} the window by setting visibility to hidden and applying negative offsets.
|
|
114
|
+
* The window will be available to be redisplayed via the {@link #show} method.
|
|
115
|
+
* </div></li>
|
|
116
|
+
* </ul></div>
|
|
117
|
+
* <p><b>Note:</b> This setting does not affect the {@link #close} method
|
|
118
|
+
* which will always {@link Ext.Component#destroy destroy} the window. To
|
|
119
|
+
* programatically <i>hide</i> a window, call {@link #hide}.</p>
|
|
120
|
+
*/
|
|
121
|
+
closeAction : 'close',
|
|
122
|
+
/**
|
|
123
|
+
* @cfg {Boolean} constrain
|
|
124
|
+
* True to constrain the window within its containing element, false to allow it to fall outside of its
|
|
125
|
+
* containing element. By default the window will be rendered to document.body. To render and constrain the
|
|
126
|
+
* window within another element specify {@link #renderTo}.
|
|
127
|
+
* (defaults to false). Optionally the header only can be constrained using {@link #constrainHeader}.
|
|
128
|
+
*/
|
|
129
|
+
constrain : false,
|
|
130
|
+
/**
|
|
131
|
+
* @cfg {Boolean} constrainHeader
|
|
132
|
+
* True to constrain the window header within its containing element (allowing the window body to fall outside
|
|
133
|
+
* of its containing element) or false to allow the header to fall outside its containing element (defaults to
|
|
134
|
+
* false). Optionally the entire window can be constrained using {@link #constrain}.
|
|
135
|
+
*/
|
|
136
|
+
constrainHeader : false,
|
|
137
|
+
/**
|
|
138
|
+
* @cfg {Boolean} plain
|
|
139
|
+
* True to render the window body with a transparent background so that it will blend into the framing
|
|
140
|
+
* elements, false to add a lighter background color to visually highlight the body element and separate it
|
|
141
|
+
* more distinctly from the surrounding frame (defaults to false).
|
|
142
|
+
*/
|
|
143
|
+
plain : false,
|
|
144
|
+
/**
|
|
145
|
+
* @cfg {Boolean} minimizable
|
|
146
|
+
* True to display the 'minimize' tool button and allow the user to minimize the window, false to hide the button
|
|
147
|
+
* and disallow minimizing the window (defaults to false). Note that this button provides no implementation --
|
|
148
|
+
* the behavior of minimizing a window is implementation-specific, so the minimize event must be handled and a
|
|
149
|
+
* custom minimize behavior implemented for this option to be useful.
|
|
150
|
+
*/
|
|
151
|
+
minimizable : false,
|
|
152
|
+
/**
|
|
153
|
+
* @cfg {Boolean} maximizable
|
|
154
|
+
* True to display the 'maximize' tool button and allow the user to maximize the window, false to hide the button
|
|
155
|
+
* and disallow maximizing the window (defaults to false). Note that when a window is maximized, the tool button
|
|
156
|
+
* will automatically change to a 'restore' button with the appropriate behavior already built-in that will
|
|
157
|
+
* restore the window to its previous size.
|
|
158
|
+
*/
|
|
159
|
+
maximizable : false,
|
|
160
|
+
/**
|
|
161
|
+
* @cfg {Number} minHeight
|
|
162
|
+
* The minimum height in pixels allowed for this window (defaults to 100). Only applies when resizable = true.
|
|
163
|
+
*/
|
|
164
|
+
minHeight : 100,
|
|
165
|
+
/**
|
|
166
|
+
* @cfg {Number} minWidth
|
|
167
|
+
* The minimum width in pixels allowed for this window (defaults to 200). Only applies when resizable = true.
|
|
168
|
+
*/
|
|
169
|
+
minWidth : 200,
|
|
170
|
+
/**
|
|
171
|
+
* @cfg {Boolean} expandOnShow
|
|
172
|
+
* True to always expand the window when it is displayed, false to keep it in its current state (which may be
|
|
173
|
+
* {@link #collapsed}) when displayed (defaults to true).
|
|
174
|
+
*/
|
|
175
|
+
expandOnShow : true,
|
|
176
|
+
|
|
177
|
+
// inherited docs, same default
|
|
178
|
+
collapsible : false,
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @cfg {Boolean} initHidden
|
|
182
|
+
* True to hide the window until show() is explicitly called (defaults to true).
|
|
183
|
+
*/
|
|
184
|
+
initHidden : true,
|
|
185
|
+
/**
|
|
186
|
+
* @cfg {Boolean} monitorResize @hide
|
|
187
|
+
* This is automatically managed based on the value of constrain and constrainToHeader
|
|
188
|
+
*/
|
|
189
|
+
monitorResize : true,
|
|
190
|
+
|
|
191
|
+
// The following configs are set to provide the basic functionality of a window.
|
|
192
|
+
// Changing them would require additional code to handle correctly and should
|
|
193
|
+
// usually only be done in subclasses that can provide custom behavior. Changing them
|
|
194
|
+
// may have unexpected or undesirable results.
|
|
195
|
+
/** @cfg {String} elements @hide */
|
|
196
|
+
elements : 'header,body',
|
|
197
|
+
/** @cfg {Boolean} frame @hide */
|
|
198
|
+
frame : true,
|
|
199
|
+
/** @cfg {Boolean} floating @hide */
|
|
200
|
+
floating : true,
|
|
201
|
+
|
|
202
|
+
// private
|
|
203
|
+
initComponent : function(){
|
|
204
|
+
Ext.Window.superclass.initComponent.call(this);
|
|
205
|
+
this.addEvents(
|
|
206
|
+
/**
|
|
207
|
+
* @event activate
|
|
208
|
+
* Fires after the window has been visually activated via {@link setActive}.
|
|
209
|
+
* @param {Ext.Window} this
|
|
210
|
+
*/
|
|
211
|
+
/**
|
|
212
|
+
* @event deactivate
|
|
213
|
+
* Fires after the window has been visually deactivated via {@link setActive}.
|
|
214
|
+
* @param {Ext.Window} this
|
|
215
|
+
*/
|
|
216
|
+
/**
|
|
217
|
+
* @event resize
|
|
218
|
+
* Fires after the window has been resized.
|
|
219
|
+
* @param {Ext.Window} this
|
|
220
|
+
* @param {Number} width The window's new width
|
|
221
|
+
* @param {Number} height The window's new height
|
|
222
|
+
*/
|
|
223
|
+
'resize',
|
|
224
|
+
/**
|
|
225
|
+
* @event maximize
|
|
226
|
+
* Fires after the window has been maximized.
|
|
227
|
+
* @param {Ext.Window} this
|
|
228
|
+
*/
|
|
229
|
+
'maximize',
|
|
230
|
+
/**
|
|
231
|
+
* @event minimize
|
|
232
|
+
* Fires after the window has been minimized.
|
|
233
|
+
* @param {Ext.Window} this
|
|
234
|
+
*/
|
|
235
|
+
'minimize',
|
|
236
|
+
/**
|
|
237
|
+
* @event restore
|
|
238
|
+
* Fires after the window has been restored to its original size after being maximized.
|
|
239
|
+
* @param {Ext.Window} this
|
|
240
|
+
*/
|
|
241
|
+
'restore'
|
|
242
|
+
);
|
|
243
|
+
if(this.initHidden === false){
|
|
244
|
+
this.show();
|
|
245
|
+
}else{
|
|
246
|
+
this.hidden = true;
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
|
|
250
|
+
// private
|
|
251
|
+
getState : function(){
|
|
252
|
+
return Ext.apply(Ext.Window.superclass.getState.call(this) || {}, this.getBox(true));
|
|
253
|
+
},
|
|
254
|
+
|
|
255
|
+
// private
|
|
256
|
+
onRender : function(ct, position){
|
|
257
|
+
Ext.Window.superclass.onRender.call(this, ct, position);
|
|
258
|
+
|
|
259
|
+
if(this.plain){
|
|
260
|
+
this.el.addClass('x-window-plain');
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// this element allows the Window to be focused for keyboard events
|
|
264
|
+
this.focusEl = this.el.createChild({
|
|
265
|
+
tag: 'a', href:'#', cls:'x-dlg-focus',
|
|
266
|
+
tabIndex:'-1', html: ' '});
|
|
267
|
+
this.focusEl.swallowEvent('click', true);
|
|
268
|
+
|
|
269
|
+
this.proxy = this.el.createProxy('x-window-proxy');
|
|
270
|
+
this.proxy.enableDisplayMode('block');
|
|
271
|
+
|
|
272
|
+
if(this.modal){
|
|
273
|
+
this.mask = this.container.createChild({cls:'ext-el-mask'}, this.el.dom);
|
|
274
|
+
this.mask.enableDisplayMode('block');
|
|
275
|
+
this.mask.hide();
|
|
276
|
+
this.mon(this.mask, 'click', this.focus, this);
|
|
277
|
+
}
|
|
278
|
+
this.initTools();
|
|
279
|
+
},
|
|
280
|
+
|
|
281
|
+
// private
|
|
282
|
+
initEvents : function(){
|
|
283
|
+
Ext.Window.superclass.initEvents.call(this);
|
|
284
|
+
if(this.animateTarget){
|
|
285
|
+
this.setAnimateTarget(this.animateTarget);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
if(this.resizable){
|
|
289
|
+
this.resizer = new Ext.Resizable(this.el, {
|
|
290
|
+
minWidth: this.minWidth,
|
|
291
|
+
minHeight:this.minHeight,
|
|
292
|
+
handles: this.resizeHandles || 'all',
|
|
293
|
+
pinned: true,
|
|
294
|
+
resizeElement : this.resizerAction
|
|
295
|
+
});
|
|
296
|
+
this.resizer.window = this;
|
|
297
|
+
this.mon(this.resizer, 'beforeresize', this.beforeResize, this);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
if(this.draggable){
|
|
301
|
+
this.header.addClass('x-window-draggable');
|
|
302
|
+
}
|
|
303
|
+
this.mon(this.el, 'mousedown', this.toFront, this);
|
|
304
|
+
this.manager = this.manager || Ext.WindowMgr;
|
|
305
|
+
this.manager.register(this);
|
|
306
|
+
if(this.maximized){
|
|
307
|
+
this.maximized = false;
|
|
308
|
+
this.maximize();
|
|
309
|
+
}
|
|
310
|
+
if(this.closable){
|
|
311
|
+
var km = this.getKeyMap();
|
|
312
|
+
km.on(27, this.onEsc, this);
|
|
313
|
+
km.disable();
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
|
|
317
|
+
initDraggable : function(){
|
|
318
|
+
/**
|
|
319
|
+
* If this Window is configured {@link #draggable}, this property will contain
|
|
320
|
+
* an instance of {@link Ext.dd.DD} which handles dragging the Window's DOM Element.
|
|
321
|
+
* @type Ext.dd.DD
|
|
322
|
+
* @property dd
|
|
323
|
+
*/
|
|
324
|
+
this.dd = new Ext.Window.DD(this);
|
|
325
|
+
},
|
|
326
|
+
|
|
327
|
+
// private
|
|
328
|
+
onEsc : function(){
|
|
329
|
+
this[this.closeAction]();
|
|
330
|
+
},
|
|
331
|
+
|
|
332
|
+
// private
|
|
333
|
+
beforeDestroy : function(){
|
|
334
|
+
if (this.rendered){
|
|
335
|
+
this.hide();
|
|
336
|
+
if(this.doAnchor){
|
|
337
|
+
Ext.EventManager.removeResizeListener(this.doAnchor, this);
|
|
338
|
+
Ext.EventManager.un(window, 'scroll', this.doAnchor, this);
|
|
339
|
+
}
|
|
340
|
+
Ext.destroy(
|
|
341
|
+
this.focusEl,
|
|
342
|
+
this.resizer,
|
|
343
|
+
this.dd,
|
|
344
|
+
this.proxy,
|
|
345
|
+
this.mask
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
Ext.Window.superclass.beforeDestroy.call(this);
|
|
349
|
+
},
|
|
350
|
+
|
|
351
|
+
// private
|
|
352
|
+
onDestroy : function(){
|
|
353
|
+
if(this.manager){
|
|
354
|
+
this.manager.unregister(this);
|
|
355
|
+
}
|
|
356
|
+
Ext.Window.superclass.onDestroy.call(this);
|
|
357
|
+
},
|
|
358
|
+
|
|
359
|
+
// private
|
|
360
|
+
initTools : function(){
|
|
361
|
+
if(this.minimizable){
|
|
362
|
+
this.addTool({
|
|
363
|
+
id: 'minimize',
|
|
364
|
+
handler: this.minimize.createDelegate(this, [])
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
if(this.maximizable){
|
|
368
|
+
this.addTool({
|
|
369
|
+
id: 'maximize',
|
|
370
|
+
handler: this.maximize.createDelegate(this, [])
|
|
371
|
+
});
|
|
372
|
+
this.addTool({
|
|
373
|
+
id: 'restore',
|
|
374
|
+
handler: this.restore.createDelegate(this, []),
|
|
375
|
+
hidden:true
|
|
376
|
+
});
|
|
377
|
+
this.mon(this.header, 'dblclick', this.toggleMaximize, this);
|
|
378
|
+
}
|
|
379
|
+
if(this.closable){
|
|
380
|
+
this.addTool({
|
|
381
|
+
id: 'close',
|
|
382
|
+
handler: this[this.closeAction].createDelegate(this, [])
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
|
|
387
|
+
// private
|
|
388
|
+
resizerAction : function(){
|
|
389
|
+
var box = this.proxy.getBox();
|
|
390
|
+
this.proxy.hide();
|
|
391
|
+
this.window.handleResize(box);
|
|
392
|
+
return box;
|
|
393
|
+
},
|
|
394
|
+
|
|
395
|
+
// private
|
|
396
|
+
beforeResize : function(){
|
|
397
|
+
this.resizer.minHeight = Math.max(this.minHeight, this.getFrameHeight() + 40); // 40 is a magic minimum content size?
|
|
398
|
+
this.resizer.minWidth = Math.max(this.minWidth, this.getFrameWidth() + 40);
|
|
399
|
+
this.resizeBox = this.el.getBox();
|
|
400
|
+
},
|
|
401
|
+
|
|
402
|
+
// private
|
|
403
|
+
updateHandles : function(){
|
|
404
|
+
if(Ext.isIE && this.resizer){
|
|
405
|
+
this.resizer.syncHandleHeight();
|
|
406
|
+
this.el.repaint();
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
|
|
410
|
+
// private
|
|
411
|
+
handleResize : function(box){
|
|
412
|
+
var rz = this.resizeBox;
|
|
413
|
+
if(rz.x != box.x || rz.y != box.y){
|
|
414
|
+
this.updateBox(box);
|
|
415
|
+
}else{
|
|
416
|
+
this.setSize(box);
|
|
417
|
+
}
|
|
418
|
+
this.focus();
|
|
419
|
+
this.updateHandles();
|
|
420
|
+
this.saveState();
|
|
421
|
+
this.doLayout();
|
|
422
|
+
this.fireEvent('resize', this, box.width, box.height);
|
|
423
|
+
},
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Focuses the window. If a defaultButton is set, it will receive focus, otherwise the
|
|
427
|
+
* window itself will receive focus.
|
|
428
|
+
*/
|
|
429
|
+
focus : function(){
|
|
430
|
+
var f = this.focusEl, db = this.defaultButton, t = typeof db;
|
|
431
|
+
if(t != 'undefined'){
|
|
432
|
+
if(t == 'number' && this.fbar){
|
|
433
|
+
f = this.fbar.items.get(db);
|
|
434
|
+
}else if(t == 'string'){
|
|
435
|
+
f = Ext.getCmp(db);
|
|
436
|
+
}else{
|
|
437
|
+
f = db;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
f = f || this.focusEl;
|
|
441
|
+
f.focus.defer(10, f);
|
|
442
|
+
},
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Sets the target element from which the window should animate while opening.
|
|
446
|
+
* @param {String/Element} el The target element or id
|
|
447
|
+
*/
|
|
448
|
+
setAnimateTarget : function(el){
|
|
449
|
+
el = Ext.get(el);
|
|
450
|
+
this.animateTarget = el;
|
|
451
|
+
},
|
|
452
|
+
|
|
453
|
+
// private
|
|
454
|
+
beforeShow : function(){
|
|
455
|
+
delete this.el.lastXY;
|
|
456
|
+
delete this.el.lastLT;
|
|
457
|
+
if(this.x === undefined || this.y === undefined){
|
|
458
|
+
var xy = this.el.getAlignToXY(this.container, 'c-c');
|
|
459
|
+
var pos = this.el.translatePoints(xy[0], xy[1]);
|
|
460
|
+
this.x = this.x === undefined? pos.left : this.x;
|
|
461
|
+
this.y = this.y === undefined? pos.top : this.y;
|
|
462
|
+
}
|
|
463
|
+
this.el.setLeftTop(this.x, this.y);
|
|
464
|
+
|
|
465
|
+
if(this.expandOnShow){
|
|
466
|
+
this.expand(false);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
if(this.modal){
|
|
470
|
+
Ext.getBody().addClass('x-body-masked');
|
|
471
|
+
this.mask.setSize(Ext.lib.Dom.getViewWidth(true), Ext.lib.Dom.getViewHeight(true));
|
|
472
|
+
this.mask.show();
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Shows the window, rendering it first if necessary, or activates it and brings it to front if hidden.
|
|
478
|
+
* @param {String/Element} animateTarget (optional) The target element or id from which the window should
|
|
479
|
+
* animate while opening (defaults to null with no animation)
|
|
480
|
+
* @param {Function} callback (optional) A callback function to call after the window is displayed
|
|
481
|
+
* @param {Object} scope (optional) The scope in which to execute the callback
|
|
482
|
+
* @return {Ext.Window} this
|
|
483
|
+
*/
|
|
484
|
+
show : function(animateTarget, cb, scope){
|
|
485
|
+
if(!this.rendered){
|
|
486
|
+
this.render(Ext.getBody());
|
|
487
|
+
}
|
|
488
|
+
if(this.hidden === false){
|
|
489
|
+
this.toFront();
|
|
490
|
+
return this;
|
|
491
|
+
}
|
|
492
|
+
if(this.fireEvent('beforeshow', this) === false){
|
|
493
|
+
return this;
|
|
494
|
+
}
|
|
495
|
+
if(cb){
|
|
496
|
+
this.on('show', cb, scope, {single:true});
|
|
497
|
+
}
|
|
498
|
+
this.hidden = false;
|
|
499
|
+
if(animateTarget !== undefined){
|
|
500
|
+
this.setAnimateTarget(animateTarget);
|
|
501
|
+
}
|
|
502
|
+
this.beforeShow();
|
|
503
|
+
if(this.animateTarget){
|
|
504
|
+
this.animShow();
|
|
505
|
+
}else{
|
|
506
|
+
this.afterShow();
|
|
507
|
+
}
|
|
508
|
+
return this;
|
|
509
|
+
},
|
|
510
|
+
|
|
511
|
+
// private
|
|
512
|
+
afterShow : function(isAnim){
|
|
513
|
+
this.proxy.hide();
|
|
514
|
+
this.el.setStyle('display', 'block');
|
|
515
|
+
this.el.show();
|
|
516
|
+
if(this.maximized){
|
|
517
|
+
this.fitContainer();
|
|
518
|
+
}
|
|
519
|
+
if(Ext.isMac && Ext.isGecko){ // work around stupid FF 2.0/Mac scroll bar bug
|
|
520
|
+
this.cascade(this.setAutoScroll);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
if(this.monitorResize || this.modal || this.constrain || this.constrainHeader){
|
|
524
|
+
Ext.EventManager.onWindowResize(this.onWindowResize, this);
|
|
525
|
+
}
|
|
526
|
+
this.doConstrain();
|
|
527
|
+
this.doLayout();
|
|
528
|
+
if(this.keyMap){
|
|
529
|
+
this.keyMap.enable();
|
|
530
|
+
}
|
|
531
|
+
this.toFront();
|
|
532
|
+
this.updateHandles();
|
|
533
|
+
if(isAnim && (Ext.isIE || Ext.isWebKit)){
|
|
534
|
+
var sz = this.getSize();
|
|
535
|
+
this.onResize(sz.width, sz.height);
|
|
536
|
+
}
|
|
537
|
+
this.fireEvent('show', this);
|
|
538
|
+
},
|
|
539
|
+
|
|
540
|
+
// private
|
|
541
|
+
animShow : function(){
|
|
542
|
+
this.proxy.show();
|
|
543
|
+
this.proxy.setBox(this.animateTarget.getBox());
|
|
544
|
+
this.proxy.setOpacity(0);
|
|
545
|
+
var b = this.getBox(false);
|
|
546
|
+
b.callback = this.afterShow.createDelegate(this, [true], false);
|
|
547
|
+
b.scope = this;
|
|
548
|
+
b.duration = 0.25;
|
|
549
|
+
b.easing = 'easeNone';
|
|
550
|
+
b.opacity = 0.5;
|
|
551
|
+
b.block = true;
|
|
552
|
+
this.el.setStyle('display', 'none');
|
|
553
|
+
this.proxy.shift(b);
|
|
554
|
+
},
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Hides the window, setting it to invisible and applying negative offsets.
|
|
558
|
+
* @param {String/Element} animateTarget (optional) The target element or id to which the window should
|
|
559
|
+
* animate while hiding (defaults to null with no animation)
|
|
560
|
+
* @param {Function} callback (optional) A callback function to call after the window is hidden
|
|
561
|
+
* @param {Object} scope (optional) The scope in which to execute the callback
|
|
562
|
+
* @return {Ext.Window} this
|
|
563
|
+
*/
|
|
564
|
+
hide : function(animateTarget, cb, scope){
|
|
565
|
+
if(this.hidden || this.fireEvent('beforehide', this) === false){
|
|
566
|
+
return this;
|
|
567
|
+
}
|
|
568
|
+
if(cb){
|
|
569
|
+
this.on('hide', cb, scope, {single:true});
|
|
570
|
+
}
|
|
571
|
+
this.hidden = true;
|
|
572
|
+
if(animateTarget !== undefined){
|
|
573
|
+
this.setAnimateTarget(animateTarget);
|
|
574
|
+
}
|
|
575
|
+
if(this.modal){
|
|
576
|
+
this.mask.hide();
|
|
577
|
+
Ext.getBody().removeClass('x-body-masked');
|
|
578
|
+
}
|
|
579
|
+
if(this.animateTarget){
|
|
580
|
+
this.animHide();
|
|
581
|
+
}else{
|
|
582
|
+
this.el.hide();
|
|
583
|
+
this.afterHide();
|
|
584
|
+
}
|
|
585
|
+
return this;
|
|
586
|
+
},
|
|
587
|
+
|
|
588
|
+
// private
|
|
589
|
+
afterHide : function(){
|
|
590
|
+
this.proxy.hide();
|
|
591
|
+
if(this.monitorResize || this.modal || this.constrain || this.constrainHeader){
|
|
592
|
+
Ext.EventManager.removeResizeListener(this.onWindowResize, this);
|
|
593
|
+
}
|
|
594
|
+
if(this.keyMap){
|
|
595
|
+
this.keyMap.disable();
|
|
596
|
+
}
|
|
597
|
+
this.fireEvent('hide', this);
|
|
598
|
+
},
|
|
599
|
+
|
|
600
|
+
// private
|
|
601
|
+
animHide : function(){
|
|
602
|
+
this.proxy.setOpacity(0.5);
|
|
603
|
+
this.proxy.show();
|
|
604
|
+
var tb = this.getBox(false);
|
|
605
|
+
this.proxy.setBox(tb);
|
|
606
|
+
this.el.hide();
|
|
607
|
+
var b = this.animateTarget.getBox();
|
|
608
|
+
b.callback = this.afterHide;
|
|
609
|
+
b.scope = this;
|
|
610
|
+
b.duration = 0.25;
|
|
611
|
+
b.easing = 'easeNone';
|
|
612
|
+
b.block = true;
|
|
613
|
+
b.opacity = 0;
|
|
614
|
+
this.proxy.shift(b);
|
|
615
|
+
},
|
|
616
|
+
|
|
617
|
+
// private
|
|
618
|
+
onWindowResize : function(){
|
|
619
|
+
if(this.maximized){
|
|
620
|
+
this.fitContainer();
|
|
621
|
+
}
|
|
622
|
+
if(this.modal){
|
|
623
|
+
this.mask.setSize('100%', '100%');
|
|
624
|
+
var force = this.mask.dom.offsetHeight;
|
|
625
|
+
this.mask.setSize(Ext.lib.Dom.getViewWidth(true), Ext.lib.Dom.getViewHeight(true));
|
|
626
|
+
}
|
|
627
|
+
this.doConstrain();
|
|
628
|
+
},
|
|
629
|
+
|
|
630
|
+
// private
|
|
631
|
+
doConstrain : function(){
|
|
632
|
+
if(this.constrain || this.constrainHeader){
|
|
633
|
+
var offsets;
|
|
634
|
+
if(this.constrain){
|
|
635
|
+
offsets = {
|
|
636
|
+
right:this.el.shadowOffset,
|
|
637
|
+
left:this.el.shadowOffset,
|
|
638
|
+
bottom:this.el.shadowOffset
|
|
639
|
+
};
|
|
640
|
+
}else {
|
|
641
|
+
var s = this.getSize();
|
|
642
|
+
offsets = {
|
|
643
|
+
right:-(s.width - 100),
|
|
644
|
+
bottom:-(s.height - 25)
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
var xy = this.el.getConstrainToXY(this.container, true, offsets);
|
|
649
|
+
if(xy){
|
|
650
|
+
this.setPosition(xy[0], xy[1]);
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
|
|
655
|
+
// private - used for dragging
|
|
656
|
+
ghost : function(cls){
|
|
657
|
+
var ghost = this.createGhost(cls);
|
|
658
|
+
var box = this.getBox(true);
|
|
659
|
+
ghost.setLeftTop(box.x, box.y);
|
|
660
|
+
ghost.setWidth(box.width);
|
|
661
|
+
this.el.hide();
|
|
662
|
+
this.activeGhost = ghost;
|
|
663
|
+
return ghost;
|
|
664
|
+
},
|
|
665
|
+
|
|
666
|
+
// private
|
|
667
|
+
unghost : function(show, matchPosition){
|
|
668
|
+
if(!this.activeGhost) {
|
|
669
|
+
return;
|
|
670
|
+
}
|
|
671
|
+
if(show !== false){
|
|
672
|
+
this.el.show();
|
|
673
|
+
this.focus();
|
|
674
|
+
if(Ext.isMac && Ext.isGecko){ // work around stupid FF 2.0/Mac scroll bar bug
|
|
675
|
+
this.cascade(this.setAutoScroll);
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
if(matchPosition !== false){
|
|
679
|
+
this.setPosition(this.activeGhost.getLeft(true), this.activeGhost.getTop(true));
|
|
680
|
+
}
|
|
681
|
+
this.activeGhost.hide();
|
|
682
|
+
this.activeGhost.remove();
|
|
683
|
+
delete this.activeGhost;
|
|
684
|
+
},
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Placeholder method for minimizing the window. By default, this method simply fires the {@link #minimize} event
|
|
688
|
+
* since the behavior of minimizing a window is application-specific. To implement custom minimize behavior,
|
|
689
|
+
* either the minimize event can be handled or this method can be overridden.
|
|
690
|
+
* @return {Ext.Window} this
|
|
691
|
+
*/
|
|
692
|
+
minimize : function(){
|
|
693
|
+
this.fireEvent('minimize', this);
|
|
694
|
+
return this;
|
|
695
|
+
},
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* <p>Closes the Window, removes it from the DOM, {@link Ext.Component#destroy destroy}s
|
|
699
|
+
* the Window object and all its descendant Components. The {@link Ext.Panel#beforeclose beforeclose}
|
|
700
|
+
* event is fired before the close happens and will cancel the close action if it returns false.<p>
|
|
701
|
+
* <p><b>Note:</b> This method is not affected by the {@link #closeAction} setting which
|
|
702
|
+
* only affects the action triggered when clicking the {@link #closable 'close' tool in the header}.
|
|
703
|
+
* To hide the Window without destroying it, call {@link #hide}.</p>
|
|
704
|
+
*/
|
|
705
|
+
close : function(){
|
|
706
|
+
if(this.fireEvent('beforeclose', this) !== false){
|
|
707
|
+
this.hide(null, function(){
|
|
708
|
+
this.fireEvent('close', this);
|
|
709
|
+
this.destroy();
|
|
710
|
+
}, this);
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Fits the window within its current container and automatically replaces
|
|
716
|
+
* the {@link #maximizable 'maximize' tool button} with the 'restore' tool button.
|
|
717
|
+
* Also see {@link #toggleMaximize}.
|
|
718
|
+
* @return {Ext.Window} this
|
|
719
|
+
*/
|
|
720
|
+
maximize : function(){
|
|
721
|
+
if(!this.maximized){
|
|
722
|
+
this.expand(false);
|
|
723
|
+
this.restoreSize = this.getSize();
|
|
724
|
+
this.restorePos = this.getPosition(true);
|
|
725
|
+
if (this.maximizable){
|
|
726
|
+
this.tools.maximize.hide();
|
|
727
|
+
this.tools.restore.show();
|
|
728
|
+
}
|
|
729
|
+
this.maximized = true;
|
|
730
|
+
this.el.disableShadow();
|
|
731
|
+
|
|
732
|
+
if(this.dd){
|
|
733
|
+
this.dd.lock();
|
|
734
|
+
}
|
|
735
|
+
if(this.collapsible){
|
|
736
|
+
this.tools.toggle.hide();
|
|
737
|
+
}
|
|
738
|
+
this.el.addClass('x-window-maximized');
|
|
739
|
+
this.container.addClass('x-window-maximized-ct');
|
|
740
|
+
|
|
741
|
+
this.setPosition(0, 0);
|
|
742
|
+
this.fitContainer();
|
|
743
|
+
this.fireEvent('maximize', this);
|
|
744
|
+
}
|
|
745
|
+
return this;
|
|
746
|
+
},
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Restores a {@link #maximizable maximized} window back to its original
|
|
750
|
+
* size and position prior to being maximized and also replaces
|
|
751
|
+
* the 'restore' tool button with the 'maximize' tool button.
|
|
752
|
+
* Also see {@link #toggleMaximize}.
|
|
753
|
+
* @return {Ext.Window} this
|
|
754
|
+
*/
|
|
755
|
+
restore : function(){
|
|
756
|
+
if(this.maximized){
|
|
757
|
+
this.el.removeClass('x-window-maximized');
|
|
758
|
+
this.tools.restore.hide();
|
|
759
|
+
this.tools.maximize.show();
|
|
760
|
+
this.setPosition(this.restorePos[0], this.restorePos[1]);
|
|
761
|
+
this.setSize(this.restoreSize.width, this.restoreSize.height);
|
|
762
|
+
delete this.restorePos;
|
|
763
|
+
delete this.restoreSize;
|
|
764
|
+
this.maximized = false;
|
|
765
|
+
this.el.enableShadow(true);
|
|
766
|
+
|
|
767
|
+
if(this.dd){
|
|
768
|
+
this.dd.unlock();
|
|
769
|
+
}
|
|
770
|
+
if(this.collapsible){
|
|
771
|
+
this.tools.toggle.show();
|
|
772
|
+
}
|
|
773
|
+
this.container.removeClass('x-window-maximized-ct');
|
|
774
|
+
|
|
775
|
+
this.doConstrain();
|
|
776
|
+
this.fireEvent('restore', this);
|
|
777
|
+
}
|
|
778
|
+
return this;
|
|
779
|
+
},
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* A shortcut method for toggling between {@link #maximize} and {@link #restore} based on the current maximized
|
|
783
|
+
* state of the window.
|
|
784
|
+
* @return {Ext.Window} this
|
|
785
|
+
*/
|
|
786
|
+
toggleMaximize : function(){
|
|
787
|
+
return this[this.maximized ? 'restore' : 'maximize']();
|
|
788
|
+
},
|
|
789
|
+
|
|
790
|
+
// private
|
|
791
|
+
fitContainer : function(){
|
|
792
|
+
var vs = this.container.getViewSize();
|
|
793
|
+
this.setSize(vs.width, vs.height);
|
|
794
|
+
},
|
|
795
|
+
|
|
796
|
+
// private
|
|
797
|
+
// z-index is managed by the WindowManager and may be overwritten at any time
|
|
798
|
+
setZIndex : function(index){
|
|
799
|
+
if(this.modal){
|
|
800
|
+
this.mask.setStyle('z-index', index);
|
|
801
|
+
}
|
|
802
|
+
this.el.setZIndex(++index);
|
|
803
|
+
index += 5;
|
|
804
|
+
|
|
805
|
+
if(this.resizer){
|
|
806
|
+
this.resizer.proxy.setStyle('z-index', ++index);
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
this.lastZIndex = index;
|
|
810
|
+
},
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Aligns the window to the specified element
|
|
814
|
+
* @param {Mixed} element The element to align to.
|
|
815
|
+
* @param {String} position The position to align to (see {@link Ext.Element#alignTo} for more details).
|
|
816
|
+
* @param {Array} offsets (optional) Offset the positioning by [x, y]
|
|
817
|
+
* @return {Ext.Window} this
|
|
818
|
+
*/
|
|
819
|
+
alignTo : function(element, position, offsets){
|
|
820
|
+
var xy = this.el.getAlignToXY(element, position, offsets);
|
|
821
|
+
this.setPagePosition(xy[0], xy[1]);
|
|
822
|
+
return this;
|
|
823
|
+
},
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Anchors this window to another element and realigns it when the window is resized or scrolled.
|
|
827
|
+
* @param {Mixed} element The element to align to.
|
|
828
|
+
* @param {String} position The position to align to (see {@link Ext.Element#alignTo} for more details)
|
|
829
|
+
* @param {Array} offsets (optional) Offset the positioning by [x, y]
|
|
830
|
+
* @param {Boolean/Number} monitorScroll (optional) true to monitor body scroll and reposition. If this parameter
|
|
831
|
+
* is a number, it is used as the buffer delay (defaults to 50ms).
|
|
832
|
+
* @return {Ext.Window} this
|
|
833
|
+
*/
|
|
834
|
+
anchorTo : function(el, alignment, offsets, monitorScroll){
|
|
835
|
+
if(this.doAnchor){
|
|
836
|
+
Ext.EventManager.removeResizeListener(this.doAnchor, this);
|
|
837
|
+
Ext.EventManager.un(window, 'scroll', this.doAnchor, this);
|
|
838
|
+
}
|
|
839
|
+
this.doAnchor = function(){
|
|
840
|
+
this.alignTo(el, alignment, offsets);
|
|
841
|
+
};
|
|
842
|
+
Ext.EventManager.onWindowResize(this.doAnchor, this);
|
|
843
|
+
|
|
844
|
+
var tm = typeof monitorScroll;
|
|
845
|
+
if(tm != 'undefined'){
|
|
846
|
+
Ext.EventManager.on(window, 'scroll', this.doAnchor, this,
|
|
847
|
+
{buffer: tm == 'number' ? monitorScroll : 50});
|
|
848
|
+
}
|
|
849
|
+
this.doAnchor();
|
|
850
|
+
return this;
|
|
851
|
+
},
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* Brings this window to the front of any other visible windows
|
|
855
|
+
* @param {Boolean} e (optional) Specify <tt>false</tt> to prevent the window from being focused.
|
|
856
|
+
* @return {Ext.Window} this
|
|
857
|
+
*/
|
|
858
|
+
toFront : function(e){
|
|
859
|
+
if(this.manager.bringToFront(this)){
|
|
860
|
+
if(!e || !e.getTarget().focus){
|
|
861
|
+
this.focus();
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
return this;
|
|
865
|
+
},
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Makes this the active window by showing its shadow, or deactivates it by hiding its shadow. This method also
|
|
869
|
+
* fires the {@link #activate} or {@link #deactivate} event depending on which action occurred.
|
|
870
|
+
* @param {Boolean} active True to activate the window, false to deactivate it (defaults to false)
|
|
871
|
+
*/
|
|
872
|
+
setActive : function(active){
|
|
873
|
+
if(active){
|
|
874
|
+
if(!this.maximized){
|
|
875
|
+
this.el.enableShadow(true);
|
|
876
|
+
}
|
|
877
|
+
this.fireEvent('activate', this);
|
|
878
|
+
}else{
|
|
879
|
+
this.el.disableShadow();
|
|
880
|
+
this.fireEvent('deactivate', this);
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Sends this window to the back of (lower z-index than) any other visible windows
|
|
886
|
+
* @return {Ext.Window} this
|
|
887
|
+
*/
|
|
888
|
+
toBack : function(){
|
|
889
|
+
this.manager.sendToBack(this);
|
|
890
|
+
return this;
|
|
891
|
+
},
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* Centers this window in the viewport
|
|
895
|
+
* @return {Ext.Window} this
|
|
896
|
+
*/
|
|
897
|
+
center : function(){
|
|
898
|
+
var xy = this.el.getAlignToXY(this.container, 'c-c');
|
|
899
|
+
this.setPagePosition(xy[0], xy[1]);
|
|
900
|
+
return this;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* @cfg {Boolean} autoWidth @hide
|
|
905
|
+
**/
|
|
906
|
+
});
|
|
907
|
+
Ext.reg('window', Ext.Window);
|
|
908
|
+
|
|
909
|
+
// private - custom Window DD implementation
|
|
910
|
+
Ext.Window.DD = function(win){
|
|
911
|
+
this.win = win;
|
|
912
|
+
Ext.Window.DD.superclass.constructor.call(this, win.el.id, 'WindowDD-'+win.id);
|
|
913
|
+
this.setHandleElId(win.header.id);
|
|
914
|
+
this.scroll = false;
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
Ext.extend(Ext.Window.DD, Ext.dd.DD, {
|
|
918
|
+
moveOnly:true,
|
|
919
|
+
headerOffsets:[100, 25],
|
|
920
|
+
startDrag : function(){
|
|
921
|
+
var w = this.win;
|
|
922
|
+
this.proxy = w.ghost();
|
|
923
|
+
if(w.constrain !== false){
|
|
924
|
+
var so = w.el.shadowOffset;
|
|
925
|
+
this.constrainTo(w.container, {right: so, left: so, bottom: so});
|
|
926
|
+
}else if(w.constrainHeader !== false){
|
|
927
|
+
var s = this.proxy.getSize();
|
|
928
|
+
this.constrainTo(w.container, {right: -(s.width-this.headerOffsets[0]), bottom: -(s.height-this.headerOffsets[1])});
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
b4Drag : Ext.emptyFn,
|
|
932
|
+
|
|
933
|
+
onDrag : function(e){
|
|
934
|
+
this.alignElWithMouse(this.proxy, e.getPageX(), e.getPageY());
|
|
935
|
+
},
|
|
936
|
+
|
|
937
|
+
endDrag : function(e){
|
|
938
|
+
this.win.unghost();
|
|
939
|
+
this.win.saveState();
|
|
940
|
+
}
|
|
941
|
+
});
|