From 74fecec1cd0a267d6011f60a5e3c845a1ab48ca3 Mon Sep 17 00:00:00 2001 From: "littletux89@gmail.com" <littletux89@gmail.com> Date: Tue, 10 Dec 2019 18:49:57 +0300 Subject: [PATCH] [*] Edits made. --- CellFrameDashboardGUI/qml.qrc | 1 - ...DapUiQmlScreenExchangeForm.ui.qml.autosave | 155 ++++++++++++++++++ .../DapUiQmlWidgetChainExchanges.ui.qml | 15 -- .../DapUiQmlScreenDialogAddWalletForm.ui.qml | 26 --- .../StatusBar/DapUiQmlWidgetStatusBar.qml | 2 - 5 files changed, 155 insertions(+), 44 deletions(-) create mode 100644 CellFrameDashboardGUI/screen/Exchange/DapUiQmlScreenExchangeForm.ui.qml.autosave delete mode 100644 CellFrameDashboardGUI/screen/Exchange/DapUiQmlWidgetChainExchanges.ui.qml diff --git a/CellFrameDashboardGUI/qml.qrc b/CellFrameDashboardGUI/qml.qrc index 2cfbf67d7..bd9d2495a 100755 --- a/CellFrameDashboardGUI/qml.qrc +++ b/CellFrameDashboardGUI/qml.qrc @@ -50,7 +50,6 @@ <file>screen/Console/DapUiQmlWidgetConsoleLastActionsForm.qml</file> <file>screen/Dashboard/DapUiQmlScreenDashboard.qml</file> <file>screen/Exchange/DapUiQmlScreenExchangeForm.ui.qml</file> - <file>screen/Exchange/DapUiQmlWidgetChainExchanges.ui.qml</file> <file>screen/Exchange/DapUiQmlWidgetExchangeOrderButtonForm.ui.qml</file> <file>screen/Exchange/DapUiQmlWidgetExchangeOrderContentForm.ui.qml</file> <file>screen/Exchange/DapUiQmlWidgetExchangeOrderForm.ui.qml</file> diff --git a/CellFrameDashboardGUI/screen/Exchange/DapUiQmlScreenExchangeForm.ui.qml.autosave b/CellFrameDashboardGUI/screen/Exchange/DapUiQmlScreenExchangeForm.ui.qml.autosave new file mode 100644 index 000000000..1b03507b2 --- /dev/null +++ b/CellFrameDashboardGUI/screen/Exchange/DapUiQmlScreenExchangeForm.ui.qml.autosave @@ -0,0 +1,155 @@ +import QtQuick 2.12 +import QtQml 2.12 +import QtQuick.Controls 2.12 +import QtQuick.Layouts 1.12 +import "../../../libdap-qt-ui-qml" +Page { + ///Top panel in tab Exchange + Rectangle{ + id:topPanelExchange + anchors.left: parent.left + anchors.right: parent.right + anchors.top: parent.top + anchors.leftMargin: 24*pt + anchors.topMargin: 12*pt + anchors.rightMargin: 24*pt + height:42 * pt + + ///Token ComboBox + Rectangle{ + id:leftComboBox + anchors.top: topPanelExchange.top + anchors.left: topPanelExchange.left + width:112 * pt + height:parent.height + + DapComboBox{ + model: ListModel{ + id:conversionList + ListElement{text:"TKN1/NGD"} + ListElement{text:"TKN2/NGD"} + ListElement{text:"NGD/KLVN"} + ListElement{text:"KLVN/USD"} + } + fontSizeComboBox: 16*pt + widthPopupComboBoxActive: 144 *pt + widthPopupComboBoxNormal: 112 *pt + sidePaddingActive: 16*pt + sidePaddingNormal: 0 + x:popup.visible ? sidePaddingActive * (-1) : sidePaddingNormal + } + + } + + ///Time ComboBox + Rectangle{ + id:rightComboBox + anchors.left: leftComboBox.right + anchors.leftMargin: 72*pt + anchors.top: topPanelExchange.top + width:100 * pt + height:parent.height + DapComboBox{ + model: ListModel{ + ListElement{text:"1 minute"} + ListElement{text:"5 minute"} + ListElement{text:"15 minute"} + ListElement{text:"30 minute"} + ListElement{text:"1 hour"} + ListElement{text:"4 hour"} + ListElement{text:"12 hour"} + ListElement{text:"24 hour"} + } + fontSizeComboBox: 14*pt + widthPopupComboBoxActive: 132 *pt + widthPopupComboBoxNormal: 100 *pt + sidePaddingActive: 16*pt + sidePaddingNormal: 0 + x:popup.visible ? sidePaddingActive * (-1) : sidePaddingNormal + } + } + + ///Value Last price + Rectangle{ + id: lastPrice + height: parent.height + width: 150*pt + anchors.right: volume24.left + anchors.rightMargin: 30 * pt + + Text{ + anchors.left: lastPrice.left + anchors.bottom: value_lastPrice.top + anchors.bottomMargin: 6 * pt + color: "#757184" + font.pixelSize: 10 * pt + font.family: fontRobotoRegular.name + text: qsTr("Last price") + + } + Text { + id: value_lastPrice + anchors.left: lastPrice.left + anchors.bottom: lastPrice.bottom + color: "#070023" + font.pixelSize: 12 * pt + font.family: fontRobotoRegular.name + text: qsTr("$ 10 807.35 NGD") + } + Text { + anchors.left: value_lastPrice.right + anchors.bottom: lastPrice.bottom + anchors.leftMargin: 6 * pt + color: "#6F9F00" + font.pixelSize: 10 * pt + font.family: fontRobotoRegular.name + text: qsTr("+3.59%") + } + } + ///Value 24h volume + Rectangle{ + id: volume24 + + height: parent.height + width: 75*pt + anchors.right: topPanelExchange.right + + Text{ + anchors.right: volume24.right + anchors.bottom: value_valume24.top + anchors.bottomMargin: 6 * pt + color: "#757184" + font.pixelSize: 10 * pt + font.family: fontRobotoRegular.name + text: qsTr("24h volume") + + } + Text { + id: value_valume24 + anchors.right: volume24.right + anchors.bottom: volume24.bottom + color: "#070023" + font.pixelSize: 12 * pt + font.family: fontRobotoRegular.name + text: qsTr("9 800 TKN1") + } +} + } + ///Left down panel + Row { + anchors.left: parent.left + anchors.bottom: parent.bottom + anchors.leftMargin: 28 * pt + anchors.bottomMargin: 42 * pt + spacing: 68 * pt + + DapUiQmlWidgetExchangeOrderForm { + titleOrder: qsTr("Buy") + + } + + DapUiQmlWidgetExchangeOrderForm { + titleOrder: qsTr("Sell") + } + } +} diff --git a/CellFrameDashboardGUI/screen/Exchange/DapUiQmlWidgetChainExchanges.ui.qml b/CellFrameDashboardGUI/screen/Exchange/DapUiQmlWidgetChainExchanges.ui.qml deleted file mode 100644 index e7ef9be0f..000000000 --- a/CellFrameDashboardGUI/screen/Exchange/DapUiQmlWidgetChainExchanges.ui.qml +++ /dev/null @@ -1,15 +0,0 @@ -import QtQuick 2.9 -import QtQuick.Controls 2.2 - -///this file used in DapUiQmlWidgetModel.cpp -Page { - id: dapUiQmlWidgetChainExchanges - - title: qsTr("Exchanges") - - Text { - id: name - anchors.centerIn: parent - text: qsTr("Exchanges") - } -} diff --git a/CellFrameDashboardGUI/screen/LastAction/DapUiQmlScreenDialogAddWalletForm.ui.qml b/CellFrameDashboardGUI/screen/LastAction/DapUiQmlScreenDialogAddWalletForm.ui.qml index ff8cf9ce1..c1d08f8b6 100644 --- a/CellFrameDashboardGUI/screen/LastAction/DapUiQmlScreenDialogAddWalletForm.ui.qml +++ b/CellFrameDashboardGUI/screen/LastAction/DapUiQmlScreenDialogAddWalletForm.ui.qml @@ -108,26 +108,6 @@ DapUiQmlScreen { DapComboBox{ property Label fieldBalance: Label {} - ///Ðтот код был в DapUiQmlWidgetStatusBarComboBoxToken.qml на первый - /// взглÑд не Ñильно ÑÑно что он делает и разбиратьÑÑ Ñ‚Ð¾Ð¶Ðµ не Ñтал к тикету не отноÑилÑÑ - - // model: ListModel {id: tokenList} - // textRole: "tokenName" - - // delegate: DapComboBoxDelegate { - // delegateContentText: tokenName - // } - - // onCurrentIndexChanged: { - // if(currentIndex === -1) - // fieldBalance.text = 0; - // else - // { - // var money = dapChainWalletsModel.get(comboboxWallet.currentIndex).tokens[currentIndex * 3]; - // fieldBalance.text = dapChainConvertor.toConvertCurrency(money); - // } - // } - model: ListModel { id: signatureType ListElement { @@ -291,9 +271,3 @@ DapUiQmlScreen { } } } - -/*##^## -Designer { - D{i:0;autoSize:true;height:480;width:640} -} -##^##*/ diff --git a/CellFrameDashboardGUI/screen/StatusBar/DapUiQmlWidgetStatusBar.qml b/CellFrameDashboardGUI/screen/StatusBar/DapUiQmlWidgetStatusBar.qml index d6cca8cce..e2c388c40 100644 --- a/CellFrameDashboardGUI/screen/StatusBar/DapUiQmlWidgetStatusBar.qml +++ b/CellFrameDashboardGUI/screen/StatusBar/DapUiQmlWidgetStatusBar.qml @@ -38,8 +38,6 @@ Rectangle { property Label fieldBalance: Label {} model: dapWalletModel.wallets - ///Ðта Ñтрока была ранее возможно на что то влиÑла но ÑÐµÐ¹Ñ‡Ð°Ñ Ñ„Ð°Ð¹Ð»Ñ‹ объеденилиÑÑŒ возможно не нужна. - // fieldBalance: fieldWalletBalance indicator: Image { id: arrow -- GitLab