joel/kofoto.git
13 years agoAdded full screen view button. Reordered table and single object view
Joel Rosdahl [Sun, 29 Jan 2006 17:32:18 +0000 (17:32 +0000)]
Added full screen view button. Reordered table and single object view
buttons. Moved up full screen menu entry to the same section as the
other view entries.

Removed obsolete thumbnail view code.

13 years agoPEP8-ified raise clauses.
Joel Rosdahl [Sun, 29 Jan 2006 16:49:41 +0000 (16:49 +0000)]
PEP8-ified raise clauses.

13 years agoAdded some more debug code.
Joel Rosdahl [Sat, 28 Jan 2006 08:48:28 +0000 (08:48 +0000)]
Added some more debug code.

13 years agoImproved preloading and unloading in single object view.
Joel Rosdahl [Sat, 28 Jan 2006 08:36:28 +0000 (08:36 +0000)]
Improved preloading and unloading in single object view.

13 years agoMore work on the fullscreen view:
Joel Rosdahl [Thu, 26 Jan 2006 21:27:18 +0000 (21:27 +0000)]
More work on the fullscreen view:

Display end-of-display screen before first and after last image.

Added bindings for home and end keys.

Bound left mouse click to forward.

Removed ugly hack for catching too early loads/preloads; now requests
of previous size are unloaded from the cache instead.

13 years agoRefactored FullscreenWindow._after_map_event.
Joel Rosdahl [Tue, 24 Jan 2006 21:45:23 +0000 (21:45 +0000)]
Refactored FullscreenWindow._after_map_event.

13 years agoImproved FullscreenWindow:
Joel Rosdahl [Tue, 24 Jan 2006 21:32:03 +0000 (21:32 +0000)]
Improved FullscreenWindow:

Set background of the background window to black early to avoid flickering.

Added hack to avoid loading (and preloading) too early so that too small images
are requested.

13 years agoMore PEP8 changes.
Joel Rosdahl [Tue, 24 Jan 2006 20:56:33 +0000 (20:56 +0000)]
More PEP8 changes.

13 years agoBind Down and Up to next/previous in fullscreen view.
Joel Rosdahl [Tue, 24 Jan 2006 20:54:31 +0000 (20:54 +0000)]
Bind Down and Up to next/previous in fullscreen view.

13 years agoMake pylint happier.
Joel Rosdahl [Tue, 24 Jan 2006 20:52:58 +0000 (20:52 +0000)]
Make pylint happier.

13 years agoRemoving set_keep_above from fullscreen view
Ulrik Svensson [Tue, 24 Jan 2006 19:30:24 +0000 (19:30 +0000)]
Removing set_keep_above from fullscreen view

13 years agoBind PageDown and PageUp to next/previous in fullscreen view.
Joel Rosdahl [Mon, 23 Jan 2006 21:47:24 +0000 (21:47 +0000)]
Bind PageDown and PageUp to next/previous in fullscreen view.

13 years agoHide mouse cursor in fullscreen view
Ulrik Svensson [Mon, 23 Jan 2006 20:53:24 +0000 (20:53 +0000)]
Hide mouse cursor in fullscreen view

13 years agoSwitch to fullscreen mode when double-clicking on image in single object view.
Joel Rosdahl [Mon, 23 Jan 2006 20:18:21 +0000 (20:18 +0000)]
Switch to fullscreen mode when double-clicking on image in single object view.

13 years agoBetter activation of object view from row activation in table view.
Joel Rosdahl [Mon, 23 Jan 2006 20:11:33 +0000 (20:11 +0000)]
Better activation of object view from row activation in table view.

13 years agoAdded simplistic fullscreen view. Partly resolves ticket #33
Ulrik Svensson [Mon, 23 Jan 2006 19:58:10 +0000 (19:58 +0000)]
Added simplistic fullscreen view. Partly resolves ticket #33

13 years agoSwitch to single object view when a row is activated in the table view.
Joel Rosdahl [Mon, 23 Jan 2006 19:56:11 +0000 (19:56 +0000)]
Switch to single object view when a row is activated in the table view.

