@ -4,6 +4,7 @@ import QtQuick.Controls.Styles 1.1
import QtQuick . Dialogs 1.1
import QtQuick . Dialogs 1.1
import QtQuick . Layouts 1.1
import QtQuick . Layouts 1.1
import Qt . labs . settings 1.0
import Qt . labs . settings 1.0
import QtGraphicalEffects 1.0
import "js/Debugger.js" as Debugger
import "js/Debugger.js" as Debugger
import "js/ErrorLocationFormater.js" as ErrorLocationFormater
import "js/ErrorLocationFormater.js" as ErrorLocationFormater
import "."
import "."
@ -207,7 +208,7 @@ Rectangle {
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 ;
spacing: machineStates . sideMargin
spacing: machineStates . sideMargin
Rectangle {
Rectangle {
@ -218,27 +219,26 @@ Rectangle {
color: "transparent"
color: "transparent"
Rectangle {
Rectangle {
anchors.top: parent . top
anchors.fill: parent
anchors.bottom: parent . bottom
anchors.left: parent . left
color: "transparent"
color: "transparent"
width: parent . width * 0.4
RowLayout {
RowLayout {
anchors.horizontalCenter: parent . horizontalCenter
anchors.fill: parent
id: jumpButtons
id: jumpButtons
spacing: 3
spacing: 3
layoutDirection: Qt . LeftToRight
StepActionImage
StepActionImage
{
{
id: playAction
id: playAction
enabledStateImg: "qrc:/qml/img/play_button.png"
enabledStateImg: "qrc:/qml/img/play_button.png"
disableStateImg: "qrc:/qml/img/play_button.png"
disableStateImg: "qrc:/qml/img/play_button.png"
buttonLeft: true
onClicked: projectModel . stateListModel . runState ( transactionLog . selectedStateIndex )
onClicked: projectModel . stateListModel . runState ( transactionLog . selectedStateIndex )
width: 30
width: 23
height: 30
buttonShortcut: "Ctrl+Shift+F8"
buttonShortcut: "Ctrl+Shift+F8"
buttonTooltip: qsTr ( "Start Debugging" )
buttonTooltip: qsTr ( "Start Debugging" )
visible: true
visible: true
Layout.alignment: Qt . AlignLeft
}
}
StepActionImage
StepActionImage
@ -247,8 +247,7 @@ Rectangle {
enabledStateImg: "qrc:/qml/img/stop_button2x.png"
enabledStateImg: "qrc:/qml/img/stop_button2x.png"
disableStateImg: "qrc:/qml/img/stop_button2x.png"
disableStateImg: "qrc:/qml/img/stop_button2x.png"
onClicked: Debugger . init ( null ) ;
onClicked: Debugger . init ( null ) ;
width: 30
width: 23
height: 30
buttonShortcut: "Ctrl+Shift+F9"
buttonShortcut: "Ctrl+Shift+F9"
buttonTooltip: qsTr ( "Stop Debugging" )
buttonTooltip: qsTr ( "Stop Debugging" )
visible: true
visible: true
@ -260,8 +259,7 @@ Rectangle {
enabledStateImg: "qrc:/qml/img/jumpoutback.png"
enabledStateImg: "qrc:/qml/img/jumpoutback.png"
disableStateImg: "qrc:/qml/img/jumpoutbackdisabled.png"
disableStateImg: "qrc:/qml/img/jumpoutbackdisabled.png"
onClicked: Debugger . runBack ( )
onClicked: Debugger . runBack ( )
width: 30
width: 23
height: 30
buttonShortcut: "Ctrl+Shift+F5"
buttonShortcut: "Ctrl+Shift+F5"
buttonTooltip: qsTr ( "Run Back" )
buttonTooltip: qsTr ( "Run Back" )
visible: false
visible: false
@ -273,8 +271,7 @@ Rectangle {
enabledStateImg: "qrc:/qml/img/jumpoutback.png"
enabledStateImg: "qrc:/qml/img/jumpoutback.png"
disableStateImg: "qrc:/qml/img/jumpoutbackdisabled.png"
disableStateImg: "qrc:/qml/img/jumpoutbackdisabled.png"
onClicked: Debugger . stepOutBack ( )
onClicked: Debugger . stepOutBack ( )
width: 30
width: 23
height: 30
buttonShortcut: "Ctrl+Shift+F11"
buttonShortcut: "Ctrl+Shift+F11"
buttonTooltip: qsTr ( "Step Out Back" )
buttonTooltip: qsTr ( "Step Out Back" )
}
}
@ -285,8 +282,7 @@ Rectangle {
enabledStateImg: "qrc:/qml/img/jumpintoback.png"
enabledStateImg: "qrc:/qml/img/jumpintoback.png"
disableStateImg: "qrc:/qml/img/jumpintobackdisabled.png"
disableStateImg: "qrc:/qml/img/jumpintobackdisabled.png"
onClicked: Debugger . stepIntoBack ( )
onClicked: Debugger . stepIntoBack ( )
width: 30
width: 23
height: 30
buttonShortcut: "Ctrl+F11"
buttonShortcut: "Ctrl+F11"
buttonTooltip: qsTr ( "Step Into Back" )
buttonTooltip: qsTr ( "Step Into Back" )
}
}
@ -297,8 +293,7 @@ Rectangle {
enabledStateImg: "qrc:/qml/img/jumpoverback.png"
enabledStateImg: "qrc:/qml/img/jumpoverback.png"
disableStateImg: "qrc:/qml/img/jumpoverbackdisabled.png"
disableStateImg: "qrc:/qml/img/jumpoverbackdisabled.png"
onClicked: Debugger . stepOverBack ( )
onClicked: Debugger . stepOverBack ( )
width: 30
width: 23
height: 30
buttonShortcut: "Ctrl+F10"
buttonShortcut: "Ctrl+F10"
buttonTooltip: qsTr ( "Step Over Back" )
buttonTooltip: qsTr ( "Step Over Back" )
}
}
@ -309,8 +304,7 @@ Rectangle {
enabledStateImg: "qrc:/qml/img/jumpoverforward.png"
enabledStateImg: "qrc:/qml/img/jumpoverforward.png"
disableStateImg: "qrc:/qml/img/jumpoverforwarddisabled.png"
disableStateImg: "qrc:/qml/img/jumpoverforwarddisabled.png"
onClicked: Debugger . stepOverForward ( )
onClicked: Debugger . stepOverForward ( )
width: 30
width: 23
height: 30
buttonShortcut: "F10"
buttonShortcut: "F10"
buttonTooltip: qsTr ( "Step Over Forward" )
buttonTooltip: qsTr ( "Step Over Forward" )
}
}
@ -321,8 +315,7 @@ Rectangle {
enabledStateImg: "qrc:/qml/img/jumpintoforward.png"
enabledStateImg: "qrc:/qml/img/jumpintoforward.png"
disableStateImg: "qrc:/qml/img/jumpintoforwarddisabled.png"
disableStateImg: "qrc:/qml/img/jumpintoforwarddisabled.png"
onClicked: Debugger . stepIntoForward ( )
onClicked: Debugger . stepIntoForward ( )
width: 30
width: 23
height: 30
buttonShortcut: "F11"
buttonShortcut: "F11"
buttonTooltip: qsTr ( "Step Into Forward" )
buttonTooltip: qsTr ( "Step Into Forward" )
}
}
@ -333,10 +326,10 @@ Rectangle {
enabledStateImg: "qrc:/qml/img/jumpoutforward.png"
enabledStateImg: "qrc:/qml/img/jumpoutforward.png"
disableStateImg: "qrc:/qml/img/jumpoutforwarddisabled.png"
disableStateImg: "qrc:/qml/img/jumpoutforwarddisabled.png"
onClicked: Debugger . stepOutForward ( )
onClicked: Debugger . stepOutForward ( )
width: 30
width: 45
height: 30
buttonShortcut: "Shift+F11"
buttonShortcut: "Shift+F11"
buttonTooltip: qsTr ( "Step Out Forward" )
buttonTooltip: qsTr ( "Step Out Forward" )
buttonRight: true
}
}
StepActionImage
StepActionImage
@ -345,41 +338,44 @@ Rectangle {
enabledStateImg: "qrc:/qml/img/jumpoutforward.png"
enabledStateImg: "qrc:/qml/img/jumpoutforward.png"
disableStateImg: "qrc:/qml/img/jumpoutforwarddisabled.png"
disableStateImg: "qrc:/qml/img/jumpoutforwarddisabled.png"
onClicked: Debugger . runForward ( )
onClicked: Debugger . runForward ( )
width: 30
width: 45
height: 30
buttonShortcut: "Ctrl+F5"
buttonShortcut: "Ctrl+F5"
buttonTooltip: qsTr ( "Run Forward" )
buttonTooltip: qsTr ( "Run Forward" )
visible: false
visible: false
buttonRight: true
}
}
}
}
Rectangle {
Rectangle {
anchors.top: parent . top
anchors.top: parent . top
anchors.bottom: parent . bottom
anchors.bottom: parent . bottom
anchors.right: parent . right
anchors.right: parent . right
width: parent . width * 0.6
color: "transparent"
color: "transparent"
Layout.fillWidth: true
Slider {
Layout.minimumWidth: parent . width * 0.2
id: statesSlider
Layout.alignment: Qt . AlignRight
anchors.fill: parent
tickmarksEnabled: true
Slider {
stepSize: 1.0
id: statesSlider
onValueChanged: Debugger . jumpTo ( value ) ;
anchors.fill: parent
style: SliderStyle {
tickmarksEnabled: true
groove: Rectangle {
stepSize: 1.0
implicitHeight: 3
onValueChanged: Debugger . jumpTo ( value ) ;
color: "#7da4cd"
style: SliderStyle {
radius: 8
groove: Rectangle {
}
implicitHeight: 3
handle: Rectangle {
color: "#7da4cd"
anchors.centerIn: parent
radius: 8
color: control . pressed ? "white" : "lightgray"
}
border.color: "gray"
handle: Rectangle {
border.width: 2
anchors.centerIn: parent
implicitWidth: 10
color: control . pressed ? "white" : "lightgray"
implicitHeight: 10
border.color: "gray"
radius: 12
border.width: 2
implicitWidth: 10
implicitHeight: 10
radius: 12
}
}
}
}
}
}
}
}
@ -480,7 +476,7 @@ Rectangle {
anchors.top : parent . top
anchors.top : parent . top
anchors.bottom: parent . bottom
anchors.bottom: parent . bottom
anchors.right: parent . right
anchors.right: parent . right
height: parent . height / / - 2 * s t a t e L i s t C o n t a i n e r . b o r d e r . w i d t h
height: parent . height
color: "transparent"
color: "transparent"
ColumnLayout
ColumnLayout
{
{
@ -520,7 +516,6 @@ Rectangle {
title : qsTr ( "Stack" )
title : qsTr ( "Stack" )
itemDelegate: Item {
itemDelegate: Item {
id: renderedItem
id: renderedItem
/ / h e i g h t : 2 5
width: parent . width
width: parent . width
RowLayout
RowLayout
{
{