Enhance dialog api

This commit is contained in:
Xuan Sang LE
2020-05-23 20:07:32 +02:00
parent 9f184fc19b
commit 0c93ff7c9c
12 changed files with 116 additions and 56 deletions

View File

@ -2,7 +2,8 @@ class CommandPalette extends this.OS.GUI.BasicDialog
constructor: () ->
super "CommandPalete", CommandPalette.scheme
init: () ->
main: () ->
super.main()
offset = $(".afx-window-content", @parent.scheme).offset()
pw = @parent.scheme.get("width") / 5
@scheme.set "width", 3 * pw

View File

@ -19,7 +19,9 @@
class RepositoryDialog extends this.OS.GUI.subwindows.SelectionDialog
constructor: () ->
super()
main: () ->
super.main()
@list = @find "list"
$((@find "btnOk")).hide()
@list.set "buttons", [

View File

@ -20,7 +20,8 @@ class VFSSettingDialog extends this.OS.GUI.BasicDialog
constructor: () ->
super "VFSSettingDialog", VFSSettingDialog.scheme
init: () ->
main: () ->
super.main()
$(@find("txtPath")).click (e) =>
@openDialog("FileDialog", {
title: "__(Select a directory)",