13 years agoIncrease (for now hard-coded) cache size to 20 Mpixel (about 60 MB).
Joel Rosdahl [Mon, 23 Jan 2006 19:47:58 +0000 (19:47 +0000)]
Increase (for now hard-coded) cache size to 20 Mpixel (about 60 MB).

13 years agoPreloads should now be done with least important first.
Joel Rosdahl [Mon, 23 Jan 2006 18:48:03 +0000 (18:48 +0000)]
Preloads should now be done with least important first.

13 years agoBug fix in ImageView.get_wanted_image_size.
Joel Rosdahl [Sat, 21 Jan 2006 17:35:47 +0000 (17:35 +0000)]
Bug fix in ImageView.get_wanted_image_size.

13 years agokofoto.gkofoto.imagepreloader: Removed; obsoleted by
Joel Rosdahl [Wed, 18 Jan 2006 21:40:23 +0000 (21:40 +0000)]
kofoto.gkofoto.imagepreloader: Removed; obsoleted by
CachingPixbufLoader. Ticket #86.

kofoto.gkofoto.mainwindow: Removed ImagePreloader instance.

kofoto.gkofoto.environment: Add global CachingPixbufLoader instance to
the environment.

kofoto.gkofoto.imageview: Implemented a new ImageView with better API
and performance.

kofoto.gkofoto.singleobjectview, kofoto.gkofoto.imageversionslist and
kofoto.gkofoto.objectcollection: Use the new ImageView and
CachingPixbufLoader.

kofoto.common: Removed obsolete rectangle calculation functions; moved
to kofoto.rectangle.Rectangle.

13 years agoRestructured test code.
Joel Rosdahl [Wed, 18 Jan 2006 21:39:24 +0000 (21:39 +0000)]
Restructured test code.

13 years agoWhitespace fix.
Joel Rosdahl [Wed, 18 Jan 2006 21:12:04 +0000 (21:12 +0000)]
Whitespace fix.

13 years agoDoc-string fixes.
Joel Rosdahl [Wed, 18 Jan 2006 21:08:52 +0000 (21:08 +0000)]
Doc-string fixes.

13 years agoRaise priority of the pixbuf loader's load thread when processing load
Joel Rosdahl [Wed, 18 Jan 2006 20:25:58 +0000 (20:25 +0000)]
Raise priority of the pixbuf loader's load thread when processing load
requests.

13 years agoAdded set_priority method to PseudoThread.
Joel Rosdahl [Wed, 18 Jan 2006 20:24:07 +0000 (20:24 +0000)]
Added set_priority method to PseudoThread.

13 years agoBug fix in pruning logic.
Joel Rosdahl [Mon, 16 Jan 2006 22:13:23 +0000 (22:13 +0000)]
Bug fix in pruning logic.

13 years agoImplemented unload_all method in CachingPixbufLoader.
Joel Rosdahl [Mon, 16 Jan 2006 21:31:40 +0000 (21:31 +0000)]
Implemented unload_all method in CachingPixbufLoader.

13 years agoUse Rectangle's scaling routines.
Joel Rosdahl [Mon, 16 Jan 2006 20:48:55 +0000 (20:48 +0000)]
Use Rectangle's scaling routines.

13 years agoMinor bug fix.
Joel Rosdahl [Mon, 16 Jan 2006 20:47:32 +0000 (20:47 +0000)]
Minor bug fix.

13 years agokofoto.gkofoto.cachingpixbufloader: New module with a caching pixbuf
Joel Rosdahl [Mon, 16 Jan 2006 20:44:44 +0000 (20:44 +0000)]
kofoto.gkofoto.cachingpixbufloader: New module with a caching pixbuf
loader, to be used by the new, yet uncommitted image view and in the
future for loading and caching thumbnails.

Disk caching is not yet implemented, though.

