7 changed files with 188 additions and 1 deletions
@ -0,0 +1,66 @@ |
|||
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 org.ethereum.qml.QEther 1.0 |
|||
import "js/Debugger.js" as Debugger |
|||
import "js/ErrorLocationFormater.js" as ErrorLocationFormater |
|||
import "js/TransactionHelper.js" as TransactionHelper |
|||
import "js/QEtherHelper.js" as QEtherHelper |
|||
import "." |
|||
|
|||
ColumnLayout { |
|||
id: root |
|||
property alias title: titleLabel.text |
|||
property variant data |
|||
|
|||
function key(index) |
|||
{ |
|||
} |
|||
|
|||
function value(index) |
|||
{ |
|||
} |
|||
|
|||
RowLayout |
|||
{ |
|||
Label |
|||
{ |
|||
id: titleLabel |
|||
} |
|||
} |
|||
|
|||
RowLayout |
|||
{ |
|||
Repeater |
|||
{ |
|||
id: repeaterKeyValue |
|||
RowLayout |
|||
{ |
|||
Rectangle |
|||
{ |
|||
id: key |
|||
Label |
|||
{ |
|||
text: { |
|||
return root.key(index) |
|||
} |
|||
} |
|||
} |
|||
Rectangle |
|||
{ |
|||
id: value |
|||
Label |
|||
{ |
|||
text: { |
|||
return root.value(index) |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
@ -0,0 +1,59 @@ |
|||
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 org.ethereum.qml.QEther 1.0 |
|||
import "js/Debugger.js" as Debugger |
|||
import "js/ErrorLocationFormater.js" as ErrorLocationFormater |
|||
import "js/TransactionHelper.js" as TransactionHelper |
|||
import "js/QEtherHelper.js" as QEtherHelper |
|||
import "." |
|||
|
|||
ColumnLayout { |
|||
|
|||
property variant tx |
|||
property variant state |
|||
|
|||
function updateWidthTx(_tx, _state) |
|||
{ |
|||
console.log("update tx") |
|||
console.log(JSON.stringify(tx)) |
|||
console.log(JSON.stringify(state)) |
|||
txLabel.text = tx.label |
|||
tx = _tx |
|||
state = _state |
|||
} |
|||
|
|||
RowLayout |
|||
{ |
|||
Label { |
|||
id: txLabel |
|||
} |
|||
} |
|||
|
|||
KeyValuePanel |
|||
{ |
|||
id: inputParams |
|||
title: qsTr("INPUT PARAMETERS") |
|||
} |
|||
|
|||
KeyValuePanel |
|||
{ |
|||
id: returnParams |
|||
title: qsTr("RETURN PARAMETERS") |
|||
} |
|||
|
|||
KeyValuePanel |
|||
{ |
|||
id: balance |
|||
title: qsTr("BALANCES") |
|||
} |
|||
|
|||
KeyValuePanel |
|||
{ |
|||
id: events |
|||
title: qsTr("EVENTS") |
|||
} |
|||
} |
Loading…
Reference in new issue