From 3a89082d31cdf5dcbaf88332b43dc76dbeeb6f64 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 23 Sep 2012 23:43:57 +0200 Subject: [PATCH] brmbar v3: Add Management view --- brmbar3/TODO | 8 +++--- brmbar3/brmbar-gui-qt4/MainPage.qml | 16 ++++++------ brmbar3/brmbar-gui-qt4/Management.qml | 35 +++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 11 deletions(-) create mode 100644 brmbar3/brmbar-gui-qt4/Management.qml diff --git a/brmbar3/TODO b/brmbar3/TODO index fe1f097..7cd56f3 100644 --- a/brmbar3/TODO +++ b/brmbar3/TODO @@ -1,10 +1,10 @@ +/ Management view + + Stock management link + + User management link + - Bilance overview (Cash, Profit, Credit total) - Withdrawal of user credit 1. choose user 2. choose amount -- Management view - - Bilance overview (Cash, Profit, Credit total) - - Stock management link - - User management link - Item picker from list (only items with non-zero quantities) - Numerical manual entry support - Use for credit charge diff --git a/brmbar3/brmbar-gui-qt4/MainPage.qml b/brmbar3/brmbar-gui-qt4/MainPage.qml index b93576d..34d6e88 100644 --- a/brmbar3/brmbar-gui-qt4/MainPage.qml +++ b/brmbar3/brmbar-gui-qt4/MainPage.qml @@ -26,16 +26,15 @@ Item { } BarButton { - id: select_item + id: withdraw x: 65 y: 430 width: 360 - text: "Select Item" + text: "Withdrawal" fontSize: 44 } BarButton { - id: select_credit_user x: 599 y: 430 width: 360 @@ -46,18 +45,21 @@ Item { } BarButton { - id: stock_manager + id: select_item x: 65 y: 582 width: 360 - text: "Stock Mgmt" + text: "Select Item" } BarButton { - id: user_manager + id: management x: 599 y: 582 width: 360 - text: "User Mgmt" + text: "Management" + onButtonClick: { + loadPage("Management") + } } } diff --git a/brmbar3/brmbar-gui-qt4/Management.qml b/brmbar3/brmbar-gui-qt4/Management.qml new file mode 100644 index 0000000..e3b6f6c --- /dev/null +++ b/brmbar3/brmbar-gui-qt4/Management.qml @@ -0,0 +1,35 @@ +// 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 + + BarButton { + id: stock_manager + x: 65 + y: 430 + width: 360 + text: "Stock Mgmt" + } + + BarButton { + id: user_manager + x: 599 + y: 430 + width: 360 + text: "User Mgmt" + } + + BarButton { + id: cancel + x: 599 + y: 582 + width: 360 + text: "Cancel" + onButtonClick: { + loadPage("MainPage") + } + } +}