use splitpanel tooltips

This commit is contained in:
rlx 2011-09-04 21:15:53 +00:00
parent 079d3a772a
commit 5e40fbd5a3
5 changed files with 16 additions and 4 deletions

View file

@ -8,7 +8,8 @@ pandora.ui.contentPanel = function() {
element: pandora.$ui.browser = pandora.ui.browser(), element: pandora.$ui.browser = pandora.ui.browser(),
resizable: true, resizable: true,
resize: [96, 112, 128, 144, 160, 176, 192, 208, 224, 240, 256], resize: [96, 112, 128, 144, 160, 176, 192, 208, 224, 240, 256],
size: pandora.user.ui.groupsSize size: pandora.user.ui.groupsSize,
tooltip: 'groups'
}, },
{ {
element: pandora.$ui.list = pandora.ui.list() element: pandora.$ui.list = pandora.ui.list()
@ -18,7 +19,8 @@ pandora.ui.contentPanel = function() {
collapsed: !pandora.user.ui.showMovies, collapsed: !pandora.user.ui.showMovies,
collapsible: true, collapsible: true,
element: pandora.$ui.browser = pandora.ui.browser(), element: pandora.$ui.browser = pandora.ui.browser(),
size: 112 + Ox.UI.SCROLLBAR_SIZE size: 112 + Ox.UI.SCROLLBAR_SIZE,
tooltip: pandora.site.itemName.plural.toLowerCase()
}, },
{ {
element: pandora.$ui.item = pandora.ui.item() element: pandora.$ui.item = pandora.ui.item()

View file

@ -293,6 +293,7 @@ pandora.ui.item = function() {
subtitles: result.data.layers.subtitles ? result.data.layers.subtitles.map(function(subtitle) { subtitles: result.data.layers.subtitles ? result.data.layers.subtitles.map(function(subtitle) {
return {'in': subtitle['in'], out: subtitle.out, text: subtitle.value}; return {'in': subtitle['in'], out: subtitle.out, text: subtitle.value};
}) : [], }) : [],
tooltips: true,
timeline: '/' + pandora.user.ui.item + '/timeline16p.png', timeline: '/' + pandora.user.ui.item + '/timeline16p.png',
video: video, video: video,
volume: pandora.user.ui.videoVolume, volume: pandora.user.ui.videoVolume,
@ -356,6 +357,7 @@ pandora.ui.item = function() {
subtitles: result.data.layers.subtitles ? result.data.layers.subtitles.map(function(subtitle) { subtitles: result.data.layers.subtitles ? result.data.layers.subtitles.map(function(subtitle) {
return {'in': subtitle['in'], out: subtitle.out, text: subtitle.value}; return {'in': subtitle['in'], out: subtitle.out, text: subtitle.value};
}) : [], }) : [],
tooltips: true,
video: video, video: video,
videoRatio: result.data.videoRatio, videoRatio: result.data.videoRatio,
videoSize: pandora.user.ui.videoSize, videoSize: pandora.user.ui.videoSize,

View file

@ -13,7 +13,8 @@ pandora.ui.leftPanel = function() {
collapsed: !pandora.user.ui.showInfo, collapsed: !pandora.user.ui.showInfo,
collapsible: true, collapsible: true,
element: pandora.$ui.info = pandora.ui.info(), element: pandora.$ui.info = pandora.ui.info(),
size: Math.round(pandora.user.ui.sidebarSize / pandora.user.infoRatio) size: Math.round(pandora.user.ui.sidebarSize / pandora.user.infoRatio),
tooltip: 'info'
} }
], ],
id: 'leftPanel', id: 'leftPanel',

View file

@ -8,7 +8,8 @@ pandora.ui.mainPanel = function() {
element: pandora.$ui.leftPanel = pandora.ui.leftPanel(), element: pandora.$ui.leftPanel = pandora.ui.leftPanel(),
resizable: true, resizable: true,
resize: [192, 256, 320, 384], resize: [192, 256, 320, 384],
size: pandora.user.ui.sidebarSize size: pandora.user.ui.sidebarSize,
tooltip: 'lists'
}, },
{ {
element: pandora.$ui.rightPanel = pandora.ui.rightPanel() element: pandora.$ui.rightPanel = pandora.ui.rightPanel()

View file

@ -80,6 +80,12 @@ pandora.ui.mainMenu = function() {
{}, {},
{ id: 'usesiteposter', title: 'Always Use ' + pandora.site.site.name + ' Poster' } { id: 'usesiteposter', title: 'Always Use ' + pandora.site.site.name + ' Poster' }
] }, ] },
{ id: 'columns', title: 'Column Layout', items: [
{ id: 'loadlayout', title: 'Load...' },
{ id: 'savelayout', title: 'Save...' },
{},
{ id: 'resetlayout', title: 'Reset' }
]},
{}, {},
{ id: 'openmovie', title: ['Open ' + pandora.site.itemName.singular, 'Open ' + pandora.site.itemName.plural], items: [ { id: 'openmovie', title: ['Open ' + pandora.site.itemName.singular, 'Open ' + pandora.site.itemName.plural], items: [
{ group: 'movieview', min: 1, max: 1, items: $.map(pandora.site.itemViews, function(view, i) { { group: 'movieview', min: 1, max: 1, items: $.map(pandora.site.itemViews, function(view, i) {