TIMOB-9792: Implement getChildren() function on UI View
Reviews: David L, Alex

Change Log:
- updated yml file
- moved native object and native object factory into TiObject
- added a class for read only calculated properties
- removed object factory from TiUIBase constructor
- added a setNativeObjectFactory to TiObject
- added getChildren() and children to TiUIBase
- added child control tracking to TiUIBase
- added methods for initializing native events
- changed order of initialization completion

Test Cases:
- build tibb
- build tibbtest
- run tibbtest
- an application with a red background should appear with a button, label, slider, and a progress bar
- push the button
- the title on the button should change to "Children: 4", the slider background should change blue, and the progress bar background should change to green

Jira task: https://jira.appcelerator.org/browse/TIMOB-9792
Changes based on code review
TIMOB-9805 Blackberry: Implement UI.View.show

Changelog:
- Implement show
- remove unused var warnings in TiUIBase

Tests:
- merged in Dave's getChildren patch to fix the event handling
-- Using an eventHandler, toggled between show and hide on UI Controls
==> Verify that hide and show functions work
TIMOB-9843: BlackBerry: Package framework's .js files

[Issues Fixed]
TIMOB-9843: BlackBerry: Package framework's .js files

[Added]
bootstrap.js

[Changes]
package.py
- funcation zipBlackberryDir
  - also package .js files in the SDK

blackberryndk.py
- function package
  - copy the framework's JavaScript and package them in the .bar file

[Tests]
Test 1: Build Mobile SDK and an app
1) Run scons
2) Verify the build succeeds and the framework's .js files are in the Mobile SDK .zip file
3) Extract the Mobile SDK .zip file and create a project using project.py
4) Build and package/run the app
5) Verify the framework's .js files are in the .bar file
TIMOB-9548: BlackBerry: Implement API elements needed for KitchenSink

Reviewers: DavidL, Harut

ChangeLog:
- Implemented info, log, error, warn, debug, methods from Ti.API namespace

Test Cases:
- Run tibbtest.
- Use the following app.js snippet to test Ti.API functionality:

////////////////////////////////////////
:app.js
//
// create root window
//
var win1 = Titanium.UI.createWindow({
    backgroundColor:'#F00'
});

var label1 = Ti.UI.createLabel({
	textAlign : 'center',
	text:'Hello, world!',
	color:'green',
	top: 200
});

label1.text=new Date();

win1.add(label1);

var strBoy = new String('boy');
var strGirl = new String('girl');

Ti.API.log('debug', String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.log('warn', String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.log('undefined', String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.log(String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.debug(String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.info(String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.error(String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.warn(String.format('%s + %s = LOVE', strBoy, strGirl));

// open window
win1.open();
TIMOB-9844: BlackBerry: Include/require framework's .js files

[Issues Fixed]
TIMOB-9844: BlackBerry: Include/require framework's .js files

[Changes]
TiMessageStrings.h
- added error string

TiRootObject.cpp
- function executeScript
  - read and run the bootstrap.js file

[Tests]
Test 1: Build Mobile SDK and run an app
1) Put some test code in bootstrap.js (eg a string variable)
2) Run scons
3) Verify the build succeeds and the framework's .js files are in the Mobile SDK .zip file
4) Extract the Mobile SDK .zip file and create a project using project.py
5) Edit app.js to use the bootstrap.js test code
6) Build, package, and run the app
7) Verify there are no errors and the bootstrap.js test code is working
Merge branch 'blackberry' into TIMOB-9792

Conflicts:
	blackberry/tibb/TiUITableView.cpp
Merge pull request #86 from dcampbell-macadamian/TIMOB-9792

TIMOB-9792: Implement getChildren() function on UI View
TIMOB-9548: BlackBerry: Implement API elements needed for KitchenSink ver2

Reviewers: DavidL, Harut

ChangeLog:
- Address comments

Test Cases:
- Run tibbtest.
- Use the following app.js snippet to test Ti.API functionality:

////////////////////////////////////////
:app.js
//
// create root window
//
var win1 = Titanium.UI.createWindow({
    backgroundColor:'#F00'
});

var label1 = Ti.UI.createLabel({
	textAlign : 'center',
	text:'Hello, world!',
	color:'green',
	top: 200
});

label1.text=new Date();

win1.add(label1);

var strBoy = new String('boy');
var strGirl = new String('girl');

