[go: up one dir, main page]

Menu

/mcomix/zoom.py Commit Log


Commit Date  
[r980] (10.8 kB) by aaku

Spacing restored, refactoring

- Several constants and functions moved.

2014-02-02 17:11:19 View
Download
[r979] (11.2 kB) by aaku

Important UI changes, refactoring, bug fixes.

- Function fit_pixbuf_to_rectangle introduced in image_tools.py.
- No "self.displayed_double()" switches left in MainWindow._draw_image.
- Several bugs fixed (especially off-by-one errors).
- Some refactoring.

Changes that heavily influence user experience:

- You can now scale up in double page mode.
- No spacing between pages in double page mode (temporarily).
- In double page mode, both pages now have similar scale factors.
- Bug fixed that has been introduced with r974. Due to this bug, the scrollbar
requests did not converge in some special cases (aka infinite loop). The new
calculations should always converge. If you see an apparently useless scrollbar
now, this scrollbar is actually necessary.

2014-02-01 16:51:18 View
Download
[r977] (8.8 kB) by aaku

Minor refactoring

- _calc_limits merged back into _get_preferred_scale.

2014-01-22 18:40:07 View
Download
[r976] (9.4 kB) by aaku

Refactoring in zoom.py

- Replace FitMode and derived classes by _calc_limits. (I hope that this doesn't
turn out to be a bad idea.)
- Convert _scale_distributed to staticmethod.
- Remove obsolete helper functions.

2014-01-21 22:19:49 View
Download
[r974] (10.5 kB) by aaku

Scrollbar bug fix, refactoring

Scrollbars disappear and reappear now more reliably.
However, in double page mode, it is still(!) possible to make the viewport too
small for the image but not small enough for the horizontal scrollbar to appear.
Furthermore, it is still(!) possible to make scrollbars appear when they are not
necessary (both single page mode and double page mode).

Changes in MainWindow:
- interface of _show_scrollbars changed
- _show_scrollbars simplified
- _hscroll replaced with _scroll[constants.WIDTH_AXIS]
- _vscroll replaced with _scroll[constants.HEIGHT_AXIS]

Changes in zoom.py:
- docs added for _smaller

2014-01-19 15:47:23 View
Download
[r973] (10.4 kB) by aaku

Documentation for _scale_distributed, minor refactoring

2014-01-19 13:06:32 View
Download
[r972] (9.5 kB) by aaku

Introducing _scale_distributed (new scaling approach)

This function is still not used, though.

2014-01-18 14:39:58 View
Download
[r971] (5.3 kB) by aaku

Refactoring in zoom.py

- more functional style
- generalized for n-dimensional images

2014-01-12 21:37:56 View
Download
[r930] (5.1 kB) by oddegamra

Revert "Fix "Fit to Width" not scaling up small images."

This reverts commit 747b9b2484fd831b48154056439ddabf6b4c65c3.
My bad, the previous behaviour was just fine.

2013-06-01 12:25:09 View
Download
[r916] (5.3 kB) by oddegamra

Fix "Fit to Width" not scaling up small images.

This mode needs to ignore the "Scale up small images" setting
and always respect the user's specified size.

2013-05-17 08:56:53 View
Download
Older >