okular/conf
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
..
dlgaccessibility.cpp Normalize signals/slots 2011-07-31 21:22:04 +02:00
dlgaccessibility.h Accessibility configuration "refactory", part #2: 2007-09-13 20:16:19 +00:00
dlgaccessibilitybase.ui SVN_SILENT Cleanup .ui files 2009-04-21 21:54:46 +00:00
dlgannotations.cpp Initial implementation of widget to edit annotation tools 2012-12-28 10:19:05 +01:00
dlgannotations.h Renamed "Identity" -> "Annotations" config panel 2012-12-27 19:38:41 +01:00
dlgannotationsbase.ui Small tweak to the UI 2013-05-22 00:01:02 +02:00
dlgdebug.cpp krazy include order issues 2007-04-19 18:30:20 +00:00
dlgdebug.h isolate the debug options in an own tab, so it's easier to show/hide them 2006-12-22 15:04:01 +00:00
dlgeditor.cpp Normalize signals/slots 2011-07-31 21:22:04 +02:00
dlgeditor.h Add a configuration page for the text editor used for source references links (that is, the ones used also for inverse search). 2008-10-19 18:01:16 +00:00
dlgeditorbase.ui SVN_SILENT Cleanup .ui files 2009-04-21 21:54:46 +00:00
dlggeneral.cpp Move the open new files in tabs setting to configure dialog 2014-02-08 12:15:15 +01:00
dlggeneral.h Move the definition of the 'EmbedMode' enum to 'part.h' 2011-11-02 20:29:31 +00:00
dlggeneralbase.ui Move the open new files in tabs setting to configure dialog 2014-02-08 12:15:15 +01:00
dlgperformance.cpp Multiply by ~10 the memory values 2015-07-10 00:06:11 +02:00
dlgperformance.h don't leak 2007-06-08 22:29:07 +00:00
dlgperformancebase.ui GUI to configure the Text/Graphics Anti-alias and Text hinting 2012-12-31 12:15:02 +01:00
dlgpresentation.cpp Normalize signals/slots 2011-07-31 21:22:04 +02:00
dlgpresentation.h Add the possibility to choose which screen to use for the presentation mode. 2008-04-07 18:16:39 +00:00
dlgpresentationbase.ui Support Fade transition in presentation mode 2015-07-17 01:02:07 +02:00
okular.kcfg Add "Trim To Selection" feature 2015-08-27 22:09:02 +02:00
okular_core.kcfg GUI to configure the Text/Graphics Anti-alias and Text hinting 2012-12-31 12:15:02 +01:00
preferencesdialog.cpp Added shortcut to annotation config panel as review toolbar's context menu 2013-05-28 23:55:10 +02:00
preferencesdialog.h Added shortcut to annotation config panel as review toolbar's context menu 2013-05-28 23:55:10 +02:00
settings.kcfgc Pass the command line options properly when using tabs or unique instances 2014-08-08 22:35:53 +02:00
settings_core.kcfgc Separate settings in core and non core 2012-10-16 00:28:29 +02:00
textdocumentsettings.ui Font selector for TextDocumentGenerator 2013-05-18 16:03:33 +02:00
widgetannottools.cpp Annotation tool configuration: open edit window back on itemDoubleClick 2013-05-24 17:51:49 +02:00
widgetannottools.h WidgetAnnotTools: Add edit button 2013-05-20 20:29:14 +02:00