|
@ -55,6 +55,15 @@ Rectangle { |
|
|
onCompilationComplete: update(null, false); |
|
|
onCompilationComplete: update(null, false); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Settings { |
|
|
|
|
|
id: splitSettings |
|
|
|
|
|
property alias transactionLogHeight: transactionLog.height |
|
|
|
|
|
property alias callStackHeight: callStack.height |
|
|
|
|
|
property alias storageHeightSettings: storageRect.height |
|
|
|
|
|
property alias memoryDumpHeightSettings: memoryRect.height |
|
|
|
|
|
property alias callDataHeightSettings: callDataRect.height |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
Rectangle |
|
|
Rectangle |
|
|
{ |
|
|
{ |
|
|
visible: false; |
|
|
visible: false; |
|
@ -105,38 +114,45 @@ Rectangle { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ScrollView { |
|
|
ScrollView { |
|
|
property int firstColumnWidth: 180 |
|
|
|
|
|
property int secondColumnWidth: 250 |
|
|
|
|
|
id: debugScrollArea |
|
|
id: debugScrollArea |
|
|
//flickableDirection: Flickable.VerticalFlick |
|
|
|
|
|
anchors.fill: parent |
|
|
anchors.fill: parent |
|
|
//contentHeight: 4000 |
|
|
|
|
|
//width: parent.width |
|
|
|
|
|
//contentWidth: parent.width |
|
|
|
|
|
//color: "transparent" |
|
|
|
|
|
|
|
|
|
|
|
ColumnLayout |
|
|
SplitView |
|
|
{ |
|
|
{ |
|
|
property int sideMargin: 10 |
|
|
property int sideMargin: 10 |
|
|
id: machineStates |
|
|
id: machineStates |
|
|
anchors.top: parent.top |
|
|
anchors.top: parent.top |
|
|
anchors.topMargin: 15 |
|
|
anchors.topMargin: 15 |
|
|
anchors.left: parent.left; |
|
|
anchors.left: parent.left; |
|
|
anchors.leftMargin: machineStates.sideMargin |
|
|
anchors.leftMargin: machineStates.sideMargin |
|
|
width: debugScrollArea.width - machineStates.sideMargin * 2 - 20; |
|
|
width: debugScrollArea.width - machineStates.sideMargin * 2 - 20; |
|
|
|
|
|
orientation: Qt.Vertical |
|
|
function updateHeight() { |
|
|
handleDelegate: Rectangle { |
|
|
machineStates.height = transactionLog.childrenRect.height + buttonRow.childrenRect.height + assemblyCodeRow.childrenRect.height + |
|
|
height: machineStates.sideMargin |
|
|
callStackRect.childrenRect.height + storageRect.childrenRect.height + memoryRect.childrenRect.height + callDataRect.childrenRect.height + 120; |
|
|
color: "transparent" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Component.onCompleted: updateHeight(); |
|
|
function updateHeight() { |
|
|
|
|
|
machineStates.height = transactionLog.childrenRect.height + buttonRow.childrenRect.height + assemblyCodeRow.childrenRect.height + |
|
|
|
|
|
callStackRect.childrenRect.height + storageRect.childrenRect.height + memoryRect.childrenRect.height + callDataRect.childrenRect.height + 120; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
TransactionLog { |
|
|
Component.onCompleted: updateHeight(); |
|
|
id: transactionLog |
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
height: 250 |
|
|
TransactionLog { |
|
|
} |
|
|
id: transactionLog |
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
Layout.minimumHeight: 60 |
|
|
|
|
|
height: 250 |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ColumnLayout { |
|
|
|
|
|
|
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
Layout.fillHeight: true |
|
|
|
|
|
id: statesLayout |
|
|
|
|
|
spacing: machineStates.sideMargin |
|
|
|
|
|
|
|
|
RowLayout { |
|
|
RowLayout { |
|
|
// step button + slider |
|
|
// step button + slider |
|
@ -145,11 +161,11 @@ Rectangle { |
|
|
height: 27 |
|
|
height: 27 |
|
|
Layout.fillWidth: true |
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
|
Rectangle |
|
|
Rectangle { |
|
|
{ |
|
|
|
|
|
height: parent.height |
|
|
height: parent.height |
|
|
color: "transparent" |
|
|
color: "transparent" |
|
|
width: debugScrollArea.firstColumnWidth |
|
|
Layout.minimumWidth: stateListContainer.width |
|
|
|
|
|
Layout.maximumWidth: stateListContainer.width |
|
|
RowLayout { |
|
|
RowLayout { |
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
id: jumpButtons |
|
|
id: jumpButtons |
|
@ -258,23 +274,25 @@ Rectangle { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
RowLayout { |
|
|
Rectangle { |
|
|
// Assembly code |
|
|
// Assembly code |
|
|
id: assemblyCodeRow |
|
|
id: assemblyCodeRow |
|
|
Layout.fillWidth: true |
|
|
Layout.fillWidth: true |
|
|
height: 405 |
|
|
height: 405 |
|
|
implicitHeight: 405 |
|
|
implicitHeight: 405 |
|
|
spacing: machineStates.sideMargin |
|
|
color: "transparent" |
|
|
|
|
|
|
|
|
Rectangle |
|
|
Rectangle |
|
|
{ |
|
|
{ |
|
|
id: stateListContainer |
|
|
id: stateListContainer |
|
|
width: debugScrollArea.firstColumnWidth |
|
|
anchors.top : parent.top |
|
|
|
|
|
anchors.bottom: parent.bottom |
|
|
|
|
|
anchors.left: parent.left |
|
|
|
|
|
width: parent.width * 0.4 |
|
|
height: parent.height |
|
|
height: parent.height |
|
|
border.width: 3 |
|
|
border.width: 3 |
|
|
border.color: "#deddd9" |
|
|
border.color: "#deddd9" |
|
|
color: "white" |
|
|
color: "white" |
|
|
anchors.top: parent.top |
|
|
|
|
|
TableView { |
|
|
TableView { |
|
|
id: statesList |
|
|
id: statesList |
|
|
anchors.fill: parent |
|
|
anchors.fill: parent |
|
@ -288,7 +306,7 @@ Rectangle { |
|
|
model: ListModel {} |
|
|
model: ListModel {} |
|
|
TableViewColumn { |
|
|
TableViewColumn { |
|
|
role: "line" |
|
|
role: "line" |
|
|
width: debugScrollArea.firstColumnWidth - 10 |
|
|
width: parent.width - 10 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
@ -347,7 +365,10 @@ Rectangle { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Rectangle { |
|
|
Rectangle { |
|
|
Layout.fillWidth: true |
|
|
width: parent.width * 0.6 - machineStates.sideMargin |
|
|
|
|
|
anchors.top : parent.top |
|
|
|
|
|
anchors.bottom: parent.bottom |
|
|
|
|
|
anchors.right: parent.right |
|
|
height: parent.height //- 2 * stateListContainer.border.width |
|
|
height: parent.height //- 2 * stateListContainer.border.width |
|
|
color: "transparent" |
|
|
color: "transparent" |
|
|
ColumnLayout |
|
|
ColumnLayout |
|
@ -450,14 +471,6 @@ Rectangle { |
|
|
id: splitInfoList |
|
|
id: splitInfoList |
|
|
Layout.fillHeight: true |
|
|
Layout.fillHeight: true |
|
|
Layout.fillWidth: true |
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
|
Settings { |
|
|
|
|
|
id: splitSettings |
|
|
|
|
|
property alias storageHeightSettings: storageRect.height |
|
|
|
|
|
property alias memoryDumpHeightSettings: memoryRect.height |
|
|
|
|
|
property alias callDataHeightSettings: callDataRect.height |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
orientation: Qt.Vertical |
|
|
orientation: Qt.Vertical |
|
|
|
|
|
|
|
|
Rectangle |
|
|
Rectangle |
|
@ -507,7 +520,6 @@ Rectangle { |
|
|
Layout.preferredWidth: parent.width / 2 |
|
|
Layout.preferredWidth: parent.width / 2 |
|
|
Layout.maximumWidth: parent.width / 2 |
|
|
Layout.maximumWidth: parent.width / 2 |
|
|
Layout.minimumHeight: parent.height |
|
|
Layout.minimumHeight: parent.height |
|
|
Layout.maximumHeight: parent.height |
|
|
|
|
|
Text { |
|
|
Text { |
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
anchors.left: parent.left |
|
|
anchors.left: parent.left |
|
@ -528,7 +540,6 @@ Rectangle { |
|
|
Layout.preferredWidth: parent.width / 2 |
|
|
Layout.preferredWidth: parent.width / 2 |
|
|
Layout.maximumWidth: parent.width / 2 |
|
|
Layout.maximumWidth: parent.width / 2 |
|
|
Layout.minimumHeight: parent.height |
|
|
Layout.minimumHeight: parent.height |
|
|
Layout.maximumHeight: parent.height |
|
|
|
|
|
Text { |
|
|
Text { |
|
|
anchors.leftMargin: 5 |
|
|
anchors.leftMargin: 5 |
|
|
width: parent.width - 5 |
|
|
width: parent.width - 5 |
|
@ -607,5 +618,6 @@ Rectangle { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|