rhodes 3.1.0.beta.3 → 3.1.0.beta.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. data/Manifest.txt +4 -4
  2. data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_bluetooth_RhoBluetoothManager.h +9 -3
  3. data/platform/android/Rhodes/jni/src/bluetooth.cpp +63 -40
  4. data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/IRhoBluetoothManager.java +2 -2
  5. data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/RhoBluetoothManager.java +13 -9
  6. data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/RhoBluetoothManagerNew.java +9 -9
  7. data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/RhoBluetoothManagerOld.java +5 -5
  8. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/AnnotationsOverlay.java +8 -0
  9. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/GoogleMapView.java +38 -7
  10. data/platform/android/build/androidcommon.rb +0 -2
  11. data/platform/iphone/Classes/Bluetooth/Bluetooth.m +2 -2
  12. data/platform/shared/qt/rhodes/impl/BluetoothImpl.cpp +2 -2
  13. data/platform/shared/ruby/ext/bluetooth/bluetooth.i +2 -2
  14. data/platform/shared/ruby/ext/bluetooth/bluetooth_wrap.c +422 -144
  15. data/platform/wm/rhodes/bluetooth/Bluetooth.cpp +4 -4
  16. data/platform/wm/rhodes/bluetooth/Bluetooth.h +1 -1
  17. data/res/generators/templates/application/app/Settings/controller.rb +1 -0
  18. data/res/generators/templates/application/app/layout.erb +16 -4
  19. data/res/generators/templates/application/public/css/android.css +9 -0
  20. data/res/generators/templates/application/public/css/blackberry.css +9 -0
  21. data/res/generators/templates/application/public/css/iphone.css +55 -46
  22. data/res/generators/templates/application/public/css/jqmobile-patch.css +15 -2
  23. data/res/generators/templates/application/public/jqmobile/images/icons-18-black.png +0 -0
  24. data/res/generators/templates/application/public/jqmobile/images/icons-18-white.png +0 -0
  25. data/res/generators/templates/application/public/jqmobile/images/icons-36-black.png +0 -0
  26. data/res/generators/templates/application/public/jqmobile/images/icons-36-white.png +0 -0
  27. data/res/generators/templates/application/public/jqmobile/{jquery.mobile-1.0b1.css → jquery.mobile-1.0b2.css} +163 -184
  28. data/res/generators/templates/application/public/jqmobile/{jquery.mobile-1.0b1.js → jquery.mobile-1.0b2.js} +3405 -2772
  29. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0b2.min.css +8 -0
  30. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0b2.min.js +155 -0
  31. data/res/generators/templates/application/public/js/jqmobile-patch.js +58 -10
  32. data/rhodes.gemspec +1 -1
  33. metadata +10 -10
  34. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0b1.min.css +0 -8
  35. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0b1.min.js +0 -146
@@ -1050,8 +1050,8 @@ void rho_bluetooth_set_device_name(const char* device_name) {
1050
1050
  RhoBluetoothManager::getInstance()->rho_bluetooth_set_device_name(device_name);
1051
1051
  }
1052
1052
 
