Initial side dependent elements handling, initial multi col/row objects support, lousy bugfix about hanging on stopiing a module
This commit is contained in:
parent
7f03a0bd75
commit
35fcc5c801
13 changed files with 760 additions and 259 deletions
|
@ -12,6 +12,7 @@ var VCController = require("../lib/wController/vocabulary");
|
|||
var Address = require("../lib/wType/address");
|
||||
var Uint64 = require("../lib/wType/uint64");
|
||||
var Vocabulary = require("../lib/wType/vocabulary");
|
||||
var Boolean = require("../lib/wType/boolean");
|
||||
|
||||
var AlbumPage = TempPage.inherit({
|
||||
"className": "AlbumPage",
|
||||
|
@ -28,6 +29,8 @@ var AlbumPage = TempPage.inherit({
|
|||
imageOptions.insert("maxWidth", new Uint64(200));
|
||||
imageOptions.insert("minHeight", new Uint64(200));
|
||||
imageOptions.insert("maxHeight", new Uint64(200));
|
||||
imageOptions.insert("aspectRatio", new Uint64(1));
|
||||
imageOptions.insert("preserveAspectRatio", new Boolean(true));
|
||||
this.addItem(this._image, 0, 0, 2, 1, TempPage.Aligment.CenterCenter, new Uint64(TempPage.getModelTypeId(this._image)), imageOptions);
|
||||
|
||||
var header = this._header = new String(this._address["+"](new Address(["header"])), "");
|
||||
|
|
|
@ -8,6 +8,8 @@ var VCController = require("../lib/wController/vocabulary");
|
|||
|
||||
var Address = require("../lib/wType/address");
|
||||
var Uint64 = require("../lib/wType/uint64");
|
||||
var Boolean = require("../lib/wType/boolean");
|
||||
var Vocabulary = require("../lib/wType/vocabulary");
|
||||
|
||||
var SongPage = TempPage.inherit({
|
||||
"className": "SongPage",
|
||||
|
@ -30,8 +32,12 @@ var SongPage = TempPage.inherit({
|
|||
artist.addProperty("fontFamily", "casualFont");
|
||||
this.addItem(artist, 2, 1, 1, 1, TempPage.Aligment.CenterTop);
|
||||
|
||||
var io = new Vocabulary();
|
||||
io.insert("aspectRatio", new Uint64(1));
|
||||
io.insert("preserveAspectRatio", new Boolean(true));
|
||||
|
||||
var image = this._image = new Image(this._address["+"](new Address(["image"])), new Uint64(0));
|
||||
this.addItem(image, 0, 0, 3, 1, TempPage.Aligment.CenterCenter);
|
||||
this.addItem(image, 0, 0, 3, 1, TempPage.Aligment.CenterCenter, new Uint64(TempPage.getModelTypeId(image)), io);
|
||||
},
|
||||
"destructor": function() {
|
||||
this._clearCtrls();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue