Skip to content

Commit

Permalink
Merge pull request #3 from dlifshitz-maca/TIMOB-9949_01
Browse files Browse the repository at this point in the history
TIMOB-9949: BlackBerry: Comment out unimplemented elements in KitchenSink
  • Loading branch information
dlifshitz-maca committed Jul 16, 2012
2 parents 9957e70 + 52cab26 commit 8f2caa9
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 6 deletions.
8 changes: 8 additions & 0 deletions Resources/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,15 @@ if (Ti.version < 2.0 ) {

var ApplicationTabGroup = require('ui/common/ApplicationTabGroup');
new ApplicationTabGroup().open(
/* BB TODO: Ti.UI.iPhone not implemented yet
Ti.UI.iPhone ? {transition: Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT} : {}
*/
);

var MessageWindow = require('ui/common/MessageWindow'),
messageWin = new MessageWindow();

/* BB TODO: Ti.App not implemented yet
Titanium.App.addEventListener('event_one', function(e) {
messageWin.setLabel('app.js: event one, array length = ' + e.data.length);
messageWin.open();
Expand All @@ -70,10 +73,13 @@ if (Ti.version < 2.0 ) {
messageWin.close({opacity:0,duration:500});
},1000);
});
*/

// test out logging to developer console, formatting and localization
Ti.API.info(String.format("%s%s",L("welcome_message","default_not_set"),Titanium.version));
/* BB TODO: Ti.useragent not implemeted yet
Ti.API.debug(String.format("%s %s",L("user_agent_message","default_not_set"),Titanium.userAgent));
*/

Ti.API.debug(String.format("locale specific date is %s",String.formatDate(new Date()))); // default is short
Ti.API.debug(String.format("locale specific date (medium) is %s",String.formatDate(new Date(),"medium")));
Expand All @@ -83,9 +89,11 @@ if (Ti.version < 2.0 ) {
Ti.API.debug(String.format("locale specific decimal is %s",String.formatDecimal(12.99)));


/* BB TODO: Ti.Locale not implemented yet
Ti.API.info("should be en, was = "+Ti.Locale.currentLanguage);
Ti.API.info("welcome_message = "+Ti.Locale.getString("welcome_message"));
Ti.API.info("should be def, was = "+Ti.Locale.getString("welcome_message2","def"));
*/
Ti.API.info("welcome_message = "+L("welcome_message"));
Ti.API.info("should be def, was = "+L("welcome_message2","def"));
Ti.API.info("should be 1, was = "+String.format('%d',1));
Expand Down
4 changes: 4 additions & 0 deletions Resources/ui/common/ApplicationTabGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ function ApplicationTabGroup() {
Titanium.UI.LANDSCAPE_RIGHT
]
});
/* BB TODO: createView not implemented yet
var messageView = Titanium.UI.createView({
id:'messageview',
height:30,
Expand All @@ -82,6 +83,7 @@ function ApplicationTabGroup() {
opacity:0.7,
touchEnabled:false
});
*/

var messageLabel = Titanium.UI.createLabel({
id:'messagelabel',
Expand All @@ -95,7 +97,9 @@ function ApplicationTabGroup() {
},
textAlign:'center'
});
/* BB TODO: createView not implemented yet
messageWin.add(messageView);
*/
messageWin.add(messageLabel);

self.addEventListener('close', function() {
Expand Down
9 changes: 8 additions & 1 deletion Resources/ui/common/BaseUIWindow.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
function BaseUIWindow(title) {
var self = Ti.UI.createWindow({
title:title,
backgroundColor:'white'
// BB TODO: this used to be white
backgroundColor:'black'
});

var isMobileWeb = Titanium.Platform.osname == 'mobileweb';
Expand Down Expand Up @@ -109,13 +110,15 @@ function BaseUIWindow(title) {
borderRadius:10
});

/* BB TODO: Not implemented yet createView
var view = Titanium.UI.createView({
backgroundColor:'#000',
opacity:0.7,
height:30,
width:250,
borderRadius:10
});
*/

var label = Titanium.UI.createLabel({
color:'#fff',
Expand All @@ -124,9 +127,12 @@ function BaseUIWindow(title) {
width:'auto',
height:'auto'
});
/* BB TODO: Not implemented yet
win.add(view);
*/
win.add(label);

/* BB TODO: Not implemented yet Ti.App
Titanium.App.addEventListener('event_one', function(e)
{
label.text = 'base_ui.js: event one, array length = ' + e.data.length;
Expand All @@ -147,6 +153,7 @@ function BaseUIWindow(title) {
},1000);
});
*/


return self;
Expand Down
3 changes: 2 additions & 1 deletion Resources/ui/common/ControlsWindow.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
function ControlsWindow(title) {
var self = Ti.UI.createWindow({
title:title,
backgroundColor:'white'
// BB TODO: this used to be white
backgroundColor:'black'
});

// create table view data object
Expand Down
3 changes: 2 additions & 1 deletion Resources/ui/common/MashupsWindow.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
function MashupsWindow(title) {
var self = Ti.UI.createWindow({
title:title,
backgroundColor:'white'
// BB TODO: this used to be white
backgroundColor:'black'
});

var isMobileWeb = Titanium.Platform.osname == 'mobileweb';
Expand Down
5 changes: 4 additions & 1 deletion Resources/ui/common/MessageWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function MessageWindow() {
Titanium.UI.LANDSCAPE_RIGHT
]
});
/* BB TODO: createView not implemented yet
var messageView = Titanium.UI.createView({
id:'messageview',
height:30,
Expand All @@ -21,6 +22,7 @@ function MessageWindow() {
opacity:0.7,
touchEnabled:false
});
*/
var messageLabel = Titanium.UI.createLabel({
id:'messagelabel',
text:'',
Expand All @@ -33,8 +35,9 @@ function MessageWindow() {
},
textAlign:'center'
});
/* BB TODO: createView not implemented yet
win.add(messageView);
*/
win.add(messageLabel);

this.setLabel = function(_text) {
Expand Down
3 changes: 2 additions & 1 deletion Resources/ui/common/PhoneWindow.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
function PhoneWindow(title) {
var self = Ti.UI.createWindow({
title:title,
backgroundColor:'white'
// BB TODO: this used to be white
backgroundColor:'black'
});

var isMobileWeb = Titanium.Platform.osname == 'mobileweb';
Expand Down
3 changes: 2 additions & 1 deletion Resources/ui/common/PlatformWindow.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
function PlatformWindow(title) {
var self = Ti.UI.createWindow({
title:title,
backgroundColor:'white'
// BB TODO: this used to be white
backgroundColor:'black'
});

var isMobileWeb = Titanium.Platform.osname == 'mobileweb';
Expand Down

0 comments on commit 8f2caa9

Please sign in to comment.