2023-06-06 15:32:53 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
|
|
|
|
import Storybook 1.0
|
2023-07-20 10:38:49 +00:00
|
|
|
import Models 1.0
|
2023-06-06 15:32:53 +00:00
|
|
|
|
2023-06-23 06:17:04 +00:00
|
|
|
import AppLayouts.Communities.popups 1.0
|
2023-06-06 15:32:53 +00:00
|
|
|
|
|
|
|
SplitView {
|
|
|
|
Logs { id: logs }
|
|
|
|
|
2023-07-20 10:38:49 +00:00
|
|
|
FeesModel {
|
|
|
|
id: feesModel
|
|
|
|
}
|
|
|
|
|
2023-06-06 15:32:53 +00:00
|
|
|
SplitView {
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
|
|
|
|
Pane {
|
|
|
|
id: pane
|
|
|
|
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
2023-07-20 10:38:49 +00:00
|
|
|
padding: 0
|
2023-06-06 15:32:53 +00:00
|
|
|
|
|
|
|
PopupBackground {
|
|
|
|
anchors.fill: parent
|
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
anchors.centerIn: parent
|
|
|
|
text: "Reopen"
|
|
|
|
|
|
|
|
onClicked: dialog.open()
|
|
|
|
}
|
|
|
|
|
2023-09-21 16:49:57 +00:00
|
|
|
SignTransactionsPopup {
|
2023-06-06 15:32:53 +00:00
|
|
|
id: dialog
|
|
|
|
|
2023-07-20 10:38:49 +00:00
|
|
|
model: LimitProxyModel {
|
|
|
|
id: filteredModel
|
2023-06-06 15:32:53 +00:00
|
|
|
|
2023-07-20 10:38:49 +00:00
|
|
|
sourceModel: feesModel
|
|
|
|
limit: countSlider.value
|
2023-06-06 15:32:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
closePolicy: Popup.NoAutoClose
|
|
|
|
visible: true
|
|
|
|
modal: false
|
|
|
|
destroyOnClose: false
|
2023-07-20 10:38:49 +00:00
|
|
|
parent: pane
|
|
|
|
anchors.centerIn: parent
|
2023-06-06 15:32:53 +00:00
|
|
|
|
2023-07-20 10:38:49 +00:00
|
|
|
title: `Sign transaction`
|
2023-06-06 15:32:53 +00:00
|
|
|
|
2023-07-20 10:38:49 +00:00
|
|
|
accountName: accountTextField.text
|
2023-06-06 15:32:53 +00:00
|
|
|
errorText: errorTextField.text
|
2023-07-20 10:38:49 +00:00
|
|
|
totalFeeText: totalCheckBox.checked ? totalFeeTextField.text : ""
|
2023-06-06 15:32:53 +00:00
|
|
|
|
2023-09-21 16:49:57 +00:00
|
|
|
onSignTransactionClicked: logs.logEvent("SignTransactionsPopup::onSignTransactionClicked")
|
|
|
|
onCancelClicked: logs.logEvent("SignTransactionsPopup::onCancelClicked")
|
2023-06-06 15:32:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
LogsAndControlsPanel {
|
|
|
|
id: logsAndControlsPanel
|
|
|
|
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 150
|
|
|
|
|
|
|
|
logsView.logText: logs.logText
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Pane {
|
|
|
|
SplitView.minimumWidth: 300
|
|
|
|
SplitView.preferredWidth: 300
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
Label {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
text: "Error text"
|
|
|
|
}
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
id: errorTextField
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
text: ""
|
|
|
|
}
|
|
|
|
|
2023-07-20 10:38:49 +00:00
|
|
|
Label {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
wrapMode: Text.Wrap
|
|
|
|
text: "Account"
|
|
|
|
}
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
id: accountTextField
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
2023-06-06 15:32:53 +00:00
|
|
|
|
2023-07-20 10:38:49 +00:00
|
|
|
text: "My Account"
|
2023-06-06 15:32:53 +00:00
|
|
|
}
|
|
|
|
|
2023-07-20 10:38:49 +00:00
|
|
|
GroupBox {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
anchors.fill: parent
|
2023-06-06 15:32:53 +00:00
|
|
|
|
2023-07-20 10:38:49 +00:00
|
|
|
Label {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
text: "Number of items in the model"
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
Slider {
|
|
|
|
id: countSlider
|
|
|
|
|
|
|
|
from: 1
|
|
|
|
to: feesModel.count
|
|
|
|
value: to
|
|
|
|
stepSize: 1
|
|
|
|
snapMode: Slider.SnapAlways
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
text: countSlider.value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-06 15:32:53 +00:00
|
|
|
}
|
|
|
|
|
2023-07-20 10:38:49 +00:00
|
|
|
GroupBox {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
CheckBox {
|
|
|
|
id: totalCheckBox
|
|
|
|
|
|
|
|
checked: true
|
|
|
|
text: "Total fee"
|
|
|
|
}
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
id: totalFeeTextField
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
2023-06-06 15:32:53 +00:00
|
|
|
|
2023-07-20 10:38:49 +00:00
|
|
|
text: "0.01 ETH ($265.43)"
|
|
|
|
}
|
|
|
|
}
|
2023-06-06 15:32:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
Layout.fillHeight: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-31 12:21:14 +00:00
|
|
|
// category: Popups
|