[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: Showing the sticky tag (Was: Feature request <g>)


	Oeps!  It seems the attached document disappeared.  Again, with the
file in the body of the message:
_______________________________________________________________________
Index: ./com/ice/jcvsii/EntryColumnModel.java
===================================================================
RCS file: /NQ-rep/./com/ice/jcvsii/EntryColumnModel.java,v
retrieving revision 1.1
retrieving revision 1.1.2.2
diff -r1.1 -r1.1.2.2
4c4
< ** 
---
> **
6c6
< ** 
---
> **
19,20c19,20
< ** REDISTRIBUTION OF THIS SOFTWARE. 
< ** 
---
> ** REDISTRIBUTION OF THIS SOFTWARE.
> **
50a51,55
> 		titleStr = rmgr.getUIString( "project.tree.tag.header" );
> 		tblCol = new TableColumn( 2, 50 );
> 		tblCol.setHeaderValue( titleStr );
> 		this.addColumn( tblCol );
> 
52c57
< 		tblCol = new TableColumn( 2, 150 );
---
> 		tblCol = new TableColumn( 3, 150 );
106c111
< 	getModifiedWidth()
---
> 	getTagWidth()
112c117
< 	setModifiedWidth( int w )
---
> 	setTagWidth( int w )
115a121,133
> 		}
> 
> 	public int
> 	getModifiedWidth()
> 		{
> 		return this.getColumn(3).getWidth();
> 		}
> 
> 	public void
> 	setModifiedWidth( int w )
> 		{
> 		this.getColumn(3).setWidth( w );
> 		this.getColumn(3).setPreferredWidth( w );
Index: ./com/ice/jcvsii/EntryNode.java
===================================================================
RCS file: /NQ-rep/./com/ice/jcvsii/EntryNode.java,v
retrieving revision 1.1
retrieving revision 1.1.2.2
diff -r1.1 -r1.1.2.2
4c4
< ** 
---
> **
6c6
< ** 
---
> **
19,20c19,20
< ** REDISTRIBUTION OF THIS SOFTWARE. 
< ** 
---
> ** REDISTRIBUTION OF THIS SOFTWARE.
> **
72c72
< 		{ 
---
> 		{
87c87
< 		{ 
---
> 		{
111c111
< 	 * Returns this node's CVSEntry.
---
> 	 * Returns the version of this node's CVSEntry.
115c115
< 		{ 
---
> 		{
119a120,128
> 	 * Returns the tag of this node's CVSEntry.
> 	 */
> 	public String
> 	getEntryTag()
> 		{
> 		return this.entry.getTag();
> 		}
> 
> 	/**
166c175
< 		{ 
---
> 		{
206c215
<     
---
> 
252c261
< 		
---
> 
301c310
< 		} 
---
> 		}
Index: ./com/ice/jcvsii/EntryTreeRenderer.java
===================================================================
RCS file: /NQ-rep/./com/ice/jcvsii/EntryTreeRenderer.java,v
retrieving revision 1.1
retrieving revision 1.1.2.2
diff -r1.1 -r1.1.2.2
170a171,182
> 	getTagWidth()
> 		{
> 		return this.model.getTagWidth();
> 		}
> 
> 	public void
> 	setTagWidth( int w )
> 		{
> 		this.model.setTagWidth( w );
> 		}
> 
> 	public int
269c281
< 		Rectangle modfR =
---
> 		Rectangle tagR =
271a284,288
> 					this.getTagWidth(), height );
> 
> 		Rectangle modfR =
> 			new Rectangle
> 				( (tagR.x + tagR.width), ins.top,
354a372,407
> 			// E N T R Y    T A G
> 			//
> 			text = this.node.getEntryTag();
> 			if ( text != null )
> 				{
> 				g.setClip( tagR.intersection(clipBounds) );
> 
> 				int textX = tagR.x + 1; // REVIEW should be property
> 				int textY = tagR.y + baseLine;
> 
> 				if ( false && this.isSelected )
> 					{
> 					int w = fm.stringWidth( text ) + 3;
> 					Rectangle hiR =
> 						new Rectangle
> 							( versR.x, textY - fAscent, w, fHeight );
> 
> 					g.setColor( new Color(200, 200, 200 ) );
> 					g.fillRect( hiR.x, hiR.y, hiR.width, hiR.height );
> 					}
> 
> 				g.setColor( Color.black );
> 				g.drawString( text, textX, textY );
> 
> 				if ( this.isSelected && this.hasFocus )
> 					{
> 					int w = fm.stringWidth( text ) + 1;
> 					int x1 = tagR.x;
> 					int x2 = tagR.x + w;
> 					int y = textY + 1;
> 					g.setColor( Color.gray );
> 					g.drawLine( x1, y, x2, y );
> 					}
> 				}
> 
> 			//
398c451
< 			g.drawRect( versR.x, versR.y, versR.width, versR.height );
---
> 			g.drawRect( tagR.x, tagR.y, tagR.width, tagR.height );
Index: ./com/ice/jcvsii/rsrcui.properties
===================================================================
RCS file: /NQ-rep/./com/ice/jcvsii/rsrcui.properties,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -r1.1 -r1.1.2.1
211a212
> project.tree.tag.header=Tag
_______________________________________________________________________
--
FAGOT Alain  -  alain@netlinq.nl
NetlinQ Groep  -  info@netlinq.nl  -  http://www.netlinq.nl/
Gerard Brandtstraat 26-28  -  1054JK Amsterdam  -  Nederland