1053
- const char* rho_bluetooth_get_device_name() {
1054
- return RhoBluetoothManager::getInstance()->rho_bluetooth_get_device_name();
1053
+ VALUE rho_bluetooth_get_device_name() {
1054
+ return rho_ruby_create_string(RhoBluetoothManager::getInstance()->rho_bluetooth_get_device_name());
1055
1055
  }
1056
1056
 
1057
1057
  const char* rho_bluetooth_get_last_error() {
@@ -1268,8 +1268,8 @@ void rho_bluetooth_off_bluetooth() {
1268
1268
  void rho_bluetooth_set_device_name(const char* device_name) {
1269
1269
  }
1270
1270
 
1271
- const char* rho_bluetooth_get_device_name() {
1272
- return "ERROR";
1271
+ VALUE rho_bluetooth_get_device_name() {
1272
+ return rho_ruby_create_string("ERROR");
1273
1273
  }
1274
1274
 
1275
1275
  const char* rho_bluetooth_get_last_error() {
@@ -322,7 +322,7 @@ extern "C" void rho_bluetooth_off_bluetooth();
322
322
 
323
323
  extern "C" void rho_bluetooth_set_device_name(const char* device_name);
324
324
 
325
- extern "C" const char* rho_bluetooth_get_device_name();
325
+ extern "C" VALUE rho_bluetooth_get_device_name();
326
326
 
327
327
  extern "C" const char* rho_bluetooth_get_last_error();
328
328
 
@@ -39,6 +39,7 @@ class SettingsController < Rho::RhoController
39
39
  if @params['login'] and @params['password']
40
40
  begin
41
41
  SyncEngine.login(@params['login'], @params['password'], (url_for :action => :login_callback) )
42
+ @response['headers']['Wait-Page'] = 'true'
42
43
  render :action => :wait
43
44
  rescue Rho::RhoError => e
44
45
  @msg = e.message
@@ -21,7 +21,7 @@
21
21
  <%% if System::get_property('platform') == 'APPLE' || System::get_property('platform') == 'ANDROID' || is_bb6 || ( System::get_property('platform') == 'UNKNOWN' && System::get_property('webview_framework') =~ /^WEBKIT/) %>
22
22
  <script src="/public/jquery/jquery-1.6.2.min.js" type="text/javascript"></script>
23
23
 
24
- <link rel="stylesheet" href="/public/jqmobile/jquery.mobile-1.0b1.min.css">
24
+ <link rel="stylesheet" href="/public/jqmobile/jquery.mobile-1.0b2.min.css">
25
25
  <link rel="stylesheet" href="/public/css/jqmobile-patch.css">
26
26
  <%% if System::get_property('platform') == 'APPLE' %>
27
27
  <link href="/public/jqmobile/jquery.mobile.iphone.css" type="text/css" rel="stylesheet"/>
@@ -32,11 +32,23 @@
32
32
  // jQuery-Mobile init options initialization goes here. For example, you may
33
33
  // enable automatically generated 'Back' buttons on headers this way:
34
34
  //$.mobile.page.prototype.options.addBackBtn = true;
35
- // Look for other init options here:
36
- // http://jquerymobile.com/demos/1.0b1/#/demos/1.0b1/docs/api/globalconfig.html
35
+
36
+ // You can disable (with false value) or change page loading message
37
+ $.mobile.loadingMessage = false;
38
+ //$.mobile.loadingMessage = "loading"; // it is default value
39
+
40
+ // For documented init options look here:
41
+ // http://jquerymobile.com/demos/1.0b2/#/demos/1.0b2/docs/api/globalconfig.html
42
+
43
+ // For poorly documented options search for ".prototype.options"
44
+ // in the jQuery Mobile source code
45
+
46
+ // Rhodes custom option!
47
+ // how long to wait transition end before "loading.." message will be shown
48
+ $.mobile.loadingMessageDelay = 300; // in ms
37
49
  });
38
50
  </script>
39
- <script type="text/javascript" charset="utf-8" src="/public/jqmobile/jquery.mobile-1.0b1.min.js"></script>
51
+ <script type="text/javascript" charset="utf-8" src="/public/jqmobile/jquery.mobile-1.0b2.min.js"></script>
40
52
  <script type="text/javascript" charset="utf-8" src="/public/js/jqmobile-patch.js"></script>
41
53
 
42
54
  <%% end %>
@@ -330,6 +330,15 @@ h1 {
330
330
  color: red;
331
331
  }
332
332
 
333
+ .ui-content ul li div.itemLabel {
334
+ display: inline-block;
335
+ }
336
+
337
+ .ui-content ul li div.itemValue {
338
+ display: inline-block;
339
+ float: right;
340
+ }
341
+
333
342
  .errorMessage {
334
343
  color: red;
335
344
  text-align: center
@@ -114,6 +114,15 @@ div[data-role="content"] table tr td.itemValue {
114
114
  width:50%;
115
115
  }
116
116
 
117
+ .ui-content ul li div.itemLabel {
118
+ display: inline-block;
119
+ }
120
+
121
+ .ui-content ul li div.itemValue {
122
+ display: inline-block;
123
+ float: right;
124
+ }
125
+
117
126
  .errorMessage {
118
127
  color: red;
119
128
  text-align: center
@@ -462,49 +462,58 @@ h1 {
462
462
  font-size:smaller;
463
463
  }
464
464
 
465
- /* Include the .ls-button style on each button div. */
466
- .switcher .ls-button {
467
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(171,185,202)), color-stop(0.5, rgb(130,151,175)), color-stop(0.51, rgb(118,139,167)), color-stop(1, rgb(120,141,169)));
468
- width:80px; /* NOTE: If you only want to use 2 buttons, increase width to something more like 125px, and change margin to 0 -3px. */
469
- height:15px;
470
- display:inline-block;
471
- padding-bottom:8px;
472
- margin:0 -2px;
473
- border:1px solid #000;
474
- text-align:center;
475
- }
476
-
477
- /* Indicates the currently active (pressed) button. */
478
- .switcher .ls-pressed {
479
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(142,164,193)), color-stop(0.5, rgb(88,119,162)), color-stop(0.51, rgb(71,105,153)), color-stop(1, rgb(74,108,152)));
480
- }
481
-
482
- .switcher .ls-left {
483
- -webkit-border-top-left-radius: 4px;
484
- -webkit-border-bottom-left-radius: 4px;
485
- }
486
-
487
- .switcher .ls-center {
488
- border-right:none;
489
- border-left:none;
490
- }
491
-
492
- .switcher .ls-right {
493
- -webkit-border-top-right-radius: 4px;
494
- -webkit-border-bottom-right-radius: 4px;
495
- }
496
-
497
- /* If an option should not be available, you can use the .ls-disabled class to gray it out. */
498
- .switcher .ls-disabled {
499
- background:-webkit-gradient(linear, left bottom, left top, color-stop(0, rgb(158,158,158)), color-stop(0.95, rgb(204,204,204)))
500
- }
501
-
502
- /* However, even with disabled classes you must still include an <a> tag. Just have it go href="#" */
503
- .switcher .ls-disabled a {
504
- color:#f0f0f0;
505
- }
506
-
507
- .errorMessage {
508
- color: red;
509
- text-align: center
510
- }
465
+ /* Include the .ls-button style on each button div. */
466
+ .switcher .ls-button {
467
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(171,185,202)), color-stop(0.5, rgb(130,151,175)), color-stop(0.51, rgb(118,139,167)), color-stop(1, rgb(120,141,169)));
468
+ width:80px; /* NOTE: If you only want to use 2 buttons, increase width to something more like 125px, and change margin to 0 -3px. */
469
+ height:15px;
470
+ display:inline-block;
471
+ padding-bottom:8px;
472
+ margin:0 -2px;
473
+ border:1px solid #000;
474
+ text-align:center;
475
+ }
476
+
477
+ /* Indicates the currently active (pressed) button. */
478
+ .switcher .ls-pressed {
479
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(142,164,193)), color-stop(0.5, rgb(88,119,162)), color-stop(0.51, rgb(71,105,153)), color-stop(1, rgb(74,108,152)));
480
+ }
481
+
482
+ .switcher .ls-left {
483
+ -webkit-border-top-left-radius: 4px;
484
+ -webkit-border-bottom-left-radius: 4px;
485
+ }
486
+
487
+ .switcher .ls-center {
488
+ border-right:none;
489
+ border-left:none;
490
+ }
491
+
492
+ .switcher .ls-right {
493
+ -webkit-border-top-right-radius: 4px;
494
+ -webkit-border-bottom-right-radius: 4px;
495
+ }
496
+
497
+ /* If an option should not be available, you can use the .ls-disabled class to gray it out. */
498
+ .switcher .ls-disabled {
499
+ background:-webkit-gradient(linear, left bottom, left top, color-stop(0, rgb(158,158,158)), color-stop(0.95, rgb(204,204,204)))
500
+ }
501
+
502
+ /* However, even with disabled classes you must still include an <a> tag. Just have it go href="#" */
503
+ .switcher .ls-disabled a {
504
+ color:#f0f0f0;
505
+ }
506
+
507
+ .ui-content ul li div.itemLabel {
508
+ display: inline-block;
509
+ }
510
+
511
+ .ui-content ul li div.itemValue {
512
+ display: inline-block;
513
+ float: right;
514
+ }
515
+
516
+ .errorMessage {
517
+ color: red;
518
+ text-align: center
519
+ }
@@ -1,22 +1,35 @@
1
+ /* min-width has been changed from 450px to 320px */
1
2
  @media all and (min-width: 320px){
2
3
  .ui-controlgroup-label { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0; }
3
- .ui-controlgroup-controls { width: 60%; display: inline-block; }
4
+ .ui-controlgroup-controls { width: 60%; display: inline-block; }
4
5
  }
