2020-05-06 17:40:00 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import QtQuick.Controls 1.3
|
|
|
|
import QtQuick.Controls 2.3
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
|
|
|
|
ApplicationWindow {
|
2020-05-07 19:39:27 +00:00
|
|
|
id: applicationWindow
|
2020-05-07 17:54:38 +00:00
|
|
|
width: 1024
|
|
|
|
height: 768
|
2020-05-06 17:40:00 +00:00
|
|
|
title: "JSON RPC Caller"
|
|
|
|
visible: true
|
|
|
|
|
2020-05-07 19:39:27 +00:00
|
|
|
RowLayout {
|
|
|
|
id: rowLayout
|
|
|
|
width: parent.width
|
|
|
|
height: parent.height
|
2020-05-06 17:40:00 +00:00
|
|
|
anchors.fill: parent
|
2020-05-07 19:46:10 +00:00
|
|
|
// spacing: 50
|
2020-05-06 17:40:00 +00:00
|
|
|
|
2020-05-07 19:39:27 +00:00
|
|
|
TabBar {
|
|
|
|
id: tabBar
|
|
|
|
width: 50
|
|
|
|
height: width *2 + spacing
|
2020-05-08 16:08:59 +00:00
|
|
|
topPadding: 57
|
|
|
|
rightPadding: 19
|
|
|
|
leftPadding: 19
|
2020-05-07 19:39:27 +00:00
|
|
|
transformOrigin: Item.Top
|
|
|
|
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
|
|
|
Layout.fillHeight: true
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 5
|
|
|
|
spacing: 5
|
|
|
|
Layout.fillWidth: true
|
2020-05-08 16:08:59 +00:00
|
|
|
Layout.minimumWidth: 85
|
|
|
|
Layout.preferredWidth: 85
|
|
|
|
Layout.maximumWidth: 85
|
2020-05-07 19:39:27 +00:00
|
|
|
Layout.minimumHeight: 0
|
|
|
|
|
|
|
|
TabButton {
|
|
|
|
id: firstBtn
|
|
|
|
width: 50
|
|
|
|
height: 50
|
|
|
|
text: ""
|
|
|
|
transformOrigin: Item.Center
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
|
|
|
Image {
|
|
|
|
id: image
|
|
|
|
anchors.fill: parent
|
|
|
|
fillMode: Image.PreserveAspectFit
|
2020-05-08 16:08:59 +00:00
|
|
|
source: "img/message.png"
|
2020-05-07 19:39:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
TabButton {
|
|
|
|
id: secondBtn
|
|
|
|
width: 50
|
|
|
|
height: 50
|
|
|
|
text: ""
|
2020-05-08 16:08:59 +00:00
|
|
|
anchors.topMargin: 80
|
2020-05-07 19:39:27 +00:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2020-05-08 16:08:59 +00:00
|
|
|
anchors.top: firstBtn.top
|
2020-05-07 19:39:27 +00:00
|
|
|
|
|
|
|
Image {
|
|
|
|
id: image1
|
|
|
|
anchors.fill: parent
|
|
|
|
fillMode: Image.PreserveAspectFit
|
2020-05-08 16:08:59 +00:00
|
|
|
source: "img/wallet.png"
|
2020-05-07 19:39:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
TabButton {
|
|
|
|
id: thirdBtn
|
|
|
|
width: 50
|
|
|
|
height: 50
|
|
|
|
text: ""
|
2020-05-08 16:08:59 +00:00
|
|
|
anchors.topMargin: 80
|
2020-05-07 19:39:27 +00:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2020-05-08 16:08:59 +00:00
|
|
|
anchors.top: secondBtn.top
|
2020-05-07 19:39:27 +00:00
|
|
|
|
|
|
|
Image {
|
|
|
|
id: image2
|
|
|
|
anchors.fill: parent
|
|
|
|
fillMode: Image.PreserveAspectFit
|
2020-05-08 16:08:59 +00:00
|
|
|
source: "img/profile.png"
|
2020-05-07 19:39:27 +00:00
|
|
|
}
|
|
|
|
}
|
2020-05-06 17:40:00 +00:00
|
|
|
}
|
|
|
|
|
2020-05-07 19:46:10 +00:00
|
|
|
StackLayout {
|
|
|
|
width: parent.width
|
|
|
|
currentIndex: tabBar.currentIndex
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
x: 9
|
|
|
|
y: 0
|
|
|
|
Layout.fillHeight: true
|
|
|
|
// anchors.fill: parent
|
|
|
|
// width: parent.width
|
|
|
|
Layout.leftMargin: 0
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.minimumWidth: 100
|
|
|
|
Layout.preferredWidth: 200
|
|
|
|
// Layout.preferredHeight: 100
|
|
|
|
|
|
|
|
Item {
|
|
|
|
width: 300
|
|
|
|
height: parent.height
|
|
|
|
Layout.minimumWidth: 200
|
|
|
|
|
|
|
|
Button {
|
|
|
|
id: button
|
|
|
|
text: qsTr("TEST BUTTON")
|
|
|
|
}
|
2020-05-07 17:54:38 +00:00
|
|
|
}
|
2020-05-07 19:39:27 +00:00
|
|
|
|
2020-05-07 19:46:10 +00:00
|
|
|
Item {
|
|
|
|
width: parent.width/2
|
|
|
|
height: parent.height
|
2020-05-07 19:39:27 +00:00
|
|
|
|
2020-05-07 19:46:10 +00:00
|
|
|
ColumnLayout {
|
|
|
|
anchors.fill: parent
|
2020-05-07 17:54:38 +00:00
|
|
|
|
2020-05-07 19:46:10 +00:00
|
|
|
RowLayout {
|
|
|
|
Layout.fillHeight: true
|
|
|
|
TextArea { id: callResult; Layout.fillWidth: true; text: logic.callResult; readOnly: true }
|
|
|
|
}
|
2020-05-07 19:39:27 +00:00
|
|
|
|
2020-05-07 19:46:10 +00:00
|
|
|
RowLayout {
|
|
|
|
Layout.bottomMargin: 20
|
|
|
|
Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
|
|
|
|
transformOrigin: Item.Bottom
|
|
|
|
Label { text: "data2" }
|
|
|
|
TextField { id: txtData; Layout.fillWidth: true; text: "" }
|
|
|
|
Button {
|
|
|
|
text: "Send"
|
|
|
|
onClicked: logic.onSend(txtData.text)
|
|
|
|
enabled: txtData.text !== ""
|
|
|
|
}
|
2020-05-07 19:39:27 +00:00
|
|
|
}
|
2020-05-07 17:54:38 +00:00
|
|
|
}
|
2020-05-07 19:46:10 +00:00
|
|
|
|
2020-05-07 17:54:38 +00:00
|
|
|
}
|
2020-05-07 19:39:27 +00:00
|
|
|
|
2020-05-06 17:40:00 +00:00
|
|
|
}
|
2020-05-07 17:54:38 +00:00
|
|
|
|
2020-05-07 19:46:10 +00:00
|
|
|
Item {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
|
|
|
|
}
|
2020-05-06 17:40:00 +00:00
|
|
|
}
|
|
|
|
}
|
2020-05-07 17:54:38 +00:00
|
|
|
|
2020-05-07 19:39:27 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:4;anchors_height:40;anchors_width:40}D{i:6;anchors_height:40;anchors_width:40}
|
2020-05-06 17:40:00 +00:00
|
|
|
}
|
2020-05-07 19:39:27 +00:00
|
|
|
##^##*/
|