Cleaned up

This commit is contained in:
obscuren 2014-09-26 13:34:06 +02:00
parent dc944f7518
commit cf999c4622
3 changed files with 18 additions and 48 deletions

View File

@ -357,7 +357,7 @@ ApplicationWindow {
anchors.right: parent.right anchors.right: parent.right
model: ListModel { model: ListModel {
ListElement { text: "Snippets" ; value: "" } ListElement { text: "Snippets" ; value: "" }
ListElement { text: "Call Contract" ; value: "var[2] in;\nvar ret;\n\nin[0] = \"arg1\"\nin[1] = 0xdeadbeef\n\nvar success = call(0x0c542ddea93dae0c2fcb2cf175f03ad80d6be9a0, 0, 7000, in, ret)\n\nreturn ret" } ListElement { text: "Call Contract" ; value: "var[2] in = { \"arg1\", 0xdeadbeef };\nvar ret;\n\nvar success = call(0x0c542ddea93dae0c2fcb2cf175f03ad80d6be9a0, 0, 7000, in, ret)\n\nreturn ret" }
} }
onCurrentIndexChanged: { onCurrentIndexChanged: {
if(currentIndex != 0) { if(currentIndex != 0) {

View File

@ -459,7 +459,6 @@
g_seed++; g_seed++;
console.log(data)
navigator.qt.postMessage(JSON.stringify(data)); navigator.qt.postMessage(JSON.stringify(data));
} }

View File

@ -121,6 +121,23 @@ Rectangle {
} }
} }
/*
TableView {
id: logView
headerVisible: false
anchors {
right: logLevelSlider.left
left: parent.left
bottom: parent.bottom
top: parent.top
}
TableViewColumn{ role: "description" ; title: "log" }
model: logModel
}
*/
Slider { Slider {
id: logLevelSlider id: logLevelSlider
value: gui.getLogLevelInt() value: gui.getLogLevelInt()
@ -149,52 +166,6 @@ Rectangle {
id: logModel id: logModel
} }
/*
RowLayout {
id: logLayout
width: parent.width
height: 200
anchors.bottom: parent.bottom
TableView {
id: logView
headerVisible: false
anchors {
right: logLevelSlider.left
left: parent.left
bottom: parent.bottom
top: parent.top
}
TableViewColumn{ role: "description" ; title: "log" }
model: logModel
}
Slider {
id: logLevelSlider
value: gui.getLogLevelInt()
anchors {
right: parent.right
top: parent.top
bottom: parent.bottom
rightMargin: 5
leftMargin: 5
topMargin: 5
bottomMargin: 5
}
orientation: Qt.Vertical
maximumValue: 5
stepSize: 1
onValueChanged: {
gui.setLogLevel(value)
}
}
}
*/
function addDebugMessage(message){ function addDebugMessage(message){
debuggerLog.append({value: message}) debuggerLog.append({value: message})
} }