|
From: Thyamad c. <th...@us...> - 2006-01-26 17:58:41
|
Update of /cvsroot/thyapi/thyapi/thywidgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7257/thywidgets Modified Files: thywindow.js Log Message: Commiting file additions and modification from SVN revision 2722 to 2723... Changes made by frank on 2006-01-26 20:04:45 +0100 (Thu, 26 Jan 2006) corresponding to SVN revision 2723 with message: I converted the thywindow from thyborderpanel to thypanel.. for this I was forced to add background and border information in css Index: thywindow.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/thywindow.js,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** thywindow.js 16 Jan 2006 03:36:40 -0000 1.8 --- thywindow.js 26 Jan 2006 17:58:32 -0000 1.9 *************** *** 19,23 **** * Class: thyWindow * ! * This class implements the infamous Window widget. As it is derivate * from thyBorderPanel, it has borders and all the CSS classes that widget * has. --- 19,23 ---- * Class: thyWindow * ! * This class implements the infamous Window widget. As it is derivate * from thyBorderPanel, it has borders and all the CSS classes that widget * has. *************** *** 44,48 **** function thyWindow(name,title,html) { ! this.thyBorderPanel = thyBorderPanel; this.thyBorderPanel(name); --- 44,49 ---- function thyWindow(name,title,html) { ! this.thyBorderPanel = thyPanel; ! // this.thyBorderPanel = thyBorderPanel; this.thyBorderPanel(name); *************** *** 62,69 **** this.content.cssExtraClasses = this.cssExtraClasses; this.titleLayer.cssExtraClasses = this.cssExtraClasses; ! // Turn Window into Draggable element this.winDragBorder.setAnchor({ ! topA: this.id, leftA: this.id }); --- 63,70 ---- this.content.cssExtraClasses = this.cssExtraClasses; this.titleLayer.cssExtraClasses = this.cssExtraClasses; ! // Turn Window into Draggable element this.winDragBorder.setAnchor({ ! topA: this.id, leftA: this.id }); *************** *** 131,135 **** if (data['title']) this.setTitle(data['title']); } ! /** * Method: setTitle --- 132,136 ---- if (data['title']) this.setTitle(data['title']); } ! /** * Method: setTitle *************** *** 141,154 **** { this.titleLayer.setHTML(''); ! this.setSize('',''); this.setDisplay(true); ! var w = this.titleLayer.getWidth(); ! this.titleLayer.setHTML(title); var length = title.length; ! if (w >= this.titleLayer.getWidth()) { --- 142,155 ---- { this.titleLayer.setHTML(''); ! this.setSize('',''); this.setDisplay(true); ! var w = this.titleLayer.getWidth(); ! this.titleLayer.setHTML(title); var length = title.length; ! if (w >= this.titleLayer.getWidth()) { *************** *** 162,169 **** this.titleLayer.setHTML(dynapi.functions.limitString(title,length)); } ! this.titleLayer.setHTML(dynapi.functions.limitString(title,length-3)); } ! if (!this.openned) { --- 163,170 ---- this.titleLayer.setHTML(dynapi.functions.limitString(title,length)); } ! this.titleLayer.setHTML(dynapi.functions.limitString(title,length-3)); } ! if (!this.openned) { *************** *** 204,208 **** }; ! if (!this._created) { this.onCreate(position); --- 205,209 ---- }; ! if (!this._created) { this.onCreate(position); *************** *** 212,216 **** position(); } ! this.setZIndex({topmost: true}); this.titleLayer.setZIndex({above: this}); --- 213,217 ---- position(); } ! this.setZIndex({topmost: true}); this.titleLayer.setZIndex({above: this}); *************** *** 237,241 **** this.invokeEvent('close', new DynEvent('close',this)); } ! p._thyBordePanelSetName = p.setName; /** --- 238,242 ---- this.invokeEvent('close', new DynEvent('close',this)); } ! p._thyBordePanelSetName = p.setName; /** *************** *** 253,257 **** { if (name == null || this.name == name) return; ! this._thyBorderPanelSetName(name); if (this.titleLayer) this.titleLayer.setName(name+'_title'); --- 254,258 ---- { if (name == null || this.name == name) return; ! this._thyBorderPanelSetName(name); if (this.titleLayer) this.titleLayer.setName(name+'_title'); *************** *** 283,287 **** if (this.winDragBorder) this.winDragBorder.setCSSClass(type); } ! p._thyBorderPanelAddChild = p.addChild; /** --- 284,288 ---- if (this.winDragBorder) this.winDragBorder.setCSSClass(type); } ! p._thyBorderPanelAddChild = p.addChild; /** *************** *** 307,311 **** this.content.removeChild(c); } ! /** * Method: getInnerHTML --- 308,312 ---- this.content.removeChild(c); } ! /** * Method: getInnerHTML *************** *** 374,378 **** else this.stick(); } ! /*************************************************************************\ * Private Methods * --- 375,379 ---- else this.stick(); } ! /*************************************************************************\ * Private Methods * *************** *** 397,401 **** var positions_x = thyWindow._positions_x; var positions_y = thyWindow._positions_y; ! var w = dynapi.document.getWidth(); var h = dynapi.document.getHeight(); --- 398,402 ---- var positions_x = thyWindow._positions_x; var positions_y = thyWindow._positions_y; ! var w = dynapi.document.getWidth(); var h = dynapi.document.getHeight(); *************** *** 411,415 **** var i; ! for (i in positions_x) { --- 412,416 ---- var i; ! for (i in positions_x) { *************** *** 433,437 **** positions_y[thyWin.name] = new Object(); } ! positions_x[thyWin.name][x] = x; positions_y[thyWin.name][y] = y; --- 434,438 ---- positions_y[thyWin.name] = new Object(); } ! positions_x[thyWin.name][x] = x; positions_y[thyWin.name][y] = y; *************** *** 458,462 **** delete positions_x[thyWin.name]; } ! if (positions_y[thyWin.name]) { --- 459,463 ---- delete positions_x[thyWin.name]; } ! if (positions_y[thyWin.name]) { *************** *** 477,481 **** this._thyBorderPanel_destroy(); } ! p._thyBorderPanel_addCSSClass = p._addCSSClass; /** --- 478,482 ---- this._thyBorderPanel_destroy(); } ! p._thyBorderPanel_addCSSClass = p._addCSSClass; /** *************** *** 493,497 **** { this._thyBorderPanel_addCSSClass(cssClass); ! if (this.titleLayer) { this.titleLayer._addCSSClass(cssClass+'_title'); --- 494,498 ---- { this._thyBorderPanel_addCSSClass(cssClass); ! if (this.titleLayer) { this.titleLayer._addCSSClass(cssClass+'_title'); *************** *** 502,506 **** } } ! p._thyBorderPanel_removeCSSClass = p._removeCSSClass; /** --- 503,507 ---- } } ! p._thyBorderPanel_removeCSSClass = p._removeCSSClass; /** *************** *** 518,522 **** { this._thyBorderPanel_removeCSSClass(cssClass); ! if (this.titleLayer) { this.titleLayer._removeCSSClass(cssClass+'_title'); --- 519,523 ---- { this._thyBorderPanel_removeCSSClass(cssClass); ! if (this.titleLayer) { this.titleLayer._removeCSSClass(cssClass+'_title'); |