Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bb.cascades 1.0
- NavigationPane {
- objectName: "navPane"
- Page {
- titleBar: TitleBar {
- title: "Overview"
- acceptAction: ActionItem {
- title: "New"
- objectName: "actionRegister"
- }
- }
- actionBarVisibility: ChromeVisibility.Visible
- Container {
- layout: StackLayout {}
- leftPadding: 20
- rightPadding: 15
- topPadding: 10
- Container {
- layout: DockLayout {}
- preferredWidth: 720.0
- Container {
- layout: StackLayout {}
- Label {
- text: "Your Money:"
- textStyle.fontSize: FontSize.Medium
- }
- Label {
- id: moneyLabel
- text: "300 dollars"
- textStyle.fontSize: FontSize.XXLarge
- }
- }
- ImageView {
- scalingMethod: ScalingMethod.AspectFill
- imageSource: "asset:///images/icons/moneyBig.png"
- horizontalAlignment: HorizontalAlignment.Right
- verticalAlignment: VerticalAlignment.Center
- }
- }
- Container {
- layout: DockLayout {}
- preferredWidth: 720
- Label {
- text: "Recent income"
- multiline: true
- verticalAlignment: VerticalAlignment.Center
- textStyle.fontSize: FontSize.Large
- }
- Button {
- text: "See All"
- horizontalAlignment: HorizontalAlignment.Right
- }
- }
- ListView {
- objectName: "incomeList"
- dataModel: XmlDataModel {
- source: "dataModels/incomeDM.xml"
- }
- preferredWidth: 720.0
- maxHeight: 280.0
- listItemComponents: [
- ListItemComponent {
- type: "income"
- Container {
- layout: DockLayout {}
- preferredWidth: 720.0
- topPadding: 10.0
- Container {
- layout: StackLayout {
- orientation: LayoutOrientation.LeftToRight
- }
- ImageView {
- imageSource: ListItemData.icon
- preferredWidth: 60.0
- scalingMethod: ScalingMethod.AspectFit
- }
- Container {
- layout: StackLayout {}
- Label {
- text: ListItemData.reason
- }
- Label {
- text: ListItemData.date
- }
- }
- }
- Label {
- text: ListItemData.value
- verticalAlignment: VerticalAlignment.Center
- horizontalAlignment: HorizontalAlignment.Right
- }
- }
- }]
- scrollIndicatorMode: ScrollIndicatorMode.ProportionalBar
- }
- Container {
- layout: DockLayout {}
- preferredWidth: 720
- Label {
- text: "Recent outcome"
- multiline: true
- verticalAlignment: VerticalAlignment.Center
- textStyle.fontSize: FontSize.Large
- }
- Button {
- text: "See All"
- horizontalAlignment: HorizontalAlignment.Right
- }
- }
- ListView {
- objectName: "outcomeList"
- dataModel: XmlDataModel {
- source: "dataModels/outcomeDM.xml"
- }
- preferredWidth: 720.0
- maxHeight: 280.0
- listItemComponents: [
- ListItemComponent {
- type: "outcome"
- Container {
- layout: DockLayout {}
- preferredWidth: 720.0
- topPadding: 10.0
- Container {
- layout: StackLayout {
- orientation: LayoutOrientation.LeftToRight
- }
- ImageView {
- imageSource: ListItemData.icon
- preferredWidth: 60.0
- scalingMethod: ScalingMethod.AspectFit
- }
- Container {
- layout: StackLayout {}
- Label {
- text: ListItemData.reason
- }
- Label {
- text: ListItemData.date
- }
- }
- }
- Label {
- text: ListItemData.value
- verticalAlignment: VerticalAlignment.Center
- horizontalAlignment: HorizontalAlignment.Right
- }
- }
- }]
- scrollIndicatorMode: ScrollIndicatorMode.ProportionalBar
- }
- Label {
- text: "TODO: Graph here"
- }
- }
- attachedObjects: [
- ComponentDefinition {
- id: pageDefinition
- source: "eventCreation.qml"
- }]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement