taskwindow.js
来自「ext-2.3.0」· JavaScript 代码 · 共 74 行
JS
74 行
/*
* Ext JS Library 0.30
* Copyright(c) 2006-2009, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
Ext.air.NativeWindowManager.getTaskWindow = function(taskId){
var win, winId = 'task' + taskId;
if(win = this.get(winId)) {
win.instance.orderToFront();
} else {
win = new Ext.air.NativeWindow({
id: winId,
file: 'task.html?taskId=' + taskId,
width: 500,
height:350
});
}
return win;
}
Ext.air.NativeWindowManager.getReminderWindow = function(taskId){
var win, winId = 'reminder' + taskId;
if(win = this.get(winId)) {
win.instance.orderToFront();
} else {
win = new Ext.air.NativeWindow({
id: winId,
file: 'reminder.html?taskId=' + taskId,
width:400,
height:140,
maximizable: false,
resizable: false
});
}
return win;
}
Ext.air.NativeWindowManager.getAboutWindow = function(){
var win, winId = 'about';
if(win = this.get(winId)) {
win.instance.orderToFront();
} else {
win = new Ext.air.NativeWindow({
id: winId,
file: 'about.html',
width:350,
height:300,
resizable: false,
type:'utility'
});
}
return win;
}
Ext.air.NativeWindowManager.getPrefWindow = function(){
var win, winId = 'prefs';
if(win = this.get(winId)) {
win.instance.orderToFront();
} else {
win = new Ext.air.NativeWindow({
id: winId,
file: 'preferences.html',
width:240,
height:150,
resizable: false,
type:'utility'
});
}
return win;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?