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.
67 lines
920 B
67 lines
920 B
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 {
|
|
color: "#ededed"
|
|
property alias bc: blockChain
|
|
|
|
Connections
|
|
{
|
|
target: projectModel
|
|
onProjectLoaded: {
|
|
loader.init()
|
|
}
|
|
|
|
}
|
|
|
|
Column
|
|
{
|
|
anchors.margins: 10
|
|
anchors.fill: parent
|
|
spacing: 10
|
|
ScenarioLoader
|
|
{
|
|
height: 100
|
|
width: parent.width
|
|
id: loader
|
|
}
|
|
|
|
Connections
|
|
{
|
|
target: blockChain
|
|
onChainChanged:
|
|
{
|
|
loader.needSaveOrReload()
|
|
}
|
|
}
|
|
|
|
Rectangle
|
|
{
|
|
width: parent.parent.width
|
|
height: 1
|
|
color: "#cccccc"
|
|
}
|
|
|
|
Connections
|
|
{
|
|
target: loader
|
|
onLoaded:
|
|
{
|
|
blockChain.load(scenario)
|
|
}
|
|
}
|
|
|
|
BlockChain
|
|
{
|
|
id: blockChain
|
|
width: parent.width
|
|
}
|
|
}
|
|
}
|
|
|