Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bb.cascades 1.0
- Page {
- onCreationCompleted: {
- _app.AddorDelete(_app);
- }
- property variant appPage_ID
- ScrollView {
- Container {
- layout: DockLayout {
- }
- verticalAlignment: VerticalAlignment.Fill
- background: Color.Black
- Container {
- leftPadding: 15.0
- rightPadding: 15.0
- layout: StackLayout {
- orientation: LayoutOrientation.TopToBottom
- }
- verticalAlignment: VerticalAlignment.Fill
- Container {
- verticalAlignment: VerticalAlignment.Top
- horizontalAlignment: HorizontalAlignment.Fill
- layout: StackLayout {
- orientation: LayoutOrientation.LeftToRight
- }
- background: Color.create("#f9393b30")
- Container {
- horizontalAlignment: HorizontalAlignment.Left
- verticalAlignment: VerticalAlignment.Center
- Button {
- imageSource: "asset:///images/home_button_icon.png"
- horizontalAlignment: HorizontalAlignment.Left
- maxHeight: 10
- maxWidth: 10
- scaleX: 0.8
- scaleY: 0.7
- onClicked: {
- appPage_ID.id.pop();
- }
- }
- }
- Container {
- // horizontalAlignment: HorizontalAlignment.Right
- verticalAlignment: VerticalAlignment.Center
- leftPadding: 80
- Label {
- text: "Add/Delete Symbols"
- textStyle.color: Color.White
- }
- }
- }
- Container {
- layout: StackLayout {
- }
- leftPadding: 15.0
- rightPadding: 15.0
- background: Color.create("#00a3b8")
- horizontalAlignment: HorizontalAlignment.Fill
- verticalAlignment: VerticalAlignment.Center
- Label {
- text: appPage_ID.title
- textStyle.color: Color.White
- }
- }
- Container {
- layout: StackLayout {
- orientation: LayoutOrientation.LeftToRight
- }
- topPadding: 20.0
- horizontalAlignment: HorizontalAlignment.Fill
- Label {
- text: "Symbol"
- // Text Style and size etc
- textStyle.base: SystemDefaults.TextStyles.SubtitleText
- textStyle.fontSizeValue: 30.0
- layoutProperties: StackLayoutProperties {
- spaceQuota: 1.0
- }
- textStyle.color: Color.White
- }
- }
- Container {
- objectName: "DdContainer"
- layout: StackLayout {
- orientation: LayoutOrientation.LeftToRight
- }
- topPadding: 20.0
- horizontalAlignment: HorizontalAlignment.Fill
- DropDown {
- objectName: "myDropDown"
- enabled: true
- layoutProperties: StackLayoutProperties {
- spaceQuota: 3.0
- }
- }
- Button {
- imageSource: "asset:///images/add_button.png"
- maxHeight: 100
- maxWidth: 100
- layoutProperties: StackLayoutProperties {
- spaceQuota: 1.0
- }
- }
- }
- Container {
- layout: StackLayout {
- orientation: LayoutOrientation.LeftToRight
- }
- topPadding: 20.0
- // horizontalAlignment: HorizontalAlignment.Right
- Label {
- text: "EUR/USD"
- // Text Style and size etc
- textStyle.base: SystemDefaults.TextStyles.SubtitleText
- textStyle.fontSizeValue: 30.0
- layoutProperties: StackLayoutProperties {
- spaceQuota: 3.0
- }
- verticalAlignment: VerticalAlignment.Center
- horizontalAlignment: HorizontalAlignment.Center
- textStyle.color: Color.White
- }
- Button {
- maxHeight: 80
- maxWidth: 80
- scaleX: 0.7
- scaleY: 0.7
- imageSource: "asset:///images/delete_button_icon.png"
- layoutProperties: StackLayoutProperties {
- spaceQuota: 1.0
- }
- verticalAlignment: VerticalAlignment.Center
- horizontalAlignment: HorizontalAlignment.Center
- }
- }
- Container {
- layout: StackLayout {
- orientation: LayoutOrientation.LeftToRight
- }
- topPadding: 20.0
- // horizontalAlignment: HorizontalAlignment.Right
- Label {
- text: "AUD/USD"
- // Text Style and size etc
- textStyle.base: SystemDefaults.TextStyles.SubtitleText
- textStyle.fontSizeValue: 30.0
- layoutProperties: StackLayoutProperties {
- spaceQuota: 3.0
- }
- verticalAlignment: VerticalAlignment.Center
- horizontalAlignment: HorizontalAlignment.Center
- textStyle.color: Color.White
- }
- Button {
- imageSource: "asset:///images/delete_button_icon.png"
- maxHeight: 80
- maxWidth: 80
- scaleX: 0.7
- scaleY: 0.7
- layoutProperties: StackLayoutProperties {
- spaceQuota: 1.0
- }
- }
- verticalAlignment: VerticalAlignment.Center
- horizontalAlignment: HorizontalAlignment.Center
- }
- Container {
- layout: StackLayout {
- orientation: LayoutOrientation.LeftToRight
- }
- topPadding: 20.0
- // horizontalAlignment: HorizontalAlignment.Right
- Label {
- text: "USD/CAD"
- // Text Style and size etc
- textStyle.base: SystemDefaults.TextStyles.SubtitleText
- textStyle.fontSizeValue: 30.0
- layoutProperties: StackLayoutProperties {
- spaceQuota: 3.0
- }
- verticalAlignment: VerticalAlignment.Center
- horizontalAlignment: HorizontalAlignment.Center
- textStyle.color: Color.White
- }
- Button {
- imageSource: "asset:///images/delete_button_icon.png"
- maxHeight: 80
- maxWidth: 80
- scaleX: 0.7
- scaleY: 0.7
- layoutProperties: StackLayoutProperties {
- spaceQuota: 1.0
- }
- verticalAlignment: VerticalAlignment.Center
- horizontalAlignment: HorizontalAlignment.Center
- }
- }
- }
- rightPadding: 15.0
- topPadding: 20.0
- horizontalAlignment: HorizontalAlignment.Fill
- Button {
- text: "Cancel"
- horizontalAlignment: HorizontalAlignment.Left
- verticalAlignment: VerticalAlignment.Bottom
- onClicked: {
- appPage_ID.id.pop();
- }
- }
- Button {
- text: "Save"
- horizontalAlignment: HorizontalAlignment.Right
- verticalAlignment: VerticalAlignment.Bottom
- onClicked: {
- appPage_ID.id.pop();
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment