jsduck 0.6.1 → 2.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/README.md +35 -13
- data/Rakefile +129 -0
- data/bin/jsduck +112 -20
- data/jsduck.gemspec +10 -7
- data/lib/jsduck/aggregator.rb +46 -20
- data/lib/jsduck/aliases.rb +39 -0
- data/lib/jsduck/app.rb +123 -51
- data/lib/jsduck/categories.rb +132 -0
- data/lib/jsduck/class.rb +71 -18
- data/lib/jsduck/doc_formatter.rb +61 -26
- data/lib/jsduck/doc_parser.rb +53 -2
- data/lib/jsduck/exporter.rb +14 -15
- data/lib/jsduck/guides.rb +110 -0
- data/lib/jsduck/js_parser.rb +18 -4
- data/lib/jsduck/jsonp.rb +17 -0
- data/lib/jsduck/logger.rb +36 -0
- data/lib/jsduck/merger.rb +69 -51
- data/lib/jsduck/page.rb +1 -1
- data/lib/jsduck/relations.rb +14 -3
- data/lib/jsduck/{members.rb → search_data.rb} +3 -28
- data/lib/jsduck/source_file.rb +4 -4
- data/lib/jsduck/source_writer.rb +2 -2
- data/lib/jsduck/timer.rb +6 -2
- data/lib/jsduck/tree.rb +29 -16
- data/lib/jsduck/tree_icons.rb +1 -1
- data/template/README.md +14 -0
- data/template/app.js +25 -0
- data/template/app/Application.js +53 -0
- data/template/app/Favorites.js +88 -0
- data/template/app/History.js +45 -0
- data/template/app/LocalStore.js +45 -0
- data/template/app/Settings.js +39 -0
- data/template/app/Syntax.js +20 -0
- data/template/app/controller/Classes.js +301 -0
- data/template/app/controller/Search.js +156 -0
- data/template/app/model/Favorite.js +11 -0
- data/template/app/model/Setting.js +11 -0
- data/template/app/store/Favorites.js +7 -0
- data/template/app/store/Search.js +14 -0
- data/template/app/store/Settings.js +7 -0
- data/template/app/view/ClassGrid.js +109 -0
- data/template/app/view/HoverMenu.js +59 -0
- data/template/app/view/HoverMenuButton.js +147 -0
- data/template/app/view/Viewport.js +240 -0
- data/template/app/view/cls/Header.js +47 -0
- data/template/app/view/cls/Overview.js +415 -0
- data/template/app/view/cls/Toolbar.js +199 -0
- data/template/app/view/index/Container.js +63 -0
- data/template/app/view/search/Dropdown.js +53 -0
- data/template/app/view/tree/Tree.js +133 -0
- data/template/favicon.ico +0 -0
- data/template/index.html +32 -37
- data/template/{resources/prettify → prettify}/prettify.css +0 -0
- data/template/{resources/prettify → prettify}/prettify.js +0 -0
- data/template/resources/images/class-m.png +0 -0
- data/template/resources/images/class-sm.png +0 -0
- data/template/resources/images/component-m.png +0 -0
- data/template/resources/images/configs.png +0 -0
- data/template/resources/images/data-package.png +0 -0
- data/template/resources/images/doc-m.png +0 -0
- data/template/resources/images/drag-bar-center.png +0 -0
- data/template/resources/{elbow-end.gif → images/elbow-end.gif} +0 -0
- data/template/resources/images/events.png +0 -0
- data/template/resources/images/expandcollapse.png +0 -0
- data/template/resources/images/guide-icon.png +0 -0
- data/template/resources/images/guides.png +0 -0
- data/template/resources/images/headBG.png +0 -0
- data/template/resources/images/header.gif +0 -0
- data/template/resources/images/icon.png +0 -0
- data/template/resources/images/icons.png +0 -0
- data/template/resources/images/loading-title.png +0 -0
- data/template/resources/images/loading.gif +0 -0
- data/template/resources/{member-collapsed.gif → images/member-collapsed.gif} +0 -0
- data/template/resources/{member-expanded.gif → images/member-expanded.gif} +0 -0
- data/template/resources/{member-hover.gif → images/member-hover.gif} +0 -0
- data/template/resources/images/methods.png +0 -0
- data/template/resources/images/model.png +0 -0
- data/template/resources/images/properties.png +0 -0
- data/template/resources/images/root-lines.png +0 -0
- data/template/resources/images/search-box.png +0 -0
- data/template/resources/images/singleton-m.png +0 -0
- data/template/resources/images/version-tabs.png +0 -0
- data/template/resources/images/x.png +0 -0
- data/template/resources/images/x12.png +0 -0
- metadata +84 -387
- data/lib/jsduck/cfg_table.rb +0 -21
- data/lib/jsduck/event_table.rb +0 -33
- data/lib/jsduck/inheritance_tree.rb +0 -42
- data/lib/jsduck/long_params.rb +0 -30
- data/lib/jsduck/method_table.rb +0 -45
- data/lib/jsduck/property_table.rb +0 -21
- data/lib/jsduck/short_params.rb +0 -24
- data/lib/jsduck/table.rb +0 -121
- data/template/resources/TabCloseMenu.js +0 -150
- data/template/resources/block-bottom.gif +0 -0
- data/template/resources/block-top.gif +0 -0
- data/template/resources/class.gif +0 -0
- data/template/resources/cmp.gif +0 -0
- data/template/resources/collapse-all.gif +0 -0
- data/template/resources/config.gif +0 -0
- data/template/resources/css/ext-all.css +0 -6993
- data/template/resources/css/xtheme-gray.css +0 -1654
- data/template/resources/docs.css +0 -361
- data/template/resources/docs.gif +0 -0
- data/template/resources/docs.js +0 -769
- data/template/resources/event.gif +0 -0
- data/template/resources/expand-all.gif +0 -0
- data/template/resources/expand-bg-over.gif +0 -0
- data/template/resources/expand-bg.gif +0 -0
- data/template/resources/expand-members.gif +0 -0
- data/template/resources/ext-all.js +0 -11
- data/template/resources/ext-base.js +0 -7
- data/template/resources/extanim32.gif +0 -0
- data/template/resources/fav.gif +0 -0
- data/template/resources/favicon.ico +0 -0
- data/template/resources/hd-bg.png +0 -0
- data/template/resources/hide-inherited.gif +0 -0
- data/template/resources/images/default/box/corners-blue.gif +0 -0
- data/template/resources/images/default/box/corners.gif +0 -0
- data/template/resources/images/default/box/l-blue.gif +0 -0
- data/template/resources/images/default/box/l.gif +0 -0
- data/template/resources/images/default/box/r-blue.gif +0 -0
- data/template/resources/images/default/box/r.gif +0 -0
- data/template/resources/images/default/box/tb-blue.gif +0 -0
- data/template/resources/images/default/box/tb.gif +0 -0
- data/template/resources/images/default/button/arrow.gif +0 -0
- data/template/resources/images/default/button/btn.gif +0 -0
- data/template/resources/images/default/button/group-cs.gif +0 -0
- data/template/resources/images/default/button/group-lr.gif +0 -0
- data/template/resources/images/default/button/group-tb.gif +0 -0
- data/template/resources/images/default/button/s-arrow-b-noline.gif +0 -0
- data/template/resources/images/default/button/s-arrow-b.gif +0 -0
- data/template/resources/images/default/button/s-arrow-bo.gif +0 -0
- data/template/resources/images/default/button/s-arrow-noline.gif +0 -0
- data/template/resources/images/default/button/s-arrow-o.gif +0 -0
- data/template/resources/images/default/button/s-arrow.gif +0 -0
- data/template/resources/images/default/dd/drop-add.gif +0 -0
- data/template/resources/images/default/dd/drop-no.gif +0 -0
- data/template/resources/images/default/dd/drop-yes.gif +0 -0
- data/template/resources/images/default/editor/tb-sprite.gif +0 -0
- data/template/resources/images/default/form/checkbox.gif +0 -0
- data/template/resources/images/default/form/clear-trigger.gif +0 -0
- data/template/resources/images/default/form/clear-trigger.psd +0 -0
- data/template/resources/images/default/form/date-trigger.gif +0 -0
- data/template/resources/images/default/form/date-trigger.psd +0 -0
- data/template/resources/images/default/form/error-tip-corners.gif +0 -0
- data/template/resources/images/default/form/exclamation.gif +0 -0
- data/template/resources/images/default/form/radio.gif +0 -0
- data/template/resources/images/default/form/search-trigger.gif +0 -0
- data/template/resources/images/default/form/search-trigger.psd +0 -0
- data/template/resources/images/default/form/text-bg.gif +0 -0
- data/template/resources/images/default/form/trigger-square.gif +0 -0
- data/template/resources/images/default/form/trigger-square.psd +0 -0
- data/template/resources/images/default/form/trigger-tpl.gif +0 -0
- data/template/resources/images/default/form/trigger.gif +0 -0
- data/template/resources/images/default/form/trigger.psd +0 -0
- data/template/resources/images/default/gradient-bg.gif +0 -0
- data/template/resources/images/default/grid/arrow-left-white.gif +0 -0
- data/template/resources/images/default/grid/arrow-right-white.gif +0 -0
- data/template/resources/images/default/grid/col-move-bottom.gif +0 -0
- data/template/resources/images/default/grid/col-move-top.gif +0 -0
- data/template/resources/images/default/grid/columns.gif +0 -0
- data/template/resources/images/default/grid/dirty.gif +0 -0
- data/template/resources/images/default/grid/done.gif +0 -0
- data/template/resources/images/default/grid/drop-no.gif +0 -0
- data/template/resources/images/default/grid/drop-yes.gif +0 -0
- data/template/resources/images/default/grid/footer-bg.gif +0 -0
- data/template/resources/images/default/grid/grid-blue-hd.gif +0 -0
- data/template/resources/images/default/grid/grid-blue-split.gif +0 -0
- data/template/resources/images/default/grid/grid-hrow.gif +0 -0
- data/template/resources/images/default/grid/grid-loading.gif +0 -0
- data/template/resources/images/default/grid/grid-split.gif +0 -0
- data/template/resources/images/default/grid/grid-vista-hd.gif +0 -0
- data/template/resources/images/default/grid/grid3-hd-btn.gif +0 -0
- data/template/resources/images/default/grid/grid3-hrow-over.gif +0 -0
- data/template/resources/images/default/grid/grid3-hrow.gif +0 -0
- data/template/resources/images/default/grid/grid3-special-col-bg.gif +0 -0
- data/template/resources/images/default/grid/grid3-special-col-sel-bg.gif +0 -0
- data/template/resources/images/default/grid/group-by.gif +0 -0
- data/template/resources/images/default/grid/group-collapse.gif +0 -0
- data/template/resources/images/default/grid/group-expand-sprite.gif +0 -0
- data/template/resources/images/default/grid/group-expand.gif +0 -0
- data/template/resources/images/default/grid/hd-pop.gif +0 -0
- data/template/resources/images/default/grid/hmenu-asc.gif +0 -0
- data/template/resources/images/default/grid/hmenu-desc.gif +0 -0
- data/template/resources/images/default/grid/hmenu-lock.gif +0 -0
- data/template/resources/images/default/grid/hmenu-lock.png +0 -0
- data/template/resources/images/default/grid/hmenu-unlock.gif +0 -0
- data/template/resources/images/default/grid/hmenu-unlock.png +0 -0
- data/template/resources/images/default/grid/invalid_line.gif +0 -0
- data/template/resources/images/default/grid/loading.gif +0 -0
- data/template/resources/images/default/grid/mso-hd.gif +0 -0
- data/template/resources/images/default/grid/nowait.gif +0 -0
- data/template/resources/images/default/grid/page-first-disabled.gif +0 -0
- data/template/resources/images/default/grid/page-first.gif +0 -0
- data/template/resources/images/default/grid/page-last-disabled.gif +0 -0
- data/template/resources/images/default/grid/page-last.gif +0 -0
- data/template/resources/images/default/grid/page-next-disabled.gif +0 -0
- data/template/resources/images/default/grid/page-next.gif +0 -0
- data/template/resources/images/default/grid/page-prev-disabled.gif +0 -0
- data/template/resources/images/default/grid/page-prev.gif +0 -0
- data/template/resources/images/default/grid/pick-button.gif +0 -0
- data/template/resources/images/default/grid/refresh.gif +0 -0
- data/template/resources/images/default/grid/row-check-sprite.gif +0 -0
- data/template/resources/images/default/grid/row-expand-sprite.gif +0 -0
- data/template/resources/images/default/grid/row-over.gif +0 -0
- data/template/resources/images/default/grid/row-sel.gif +0 -0
- data/template/resources/images/default/grid/sort-hd.gif +0 -0
- data/template/resources/images/default/grid/sort_asc.gif +0 -0
- data/template/resources/images/default/grid/sort_desc.gif +0 -0
- data/template/resources/images/default/grid/wait.gif +0 -0
- data/template/resources/images/default/layout/collapse.gif +0 -0
- data/template/resources/images/default/layout/expand.gif +0 -0
- data/template/resources/images/default/layout/gradient-bg.gif +0 -0
- data/template/resources/images/default/layout/mini-bottom.gif +0 -0
- data/template/resources/images/default/layout/mini-left.gif +0 -0
- data/template/resources/images/default/layout/mini-right.gif +0 -0
- data/template/resources/images/default/layout/mini-top.gif +0 -0
- data/template/resources/images/default/layout/ns-collapse.gif +0 -0
- data/template/resources/images/default/layout/ns-expand.gif +0 -0
- data/template/resources/images/default/layout/panel-close.gif +0 -0
- data/template/resources/images/default/layout/panel-title-bg.gif +0 -0
- data/template/resources/images/default/layout/panel-title-light-bg.gif +0 -0
- data/template/resources/images/default/layout/stick.gif +0 -0
- data/template/resources/images/default/layout/stuck.gif +0 -0
- data/template/resources/images/default/layout/tab-close-on.gif +0 -0
- data/template/resources/images/default/layout/tab-close.gif +0 -0
- data/template/resources/images/default/menu/checked.gif +0 -0
- data/template/resources/images/default/menu/group-checked.gif +0 -0
- data/template/resources/images/default/menu/item-over.gif +0 -0
- data/template/resources/images/default/menu/menu-parent.gif +0 -0
- data/template/resources/images/default/menu/menu.gif +0 -0
- data/template/resources/images/default/menu/unchecked.gif +0 -0
- data/template/resources/images/default/panel/corners-sprite.gif +0 -0
- data/template/resources/images/default/panel/left-right.gif +0 -0
- data/template/resources/images/default/panel/light-hd.gif +0 -0
- data/template/resources/images/default/panel/tool-sprite-tpl.gif +0 -0
- data/template/resources/images/default/panel/tool-sprites.gif +0 -0
- data/template/resources/images/default/panel/tools-sprites-trans.gif +0 -0
- data/template/resources/images/default/panel/top-bottom.gif +0 -0
- data/template/resources/images/default/panel/top-bottom.png +0 -0
- data/template/resources/images/default/panel/white-corners-sprite.gif +0 -0
- data/template/resources/images/default/panel/white-left-right.gif +0 -0
- data/template/resources/images/default/panel/white-top-bottom.gif +0 -0
- data/template/resources/images/default/progress/progress-bg.gif +0 -0
- data/template/resources/images/default/qtip/bg.gif +0 -0
- data/template/resources/images/default/qtip/close.gif +0 -0
- data/template/resources/images/default/qtip/tip-anchor-sprite.gif +0 -0
- data/template/resources/images/default/qtip/tip-sprite.gif +0 -0
- data/template/resources/images/default/s.gif +0 -0
- data/template/resources/images/default/shadow-c.png +0 -0
- data/template/resources/images/default/shadow-lr.png +0 -0
- data/template/resources/images/default/shadow.png +0 -0
- data/template/resources/images/default/shared/blue-loading.gif +0 -0
- data/template/resources/images/default/shared/calendar.gif +0 -0
- data/template/resources/images/default/shared/glass-bg.gif +0 -0
- data/template/resources/images/default/shared/hd-sprite.gif +0 -0
- data/template/resources/images/default/shared/large-loading.gif +0 -0
- data/template/resources/images/default/shared/left-btn.gif +0 -0
- data/template/resources/images/default/shared/loading-balls.gif +0 -0
- data/template/resources/images/default/shared/right-btn.gif +0 -0
- data/template/resources/images/default/shared/warning.gif +0 -0
- data/template/resources/images/default/sizer/e-handle-dark.gif +0 -0
- data/template/resources/images/default/sizer/e-handle.gif +0 -0
- data/template/resources/images/default/sizer/ne-handle-dark.gif +0 -0
- data/template/resources/images/default/sizer/ne-handle.gif +0 -0
- data/template/resources/images/default/sizer/nw-handle-dark.gif +0 -0
- data/template/resources/images/default/sizer/nw-handle.gif +0 -0
- data/template/resources/images/default/sizer/s-handle-dark.gif +0 -0
- data/template/resources/images/default/sizer/s-handle.gif +0 -0
- data/template/resources/images/default/sizer/se-handle-dark.gif +0 -0
- data/template/resources/images/default/sizer/se-handle.gif +0 -0
- data/template/resources/images/default/sizer/square.gif +0 -0
- data/template/resources/images/default/sizer/sw-handle-dark.gif +0 -0
- data/template/resources/images/default/sizer/sw-handle.gif +0 -0
- data/template/resources/images/default/slider/slider-bg.png +0 -0
- data/template/resources/images/default/slider/slider-thumb.png +0 -0
- data/template/resources/images/default/slider/slider-v-bg.png +0 -0
- data/template/resources/images/default/slider/slider-v-thumb.png +0 -0
- data/template/resources/images/default/tabs/scroll-left.gif +0 -0
- data/template/resources/images/default/tabs/scroll-right.gif +0 -0
- data/template/resources/images/default/tabs/scroller-bg.gif +0 -0
- data/template/resources/images/default/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/template/resources/images/default/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/template/resources/images/default/tabs/tab-btm-left-bg.gif +0 -0
- data/template/resources/images/default/tabs/tab-btm-over-left-bg.gif +0 -0
- data/template/resources/images/default/tabs/tab-btm-over-right-bg.gif +0 -0
- data/template/resources/images/default/tabs/tab-btm-right-bg.gif +0 -0
- data/template/resources/images/default/tabs/tab-close.gif +0 -0
- data/template/resources/images/default/tabs/tab-strip-bg.gif +0 -0
- data/template/resources/images/default/tabs/tab-strip-bg.png +0 -0
- data/template/resources/images/default/tabs/tab-strip-btm-bg.gif +0 -0
- data/template/resources/images/default/tabs/tabs-sprite.gif +0 -0
- data/template/resources/images/default/toolbar/bg.gif +0 -0
- data/template/resources/images/default/toolbar/btn-arrow-light.gif +0 -0
- data/template/resources/images/default/toolbar/btn-arrow.gif +0 -0
- data/template/resources/images/default/toolbar/btn-over-bg.gif +0 -0
- data/template/resources/images/default/toolbar/gray-bg.gif +0 -0
- data/template/resources/images/default/toolbar/more.gif +0 -0
- data/template/resources/images/default/toolbar/tb-bg.gif +0 -0
- data/template/resources/images/default/toolbar/tb-btn-sprite.gif +0 -0
- data/template/resources/images/default/toolbar/tb-xl-btn-sprite.gif +0 -0
- data/template/resources/images/default/toolbar/tb-xl-sep.gif +0 -0
- data/template/resources/images/default/tree/arrows.gif +0 -0
- data/template/resources/images/default/tree/drop-add.gif +0 -0
- data/template/resources/images/default/tree/drop-between.gif +0 -0
- data/template/resources/images/default/tree/drop-no.gif +0 -0
- data/template/resources/images/default/tree/drop-over.gif +0 -0
- data/template/resources/images/default/tree/drop-under.gif +0 -0
- data/template/resources/images/default/tree/drop-yes.gif +0 -0
- data/template/resources/images/default/tree/elbow-end-minus-nl.gif +0 -0
- data/template/resources/images/default/tree/elbow-end-minus.gif +0 -0
- data/template/resources/images/default/tree/elbow-end-plus-nl.gif +0 -0
- data/template/resources/images/default/tree/elbow-end-plus.gif +0 -0
- data/template/resources/images/default/tree/elbow-end.gif +0 -0
- data/template/resources/images/default/tree/elbow-line.gif +0 -0
- data/template/resources/images/default/tree/elbow-minus-nl.gif +0 -0
- data/template/resources/images/default/tree/elbow-minus.gif +0 -0
- data/template/resources/images/default/tree/elbow-plus-nl.gif +0 -0
- data/template/resources/images/default/tree/elbow-plus.gif +0 -0
- data/template/resources/images/default/tree/elbow.gif +0 -0
- data/template/resources/images/default/tree/folder-open.gif +0 -0
- data/template/resources/images/default/tree/folder.gif +0 -0
- data/template/resources/images/default/tree/leaf.gif +0 -0
- data/template/resources/images/default/tree/loading.gif +0 -0
- data/template/resources/images/default/tree/s.gif +0 -0
- data/template/resources/images/default/window/icon-error.gif +0 -0
- data/template/resources/images/default/window/icon-info.gif +0 -0
- data/template/resources/images/default/window/icon-question.gif +0 -0
- data/template/resources/images/default/window/icon-warning.gif +0 -0
- data/template/resources/images/default/window/left-corners.png +0 -0
- data/template/resources/images/default/window/left-corners.psd +0 -0
- data/template/resources/images/default/window/left-right.png +0 -0
- data/template/resources/images/default/window/left-right.psd +0 -0
- data/template/resources/images/default/window/right-corners.png +0 -0
- data/template/resources/images/default/window/right-corners.psd +0 -0
- data/template/resources/images/default/window/top-bottom.png +0 -0
- data/template/resources/images/default/window/top-bottom.psd +0 -0
- data/template/resources/images/gray/button/btn-arrow.gif +0 -0
- data/template/resources/images/gray/button/btn-sprite.gif +0 -0
- data/template/resources/images/gray/button/btn.gif +0 -0
- data/template/resources/images/gray/button/group-cs.gif +0 -0
- data/template/resources/images/gray/button/group-lr.gif +0 -0
- data/template/resources/images/gray/button/group-tb.gif +0 -0
- data/template/resources/images/gray/button/s-arrow-bo.gif +0 -0
- data/template/resources/images/gray/button/s-arrow-o.gif +0 -0
- data/template/resources/images/gray/form/clear-trigger.gif +0 -0
- data/template/resources/images/gray/form/date-trigger.gif +0 -0
- data/template/resources/images/gray/form/search-trigger.gif +0 -0
- data/template/resources/images/gray/form/trigger-square.gif +0 -0
- data/template/resources/images/gray/form/trigger.gif +0 -0
- data/template/resources/images/gray/gradient-bg.gif +0 -0
- data/template/resources/images/gray/grid/col-move-bottom.gif +0 -0
- data/template/resources/images/gray/grid/col-move-top.gif +0 -0
- data/template/resources/images/gray/grid/grid3-hd-btn.gif +0 -0
- data/template/resources/images/gray/grid/grid3-hrow-over.gif +0 -0
- data/template/resources/images/gray/grid/grid3-hrow-over2.gif +0 -0
- data/template/resources/images/gray/grid/grid3-hrow.gif +0 -0
- data/template/resources/images/gray/grid/grid3-hrow2.gif +0 -0
- data/template/resources/images/gray/grid/grid3-special-col-bg.gif +0 -0
- data/template/resources/images/gray/grid/grid3-special-col-bg2.gif +0 -0
- data/template/resources/images/gray/grid/grid3-special-col-sel-bg.gif +0 -0
- data/template/resources/images/gray/grid/group-collapse.gif +0 -0
- data/template/resources/images/gray/grid/group-expand-sprite.gif +0 -0
- data/template/resources/images/gray/grid/group-expand.gif +0 -0
- data/template/resources/images/gray/grid/page-first.gif +0 -0
- data/template/resources/images/gray/grid/page-last.gif +0 -0
- data/template/resources/images/gray/grid/page-next.gif +0 -0
- data/template/resources/images/gray/grid/page-prev.gif +0 -0
- data/template/resources/images/gray/grid/refresh.gif +0 -0
- data/template/resources/images/gray/grid/row-expand-sprite.gif +0 -0
- data/template/resources/images/gray/grid/sort_asc.gif +0 -0
- data/template/resources/images/gray/grid/sort_desc.gif +0 -0
- data/template/resources/images/gray/menu/group-checked.gif +0 -0
- data/template/resources/images/gray/menu/item-over-disabled.gif +0 -0
- data/template/resources/images/gray/menu/item-over.gif +0 -0
- data/template/resources/images/gray/menu/menu-parent.gif +0 -0
- data/template/resources/images/gray/panel/corners-sprite.gif +0 -0
- data/template/resources/images/gray/panel/left-right.gif +0 -0
- data/template/resources/images/gray/panel/light-hd.gif +0 -0
- data/template/resources/images/gray/panel/tool-sprite-tpl.gif +0 -0
- data/template/resources/images/gray/panel/tool-sprites.gif +0 -0
- data/template/resources/images/gray/panel/tools-sprites-trans.gif +0 -0
- data/template/resources/images/gray/panel/top-bottom.gif +0 -0
- data/template/resources/images/gray/panel/top-bottom.png +0 -0
- data/template/resources/images/gray/panel/white-corners-sprite.gif +0 -0
- data/template/resources/images/gray/panel/white-left-right.gif +0 -0
- data/template/resources/images/gray/panel/white-top-bottom.gif +0 -0
- data/template/resources/images/gray/progress/progress-bg.gif +0 -0
- data/template/resources/images/gray/qtip/bg.gif +0 -0
- data/template/resources/images/gray/qtip/close.gif +0 -0
- data/template/resources/images/gray/qtip/tip-anchor-sprite.gif +0 -0
- data/template/resources/images/gray/qtip/tip-sprite.gif +0 -0
- data/template/resources/images/gray/s.gif +0 -0
- data/template/resources/images/gray/shared/hd-sprite.gif +0 -0
- data/template/resources/images/gray/shared/left-btn.gif +0 -0
- data/template/resources/images/gray/shared/right-btn.gif +0 -0
- data/template/resources/images/gray/sizer/e-handle.gif +0 -0
- data/template/resources/images/gray/sizer/ne-handle.gif +0 -0
- data/template/resources/images/gray/sizer/nw-handle.gif +0 -0
- data/template/resources/images/gray/sizer/s-handle.gif +0 -0
- data/template/resources/images/gray/sizer/se-handle.gif +0 -0
- data/template/resources/images/gray/sizer/square.gif +0 -0
- data/template/resources/images/gray/sizer/sw-handle.gif +0 -0
- data/template/resources/images/gray/slider/slider-thumb.png +0 -0
- data/template/resources/images/gray/slider/slider-v-thumb.png +0 -0
- data/template/resources/images/gray/tabs/scroll-left.gif +0 -0
- data/template/resources/images/gray/tabs/scroll-right.gif +0 -0
- data/template/resources/images/gray/tabs/scroller-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tab-btm-left-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tab-btm-over-left-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tab-btm-over-right-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tab-btm-right-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tab-close.gif +0 -0
- data/template/resources/images/gray/tabs/tab-strip-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tab-strip-bg.png +0 -0
- data/template/resources/images/gray/tabs/tab-strip-btm-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tabs-sprite.gif +0 -0
- data/template/resources/images/gray/toolbar/bg.gif +0 -0
- data/template/resources/images/gray/toolbar/btn-arrow-light.gif +0 -0
- data/template/resources/images/gray/toolbar/btn-arrow.gif +0 -0
- data/template/resources/images/gray/toolbar/btn-over-bg.gif +0 -0
- data/template/resources/images/gray/toolbar/gray-bg.gif +0 -0
- data/template/resources/images/gray/toolbar/more.gif +0 -0
- data/template/resources/images/gray/toolbar/tb-bg.gif +0 -0
- data/template/resources/images/gray/toolbar/tb-btn-sprite.gif +0 -0
- data/template/resources/images/gray/tree/arrows.gif +0 -0
- data/template/resources/images/gray/tree/elbow-end-minus-nl.gif +0 -0
- data/template/resources/images/gray/tree/elbow-end-minus.gif +0 -0
- data/template/resources/images/gray/tree/elbow-end-plus-nl.gif +0 -0
- data/template/resources/images/gray/tree/elbow-end-plus.gif +0 -0
- data/template/resources/images/gray/window/icon-error.gif +0 -0
- data/template/resources/images/gray/window/icon-info.gif +0 -0
- data/template/resources/images/gray/window/icon-question.gif +0 -0
- data/template/resources/images/gray/window/icon-warning.gif +0 -0
- data/template/resources/images/gray/window/left-corners.png +0 -0
- data/template/resources/images/gray/window/left-corners.pspimage +0 -0
- data/template/resources/images/gray/window/left-right.png +0 -0
- data/template/resources/images/gray/window/right-corners.png +0 -0
- data/template/resources/images/gray/window/top-bottom.png +0 -0
- data/template/resources/inherited.gif +0 -0
- data/template/resources/method.gif +0 -0
- data/template/resources/pkg-closed.gif +0 -0
- data/template/resources/pkg-open.gif +0 -0
- data/template/resources/pkg.gif +0 -0
- data/template/resources/prop.gif +0 -0
- data/template/resources/s.gif +0 -0
- data/template/resources/static.gif +0 -0
- data/template/resources/style.css +0 -291
- data/template/welcome.html +0 -45
data/lib/jsduck/cfg_table.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
require 'jsduck/table'
|
2
|
-
|
3
|
-
module JsDuck
|
4
|
-
|
5
|
-
class CfgTable < Table
|
6
|
-
def initialize(cls, formatter, cache={})
|
7
|
-
super(cls, formatter, cache)
|
8
|
-
@type = :cfg
|
9
|
-
@id = @cls.full_name + "-configs"
|
10
|
-
@title = "Config Options"
|
11
|
-
@column_title = "Config Options"
|
12
|
-
@row_class = "config-row"
|
13
|
-
end
|
14
|
-
|
15
|
-
def signature_suffix(item)
|
16
|
-
" : " + item[:type]
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
data/lib/jsduck/event_table.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
require 'jsduck/table'
|
2
|
-
require 'jsduck/short_params'
|
3
|
-
require 'jsduck/long_params'
|
4
|
-
|
5
|
-
module JsDuck
|
6
|
-
|
7
|
-
class EventTable < Table
|
8
|
-
def initialize(cls, formatter, cache={})
|
9
|
-
super(cls, formatter, cache)
|
10
|
-
@type = :event
|
11
|
-
@id = @cls.full_name + "-events"
|
12
|
-
@title = "Public Events"
|
13
|
-
@column_title = "Event"
|
14
|
-
@row_class = "event-row"
|
15
|
-
@short_params = ShortParams.new
|
16
|
-
@long_params = LongParams.new(@formatter)
|
17
|
-
end
|
18
|
-
|
19
|
-
def signature_suffix(item)
|
20
|
-
" : " + @short_params.render(item[:params])
|
21
|
-
end
|
22
|
-
|
23
|
-
def extra_doc(item)
|
24
|
-
[
|
25
|
-
"<div class='mdetail-params'>",
|
26
|
-
"<strong style='font-weight: normal;'>Listeners will be called with the following arguments:</strong>",
|
27
|
-
@long_params.render(item[:params]),
|
28
|
-
"</div>"
|
29
|
-
].join("\n")
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
end
|
@@ -1,42 +0,0 @@
|
|
1
|
-
module JsDuck
|
2
|
-
|
3
|
-
# Creates the inheritance tree shown on class documentation page.
|
4
|
-
class InheritanceTree
|
5
|
-
def initialize(cls, formatter)
|
6
|
-
@cls = cls
|
7
|
-
@formatter = formatter
|
8
|
-
end
|
9
|
-
|
10
|
-
# Renders the tree using HTML <pre> element
|
11
|
-
def to_html
|
12
|
-
i = -1
|
13
|
-
html = (@cls.superclasses + [@cls]).collect do |cls|
|
14
|
-
i += 1
|
15
|
-
make_indent(i) + make_link(cls)
|
16
|
-
end.join("\n")
|
17
|
-
|
18
|
-
return <<-EOHTML
|
19
|
-
<div class="inheritance res-block">
|
20
|
-
<pre class="res-block-inner">#{html}</pre>
|
21
|
-
</div>
|
22
|
-
EOHTML
|
23
|
-
end
|
24
|
-
|
25
|
-
def make_indent(level)
|
26
|
-
if level > 0
|
27
|
-
(" " * level) + "<img src='resources/elbow-end.gif' alt=''>"
|
28
|
-
else
|
29
|
-
""
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
def make_link(cls)
|
34
|
-
if cls == @cls
|
35
|
-
cls.short_name
|
36
|
-
else
|
37
|
-
@formatter.link(cls.full_name, nil, cls.short_name)
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
end
|
data/lib/jsduck/long_params.rb
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
module JsDuck
|
2
|
-
|
3
|
-
# Renders method/event parameters list in long form
|
4
|
-
# for use in documentation body.
|
5
|
-
class LongParams
|
6
|
-
def initialize(formatter)
|
7
|
-
@formatter = formatter
|
8
|
-
end
|
9
|
-
|
10
|
-
def render(params)
|
11
|
-
if params.length > 0
|
12
|
-
"<ul>" + params.collect {|p| render_single(p) }.join("") + "</ul>"
|
13
|
-
else
|
14
|
-
"<ul><li>None.</li></ul>"
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
def render_single(param)
|
19
|
-
doc = @formatter.format(param[:doc])
|
20
|
-
type = @formatter.replace(param[:type])
|
21
|
-
return [
|
22
|
-
"<li>",
|
23
|
-
"<code>#{param[:name]}</code> : #{type}",
|
24
|
-
"<div class='sub-desc'>#{doc}</div>",
|
25
|
-
"</li>",
|
26
|
-
].join("")
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
end
|
data/lib/jsduck/method_table.rb
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
require 'jsduck/table'
|
2
|
-
require 'jsduck/short_params'
|
3
|
-
require 'jsduck/long_params'
|
4
|
-
|
5
|
-
module JsDuck
|
6
|
-
|
7
|
-
class MethodTable < Table
|
8
|
-
def initialize(cls, formatter, cache={})
|
9
|
-
super(cls, formatter, cache)
|
10
|
-
@type = :method
|
11
|
-
@id = @cls.full_name + "-methods"
|
12
|
-
@title = "Public Methods"
|
13
|
-
@column_title = "Method"
|
14
|
-
@row_class = "method-row"
|
15
|
-
@short_params = ShortParams.new
|
16
|
-
@long_params = LongParams.new(@formatter)
|
17
|
-
end
|
18
|
-
|
19
|
-
def signature_suffix(item)
|
20
|
-
@short_params.render(item[:params]) + " : " + item[:return][:type]
|
21
|
-
end
|
22
|
-
|
23
|
-
def extra_doc(item)
|
24
|
-
[
|
25
|
-
"<div class='mdetail-params'>",
|
26
|
-
"<strong>Parameters:</strong>",
|
27
|
-
@long_params.render(item[:params]),
|
28
|
-
"<strong>Returns:</strong>",
|
29
|
-
render_return(item),
|
30
|
-
"</div>"
|
31
|
-
].join("\n")
|
32
|
-
end
|
33
|
-
|
34
|
-
def render_return(item)
|
35
|
-
type = @formatter.replace(item[:return][:type])
|
36
|
-
doc = @formatter.format(item[:return][:doc])
|
37
|
-
if type == "void" && doc.length == 0
|
38
|
-
"<ul><li>void</li></ul>"
|
39
|
-
else
|
40
|
-
"<ul><li><code>#{type}</code><div class='sub-desc'>#{doc}</div></li></ul>"
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
require 'jsduck/table'
|
2
|
-
|
3
|
-
module JsDuck
|
4
|
-
|
5
|
-
class PropertyTable < Table
|
6
|
-
def initialize(cls, formatter, cache={})
|
7
|
-
super(cls, formatter, cache)
|
8
|
-
@type = :property
|
9
|
-
@id = @cls.full_name + "-props"
|
10
|
-
@title = "Public Properties"
|
11
|
-
@column_title = "Property"
|
12
|
-
@row_class = "property-row"
|
13
|
-
end
|
14
|
-
|
15
|
-
def signature_suffix(item)
|
16
|
-
" : " + item[:type]
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
data/lib/jsduck/short_params.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
module JsDuck
|
2
|
-
|
3
|
-
# Renders method/event parameters list in short form
|
4
|
-
# for use in signatures
|
5
|
-
class ShortParams
|
6
|
-
def render(params)
|
7
|
-
if params.length > 0
|
8
|
-
"( " + params.collect {|p| render_single(p) }.join(", ") + " )"
|
9
|
-
else
|
10
|
-
"()"
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
def render_single(param)
|
15
|
-
str = "<code>#{param[:type]} #{param[:name]}</code>"
|
16
|
-
if param[:optional]
|
17
|
-
"<span title='Optional' class='optional'>[" + str + "]</span>"
|
18
|
-
else
|
19
|
-
str
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|
data/lib/jsduck/table.rb
DELETED
@@ -1,121 +0,0 @@
|
|
1
|
-
module JsDuck
|
2
|
-
|
3
|
-
# Base class for creating HTML tables of class members.
|
4
|
-
#
|
5
|
-
# Subclasses must set variables @type, @id, @title, @column_title,
|
6
|
-
# @row_class, and implement the signature_suffix() and extra_doc()
|
7
|
-
# methods.
|
8
|
-
class Table
|
9
|
-
# Initializes class member table generator
|
10
|
-
#
|
11
|
-
# - cls : the class for which to generate the table.
|
12
|
-
#
|
13
|
-
# - formatter : instance of JsDuck::DocFormatter
|
14
|
-
#
|
15
|
-
# - cache : shared cache of already generated HTML rows. If Foo
|
16
|
-
# inherits from Bar and we have already generated members table
|
17
|
-
# for Bar, then we don't have to re-render all the HTML the
|
18
|
-
# methods from Bar, but can just look them up from cache.
|
19
|
-
#
|
20
|
-
def initialize(cls, formatter, cache={})
|
21
|
-
@cls = cls
|
22
|
-
@formatter = formatter
|
23
|
-
@cache = cache
|
24
|
-
end
|
25
|
-
|
26
|
-
def to_html
|
27
|
-
rows = @cls.members(@type).collect {|m| row(m) }
|
28
|
-
|
29
|
-
# When no rows to show, create no table whatsoever
|
30
|
-
return "" if rows.length == 0
|
31
|
-
|
32
|
-
[
|
33
|
-
"<a id='#{@id}'></a>",
|
34
|
-
"<h2>#{@title}</h2>",
|
35
|
-
"<table cellspacing='0' class='member-table'><tbody>",
|
36
|
-
"<tr><th colspan='2' class='sig-header'>#{@column_title}</th><th class='msource-header'>Defined By</th></tr>",
|
37
|
-
rows.join("\n"),
|
38
|
-
"</tbody></table>",
|
39
|
-
].join("\n")
|
40
|
-
end
|
41
|
-
|
42
|
-
# Returns HTML row for class member.
|
43
|
-
#
|
44
|
-
# When HTML for member has already been rendered we can pick it
|
45
|
-
# from cache and only fill in some details which differ from class
|
46
|
-
# to class.
|
47
|
-
#
|
48
|
-
# Otherwise perform the rendering of HTML and save it to cache.
|
49
|
-
def row(item)
|
50
|
-
cache_key = "#{item[:member]}-#{@row_class}-#{item[:name]}"
|
51
|
-
if @cache[cache_key]
|
52
|
-
html = @cache[cache_key]
|
53
|
-
else
|
54
|
-
html = @cache[cache_key] = create_row(item)
|
55
|
-
end
|
56
|
-
inherited = inherited?(item) ? 'inherited' : ''
|
57
|
-
owner_link = inherited?(item) ? member_link(item) : Class.short_name(item[:member])
|
58
|
-
owner_class = @cls.full_name
|
59
|
-
html = html.sub(/!!--inherited--!!/, inherited)
|
60
|
-
html = html.sub(/!!--owner-link--!!/, owner_link)
|
61
|
-
html = html.sub(/!!--owner-class--!!/, owner_class)
|
62
|
-
html
|
63
|
-
end
|
64
|
-
|
65
|
-
# Generates HTML for the row, leaving in placeholders for owner
|
66
|
-
# class name and inherited class.
|
67
|
-
def create_row(item)
|
68
|
-
p_doc = primary_doc(item)
|
69
|
-
e_doc = extra_doc(item)
|
70
|
-
description = expandable_desc(p_doc, e_doc)
|
71
|
-
expandable = expandable?(p_doc, e_doc) ? 'expandable' : ''
|
72
|
-
return <<-EOHTML
|
73
|
-
<tr class='#{@row_class} #{expandable} !!--inherited--!!'>
|
74
|
-
<td class='micon'><a href='#expand' class='exi'> </a></td>
|
75
|
-
<td class='sig'>#{signature(item)}<div class='mdesc'>#{description}</div></td>
|
76
|
-
<td class='msource'>!!--owner-link--!!</td>
|
77
|
-
</tr>
|
78
|
-
EOHTML
|
79
|
-
end
|
80
|
-
|
81
|
-
def member_link(item)
|
82
|
-
@formatter.link(item[:member], item[:name], Class.short_name(item[:member]))
|
83
|
-
end
|
84
|
-
|
85
|
-
def signature(item)
|
86
|
-
id = "!!--owner-class--!!-" + item[:name]
|
87
|
-
src = "source/#{item[:href]}"
|
88
|
-
return "<a id='#{id}'></a><b><a href='#{src}'>#{item[:name]}</a></b>" + signature_suffix(item)
|
89
|
-
end
|
90
|
-
|
91
|
-
# Creates either expandable or normal doc-entry
|
92
|
-
def expandable_desc(p_doc, e_doc)
|
93
|
-
if expandable?(p_doc, e_doc)
|
94
|
-
short_doc = @formatter.shorten(p_doc)
|
95
|
-
"<div class='short'>#{short_doc}</div>" +
|
96
|
-
"<div class='long'>#{p_doc}#{e_doc}</div>"
|
97
|
-
else
|
98
|
-
p_doc
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
def primary_doc(item)
|
103
|
-
@formatter.format(item[:doc])
|
104
|
-
end
|
105
|
-
|
106
|
-
# Override to append extra documentation to the doc found in item[:doc]
|
107
|
-
def extra_doc(item)
|
108
|
-
""
|
109
|
-
end
|
110
|
-
|
111
|
-
def expandable?(p_doc, e_doc)
|
112
|
-
@formatter.too_long?(p_doc) || e_doc.length > 0
|
113
|
-
end
|
114
|
-
|
115
|
-
def inherited?(item)
|
116
|
-
item[:member] != @cls.full_name
|
117
|
-
end
|
118
|
-
|
119
|
-
end
|
120
|
-
|
121
|
-
end
|
@@ -1,150 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Ext JS Library 3.2.1
|
3
|
-
* Copyright(c) 2006-2010 Ext JS, Inc.
|
4
|
-
* licensing@extjs.com
|
5
|
-
* http://www.extjs.com/license
|
6
|
-
*/
|
7
|
-
/**
|
8
|
-
* @class Ext.ux.TabCloseMenu
|
9
|
-
* @extends Object
|
10
|
-
* Plugin (ptype = 'tabclosemenu') for adding a close context menu to tabs. Note that the menu respects
|
11
|
-
* the closable configuration on the tab. As such, commands like remove others and remove all will not
|
12
|
-
* remove items that are not closable.
|
13
|
-
*
|
14
|
-
* @constructor
|
15
|
-
* @param {Object} config The configuration options
|
16
|
-
* @ptype tabclosemenu
|
17
|
-
*/
|
18
|
-
Ext.ux.TabCloseMenu = Ext.extend(Object, {
|
19
|
-
/**
|
20
|
-
* @cfg {String} closeTabText
|
21
|
-
* The text for closing the current tab. Defaults to <tt>'Close Tab'</tt>.
|
22
|
-
*/
|
23
|
-
closeTabText: 'Close Tab',
|
24
|
-
|
25
|
-
/**
|
26
|
-
* @cfg {String} closeOtherTabsText
|
27
|
-
* The text for closing all tabs except the current one. Defaults to <tt>'Close Other Tabs'</tt>.
|
28
|
-
*/
|
29
|
-
closeOtherTabsText: 'Close Other Tabs',
|
30
|
-
|
31
|
-
/**
|
32
|
-
* @cfg {Boolean} showCloseAll
|
33
|
-
* Indicates whether to show the 'Close All' option. Defaults to <tt>true</tt>.
|
34
|
-
*/
|
35
|
-
showCloseAll: true,
|
36
|
-
|
37
|
-
/**
|
38
|
-
* @cfg {String} closeAllTabsText
|
39
|
-
* <p>The text for closing all tabs. Defaults to <tt>'Close All Tabs'</tt>.
|
40
|
-
*/
|
41
|
-
closeAllTabsText: 'Close All Tabs',
|
42
|
-
|
43
|
-
constructor : function(config){
|
44
|
-
Ext.apply(this, config || {});
|
45
|
-
},
|
46
|
-
|
47
|
-
//public
|
48
|
-
init : function(tabs){
|
49
|
-
this.tabs = tabs;
|
50
|
-
tabs.on({
|
51
|
-
scope: this,
|
52
|
-
contextmenu: this.onContextMenu,
|
53
|
-
destroy: this.destroy
|
54
|
-
});
|
55
|
-
},
|
56
|
-
|
57
|
-
destroy : function(){
|
58
|
-
Ext.destroy(this.menu);
|
59
|
-
delete this.menu;
|
60
|
-
delete this.tabs;
|
61
|
-
delete this.active;
|
62
|
-
},
|
63
|
-
|
64
|
-
// private
|
65
|
-
onContextMenu : function(tabs, item, e){
|
66
|
-
this.active = item;
|
67
|
-
var m = this.createMenu(),
|
68
|
-
disableAll = true,
|
69
|
-
disableOthers = true,
|
70
|
-
closeAll = m.getComponent('closeall');
|
71
|
-
|
72
|
-
m.getComponent('close').setDisabled(!item.closable);
|
73
|
-
tabs.items.each(function(){
|
74
|
-
if(this.closable){
|
75
|
-
disableAll = false;
|
76
|
-
if(this != item){
|
77
|
-
disableOthers = false;
|
78
|
-
return false;
|
79
|
-
}
|
80
|
-
}
|
81
|
-
});
|
82
|
-
m.getComponent('closeothers').setDisabled(disableOthers);
|
83
|
-
if(closeAll){
|
84
|
-
closeAll.setDisabled(disableAll);
|
85
|
-
}
|
86
|
-
|
87
|
-
e.stopEvent();
|
88
|
-
m.showAt(e.getPoint());
|
89
|
-
},
|
90
|
-
|
91
|
-
createMenu : function(){
|
92
|
-
if(!this.menu){
|
93
|
-
var items = [{
|
94
|
-
itemId: 'close',
|
95
|
-
text: this.closeTabText,
|
96
|
-
scope: this,
|
97
|
-
handler: this.onClose
|
98
|
-
}];
|
99
|
-
if(this.showCloseAll){
|
100
|
-
items.push('-');
|
101
|
-
}
|
102
|
-
items.push({
|
103
|
-
itemId: 'closeothers',
|
104
|
-
text: this.closeOtherTabsText,
|
105
|
-
scope: this,
|
106
|
-
handler: this.onCloseOthers
|
107
|
-
});
|
108
|
-
if(this.showCloseAll){
|
109
|
-
items.push({
|
110
|
-
itemId: 'closeall',
|
111
|
-
text: this.closeAllTabsText,
|
112
|
-
scope: this,
|
113
|
-
handler: this.onCloseAll
|
114
|
-
});
|
115
|
-
}
|
116
|
-
this.menu = new Ext.menu.Menu({
|
117
|
-
items: items
|
118
|
-
});
|
119
|
-
}
|
120
|
-
return this.menu;
|
121
|
-
},
|
122
|
-
|
123
|
-
onClose : function(){
|
124
|
-
this.tabs.remove(this.active);
|
125
|
-
},
|
126
|
-
|
127
|
-
onCloseOthers : function(){
|
128
|
-
this.doClose(true);
|
129
|
-
},
|
130
|
-
|
131
|
-
onCloseAll : function(){
|
132
|
-
this.doClose(false);
|
133
|
-
},
|
134
|
-
|
135
|
-
doClose : function(excludeActive){
|
136
|
-
var items = [];
|
137
|
-
this.tabs.items.each(function(item){
|
138
|
-
if(item.closable){
|
139
|
-
if(!excludeActive || item != this.active){
|
140
|
-
items.push(item);
|
141
|
-
}
|
142
|
-
}
|
143
|
-
}, this);
|
144
|
-
Ext.each(items, function(item){
|
145
|
-
this.tabs.remove(item);
|
146
|
-
}, this);
|
147
|
-
}
|
148
|
-
});
|
149
|
-
|
150
|
-
Ext.preg('tabclosemenu', Ext.ux.TabCloseMenu);
|