2012-04-15 12:13:37 +00:00
|
|
|
/*
|
|
|
|
...
|
|
|
|
*/
|
|
|
|
|
2012-04-15 12:40:56 +00:00
|
|
|
'use strict';
|
2012-04-15 12:13:37 +00:00
|
|
|
|
2012-04-15 12:40:56 +00:00
|
|
|
Ox.load('UI', function() {
|
2012-04-15 12:13:37 +00:00
|
|
|
|
|
|
|
var groups = [
|
2012-04-17 15:24:15 +00:00
|
|
|
['add', 'remove', 'close', 'center', 'focus'],
|
2012-04-15 12:13:37 +00:00
|
|
|
['arrowLeft', 'arrowRight', 'arrowUp', 'arrowDown'],
|
|
|
|
['left', 'right', 'up', 'down'],
|
|
|
|
[
|
|
|
|
'play', 'pause', 'playInToOut', 'goToIn', 'goToOut',
|
|
|
|
'setIn', 'setOut', 'goToPoster', 'setPoster'
|
|
|
|
],
|
|
|
|
['open', 'grow', 'shrink', 'fill', 'fit'],
|
|
|
|
['unmute', 'volumeUp', 'volumeDown', 'mute'],
|
|
|
|
[
|
2012-04-15 18:14:10 +00:00
|
|
|
'bookmark', 'chat', 'check', 'click', 'delete', 'edit', 'embed',
|
|
|
|
'find', 'flag', 'like', 'locate', 'mail', 'map', 'publish',
|
|
|
|
'star', 'tag', 'view'
|
2012-04-15 12:13:37 +00:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'list', 'columns', 'grid', 'iconlist',
|
|
|
|
'gridLandscape', 'gridPortrait',
|
|
|
|
'iconlistPortraitList', 'iconlistPortraitIconLandscape'
|
|
|
|
],
|
|
|
|
['info', 'warning', 'help'],
|
|
|
|
['select', 'set'],
|
|
|
|
['undo', 'redo'],
|
|
|
|
['upload', 'download'],
|
|
|
|
['unlock', 'lock'],
|
|
|
|
['copyright', 'noCopyright'],
|
2012-04-15 18:14:10 +00:00
|
|
|
['circle', 'square'],
|
2012-04-15 12:13:37 +00:00
|
|
|
['volume', 'mount', 'unmount', 'sync'],
|
2012-04-17 15:24:15 +00:00
|
|
|
['icon', 'bracket', 'clock', 'switch', 'user']
|
2012-04-15 12:13:37 +00:00
|
|
|
],
|
|
|
|
symbols = Ox.flatten(groups),
|
2012-04-15 19:13:18 +00:00
|
|
|
$menu = Ox.Bar({size: 48}),
|
2012-04-15 12:40:56 +00:00
|
|
|
$main = Ox.Container(),
|
2012-04-15 19:13:18 +00:00
|
|
|
$buttons = $('<div>').addClass('buttons').appendTo($menu),
|
2012-04-15 12:40:56 +00:00
|
|
|
$symbols = $('<div>').addClass('symbols').appendTo($main);
|
2012-04-15 12:13:37 +00:00
|
|
|
|
|
|
|
groups.forEach(function(symbols) {
|
|
|
|
Ox.ButtonGroup({
|
|
|
|
buttons: symbols.map(function(symbol) {
|
|
|
|
return {
|
|
|
|
id: symbol,
|
|
|
|
title: symbol,
|
|
|
|
tooltip: symbol
|
|
|
|
};
|
|
|
|
}),
|
|
|
|
type: 'image'
|
|
|
|
})
|
|
|
|
.appendTo($buttons);
|
|
|
|
});
|
|
|
|
symbols.forEach(function(symbol) {
|
|
|
|
Ox.Element({
|
|
|
|
element: '<div>',
|
|
|
|
tooltip: symbol
|
|
|
|
})
|
|
|
|
.addClass('OxGrid symbol')
|
|
|
|
.append(
|
|
|
|
$('<img>').attr({src: Ox.UI.getImageURL(
|
|
|
|
'symbol' + symbol[0].toUpperCase() + symbol.substr(1))
|
|
|
|
})
|
|
|
|
)
|
|
|
|
.appendTo($symbols);
|
|
|
|
});
|
|
|
|
|
2012-04-15 12:40:56 +00:00
|
|
|
Ox.SplitPanel({
|
|
|
|
elements: [
|
2012-04-15 19:13:18 +00:00
|
|
|
{element: $menu, size: 48},
|
2012-04-15 12:40:56 +00:00
|
|
|
{element: $main}
|
|
|
|
],
|
|
|
|
orientation: 'vertical'
|
|
|
|
})
|
|
|
|
.appendTo(Ox.$body);
|
2012-04-15 19:13:18 +00:00
|
|
|
|
2012-04-15 12:13:37 +00:00
|
|
|
});
|