Ti.API.log('debug', String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.log('warn', String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.log('undefined', String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.log(String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.debug(String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.info(String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.error(String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.warn(String.format('%s + %s = LOVE', strBoy, strGirl));

// open window
win1.open();
TIMOB-9876: BlackBerry: Fix build failure
Reviewers: JP, David L

Change Log:
- removed nativeObjectFactory from constructor

Test Cases:
- build tibb
- build should succeed

Jira Bug: https://jira.appcelerator.org/browse/TIMOB-9876
Address review comments
Merge pull request #94 from dcampbell-macadamian/TIMOB-9876

TIMOB-9876: BlackBerry: Fix build failure
Merge branch 'blackberry' into timob-9805

Conflicts:
	blackberry/tibb/TiUIBase.cpp
	blackberry/tibb/TiUIBase.h
TIMOB-9548: BlackBerry: Implement API elements needed for KitchenSink ver3

Reviewers: DavidL, Harut

ChangeLog:
- Address comments

Test Cases:
- Run tibbtest.
- Use the following app.js snippet to test Ti.API functionality:

////////////////////////////////////////
 :app.js
 //
 // create root window
 //
 var win1 = Titanium.UI.createWindow({
 backgroundColor:'#F00'
 });

var label1 = Ti.UI.createLabel({
 textAlign : 'center',
 text:'Hello, world!',
 color:'green',
 top: 200
 });

label1.text=new Date();

win1.add(label1);

var strBoy = new String('boy');
 var strGirl = new String('girl');

Ti.API.log('debug', String.format('%s + %s = LOVE', strBoy, strGirl));
 Ti.API.log('warn', String.format('%s + %s = LOVE', strBoy, strGirl));
 Ti.API.log('undefined', String.format('%s + %s = LOVE', strBoy, strGirl));
 Ti.API.log(String.format('%s + %s = LOVE', strBoy, strGirl));
 Ti.API.debug(String.format('%s + %s = LOVE', strBoy, strGirl));
 Ti.API.info(String.format('%s + %s = LOVE', strBoy, strGirl));
 Ti.API.error(String.format('%s + %s = LOVE', strBoy, strGirl));
 Ti.API.warn(String.format('%s + %s = LOVE', strBoy, strGirl));

// open window
 win1.open();
Merge pull request #92 from alexandergalstyan/apilogsBranch

TIMOB-9548: BlackBerry: Implement API elements needed for KitchenSink
TIMOB-9843: BlackBerry: Package framework's .js files

moved bootstrap.js
Merge pull request #88 from jpl-mac/timob-9805

TIMOB-9805 Blackberry: Implement UI.View.show
Merge pull request #89 from dlifshitz-maca/TIMOB-9843_01

TIMOB-9843: BlackBerry: Package framework's .js files

[Issues Fixed]
TIMOB-9843: BlackBerry: Package framework's .js files

[Added]
bootstrap.js

[Changes]
package.py
- funcation zipBlackberryDir
  - also package .js files in the SDK

blackberryndk.py
- function package
  - copy the framework's JavaScript and package them in the .bar file

[Tests]
Test 1: Build Mobile SDK and an app
1) Run scons
2) Verify the build succeeds and the framework's .js files are in the Mobile SDK .zip file
3) Extract the Mobile SDK .zip file and create a project using project.py
4) Build and package/run the app
5) Verify the framework's .js files are in the .bar file
TIMOB-9844: BlackBerry: Include/require framework's .js files

Fixed error string and ifstream check. Also removed the extra endlines.
Merge pull request #93 from dlifshitz-maca/TIMOB-9844_01

TIMOB-9844: BlackBerry: Include/require framework's .js files

[Issues Fixed]
TIMOB-9844: BlackBerry: Include/require framework's .js files

[Changes]
TiMessageStrings.h
- added error string

TiRootObject.cpp
- function executeScript
  - read and run the bootstrap.js file

[Tests]
Test 1: Build Mobile SDK and run an app
1) Put some test code in bootstrap.js (eg a string variable)
2) Run scons
3) Verify the build succeeds and the framework's .js files are in the Mobile SDK .zip file
4) Extract the Mobile SDK .zip file and create a project using project.py
5) Edit app.js to use the bootstrap.js test code
6) Build, package, and run the app
7) Verify there are no errors and the bootstrap.js test code is working