mainWinInit.js File Reference

Main window initialization functions and objects. More...

Go to the source code of this file.

Functions

Components utils import ("resource://app/jsmodules/sbSmartMediaListColumnSpecUpdater.jsm")
 
window addEventListener ("load", mainWinInit.onLoad, false)
 
document addEventListener ("sb-overlay-load", SBPostOverlayLoad, false)
 
function SBInitialize ()
 Initialize the main window. More...
 
function SBUninitialize ()
 Uninitialize the main window. More...
 
function setMinMaxCallback (evt)
 
function resetMinMaxCallback ()
 
function SBPostOverlayLoad ()
 
function SBDoFirstRun ()
 
function SBFirstRunScanDirectories ()
 
function SBFirstRunImportLibrary ()
 
function SBFirstRunSmartPlaylists ()
 
function createDefaultSmartPlaylists ()
 
function addSmartPlaylist (aItem)
 

Variables

var gServicePane = null
 
var mainWinInit = {}
 
mainWinInit init_once = 0
 
mainWinInit deinit_once = 0
 
mainWinInit onLoad
 
var SBWindowMinMaxCB
 

Detailed Description

Main window initialization functions and objects.

Definition in file mainWinInit.js.

Function Documentation

window addEventListener ( "load"  ,
mainWinInit.  onLoad,
false   
)
document addEventListener ( "sb-overlay-load ,
SBPostOverlayLoad  ,
false   
)
function addSmartPlaylist (   aItem)

Definition at line 493 of file mainWinInit.js.

Here is the caller graph for this function:

function createDefaultSmartPlaylists ( )

Definition at line 385 of file mainWinInit.js.

Here is the call graph for this function:

Here is the caller graph for this function:

Components utils import ( "resource://app/jsmodules/sbSmartMediaListColumnSpecUpdater.jsm"  )
function resetMinMaxCallback ( )

Definition at line 193 of file mainWinInit.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function SBDoFirstRun ( )

Definition at line 225 of file mainWinInit.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function SBFirstRunImportLibrary ( )

Definition at line 344 of file mainWinInit.js.

Here is the caller graph for this function:

function SBFirstRunScanDirectories ( )

Definition at line 305 of file mainWinInit.js.

Here is the caller graph for this function:

function SBFirstRunSmartPlaylists ( )

Definition at line 363 of file mainWinInit.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function SBInitialize ( )

Initialize the main window.

Note
Do not call more than once.

Definition at line 93 of file mainWinInit.js.

Here is the call graph for this function:

function SBPostOverlayLoad ( )

Definition at line 215 of file mainWinInit.js.

Here is the call graph for this function:

function SBUninitialize ( )

Uninitialize the main window.

Note
Do not call more than once.

Definition at line 119 of file mainWinInit.js.

Here is the call graph for this function:

function setMinMaxCallback (   evt)

Definition at line 170 of file mainWinInit.js.

Here is the call graph for this function:

Variable Documentation

mainWinInit deinit_once = 0

Definition at line 49 of file mainWinInit.js.

var gServicePane = null

Definition at line 39 of file mainWinInit.js.

mainWinInit init_once = 0

Definition at line 48 of file mainWinInit.js.

var mainWinInit = {}

Definition at line 47 of file mainWinInit.js.

mainWinInit onLoad
Initial value:
= function()
{
if (mainWinInit.init_once++) { dump("WARNING: mainWinInit double init!!\n"); return; }
}
mainWinInit.onUnload = function()
{
if (mainWinInit.deinit_once++) { dump("WARNING: mainWinInit double deinit!!\n"); return; }
window.removeEventListener("load", mainWinInit.onLoad, false);
window.removeEventListener("unload", mainWinInit.onUnload, false);
document.removeEventListener("sb-overlay-load", SBPostOverlayLoad, false);
}
function checkFirstRun()
{
var firstRunDoImportLibrary =
Application.prefs.getValue("songbird.firstrun.do_import_library",
false);
if (firstRunDoImportLibrary) {
Application.prefs.setValue("songbird.firstrun.skip_load_default_page",
true);
}
}
checkFirstRun()
var Application
Definition: sbAboutDRM.js:37
let window
function SBPostOverlayLoad()
Definition: mainWinInit.js:215
function SBUninitialize()
Uninitialize the main window.
Definition: mainWinInit.js:119
function SBInitialize()
Initialize the main window.
Definition: mainWinInit.js:93
var mainWinInit
Definition: mainWinInit.js:47

Definition at line 50 of file mainWinInit.js.

var SBWindowMinMaxCB

Definition at line 129 of file mainWinInit.js.