X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/docs/source/TaskWindow.html diff --git a/docs/source/TaskWindow.html b/docs/source/TaskWindow.html new file mode 100644 index 00000000..7e25363e --- /dev/null +++ b/docs/source/TaskWindow.html @@ -0,0 +1,75 @@ + + + The source code + + + + +
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;
+}
+
+ + \ No newline at end of file