diff --git a/demos/doc2/js/doc.js b/demos/doc2/js/doc.js index 84c584e7..47c1d058 100644 --- a/demos/doc2/js/doc.js +++ b/demos/doc2/js/doc.js @@ -4,7 +4,7 @@ Ox.load('UI', { }, function() { Ox.Theme('classic'); $.getJSON(Ox.UI.PATH + 'json/Ox.UI.json', function(files) { - Ox.DocPanel({ + doc = Ox.DocPanel({ files: Ox.merge([ 'Ox.js', 'Ox.Geo/Ox.Geo.js', @@ -20,7 +20,18 @@ Ox.load('UI', { return item.section || file.split('/')[2]; }, path: Ox.PATH - }) - .appendTo(Ox.UI.$body); + }).bindEvent({ + load: function() { + doc.selectItem(document.location.hash.substring(1)); + }, + select: function(data) { + if(data.ids) + document.location.hash = data.ids[0]; + } + }); + doc.appendTo(Ox.UI.$body); + window.onhashchange = function() { + doc.selectItem(document.location.hash.substring(1)) + }; }); }); diff --git a/source/Ox.UI/js/Bar/Ox.Bar.js b/source/Ox.UI/js/Bar/Ox.Bar.js index 3f6a00af..c6c32df4 100644 --- a/source/Ox.UI/js/Bar/Ox.Bar.js +++ b/source/Ox.UI/js/Bar/Ox.Bar.js @@ -1,6 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js -/** -*/ +/*@ +Ox.Bar Bar + () -> Bar object + (options) -> Bar object + (options, self) -> Bar object + options Options object + orientation + size can be small, medium, large or number + self Shared private variable +@*/ Ox.Bar = function(options, self) { var self = self || {}, that = new Ox.Element({}, self) diff --git a/source/Ox.UI/js/Bar/Ox.Resizebar.js b/source/Ox.UI/js/Bar/Ox.Resizebar.js index 08ffc3bf..4525f0fd 100644 --- a/source/Ox.UI/js/Bar/Ox.Resizebar.js +++ b/source/Ox.UI/js/Bar/Ox.Resizebar.js @@ -1,4 +1,21 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +/*@ +Ox.Resizebar Resizebar + () -> Resizebar object + (options) -> Resizebar object + (options, self) -> Resizebar object + options Options object + collapsed + collapsible + edge + elements + orientation + panel + resizeable + resize + size + self Shared private variable +@*/ /** */ Ox.Resizebar = function(options, self) { diff --git a/source/Ox.UI/js/Bar/Ox.Tabbar.js b/source/Ox.UI/js/Bar/Ox.Tabbar.js index a801a05d..53b225cd 100644 --- a/source/Ox.UI/js/Bar/Ox.Tabbar.js +++ b/source/Ox.UI/js/Bar/Ox.Tabbar.js @@ -1,4 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +/*@ +Ox.Tabbar Tabbar + () -> Tabbar object + (options) -> Tabbar object + (options, self) -> Tabbar object + options Options object + selected selected item + tabs tabs + self Shared private variable +@*/ /** */ Ox.Tabbar = function(options, self) { diff --git a/source/Ox.UI/js/Calendar/Ox.Calendar.js b/source/Ox.UI/js/Calendar/Ox.Calendar.js index b3305904..98c8bf98 100644 --- a/source/Ox.UI/js/Calendar/Ox.Calendar.js +++ b/source/Ox.UI/js/Calendar/Ox.Calendar.js @@ -1,7 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=js /*@ -Ox.Calendar Basic calendar object +Ox.Calendar Basic calendar object () -> Calendar object (options) -> Calendar object (options, self) -> Calendar object diff --git a/source/Ox.UI/js/Calendar/Ox.CalendarDate.js b/source/Ox.UI/js/Calendar/Ox.CalendarDate.js index 21bcdfd0..a1fe99ef 100644 --- a/source/Ox.UI/js/Calendar/Ox.CalendarDate.js +++ b/source/Ox.UI/js/Calendar/Ox.CalendarDate.js @@ -1,4 +1,12 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +/*@ +Ox.CalendarDate CalendarDate + () -> CalendarData object + (options) -> CalendarData object + options Options object + start start date + stop stop date +@*/ Ox.CalendarDate = function(options) { var self = {}, diff --git a/source/Ox.UI/js/Core/Ox.App.js b/source/Ox.UI/js/Core/Ox.App.js index 5eb25e0a..ac379648 100644 --- a/source/Ox.UI/js/Core/Ox.App.js +++ b/source/Ox.UI/js/Core/Ox.App.js @@ -1,32 +1,21 @@ // vim: et:ts=4:sw=4:sts=4:ft=js -/* -============================================================================ -Application -============================================================================ -*/ -// fixme: get rid of launch, fire load event +/*@ +Ox.App Basic application instance that communicates with a JSON API + () -> App object + (options) -> App object + (options, self) -> App object + options Options object + timeout request timeout + type 'GET' or 'POST' + url JSON API url + self Shared private variable + load app loaded + +@*/ Ox.App = (function() { - /*** - Ox.App - Basic application instance that communicates with a JSON API. - The JSON API must support at least the following actions: - api returns all api methods - init returns data (site, user, ...) - Options - timeout API timeout in msec - type 'GET' or 'POST' - url URL of the API - Methods - api[action] make a request - api.cancel cancel a request - options get or set options - Events - load app loaded - ***/ - return function(options) { options = options || {}; @@ -61,6 +50,12 @@ Ox.App = (function() { url: self.options.url }); + /*@ + api bakcend API + [action] all api requests available on backend + cancel cancel a request + options get or set options + @*/ that.api.api(function(result) { Ox.forEach(result.data.actions, function(val, key) { that.api[key] = function(data, callback) { diff --git a/source/Ox.UI/js/Core/Ox.Clipboard.js b/source/Ox.UI/js/Core/Ox.Clipboard.js index 5f41aff5..1cc87e54 100644 --- a/source/Ox.UI/js/Core/Ox.Clipboard.js +++ b/source/Ox.UI/js/Core/Ox.Clipboard.js @@ -1,12 +1,15 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +/*@ +Ox.Clipboard Basic clipboard handler + () -> Clipboard object + (options) -> Clipboard object + (options, self) -> Clipboard object + copy(data) copy data to clipboard + paste paste data from clipboard + options Options object + self Shared private variable +@*/ Ox.Clipboard = function() { - /*** - Ox.Clipboard - Basic clipboard handler - Methods - copy(data) copy data to clipboard - paste paste data from clipboard - ***/ var clipboard = {}; return { _print: function() { diff --git a/source/Ox.UI/js/Core/Ox.Container.js b/source/Ox.UI/js/Core/Ox.Container.js index 93d9e334..7109ff54 100644 --- a/source/Ox.UI/js/Core/Ox.Container.js +++ b/source/Ox.UI/js/Core/Ox.Container.js @@ -4,6 +4,14 @@ // 0, 1, 2, etc, so that append would append 0, and appendTo // would append (length - 1)? +/*@ +Ox.Container Container + () -> Container object + (options) -> Container object + (options, self) -> Container object + options Options object + self Shared private variable +@*/ Ox.Container = function(options, self) { // fixme: to be deprecated var that = new Ox.Element({}, self) diff --git a/source/Ox.UI/js/Core/Ox.DocPage.js b/source/Ox.UI/js/Core/Ox.DocPage.js index 2b5711f4..024601d3 100644 --- a/source/Ox.UI/js/Core/Ox.DocPage.js +++ b/source/Ox.UI/js/Core/Ox.DocPage.js @@ -1,3 +1,11 @@ +/*@ +Ox.DocPage DocPage + () -> DocPage object + (options) -> DocPage object + (options, self) -> DocPage object + options Options object + self Shared private variable +@*/ Ox.DocPage = function(options, self) { self = self || {}; @@ -162,4 +170,4 @@ Ox.DocPage = function(options, self) { return that; -}; \ No newline at end of file +}; diff --git a/source/Ox.UI/js/Core/Ox.DocPanel.js b/source/Ox.UI/js/Core/Ox.DocPanel.js index 49d209ef..8e52a485 100644 --- a/source/Ox.UI/js/Core/Ox.DocPanel.js +++ b/source/Ox.UI/js/Core/Ox.DocPanel.js @@ -1,5 +1,19 @@ /*@ Ox.DocPanel Documentation Panel + () -> Documentation Panel + (options) -> Documentation Panel + (options, self) -> Documentation Panel + options Options object + collapsible can be collabsed + files files to parse for docs + getModule returns module for given item + getSection returns section for given item + path path prefix + resizable is resizable + resize resize positions + size default size + self shared private variable + load fired once all docs are loaded @*/ Ox.DocPanel = function(options, self) { @@ -43,6 +57,7 @@ Ox.DocPanel = function(options, self) { loadList(function(docItems) { self.items = docItems; + that.triggerEvent('load', {}); }); function loadList(callback) { @@ -58,6 +73,7 @@ Ox.DocPanel = function(options, self) { } }); }); + function makeTree(docItems) { var treeItems = []; docItems.forEach(function(docItem) { @@ -145,6 +161,7 @@ Ox.DocPanel = function(options, self) { }); } } + that.triggerEvent('select', data); } function sortByTitle(a, b) { @@ -156,7 +173,14 @@ Ox.DocPanel = function(options, self) { } return ret; } - + /*@ + selectItem select item + (id) -> select an item + id if of item to select + @*/ + that.selectItem = function(id) { + self.$list.triggerEvent('select', {'ids': [id]}); + } return that; -}; \ No newline at end of file +}; diff --git a/source/Ox.UI/js/Core/Ox.LoadingIcon.js b/source/Ox.UI/js/Core/Ox.LoadingIcon.js index dedcfa0e..77520f83 100644 --- a/source/Ox.UI/js/Core/Ox.LoadingIcon.js +++ b/source/Ox.UI/js/Core/Ox.LoadingIcon.js @@ -1,4 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +/*@ +Ox.LoadingIcon Loading Icon Element + () -> Loading Icon Element + (options) -> Loading Icon Element + (options, self) -> Loading Icon Element + options Options object + size size of icon + self Shared private variable +@*/ + Ox.LoadingIcon = function(options, self) { var self = self || {}, that = new Ox.Element('', self) @@ -12,12 +22,20 @@ Ox.LoadingIcon = function(options, self) { .addClass( 'OxLoadingIcon Ox' + Ox.toTitleCase(self.options.size) ); + /*@ + start Start loading animation + () -> Loading Icon Element + @*/ that.start = function() { that.animate({ opacity: 1 }, 250); return that; }; + /*@ + stop Stop loading animation + () -> Loading Icon Element + @*/ that.stop = function() { that.animate({ opacity: 0 diff --git a/source/Ox.UI/js/Core/Ox.Request.js b/source/Ox.UI/js/Core/Ox.Request.js index aeeed4c2..6c971702 100644 --- a/source/Ox.UI/js/Core/Ox.Request.js +++ b/source/Ox.UI/js/Core/Ox.Request.js @@ -1,18 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js -Ox.Request = function(options) { +/*@ +Ox.Request Basic request handler object +FIXME: options is not a property, just documenting defaults +options Options object + timeout request timeout + type request type, possible values POST, GET, PUT, DELETE + url request url +@*/ - /*** - Ox.Request - Basic request handler - Options - timeout - Methods - cancel() cancel request - clearCache() clear cache - options() get or set options - requests() return number of active requests - send() send request - ***/ +Ox.Request = function(options) { var cache = {}, //dfd = $.Deferred(), @@ -27,7 +23,12 @@ Ox.Request = function(options) { }; return { - + /*@ + cancel cancel pending requests + () -> cancel all requests + (f) -> cancel all requests where function returns true + (n) -> cancel request by id + @*/ cancel: function() { if (arguments.length == 0) { // cancel all requests @@ -44,19 +45,42 @@ Ox.Request = function(options) { delete requests[arguments[0]]; } }, - + /*@ + clearCache clear cached results + () -> + @*/ clearCache: function() { cache = {}; }, + /*@ + options get/set options + () -> get options + (options) -> set options + options Options Object + @*/ options: function(options) { return Ox.getset(self.options, options, $.noop(), this); }, + /*@ + requests pending requests + () -> returns number of requests + @*/ requests: function() { return Ox.len(requests); }, + /*@ + send send request + (options) -> returns request id + options Options Object + age cache age + id request id + timeout overwrite default timeout + type overwrite default type + url overwrite default url + @*/ send: function(options) { var options = $.extend({ diff --git a/source/Ox.UI/js/Core/Ox.Theme.js b/source/Ox.UI/js/Core/Ox.Theme.js index 31b228f4..488aa708 100644 --- a/source/Ox.UI/js/Core/Ox.Theme.js +++ b/source/Ox.UI/js/Core/Ox.Theme.js @@ -1,14 +1,15 @@ // vim: et:ts=4:sw=4:sts=4:ft=js -// fixme: this should be Ox.Theme, and provide Ox.Theme.set(), Ox.Theme.load, etc. -/** - if name is given as argument, switch to this theme. - return current theme otherwise. - Ox.theme() - get theme - Ox.theme('foo') - set theme to 'foo' -*/ +/*@ +Ox.Theme get/set theme + () -> Get current theme + (theme) -> Set current theme + theme name of theme + > Ox.Theme() + 'classic' + > Ox.Theme('modern') + 'modern' +@*/ Ox.Theme = function(theme) { diff --git a/source/Ox.UI/js/Form/Ox.Button.js b/source/Ox.UI/js/Form/Ox.Button.js index 40d69216..cacfaca8 100644 --- a/source/Ox.UI/js/Form/Ox.Button.js +++ b/source/Ox.UI/js/Form/Ox.Button.js @@ -1,18 +1,29 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +/*@ +Ox.Button Button Object + () -> Button Object + (options) -> Button Object + (options, self) -> Button Object + options Options object + disabled disabled + group is part of group + id: button id + overlap overlap + selectable is selecatable + selected is selected + size button size + style // can be default, checkbox, symbol, or tab + title title, can be array of titles + tooltip tooltip if multiple must be same number as titles + type button type, text or image, (for image, title must be symbolTitle.svg must be availabe) + width button width + self Shared private variable + click non-selectable button was clicked + deselect selectable button was deselected + select selectable button was selected +@*/ + Ox.Button = function(options, self) { - - /** - methods: - toggleDisabled enable/disable button - toggleSelected select/unselect button - toggleTitle if more than one title was provided, - toggle to next title. - events: - click non-selectable button was clicked - deselect selectable button was deselected - select selectable button was selected - */ - var self = self || {}, that = new Ox.Element('', self) .defaults({ @@ -137,6 +148,10 @@ Ox.Button = function(options, self) { } } + /*@ + toggleDisabled + () -> toggle disabled state + @*/ that.toggleDisabled = function() { that.options({ enabled: !self.options.disabled @@ -144,6 +159,10 @@ Ox.Button = function(options, self) { //self.options.disabled = !self.options.disabled; } + /*@ + toggleSelected + () -> toggle selected state + @*/ that.toggleSelected = function() { that.options({ selected: !self.options.selected @@ -151,6 +170,10 @@ Ox.Button = function(options, self) { //self.options.selected = !self.options.selected; } + /*@ + toggleTitle + () -> toggle through titles + @*/ that.toggleTitle = function() { self.selectedTitle = 1 - self.selectedTitle; setTitle(self.titles[self.selectedTitle].title); diff --git a/source/Ox.UI/js/Form/Ox.ButtonGroup.js b/source/Ox.UI/js/Form/Ox.ButtonGroup.js index bea7c3f3..fa4eeaba 100644 --- a/source/Ox.UI/js/Form/Ox.ButtonGroup.js +++ b/source/Ox.UI/js/Form/Ox.ButtonGroup.js @@ -1,17 +1,20 @@ // vim: et:ts=4:sw=4:sts=4:ft=js -Ox.ButtonGroup = function(options, self) { +/*@ +Ox.ButtonGroup ButtonGroup Object + () -> ButtonGroup Object + (options) -> ButtonGroup Object + (options, self) -> ButtonGroup Object + options Options object + buttons array of buttons + max integer, maximum number of selected buttons, 0 for all + min integer, minimum number of selected buttons, 0 for none + selectable if true, buttons are selectable + type string, 'image' or 'text' + self Shared private variable + change {id, value} selection within a group changed +@*/ - /** - options - buttons array of buttons - max integer, maximum number of selected buttons, 0 for all - min integer, minimum number of selected buttons, 0 for none - selectable if true, buttons are selectable - type string, 'image' or 'text' - methods: - events: - change {id, value} selection within a group changed - */ +Ox.ButtonGroup = function(options, self) { var self = self || {}, that = new Ox.Element({}, self) diff --git a/source/Ox.UI/js/Form/Ox.CheckboxGroup.js b/source/Ox.UI/js/Form/Ox.CheckboxGroup.js index 7d254c8e..39e8cbde 100644 --- a/source/Ox.UI/js/Form/Ox.CheckboxGroup.js +++ b/source/Ox.UI/js/Form/Ox.CheckboxGroup.js @@ -1,16 +1,21 @@ // vim: et:ts=4:sw=4:sts=4:ft=js -Ox.CheckboxGroup = function(options, self) { +/*@ +Ox.CheckboxGroup CheckboxGroup Object + () -> CheckboxGroup Object + (options) -> CheckboxGroup Object + (options, self) -> CheckboxGroup Object + options Options object + checkboxes array of checkboxes + max integer + min integer + width integer, width in px + self shared private variable + + change triggered when checked property changes + passes {checked, id, title} +@*/ - /** - options - checkboxes [] array of checkboxes - max 1 integer - min 1 integer - width integer, width in px - events: - change triggered when checked property changes - passes {checked, id, title} - */ +Ox.CheckboxGroup = function(options, self) { var self = self || {}, that = new Ox.Element({}, self) diff --git a/source/Ox.UI/js/Form/Ox.Form.js b/source/Ox.UI/js/Form/Ox.Form.js index 21fec15d..6e600e38 100644 --- a/source/Ox.UI/js/Form/Ox.Form.js +++ b/source/Ox.UI/js/Form/Ox.Form.js @@ -1,8 +1,19 @@ // vim: et:ts=4:sw=4:sts=4:ft=js -Ox.Form = function(options, self) { - /** - */ +/*@ +Ox.Form Form Object + () -> Form Object + (options) -> Form Object + (options, self) -> Form Object + options Options object + error error + id id + items [] + submit null + self shared private variable +@*/ + +Ox.Form = function(options, self) { var self = self || {}, that = new Ox.Element({}, self) diff --git a/source/Ox.UI/js/Form/Ox.Input.js b/source/Ox.UI/js/Form/Ox.Input.js index f95e2f64..696df97e 100644 --- a/source/Ox.UI/js/Form/Ox.Input.js +++ b/source/Ox.UI/js/Form/Ox.Input.js @@ -1,59 +1,62 @@ // vim: et:ts=4:sw=4:sts=4:ft=js -Ox.Input = function(options, self) { +/*@ +Ox.Input Input Element + () -> Input Element + (options) -> Input Element + (options, self) -> Input Element + options Options object + arrows if true, and type is 'float' or 'integer', display arrows + arrowStep step when clicking arrows + autocomplete array of possible values, or + function(key, value, callback), returns one or more values + autocompleteReplace if true, value is replaced + autocompleteReplaceCorrect if true, only valid values can be entered + autocompleteSelect if true, menu is displayed + autocompleteSelectHighlight if true, value in menu is highlighted + autocompleteSelectSubmit if true, submit input on menu selection + autocorrect ('email', 'float', 'integer', 'phone', 'url'), or + regexp(value), or + function(key, value, blur, callback), returns value + autovalidate --remote validation-- + clear if true, has clear button + disabled if true, is disabled + height px (for type='textarea' and type='range' with orientation='horizontal') + id element id + key to be passed to autocomplete and autovalidate functions + max max value if type is 'integer' or 'float' + min min value if type is 'integer' or 'float' + name will be displayed by autovalidate function ('invalid ' + name) + overlap '', 'left' or 'right', will cause padding and negative margin + picker picker object + rangeOptions range options + arrows boolean, if true, display arrows + //arrowStep number, step when clicking arrows + //arrowSymbols array of two strings + max number, maximum value + min number, minimum value + orientation 'horizontal' or 'vertical' + step number, step + thumbValue boolean, if true, value is displayed on thumb, or + array of strings per value, or + function(value), returns string + thumbSize integer, px + trackGradient string, css gradient for track + trackImage string, image url, or + array of image urls + //trackStep number, 0 for 'scroll here', positive for step + trackValues boolean + serialize function used to serialize value in submit + textAlign 'left', 'center' or 'right' + type 'float', 'integer', 'password', 'text', 'textarea' + value string + validate remote validation + width px - /** - options - arrows boolearn, if true, and type is 'float' or 'integer', display arrows - arrowStep number, step when clicking arrows - autocomplete array of possible values, or - function(key, value, callback), returns one or more values - autocompleteReplace boolean, if true, value is replaced - autocompleteReplaceCorrect boolean, if true, only valid values can be entered - autocompleteSelect boolean, if true, menu is displayed - autocompleteSelectHighlight boolean, if true, value in menu is highlighted - autocompleteSelectSubmit boolean, if true, submit input on menu selection - autocorrect string ('email', 'float', 'integer', 'phone', 'url'), or - regexp(value), or - function(key, value, blur, callback), returns value - autovalidate --remote validation-- - clear boolean, if true, has clear button - disabled boolean, if true, is disabled - height integer, px (for type='textarea' and type='range' with orientation='horizontal') - id string, element id - key string, to be passed to autocomplete and autovalidate functions - max number, max value if type is 'integer' or 'float' - min number, min value if type is 'integer' or 'float' - name string, will be displayed by autovalidate function ('invalid ' + name) - overlap string, '', 'left' or 'right', will cause padding and negative margin - picker - //rangeOptions - arrows boolean, if true, display arrows - //arrowStep number, step when clicking arrows - //arrowSymbols array of two strings - max number, maximum value - min number, minimum value - orientation 'horizontal' or 'vertical' - step number, step - thumbValue boolean, if true, value is displayed on thumb, or - array of strings per value, or - function(value), returns string - thumbSize integer, px - trackGradient string, css gradient for track - trackImage string, image url, or - array of image urls - //trackStep number, 0 for 'scroll here', positive for step - trackValues boolean - serialize - textAlign 'left', 'center' or 'right' - type 'float', 'integer', 'password', 'text', 'textarea' - value string - validate function, remote validation - width integer, px - methods: - events: - change - submit - */ + change input changed event + submit input submit event +@*/ + +Ox.Input = function(options, self) { var self = self || {}, that = new Ox.Element({}, self) diff --git a/source/Ox.UI/js/Form/Ox.InputGroup.js b/source/Ox.UI/js/Form/Ox.InputGroup.js index 37747437..1ee80d67 100644 --- a/source/Ox.UI/js/Form/Ox.InputGroup.js +++ b/source/Ox.UI/js/Form/Ox.InputGroup.js @@ -1,13 +1,19 @@ // vim: et:ts=4:sw=4:sts=4:ft=js + +/*@ +Ox.InputGroup InputGroup Object + () -> InputGroup Object + (options) -> InputGroup Object + (options, self) -> InputGroup Object + options Options object + id id + inputs inputs + separators seperators + width width + self shared private variable +@*/ + Ox.InputGroup = function(options, self) { - - /*** - Ox.InputGroup - Options: - Methods: - Events: - ***/ - var self = self || {}, that = new Ox.Element({}, self) .defaults({ diff --git a/source/Ox.UI/js/Form/Ox.Label.js b/source/Ox.UI/js/Form/Ox.Label.js index 76302f72..1c2b9d33 100644 --- a/source/Ox.UI/js/Form/Ox.Label.js +++ b/source/Ox.UI/js/Form/Ox.Label.js @@ -1,4 +1,12 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +/*@ +Ox.Label Label Object + () -> Label Object + (options) -> Label Object + (options, self) -> Label Object + options Options object + +@*/ Ox.Label = function(options, self) { var self = self || {}, diff --git a/source/Ox.UI/js/Form/Ox.Picker.js b/source/Ox.UI/js/Form/Ox.Picker.js index a1a70f07..ce07ce4f 100644 --- a/source/Ox.UI/js/Form/Ox.Picker.js +++ b/source/Ox.UI/js/Form/Ox.Picker.js @@ -1,4 +1,13 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +/*@ +Ox.Picker Picker Object + () -> Picker Object + (options) -> Picker Object + (options, self) -> Picker Object + options Options object + +@*/ + Ox.Picker = function(options, self) { var self = self || {}, diff --git a/source/Ox.UI/js/Form/Ox.Range.js b/source/Ox.UI/js/Form/Ox.Range.js index 570a908f..ec912f50 100644 --- a/source/Ox.UI/js/Form/Ox.Range.js +++ b/source/Ox.UI/js/Form/Ox.Range.js @@ -1,26 +1,29 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +/*@ +Ox.Range Range Object + () -> Range Object + (options) -> Range Object + (options, self) -> Range Object + options Options object + arrows if true, show arrows + arrowStep step when clicking arrows + arrowSymbols arrow symbols, like ['minus', 'plus'] + max maximum value + min minimum value + orientation 'horizontal' or 'vertical' + step step between values + size width or height, in px + thumbSize minimum width or height of thumb, in px + thumbValue if true, display value on thumb + trackGradient colors + trackImages or array one or multiple track background image URLs + trackStep 0 (scroll here) or step when clicking track + value initial value + valueNames value names to display on thumb +@*/ Ox.Range = function(options, self) { - /** - options - arrows boolean if true, show arrows - arrowStep number step when clicking arrows - arrowSymbols array arrow symbols, like ['minus', 'plus'] - max number maximum value - min number minimum value - orientation string 'horizontal' or 'vertical' - step number step between values - size number width or height, in px - thumbSize number minimum width or height of thumb, in px - thumbValue boolean if true, display value on thumb - trackGradient array colors - trackImages string or array one or multiple track background image URLs - trackStep number 0 (scroll here) or step when clicking track - value number initial value - valueNames array value names to display on thumb - */ - var self = self || {}, that = new Ox.Element({}, self) .defaults({ diff --git a/source/Ox.UI/js/List/Ox.List.js b/source/Ox.UI/js/List/Ox.List.js index 8b20bdd6..22b57c2b 100644 --- a/source/Ox.UI/js/List/Ox.List.js +++ b/source/Ox.UI/js/List/Ox.List.js @@ -1,52 +1,61 @@ // vim: et:ts=4:sw=4:sts=4:ft=js /*@ -Basic list object -(options) -> that -(options, self) -> that -options the list's options -self shared private variable +Ox.List List Element + () -> List Object + (options) -> List Object + (options, self) -> List Object + options Options object + centered if true, and orientation is 'horizontal', + then keep the selected item centered + construct (data) returns the list item HTML + draggable true if the items can be reordered + format <[]> ??? + itemHeight item height + items list of items, + (data) returns {items, size, ...} + (data, callback) returns [items] + itemWidth item width + keys keys of the list items + max max number of items that can be selected + min min number of items that must be selected + orientation 'horizontal' or 'vertical' + pageLength number of items per page + selected ids of the selected elements + sort sort order + sortable + type + unique name of the key that acts as unique id + self shared private variable + @*/ Ox.List = function(options, self) { - /*** - basic list object - Options - centered boolean if true, and orientation is 'horizontal', - then keep the selected item centered - construct function function(data), returns the list item HTML - items function function(callback) returns {items, size, ...} - function(data, callback) returns [items] - or array of items - Methods - Events - ***/ - var self = self || {}, that = new Ox.Container({}, self) .defaults({ - centered: false, //@ if true, and orientation is 'horizontal', - //@ then keep the selected item centered - construct: null, //@ (data) returns the list item HTML - draggable: false, //@ true if the items can be reordered - format: [], //@ ??? - itemHeight: 16, //@ item height - items: null, //@ list items - //@ (data) returns {items, size, ...} - //@ (data, callback) returns [items] - itemWidth: 16, //@ item width - keys: [], //@ keys of the list items - max: -1, //@ max number of items that can be selected - min: 0, //@ min number of items that must be selected - orientation: 'vertical', //@ 'horizontal' or 'vertical' - pageLength: 100, //@ number of items per page - selected: [], //@ ids of the selected elements - sort: [], //@ - sortable: false, //@ - type: 'text', //@ - unique: '' //@ name of the key that acts as unique id + centered: false, + + construct: null, + draggable: false, + format: [], + itemHeight: 16, + items: null, + + + itemWidth: 16, + keys: [], + max: -1, + min: 0, + orientation: 'vertical', + pageLength: 100, + selected: [], + sort: [], + sortable: false, + type: 'text', + unique: '' }) .options(options || {}) .scroll(scroll); @@ -265,7 +274,7 @@ Ox.List = function(options, self) { // fixme: why does chainging fail here? new Ox.ListItem({ construct: self.options.construct - }).appendTo($page); + }).appendTo($page); } //Ox.print('cEP done') return $page; @@ -1070,7 +1079,7 @@ Ox.List = function(options, self) { self.selected.splice(self.selected.indexOf(pos), 1); !Ox.isUndefined(self.$items[pos]) && self.$items[pos].removeClass('OxSelected'); - } + } }); ids.forEach(function(id, i) { var pos = getPositionById(id); @@ -1232,6 +1241,12 @@ Ox.List = function(options, self) { } }; + /*@ + addItems add item to list + (pos, items) -> add items to list at position + pos position to add items + items array of items ot add + @*/ that.addItems = function(pos, items) { var $items = [], length = items.length @@ -1268,6 +1283,11 @@ Ox.List = function(options, self) { updatePositions(); } + /*@ + editItem turn item into edit form + (pos) -> edit item at position + pos position of item to edit + @*/ that.editItem = function(pos) { var $input, item = self.options.items[pos], @@ -1307,26 +1327,47 @@ Ox.List = function(options, self) { } } + /*@ + clearCache empy list cache + () -> empy cache, returns List Element + @*/ that.clearCache = function() { // fixme: was used by TextList resizeColumn, now probably no longer necessary self.$pages = []; return that; }; + /*@ + closePreview close preview + () -> close preview, returns List Element + @*/ that.closePreview = function() { self.preview = false; return that; }; + /*@ + paste paste data + (data) -> paste data into list + data paste object + @*/ that.paste = function(data) { pasteItems(data); return that; }; + /*@ + reloadList reload list contents + () -> returns List Element + @*/ that.reloadList = function() { updateQuery(); return that; }; + /*@ + reloadPages reload list pages + () -> returns List Element + @*/ that.reloadPages = function() { //Ox.print('---------------- list reload, page', self.page) var page = self.page; @@ -1337,12 +1378,15 @@ Ox.List = function(options, self) { return that; }; + /*@ + removeItems remove items from list + (ids) -> remove items + (pos, length) -> remove items + ids array of item ids + pos delete items starting at this position + length number of items to remove + @*/ that.removeItems = function(pos, length) { - /* - removeItems(ids) - or - removeItems(pos, length) - */ if(!length) { //pos is list of ids pos.forEach(function(id) { var p = getPositionById(id); @@ -1363,12 +1407,19 @@ Ox.List = function(options, self) { updatePositions(); } } - + /*@ + scrollToSelection scroll list to current selection + () -> returns List Element + @*/ that.scrollToSelection = function() { self.selected.length && scrollToPosition(self.selected[0]); return that; }; + /*@ + size fixme: not a good function name + () -> returns List Element + @*/ that.size = function() { // fixme: not a good function name if (self.options.orientation == 'both') { var rowLength = getRowLength(), @@ -1404,6 +1455,12 @@ Ox.List = function(options, self) { return that; } + /*@ + sortList sort list + (key, operator) -> returns List Element + key key to sort list by + operator +/- sort ascending or descending + @*/ that.sortList = function(key, operator) { Ox.print('sortList', key, operator) if (key != self.options.sort[0].key || operator != self.options.sort[0].operator) { @@ -1414,6 +1471,15 @@ Ox.List = function(options, self) { return that; } + /*@ + value get/set list value + (id, key, value) -> sets value, returns List Element + (id, key) -> returns value + (id) -> returns all values of id + id id of item + key key if item property + value value, can be whatever that property is + @*/ that.value = function(id, key, value) { var pos = getPositionById(id), $item = self.$items[pos], diff --git a/source/Ox.UI/js/List/Ox.ListPage.js b/source/Ox.UI/js/List/Ox.ListPage.js index d19ec59a..64c85bb7 100644 --- a/source/Ox.UI/js/List/Ox.ListPage.js +++ b/source/Ox.UI/js/List/Ox.ListPage.js @@ -1,4 +1,12 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +/*@ +Ox.ListPage ListPage Object + () -> ListPage Object + (options) -> ListPage Object + (options, self) -> ListPage Object + options Options object + self shared private variable +@*/ Ox.ListPage = function(options, self) { var self = self || {}, that = new Ox.Element({}, self) diff --git a/source/Ox.UI/js/List/Ox.TextList.js b/source/Ox.UI/js/List/Ox.TextList.js index ffdf4a22..d7941118 100644 --- a/source/Ox.UI/js/List/Ox.TextList.js +++ b/source/Ox.UI/js/List/Ox.TextList.js @@ -1,4 +1,13 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +/*@ +Ox.TextList TextList Object + () -> TextList Object + (options) -> TextList Object + (options, self) -> TextList Object + options Options object + self shared private variable +@*/ + Ox.TextList = function(options, self) { // fixme: rename to TableList diff --git a/source/Ox.UI/js/List/Ox.TreeList.js b/source/Ox.UI/js/List/Ox.TreeList.js index 388faac1..007ae1c1 100644 --- a/source/Ox.UI/js/List/Ox.TreeList.js +++ b/source/Ox.UI/js/List/Ox.TreeList.js @@ -1,4 +1,20 @@ // vim: et:ts=4:sw=4:sts=4:ft=js + +/*@ +Ox.TreeList TreeList Object + () -> TreeList Object + (options) -> TreeList Object + (options, self) -> TreeList Object + options Options object + data data to be parsed to items, needs documentation + items array of items + max maximum number of items that can be selected, -1 unlimited + min minimum number of items that have to be selected + selected selected ids + width list width + self shared private variable +@*/ + Ox.TreeList = function(options, self) { // fixme: expanding the last item should cause some scroll diff --git a/source/Ox.UI/js/Map/Ox.ListMap.js b/source/Ox.UI/js/Map/Ox.ListMap.js index 6ac4c141..fd08bc52 100644 --- a/source/Ox.UI/js/Map/Ox.ListMap.js +++ b/source/Ox.UI/js/Map/Ox.ListMap.js @@ -1,4 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js + +/*@ +Ox.ListMap ListMap Object + () -> ListMap Object + (options) -> ListMap Object + (options, self) -> ListMap Object + options Options object + self shared private variable +@*/ + Ox.ListMap = function(options, self) { var self = self || {}, diff --git a/source/Ox.UI/js/Map/Ox.MapImage.js b/source/Ox.UI/js/Map/Ox.MapImage.js index 0af6c48c..ddc8c757 100644 --- a/source/Ox.UI/js/Map/Ox.MapImage.js +++ b/source/Ox.UI/js/Map/Ox.MapImage.js @@ -1,4 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js + +/*@ +Ox.MapImage MapImage Object + () -> MapImage Object + (options) -> MapImage Object + (options, self) -> MapImage Object + options Options object + self shared private variable +@*/ + Ox.MapImage = function(options, self) { /** diff --git a/source/Ox.UI/js/Menu/Ox.MainMenu.js b/source/Ox.UI/js/Menu/Ox.MainMenu.js index ba75447b..5658424c 100644 --- a/source/Ox.UI/js/Menu/Ox.MainMenu.js +++ b/source/Ox.UI/js/Menu/Ox.MainMenu.js @@ -1,6 +1,17 @@ // vim: et:ts=4:sw=4:sts=4:ft=js -/** -*/ + +/*@ +Ox.MainMenu MainMenu Object + () -> MainMenu Object + (options) -> MainMenu Object + (options, self) -> MainMenu Object + options Options object + extras [] + menus [] + size medium + self shared private variable +@*/ + Ox.MainMenu = function(options, self) { var self = self || {}, diff --git a/source/Ox.UI/js/Menu/Ox.Menu.js b/source/Ox.UI/js/Menu/Ox.Menu.js index dcf32b67..8fbe912a 100644 --- a/source/Ox.UI/js/Menu/Ox.Menu.js +++ b/source/Ox.UI/js/Menu/Ox.Menu.js @@ -1,24 +1,31 @@ // vim: et:ts=4:sw=4:sts=4:ft=js -/** - options - element the element the menu is attached to - id the menu id - items array of menu items - mainmenu the main menu this menu is part of, if any - offset offset of the menu, in px - parent the supermenu, if any - selected the position of the selected item - side open to 'bottom' or 'right' - size 'large', 'medium' or 'small' +/*@ +Ox.Menu Menu Object + () -> Menu Object + (options) -> Menu Object + (options, self) -> Menu Object + options Options object + element the element the menu is attached to + id the menu id + items array of menu items + mainmenu the main menu this menu is part of, if any + offset offset of the menu, in px + left left + top top + parent the supermenu, if any + selected the position of the selected item + side open to 'bottom' or 'right' + size 'large', 'medium' or 'small' + self shared private variable + + change_groupId {id, value} checked item of a group has changed + click_itemId item not belonging to a group was clicked + click_menuId {id, value} item not belonging to a group was clicked + deselect_menuId {id, value} item was deselected not needed, not implemented + hide_menuId menu was hidden + select_menuId {id, value} item was selected +@*/ - events: - change_groupId {id, value} checked item of a group has changed - click_itemId item not belonging to a group was clicked - click_menuId {id, value} item not belonging to a group was clicked - deselect_menuId {id, value} item was deselected not needed, not implemented - hide_menuId menu was hidden - select_menuId {id, value} item was selected -*/ Ox.Menu = function(options, self) { Ox.print(options) var self = self || {}, @@ -524,18 +531,30 @@ Ox.print(options) } } + /*@ + addItem + @*/ that.addItem = function(item, position) { }; + /*@ + addItemAfter + @*/ that.addItemAfter = function(item, id) { }; + /*@ + addItemBefore + @*/ that.addItemBefore = function(item, id) { }; + /*@ + checkItem + @*/ that.checkItem = function(id) { var item = that.getItem(id); if (item.options('group')) { @@ -553,6 +572,9 @@ Ox.print(options) } }; + /*@ + getItem + @*/ that.getItem = function(id) { //Ox.print('id', id) var ids = id.split('_'), @@ -576,6 +598,9 @@ Ox.print(options) return item; }; + /*@ + getSubmenu + @*/ that.getSubmenu = function(id) { var ids = id.split('_'), submenu; @@ -588,6 +613,9 @@ Ox.print(options) return submenu; } + /*@ + hasEnabledItems + @*/ that.hasEnabledItems = function() { var ret = false; Ox.forEach(that.items, function(item) { @@ -598,6 +626,10 @@ Ox.print(options) return ret; }; + /*@ + hideMenu + () -> Menu Object + @*/ that.hideMenu = function() { if (that.is(':hidden')) { return; @@ -625,14 +657,24 @@ Ox.print(options) return that; }; + /*@ + removeItem + @*/ that.removeItem = function() { }; + /*@ + selectFirstItem + @*/ that.selectFirstItem = function() { selectNextItem(); }; + /*@ + showMenu + () -> Menu Object + @*/ that.showMenu = function() { if (!that.is(':hidden')) { return; @@ -679,6 +721,9 @@ Ox.print(options) //that.triggerEvent('show'); }; + /*@ + toggelMenu + @*/ that.toggleMenu = function() { that.is(':hidden') ? that.showMenu() : that.hideMenu(); }; diff --git a/source/Ox.UI/js/Menu/Ox.MenuItem.js b/source/Ox.UI/js/Menu/Ox.MenuItem.js index 1c9d9641..e6b63f5c 100644 --- a/source/Ox.UI/js/Menu/Ox.MenuItem.js +++ b/source/Ox.UI/js/Menu/Ox.MenuItem.js @@ -1,4 +1,13 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +/*@ +Ox.MenuItem MenuItem Object + () -> MenuItem Object + (options) -> MenuItem Object + (options, self) -> MenuItem Object + options Options object + self shared private variable +@*/ + Ox.MenuItem = function(options, self) { var self = self || {}, diff --git a/source/Ox.UI/js/Panel/Ox.CollapsePanel.js b/source/Ox.UI/js/Panel/Ox.CollapsePanel.js index 94d14c30..86c6e365 100644 --- a/source/Ox.UI/js/Panel/Ox.CollapsePanel.js +++ b/source/Ox.UI/js/Panel/Ox.CollapsePanel.js @@ -1,6 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js -/** -*/ + +/*@ +Ox.CollapsePanel CollapsePanel Object + () -> CollapsePanel Object + (options) -> CollapsePanel Object + (options, self) -> CollapsePanel Object + options Options object + self shared private variable +@*/ + Ox.CollapsePanel = function(options, self) { var self = self || {}, that = new Ox.Panel({}, self) diff --git a/source/Ox.UI/js/Panel/Ox.Panel.js b/source/Ox.UI/js/Panel/Ox.Panel.js index a28a5c38..7bfa2292 100644 --- a/source/Ox.UI/js/Panel/Ox.Panel.js +++ b/source/Ox.UI/js/Panel/Ox.Panel.js @@ -1,6 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js -/** -*/ + +/*@ +Ox.Panel Panel Object + () -> Panel Object + (options) -> Panel Object + (options, self) -> Panel Object + options Options object + self shared private variable +@*/ + Ox.Panel = function(options, self) { var self = self || {}, that = new Ox.Element({}, self) diff --git a/source/Ox.UI/js/Panel/Ox.SplitPanel.js b/source/Ox.UI/js/Panel/Ox.SplitPanel.js index 25e9f3c7..6e1f48e8 100644 --- a/source/Ox.UI/js/Panel/Ox.SplitPanel.js +++ b/source/Ox.UI/js/Panel/Ox.SplitPanel.js @@ -1,4 +1,15 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +/*@ +Ox.SplitPanel SpliPanel Object + () -> SpliPanel Object + (options) -> SpliPanel Object + (options, self) -> SpliPanel Object + options Options object + self shared private variable + resize resize + toggle toggle +@*/ + /** options: elements: [{ array of one, two or three elements diff --git a/source/Ox.UI/js/Video/Ox.AnnotationPanel.js b/source/Ox.UI/js/Video/Ox.AnnotationPanel.js index 110a6b94..3c07a3e9 100644 --- a/source/Ox.UI/js/Video/Ox.AnnotationPanel.js +++ b/source/Ox.UI/js/Video/Ox.AnnotationPanel.js @@ -1,4 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js + +/*@ +Ox.AnnotationPanel AnnotationPanel Object + () -> AnnotationPanel Object + (options) -> AnnotationPanel Object + (options, self) -> AnnotationPanel Object + options Options object + self shared private variable +@*/ + Ox.AnnotationPanel = function(options, self) { var self = self || {}, diff --git a/source/Ox.UI/js/Video/Ox.BlockTimeline.js b/source/Ox.UI/js/Video/Ox.BlockTimeline.js index a63da8e7..1a875d8f 100644 --- a/source/Ox.UI/js/Video/Ox.BlockTimeline.js +++ b/source/Ox.UI/js/Video/Ox.BlockTimeline.js @@ -1,4 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js + +/*@ +Ox.BlockTimeline BlockTimeline Object + () -> BlockTimeline Object + (options) -> BlockTimeline Object + (options, self) -> BlockTimeline Object + options Options object + self shared private variable +@*/ + Ox.BlockTimeline = function(options, self) { var self = self || {}, diff --git a/source/Ox.UI/js/Video/Ox.LargeTimeline.js b/source/Ox.UI/js/Video/Ox.LargeTimeline.js index 04a7e56c..d3d1bd2d 100644 --- a/source/Ox.UI/js/Video/Ox.LargeTimeline.js +++ b/source/Ox.UI/js/Video/Ox.LargeTimeline.js @@ -1,4 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js + +/*@ +Ox.LargeTimeline LargeTimeline Object + () -> LargeTimeline Object + (options) -> LargeTimeline Object + (options, self) -> LargeTimeline Object + options Options object + self shared private variable +@*/ + Ox.LargeTimeline = function(options, self) { var self = self || {}, diff --git a/source/Ox.UI/js/Video/Ox.SmallTimeline.js b/source/Ox.UI/js/Video/Ox.SmallTimeline.js index c5bf0369..e0b57c72 100644 --- a/source/Ox.UI/js/Video/Ox.SmallTimeline.js +++ b/source/Ox.UI/js/Video/Ox.SmallTimeline.js @@ -1,4 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js + +/*@ +Ox.SmallTimeline SmallTimeline Object + () -> SmallTimeline Object + (options) -> SmallTimeline Object + (options, self) -> SmallTimeline Object + options Options object + self shared private variable +@*/ + Ox.SmallTimeline = function(options, self) { var self = self || {}, diff --git a/source/Ox.UI/js/Video/Ox.VideoEditor.js b/source/Ox.UI/js/Video/Ox.VideoEditor.js index 7448cbbb..76509b69 100644 --- a/source/Ox.UI/js/Video/Ox.VideoEditor.js +++ b/source/Ox.UI/js/Video/Ox.VideoEditor.js @@ -1,4 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js + +/*@ +Ox.VideoEditor VideoEditor Object + () -> VideoEditor Object + (options) -> VideoEditor Object + (options, self) -> VideoEditor Object + options Options object + self shared private variable +@*/ + Ox.VideoEditor = function(options, self) { var self = self || {}, diff --git a/source/Ox.UI/js/Video/Ox.VideoEditorPlayer.js b/source/Ox.UI/js/Video/Ox.VideoEditorPlayer.js index aa138cb5..0bdcf094 100644 --- a/source/Ox.UI/js/Video/Ox.VideoEditorPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoEditorPlayer.js @@ -1,5 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +/*@ +Ox.VideoEditorPlayer VideoEditorPlayer Object + () -> VideoEditorPlayer Object + (options) -> VideoEditorPlayer Object + (options, self) -> VideoEditorPlayer Object + options Options object + self shared private variable +@*/ + Ox.VideoEditorPlayer = function(options, self) { var self = self || {}, diff --git a/source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js index 26f0a333..05006544 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js @@ -1,4 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js + +/*@ +Ox.VideoPanelPlayer VideoPanelPlayer Object + () -> VideoPanelPlayer Object + (options) -> VideoPanelPlayer Object + (options, self) -> VideoPanelPlayer Object + options Options object + self shared private variable +@*/ + Ox.VideoPanelPlayer = function(options, self) { var self = self || {}, diff --git a/source/Ox.UI/js/Window/Ox.Dialog.js b/source/Ox.UI/js/Window/Ox.Dialog.js index a8f9b9f6..c153424b 100644 --- a/source/Ox.UI/js/Window/Ox.Dialog.js +++ b/source/Ox.UI/js/Window/Ox.Dialog.js @@ -1,4 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js + +/*@ +Ox.Dialog Dialog Object + () -> Dialog Object + (options) -> Dialog Object + (options, self) -> Dialog Object + options Options object + self shared private variable +@*/ + Ox.Dialog = function(options, self) { // fixme: dialog should be derived from a generic draggable diff --git a/source/Ox.UI/js/Window/Ox.Tooltip.js b/source/Ox.UI/js/Window/Ox.Tooltip.js index 14da1dda..f1316d82 100644 --- a/source/Ox.UI/js/Window/Ox.Tooltip.js +++ b/source/Ox.UI/js/Window/Ox.Tooltip.js @@ -1,4 +1,14 @@ // vim: et:ts=4:sw=4:sts=4:ft=js + +/*@ +Ox.Tooltip Tooltip Object + () -> Tooltip Object + (options) -> Tooltip Object + (options, self) -> Tooltip Object + options Options object + self shared private variable +@*/ + Ox.Tooltip = function(options, self) { var self = self || {}, diff --git a/source/Ox.UI/js/Window/Ox.Window.js b/source/Ox.UI/js/Window/Ox.Window.js index 566a8765..2827943d 100644 --- a/source/Ox.UI/js/Window/Ox.Window.js +++ b/source/Ox.UI/js/Window/Ox.Window.js @@ -1,4 +1,18 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +/*@ +Ox.Window Window object + () -> Window object + (options) -> Window object + (options, self) -> Window object + options Options object + draggable is window draggable + fullscreenable fixme: silly name + height height + resizeable resizeable + scaleable sccaleable + width width + self Shared private variable +@*/ Ox.Window = function(options, self) { self = self || {},