forked from brmlab/brmbar-github
Brmbar v3: Support for simple GUI
All the CLI functionality implemented in the GUI.
This commit is contained in:
parent
049271118d
commit
e428d28e20
15 changed files with 973 additions and 2 deletions
63
brmbar3/brmbar-gui-qt4/MainPage.qml
Normal file
63
brmbar3/brmbar-gui-qt4/MainPage.qml
Normal file
|
@ -0,0 +1,63 @@
|
|||
// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
|
||||
import QtQuick 1.1
|
||||
import QtQuick 1.0
|
||||
|
||||
Item {
|
||||
id: page
|
||||
anchors.fill: parent
|
||||
|
||||
BarTextHint {
|
||||
x: 65
|
||||
y: 234
|
||||
hint_goal: "Buy item:"
|
||||
hint_action: "Scan barcode now"
|
||||
}
|
||||
|
||||
BarcodeInput {
|
||||
onAccepted: {
|
||||
var acct = shop.barcodeInput(text)
|
||||
text = ""
|
||||
if (typeof(acct) == "undefined") {
|
||||
status_text.setStatus("Unknown barcode", "#ff4444")
|
||||
return
|
||||
}
|
||||
loadPageByAcct(acct)
|
||||
}
|
||||
}
|
||||
|
||||
BarButton {
|
||||
id: select_item
|
||||
x: 65
|
||||
y: 430
|
||||
width: 360
|
||||
text: "Select Item"
|
||||
fontSize: 44
|
||||
}
|
||||
|
||||
BarButton {
|
||||
id: select_credit_user
|
||||
x: 599
|
||||
y: 430
|
||||
width: 360
|
||||
text: "Credit"
|
||||
onButtonClick: {
|
||||
loadPage("ChargeCredit")
|
||||
}
|
||||
}
|
||||
|
||||
BarButton {
|
||||
id: stock_manager
|
||||
x: 65
|
||||
y: 582
|
||||
width: 360
|
||||
text: "Stock Mgmt"
|
||||
}
|
||||
|
||||
BarButton {
|
||||
id: user_manager
|
||||
x: 599
|
||||
y: 582
|
||||
width: 360
|
||||
text: "User Mgmt"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue