head	1.29;
access;
symbols
	tcllib-1-13:1.29
	tcllib-1-12:1.28
	tklib-0-5:1.26
	tcllib-1-11-1:1.25
	tcllib-1-11:1.25
	tklib-0-4-1:1.15
	tklib-0-4:1.15;
locks; strict;
comment	@# @;


1.29
date	2010.07.07.20.38.17;	author andreas_kupries;	state Exp;
branches;
next	1.28;

1.28
date	2009.10.13.06.42.02;	author afaupell;	state Exp;
branches;
next	1.27;

1.27
date	2009.05.21.16.32.24;	author andreas_kupries;	state Exp;
branches;
next	1.26;

1.26
date	2009.01.27.03.12.16;	author andreas_kupries;	state Exp;
branches;
next	1.25;

1.25
date	2008.03.12.07.25.49;	author hobbs;	state Exp;
branches;
next	1.24;

1.24
date	2007.05.17.15.57.11;	author afaupell;	state Exp;
branches;
next	1.23;

1.23
date	2007.02.23.23.28.33;	author hobbs;	state Exp;
branches;
next	1.22;

1.22
date	2007.02.23.22.59.59;	author hobbs;	state Exp;
branches;
next	1.21;

1.21
date	2006.12.14.18.02.34;	author afaupell;	state Exp;
branches;
next	1.20;

1.20
date	2006.12.13.00.14.20;	author hobbs;	state Exp;
branches;
next	1.19;

1.19
date	2006.08.04.16.37.13;	author hobbs;	state Exp;
branches;
next	1.18;

1.18
date	2006.07.18.22.29.59;	author andreas_kupries;	state Exp;
branches;
next	1.17;

1.17
date	2006.07.12.03.52.47;	author afaupell;	state Exp;
branches;
next	1.16;

1.16
date	2005.11.10.18.25.47;	author andreas_kupries;	state Exp;
branches;
next	1.15;

1.15
date	2005.11.07.18.52.35;	author andreas_kupries;	state Exp;
branches;
next	1.14;

1.14
date	2005.05.28.15.38.46;	author afaupell;	state Exp;
branches;
next	1.13;

1.13
date	2005.05.27.19.50.21;	author hobbs;	state Exp;
branches;
next	1.12;

1.12
date	2004.09.27.20.48.04;	author afaupell;	state Exp;
branches;
next	1.11;

1.11
date	2004.08.21.00.15.14;	author afaupell;	state Exp;
branches;
next	1.10;

1.10
date	2004.08.18.19.23.41;	author afaupell;	state Exp;
branches;
next	1.9;

1.9
date	2004.08.18.16.51.36;	author andreas_kupries;	state Exp;
branches;
next	1.8;

1.8
date	2004.08.17.17.36.41;	author afaupell;	state Exp;
branches;
next	1.7;

1.7
date	2004.07.28.03.32.19;	author afaupell;	state Exp;
branches;
next	1.6;

1.6
date	2004.07.27.06.20.43;	author afaupell;	state Exp;
branches;
next	1.5;

1.5
date	2004.07.27.02.35.11;	author andreas_kupries;	state Exp;
branches;
next	1.4;

1.4
date	2004.07.27.00.19.44;	author hobbs;	state Exp;
branches;
next	1.3;

1.3
date	2004.07.25.00.18.10;	author hobbs;	state Exp;
branches;
next	1.2;

1.2
date	2004.07.23.01.05.39;	author andreas_kupries;	state Exp;
branches;
next	1.1;

1.1
date	2004.07.22.21.07.01;	author hobbs;	state Exp;
branches;
next	;


desc
@@


1.29
log
@
	* ico.tcl: [Bug 3007168]: Fixed padding used for 24x24 icons.
	* ico.man: Further allowing writeIcon to create missing files.
	* pkgIndex.tcl: Bumped version to 1.0.5.
@
text
@2010-07-07  Andreas Kupries  <andreask@@activestate.com>

	* ico.tcl: [Bug 3007168]: Fixed padding used for 24x24 icons.
	* ico.man: Further allowing writeIcon to create missing files.
	* pkgIndex.tcl: Bumped version to 1.0.5.

2009-10-12  Aaron Faupell <afaupell@@users.sourceforge.net>

	* ico.tcl fix error messages to be more clear and refactor fileext
	  into gettype in the process.

2009-05-21  Andreas Kupries  <andreask@@activestate.com>

	* ico.man: Fixed issues in getIcon and writeIcon (semantic mismatches).
	* ico.tcl: With help by Aaron and Jeff to review and make the fixes simpler.
	* pkgIndex.tcl: Plus additional checks on file existence. Bumped version to 1.0.4.

2009-01-21  Andreas Kupries  <andreas_kupries@@users.sourceforge.net>

	*
	* Released and tagged Tklib 0.5 ========================
	* 

2008-03-12  Jeff Hobbs  <jeffh@@ActiveState.com>

	* ico.tcl (::ico::writeIconICODATA, ::ico::writeIconICO): correct the
	* pkgIndex.tcl: icon table header height info (was doubling),
	update version to 1.0.3.

2007-5-17  Aaron Faupell <afaupell@@users.sourceforge.net>

	* ico.tcl: fixed problem with reading BMPs and updated
	getFileIcon to search for additional icons (read CLSID)
	* ico.man: updated example and added verbage to getFileIcon

2007-02-23  Jeff Hobbs  <jeffh@@ActiveState.com>

	* ico0.tcl (::ico::readDIBFromData): correct row calc for edge
	case.  Bump version to 0.3.1

	* ico.tcl (::ico::getFileIcon): fixed for better overall support.
	[Bug 1660234] (Griffiths).
	Bumped version to 1.0.2

2006-12-14  Aaron Faupell <afaupell@@users.sourceforge.net>

	* ico.tcl: fixed problem in EXEtoICO and incremented version to 1.0.1

2006-12-12  Jeff Hobbs  <jeffh@@ActiveState.com>

	* ico.tcl (::ico::getFileIcon): fixed missing close ]

2006-08-04  Jeff Hobbs  <jeffh@@ActiveState.com>

	* ico0.tcl: added back ico 0.3 for compatibility
	* pkgIndex.tcl: note both 0.3 and 1.0 exist

2006-07-18  Andreas Kupries  <andreask@@gactivestate.com>

	* ico.man: Fixed syntax problems in the manpage.

2006-07-11  Aaron Faupell <afaupell@@users.sourceforge.net>

	* ico.tcl: many changes to add support for icon groups
	* ico.man: many changes to reflect new commands and usage
	**** update to v1.0 POTENTIAL INCOMPATIBILITY ****
	
2005-11-10  Andreas Kupries  <andreas_kupries@@users.sourceforge.net>

	*
	* Released and tagged Tklib 0.4.1 ========================
	* 

2005-11-02  Andreas Kupries  <andreas_kupries@@users.sourceforge.net>

	*
	* Released and tagged Tklib 0.4 ========================
	* 

2005-05-28  Aaron Faupell <afaupell@@users.sourceforge.net>

	* ico.tcl fixed padding algorithm to handle icons >48px

2005-05-27  Jeff Hobbs  <jeffh@@ActiveState.com>

	* ico.tcl (::ico::Show): handle >48px icons by resizing the frame.
	Currently >48px icons are not decoded properly by ico though.

2004-08-20  Aaron Faupell <afaupell@@users.sourceforge.net>

	* ico.tcl bugfix in writeIconEXE, called SearchForIcos
	with wrong args

2004-08-20  Aaron Faupell <afaupell@@users.sourceforge.net>

	* ico.tcl: added writing of BMP and ICODATA types.

2004-08-18  Aaron Faupell <afaupell@@users.sourceforge.net>

	* ico.tcl: added support for reading from BMP files
	Modified transparentColor to work on pixel list also.
	* ico.man: updated with the new functionality

2004-08-18  Andreas Kupries  <andreask@@activestate.com>

	* ico.man: Fixed problems with formatting of ico manpage.

