I am having a dickens of a time getting my mixin classes to be included in
both script builds and actual builds. For my normal classes I have to
actually place a reference to them in Application in order to force them to
load, but how to you force a reference to a mixin?
I know there is supposed to be a way to include files in the config.json but
the documentation page for this may make perfect sense for a python
developer, but I am having a tough time actually making changes to
config.json that actually work. Here is the file I am working with, it's a
modified version of the one that got created when I did the Hello World
tutorial. The class that I am trying to force to load is swep.mixinsWidget.
The file is in the correct place and worked perfectly in .7, I made the
correct changes to make it .8 ready.
Thanks,
Jim
{
"name" : "swep",
"include" :
[
{
"path" : "../../tool/data/config/application.json"
}
],
"let" :
{
"APPLICATION" : "swep",
"QOOXDOO_PATH" : "../../framework",
"QOOXDOO_URI" : "../${QOOXDOO_PATH}",
"QXTHEME" : "qx.theme.Modern",
"API_EXCLUDE" : ["qx.legacy.*"],
"LOCALES" : [ "en" ],
"ROOT" : "."
},
"common":
{
"include" :
[
"${APPLICATION}.Application",
"${APPLICATION}.mixinsWidget",
"${THEME}"
]
},
"compile-source":
{
"include": ["swep.mixinsWidget"]
}
}
---------------------------------------------- here is my mixins class
qx.Mixin.define("swep.mixinsWidget",
{
"properties":
{
"ToolId":
{
check: "String",
init: ""
}
},
"members":
{
whatsMyToolId: function()
{
try
{
if (this.getToolId() == null)
{ return this.getParent().whatsMyToolId(); }
else if (this.getToolId() == '')
{ return this.getParent().whatsMyToolId(); }
else
return this.getToolId();
}
catch (e)
{
return '';
}
},
setHtmlProperty: function(key, value)
{
this.getContainerElement().setAttribute(key, value)
},
disposeChildren: function()
{
try
{
var ch = this.getVisibleChildren();
if (ch.length > 0)
{
for (var x = (ch.length - 1); x > -1; x--)
{
//ch[x].disposeChildren();
ch[x].setParent(null);
//qx.legacy.ui.core.Widget.flushGlobalQueues();
ch[x].dispose();
}
}
}
catch (e)
{
try
{
//this.setParent(null);
//this.dispose();
}
catch (e)
{
}
}
}
}
});
qx.Class.include(qx.ui.core.Widget, swep.mixinsWidget);
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel