App-XUL
view release on metacpan or search on metacpan
lib/App/XUL.pm view on Meta::CPAN
'chrome.manifest' => [$self->_get_file_macosx_chromemanifest()],
'content' => {
#'AppXUL.js' => [],
#'AppXULServer.js' => [],
$self->_get_file_macosx_xulfiles(),
#'main.xul' => [$self->_get_file_macosx_mainxul()],
},
},
'defaults' => {
'preferences' => {
'prefs.js' => [$self->_get_file_macosx_prefs()],
},
},
'perl' => {
'server' => {
#'server.pl' => [$self->_get_file_macosx_serverpl()],
},
'modules' => {
'Eventhandlers.pm' => [$self->_get_file_macosx_eventhandlers()],
'App' => {
'XUL' => {
lib/App/XUL.pm view on Meta::CPAN
'chrome.manifest' => [$self->_get_file_macosx_chromemanifest()],
'content' => {
#'AppXUL.js' => [],
#'AppXULServer.js' => [],
$self->_get_file_macosx_xulfiles(),
#'main.xul' => [$self->_get_file_macosx_mainxul()],
},
},
'defaults' => {
'preferences' => {
'prefs.js' => [$self->_get_file_macosx_prefs()],
},
},
'perl' => {
'server' => {
#'server.pl' => [$self->_get_file_macosx_serverpl()],
},
'modules' => {
'Eventhandlers.pm' => [$self->_get_file_macosx_eventhandlers()],
'App' => {
'XUL' => {
lib/App/XUL.pm view on Meta::CPAN
' return App::XUL::XML::AUTOLOAD(@_);'."\n".
'}'."\n".
'sub get {'."\n".
' return {'."\n".
$eventhandlers.
' };'."\n".
'}'."\n".
'1;'."\n";
}
sub _get_file_macosx_prefs
{
my ($self) = @_;
return <<EOFSRC
pref("toolkit.defaultChromeURI", "chrome://$self->{'name'}/content/main.xul");
/* debugging prefs */
pref("browser.dom.window.dump.enabled", true);
pref("javascript.options.showInConsole", true);
pref("javascript.options.strict", true);
pref("nglayout.debug.disable_xul_cache", true);
pref("nglayout.debug.disable_xul_fastload", true);
EOFSRC
}
sub _get_file_macosx_xulfiles
{
lib/App/XUL.pm view on Meta::CPAN
Resources
<span style="color:blue;font-weight:bold">application.ini</span>
<span style="color:blue;font-weight:bold">MyApp.icns</span>
chrome/
<span style="color:blue;font-weight:bold">chrome.manifest</span>
content/
<span style="color:blue;font-weight:bold">AppXUL.js</span>
<span style="color:blue;font-weight:bold">myapp.xul</span>
defaults/
preferences/
<span style="color:blue;font-weight:bold">prefs.js</span>
perl/
server/
<span style="color:blue;font-weight:bold">server.pl</span>
modules/
<i>All Perl modules the server depends on</i>
extensions/
updates/
0/
</pre>
lib/App/XUL.pm view on Meta::CPAN
=item AppXUL.js
Defines all Javascript functions used by App::XUL to manage the
communication with the server.
=item myapp.xul
Defines the basic UI for the XUL application.
=item prefs.js
Sets some preferences for the XUL application.
=item server.pl
This starts the server.
=back
=head3 Application bundling for Windows
( run in 0.921 second using v1.01-cache-2.11-cpan-0bb4e1dffa6 )