|
|
@ -44,59 +44,104 @@ Rectangle { |
|
|
|
gui.setCustomIdentifier(text) |
|
|
|
gui.setCustomIdentifier(text) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
property var addressModel: ListModel { |
|
|
|
TextArea { |
|
|
|
id: addressModel |
|
|
|
objectName: "statsPane" |
|
|
|
|
|
|
|
width: parent.width |
|
|
|
|
|
|
|
height: 200 |
|
|
|
|
|
|
|
selectByMouse: true |
|
|
|
|
|
|
|
readOnly: true |
|
|
|
|
|
|
|
font.family: "Courier" |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
TableView { |
|
|
|
|
|
|
|
id: addressView |
|
|
|
RowLayout { |
|
|
|
|
|
|
|
id: logLayout |
|
|
|
width: parent.width |
|
|
|
width: parent.width |
|
|
|
height: 200 |
|
|
|
height: 200 |
|
|
|
anchors.bottom: logLayout.top |
|
|
|
anchors.bottom: parent.bottom |
|
|
|
TableViewColumn{ role: "name"; title: "name" } |
|
|
|
|
|
|
|
TableViewColumn{ role: "address"; title: "address"; width: 300} |
|
|
|
TableView { |
|
|
|
|
|
|
|
id: addressView |
|
|
|
model: addressModel |
|
|
|
width: parent.width |
|
|
|
itemDelegate: Item { |
|
|
|
height: 200 |
|
|
|
Text { |
|
|
|
anchors { |
|
|
|
anchors { |
|
|
|
left: parent.left |
|
|
|
left: parent.left |
|
|
|
right: logLevelSlider.left |
|
|
|
right: parent.right |
|
|
|
bottom: parent.bottom |
|
|
|
leftMargin: 10 |
|
|
|
top: parent.top |
|
|
|
verticalCenter: parent.verticalCenter |
|
|
|
} |
|
|
|
} |
|
|
|
TableViewColumn{ role: "name"; title: "name" } |
|
|
|
color: styleData.textColor |
|
|
|
TableViewColumn{ role: "address"; title: "address"; width: 300} |
|
|
|
elide: styleData.elideMode |
|
|
|
|
|
|
|
text: styleData.value |
|
|
|
property var addressModel: ListModel { |
|
|
|
font.pixelSize: 11 |
|
|
|
id: addressModel |
|
|
|
MouseArea { |
|
|
|
} |
|
|
|
acceptedButtons: Qt.LeftButton | Qt.RightButton |
|
|
|
|
|
|
|
propagateComposedEvents: true |
|
|
|
model: addressModel |
|
|
|
anchors.fill: parent |
|
|
|
itemDelegate: Item { |
|
|
|
onClicked: { |
|
|
|
Text { |
|
|
|
addressView.selection.clear() |
|
|
|
anchors { |
|
|
|
addressView.selection.select(styleData.row) |
|
|
|
left: parent.left |
|
|
|
|
|
|
|
right: parent.right |
|
|
|
if(mouse.button == Qt.RightButton) { |
|
|
|
leftMargin: 10 |
|
|
|
contextMenu.row = styleData.row; |
|
|
|
verticalCenter: parent.verticalCenter |
|
|
|
contextMenu.popup() |
|
|
|
} |
|
|
|
|
|
|
|
color: styleData.textColor |
|
|
|
|
|
|
|
elide: styleData.elideMode |
|
|
|
|
|
|
|
text: styleData.value |
|
|
|
|
|
|
|
font.pixelSize: 11 |
|
|
|
|
|
|
|
MouseArea { |
|
|
|
|
|
|
|
acceptedButtons: Qt.LeftButton | Qt.RightButton |
|
|
|
|
|
|
|
propagateComposedEvents: true |
|
|
|
|
|
|
|
anchors.fill: parent |
|
|
|
|
|
|
|
onClicked: { |
|
|
|
|
|
|
|
addressView.selection.clear() |
|
|
|
|
|
|
|
addressView.selection.select(styleData.row) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(mouse.button == Qt.RightButton) { |
|
|
|
|
|
|
|
contextMenu.row = styleData.row; |
|
|
|
|
|
|
|
contextMenu.popup() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Menu { |
|
|
|
|
|
|
|
id: contextMenu |
|
|
|
|
|
|
|
property var row; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MenuItem { |
|
|
|
|
|
|
|
text: "Copy" |
|
|
|
|
|
|
|
onTriggered: { |
|
|
|
|
|
|
|
copyToClipboard(addressModel.get(this.row).address) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Menu { |
|
|
|
Slider { |
|
|
|
id: contextMenu |
|
|
|
id: logLevelSlider |
|
|
|
property var row; |
|
|
|
value: gui.getLogLevelInt() |
|
|
|
|
|
|
|
anchors { |
|
|
|
|
|
|
|
right: parent.right |
|
|
|
|
|
|
|
top: parent.top |
|
|
|
|
|
|
|
bottom: parent.bottom |
|
|
|
|
|
|
|
|
|
|
|
MenuItem { |
|
|
|
rightMargin: 5 |
|
|
|
text: "Copy" |
|
|
|
leftMargin: 5 |
|
|
|
onTriggered: { |
|
|
|
topMargin: 5 |
|
|
|
copyToClipboard(addressModel.get(this.row).address) |
|
|
|
bottomMargin: 5 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
orientation: Qt.Vertical |
|
|
|
|
|
|
|
maximumValue: 5 |
|
|
|
|
|
|
|
stepSize: 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onValueChanged: { |
|
|
|
|
|
|
|
gui.setLogLevel(value) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -104,6 +149,8 @@ Rectangle { |
|
|
|
property var logModel: ListModel { |
|
|
|
property var logModel: ListModel { |
|
|
|
id: logModel |
|
|
|
id: logModel |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
RowLayout { |
|
|
|
RowLayout { |
|
|
|
id: logLayout |
|
|
|
id: logLayout |
|
|
|
width: parent.width |
|
|
|
width: parent.width |
|
|
@ -147,6 +194,7 @@ Rectangle { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
function addDebugMessage(message){ |
|
|
|
function addDebugMessage(message){ |
|
|
|
debuggerLog.append({value: message}) |
|
|
|
debuggerLog.append({value: message}) |
|
|
|