sharath

Untitled

Aug 30th, 2013
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.45 KB | None | 0 0
  1. import bb.cascades 1.0
  2.  
  3. Page {
  4. onCreationCompleted: {
  5. _app.AddorDelete(_app);
  6. }
  7. property variant appPage_ID
  8. ScrollView {
  9.  
  10. Container {
  11. layout: DockLayout {
  12.  
  13. }
  14. verticalAlignment: VerticalAlignment.Fill
  15. background: Color.Black
  16. Container {
  17. leftPadding: 15.0
  18. rightPadding: 15.0
  19. layout: StackLayout {
  20. orientation: LayoutOrientation.TopToBottom
  21. }
  22. verticalAlignment: VerticalAlignment.Fill
  23.  
  24. Container {
  25. verticalAlignment: VerticalAlignment.Top
  26. horizontalAlignment: HorizontalAlignment.Fill
  27. layout: StackLayout {
  28. orientation: LayoutOrientation.LeftToRight
  29. }
  30.  
  31. background: Color.create("#f9393b30")
  32. Container {
  33. horizontalAlignment: HorizontalAlignment.Left
  34. verticalAlignment: VerticalAlignment.Center
  35. Button {
  36. imageSource: "asset:///images/home_button_icon.png"
  37. horizontalAlignment: HorizontalAlignment.Left
  38. maxHeight: 10
  39. maxWidth: 10
  40. scaleX: 0.8
  41. scaleY: 0.7
  42. onClicked: {
  43. appPage_ID.id.pop();
  44. }
  45. }
  46. }
  47. Container {
  48. // horizontalAlignment: HorizontalAlignment.Right
  49. verticalAlignment: VerticalAlignment.Center
  50. leftPadding: 80
  51. Label {
  52. text: "Add/Delete Symbols"
  53. textStyle.color: Color.White
  54. }
  55. }
  56. }
  57.  
  58. Container {
  59.  
  60. layout: StackLayout {
  61.  
  62. }
  63. leftPadding: 15.0
  64. rightPadding: 15.0
  65. background: Color.create("#00a3b8")
  66. horizontalAlignment: HorizontalAlignment.Fill
  67. verticalAlignment: VerticalAlignment.Center
  68. Label {
  69. text: appPage_ID.title
  70. textStyle.color: Color.White
  71. }
  72.  
  73. }
  74. Container {
  75. layout: StackLayout {
  76. orientation: LayoutOrientation.LeftToRight
  77. }
  78.  
  79. topPadding: 20.0
  80. horizontalAlignment: HorizontalAlignment.Fill
  81. Label {
  82. text: "Symbol"
  83. // Text Style and size etc
  84. textStyle.base: SystemDefaults.TextStyles.SubtitleText
  85. textStyle.fontSizeValue: 30.0
  86. layoutProperties: StackLayoutProperties {
  87. spaceQuota: 1.0
  88. }
  89. textStyle.color: Color.White
  90. }
  91.  
  92. }
  93. Container {
  94. objectName: "DdContainer"
  95. layout: StackLayout {
  96. orientation: LayoutOrientation.LeftToRight
  97. }
  98.  
  99. topPadding: 20.0
  100. horizontalAlignment: HorizontalAlignment.Fill
  101.  
  102. DropDown {
  103. objectName: "myDropDown"
  104. enabled: true
  105. layoutProperties: StackLayoutProperties {
  106. spaceQuota: 3.0
  107. }
  108.  
  109. }
  110. Button {
  111. imageSource: "asset:///images/add_button.png"
  112. maxHeight: 100
  113. maxWidth: 100
  114. layoutProperties: StackLayoutProperties {
  115. spaceQuota: 1.0
  116. }
  117. }
  118.  
  119. }
  120. Container {
  121. layout: StackLayout {
  122. orientation: LayoutOrientation.LeftToRight
  123. }
  124.  
  125. topPadding: 20.0
  126. // horizontalAlignment: HorizontalAlignment.Right
  127. Label {
  128. text: "EUR/USD"
  129. // Text Style and size etc
  130. textStyle.base: SystemDefaults.TextStyles.SubtitleText
  131. textStyle.fontSizeValue: 30.0
  132. layoutProperties: StackLayoutProperties {
  133. spaceQuota: 3.0
  134. }
  135. verticalAlignment: VerticalAlignment.Center
  136. horizontalAlignment: HorizontalAlignment.Center
  137. textStyle.color: Color.White
  138. }
  139. Button {
  140. maxHeight: 80
  141. maxWidth: 80
  142. scaleX: 0.7
  143. scaleY: 0.7
  144. imageSource: "asset:///images/delete_button_icon.png"
  145. layoutProperties: StackLayoutProperties {
  146. spaceQuota: 1.0
  147. }
  148. verticalAlignment: VerticalAlignment.Center
  149. horizontalAlignment: HorizontalAlignment.Center
  150. }
  151.  
  152. }
  153. Container {
  154. layout: StackLayout {
  155. orientation: LayoutOrientation.LeftToRight
  156. }
  157.  
  158. topPadding: 20.0
  159. // horizontalAlignment: HorizontalAlignment.Right
  160. Label {
  161. text: "AUD/USD"
  162. // Text Style and size etc
  163. textStyle.base: SystemDefaults.TextStyles.SubtitleText
  164. textStyle.fontSizeValue: 30.0
  165. layoutProperties: StackLayoutProperties {
  166. spaceQuota: 3.0
  167. }
  168. verticalAlignment: VerticalAlignment.Center
  169. horizontalAlignment: HorizontalAlignment.Center
  170. textStyle.color: Color.White
  171. }
  172. Button {
  173. imageSource: "asset:///images/delete_button_icon.png"
  174. maxHeight: 80
  175. maxWidth: 80
  176. scaleX: 0.7
  177. scaleY: 0.7
  178. layoutProperties: StackLayoutProperties {
  179. spaceQuota: 1.0
  180. }
  181. }
  182. verticalAlignment: VerticalAlignment.Center
  183. horizontalAlignment: HorizontalAlignment.Center
  184.  
  185. }
  186. Container {
  187. layout: StackLayout {
  188. orientation: LayoutOrientation.LeftToRight
  189. }
  190.  
  191. topPadding: 20.0
  192. // horizontalAlignment: HorizontalAlignment.Right
  193. Label {
  194. text: "USD/CAD"
  195. // Text Style and size etc
  196. textStyle.base: SystemDefaults.TextStyles.SubtitleText
  197. textStyle.fontSizeValue: 30.0
  198. layoutProperties: StackLayoutProperties {
  199. spaceQuota: 3.0
  200. }
  201. verticalAlignment: VerticalAlignment.Center
  202. horizontalAlignment: HorizontalAlignment.Center
  203. textStyle.color: Color.White
  204. }
  205. Button {
  206. imageSource: "asset:///images/delete_button_icon.png"
  207. maxHeight: 80
  208. maxWidth: 80
  209. scaleX: 0.7
  210. scaleY: 0.7
  211. layoutProperties: StackLayoutProperties {
  212. spaceQuota: 1.0
  213. }
  214. verticalAlignment: VerticalAlignment.Center
  215. horizontalAlignment: HorizontalAlignment.Center
  216. }
  217.  
  218. }
  219.  
  220. }
  221. rightPadding: 15.0
  222. topPadding: 20.0
  223. horizontalAlignment: HorizontalAlignment.Fill
  224.  
  225.  
  226. Button {
  227. text: "Cancel"
  228. horizontalAlignment: HorizontalAlignment.Left
  229. verticalAlignment: VerticalAlignment.Bottom
  230. onClicked: {
  231. appPage_ID.id.pop();
  232. }
  233. }
  234. Button {
  235. text: "Save"
  236. horizontalAlignment: HorizontalAlignment.Right
  237. verticalAlignment: VerticalAlignment.Bottom
  238. onClicked: {
  239. appPage_ID.id.pop();
  240. }
  241. }
  242. }
  243. }
  244.  
  245. }
Advertisement
Add Comment
Please, Sign In to add comment