2004-08-17  Aaron Faupell <afaupell@@users.sourceforge.net>

	* ico.tcl: CheckEXE removed and replaced by new SearchForIcos which
	calls SearchForIcosNE or SearchForIcosPE which atually parse the
	window resource tables resulting in a nice speed improvement
	over the old linear search. Also corrected all usage of fconfigure.

2004-07-27  Aaron Faupell <afaupell@@users.sourceforge.net>

	* ico.tcl: undocumented windows feature: if the first palette entry
	isnt black, the transparent background displays in odd colors. fixed
	getPaletteFromColors to initialize palette with black. changed header
	writing to use 0 for planes to be consistant with windows.

2004-07-26  Aaron Faupell <afaupell@@users.sourceforge.net>

	* ico.tcl: renamed some of the private API to be more descriptive.
	bugfix in writeIcon and translateColors and CopyIcon. simplified
	writeIconEXE.

2004-07-26  Andreas Kupries  <andreas_kupries@@users.sourceforge.net>

	* ico.man: Reworked the documentation a bit (fixed bugs, reordered
	  stuff a bit).

2004-07-26  Jeff Hobbs  <jeffh@@ActiveState.com>

	* pkgIndex.tcl, ico.man, ico.tcl: add -type ICODATA as a way pass
	ICO data instead of a filename. Currently supports read, not write.
	Made 'package require Tk' only get called as necessary for the api.
	Code cleanup, update to v0.3.

	* ico.man (new):
	* ico.tcl: revamp of API from Aaron, more public APIs.

2004-07-24  Jeff Hobbs  <jeffh@@ActiveState.com>

	* ico.tcl (::ico::getIconImageFromData): add call to retrive icon
	image from ICO info as data (not "official", may change).

2004-07-22  Jeff Hobbs  <jeffh@@ActiveState.com>

	* ico.tcl: added to tklib as v0.2.
	Primary usage is like so:
		set file bin/wish.exe
		set icos [::ico::getIcons $file]
		set img  [::ico::getIconImage $file -index 1]
@


1.28
log
@2009-10-12  Aaron Faupell <afaupell@@users.sourceforge.net>

        * ico.tcl fix error messages to be more clear and refactor fileext into gettype in the process
@
text
@d1 6
d9 2
a10 1
	* ico.tcl fix error messages to be more clear and refactor fileext into gettype in the process
@


1.27
log
@
	* ico.man: Fixed issues in getIcon and writeIcon (semantic mismatches).
	* ico.tcl: With help by Aaron and Jeff to review and make the fixes simpler.
	* pkgIndex.tcl: Plus additional checks on file existence. Bumped version to 1.0.4.
@
text
@d1 4
@


1.26
log
@Released and tagged Tklib 0.5
@
text
@d1 6
@


1.25
log
@	* ico.tcl (::ico::writeIconICODATA, ::ico::writeIconICO): correct the
	* pkgIndex.tcl: icon table header height info (was doubling),
	update version to 1.0.3.
@
text
@d1 6
@


1.24
log
@2007-5-17  Aaron Faupell <afaupell@@users.sourceforge.net>

        * ico.tcl: fixed problem with reading BMPs and updated
        getFileIcon to search for additional icons (read CLSID)
        * ico.man: updated example and added verbage to getFileIcon
@
text
@d1 6
@


1.23
log
@	* ico0.tcl (::ico::readDIBFromData): correct row calc for edge
	case.  Bump version to 0.3.1
@
text
@d1 6
@


1.22
log
@	* ico.tcl (::ico::getFileIcon): fixed for better overall support.
	[Bug 1660234] (Griffiths).
	Bumped version to 1.0.2
@
text
@d3 3
@


1.21
log
@2006-12-14  Aaron Faupell <afaupell@@users.sourceforge.net>

        * ico.tcl: fixed problem in EXEtoICO and incremented version to 1.0.1
@
text
@d1 6
@


1.20
log
@	* ico.tcl (::ico::getFileIcon): fixed missing close ]
@
text
@d1 4
@


1.19
log
@	* ico0.tcl: added back ico 0.3 for compatibility
	* pkgIndex.tcl: note both 0.3 and 1.0 exist
@
text
@d1 4
@


1.18
log
@
	* ico.man: Fixed syntax problems in the manpage.
