You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
1.3 KiB

import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Controls.Styles 1.1
import QtQuick.Dialogs 1.1
import QtQuick.Layouts 1.1
import Qt.labs.settings 1.0
import "js/Debugger.js" as Debugger
import "js/ErrorLocationFormater.js" as ErrorLocationFormater
import "."
Rectangle {
10 years ago
color: "#ededed"
property alias bc: blockChain
10 years ago
Connections
{
target: projectModel
onProjectLoaded: {
loader.init()
}
}
10 years ago
Column
{
id: scenarioColumn
10 years ago
anchors.margins: 10
anchors.fill: parent
spacing: 10
ScenarioLoader
{
height: 100
10 years ago
width: parent.width
id: loader
}
Connections
{
target: blockChain
onChainChanged:
{
loader.needSaveOrReload()
}
}
10 years ago
Rectangle
{
width: parent.parent.width
10 years ago
height: 1
color: "#cccccc"
}
10 years ago
Connections
{
target: loader
onLoaded:
{
10 years ago
blockChain.load(scenario)
}
}
10 years ago
BlockChain
{
id: blockChain
width: parent.width
}
Connections
{
target: blockChain
onTxSelected:{
var tx = model.block[blockIndex].transactions[txIndex]
var state = blockChain.getState(tx.recordIndex)
watchers.updateWidthTx(tx, state)
}
}
}
ScrollView
{
anchors.top: scenarioColumn.bottom
width: parent.width
height: 500
Watchers
{
id: watchers
anchors.topMargin: 10
}
10 years ago
}
}