1. import bb.cascades 1.0
  2. /*TabbedPane {
  3. showTabsOnActionBar: true
  4. property string nombreIngresado
  5. property string desIngresado
  6. property string dateIngresado
  7. property string catIngresado
  8. //property string imgIngresado
  9. //*************************************************************************
  10. Tab{
  11. NavigationPane {
  12. NavigationPane{
  13. */
  14. Page {
  15. id: recipeListPage
  16. property string nombreIngresado
  17. property string desIngresado
  18. property string dateIngresado
  19. property string catIngresado
  20. //property string imgIngresado
  21. Container {
  22. Container{
  23. /*topPadding: 15
  24. bottomPadding: topPadding*/
  25. id:cont
  26. background: Color.Gray
  27. Label {
  28. id:lblPagina2
  29. text: qsTr(nombreIngresado)
  30. textStyle.color: Color.DarkYellow
  31. animations: [
  32. TranslateTransition {
  33. fromX: 400
  34. toX:0
  35. duration:500
  36. id:translateAnimacion
  37. }
  38. ]
  39. }
  40. Container{
  41. background: Color.DarkCyan
  42. horizontalAlignment: HorizontalAlignment.Fill
  43. Label {
  44. text: qsTr("Categoria: "+catIngresado)
  45. textStyle.color: Color.White
  46. }
  47. }
  48. /*Container {
  49. ImageView {
  50. imageSource: imgIngresado
  51. }
  52. }*/
  53. Container {
  54. background: Color.LightGray
  55. horizontalAlignment: HorizontalAlignment.Fill
  56. TextArea {
  57. text: desIngresado
  58. editable: false
  59. textFormat: TextFormat.Auto
  60. focusHighlightEnabled: false
  61. onCreationCompleted: {
  62. /*QString str = "colour behaviour flavour neighbour";
  63. str.replace(QString("ou"), QString("o"));*/
  64. }
  65. }
  66. /*WebView {
  67. html: desIngresado
  68. settings.activeTextEnabled: true*/
  69. /*text: qsTr(desIngresado)
  70. multiline: true
  71. textStyle.color: Color.Black*/
  72. //}
  73. }
  74. Container {
  75. background: Color.DarkGray
  76. horizontalAlignment: HorizontalAlignment.Fill
  77. Label {
  78. text:qsTr(dateIngresado)
  79. }
  80. }
  81. }
  82. }//Container
  83. onCreationCompleted: {
  84. translateAnimacion.play();
  85. }
  86. actions: [
  87. ActionItem {
  88. title: "Share"
  89. imageSource: "asset:///images/ic_share.png"
  90. }
  91. ]
  92. }//Page
  93. /*
  94. }//NavigationPane
  95. }//Tab
  96. }//TabbedPane
  97. //*************************************************************************
  98. */
  99. /*
  100. Tab {
  101. title: "Home"
  102. Page {
  103. id: page1
  104. actions: [
  105. ActionItem {
  106. title: "New"
  107. },
  108. ActionItem {
  109. title: "Delete"
  110. }
  111. ]
  112. }
  113. }
  114. Tab {
  115. title: "Options"
  116. Page {
  117. id: page2
  118. actions: [
  119. ActionItem {
  120. title: "Edit"
  121. },
  122. ActionItem {
  123. title: "Save"
  124. }
  125. ]
  126. }
  127. }
  128. Tab {
  129. title: "Help"
  130. Page {
  131. id: page3
  132. actions: [
  133. ActionItem {
  134. title: "Search"
  135. },
  136. ActionItem {
  137. title: "Browse"
  138. }
  139. ]
  140. }
  141. }
  142. }//TabbedPane
  143. */