"""
class GPClient extends this.OS.application.BaseApplication
constructor: ( args ) ->
super "GPClient", args
main: () ->
@setting.clients = [] unless @setting.clients
@container = @find("container")
@bindKey "CTRL-M", () =>
@openDialog new ClientListDialog(), {
title: __("Client Manager")
}
@switchClient()
switchClient: () ->
if @setting.curl
@container.src = @setting.curl
@scheme.apptitle = @setting.cname
else
@notify __("No client selected, manager client in menu Options > Client manager")
menu: () ->
[
{
text: "__(Options)",
nodes: [
{ text: "__(Client manager)", shortcut: "C-M"}
],
onchildselect: (e) =>
@openDialog new ClientListDialog(), {
title: __("Client Manager")
}
}
]
GPClient.singleton = true
this.OS.register "GPClient", GPClient