[Okular-devel] [okular] [Bug 351156] Add "Trim page to selection"	feature
    Albert Astals Cid 
    aacid at kde.org
       
    Thu Aug 27 20:10:05 UTC 2015
    
    
  
https://bugs.kde.org/show_bug.cgi?id=351156
Albert Astals Cid <aacid at kde.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED
      Latest Commit|                            |http://commits.kde.org/okul
                   |                            |ar/172d78c6b3f9d7894a1233fb
                   |                            |12e5e292f13710ee
--- Comment #16 from Albert Astals Cid <aacid at kde.org> ---
Git commit 172d78c6b3f9d7894a1233fb12e5e292f13710ee by Albert Astals Cid, on
behalf of Jake Linder.
Committed on 27/08/2015 at 20:09.
Pushed by aacid into branch 'master'.
Add "Trim To Selection" feature
Changes
C1. Added submenu, moved "Trim margins" (TM mode) to it and added  "Trim To
Selection" (TS mode).
C2. Activating "Trim To selection" enters a new mousemode, similar to
RectSelect for defining a viewport.
C3. Once a viewport has been defined, it serves as a viewport for all pages in
the document.
C4. Left/Right pages are not treated differently.
Manual Testing
T1. Switching between modes enforces at most one active.
T2. Can deactivate a mode by selecting it again from the menu.
T3. When draggin bbox selection, clicking outside page does not crash.
T4. When in "Facing Pages" mode, mouse release must be over any page (or is
ignored).
T5. Normalized bbox coords are computed relative to page indicated by point of
mouse release.
T6. Behave as expected when switching between any pair of No Trim/Trim
Margins/Trim To Selection.
T7. TM mode persisted across app restarts (existing behavior).
T8. TS mode forgotten across app restarts (as desired).
T9. Exiting and reselectin "Trim To Selection" prompts for new bbox.
T10. Choosing a small Trim bbox enforces minimium dimensions size (As percentag
of total), as
it does in TM mode, because of the "scale big and crop down" implementation, to
avoid huge pixmaps.
TS mode minimum set at 20% (vs. TM mode's 50%).
REVIEW: 124716
M  +9    -0    conf/okular.kcfg
M  +2    -2    part-viewermode.rc
M  +2    -2    part.rc
M  +162  -16   ui/pageview.cpp
M  +4    -0    ui/pageview.h
http://commits.kde.org/okular/172d78c6b3f9d7894a1233fb12e5e292f13710ee
-- 
You are receiving this mail because:
You are the assignee for the bug.
    
    
More information about the Okular-devel
mailing list