13 years agoNew convenience function: kofoto.gkofoto.pixbufloader.get_pixbuf_size.
Joel Rosdahl [Mon, 16 Jan 2006 20:26:52 +0000 (20:26 +0000)]
New convenience function: kofoto.gkofoto.pixbufloader.get_pixbuf_size.

Other minor clarifications in
kofoto.gkofoto.pixbufloader.PixbufLoader.

13 years agoNew module: kofoto.rectangle.
Joel Rosdahl [Mon, 16 Jan 2006 20:24:42 +0000 (20:24 +0000)]
New module: kofoto.rectangle.

13 years agoMinor performance and clarity improvements.
Joel Rosdahl [Mon, 16 Jan 2006 20:11:58 +0000 (20:11 +0000)]
Minor performance and clarity improvements.

13 years agoImplemented PixbufLoader.
Joel Rosdahl [Thu, 29 Dec 2005 12:01:29 +0000 (12:01 +0000)]
Implemented PixbufLoader.

13 years agoAdded insert_after, insert_before, insert_first and insert_last
Joel Rosdahl [Fri, 16 Dec 2005 22:16:47 +0000 (22:16 +0000)]
Added insert_after, insert_before, insert_first and insert_last
methods to InsertionOrderedMapping.

13 years agoImproved doc string.
Joel Rosdahl [Tue, 13 Dec 2005 19:27:33 +0000 (19:27 +0000)]
Improved doc string.

13 years agoPEP8-ified function names in kofoto.common.
Joel Rosdahl [Tue, 13 Dec 2005 19:27:10 +0000 (19:27 +0000)]
PEP8-ified function names in kofoto.common.

New function: kofoto.common.calculate_rescaled_size.

13 years agoImplemented InsertionOrderedMapping class to be used by the new
Joel Rosdahl [Sun, 4 Dec 2005 13:32:41 +0000 (13:32 +0000)]
Implemented InsertionOrderedMapping class to be used by the new
caching image loader.

13 years agoObjectCollection: Bug fix in object collection loading.
Joel Rosdahl [Mon, 28 Nov 2005 18:15:04 +0000 (18:15 +0000)]
ObjectCollection: Bug fix in object collection loading.

PseudoThread: Docstring updates.

14 years agoDoc string fixes.
Joel Rosdahl [Mon, 14 Nov 2005 20:35:33 +0000 (20:35 +0000)]
Doc string fixes.

14 years agoImproved speed of object collection loading.
Joel Rosdahl [Mon, 14 Nov 2005 20:11:55 +0000 (20:11 +0000)]
Improved speed of object collection loading.

14 years agoUse a PseudoThread instead of an explicit idle handler to load object
Joel Rosdahl [Mon, 14 Nov 2005 19:22:39 +0000 (19:22 +0000)]
Use a PseudoThread instead of an explicit idle handler to load object
collection.

14 years agoCreated PseudoThread class.
Joel Rosdahl [Mon, 14 Nov 2005 19:21:38 +0000 (19:21 +0000)]
Created PseudoThread class.

14 years agoAdded new utility for exporting images and adding EXIF/IPTC meta data
Ulrik Svensson [Sat, 15 Oct 2005 23:03:38 +0000 (23:03 +0000)]
Added new utility for exporting images and adding EXIF/IPTC meta data

14 years agoMerged bug fix from the version-0.4.x branch.
Joel Rosdahl [Tue, 11 Oct 2005 06:16:27 +0000 (06:16 +0000)]
Merged bug fix from the version-0.4.x branch.

14 years agoMerged changes from the version-0.4.x branch to the trunk.
Joel Rosdahl [Mon, 10 Oct 2005 17:45:22 +0000 (17:45 +0000)]
Merged changes from the version-0.4.x branch to the trunk.

14 years agoWhitespace cleanup.
Joel Rosdahl [Mon, 10 Oct 2005 17:44:46 +0000 (17:44 +0000)]
Whitespace cleanup.

14 years agoReleased version 0.4.1.
Joel Rosdahl [Mon, 10 Oct 2005 17:43:48 +0000 (17:43 +0000)]
Released version 0.4.1.

