mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
172d78c6b3
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
73 lines
3.1 KiB
Text
73 lines
3.1 KiB
Text
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
|
|
<kpartgui name="okular_part_viewermode" version="3">
|
|
|
|
<MenuBar>
|
|
<Menu name="file"><text>&File</text>
|
|
<Action name="file_print_preview" group="okular_print_merge"/>
|
|
</Menu>
|
|
|
|
<Menu name="settings"><text>&Settings</text>
|
|
<Action name="options_configure_generators" group="configure_merge"/>
|
|
<Action name="options_configure" group="configure_merge"/>
|
|
</Menu>
|
|
|
|
<Menu name="help"><text>&Help</text>
|
|
<Action name="help_about_backend" group="about_merge"/>
|
|
</Menu>
|
|
</MenuBar>
|
|
|
|
<Menu name="menu_okular_part_viewer">
|
|
<Action name="mouse_drag" group="viewer_menu_merge"/>
|
|
<Action name="mouse_zoom" group="viewer_menu_merge"/>
|
|
<Separator group="viewer_menu_merge"/>
|
|
<Action name="view_zoom_in" group="viewer_menu_merge"/>
|
|
<Action name="view_zoom_out" group="viewer_menu_merge"/>
|
|
<Action name="view_fit_to_width" group="viewer_menu_merge"/>
|
|
<Action name="view_fit_to_page" group="viewer_menu_merge"/>
|
|
<Separator group="viewer_menu_merge"/>
|
|
<Action name="view_continuous" group="viewer_menu_merge"/>
|
|
<Action name="view_render_mode" group="viewer_menu_merge"/>
|
|
<Separator group="viewer_menu_merge"/>
|
|
<Menu name="view_orientation" group="viewer_menu_merge"><text>&Orientation</text>
|
|
<Action name="view_orientation_rotate_ccw" group="viewer_menu_merge"/>
|
|
<Action name="view_orientation_rotate_cw" group="viewer_menu_merge"/>
|
|
<Action name="view_orientation_original" group="viewer_menu_merge"/>
|
|
</Menu>
|
|
<Action name="view_pagesizes" group="viewer_menu_merge"/>
|
|
<Action name="view_trim" group="viewer_menu_merge"/>
|
|
<Separator group="viewer_menu_merge"/>
|
|
<Action name="go_previous" group="viewer_menu_merge"/>
|
|
<Action name="go_next" group="viewer_menu_merge"/>
|
|
<Separator group="viewer_menu_merge"/>
|
|
<Action name="first_page" group="viewer_menu_merge"/>
|
|
<Action name="last_page" group="viewer_menu_merge"/>
|
|
<Separator group="viewer_menu_merge"/>
|
|
<Action name="go_document_back" group="viewer_menu_merge"/>
|
|
<Action name="go_document_forward" group="viewer_menu_merge"/>
|
|
<Separator group="viewer_menu_merge"/>
|
|
<Action name="go_goto_page" group="viewer_menu_merge"/>
|
|
<Separator group="viewer_menu_merge"/>
|
|
<Menu name="okular_bookmarks" group="viewer_menu_merge"><text>&Bookmarks</text>
|
|
<Action name="bookmark_add" group="viewer_menu_merge"/>
|
|
<Action name="previous_bookmark" group="viewer_menu_merge"/>
|
|
<Action name="next_bookmark" group="viewer_menu_merge"/>
|
|
<Separator group="viewer_menu_merge"/>
|
|
<ActionList name="bookmarks_currentdocument" group="viewer_menu_merge"/>
|
|
</Menu>
|
|
<Separator group="viewer_menu_merge"/>
|
|
<Action name="edit_find" group="viewer_menu_merge"/>
|
|
<Action name="edit_find_next" group="viewer_menu_merge"/>
|
|
<Action name="edit_find_prev" group="viewer_menu_merge"/>
|
|
</Menu>
|
|
|
|
<ToolBar name="OkularViewerToolBar"><text>Viewer Toolbar</text>
|
|
<Action name="zoom_to" />
|
|
<Action name="view_zoom_out"/>
|
|
<Action name="view_zoom_in"/>
|
|
<Separator/>
|
|
<Action name="mouse_drag"/>
|
|
<Action name="mouse_zoom"/>
|
|
<Action name="mouse_selecttools"/>
|
|
</ToolBar>
|
|
|
|
</kpartgui>
|