5
6
 
7
+ /* min-width has been changed from 450px to 320px */
6
8
  @media all and (min-width: 320px){
7
9
  .ui-field-contain { border-width: 0; padding: 0; margin: 1em 0; }
8
10
  }
9
11
 
12
+ /* min-width has been changed from 450px to 320px */
10
13
  @media all and (min-width: 320px){
11
14
  label.ui-select { display: inline-block; width: 20%; margin: 0 2% 0 0; }
12
15
  .ui-select { width: 60%; display: inline-block; }
13
16
  }
14
17
 
18
+ /* min-width has been changed from 450px to 320px */
15
19
  @media all and (min-width: 320px){
16
20
  label.ui-input-text { vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0 }
17
21
  input.ui-input-text,
18
22
  textarea.ui-input-text,
19
- .ui-input-search { width: 60%; display: inline-block; }
23
+ .ui-input-search { width: 60%; display: inline-block; }
20
24
  .ui-input-search { width: 50%; }
21
25
  .ui-input-search input.ui-input-text { width: 98%; /*echos rule from above*/ }
22
26
  }
27
+
28
+ /* fields placement fix, because min-width has been changed from 450px to 320px */
29
+ @media all and (min-width: 320px){
30
+ .ui-controlgroup-controls,
31
+ .ui-select,
32
+ input.ui-input-text,
33
+ textarea.ui-input-text,
34
+ .ui-input-search { margin-left: 20px; }
35
+ }