DHTML progress bar for glacial rate adding and editing, closes: Bug#1100
[freeside.git] / httemplate / elements / qlib / window.js
diff --git a/httemplate/elements/qlib/window.js b/httemplate/elements/qlib/window.js
new file mode 100644 (file)
index 0000000..6056fda
--- /dev/null
@@ -0,0 +1,25 @@
+/**\r
+ * QLIB 1.0 Window Control\r
+ * Copyright (C) 2002 2003, Quazzle.com Serge Dolgov\r
+ * This program is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License\r
+ * as published by the Free Software Foundation; either version 2\r
+ * of the License, or (at your option) any later version.\r
+ * http://qlib.quazzle.com\r
+ */\r
+\r
+function QWindow(parent, name, x, y, width, height, content, visible, effects, opacity, zindex) {\r
+    this.init(parent, name);\r
+    this.x = x - 0;\r
+    this.y = y - 0;\r
+    this.width = width - 0;\r
+    this.height = (typeof(height) == "number") ? height : null;\r
+    this.content = content;\r
+    var j = QWindow.arguments.length;\r
+    this.visible = (j > 7) ? visible : true;\r
+    this.effects = (j > 8) ? effects : 0;\r
+    this.opacity = (j > 9) ? opacity : 100;\r
+    this.zindex  = (j > 10) ? zindex : null;\r
+    this.create();\r
+}\r
+QWindow.prototype = new QWndCtrl();\r