@
text
@d1 5
d14 2
a15 1

d48 3
a50 3
        * ico.tcl: added support for reading from BMP files
        Modified transparentColor to work on pixel list also.
        * ico.man: updated with the new functionality
@


1.17
log
@2006-07-11  Aaron Faupell <afaupell@@users.sourceforge.net>

        * ico.tcl: many changes to add support for icon groups
        * ico.man: many changes to reflect new commands and usage
@
text
@d1 4
@


1.16
log
@Generated release 0.4.1. Tagged as well.
@
text
@d1 5
@


1.15
log
@Released and tagged Tklib 0.4.
@
text
@d1 6
@


1.14
log
@2005-05-28  Aaron Faupell <afaupell@@users.sourceforge.net>

        * ico.tcl fixed padding algorithm to handle icons >48px
@
text
@d1 6
@


1.13
log
@	* ico.tcl (::ico::Show): handle >48px icons by resizing the frame.
	Currently >48px icons are not decoded properly by ico though.
@
text
@d1 4
@


1.12
log
@aron Faupell <afaupell@@users.sourceforge.net>

        * ico.tcl bugfix in writeIconEXE, called SearchForIcos
        with wrong args
@
text
@d1 5
@


1.11
log
@2004-08-20  Aaron Faupell <afaupell@@users.sourceforge.net>

        * ico.tcl: added writing of BMP and ICODATA types.
@
text
@d3 5
@


1.10
log
@2004-08-18  Aaron Faupell <afaupell@@users.sourceforge.net>

        * ico.tcl: added support for reading from BMP files
        Modified transparentColor to work on pixel list also.
        * ico.man: updated with the new functionality
@
text
@d1 4
@


1.9
log
@
	* ico.man: Fixed problems with formatting of ico manpage.
@
text
@d1 6
@


1.8
log
@2004-08-17  Aaron Faupell <afaupell@@users.sourceforge.net>

        * ico.tcl: CheckEXE removed and replaced by new SearchForIcos which
        calls SearchForIcosNE or SearchForIcosPE which atually parse the
        window resource tables resulting in a nice speed improvement
        over the old linear search. Also corrected all usage of fconfigure.
@
text
@d1 4
@


1.7
log
@2004-07-27  Aaron Faupell <afaupell@@users.sourceforge.net>

        * ico.tcl: undocumented windows feature: if the first palette entry
        isnt black, the transparent background displays in odd colors. fixed
        getPaletteFromColors to initialize palette with black. changed header
        writing to use 0 for planes to be consistant with windows.
@
text
@d1 7
@


1.6
log
@2004-07-26  Aaron Faupell <afaupell@@users.sourceforge.net>

        * ico.tcl: renamed some of the private API to be more descriptive.
        bugfix in writeIcon and translateColors and CopyIcon. simplified
        writeIconEXE.
@
text
@d1 7
@


1.5
log
@Fixed bugs in doc, reordered stuff a bit.

Import ico work by Jeff and Aaron.
@
text
@d1 6
@


1.4
log
@	* pkgIndex.tcl, ico.man, ico.tcl: add -type ICODATA as a way pass
	ICO data instead of a filename. Currently supports read, not write.
	Made 'package require Tk' only get called as necessary for the api.
	Code cleanup, update to v0.3.
@
text
@d1 5
@


1.3
log
@	* ico.tcl (::ico::getIconImageFromData): add call to retrive icon
	image from ICO info as data (not "official", may change).
@
text
@d1 10
@


1.2
log
@Changelog merge.

New module: ico.
@
text
@d1 5
@


1.1
log
@	* installed_modules.tcl: added ico to list of installed modules.
	* modules/ico/*: new 'ico' module for extracting icos from exe/ico
	files - works x-platform.
@
text
@d1 7
a7 7
2004-07-22  Jeff Hobbs  <jeffh@@ActiveState.com>

	* ico.tcl: added to tklib as v0.2.
	Primary usage is like so:
		set file bin/wish.exe
		set icos [::ico::getIcons $file]
		set img  [::ico::getIconImage $file -index 1]
@

