Advertisement
Guest User

Untitled

a guest
Nov 19th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import bb.cascades 1.0
  2.  
  3. NavigationPane {
  4.     objectName: "navPane"
  5.     Page {
  6.         titleBar: TitleBar {
  7.             title: "Overview"
  8.             acceptAction: ActionItem {
  9.                 title: "New"
  10.                 objectName: "actionRegister"
  11.             }
  12.         }
  13.         actionBarVisibility: ChromeVisibility.Visible
  14.         Container {
  15.             layout: StackLayout {}
  16.             leftPadding: 20
  17.             rightPadding: 15
  18.             topPadding: 10
  19.  
  20.             Container {
  21.                 layout: DockLayout {}
  22.                 preferredWidth: 720.0
  23.                 Container {
  24.                     layout: StackLayout {}
  25.                     Label {
  26.                         text: "Your Money:"
  27.                         textStyle.fontSize: FontSize.Medium
  28.                     }
  29.                     Label {
  30.                         id: moneyLabel
  31.                         text: "300 dollars"
  32.                         textStyle.fontSize: FontSize.XXLarge
  33.                     }
  34.                 }
  35.                 ImageView {
  36.                     scalingMethod: ScalingMethod.AspectFill
  37.                     imageSource: "asset:///images/icons/moneyBig.png"
  38.                     horizontalAlignment: HorizontalAlignment.Right
  39.                     verticalAlignment: VerticalAlignment.Center
  40.                 }
  41.             }
  42.             Container {
  43.                 layout: DockLayout {}
  44.                 preferredWidth: 720
  45.                 Label {
  46.                     text: "Recent income"
  47.                     multiline: true
  48.                     verticalAlignment: VerticalAlignment.Center
  49.                     textStyle.fontSize: FontSize.Large
  50.                 }
  51.                 Button {
  52.                     text: "See All"
  53.                     horizontalAlignment: HorizontalAlignment.Right
  54.                 }
  55.             }
  56.             ListView {
  57.                 objectName: "incomeList"
  58.                 dataModel: XmlDataModel {
  59.                     source: "dataModels/incomeDM.xml"
  60.                 }
  61.                 preferredWidth: 720.0
  62.                 maxHeight: 280.0
  63.                 listItemComponents: [
  64.                 ListItemComponent {
  65.                     type: "income"
  66.                     Container {
  67.                         layout: DockLayout {}
  68.                         preferredWidth: 720.0
  69.                         topPadding: 10.0
  70.                         Container {
  71.                             layout: StackLayout {
  72.                                 orientation: LayoutOrientation.LeftToRight
  73.                             }
  74.                             ImageView {
  75.                                 imageSource: ListItemData.icon
  76.                                 preferredWidth: 60.0
  77.                                 scalingMethod: ScalingMethod.AspectFit
  78.                             }
  79.                             Container {
  80.                                 layout: StackLayout {}
  81.                                 Label {
  82.                                     text: ListItemData.reason
  83.                                 }
  84.                                 Label {
  85.                                     text: ListItemData.date
  86.                                 }
  87.                             }
  88.                         }
  89.                         Label {
  90.                             text: ListItemData.value
  91.                             verticalAlignment: VerticalAlignment.Center
  92.                             horizontalAlignment: HorizontalAlignment.Right
  93.                         }
  94.                     }
  95.                 }]
  96.                 scrollIndicatorMode: ScrollIndicatorMode.ProportionalBar
  97.             }
  98.             Container {
  99.                 layout: DockLayout {}
  100.                 preferredWidth: 720
  101.                 Label {
  102.                     text: "Recent outcome"
  103.                     multiline: true
  104.                     verticalAlignment: VerticalAlignment.Center
  105.                     textStyle.fontSize: FontSize.Large
  106.                 }
  107.                 Button {
  108.                     text: "See All"
  109.                     horizontalAlignment: HorizontalAlignment.Right
  110.                 }
  111.             }
  112.             ListView {
  113.                 objectName: "outcomeList"
  114.                 dataModel: XmlDataModel {
  115.                     source: "dataModels/outcomeDM.xml"
  116.                 }
  117.                 preferredWidth: 720.0
  118.                 maxHeight: 280.0
  119.                 listItemComponents: [
  120.                 ListItemComponent {
  121.                     type: "outcome"
  122.                     Container {
  123.                         layout: DockLayout {}
  124.                         preferredWidth: 720.0
  125.                         topPadding: 10.0
  126.                         Container {
  127.                             layout: StackLayout {
  128.                                 orientation: LayoutOrientation.LeftToRight
  129.                             }
  130.                             ImageView {
  131.                                 imageSource: ListItemData.icon
  132.                                 preferredWidth: 60.0
  133.                                 scalingMethod: ScalingMethod.AspectFit
  134.                             }
  135.                             Container {
  136.                                 layout: StackLayout {}
  137.                                 Label {
  138.                                     text: ListItemData.reason
  139.                                 }
  140.                                 Label {
  141.                                     text: ListItemData.date
  142.                                 }
  143.                             }
  144.                         }
  145.                         Label {
  146.                             text: ListItemData.value
  147.                             verticalAlignment: VerticalAlignment.Center
  148.                             horizontalAlignment: HorizontalAlignment.Right
  149.                         }
  150.                     }
  151.                 }]
  152.                 scrollIndicatorMode: ScrollIndicatorMode.ProportionalBar
  153.             }
  154.             Label {
  155.                 text: "TODO: Graph here"
  156.             }
  157.         }
  158.         attachedObjects: [
  159.         ComponentDefinition {
  160.             id: pageDefinition
  161.             source: "eventCreation.qml"
  162.         }]
  163.     }
  164. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement