This commit was generated by cvs2svn to compensate for changes in r4407,
[freeside.git] / httemplate / elements / qlib / buttonres.js
1 /**\r
2  * QLIB 1.0 Button Resource\r
3  * Copyright (C) 2002 2003, Quazzle.com Serge Dolgov\r
4  * This program is free software; you can redistribute it and/or\r
5  * modify it under the terms of the GNU General Public License\r
6  * as published by the Free Software Foundation; either version 2\r
7  * of the License, or (at your option) any later version.\r
8  * http://qlib.quazzle.com\r
9  */\r
10 \r
11 function QButtonRes(style, width, height, normal, pressed, disabled) {\r
12     this.style = style;\r
13     this.width = width;\r
14     this.height = height;\r
15     this.imgN = new Image(width, height);\r
16     this.imgN.src = normal;\r
17     this.imgP = new Image(width, height);\r
18     this.imgP.src = pressed;\r
19     if (disabled) {\r
20         this.imgD = new Image(width, height);\r
21         this.imgD.src = disabled;\r
22     }\r
23 }\r