Find a file
Jake Linder 172d78c6b3 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
BUGS: 351156
2015-08-27 22:09:02 +02:00
active SVN_SILENT made messages (.desktop file) 2014-09-30 09:11:55 +00:00
cmake/modules FindLibSpectre: Use FindPkgConfig instead of UsePkgConfig 2015-04-19 14:42:57 +02:00
conf Add "Trim To Selection" feature 2015-08-27 22:09:02 +02:00
core Merge remote-tracking branch 'origin/Applications/15.08' 2015-08-12 22:43:26 +02:00
doc Fix my typo 2015-07-22 09:19:50 +03:00
generators Merge remote-tracking branch 'origin/Applications/15.08' 2015-07-30 10:50:40 +02:00
interfaces Fix crashes on Mac 2015-04-14 01:39:14 +02:00
shell Fix crash on startup when okularpart can't be found 2015-08-03 12:58:30 +02:00
tests Fix session restore/save with multiple tabs 2015-03-16 23:55:57 +01:00
ui Add "Trim To Selection" feature 2015-08-27 22:09:02 +02:00
.krazy synctex is "external code", make krazy stay away from it 2010-02-08 23:15:24 +00:00
aboutdata.h Added Fabio D'Urso in the about box credits tab 2012-06-14 00:12:16 +02:00
AUTHORS We do not give Author status for small contributions 2011-10-12 15:54:09 +02:00
CMakeLists.txt See if this gives us coverage support 2015-08-27 00:05:06 +02:00
config-okular.h.cmake Use DPI of current screen for PDF rendering 2014-01-13 01:37:56 +01:00
COPYING - MERGE KPDF 3.5 CHANGES 2005-11-04 11:59:51 +00:00
COPYING.DOC Add copies of the GFDL-1.2 and LGPL-2 2011-07-07 18:22:06 +02:00
COPYING.LIB Add copies of the GFDL-1.2 and LGPL-2 2011-07-07 18:22:06 +02:00
extensions.cpp using Part as class name makes it very easy to collide with other Parts out there and very ugly things will happen, add a namespace 2009-10-26 20:59:24 +00:00
extensions.h using Part as class name makes it very easy to collide with other Parts out there and very ugly things will happen, add a namespace 2009-10-26 20:59:24 +00:00
kdocumentviewer.h Fix crashes on Mac 2015-04-14 01:39:14 +02:00
Mainpage.dox Adapt docu of generators to generateDocumentInfo() method change 2014-09-09 14:53:51 +02:00
Messages.sh Allow nameless tools (which default to predefined names) 2013-04-20 10:47:33 +02:00
okular.upd Separate settings in core and non core 2012-10-16 00:28:29 +02:00
okular_part.desktop SVN_SILENT made messages (.desktop file) 2014-07-25 05:38:42 +00:00
okular_part_export.h test to make sure the toc reload feature works 2013-01-19 15:05:39 +01:00
OkularConfig.cmake Compat fix. FindOkular.cmake used to set OKULAR_FOUND. 2010-10-02 20:06:15 +00:00
OkularConfigureChecks.cmake SVN_SILENT simplify 2007-11-25 14:10:18 +00:00
part-viewermode.rc Add "Trim To Selection" feature 2015-08-27 22:09:02 +02:00
part.cpp Merge remote-tracking branch 'origin/Applications/15.04' 2015-05-14 00:59:48 +02:00
part.h New shortcut to resize window to fit page 2015-03-17 00:20:11 +01:00
part.rc Add "Trim To Selection" feature 2015-08-27 22:09:02 +02:00
README.internals.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
TODO Fix some typos found by Krazy2 2013-06-24 13:46:16 +03:00
VERSION Increase version for KDE Applications 15.08.0 2015-08-12 01:14:05 +02:00