14 years agoPreparations for version 0.4.1.
Joel Rosdahl [Mon, 10 Oct 2005 17:31:15 +0000 (17:31 +0000)]
Preparations for version 0.4.1.

14 years agoCorrected variable reference in
Joel Rosdahl [Mon, 10 Oct 2005 17:27:59 +0000 (17:27 +0000)]
Corrected variable reference in
kofoto.gkofoto.clipboard.Clipboard.setObjects. Fix for ticket #113.

14 years agoMerged changes from the version-0.4.x branch to the trunk.
Joel Rosdahl [Sun, 9 Oct 2005 16:00:53 +0000 (16:00 +0000)]
Merged changes from the version-0.4.x branch to the trunk.

14 years agoReleased version 0.4.
Joel Rosdahl [Sun, 9 Oct 2005 15:56:50 +0000 (15:56 +0000)]
Released version 0.4.

14 years agoInclude libraries not found by py2exe but needed by libpixbufloader-*.dll
Joel Rosdahl [Sun, 9 Oct 2005 15:41:52 +0000 (15:41 +0000)]
Include libraries not found by py2exe but needed by libpixbufloader-*.dll
plugins.

14 years agoCompensate for pygtk.require() failing when running py2exe gkofoto.
Joel Rosdahl [Sun, 9 Oct 2005 15:40:46 +0000 (15:40 +0000)]
Compensate for pygtk.require() failing when running py2exe gkofoto.

14 years agoImproved build of py2exe installer.
Joel Rosdahl [Sun, 9 Oct 2005 14:27:14 +0000 (14:27 +0000)]
Improved build of py2exe installer.

14 years agoPreparations for version 0.4.
Joel Rosdahl [Sun, 9 Oct 2005 14:10:00 +0000 (14:10 +0000)]
Preparations for version 0.4.

14 years agoUpdated installation requirements.
Joel Rosdahl [Sun, 9 Oct 2005 13:23:18 +0000 (13:23 +0000)]
Updated installation requirements.

