use services to communicate between apps

This commit is contained in:
Xuan Sang LE
2017-08-16 00:27:32 +02:00
parent 16074ac3f8
commit 8fbd0b4a98
62 changed files with 590 additions and 211 deletions

View File

@ -14,7 +14,7 @@ class ActivityMonitor extends this.OS.GUI.BaseApplication
app = _PM.appByPid item[0].value
app.quit() if app
header = [{width:50,value:"Pid"},{value:"Name"}, {value:"Type", width:75},{width:70,value:"Alive (ms)"}]
header = [{width:50,value:"Pid"},{value:"Name"}, {value:"Type", width:80},{width:75,value:"Alive (ms)"}]
@gdata =
processes:{}
alive:[]

View File

@ -1,10 +1,12 @@
_GUI = this.OS.GUI
class DummyApp extends this.OS.GUI.BaseApplication
constructor: () ->
super "DummyApp"
main: () ->
self = @
@on "btclick", (e)->
alert "#{self.name}: Happy pola"
self.notify "this is a dummy notify"
_GUI.pushService "Budgy"
@on "resize", (w,h)->
console.log "#{self.name}: resize"
#@on "listselect", (i)->