DHTML progress bar for glacial rate adding and editing, closes: Bug#1100
[freeside.git] / httemplate / elements / qlib / buttonres.js
diff --git a/httemplate/elements/qlib/buttonres.js b/httemplate/elements/qlib/buttonres.js
new file mode 100644 (file)
index 0000000..97f6dfc
--- /dev/null
@@ -0,0 +1,23 @@
+/**\r
+ * QLIB 1.0 Button Resource\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 QButtonRes(style, width, height, normal, pressed, disabled) {\r
+    this.style = style;\r
+    this.width = width;\r
+    this.height = height;\r
+    this.imgN = new Image(width, height);\r
+    this.imgN.src = normal;\r
+    this.imgP = new Image(width, height);\r
+    this.imgP.src = pressed;\r
+    if (disabled) {\r
+        this.imgD = new Image(width, height);\r
+        this.imgD.src = disabled;\r
+    }\r
+}\r