Draft mut(an)ed(itor)

This commit is contained in:
obscuren
2014-04-28 00:25:01 +02:00
parent 883810b533
commit 68e5568804
10 changed files with 8300 additions and 0 deletions

View File

@ -108,6 +108,25 @@ func (ui *UiLib) OpenHtml(path string) {
}()
}
func (ui *UiLib) Muted(content string) {
component, err := ui.engine.LoadFile(ui.AssetPath("qml/muted.qml"))
if err != nil {
ethutil.Config.Log.Debugln(err)
return
}
win := component.CreateWindow(nil)
go func() {
path := "file://" + ui.AssetPath("muted/index.html")
win.Set("url", path)
debuggerPath := "file://" + ui.AssetPath("muted/debugger.html")
win.Set("debugUrl", debuggerPath)
win.Show()
win.Wait()
}()
}
func (ui *UiLib) Connect(button qml.Object) {
if !ui.connected {
ui.eth.Start()