src/js/widgets.js
author hamidouk
Wed, 19 Oct 2011 15:00:34 +0200
branchpopcorn-port
changeset 98 ed4ac18baf07
parent 95 da3ab0bfadf3
child 114 eda061f1aa75
permissions -rw-r--r--
broke the widgets.js in multiple files.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
66
13013b9452af Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff changeset
     1
/* the widget classes and definitions */
13013b9452af Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff changeset
     2
74
d7a7d7216371 lots of changes to the player widget...
hamidouk
parents: 66
diff changeset
     3
IriSP.Widget = function(Popcorn, config, Serializer) {
d7a7d7216371 lots of changes to the player widget...
hamidouk
parents: 66
diff changeset
     4
  this._Popcorn = Popcorn;
d7a7d7216371 lots of changes to the player widget...
hamidouk
parents: 66
diff changeset
     5
  this._config = config;  
d7a7d7216371 lots of changes to the player widget...
hamidouk
parents: 66
diff changeset
     6
  this._serializer = Serializer;
66
13013b9452af Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff changeset
     7
};
13013b9452af Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff changeset
     8
13013b9452af Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff changeset
     9
IriSP.Widget.prototype.draw = function() {
13013b9452af Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff changeset
    10
  /* implemented by "sub-classes" */  
13013b9452af Added a new file to the build, widgets.js, to contain widget classes.
hamidouk
parents:
diff changeset
    11
};
74
d7a7d7216371 lots of changes to the player widget...
hamidouk
parents: 66
diff changeset
    12
d7a7d7216371 lots of changes to the player widget...
hamidouk
parents: 66
diff changeset
    13
IriSP.Widget.prototype.redraw = function() {
d7a7d7216371 lots of changes to the player widget...
hamidouk
parents: 66
diff changeset
    14
  /* implemented by "sub-classes" */  
d7a7d7216371 lots of changes to the player widget...
hamidouk
parents: 66
diff changeset
    15
};
d7a7d7216371 lots of changes to the player widget...
hamidouk
parents: 66
diff changeset
    16
d7a7d7216371 lots of changes to the player widget...
hamidouk
parents: 66
diff changeset
    17
IriSP.PlayerWidget = function(Popcorn, config, Serializer) {
d7a7d7216371 lots of changes to the player widget...
hamidouk
parents: 66
diff changeset
    18
  IriSP.Widget.call(this, Popcorn, config, Serializer);
d7a7d7216371 lots of changes to the player widget...
hamidouk
parents: 66
diff changeset
    19
  
98
ed4ac18baf07 broke the widgets.js in multiple files.
hamidouk
parents: 95
diff changeset
    20
};