14 years agoImplemented reread-exif command (ticket #18).
Joel Rosdahl [Sun, 9 Oct 2005 08:23:20 +0000 (08:23 +0000)]
Implemented reread-exif command (ticket #18).

14 years agoRemoved left-over test code.
Joel Rosdahl [Sun, 9 Oct 2005 08:18:12 +0000 (08:18 +0000)]
Removed left-over test code.

14 years agoNew commandline option: -0/--null.
Joel Rosdahl [Sun, 9 Oct 2005 08:13:03 +0000 (08:13 +0000)]
New commandline option: -0/--null.

14 years agoMake sure kofoto.shelf.makeValidTag always returns Unicode strings.
Joel Rosdahl [Sun, 9 Oct 2005 07:52:13 +0000 (07:52 +0000)]
Make sure kofoto.shelf.makeValidTag always returns Unicode strings.

14 years agoCorrectly import exceptions from kofoto.shelfexceptions.
Joel Rosdahl [Sun, 9 Oct 2005 07:37:47 +0000 (07:37 +0000)]
Correctly import exceptions from kofoto.shelfexceptions.

14 years agoWork-around for buggy EXIF library.
Joel Rosdahl [Sun, 9 Oct 2005 07:33:15 +0000 (07:33 +0000)]
Work-around for buggy EXIF library.

14 years agoRemove left-over call to pygtk.require; it should only by done in
Joel Rosdahl [Sat, 8 Oct 2005 20:57:45 +0000 (20:57 +0000)]
Remove left-over call to pygtk.require; it should only by done in
kofoto.gkofoto.environment. Fix for ticket #112.

14 years agoMinor Unicode fixes.
Joel Rosdahl [Tue, 4 Oct 2005 20:59:15 +0000 (20:59 +0000)]
Minor Unicode fixes.

14 years agoDisable key bindings for going to the next and previous image for now
Joel Rosdahl [Sun, 2 Oct 2005 19:50:51 +0000 (19:50 +0000)]
Disable key bindings for going to the next and previous image for now
(closes ticket #102, opens ticket #60).

14 years agoMajor review of Unicode usage in all code. The new code should, with
Joel Rosdahl [Sun, 2 Oct 2005 19:27:07 +0000 (19:27 +0000)]
Major review of Unicode usage in all code. The new code should, with
one exception, hopefully be functionally equivalent to the old code,
but cleaner and more consistent. The exception is file path handling
in Windows, which now should work better for non-ASCII paths (ticket
#108).

14 years agoIcons not shown, Ticket #109
Ulrik Svensson [Thu, 29 Sep 2005 18:36:34 +0000 (18:36 +0000)]
Icons not shown, Ticket #109

14 years agoDefault to utf-8 in generated HTML pages. Ticket #99.
Joel Rosdahl [Thu, 29 Sep 2005 18:12:34 +0000 (18:12 +0000)]
Default to utf-8 in generated HTML pages. Ticket #99.

14 years agoAdded __all__ definition to kofoto.commandline.main.
Joel Rosdahl [Thu, 29 Sep 2005 18:07:48 +0000 (18:07 +0000)]
Added __all__ definition to kofoto.commandline.main.

14 years agoHide file chooser dialog when processing files in the image
Joel Rosdahl [Thu, 29 Sep 2005 18:01:20 +0000 (18:01 +0000)]
Hide file chooser dialog when processing files in the image
registration dialog. Ticket #103.

And likewise for the handle images dialog.

14 years agoRefactoring to get away from cyclical imports.
Joel Rosdahl [Wed, 28 Sep 2005 20:14:50 +0000 (20:14 +0000)]
Refactoring to get away from cyclical imports.

14 years agoMore pylint-related changes.
Joel Rosdahl [Wed, 28 Sep 2005 19:47:02 +0000 (19:47 +0000)]
More pylint-related changes.

14 years agoMore pylint-related changes.
Joel Rosdahl [Tue, 27 Sep 2005 22:07:11 +0000 (22:07 +0000)]
More pylint-related changes.

14 years agoFix bug introduced in the pylint cleanup race.
Joel Rosdahl [Tue, 27 Sep 2005 22:03:01 +0000 (22:03 +0000)]
Fix bug introduced in the pylint cleanup race.

14 years agoDoc string fix.
Joel Rosdahl [Tue, 27 Sep 2005 06:32:45 +0000 (06:32 +0000)]
Doc string fix.

14 years agoMore pylint-related changes.
Joel Rosdahl [Tue, 27 Sep 2005 06:28:57 +0000 (06:28 +0000)]
More pylint-related changes.

14 years agoRefactoring and more pylint-related changes.
Joel Rosdahl [Sun, 25 Sep 2005 20:47:52 +0000 (20:47 +0000)]
Refactoring and more pylint-related changes.

14 years agoSaner pylint defaults.
Joel Rosdahl [Sun, 25 Sep 2005 13:47:14 +0000 (13:47 +0000)]
Saner pylint defaults.

14 years agoMake pylint complain less about kofoto.commandline.
Joel Rosdahl [Sun, 25 Sep 2005 13:46:36 +0000 (13:46 +0000)]
Make pylint complain less about kofoto.commandline.

14 years agoExperiment with pylint to check source code.
Joel Rosdahl [Sun, 25 Sep 2005 10:12:42 +0000 (10:12 +0000)]
Experiment with pylint to check source code.

14 years agoReorganized source code hierarchy:
Joel Rosdahl [Wed, 21 Sep 2005 20:32:35 +0000 (20:32 +0000)]
Reorganized source code hierarchy:

 * Renamed src/lib to src/packages.
 * Moved src/gkofoto/gkofoto to src/packages/kofoto/gkofoto.
 * Moved src/cmdline/kofoto to src/packages/kofoto/commandline/main.py
   and wrote a new, simple src/cmdline/kofoto that uses
   kofoto.commandline.main.
 * Adjusted code for new package locations.

This was mostly done for consistency reasons. It also opens the door
to using pychecker and pylint in a better way.

14 years agoDrop database connection in the database upgrade code so that the
Joel Rosdahl [Mon, 19 Sep 2005 17:30:04 +0000 (17:30 +0000)]
Drop database connection in the database upgrade code so that the
file handle is closed before renaming the new database. This is
needed since open files can't be renamed on Windows.

14 years agoBugfix
Ulrik Svensson [Sun, 18 Sep 2005 18:19:26 +0000 (18:19 +0000)]
Bugfix

14 years agoTry to encode external command strings in proper localized codeset.
Joel Rosdahl [Sat, 10 Sep 2005 08:53:00 +0000 (08:53 +0000)]
Try to encode external command strings in proper localized codeset.
Fixes ticket #104.

14 years agoRead root album tag from optional parameter.
Joel Rosdahl [Sun, 4 Sep 2005 20:00:34 +0000 (20:00 +0000)]
Read root album tag from optional parameter.

14 years agoMake webkofoto know about image versions.
Joel Rosdahl [Sun, 4 Sep 2005 19:51:46 +0000 (19:51 +0000)]
Make webkofoto know about image versions.

14 years agoImproved algorithm used by registerImageVersions to find new unregistered image versions.
Ulrik Svensson [Sat, 20 Aug 2005 19:15:47 +0000 (19:15 +0000)]
Improved algorithm used by registerImageVersions to find new unregistered image versions.

14 years agoBugfix related to image-versions and HTML-generation
Ulrik Svensson [Sat, 20 Aug 2005 12:53:30 +0000 (12:53 +0000)]
Bugfix related to image-versions and HTML-generation

14 years agoFix HTML generation in non-UTF-8 locales.
Joel Rosdahl [Sat, 20 Aug 2005 06:54:40 +0000 (06:54 +0000)]
Fix HTML generation in non-UTF-8 locales.

14 years agoReload single object view properly after editing image version properties.
Joel Rosdahl [Sat, 20 Aug 2005 06:37:28 +0000 (06:37 +0000)]
Reload single object view properly after editing image version properties.

14 years agoCorrected typo
Ulrik Svensson [Fri, 19 Aug 2005 22:23:35 +0000 (22:23 +0000)]
Corrected typo

14 years agoAdded default action in "duplicate image and open" dialog.
Joel Rosdahl [Fri, 19 Aug 2005 20:54:15 +0000 (20:54 +0000)]
Added default action in "duplicate image and open" dialog.

14 years agoHandle album tags with characters outside latin1 correctly in
Joel Rosdahl [Mon, 18 Jul 2005 21:36:31 +0000 (21:36 +0000)]
Handle album tags with characters outside latin1 correctly in
HTML generation dialog.

14 years agoCorrected use of locale/unicode flags to the re engine.
Joel Rosdahl [Mon, 18 Jul 2005 21:31:07 +0000 (21:31 +0000)]
Corrected use of locale/unicode flags to the re engine.

14 years agoImproved image version registration: Make last registered image
Joel Rosdahl [Fri, 15 Jul 2005 15:09:45 +0000 (15:09 +0000)]
Improved image version registration: Make last registered image
version primary.

Reload single object view properly after changing image versions
attributes.

14 years agoImplemented new features in gkofoto:
Joel Rosdahl [Fri, 15 Jul 2005 09:22:53 +0000 (09:22 +0000)]
Implemented new features in gkofoto:

* Duplicate image/imageversion and open in external program.
* Register image versions.

14 years agoImproved exception formatting in crash dialog.
Joel Rosdahl [Thu, 14 Jul 2005 19:39:07 +0000 (19:39 +0000)]
Improved exception formatting in crash dialog.

14 years agoImproved order of image versions menu.
Joel Rosdahl [Thu, 14 Jul 2005 10:04:15 +0000 (10:04 +0000)]
Improved order of image versions menu.

Added top level menu for image versions.