forked from brmlab/brmbar-github
Updated for 1280x1024 resolution
This commit is contained in:
parent
d44dbad313
commit
3ecbf192e2
14 changed files with 72 additions and 72 deletions
|
@ -4,6 +4,6 @@ BarKeyboard {
|
||||||
keys: "0123456789<qwertyuiop-asdfghjkl/+^zxcvbnm ,."
|
keys: "0123456789<qwertyuiop-asdfghjkl/+^zxcvbnm ,."
|
||||||
gridRows: 5
|
gridRows: 5
|
||||||
gridColumns: 11
|
gridColumns: 11
|
||||||
buttonWidth: 80
|
buttonWidth: 90
|
||||||
buttonHeight: 70
|
buttonHeight: 80
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,8 +5,8 @@ Grid {
|
||||||
property string enteredText: ""
|
property string enteredText: ""
|
||||||
property int gridRows: 0
|
property int gridRows: 0
|
||||||
property int gridColumns: 0
|
property int gridColumns: 0
|
||||||
property int buttonWidth: 70
|
property int buttonWidth: 80
|
||||||
property int buttonHeight: 70
|
property int buttonHeight: 80
|
||||||
|
|
||||||
property bool shift: false
|
property bool shift: false
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import QtQuick 1.1
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: main_hint
|
id: main_hint
|
||||||
width: 894
|
width: 1150
|
||||||
height: 80
|
height: 80
|
||||||
|
|
||||||
property string hint_goal: ""
|
property string hint_goal: ""
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import QtQuick 1.1
|
import QtQuick 1.1
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 1024
|
width: 1280
|
||||||
height: 768
|
height: 1024
|
||||||
color: "#000000"
|
color: "#000000"
|
||||||
Text {
|
Text {
|
||||||
id: title
|
id: title
|
||||||
|
@ -16,7 +16,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
BarClock {
|
BarClock {
|
||||||
id: clock
|
id: clock
|
||||||
x: 328
|
x: 456
|
||||||
y: 35
|
y: 35
|
||||||
color: "#000000"
|
color: "#000000"
|
||||||
textColor: "#217777"
|
textColor: "#217777"
|
||||||
|
@ -25,7 +25,7 @@ Rectangle {
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: image1
|
id: image1
|
||||||
x: 688
|
x: 944
|
||||||
y: 41
|
y: 41
|
||||||
height: 65
|
height: 65
|
||||||
smooth: true
|
smooth: true
|
||||||
|
@ -36,7 +36,7 @@ Rectangle {
|
||||||
property alias status_text: status_text_id
|
property alias status_text: status_text_id
|
||||||
Text {
|
Text {
|
||||||
id: status_text_id
|
id: status_text_id
|
||||||
x: 65
|
x: 193
|
||||||
y: 112
|
y: 112
|
||||||
width: 894
|
width: 894
|
||||||
color: "#ff4444"
|
color: "#ff4444"
|
||||||
|
|
|
@ -77,7 +77,7 @@ Item {
|
||||||
BarButton {
|
BarButton {
|
||||||
id: charge_button
|
id: charge_button
|
||||||
x: 65
|
x: 65
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Charge"
|
text: "Charge"
|
||||||
fontSize: 0.768 * 60
|
fontSize: 0.768 * 60
|
||||||
|
@ -89,8 +89,8 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: cancel
|
id: cancel
|
||||||
x: 599
|
x: 855
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Cancel"
|
text: "Cancel"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
|
|
@ -58,7 +58,7 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: item_name_edit
|
id: item_name_edit
|
||||||
x: 534
|
x: 790
|
||||||
y: 0
|
y: 0
|
||||||
width: 240
|
width: 240
|
||||||
height: 60
|
height: 60
|
||||||
|
@ -113,7 +113,7 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: item_buyprice_edit
|
id: item_buyprice_edit
|
||||||
x: 534
|
x: 790
|
||||||
y: 0
|
y: 0
|
||||||
width: 240
|
width: 240
|
||||||
height: 60
|
height: 60
|
||||||
|
@ -168,7 +168,7 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: item_sellprice_edit
|
id: item_sellprice_edit
|
||||||
x: 534
|
x: 790
|
||||||
y: 0
|
y: 0
|
||||||
width: 240
|
width: 240
|
||||||
height: 60
|
height: 60
|
||||||
|
@ -223,7 +223,7 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: item_balance_restock
|
id: item_balance_restock
|
||||||
x: 534
|
x: 790
|
||||||
y: 0
|
y: 0
|
||||||
width: 240
|
width: 240
|
||||||
height: 60
|
height: 60
|
||||||
|
@ -304,7 +304,7 @@ Item {
|
||||||
BarButton {
|
BarButton {
|
||||||
id: save
|
id: save
|
||||||
x: 65
|
x: 65
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: dbid == "" ? "Create" : "Save"
|
text: dbid == "" ? "Create" : "Save"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
@ -342,8 +342,8 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: cancel
|
id: cancel
|
||||||
x: 599
|
x: 855
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Cancel"
|
text: "Cancel"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
|
|
@ -23,7 +23,7 @@ Item {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: text3
|
id: text3
|
||||||
x: 611
|
x: 867
|
||||||
y: 156
|
y: 156
|
||||||
height: 160
|
height: 160
|
||||||
width: 348
|
width: 348
|
||||||
|
@ -63,7 +63,7 @@ Item {
|
||||||
BarButton {
|
BarButton {
|
||||||
id: pay_cash
|
id: pay_cash
|
||||||
x: 65
|
x: 65
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Pay by cash"
|
text: "Pay by cash"
|
||||||
fontSize: 0.768 * 60
|
fontSize: 0.768 * 60
|
||||||
|
@ -76,8 +76,8 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: cancel
|
id: cancel
|
||||||
x: 599
|
x: 855
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Cancel"
|
text: "Cancel"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
|
|
@ -25,7 +25,7 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
x: 65
|
x: 65
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Charge"
|
text: "Charge"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
@ -35,8 +35,8 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: management
|
id: management
|
||||||
x: 599
|
x: 855
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Management"
|
text: "Management"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
|
|
@ -63,7 +63,7 @@ Item {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: credit_name
|
id: credit_name
|
||||||
x: 535
|
x: 791
|
||||||
y: 156
|
y: 156
|
||||||
width: 337
|
width: 337
|
||||||
height: 160
|
height: 160
|
||||||
|
@ -76,7 +76,7 @@ Item {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: credit_amount
|
id: credit_amount
|
||||||
x: 705
|
x: 961
|
||||||
y: 156
|
y: 156
|
||||||
height: 160
|
height: 160
|
||||||
width: 254
|
width: 254
|
||||||
|
@ -89,7 +89,7 @@ Item {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: inv_name
|
id: inv_name
|
||||||
x: 535
|
x: 791
|
||||||
y: 266
|
y: 266
|
||||||
width: 337
|
width: 337
|
||||||
height: 160
|
height: 160
|
||||||
|
@ -102,7 +102,7 @@ Item {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: inv_amount
|
id: inv_amount
|
||||||
x: 705
|
x: 961
|
||||||
y: 266
|
y: 266
|
||||||
height: 160
|
height: 160
|
||||||
width: 254
|
width: 254
|
||||||
|
@ -116,7 +116,7 @@ Item {
|
||||||
BarButton {
|
BarButton {
|
||||||
id: stock_manager
|
id: stock_manager
|
||||||
x: 65
|
x: 65
|
||||||
y: 430
|
y: 686
|
||||||
width: 360
|
width: 360
|
||||||
text: "Stock Mgmt"
|
text: "Stock Mgmt"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
@ -126,8 +126,8 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: user_manager
|
id: user_manager
|
||||||
x: 599
|
x: 855
|
||||||
y: 430
|
y: 686
|
||||||
width: 360
|
width: 360
|
||||||
text: "User Mgmt"
|
text: "User Mgmt"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
@ -138,7 +138,7 @@ Item {
|
||||||
BarButton {
|
BarButton {
|
||||||
id: select_item
|
id: select_item
|
||||||
x: 65
|
x: 65
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Receipt"
|
text: "Receipt"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
@ -148,8 +148,8 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: cancel
|
id: cancel
|
||||||
x: 599
|
x: 855
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Main Screen"
|
text: "Main Screen"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
|
|
@ -47,7 +47,7 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: description_edit
|
id: description_edit
|
||||||
x: 591
|
x: 847
|
||||||
y: 0
|
y: 0
|
||||||
width: 300
|
width: 300
|
||||||
height: 60
|
height: 60
|
||||||
|
@ -102,7 +102,7 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: amount_edit
|
id: amount_edit
|
||||||
x: 650
|
x: 906
|
||||||
y: 0
|
y: 0
|
||||||
width: 240
|
width: 240
|
||||||
height: 60
|
height: 60
|
||||||
|
@ -148,7 +148,7 @@ Item {
|
||||||
BarButton {
|
BarButton {
|
||||||
id: save
|
id: save
|
||||||
x: 65
|
x: 65
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Create"
|
text: "Create"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
@ -169,8 +169,8 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: cancel
|
id: cancel
|
||||||
x: 599
|
x: 855
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Cancel"
|
text: "Cancel"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
|
|
@ -29,8 +29,8 @@ Item {
|
||||||
id: item_list_container
|
id: item_list_container
|
||||||
x: 65
|
x: 65
|
||||||
y: 166
|
y: 166
|
||||||
width: 899
|
width: 1155
|
||||||
height: 400
|
height: 656
|
||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
id: item_list
|
id: item_list
|
||||||
|
@ -49,7 +49,7 @@ Item {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
x: 300
|
x: 556
|
||||||
width: 254
|
width: 254
|
||||||
color: "#ffff7c"
|
color: "#ffff7c"
|
||||||
text: modelData.price
|
text: modelData.price
|
||||||
|
@ -59,7 +59,7 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
x: 600
|
x: 856
|
||||||
width: 240
|
width: 240
|
||||||
height: 68
|
height: 68
|
||||||
text: "Edit"
|
text: "Edit"
|
||||||
|
@ -83,7 +83,7 @@ Item {
|
||||||
BarButton {
|
BarButton {
|
||||||
id: new_item
|
id: new_item
|
||||||
x: 65
|
x: 65
|
||||||
y: 582
|
y: 838
|
||||||
width: 281
|
width: 281
|
||||||
height: 83
|
height: 83
|
||||||
text: "New Item"
|
text: "New Item"
|
||||||
|
@ -96,8 +96,8 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: cancel
|
id: cancel
|
||||||
x: 599
|
x: 855
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Main Screen"
|
text: "Main Screen"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
@ -111,7 +111,7 @@ Item {
|
||||||
BarButton {
|
BarButton {
|
||||||
id: search_button
|
id: search_button
|
||||||
x: 353
|
x: 353
|
||||||
y: 582
|
y: 838
|
||||||
text: "Search"
|
text: "Search"
|
||||||
visible: page.state == "normal"
|
visible: page.state == "normal"
|
||||||
onButtonClick: { page.state = "search" }
|
onButtonClick: { page.state = "search" }
|
||||||
|
@ -119,8 +119,8 @@ Item {
|
||||||
|
|
||||||
BarKeyPad {
|
BarKeyPad {
|
||||||
id: search_pad
|
id: search_pad
|
||||||
x: 65
|
x: 193
|
||||||
y: 298
|
y: 554
|
||||||
opacity: 0
|
opacity: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ Item {
|
||||||
BarButton {
|
BarButton {
|
||||||
id: query_button
|
id: query_button
|
||||||
x: 353
|
x: 353
|
||||||
y: 582
|
y: 838
|
||||||
text: "Search"
|
text: "Search"
|
||||||
visible: page.state == "search"
|
visible: page.state == "search"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
@ -158,14 +158,14 @@ Item {
|
||||||
target: item_list_container
|
target: item_list_container
|
||||||
x: 66
|
x: 66
|
||||||
y: 166
|
y: 166
|
||||||
width: 899
|
width: 1155
|
||||||
height: 132
|
height: 348
|
||||||
}
|
}
|
||||||
|
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: search_pad
|
target: search_pad
|
||||||
x: 65
|
x: 83
|
||||||
y: 298
|
y: 514
|
||||||
opacity: 1
|
opacity: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ Item {
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: search_text
|
target: search_text
|
||||||
x: 65
|
x: 65
|
||||||
y: 582
|
y: 838
|
||||||
width: 528
|
width: 528
|
||||||
height: 83
|
height: 83
|
||||||
opacity: 1
|
opacity: 1
|
||||||
|
|
|
@ -54,7 +54,7 @@ Item {
|
||||||
BarButton {
|
BarButton {
|
||||||
id: charge_credit
|
id: charge_credit
|
||||||
x: 65
|
x: 65
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Charge"
|
text: "Charge"
|
||||||
fontSize: 0.768 * 60
|
fontSize: 0.768 * 60
|
||||||
|
@ -65,8 +65,8 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: cancel
|
id: cancel
|
||||||
x: 599
|
x: 855
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Main Screen"
|
text: "Main Screen"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
|
|
@ -28,8 +28,8 @@ Item {
|
||||||
id: user_list_container
|
id: user_list_container
|
||||||
x: 65
|
x: 65
|
||||||
y: 166
|
y: 166
|
||||||
width: 899
|
width: 1155
|
||||||
height: 400
|
height: 656
|
||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
id: user_list
|
id: user_list
|
||||||
|
@ -48,7 +48,7 @@ Item {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
x: 300
|
x: 556
|
||||||
width: 254
|
width: 254
|
||||||
color: "#ffff7c"
|
color: "#ffff7c"
|
||||||
text: modelData.negbalance_str
|
text: modelData.negbalance_str
|
||||||
|
@ -58,7 +58,7 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
x: 600
|
x: 856
|
||||||
width: 240
|
width: 240
|
||||||
height: 68
|
height: 68
|
||||||
text: "Withdraw"
|
text: "Withdraw"
|
||||||
|
@ -82,7 +82,7 @@ Item {
|
||||||
BarButton {
|
BarButton {
|
||||||
id: add_user
|
id: add_user
|
||||||
x: 65
|
x: 65
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Add User"
|
text: "Add User"
|
||||||
fontSize: 0.768 * 60
|
fontSize: 0.768 * 60
|
||||||
|
@ -91,8 +91,8 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: cancel
|
id: cancel
|
||||||
x: 599
|
x: 855
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Main Screen"
|
text: "Main Screen"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
|
|
@ -37,7 +37,7 @@ Item {
|
||||||
|
|
||||||
BarTextHint {
|
BarTextHint {
|
||||||
x: 65
|
x: 65
|
||||||
y: 430
|
y: 686
|
||||||
hint_goal: (parent.username ? "" : parent.amount ? "Withdraw:" : "Withdraw amount?")
|
hint_goal: (parent.username ? "" : parent.amount ? "Withdraw:" : "Withdraw amount?")
|
||||||
hint_action: (parent.username ? (parent.amount ? "" : "(or scan barcode now)") : "Scan barcode now")
|
hint_action: (parent.username ? (parent.amount ? "" : "(or scan barcode now)") : "Scan barcode now")
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ Item {
|
||||||
BarButton {
|
BarButton {
|
||||||
id: withdraw_button
|
id: withdraw_button
|
||||||
x: 65
|
x: 65
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Withdraw"
|
text: "Withdraw"
|
||||||
fontSize: 0.768 * 60
|
fontSize: 0.768 * 60
|
||||||
|
@ -89,8 +89,8 @@ Item {
|
||||||
|
|
||||||
BarButton {
|
BarButton {
|
||||||
id: cancel
|
id: cancel
|
||||||
x: 599
|
x: 855
|
||||||
y: 582
|
y: 838
|
||||||
width: 360
|
width: 360
|
||||||
text: "Cancel"
|
text: "Cancel"
|
||||||
onButtonClick: {
|
onButtonClick: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue