mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-27 03:09:45 +02:00
dialog mechanism
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
<afx-app-window data-id = "am-window" apptitle="" width="400" height="300">
|
||||
<afx-vbox>
|
||||
<afx-hbox>
|
||||
<afx-grid-view data-id = "mygrid"></afx-grid-view>
|
||||
<afx-button data-height="30" data-id = "btkill" text = "Kill process" iconclass="fa fa-times"></afx-button>
|
||||
|
@ -5,8 +5,8 @@ class DummyApp extends this.OS.GUI.BaseApplication
|
||||
main: () ->
|
||||
self = @
|
||||
@on "btclick", (e)->
|
||||
self.notify "this is a dummy notify"
|
||||
_GUI.pushService "Budgy"
|
||||
#_GUI.pushService "Budgy"
|
||||
self.openDialog "CalendarDialog", (d) -> console.log d
|
||||
@on "resize", (w,h)->
|
||||
console.log "#{self.name}: resize"
|
||||
#@on "listselect", (i)->
|
||||
@ -15,6 +15,8 @@ class DummyApp extends this.OS.GUI.BaseApplication
|
||||
console.log self.name,i
|
||||
@on "focus", ()->
|
||||
console.log self.name, "is focused"
|
||||
@on "dayselect", (e) -> console.log "cellselected", e
|
||||
@on "gridselect", (e) -> console.log "GRID selected", e
|
||||
tree = @find "mytree"
|
||||
|
||||
@scheme.set "apptitle", "Terminal"
|
||||
|
@ -1,4 +1,4 @@
|
||||
<afx-app-window apptitle="Preview" width="600" height="600">
|
||||
<afx-app-window apptitle="Preview" width="600" height="400">
|
||||
<afx-vbox>
|
||||
<afx-tree-view data-id="mytree"> </afx-tree-view>
|
||||
<afx-hbox>
|
||||
|
@ -37,7 +37,6 @@ class NotePad extends this.OS.GUI.BaseApplication
|
||||
mode: m.theme,
|
||||
selected: if m.theme is "ace/theme/monokai" then true else false
|
||||
} for k, m of themes.themesByName
|
||||
console.log themes.themesByName
|
||||
themelist.set "items", ldata
|
||||
themelist.set "onlistselect", (e) ->
|
||||
me.editor.setTheme e.data.mode
|
||||
@ -49,7 +48,7 @@ class NotePad extends this.OS.GUI.BaseApplication
|
||||
l = me.editor.session.getLength()
|
||||
$(stat).html "Row #{c.row}, col #{c.column}, lines: #{l}"
|
||||
stup(0)
|
||||
@.editor.getSession().selection.on "changeCursor", (e)->stup(e)
|
||||
@.editor.getSession().selection.on "changeCursor", (e) -> stup(e)
|
||||
|
||||
@on "resize", () -> me.editor.resize()
|
||||
@on "focus", () -> me.editor.focus()
|
||||
@ -64,4 +63,4 @@ class NotePad extends this.OS.GUI.BaseApplication
|
||||
}]
|
||||
menu
|
||||
NotePad.singleton = false
|
||||
this.OS.register "NotePad",NotePad
|
||||
this.OS.register "NotePad", NotePad
|
Reference in New Issue
Block a user