📄 extraswidgetsscreen.js
字号:
DemoApp.ExtrasWidgetsScreen = Core.extend(Echo.ContentPane, { _msg: null, _colorSelect: null, _colorSelectLabel: null, $construct: function() { this._msg = DemoApp.getMessages(null); Echo.ContentPane.call(this, { children: [ new Echo.Row({ children: [ new Echo.Column({ layoutData: { alignment: "top" }, insets: "1em", cellSpacing: "1em", children: [ new Extras.Group({ title: this._msg["ExtrasWidgetsScreen.CalendarSelect.Title"], children: [ new Echo.Row({ cellSpacing: "1em", children: [ new Extras.CalendarSelect({ styleName: "Default", layoutData: { alignment: "top" } }), new Echo.Column({ layoutData: { alignment: "top" }, cellSpacing: "1em", children: [ new Echo.Label({ text: this._msg["ExtrasWidgetsScreen.CalendarSelect.Desc1"] }), new Echo.Label({ text: this._msg["ExtrasWidgetsScreen.CalendarSelect.Desc2"] }) ] }) ] }) ] }), new Extras.Group({ title: this._msg["ExtrasWidgetsScreen.Menu.Title"], children: [ new Echo.Row({ cellSpacing: "1em", children: [ new Echo.Column({ layoutData: { alignment: "top" }, insets: "1em", cellSpacing: "2em", children: [ new Extras.ContextMenu({ styleName: "Default", children: [ new Echo.Button({ styleName: "Default", insets: "5px 10px", text: this._msg["ExtrasWidgetsScreen.Menu.ContextButton"] }) ], events: { init: Core.method(this, function(e) { e.source.set("model", this.application.workspace.createMenuModel()); }) } }), new Echo.Column({ cellSpacing: 5, children: [ this._dropDownMenu = new Extras.DropDownMenu({ styleName: "Default", selectionText: this._msg[ "ExtrasWidgetsScreen.Menu.DropDownButton"], events: { init: Core.method(this, function(e) { e.source.set("model", this.application.workspace.createMenuModel()); }) } }), new Echo.CheckBox({ text: this._msg["ExtrasWidgetsScreen.Menu.DropDownSelection"], events: { action: Core.method(this, function(e) { this._dropDownMenu.set("selectionEnabled", e.source.get("selected")); }) } }) ] }), new Echo.Label({ font: { size: "8pt" }, text: this._msg["ExtrasWidgetsScreen.Menu.Note"] }) ] }), new Echo.Column({ layoutData: { alignment: "top" }, cellSpacing: "1em", children: [ new Echo.Label({ text: this._msg["ExtrasWidgetsScreen.Menu.MenuBarPane.Desc"] }), new Echo.Label({
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -